:root { --brand:#E64A19; --ink:#1f2933; --muted:#6b7280; --line:#e5e7eb; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:#fff; }
.top { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; border-bottom:3px solid var(--brand); }
.brand { font-weight:700; color:var(--brand); text-decoration:none; }
.brand span { color:var(--muted); font-weight:400; }
main { max-width:1100px; margin:0 auto; padding:20px; }
a { color:var(--brand); }
h1 { margin:.2em 0; } h2 { margin:0 0 .5em; font-size:1.1em; } h3 { margin:1em 0 .4em; }
.card { border:1px solid var(--line); border-radius:12px; padding:16px; margin:16px 0; }
.narrow { max-width:360px; margin:60px auto; }
.narrow label { display:block; margin:12px 0; }
.narrow input { display:block; width:100%; padding:8px; margin-top:4px; }
.search { display:flex; gap:8px; margin-bottom:16px; }
.search input { flex:1; padding:10px; border:1px solid var(--line); border-radius:8px; }
button { background:var(--brand); color:#fff; border:0; border-radius:8px; padding:9px 16px; cursor:pointer; }
.scroll { overflow-x:auto; }
.grid { width:100%; border-collapse:collapse; }
.grid th, .grid td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.grid th { color:var(--muted); font-weight:600; font-size:.85em; }
.kv th { text-align:left; color:var(--muted); font-weight:500; padding:2px 16px 2px 0; width:170px; vertical-align:top; }
.conn td { color:#b45309; font-size:.85em; }
.badge { display:inline-block; font-size:.7em; padding:2px 8px; border-radius:999px; vertical-align:middle; }
.bad { background:#fee2e2; color:#991b1b; }
.muted { color:var(--muted); } .error { color:#991b1b; }
.note { background:#f9fafb; padding:8px 10px; border-radius:8px; }
.tabs { display:flex; gap:4px; margin-bottom:12px; background:#f3f4f6; border-radius:10px; padding:4px; }
.tabs a { flex:1; text-align:center; padding:8px; border-radius:8px; text-decoration:none; color:var(--muted); font-weight:600; }
.tabs a.on { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.12); }

.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.filters input, .filters select { padding:9px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }
.filters .grow { flex:1; min-width:220px; }
.filters .reset { align-self:center; }

.pcard { display:block; text-decoration:none; color:inherit; border:1px solid var(--line); border-left:4px solid var(--brand);
         border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.pcard:hover { box-shadow:0 2px 8px rgba(0,0,0,.08); }
.pcard.cancelled { border-left-color:#dc2626; }
.row { display:flex; align-items:center; gap:8px; }
.grow { flex:1; }
.small { font-size:.85em; }
.route { margin-top:8px; font-weight:600; }


.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fdeee9;
    color: var(--brand);
    font-size: 8px;
    font-weight: 700;
}

.logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    box-sizing: border-box;
}


.legs { display:flex; align-items:center; gap:12px; margin:10px 0 6px; }
.legs > div { min-width:70px; }
.legs .mid { flex:1; text-align:center; }
.legs .r { text-align:right; }
.code { font-size:1.25em; font-weight:700; }
.line { height:1px; background:var(--line); position:relative; margin:8px 0; }
.line::after { content:"✈"; position:absolute; right:0; top:-9px; color:var(--brand); font-size:12px; background:#fff; padding-left:4px; }
.inline { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; margin:2px 8px 2px 0; }
.inline.wrap input, .inline.wrap select { padding:9px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.inline select { padding:6px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.ghost { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.flash { background:#ecfdf5; border:1px solid #a7f3d0; padding:12px 14px; border-radius:10px; margin:12px 0; }
.pw { font-family:ui-monospace,Menlo,monospace; font-size:1.25em; user-select:all; margin:6px 0; }
tr.off { opacity:.55; }
.badge:not(.bad) { background:#e5e7eb; color:#374151; }
.danger { background:#dc2626; }
.stack { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.stack textarea { padding:9px; border:1px solid var(--line); border-radius:8px; font:inherit; resize:vertical; }
.note-item { border-top:1px solid var(--line); padding:10px 0; }
/* ---- Sidebar layout ---- */
.layout { display:flex; min-height:100vh; }
.side { width:240px; flex:none; display:flex; flex-direction:column; gap:2px; padding:18px 12px;
        background:#fafafa; border-right:1px solid var(--line); position:sticky; top:0; height:100vh; overflow-y:auto; }
.side .brand { display:block; padding:4px 12px 14px; font-size:1.05em; line-height:1.2; }
.side .brand span { display:block; font-size:.75em; margin-top:2px; }
.grp { margin:16px 12px 4px; font-size:.7em; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.nav { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; color:var(--ink); text-decoration:none; }
.nav:hover { background:#f0f0f0; }
.nav.on { background:#fdeee9; color:var(--brand); font-weight:600; }
.ico { width:20px; text-align:center; }
.soon { margin-left:auto; font-size:.65em; background:#fef3c7; color:#92400e; padding:2px 7px; border-radius:999px; font-weight:600; }
.me { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.who { padding:6px 12px 8px; font-weight:600; }
.who span { display:block; font-weight:400; font-size:.8em; color:var(--muted); }
.content { flex:1; min-width:0; max-width:none; margin:0; padding:24px 28px; }
main.plain { max-width:480px; margin:0 auto; padding:20px; }
.center { text-align:center; padding:40px 16px; }
.big { font-size:2.5em; margin:0; }
details.addbox summary { cursor:pointer; font-weight:600; color:var(--brand); }
.filters { background:#f9fafb; border:1px solid var(--line); border-radius:12px; padding:12px; }

@media (max-width: 800px) {
  .layout { flex-direction:column; }
  .side { width:auto; height:auto; position:static; flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px;
          border-right:0; border-bottom:1px solid var(--line); padding:10px; }
  .side .brand { width:100%; padding-bottom:6px; }
  .grp, .who { display:none; }
  .me { margin-top:0; padding-top:0; border-top:0; display:flex; flex-wrap:wrap; gap:4px; width:100%; }
  .content { padding:16px; }
}

/* =========================================================
   Booking section redesign
   ========================================================= */

/* Page header with view switch */
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.page-head h1 { font-size:1.6em; margin:0; }
.page-head p { margin:4px 0 0; }

/* Segmented control (By PNR / All flights) */
.seg { display:inline-flex; background:#f3f4f6; border-radius:10px; padding:4px; gap:2px; }
.seg a { padding:7px 14px; border-radius:8px; text-decoration:none; color:var(--muted); font-weight:600; font-size:.92em; white-space:nowrap; }
.seg a.on { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.12); }

/* Search: one prominent box, filters beneath */
.search-bar { background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:14px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.search-input { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; padding:0 12px; background:#fafafa; }
.search-input:focus-within { border-color:var(--brand); background:#fff; box-shadow:0 0 0 3px rgba(230,74,25,.12); }
.search-input input { flex:1; border:0; outline:0; background:transparent; padding:11px 0; font:inherit; font-size:1.02em; min-width:0; }
.filter-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin-top:10px; }
.fld { display:flex; flex-direction:column; gap:3px; font-size:.75em; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.fld select, .fld input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-size:.95rem; text-transform:none; letter-spacing:0; color:var(--ink); min-width:150px; }
.filter-row > button { padding:9px 18px; }
.filter-row .reset { align-self:center; font-size:.9em; }

/* Summary strip */
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:16px; }
.stats > div { border:1px solid var(--line); border-radius:12px; padding:10px 14px; background:#fff; }
.stats span { display:block; font-size:.78em; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.stats strong { display:block; font-size:1.35em; margin-top:2px; line-height:1.2; }

/* Booking cards */
.bcard { display:block; text-decoration:none; color:inherit; background:#fff; border:1px solid var(--line); border-left:4px solid var(--brand);
         border-radius:12px; padding:14px 16px; margin-bottom:10px; transition:box-shadow .15s, transform .15s; }
.bcard:hover { box-shadow:0 4px 14px rgba(0,0,0,.08); transform:translateY(-1px); }
.bcard.is-cancelled { border-left-color:#dc2626; background:#fffafa; }
.bcard.is-cancelled .bcard-pax, .bcard.is-cancelled .route-chain { text-decoration:line-through; color:var(--muted); }
.bcard-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pnr-code { font-family:ui-monospace,Menlo,monospace; font-size:1.2em; font-weight:700; letter-spacing:.06em; }
.chip { background:#f3f4f6; color:#374151; font-size:.8em; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.bcard-pax { font-size:1.02em; font-weight:600; margin-top:8px; }
.bcard-route { display:flex; align-items:center; gap:8px; margin-top:6px; }
.route-chain { font-weight:600; color:var(--ink); letter-spacing:.02em; }
.bcard-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin-top:10px; padding-top:8px; border-top:1px dashed var(--line); font-size:.85em; color:var(--muted); }
.hint { font-weight:700; color:var(--ink); background:#f3f4f6; padding:1px 8px; border-radius:6px; }
.hint.soon { background:#fdeee9; color:var(--brand); }

/* All-flights cards reuse the booking card look */
.fcard-airline { display:flex; flex-direction:column; line-height:1.25; }
.fcard .legs { margin:8px 0 4px; }
.fcard .legs > div { min-width:80px; }

/* Empty state */
.empty { text-align:center; padding:32px 16px; border:1px dashed var(--line); border-radius:12px; display:flex; flex-direction:column; gap:4px; color:var(--ink); }
.empty a { margin-top:8px; font-weight:600; }

/* Status badges */
.badge.ok { background:#d1fae5; color:#065f46; }
.badge:not(.bad):not(.ok) { background:#e5e7eb; color:#374151; }

/* Detail page header */
.crumbs { margin:0 0 6px; font-size:.9em; }
.bhead { margin-bottom:14px; }
.bhead-main { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.bhead-pnr { font-family:ui-monospace,Menlo,monospace; letter-spacing:.08em; margin:0; font-size:1.8em; }
.bhead p { margin:6px 0 0; }

/* Detail layout: details on the left, actions and contact on the right */
.detail { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start; }
.detail-main .card, .detail-side .card { margin:0 0 16px; }
.detail-side { position:sticky; top:16px; }
.detail-side h2 { font-size:1em; }
.detail-side input, .detail-side textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.detail-side input[type=file] { padding:6px 0; border:0; }
.detail-side .stack { margin-bottom:0; }
.detail-side .stack.bordered { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.fld-block { display:flex; flex-direction:column; gap:3px; font-size:.8em; color:var(--muted); font-weight:600; }
.fld-block input { font-size:.95rem; color:var(--ink); font-weight:400; }
.contact-line { margin:6px 0; word-break:break-word; }
.ticket h2 { font-size:1.05em; }
.ticket .kv th { width:130px; }
.detail-main .grid td, .detail-main .grid th { white-space:nowrap; }
.detail-main .grid td:first-child, .detail-main .grid th:first-child { white-space:normal; }

@media (max-width: 1000px) {
  .detail { grid-template-columns:1fr; }
  .detail-side { position:static; }
}
@media (max-width: 800px) {
  .fld, .fld select, .fld input { width:100%; }
  .fld select, .fld input { min-width:0; }
  .filter-row > * { flex:1 1 140px; }
  .filter-row > button { flex:1 1 100%; }
  .bcard { padding:12px; }
  .detail-main .grid td, .detail-main .grid th { white-space:normal; }
}

/* =========================================================
   Booking filters + tabs (matches the Daily Reports filter bar)
   ========================================================= */
.view-tabs { display:flex; border-bottom:2px solid var(--line); margin:4px 0 14px; }
.view-tabs a { padding:12px 22px; text-decoration:none; color:var(--muted); font-weight:700; font-size:1.05em;
               border-bottom:3px solid transparent; margin-bottom:-2px; }
.view-tabs a:hover { color:var(--ink); }
.view-tabs a.on { color:var(--brand); border-bottom-color:var(--brand); }
.vt-ico { margin-right:4px; }

.bk-search { display:flex; gap:8px; margin-bottom:10px; }
.bk-search input { flex:1; padding:11px 14px; border:1px solid var(--line); border-radius:10px; font:inherit; font-size:1em; background:#fff; min-width:0; }
.bk-search input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(230,74,25,.12); }

.bk-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin:0 0 14px; padding:14px 16px;
              border:1px solid var(--line); border-radius:12px; background:#f9fafb; }
.bk-filters label { display:flex; flex-direction:column; gap:4px; font-size:.75em; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.bk-filters select, .bk-filters input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit;
                                        color:var(--ink); text-transform:none; letter-spacing:0; font-weight:400; min-width:150px; }
.bk-filters button { padding:9px 18px; }
.bk-reset { align-self:center; font-size:.9em; }

/* Priority cards in the booking side column */
.detail-side .card.priority { border-color:var(--brand); box-shadow:0 0 0 1px rgba(230,74,25,.15); }
.detail-side .card.priority h2 { font-size:1.1em; color:var(--brand); }
.detail-side .note-item { padding:10px 0; }
.detail-side .note-item strong { color:var(--ink); }

/* =========================================================
   Copy buttons: small, quiet grey icons
   ========================================================= */
.copy-btn { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; margin-left:6px;
            width:24px; height:24px; padding:0; background:transparent; color:#9ca3af; border:1px solid transparent;
            border-radius:6px; cursor:pointer; }
.copy-btn:hover { color:#4b5563; border-color:var(--line); background:#f9fafb; }
.copy-btn:focus-visible { outline:2px solid #d1d5db; outline-offset:1px; }
.copy-btn.copied { color:#6b7280; }
.copy-val { font-family:ui-monospace,Menlo,monospace; letter-spacing:.02em; }
.bhead-main .grow { flex:1; }

/* =========================================================
   Colour-coded booking list (less bold, one colour per kind of info)
   ========================================================= */
.stat { border-radius:12px; padding:10px 14px; border:1px solid var(--line); background:#fff; }
.stat span { font-weight:500; }
.stat strong { font-weight:600; }
.stat-blue  { background:#eff6ff; border-color:#dbeafe; } .stat-blue strong  { color:#1e40af; }
.stat-amber { background:#fffbeb; border-color:#fde68a; } .stat-amber strong { color:#92400e; }
.stat-red   { background:#fef2f2; border-color:#fecaca; } .stat-red strong   { color:#991b1b; }

.bcard { border-left-color:#14b8a6; }
.bcard.is-cancelled { border-left-color:#f87171; }
.pnr-code { font-weight:600; color:#0f766e; letter-spacing:.06em; }
.bcard-pax { font-weight:500; color:var(--ink); }
.route-chain { font-weight:500; color:#1d4ed8; }
.bcard-meta { border-top-color:#eef0f3; }
.bcard-meta .dep { color:#374151; font-weight:500; }
.bcard-meta .when { color:#6b7280; }
.hint { font-weight:600; border-radius:999px; padding:1px 9px; }
.hint-now    { background:#fef3c7; color:#92400e; }
.hint-future { background:#e0f2fe; color:#075985; }
.hint-past   { background:#f3f4f6; color:#6b7280; }
.chip-flights { background:#ccfbf1; color:#115e59; }
.chip-attach  { background:#f3e8ff; color:#6b21a8; }
.tag-agent { font-size:.8em; padding:1px 9px; border-radius:6px; background:#fdf2f8; color:#9d174d; white-space:nowrap; }
.fcard .code { color:#1d4ed8; font-weight:600; }
.fcard-airline strong { font-weight:500; }

/* =========================================================
   Booking detail: clearer sections, quieter labels
   ========================================================= */
.card h2 { font-size:1em; font-weight:600; color:var(--ink); margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid #eef0f3; }
.kv { width:100%; border-collapse:collapse; margin:4px 0 10px; }
.kv th { width:150px; padding:7px 12px 7px 0; font-size:.72em; text-transform:uppercase; letter-spacing:.05em; color:#6b7280; font-weight:600; border-bottom:1px solid #f1f2f4; vertical-align:top; }
.kv td { padding:7px 0; border-bottom:1px solid #f1f2f4; font-weight:400; color:var(--ink); }
.ticket h2 { font-size:1em; }
.ticket h2 small { font-weight:400; }
.detail-main .grid th { color:#6b7280; font-size:.72em; text-transform:uppercase; letter-spacing:.04em; font-weight:600; padding:8px 10px; background:#f9fafb; }
.detail-main .grid td { font-weight:400; }
.detail-main h3 { font-size:.85em; text-transform:uppercase; letter-spacing:.05em; color:#6b7280; font-weight:600; margin:14px 0 6px; }

.money-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin:2px 0 14px; }
.mt { border-radius:10px; padding:10px 12px; border:1px solid; }
.mt span { display:block; font-size:.7em; text-transform:uppercase; letter-spacing:.05em; font-weight:600; opacity:.85; }
.mt strong { display:block; font-size:1.1em; font-weight:600; margin-top:3px; font-variant-numeric:tabular-nums; }
.mt-blue   { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.mt-slate  { background:#f8fafc; border-color:#e2e8f0; color:#334155; }
.mt-green  { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.mt-violet { background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
.mt-amber  { background:#fffbeb; border-color:#fde68a; color:#92400e; }

.detail-side .card h2 { font-weight:600; }
.detail-side .card.priority h2 { color:#c2410c; }

/* =========================================================
   FlightsHub brand palette (taken from the logo)
   Orange-red for actions, navy and sky blue for text and headings,
   aqua and cyan for accents. Applies to the whole admin, including Daily Reports.
   ========================================================= */
:root {
  --brand:#F9542C;             /* logo orange-red: buttons, active tab, alerts */
  --navy:#0A4A94;              /* logo deep blue: headings, PNR codes */
  --sky:#2F9BD7;               /* logo sky blue: links, passenger names */
  --aqua:#00A8D4;              /* logo aqua: accents, route lines */
  --cyan:#00D8EE;              /* logo bright cyan */
  --ink:#1D3557;               /* dark navy body text, instead of black */
  --muted:#5B7A99;             /* blue-grey for secondary text */
  --line:#D6E6F2;              /* pale blue borders */
  --tint-orange:#FEEDE8;
  --tint-navy:#E6EEF8;
  --tint-sky:#E4F2FB;
  --tint-aqua:#E0F7FC;
}
body { color:var(--ink); }
a { color:var(--sky); }
h1, h2, h3 { color:var(--navy); font-weight:600; }
.top { border-bottom-color:var(--brand); }
.brand { color:var(--brand); }
.brand span { color:var(--sky); }
.grp { color:var(--sky); font-weight:600; }
.nav { color:var(--navy); font-weight:500; }
.nav:hover { background:var(--tint-sky); }
.nav.on { background:var(--tint-orange); color:var(--brand); font-weight:600; }
.who { color:var(--navy); font-weight:600; }
.who span { color:var(--aqua); font-weight:500; }
.side { background:#F4F9FD; border-right-color:var(--line); }
.me { border-top-color:var(--line); }
.card { border-color:var(--line); }
.card h2 { color:var(--navy); border-bottom-color:#E4EEF6; }
.note { background:#F4F9FD; }
.flash { background:var(--tint-aqua); border-color:#9EE3F2; color:#00515F; }
.error { color:#B42318; }
.empty { border-color:#9FD3EC; color:var(--navy); }

/* Lists and filters */
.view-tabs { border-bottom-color:var(--line); }
.view-tabs a { color:var(--sky); font-weight:600; }
.view-tabs a:hover { color:var(--navy); }
.view-tabs a.on { color:var(--brand); border-bottom-color:var(--brand); }
.bk-search input, .bk-filters select, .bk-filters input { border-color:var(--line); color:var(--ink); }
.bk-search input:focus { border-color:var(--sky); box-shadow:0 0 0 3px rgba(47,155,215,.15); }
.bk-filters { background:#F4F9FD; border-color:var(--line); }
.bk-filters label { color:var(--navy); font-weight:600; }
.bk-reset { color:var(--sky); }
.stat { border-color:var(--line); }
.stat span { color:var(--muted); }
.stat-blue  { background:var(--tint-sky);    border-color:#B9E0F5; } .stat-blue strong  { color:var(--navy); }
.stat-amber { background:var(--tint-orange); border-color:#FCC9B8; } .stat-amber strong { color:#B93B12; }
.stat-red   { background:#FEF2F2;            border-color:#FECACA; } .stat-red strong   { color:#B42318; }

.bcard { border-left-color:var(--aqua); background:#fff; }
.bcard:hover { box-shadow:0 4px 14px rgba(10,74,148,.10); }
.bcard.is-cancelled { border-left-color:#F87171; background:#FFFAFA; }
.pnr-code { color:var(--navy); font-weight:600; }
.bcard-pax { color:var(--sky); font-weight:500; }
.route-chain { color:#00809E; font-weight:500; }
.bcard-meta { color:var(--muted); border-top-color:#E4EEF6; }
.bcard-meta .dep { color:var(--navy); font-weight:500; }
.bcard-meta .when { color:var(--muted); }
.hint-now    { background:var(--tint-orange); color:#B93B12; }
.hint-future { background:var(--tint-aqua);   color:#00677F; }
.hint-past   { background:#EEF2F6;            color:var(--muted); }
.chip { color:var(--navy); }
.chip-flights { background:var(--tint-aqua); color:#00677F; }
.chip-attach  { background:var(--tint-navy); color:var(--navy); }
.tag-agent { background:var(--tint-orange); color:#B93B12; font-weight:500; }
.fcard .code { color:var(--navy); }
.fcard-airline strong { color:var(--navy); }
.fcard-airline .small { color:var(--muted); }

/* Booking detail */
.bhead-pnr { color:var(--navy); font-weight:600; }
.badge.ok { background:var(--tint-aqua); color:#00677F; }
.bad { background:#FEE4E2; color:#B42318; }
.crumbs a { color:var(--sky); }
.kv th { color:var(--muted); }
.kv td { color:var(--ink); font-weight:400; }
.detail-main .grid th { background:#F4F9FD; color:var(--navy); }
.detail-main .grid td { color:var(--ink); }
.detail-main h3 { color:var(--sky); }
.detail-side .card.priority { border-color:var(--brand); box-shadow:0 0 0 1px rgba(249,84,44,.18); }
.detail-side .card.priority h2 { color:var(--brand); }
.note-item { border-top-color:#E4EEF6; }
.note-item strong { color:var(--navy); }
.contact-line a { color:var(--sky); }
.money-tiles .mt-slate  { background:var(--tint-navy); border-color:#C9D8EC; color:var(--navy); }
.mt-blue   { background:var(--tint-sky);    border-color:#B9E0F5; color:var(--navy); }
.mt-green  { background:var(--tint-aqua);   border-color:#9EE3F2; color:#00677F; }
.mt-violet { background:var(--tint-navy);   border-color:#C9D8EC; color:var(--navy); }
.mt-amber  { background:var(--tint-orange); border-color:#FCC9B8; color:#B93B12; }

/* Buttons and small controls */
.copy-btn { color:#7C9AB8; }
.copy-btn:hover { color:var(--navy); background:var(--tint-sky); border-color:var(--line); }
.danger { background:#D92D20; }
.ghost { background:#fff; color:var(--brand); border-color:var(--brand); }
.seg a.on { color:var(--navy); }

/* Daily Reports */
.rp-title, .rp-head h1 { color:var(--navy); }
.rp-kpi .k { color:var(--muted); }
.rp-kpi .v { color:var(--navy); }
.rp-kpi.attn .v { color:#B42318; }
.rp-kpi.attn.zero .v { color:#00677F; }
.rp-table th { color:var(--navy); background:#F4F9FD; }
.rp-table th.grp { background:var(--tint-sky); color:var(--navy); border-color:#B9E0F5; }
.rp-table td { color:var(--ink); }
.rp-table tbody tr:hover td { background:#F7FBFE; }
.rp-date { color:var(--sky); }
.rp-filters label { color:var(--navy); }
.rp-filters select, .rp-filters input { border-color:var(--line); color:var(--ink); }
.rp-card { border-color:var(--line); }
.rp-card-head { border-bottom-color:var(--line); }
.chip.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.chip:hover { border-color:var(--sky); }

/* =========================================================
   Navy sidebar, cyan accents and clearer spacing
   ========================================================= */
.side { background:linear-gradient(180deg,#0A4A94 0%,#0B5FA8 100%); border-right:0; }
.side .brand { color:#fff; }
.side .brand span { color:#BDE7F7; }
.grp { color:#7FD4EE; }
.nav { color:#E6F0FA; }
.nav:hover { background:rgba(255,255,255,.12); }
.nav.on { background:var(--brand); color:#fff; box-shadow:0 2px 8px rgba(249,84,44,.35); }
.nav.on .ico { filter:none; }
.soon { background:#00D8EE; color:#003B4A; }
.me { border-top-color:rgba(255,255,255,.2); }
.who { color:#fff; }
.who span { color:#9FD9EE; }
.side .me .nav { color:#E6F0FA; }

.card { padding:18px 20px; }
.card h2 { margin-bottom:14px; padding-bottom:10px; }
.money-tiles { margin:6px 0 18px; gap:12px; }
.mt { padding:12px 14px; }
.mt strong { font-size:1.15em; }
.mt-blue { border-top:3px solid var(--sky); }
.mt-green { border-top:3px solid var(--aqua); }
.mt-amber { border-top:3px solid var(--brand); }
.mt-slate { border-top:3px solid var(--navy); }
.mt-violet { border-top:3px solid var(--cyan); }
.kv th { padding:9px 18px 9px 0; }
.kv td { padding:9px 0; }
.detail-main h3 { margin:20px 0 8px; }
.detail-main .grid td { padding:10px 12px; }
.detail-main .grid th { padding:9px 12px; }
.note { margin:14px 0 6px; padding:10px 12px; }
.detail-side .card { padding:16px 18px; }
.detail-side .stack { gap:10px; }
.bcard { padding:16px 18px; }

/* =========================================================
   Two separate date filters: Booked (aqua) and Flight date (orange)
   ========================================================= */
.bk-filters { display:flex; flex-direction:column; gap:0; padding:0; overflow:hidden; }
.fgroup { display:flex; flex-wrap:wrap; align-items:center; gap:8px 8px; padding:12px 16px; }
.fg-booked { background:#EEF9FD; border-bottom:1px solid #CFEAF6; }
.fg-flight { background:#FFF6F2; border-bottom:1px solid #FBDCCD; }
.fg-common { background:#F7FAFD; gap:14px; }
.fg-title { min-width:112px; font-size:.75em; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.fg-booked .fg-title { color:#00768F; }
.fg-flight .fg-title { color:#C2410C; }
.fgchip { position:relative; cursor:pointer; }
.fgchip input { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.fgchip span { display:inline-block; padding:6px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--navy); font-size:.88em; font-weight:500; user-select:none; }
.fgchip:hover span { border-color:var(--sky); }
.fg-booked .fgchip input:checked + span { background:#00A8D4; border-color:#00A8D4; color:#fff; font-weight:600; }
.fg-flight .fgchip input:checked + span { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:600; }
.fgchip input:focus-visible + span { outline:2px solid var(--navy); outline-offset:2px; }
.fg-dates { display:inline-flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin-left:6px; }
.fg-dates label, .fld-inline { display:flex; flex-direction:column; gap:3px; font-size:.72em; font-weight:600; color:var(--navy); text-transform:uppercase; letter-spacing:.04em; }
.fg-dates input, .fld-inline select { padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-size:.95rem; color:var(--ink); text-transform:none; letter-spacing:0; font-weight:400; min-width:150px; }
.fg-dates button { padding:8px 16px; }
.fg-common .bk-reset { margin-left:auto; }
@media (max-width: 800px) {
  .fg-title { min-width:0; width:100%; }
  .fg-common .bk-reset { margin-left:0; }
}

/* Filter panel: fix the right-alignment and keep the groups stacked on the left */
.bk-filters { align-items:stretch; justify-content:flex-start; text-align:left; }
.bk-filters .fgroup { justify-content:flex-start; }
.fg-mode { background:#F4F9FD; border-bottom:1px solid var(--line); }
.fg-mode .fg-title { color:var(--navy); }
.fg-mode .fgchip input:checked + span { background:var(--navy); border-color:var(--navy); color:#fff; font-weight:600; }

/* =========================================================
   Booking period bar (like Daily Reports): mode, quick choices, previous/next arrows
   ========================================================= */
.bk-bar { background:#F7FAFC; border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:14px; }
.bk-top { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.bk-mode { display:inline-flex; background:#fff; border:1px solid var(--line); border-radius:999px; padding:3px; }
.bk-mode label { position:relative; cursor:pointer; }
.bk-mode input { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.bk-mode span { display:inline-block; padding:6px 16px; border-radius:999px; font-size:.86em; font-weight:600; color:var(--muted); }
.bk-mode input:checked + span { background:var(--navy); color:#fff; }
.bk-mode input:focus-visible + span { outline:2px solid var(--sky); outline-offset:2px; }
.bk-quick { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.bk-quick a { padding:6px 13px; border:1px solid var(--line); border-radius:999px; text-decoration:none; color:var(--navy); font-size:.88em; background:#fff; white-space:nowrap; }
.bk-quick a:hover { border-color:var(--sky); }
.bk-quick a.on { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:600; }
.bk-nav { display:flex; align-items:center; gap:16px; padding:12px 0; margin:12px 0; border-top:1px solid #E4EEF6; border-bottom:1px solid #E4EEF6; }
.bk-step { width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--navy); display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-size:1.5em; line-height:1; flex:none; }
.bk-step:hover { background:var(--tint-sky); border-color:var(--sky); }
.bk-step:focus-visible { outline:2px solid var(--sky); outline-offset:2px; }
.bk-label { display:flex; flex-direction:column; gap:2px; min-width:220px; }
.bk-tag { font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.bk-label strong { color:var(--navy); font-size:1.25em; font-weight:600; }
.bk-foot { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; }
.bk-foot label { display:flex; flex-direction:column; gap:4px; font-size:.72em; font-weight:600; color:var(--navy); text-transform:uppercase; letter-spacing:.04em; }
.bk-foot select, .bk-foot input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-size:.95rem; color:var(--ink); text-transform:none; letter-spacing:0; font-weight:400; min-width:150px; }
.bk-foot button { padding:9px 18px; }
.bk-foot .bk-reset { align-self:center; font-size:.9em; margin-left:auto; }
@media (max-width: 800px) {
  .bk-quick { justify-content:flex-start; }
  .bk-label { min-width:0; flex:1; }
}

/* Summary strip: aqua option for the middle figure */
.stat-aqua { background:var(--tint-aqua); border-color:#9EE3F2; }
.stat-aqua strong { color:#00677F; }

/* Finance: prominent figures, and "More figures" that opens */
.fin-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:4px 0 12px; }
.fin-kpi { padding:16px 18px; }
.fin-kpi strong { font-size:1.6em; }
.fin-more { border:1px solid var(--line); border-radius:12px; padding:10px 14px; margin-bottom:16px; background:#fff; }
.fin-more summary { cursor:pointer; font-weight:600; color:var(--sky); padding:4px 0; }
.fin-more .money-tiles { margin:12px 0 4px; }
.fin-more .mt strong { font-size:1em; }

/* Agent highlight: magenta, so it stands apart from the blue and orange used elsewhere */
.ab-name { background:#B5238F; }
.agent-banner { background:#FCE7F3; border-color:#F9A8D4; border-left-color:#B5238F; }
.agent-banner strong { color:#9D174D; }
.agent-banner .ab-clear { color:#9D174D; }
.tag-agent { background:#FCE7F3; color:#9D174D; }

/* Clickable tiles and the list banner */
.mt-link { display:block; text-decoration:none; color:inherit; transition:box-shadow .15s, transform .15s; }
.mt-link:hover { box-shadow:0 4px 14px rgba(0,0,0,.09); transform:translateY(-1px); }
.mt-hint { display:block; font-style:normal; font-size:.72em; margin-top:6px; text-decoration:underline; opacity:.85; }
.list-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:var(--tint-aqua); border:1px solid #9EE3F2; border-left:5px solid var(--aqua); border-radius:12px; padding:12px 16px; margin:0 0 14px; }
.list-banner span { color:var(--ink); }
.list-banner strong { color:#00677F; font-size:1.05em; margin:0 4px; }
.list-banner a { color:var(--navy); font-weight:600; }

/* Finance: the selected agent's name, in white on magenta */
.ab-name { color:#fff; font-weight:600; line-height:1.2; }

/* Finance: one Download menu */
.dl-menu { position:relative; display:inline-block; }
.dl-menu > summary { list-style:none; cursor:pointer; }
.dl-menu > summary::-webkit-details-marker { display:none; }
.dl-pop { position:absolute; right:0; top:calc(100% + 6px); z-index:30; min-width:300px; background:#fff; border:1px solid var(--line);
          border-radius:12px; box-shadow:0 10px 30px rgba(10,74,148,.18); padding:8px; }
.dl-pop a { display:block; padding:10px 12px; border-radius:8px; color:var(--navy); text-decoration:none; font-weight:600; }
.dl-pop a span { font-weight:400; color:var(--muted); }
.dl-pop a:hover { background:var(--tint-sky); }
.dl-title { font-size:.78em; font-weight:600; color:var(--navy); padding:6px 12px 4px; text-transform:uppercase; letter-spacing:.04em; }
.dl-note { font-size:.78em; color:var(--muted); padding:8px 12px 4px; border-top:1px solid #EEF2F6; margin-top:6px; }

/* Finance: the agent's name (or All Agents) in purple, no highlight */
.ab-name { display:inline; background:none; padding:0; margin-left:6px; border-radius:0; color:#7C3AED; font-size:1em; font-weight:700; line-height:inherit; }

/* Copied: light green on every copy button */
.copy-btn.copied { color:#16A34A; background:#DCFCE7; border-color:#86EFAC; }

/* Users: unsaved changes are shown on the row, not on the Save button */
.unsaved-badge { display:inline-block; margin-left:6px; font-size:.72em; font-weight:600; color:#B93B12; background:var(--tint-orange); padding:2px 8px; border-radius:999px; }
.unsaved-badge[hidden] { display:none; }
.unsaved-bar { background:var(--tint-orange); border:1px solid #FCC9B8; border-left:5px solid var(--brand); border-radius:10px; padding:10px 14px; margin:0 0 10px; color:var(--ink); }
.unsaved-bar[hidden] { display:none; }
.unsaved-bar strong { color:#B93B12; }
.grid tr.has-changes td { background:#FFF7F3; }
.grid tr.has-changes td:first-child { box-shadow:inset 4px 0 0 var(--brand); }

/* Users: three sections (Admins, Team Leaders, Agents) */
.user-section { margin:6px 0 22px; }
.sec-title { display:flex; align-items:center; gap:10px; font-size:1.05em; margin:14px 0 8px; padding-bottom:6px; border-bottom:2px solid; }
.sec-count { font-size:.72em; font-weight:700; padding:2px 10px; border-radius:999px; }
.sec-admin .sec-title { color:var(--brand); border-bottom-color:#FCC9B8; }
.sec-admin .sec-count { background:var(--tint-orange); color:#B93B12; }
.sec-lead .sec-title { color:#00809E; border-bottom-color:#9EE3F2; }
.sec-lead .sec-count { background:var(--tint-aqua); color:#00677F; }
.sec-agent .sec-title { color:var(--sky); border-bottom-color:#B9E0F5; }
.sec-agent .sec-count { background:var(--tint-sky); color:var(--navy); }
