/* ============================================================
   S2S Booking Form - V2 Inline Labels Override
   All field names as input-group-text prepends
   ============================================================ */

/* Inline label style — fixed width for alignment */
.ig-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    background: #e2e8f0;
    border-color: #adb5bd;
    min-width: 4.8rem;
    justify-content: center;
}

/* Section-tinted label backgrounds */
.border-start-blue .ig-label  { background: #d0ddef; color: #1e3a5f; }
.border-start-teal .ig-label  { background: #c5e8e3; color: #1a5c53; }
.border-start-indigo .ig-label { background: #d8d6f0; color: #3b3a8e; }
.border-start-green .ig-label { background: #e2e8f0; color: #334155; }
.border-start-dark .ig-label  { background: #fecdd3; color: #881337; min-width: auto; }

/* Payment group: white labels on dark blue */
.payment-group .ig-label {
    background: #2c4a7c;
    color: #ffffff;
    border-color: #1e3a5f;
}

/* Bump input font slightly since labels save vertical space */
.input-group .form-control,
.input-group .form-select {
    font-size: 0.92rem;
}

/* REQ toggle button — appended to Photog dropdown */
.req-toggle {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    letter-spacing: 0.03em;
    border-color: #adb5bd;
    color: #6c757d;
    background: #f8f9fa;
}
.req-toggle:hover {
    background: #fff3cd;
    color: #856404;
    border-color: #d97706;
}
.req-toggle.active {
    background: #d97706;
    color: #fff;
    border-color: #b45309;
}

/* Suppress depth and global btn overrides on tiny inline toggles */
.fee-off-toggle,
.hdhl-toggle,
.req-toggle,
.aaa-toggle {
    box-shadow: none !important;
    transform: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* *AAA* toggle — awaiting access info */
.aaa-toggle {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-color: #d97706;
    color: #d97706;
    background: #f8f9fa;
}
.aaa-toggle:hover {
    background: #fff3cd;
    color: #92400e;
    border-color: #d97706;
}
.aaa-toggle.active {
    background: #d97706 !important;
    color: #fff !important;
    border-color: #b45309 !important;
}

/* Fee-OFF toggle — suppress auto-added fees (Twilight, Weekend, Trip Charge) */
.fee-off-toggle {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 0.3rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    border-color: #adb5bd;
    color: #6c757d;
    background: #f8f9fa;
}
.fee-off-toggle:hover {
    background: #fecdd3;
    color: #881337;
    border-color: #e11d48;
}
.fee-off-toggle.active {
    background: #e11d48;
    color: #fff;
    border-color: #be123c;
}

/* Readonly fields — visible border + tinted background */
.form-control[readonly] {
    background: #e8edf3 !important;
    border: 1px dashed #94a3b8 !important;
    color: #334155;
}
/* Hide placeholders on readonly fields */
.form-control[readonly]::placeholder {
    color: transparent !important;
}
/* Subtle placeholders on editable fields */
.form-control::placeholder {
    color: #c0c5cc !important;
    font-size: 0.8em;
    font-style: italic;
}
/* Disabled selects/checkboxes — match readonly style.
   background-COLOR, not the `background` shorthand: the shorthand resets background-image too, and
   that is where Bootstrap draws the dropdown chevron. Tinting a disabled <select> with the shorthand
   silently erased its arrow, so it read as a plain text field and nobody could tell it was a
   dropdown at all. The dashed border and grey fill already say "locked"; the chevron still has to
   say "this is a select". */
select.form-select:disabled {
    background-color: #e8edf3 !important;
    border: 1px dashed #94a3b8 !important;
    color: #334155;
    opacity: 1;
}
/* Payment group inputs when readonly */
.payment-group .form-control[readonly] {
    background: #e8edf3 !important;
    border: 1px dashed #94a3b8 !important;
    color: #334155;
}
/* Disabled checkboxes */
input.form-check-input:disabled {
    opacity: 0.5;
}

/* ----- Bolder checkbox outlines -----
   Bootstrap's default border (1px, ~25% black) washes out against the tinted card
   backgrounds — an unchecked box is hard to see. Darken + thicken the outline so every
   checkbox reads clearly. Checked boxes keep Bootstrap's filled primary look (its
   :checked border-color rule outranks this one). */
.form-check-input {
    border-width: 1px;
    border-color: #334155;
}

/* #KOFOK (CCValid) is a READ-ONLY status, so it's a disabled checkbox and the rule
   above dims it to 50% — but it's meant to be read at a glance, not a greyed-out
   control. Keep it (and its "Valid" label) at full opacity so the bolder outline
   actually shows. id specificity beats :disabled, so no !important is needed. */
#KOFOK.form-check-input {
    opacity: 1;
}
#KOFOK:disabled ~ .form-check-label {
    opacity: 1;
}

/* Tighter rows since no label line above */
.row.g-1 { --bs-gutter-y: 0.2rem; }

/* Aux product qty inputs — narrow for 2-3 digit numbers */
.aux-qty {
    max-width: 3.5rem;
    padding: 0.15rem 0.25rem;
    font-size: 0.82rem;
    text-align: center;
}

/* ---- Product Category Grouping Boxes ---- */
.product-category-box {
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    padding: 0.4rem 0.5rem;
    height: 100%;
}
.product-category-box.cat-main {
    background: #fef9ed;
    border-color: #e0cfa0;
}
.product-category-box.cat-addons {
    background: #f3eef8;
    border-color: #c4b5e0;
}
.product-category-box.cat-aux {
    background: #fdf2f0;
    border-color: #e0b5ad;
}

/* +HDHL toggle — next to HD Video like REQ/OFF */
.hdhl-toggle {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 0.3rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    border-color: #6366f1;
    color: #6366f1;
    background: #f8f9fa;
}
.hdhl-toggle:hover {
    background: #d8d6f0;
    color: #3b3a8e;
    border-color: #6366f1;
}
.hdhl-toggle.active {
    background: #6366f1;
    color: #fff;
    border-color: #4f46e5;
}

/* Sticky client info bar — shows when scrolled past client section */
.sticky-client-bar {
    position: sticky;
    top: 36px; /* below navbar */
    z-index: 1025;
    background: #1a4d6e;
    color: #e2e8f0;
    padding: 0.2rem 0.75rem;
    font-size: 0.82rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-bottom: 2px solid #0d3a54;
}

/* ===== TYPEAHEAD DROPDOWN ===== */
.typeahead-wrapper {
  position: relative;
}
.typeahead-dropdown {
  position: fixed;
  z-index: 1050;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  max-height: 160px;
  overflow-y: auto;
  min-width: 750px;
}
.typeahead-item {
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.typeahead-item:last-child {
  border-bottom: none;
}
.typeahead-item:hover,
.typeahead-item.active {
  background: #e0f2fe;
}
.typeahead-item .ta-name {
  font-weight: 600;
  white-space: nowrap;
  width: 14rem;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.5rem;
}
.typeahead-item .ta-email {
  color: #64748b;
  font-size: 0.8rem;
  width: 16rem;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.5rem;
}
.typeahead-item .ta-phone {
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
  width: 8rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
}
.typeahead-item .ta-company {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.typeahead-item .ta-id {
  color: #94a3b8;
  font-size: 0.72rem;
  width: 3.2rem;
  flex-shrink: 0;
  text-align: right;
  padding-right: 0.4rem;
}
.typeahead-loading {
  padding: 0.5rem 0.75rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
}
.typeahead-empty {
  padding: 0.5rem 0.75rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
  font-style: italic;
}

/* Number inputs: no spinners.
 *
 * Operator report 2026-08-05: the SqFt box was "too small" — at col-md-1 the label took most of the
 * field and the up/down arrows took roughly half of the remainder, leaving a couple of visible
 * digits for a 4-5 digit number. The arrows earn nothing on any number field in this form (nobody
 * increments square footage, a floor count or a payment amount by one), and they cost width on
 * every one of them.
 *
 * `appearance: textfield` is the Firefox/standards spelling; the ::-webkit- rules cover Chrome and
 * Edge, which is what the office actually uses. Typing, paste and validation are unaffected — this
 * is purely the stepper chrome. */
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;
    appearance: textfield;
}

/* Duration that differs from the standard for the selected products.
   Deliberately quiet — the owner did not want a prompt on every product toggle (legacy showed a
   modal there and staff learned to click through it). A colour and a tooltip carry the signal
   instead, and they mark a LOADED booking whose stored duration never matched its products just
   as readily as one an operator typed. */
#duration.duration-offstandard {
    /* !important on the border only. Verified on the LIVE page: the tint and weight applied but
       the border did not — an input border rule elsewhere wins regardless of this selector's
       higher specificity. styles-v2.css already overrides input borders the same way (see the
       #d97706-adjacent rule above), so this follows the file's existing convention rather than
       inventing a new one. The box-shadow gives the mark a second, cascade-proof signal. */
    border-color: #d97706 !important;
    box-shadow: inset 0 0 0 1px #d97706;
    background-color: #fffbeb;
    font-weight: 600;
}
