/* =========================================================
   CLEANED + CONSOLIDATED STYLES
   - Duplicates merged (last definition wins)
   - Original order preserved to avoid cascade bugs
========================================================= */

html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* pushes footer to bottom */
main.page-content{
  flex: 1 0 auto;
}

/* footer stays natural height */
.site-footer{
  flex: 0 0 auto;
}

/* Button variants */
.btn-primary { background:#3B71CA; color:#fff; border-color:#3B71CB; }
.btn-primary-light { background:#E2EAF8; color:#305BA2; border-color:#E2EAF8; }
.btn-secondary { background:#9FA6B2; color:#fff; border-color:#9FA6B2; }
.btn-success { background:#14A44D; color:#fff; border-color:#198754; }
.btn-danger { background:#dc3545; color:#fff; border-color:#dc3545; }
.btn-warning { background:#ffc107; color:#212529; border-color:#ffc107; }
.btn-info { background:#0dcaf0; color:#212529; border-color:#0dcaf0; }
.btn-light { background:#f8f9fa; color:#212529; border-color:#f8f9fa; }
.btn-dark { background:#212529; color:#fff; border-color:#212529; }

/* Outline variants */
.btn-outline-primary { background:transparent; color:#3B71CA; border:1px solid #3B71CA; }
.btn-outline-primary:hover { background:transparent; color:#ffffff; border:1px solid #3B71CA; }
.btn-outline-secondary { background:transparent; color:#9FA6B2; border:1px solid #9FA6B2; }
.btn-outline-success { background:transparent; color:#198754; border:1px solid #14A44D; }
.btn-outline-danger { background:transparent; color:#dc3545; border:1px solid #dc3545; }
.btn-outline-warning { background:transparent; color:#ffc107; border:1px solid #ffc107; }
.btn-outline-info { background:transparent; color:#0dcaf0; border:1px solid #0dcaf0; }
.btn-outline-light { background:transparent; color:#f8f9fa; border:1px solid #f8f9fa; }
.btn-outline-dark { background:transparent; color:#212529; border:1px solid #212529; }

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3B71CA!important;
  border-color: #3B71CA!important;
  color: #ffffff!important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #3B71CA!important;
  border-color: #3B71CA!important;
  color: #ffffff!important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #9FA6B2!important;
  border-color: #9FA6B2!important;
  color: #ffffff!important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #9FA6B2!important;
  border-color: #9FA6B2!important;
  color: #ffffff!important;
}

.btn-tight {
  padding: 0.3rem 0.6rem!important;
  font-size: 0.85rem!important;
}


.hero-soft {
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


/* Left meta column */
.quote-meta{
  min-width:0;
  flex:1 1 320px;
}

.quote-customer-company{
  font-weight:800;
  line-height:1.1;
}

.quote-customer-name{
  margin-top:2px;
  color:#6c757d;
  font-size:.9rem;
}

.quote-subline{
  margin-top:10px;                 /* little space below customer/name */
  color:#6c757d;
  font-size:.9rem;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

/* Right badges/buttons */
.quote-right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-end;
}

/* Keep totals/profit like before */
.quote-amounts{
  margin-left:auto;                /* keeps totals on far right when space allows */
}

.quote-meta{ min-width:0; }

.quote-customer{ margin-bottom:10px; }
.quote-company{ font-weight:800; line-height:1.15; }
.quote-person{ color:#6c757d; font-size:.9rem; margin-top:2px; }

.quote-none{ color:#6c757d; font-weight:600; }

.quote-subline{
  color:#6c757d;
  font-size:.9rem;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.quote-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  flex:0 0 auto;                 /* prevents it from stretching weird */
}

.quote-right-top{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.quote-right-top .badge-status{ white-space:nowrap; }  /* badges don’t break */
.quote-right-top form{ display:inline; }    /* keeps buttons inline */
  @media (max-width: 768px){
  .quote-top{ flex-wrap:wrap; }
  .quote-right{ width:100%; align-items:flex-start; }
  .quote-right-top{ justify-content:flex-start; }
  .quote-total{ text-align:left; }
}

/*
.badge {
  background-color: #E2EAF8!important;
  color: black;
}
*/
/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

html, body {
  font-family: "Inter", sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.hero-soft {
  border: 1px solid rgba(0,0,0,.08);
}



.card-header {
  background: #ffffff;
}

.summary-box {
  position: sticky;
  top: 20px;
}

.summary-box .card-body {
  font-size: 0.9rem;
}

.summary-section {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.4rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
  gap: 0.75rem;
}

.summary-row-strong .summary-label {
  font-weight: 600;
}

.summary-row-strong .summary-value {
  font-weight: 700;
}

.summary-label {
  color: #495057;
  flex: 0 0 auto;
}

.summary-value {
  color: #212529;
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

#sumRip {
  white-space: normal;
  word-break: break-word;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.summary-section-total {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin: 0 -0.5rem -0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.pill-stats {
  background: #f1f3f5;
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  margin-left: auto;
}

.pill-label {
  color: #6c757d;
  margin-right: 0.25rem;
}

.pill-value {
  font-weight: 600;
}

.pill-unit {
  color: #6c757d;
  margin-left: 0.25rem;
}

.pill-stats .tooltip {
  display: inline-flex;
  align-items: center;
}

.rip-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rip-pill {
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.4;
}

.rip-pill:hover {
  background: #e9ecef;
}

.rip-pill.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}



.pill.simple-profile-pill {
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.4;
}

.pill.simple-profile-pill:hover {
  background: #e9ecef;
}

.pill.simple-profile-pill.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}



/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.form-error {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 1rem;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

#sumMaterialBreakdownRow .summary-value {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: normal;
  text-align: right;
}

#sumMaterialBreakdownRow .summary-label {
  display: none;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.mode-toggle .mode-label {
  font-size: 0.85rem;
  color: #6c757d;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.mode-toggle .mode-label-active {
  color: #212529;
  font-weight: 600;
}

.mode-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.mode-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #dee2e6;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.mode-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.mode-switch input:checked + .mode-slider {
  background-color: #0d6efd22;
}

.mode-switch input:checked + .mode-slider::before {
  transform: translateX(20px);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */
/*
.pf-label-main,
.pf-label-main + .tooltip {
  display: inline-block;
  vertical-align: middle;
}

.pf-label-main .tooltip {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

.tooltip.down .tooltip-content {
  bottom: auto;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
}

.tooltip.down .tooltip-content::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
}

.tooltip {
  display: inline-flex;
  align-items: center;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
*/
.swatch-ink {
  background: linear-gradient(90deg,#0d6efd,#20c997);
}

.swatch-cyan {
  background: #0dcaf0;
}

.swatch-magenta {
  background: #d63384;
}

.swatch-yellow {
  background: #ffc107;
}

.swatch-black {
  background: #212529;
}

.swatch-white {
  background: #ffffff;
  border: 1px solid #ccc;
}

.swatch-bright {
  background: linear-gradient(90deg,#ff6b6b,#ffd93d);
}

.swatch-dark {
  background: linear-gradient(90deg,#111,#555);
}

.swatch-threshold {
  background: repeating-linear-gradient(45deg,#ccc 0 2px,#f8f9fa 2px 4px);
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.spinner-btn {
  cursor: pointer;
  user-select: none;
}

/* ---------------------------------------------------------
   CUSTOM SELECT (bs-select)
--------------------------------------------------------- */

.bs-select-caret svg {
  transition: transform 0.15s ease;
}

.bs-select.open .bs-select-caret svg {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.section-divider {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0;
}

.navbar {
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

.header-left {
  flex: 0 0 auto;
}

.header-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: #212529;
}

.navbar-brand:hover {
  text-decoration: none;
  color: #0d6efd;
}

.nav-main {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-main .nav-link {
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.nav-main .nav-link:hover {
  color: #0d6efd;
  text-decoration: none;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.navbar-actions .btn,
.header-right .btn {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.navbar-toggler {
  border: 1px solid #ced4da;
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 1.25rem;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: -320px;
  bottom: 0;
  width: 280px;
  max-width: 80%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  z-index: 1050;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.offcanvas.show {
  right: 0;
}

.offcanvas-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.offcanvas-body {
  padding: 1rem;
  overflow-y: auto;
}

.offcanvas-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas-nav li {
  margin-bottom: 0.5rem;
}

.offcanvas-link {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
  color: #212529;
}

.offcanvas-link:hover {
  color: #0d6efd;
  text-decoration: none;
}

.offcanvas-text {
  font-size: 0.9rem;
  color: #6c757d;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.offcanvas-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

@media (min-width: 768px) {
  /* ---------------------------------------------------------
     UTILITIES
  --------------------------------------------------------- */

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .printer-row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .printer-left {
    flex: 3 1 0;
    min-width: 0;
  }

  .printer-right {
    flex: 1 0 220px;
    justify-content: flex-end;
  }

  /* ---------------------------------------------------------
     STAT CARDS / KPIs
  --------------------------------------------------------- */

  .stat-value {
    font-size: 2rem;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .admin-wrap .kpi {
    grid-column: span 4;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.swatch-segment {
  min-width: 2.25rem;
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.swatch-segment.swatch-ink {
  background: linear-gradient(90deg,#0d6efd,#20c997);
  border-color: #0d6efd;
}

.swatch-segment.swatch-cyan {
  background: #0dcaf0;
  border-color: #0dcaf0;
}

.swatch-segment.swatch-magenta {
  background: #d63384;
  border-color: #d63384;
  color: #fff;
}

.swatch-segment.swatch-yellow {
  background: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.swatch-segment.swatch-black {
  background: #212529;
  border-color: #212529;
  color: #fff;
}

.swatch-segment.swatch-white {
  background: #ffffff;
  border-color: #ced4da;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.input-group.disabled, 
#acroChannels.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.pf-block {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #f8f9fa;
}

.pf-row + .pf-row {
  margin-top: 0.75rem;
}

.pf-label-main {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.9rem;
  font-weight: 600;
}

.pf-label-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #6c757d;
}

.pf-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
}

.pf-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 0.35rem;
  border-radius: 999px;
  background: #dee2e6;
  outline: none;
}

.pf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(13,110,253,.35);
  cursor: pointer;
}

.pf-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(13,110,253,.35);
  cursor: pointer;
}

.pf-slider::-moz-range-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #dee2e6;
}

.pf-scale-text {
  font-size: 0.75rem;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
}

.df-scale-text {
  font-size: .75rem;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
}

#dfControls .pf-block {
  background: #f9fafb;
}

.film-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.film-type-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.film-type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.film-type-pill span {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ced4da;
  background: #fff;
  color: #495057;
  transition: background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.film-type-pill input:checked + span {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 0.08rem rgba(13, 110, 253, 0.25);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.film-type-pill:hover span {
  border-color: #0d6efd;
}

.film-mode-panel {
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem 0.6rem;
  background: #f9fafb;
  border: 1px solid #e9ecef;
  margin-bottom: 0.75rem;
}

.film-subsection-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.dims-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dims-area-pill {
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  white-space: nowrap;
}

.dims-multiply {
  font-size: 1.4rem;
  color: #adb5bd;
}

@media (max-width: 767.98px) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .dims-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* ---------------------------------------------------------
     QUOTES / PDF
  --------------------------------------------------------- */

  .quote-amounts {
    min-width: 0;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .quote-total-value {
    font-size: 1.4rem;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-pdf-grid {
    grid-template-columns: 1fr;
  }

  .quote-row-sub {
    white-space: normal;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.substrate-preset.active {
  outline: 2px solid #198754;
  outline-offset: 1px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.summary-total-emb {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin: 0 -0.5rem -0.5rem;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.sheet-size-pills {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}

.sheet-pill {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 20px;
  padding: .35rem .9rem;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.sheet-pill input {
  display: none;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.sheet-pill span {
  font-size: .9rem;
}

.sheet-pill:hover {
  background: #edf1f4;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.sheet-pill input:checked + span {
  font-weight: 600;
  color: #0d6efd;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.margin-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.margin-row .form-control {
  flex: 0 0 33%;
  max-width: 33%;
}

.margin-row .form-range,
.margin-row input[type="range"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.acro-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.acro-row .input-group {
  flex: 0 0 8rem;
  max-width: 8rem;
  margin-bottom: 0;
}

.acro-row .input-group .form-control {
  min-width: 0;
}

.acro-row .form-range {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.printer-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.printer-left,
.printer-right {
  flex: 0 0 100%;
}

.printer-right {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  /* ---------------------------------------------------------
     UTILITIES
  --------------------------------------------------------- */

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .printer-row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .printer-left {
    flex: 3 1 0;
    min-width: 0;
  }

  .printer-right {
    flex: 1 0 220px;
    justify-content: flex-end;
  }

  /* ---------------------------------------------------------
     STAT CARDS / KPIs
  --------------------------------------------------------- */

  .stat-value {
    font-size: 2rem;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .admin-wrap .kpi {
    grid-column: span 4;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.dropdown-menu a {
  text-decoration: none !important;
}

/* ---------------------------------------------------------
   QUOTES / PDF
--------------------------------------------------------- */

.quote-tile + .quote-tile {
  margin-top: 14px;
}

.quote-date {
  font-size: .85rem;
  color: #6c757d;
  font-weight: 500;
}

.quote-printer {
  font-size: .9rem;
  color: #212529;
  font-weight: 600;
}

.quote-dim {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-profit.is-good strong {
  color: #198754;
}

.quote-row:last-of-type {
  padding-bottom: 0;
}

.quote-row-strong .quote-row-label,
.quote-row-strong .quote-row-right {
  font-weight: 800;
}

.quote-actions-right {
  display: flex;
  gap: 8px;
}

.quote-pdf-form {
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 12px;
}

.quote-checklist {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px;
}

.quote-pdf-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .dims-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* ---------------------------------------------------------
     QUOTES / PDF
  --------------------------------------------------------- */

  .quote-top {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-amounts {
    min-width: 0;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .quote-total-value {
    font-size: 1.4rem;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-pdf-grid {
    grid-template-columns: 1fr;
  }

  .quote-row-sub {
    white-space: normal;
  }
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6c757d 50%),
    linear-gradient(135deg, #6c757d 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-select:focus {
  border-color: #0d6efd;
  outline: 0;
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
}

.form-select-sm {
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 0.3rem;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-logo-placeholder {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4B98F7;
  background: rgba(75, 152, 247, 0.12);
  border: 1px solid rgba(75, 152, 247, 0.35);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  text-decoration: none;
  font-weight: 600;
  color: #495057;
}

.auth-tab.active {
  background: rgba(75, 152, 247, 0.15);
  border-color: rgba(75, 152, 247, 0.6);
  color: #4B98F7;
}

.auth-title {
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}



/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.form-control:focus {
  border-color: rgba(75, 152, 247, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(75, 152, 247, 0.25);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.auth-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-footer a {
  color: #4B98F7;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-logo-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.auth-form .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.auth-form .col-md-4 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.auth-textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-card-wide {
  width: 100%;
  max-width: 860px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.lightbox-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  background: transparent;
  display: block;
}

.lightbox-overlay.show img.ready {
  transform: scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .lightbox-overlay,
    .lightbox-overlay img {
    transition: none;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.section-title {
  font-weight: 600;
}

.divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 1rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-size: .85rem;
}

.savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: .75rem;
  margin: 1rem -1rem -1rem;
}

.preview-box {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 6px;
  padding: .75rem;
  background: rgba(0,0,0,.02);
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.form-hint {
  font-size: .85rem;
  color: rgba(0,0,0,.6);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.setup-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: .65rem 0;
}

.setup-item.is-done .setup-dot {
  background: #198754;
}

.setup-item.is-missing .setup-dot {
  background: #dc3545;
}

.setup-title {
  font-weight: 600;
}

.setup-sub {
  font-size: .875rem;
  color: rgba(0,0,0,.6);
}

.setup-tag {
  font-size: .75rem;
  color: rgba(0,0,0,.55);
  margin-left: .35rem;
}

/* ---------------------------------------------------------
   QUOTES / PDF
--------------------------------------------------------- */

.quote-tile {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.quote-meta {
  min-width: 0;
}

.quote-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
}

.quote-subtitle {
  margin-top: 4px;
  color: #495057;
  font-size: 1.05rem;
  font-weight: 650;
}

.quote-amounts {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 150px;
  align-items: stretch;
  flex-wrap: wrap;
}

.quote-total {
  text-align: right;
  min-width: 140px;
}

.quote-total-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
}

.quote-total-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.quote-profit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  min-width: 160px;
}

.quote-profit span {
  color: #6c757d;
  font-size: .85rem;
}

.quote-profit strong {
  color: #212529;
  font-weight: 800;
}

.quote-profit.is-good {
  background: rgba(25,135,84,.06);
  color: #198754;
  border-color: rgba(25,135,84,.25);
}

.quote-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

@media (max-width: 992px) {
  /* ---------------------------------------------------------
     QUOTES / PDF
  --------------------------------------------------------- */

  .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   QUOTES / PDF
--------------------------------------------------------- */

.quote-block {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.quote-block-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 700;
}

.quote-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed rgba(0,0,0,.08);
}

.quote-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.quote-row-left {
  min-width: 0;
}

.quote-row-label {
  font-weight: 600;
  color: #212529;
  font-size: .92rem;
}

.quote-row-sub {
  font-size: .85rem;
  color: #6c757d;
  margin-top: 2px;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-row-right {
  text-align: right;
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
}

.quote-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  flex-wrap: wrap;
}

.quote-pdf {
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 12px;
}

.quote-pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  /* ---------------------------------------------------------
     QUOTES / PDF
  --------------------------------------------------------- */

  .quote-pdf-grid {
    grid-template-columns: 1fr;
  }

  .pdf-span-2 {
    grid-column: auto;
  }

  /* ---------------------------------------------------------
     PLAN / PRICING
  --------------------------------------------------------- */

  .plan-features-center {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   QUOTES / PDF
--------------------------------------------------------- */

.pdf-span-2 {
  grid-column: 1 / -1;
}

.pdf-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.pdf-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* ---------------------------------------------------------
   BADGES
--------------------------------------------------------- */

.badge-status {
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  color: #495057;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
}

/* ---------------------------------------------------------
   QUOTES / PDF - CORRECT QUOTE TOP
--------------------------------------------------------- */

.quote-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ---------------------------------------------------------
   BADGES
--------------------------------------------------------- */

.badge-status.open {
  background: rgba(25,135,84,.08);
  border-color: rgba(25,135,84,.18);
  color: #198754;
}

.badge-status.closed {
  background: rgba(108,117,125,.10);
  border-color: rgba(108,117,125,.20);
  color: #6c757d;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.hero-wrap {
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: #f8fafc;
  padding: 28px;
}

/* ---------------------------------------------------------
   BADGES
--------------------------------------------------------- */

.badge-lite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e6e8ec;
  background: #ffffff;
  color: #1f2937;
  line-height: 1;
  white-space: nowrap;
}

.badge-dark {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.muted-max {
  max-width: 64ch;
}

.feature-grid-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.feature-card {
  height: 100%;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #d8dde6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.feature-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.feature-card-head {
  padding: 16px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.feature-kicker {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-desc {
  margin: 10px 16px 14px 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.shot-wrap {
  margin: 0 16px 16px 16px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fbfcfe;
  overflow: hidden;
}

.shot {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .shot {
    height: 220px;
  }

  .admin-wrap .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .admin-wrap .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.feature-foot {
  padding: 0 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111827;
}

.feature-foot small {
  color: #6b7280;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1d4ed8;
}

.cta-strip {
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  background: #f8fafc;
  padding: 18px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.card-lite {
  border: 1px solid rgba(0,0,0,.08);
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.muted {
  font-size: 13px;
  color: rgba(0,0,0,.65);
}

.smallcaps {
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,.6);
}

/* ---------------------------------------------------------
   PROGRESS
--------------------------------------------------------- */

.progress-thin {
  height: 8px;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.kpi-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.kpi-sub {
  font-size: .9rem;
  color: rgba(0,0,0,.6);
}

.list-check li {
  margin-bottom: .35rem;
}

.topbar-title {
  font-size: 1.05rem;
}

.topbar-status .small {
  line-height: 1.25;
}


/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */

.d-flex {
  display: flex;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.align-items-center {
  align-items: center;
}

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */

.justify-content-center {
  justify-content: center;
}

/* ---------------------------------------------------------
   PLAN / PRICING
--------------------------------------------------------- */

.plan-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.plan-features li {
  padding-left: 1.4rem;
  margin-bottom: .45rem;
  position: relative;
  font-size: .9rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0d6efd;
  font-weight: 600;
}

.plan-features-wrap {
  margin-top: .25rem;
  text-align: left;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.setup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.setup-list li {
  display: flex;
  gap: .75rem;
  margin-bottom: .75rem;
}

.setup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: .4rem;
  flex-shrink: 0;
  background: #adb5bd;
  flex: 0 0 10px;
}

.setup-list li.is-done .setup-dot {
  background: #198754;
}

.setup-list li.is-missing .setup-dot {
  background: #dc3545;
}

.setup-list li.is-neutral .setup-dot {
  background: #6c757d;
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */

.table thead th {
  background-color: #ffffff;
}

/* ---------------------------------------------------------
   QUOTES / PDF
--------------------------------------------------------- */

.quote-dot {
  color: #adb5bd;
  opacity: .5;
}

/* ---------------------------------------------------------
   STAT CARDS / KPIs
--------------------------------------------------------- */

.stat-sub {
  font-size: .85rem;
  color: #6c757d;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   PLAN / PRICING
--------------------------------------------------------- */

.plan-features-center {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  /* ---------------------------------------------------------
     QUOTES / PDF
  --------------------------------------------------------- */

  .quote-pdf-grid {
    grid-template-columns: 1fr;
  }

  .pdf-span-2 {
    grid-column: auto;
  }

  /* ---------------------------------------------------------
     PLAN / PRICING
  --------------------------------------------------------- */

  .plan-features-center {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.export-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.export-title {
  font-weight: 700;
  font-size: .9rem;
}

.export-sub {
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.export-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-form button {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.export-field {
  display: flex;
  flex-direction: column;
}

.export-customers {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------------------------------------------------------
   STAT CARDS / KPIs
--------------------------------------------------------- */

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: currentColor;
  opacity: .25;
}

.stat-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #212529;
}

.stat-primary {
  color: #0d6efd;
}

.stat-success {
  color: #198754;
}

.stat-money {
  color: #0f766e;
}

.stat-warning {
  color: #b45309;
}

@media (min-width: 768px) {
  /* ---------------------------------------------------------
     UTILITIES
  --------------------------------------------------------- */

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .printer-row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .printer-left {
    flex: 3 1 0;
    min-width: 0;
  }

  .printer-right {
    flex: 1 0 220px;
    justify-content: flex-end;
  }

  /* ---------------------------------------------------------
     STAT CARDS / KPIs
  --------------------------------------------------------- */

  .stat-value {
    font-size: 2rem;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .admin-wrap .kpi {
    grid-column: span 4;
  }
}

/* ---------------------------------------------------------
   STAT CARDS / KPIs
--------------------------------------------------------- */

.stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .kpi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.admin-wrap .kpi {
  grid-column: span 12;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  background: #fff;
  padding: 14px 14px;
}

@media (min-width: 768px) {
  /* ---------------------------------------------------------
     UTILITIES
  --------------------------------------------------------- */

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .printer-row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .printer-left {
    flex: 3 1 0;
    min-width: 0;
  }

  .printer-right {
    flex: 1 0 220px;
    justify-content: flex-end;
  }

  /* ---------------------------------------------------------
     STAT CARDS / KPIs
  --------------------------------------------------------- */

  .stat-value {
    font-size: 2rem;
  }

  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .admin-wrap .kpi {
    grid-column: span 4;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .kpi .kpi-label {
  font-size: .8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-wrap .kpi .kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 4px;
}

.admin-wrap .kpi .kpi-sub {
  margin-top: 6px;
  font-size: .9rem;
  color: #6c757d;
}

.admin-wrap .panel {
  border: 1px solid #e9ecef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.admin-wrap .panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-wrap .panel-title {
  font-weight: 700;
}

.admin-wrap .panel-body {
  padding: 14px 16px;
}

.admin-wrap .range-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-wrap .range-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dee2e6;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #495057;
  font-size: .9rem;
  background: #f8f9fa;
}

.admin-wrap .range-pill.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */

.admin-wrap .mini-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-wrap .mini-table th,
.admin-wrap .mini-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f5;
  vertical-align: middle;
}

.admin-wrap .mini-table th {
  font-size: .8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
}

.admin-wrap .mini-table td:last-child,
.admin-wrap .mini-table th:last-child {
  text-align: right;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .muted {
  color: #6c757d;
}

/* ---------------------------------------------------------
   BADGES
--------------------------------------------------------- */

.admin-wrap .badge-soft {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.admin-wrap .badge-dtf {
  background: #e7f1ff;
  color: #0d6efd;
}

.admin-wrap .badge-emb {
  background: #e9f7ef;
  color: #198754;
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .shot {
    height: 220px;
  }

  .admin-wrap .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .admin-wrap .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px) {
  /* ---------------------------------------------------------
     MISC
  --------------------------------------------------------- */

  .shot {
    height: 220px;
  }

  .admin-wrap .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .admin-wrap .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------------------------------------------------------
   MISC
--------------------------------------------------------- */

.admin-wrap .small-note {
  font-size: .9rem;
  color: #6c757d;
}

.badge-count {
 background: #909294!important;
}

/* Desktop segmented filters for My Quotes */
@media (min-width: 768px){
  .mq-desktopbar{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }

  .mq-desktopbar .mq-left{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
  }

  .mq-desktopbar .mq-mid{
    flex: 1 1 320px;
    min-width: 260px;
  }

  .mq-desktopbar .mq-right{
    display:flex;
    gap:10px;
    align-items:center;
    margin-left:auto;
    justify-content:flex-end;
    flex-wrap:wrap;
  }

  .mq-seg{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
  }

  .mq-seg a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:.38rem .65rem;
    border-radius:999px;
    text-decoration:none;
    font-weight:700;
    white-space:nowrap;
    color:#334155;
    border:1px solid transparent;
  }

  .mq-seg a.is-active{
    background:#fff;
    border-color:#cbd5e1;
    box-shadow:0 1px 0 rgba(0,0,0,.03);
    color:#0f172a;
  }

  .mq-seg .mq-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.15rem .45rem;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    background:#e2e8f0;
    border:1px solid rgba(0,0,0,.10);
    color:#334155;
  }
}

.select-tall{
  padding-top:.55rem !important;
  padding-bottom:.55rem !important;
}

.dropdown-menu{
  overflow: hidden;          /* clips hover to the menu box */
  border-radius: 10px;       /* match your menu radius */
}

.toast-growl{
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#16a34a;
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  max-width: min(92vw, 380px);
}
.toast-msg{ font-weight:800; font-size:.92rem; }
.toast-x{
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  line-height:1;
  opacity:.85;
  cursor:pointer;
}
.toast-x:hover{ opacity:1; }

@media (max-width: 575.98px){
  .toast-growl{
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
}

.qb-inline-save{
  flex-basis: 100%;
  font-size: .78rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}

.qb-inline-save.is-show{
  opacity: 1;
  transform: translateY(0);
}

.qb-inline-save.is-error{
  color: #dc2626;
}

.toast-growl{
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  max-width: min(92vw, 380px);
  opacity: 1;
  transition: opacity .15s ease, transform .15s ease;
}

.toast-success{ background:#16a34a; }
.toast-error{ background:#dc2626; }

.toast-msg{ font-weight:800; font-size:.92rem; }
.toast-x{
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  line-height:1;
  opacity:.85;
  cursor:pointer;
}
.toast-x:hover{ opacity:1; }

.toast-hide{
  opacity:0;
  transform: translateY(-4px);
}

@media (max-width: 575.98px){
  .toast-growl{
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
}

