:root {
    --bg-page: #f7f6f2;
    --bg-card: #ffffff;
    --bg-soft-blue: #eaf3ff;
    --bg-summary: #fbfbfb;
    --text-main: #3b3b3b;
    --text-dark: #212121;
    --brand-red: #ec111a;
    --brand-yellow: #ffde2f;
    --border-soft: #d7dde5;
    --border-strong: #202020;
    --warning-bg: #fff3cf;
    --warning-text: #be9200;
    --success-text: #018034;
    --success-bg: #DFD;
    --shadow-soft: 0 16px 40px rgba(26, 26, 26, 0.045);
    --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #f4f3ef 0%, #faf9f6 26%, #f4f3ef 100%);
}

.page-container {
  max-width: 80%;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-header {
  background: var(--brand-red);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

.hero-content {
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 26px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  width: 128px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.company-meta {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.company-meta strong,
.company-meta span {
  display: block;
}

.company-meta strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.section-block {
  padding: 42px 0;
}

.section-items,
.section-payment {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 18px 38px rgba(18, 18, 18, 0.025);
}

.quote-header {
  margin-bottom: 34px;
}

.quote-number {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-number__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  color: var(--brand-red);
  font-size: 1.55rem;
  font-weight: 400;
}

.quote-number__label {
  display: block;
  color: #8a8a8a;
  font-size: 0.98rem;
  line-height: 1.15;
}

.quote-number__value {
  display: block;
  font-size: 2.8rem;
  line-height: 0.98;
  color: var(--text-dark);
  font-weight: 600;
}

.quote-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.98rem;
}

.status-pill--show {
    border: 1px solid #7b7b7b;
}

.status-pill--muted {
  background: #ececec;
  color: #7b7b7b;
}

.status-pill--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.status-pill--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pill--processing {
    background: #FFEBDF;
    color: #FD6506;
}

.info-card,
.payment-card,
.summary-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-soft);
}

.section-card-title {
  margin-bottom: 30px;
  color: var(--brand-red);
  font-size: 1.45rem;
  font-weight: 600;
}

.supplier-grid p,
.delivery-address {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #444444;
}

.icon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  font-size: 1rem;
  font-weight: 600;
}

.section-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 500;
  color: #2f2f2f;
}

.discount-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.discount-switch input {
  position: absolute;
  opacity: 0;
}

.discount-switch__track {
  position: relative;
  width: 31px;
  height: 19px;
  border-radius: 999px;
  background: #c8c8c8;
}

.discount-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.discount-switch input:checked + .discount-switch__track {
  background: var(--brand-red);
}

.discount-switch input:checked + .discount-switch__track::after {
  transform: translateX(12px);
}

.items-table-wrap {
  background: #ffffff;
  border: 1px solid #dfe3e7;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}

.items-table {
  min-width: 1180px;
}

.items-table thead th {
  background: #efefef;
  border-bottom: 1px solid #dbdbdb;
  color: #363636;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 20px;
  white-space: nowrap;
}

.items-table tbody td {
  border-color: #ececec;
  padding: 16px 12px;
  vertical-align: middle;
}

.item-code {
  width: 84px;
  font-size: 1rem;
  color: #383838;
  text-align: center;
}

.item-description {
  min-width: 265px;
}

.item-description strong {
  display: block;
  margin-bottom: 11px;
  font-size: 1rem;
  line-height: 1.14;
  color: #3a3a3a;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-badge {
  padding: 3px 8px;
  background: #f1f1f1;
  border-radius: 5px;
  font-size: 0.94rem;
  color: #474747;
}

.item-description p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.18;
  color: #484848;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 40px minmax(72px, 1fr) 40px;
  align-items: center;
  min-width: 142px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  height: 40px;
}

.large-stepper {
  width: 100%;
  min-width: 0;
  grid-template-columns: 48px 1fr 48px;
}

.stepper.is-disabled {
  opacity: 0.52;
}

.stepper-btn {
  border: 0;
  min-height: 40px;
  background: transparent;
  color: #747474;
  font-size: 1.65rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.stepper-input {
  width: 100%;
  border: 0;
  padding: 7px 4px;
  text-align: center;
  background: transparent;
  color: #383838;
  font-size: 0.98rem;
}

.total-box {
  min-width: 142px;
  padding: 8px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #f4f4f4;
  text-align: center;
  font-weight: 700;
  color: #373737;
  font-size: 1rem;
}

.observation-trigger {
  width: 52px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3e3e3e;
}

.payment-card {
  min-height: 100%;
  padding: 20px;
  border-color: transparent;
}

.payment-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #373737;
}

.field-block + .field-block {
  margin-top: 16px;
}

.form-label,
.field-label {
  margin-bottom: 8px;
  color: #3d3d3d;
  font-size: 1rem;
}

.form-select,
.form-control {
  min-height: 40px;
  border-radius: 10px;
  border-color: #ced4da;
  color: #3e3e3e;
}

.form-select {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  max-width: 100% !important;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radio-chip input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-red);
}

.summary-card {
  background: #fbfbfb;
}

.summary-card h3 {
  margin: 0 0 16px;
  font-size: 1.14rem;
  font-weight: 700;
  color: #383838;
}

.summary-chip,
.summary-list div,
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-chip {
  padding: 5px 8px;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  background: #f2f2f2;
  color: #444444;
  font-size: 0.98rem;
}

.summary-card hr {
  margin: 20px 0;
  border-color: #d7d7d7;
}

.summary-list {
  margin: 0;
}

.summary-list div {
  gap: 16px;
  margin-bottom: 10px;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
  font-size: 1rem;
  color: #3d3d3d;
}

.summary-list dd,
.summary-total strong {
  font-weight: 700;
}

.summary-total {
  gap: 16px;
}

.summary-total span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3a3a3a;
  font-size: 1rem;
}

.summary-total strong {
  font-size: 1.55rem;
  line-height: 1;
}

.page-footer {
  background: #c50016;
  color: #ffffff;
  text-align: center;
}

.page-footer p {
  margin: 0;
  padding: 7px 0 9px;
  font-size: 0.98rem;
  font-weight: 600;
}

.col-12.d-flex.align-items-center.justify-content-start {
    justify-content: space-between !important;
}

.btn-send-quotation {
    display: flex;
    width: 160px;
    height: 36px;
    padding: 13px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: #E40115;
    color: #ffffff;
    border: none;
    margin-left: 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-send-quotation svg, btn-outline-cleaning svg {
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle;
}

.btn-outline-cleaning{
    border: 0px;
    border-left: solid 1px;
    border-radius: 0px;
}

.btn-send-quotation:active {
    opacity: 0.9;
}

.btn-send-quotation .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#clearDataBtn {
    border-left: solid 1px #CECECE;
    padding-left: 16px;
}

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.observation-modal {
  padding: 18px 24px 24px;
}

.observation-modal .modal-header {
  padding: 6px 6px 15px;
  border-bottom: 1px solid #d8d8d8;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.item-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #555555;
}

.observation-modal .modal-body {
  padding: 20px 6px 6px;
}

.observation-note {
  margin-bottom: 18px;
  padding: 14px 16px 15px;
  background: var(--bg-soft-blue);
  border: 1px solid #b7d2ff;
  border-radius: 16px;
  line-height: 1.22;
  color: #373737;
}

.observation-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.observation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.observation-form .form-control {
  padding: 12px 14px;
  min-height: 144px;
  resize: vertical;
  width: 100% !important;
  max-width: 100% !important;
}

.btn-add-note,
.btn-action,
.btn-success-ok {
  width: 100%;
  min-height: 48px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 600;
}

.btn-add-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.observation-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.success-modal {
  position: relative;
  align-items: center;
  padding: 24px 30px 30px;
  text-align: center;
}

.success-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.success-mark {
  width: 90px;
  height: 90px;
  margin: 18px auto 22px;
  border-radius: 50%;
  border: 3px solid #008c3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #008c3c;
}

.success-modal h2 {
  margin: 0 0 20px;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.1;
}

.skeleton-text {
    position: relative;
    color: transparent !important;
    display: inline-block;
    min-width: 60px;
}
.summary-total .skeleton-text {
    min-height: 24px;
    display: inline-block;
}

.skeleton-text::after {
    content: "";
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient( 90deg, #eee 25%, #ddd 37%, #eee 63% );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.skeleton-box {
    height: 16px;
    border-radius: 6px;
    background: linear-gradient( 90deg, #eee 25%, #ddd 37%, #eee 63% );
    background-size: 400% 100%;
    animation: skeleton-loading 1.2s ease infinite;
}
.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

.w-80 {
    width: 80%;
}

.h-32 {
    height: 32px;
}

.mb-2 {
    margin-bottom: 6px;
}

@media (max-width: 1199.98px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-meta {
    text-align: left !important;
  }
}

@media (max-width: 991.98px) {
  .page-container {
    padding-left: 18px;
    padding-right: 18px;
    max-width:90%;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 767.98px) {
  .brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .quote-number__value {
    font-size: 2.2rem;
  }

  .section-block {
    padding: 28px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-card-title {
    font-size: 1.28rem;
  }
}
