/* Travel Suite design system.
   A navy shell with the company's own colours (--brand, --brand-2 from /brand.css) as accents.
   Layout uses logical properties (inline-start / inline-end), so Arabic (right to left) needs no second sheet. */
@import url("../fonts/fonts.e40e76be19f7.css");

:root {
  --brand: #8690E7; --brand-2: #C08A34;  /* as the company's website: periwinkle and gold */
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --brand-line: color-mix(in srgb, var(--brand) 30%, white);
  --navy: #0E1C38; --navy-2: #16305C; --navy-line: #2C3E66; --navy-text: #C5CBEE;
  --ink: #1C2333; --ink-2: #3C4658; --muted: #6A758B;
  --line: #E3E7EF; --line-2: #EDF0F6; --field: #D3DAE7;
  --canvas: #F1F3F7; --paper: #ffffff; --panel: #F7F8FC; --bg: #F7F8FC;
  --ok: #1F7A4D; --ok-bg: #E6F4EC; --ok-line: #CBE7D6;
  --warn: #8A5D00; --warn-bg: #FBF1DC; --warn-line: #F0DDB0;
  --bad: #B0402A; --bad-bg: #F9E3DE; --bad-line: #EBC3B9;
  --info-bg: #EAF1FD; --info-line: #C9DAF7;
  --s1: var(--brand); --s2: #D9734F; --s3: #2A8C7E; --s4: #8690E7; --s5: #C08A34; --s6: #A7AFBE;
  --radius: 12px; --radius-s: 9px;
  --shadow: 0 1px 2px rgba(15, 27, 54, .06), 0 4px 14px rgba(15, 27, 54, .05);
  --head: "Outfit", "Tajawal", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Tajawal", "Helvetica Neue", Arial, sans-serif;
  --side: 248px; --top: 60px;
  color-scheme: light;
}
:lang(ar) { --head: "Tajawal", "Outfit", Tahoma, sans-serif; --body: "Tajawal", "Source Sans 3", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { font-size: 15.5px; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); margin: 0 0 .6rem; font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.65rem; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; margin-block-start: 1.6rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6rem; }
a { color: var(--brand); text-underline-offset: 2px; }
small { font-size: .82rem; }
.muted { color: var(--muted); }
code.key { font-size: 1rem; letter-spacing: .08em; background: var(--panel); padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------- the shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: var(--navy-text);
  display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; margin-block-end: 6px; border-block-end: 1px solid var(--navy-line);
  color: #fff; text-decoration: none; font: 600 1.02rem/1.25 var(--head); }
.side-brand .mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; flex: none; }
.side-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8E98B3; padding: 14px 10px 4px; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-s); color: var(--navy-text);
  text-decoration: none; font-size: .95rem; }
.side a.nav:hover { background: var(--navy-2); color: #fff; }
.side a.nav[aria-current=page] { background: var(--brand); color: #fff; font-weight: 600; }
.side a.nav .count { margin-inline-start: auto; }
.side-foot { margin-block-start: auto; padding: 12px 8px 2px; border-block-start: 1px solid var(--navy-line); display: grid; gap: 8px; }
.side-foot .who { color: #fff; font-weight: 600; line-height: 1.25; }
.side-foot .who small { display: block; color: #8E98B3; font-weight: 400; }
.side-foot form { margin: 0; }
.side-foot button { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: 1px solid var(--navy-line);
  color: var(--navy-text); border-radius: var(--radius-s); padding: 7px 10px; cursor: pointer; font: inherit; font-size: .9rem; }
.side-foot button:hover { background: var(--navy-2); color: #fff; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top); background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-block-end: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.topbar .crumbs { color: var(--muted); font-size: .92rem; display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar .crumbs a { color: var(--ink-2); text-decoration: none; }
.topbar .crumbs a:hover { color: var(--brand); }
.topbar .right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.topbar form { margin: 0; }
.menu-btn { display: none; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 24px 56px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(82vw, 290px); z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  [dir=rtl] .side { transform: translateX(100%); }
  body.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 27, 54, .35); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  main { padding: 18px 14px 48px; }
}

/* ------------------------------------------------------------- plain pages (sign-in, invite, guests) */
body.plain { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.plain-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.plain-top .brandname { font: 600 1.05rem var(--head); color: var(--navy); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.plain-top .brandname img { height: 36px; width: auto; }
.plain-top .right { margin-inline-start: auto; }
.plain main { max-width: 1080px; padding-block-start: 8px; }
.auth { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; max-width: 980px; margin: 4vh auto 0; background: var(--paper);
  border-radius: 18px; box-shadow: 0 10px 40px rgba(15, 27, 54, .12); overflow: hidden; border: 1px solid var(--line); }
.auth-art { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, color-mix(in srgb, var(--brand) 70%, var(--navy)) 100%);
  color: #fff; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; font-size: 1.7rem; margin: 0 0 .6rem; }
.auth-art p { color: #D7DCEC; max-width: 30ch; }
.auth-art ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.auth-art li { display: flex; gap: 10px; align-items: center; color: #E8EBF5; }
.auth-art li .ico { color: var(--brand-2); }
.auth-art .ring { position: absolute; inset-inline-end: -120px; inset-block-end: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 48px solid color-mix(in srgb, var(--brand-2) 35%, transparent); }
.auth-form { padding: 40px 38px; }
.auth-form h1 { font-size: 1.5rem; }
.auth-form .card { box-shadow: none; border: 0; padding: 0; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; margin-top: 0; } .auth-art { min-height: 0; padding: 26px 24px; } .auth-art ul { display: none; } .auth-form { padding: 26px 22px; } }

/* ------------------------------------------------------------- page heads, cards, grids */
.page-head, .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-block-end: 18px; }
.page-head h1, .head-row h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.page-head .sub span { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-block-end: 6px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-block-end: 16px; min-width: 0; }
.card.narrow { max-width: 460px; margin-inline: auto; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > h3:first-child, .card-head h2 { margin-block-start: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-block-end: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .ico-box { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.card-head .hint, .card-head .act { margin-inline-start: auto; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-2 > .card, .grid-3 > .card { margin: 0; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* key numbers */
.stats, .kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-block-end: 18px; }
/* Tiles (the owner, 27 Oct 2026): 5 a row on a wide screen, 4 on a laptop, 3 on a tablet, 2 on a phone. */
@media (max-width: 1399px) { .stats, .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 999px) { .stats, .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .stats, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat, .kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.stat .n, .kpi .value { font: 600 1.7rem/1.15 var(--head); color: var(--navy); letter-spacing: -.01em; order: 2; }
.stat > span:not(.n), .kpi .label { font-size: .86rem; color: var(--muted); order: 1; }
.kpi .sub { font-size: .82rem; color: var(--ink-2); order: 3; }
.kpi .kico { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); }
.kpi.warn .kico, .stat.warn .kico { background: var(--warn-bg); color: var(--warn); }
.kpi.good .kico { background: var(--ok-bg); color: var(--ok); }
.stat.warn, .kpi.warn { border-color: var(--warn-line); }
.kpi .meter { order: 4; margin-block-start: 8px; }
.stats.money .stat .n { font-size: 1.4rem; }

/* ------------------------------------------------------------- buttons, tags, status */
button, .button { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px;
  border-radius: var(--radius-s); border: 1px solid var(--field); background: var(--paper); color: var(--navy); font-weight: 600; font-size: .93rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { border-color: var(--brand-line); background: var(--brand-soft); }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .button.primary:hover { background: color-mix(in srgb, var(--brand) 85%, black); }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--brand); font-weight: 600; text-decoration: none; }
button.link:hover { text-decoration: underline; background: none; }
button.link.danger, .danger { color: var(--bad); }
/* A secondary action: tinted, so it reads as a button and never as a title (portal a9551f7). */
button.ghost, .button.ghost { background: var(--brand-soft); border-color: var(--brand-line); color: var(--navy); }
button.ghost:hover, .button.ghost:hover { background: color-mix(in srgb, var(--brand) 20%, white); border-color: var(--brand); }
/* An action still to do: amber until it is done. */
button.todo, .button.todo { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
button.todo:hover, .button.todo:hover { background: color-mix(in srgb, var(--warn-line) 70%, white); border-color: color-mix(in srgb, var(--warn) 45%, white); }
button.small, .button.small { min-height: 30px; padding: 0 11px; font-size: .84rem; gap: 5px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
a.button.wide, button.wide { display: flex; width: 100%; }
.buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag, .pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .78rem; font-weight: 600;
  background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tag.on, .tag.good, .status-confirmed { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.tag.off, .tag.bad, .status-cancelled { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.tag.warn, .status-waiting_list, .status-pending_payment { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.status-new { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.nodot::before { display: none; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-2);
  color: #fff; font: 700 .75rem/1 var(--head); }

/* ------------------------------------------------------------- messages and banners */
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.messages li, .banner { padding: 11px 14px; border-radius: var(--radius-s); background: var(--info-bg); border: 1px solid var(--info-line); color: var(--ink); }
.messages li.success { background: var(--ok-bg); border-color: var(--ok-line); }
.messages li.error, .banner.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.banner { margin-block-end: 16px; }
.banner form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------- forms */
form > div, .card > div:not(.stats):not(.grid-2):not(.grid-3):not(.card-head):not(.scroll):not(.copy-row):not(.voucher-row):not(.change-head):not(.buttons) { margin-block-end: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-block-end: 5px; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=file], select, textarea {
  width: 100%; max-width: 34rem; padding: 9px 12px; border: 1px solid var(--field); border-radius: var(--radius-s); font: inherit; background: var(--paper); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); vertical-align: middle; }
input[type=color] { width: 4rem; height: 2.4rem; padding: 2px; border: 1px solid var(--field); border-radius: var(--radius-s); }
/* A file picker in the Apple way: a soft grey well, a white button raised on it, the file name quiet beside it. */
input[type=file] { padding: 5px; border-color: transparent; background: var(--canvas); border-radius: 12px; color: var(--muted); font-size: .88rem;
  cursor: pointer; transition: background-color .15s ease; }
input[type=file]:hover { background: color-mix(in srgb, var(--navy) 6%, var(--canvas)); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .86rem; color: var(--navy); background: var(--paper); border: 0;
  border-radius: 8px; padding: 7px 14px; margin-inline-end: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(14, 28, 56, .10), 0 0 0 .5px rgba(14, 28, 56, .14); transition: transform .1s ease, box-shadow .15s ease; }
input[type=file]::file-selector-button:hover { box-shadow: 0 2px 6px rgba(14, 28, 56, .14), 0 0 0 .5px rgba(14, 28, 56, .18); }
input[type=file]:active::file-selector-button { transform: scale(.97); }
.helptext, form .helptext { display: block; color: var(--muted); font-size: .82rem; margin-block-start: 4px; font-weight: 400; }
ul.errorlist { list-style: none; margin: 0 0 6px; padding: 0; color: var(--bad); font-size: .9rem; }
ul.errorlist.nonfield { padding: 10px 12px; background: var(--bad-bg); border: 1px solid var(--bad-line); border-radius: var(--radius-s); }
form div:has(> input[type=checkbox]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form div:has(> input[type=checkbox]) label { margin: 0; font-weight: 500; order: 2; }
form div:has(> input[type=checkbox]) input { order: 1; }
form div:has(> input[type=checkbox]) .helptext { order: 3; width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid > div:has(textarea), .form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; background: var(--paper); }
legend { font: 600 .95rem var(--head); color: var(--navy); padding: 0 6px; }
fieldset.perms { background: var(--paper); }
label.perm { display: flex; align-items: center; gap: 9px; font-weight: 500; padding: 4px 0; color: var(--ink); }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; }
.inline-form input[type=text] { width: 15rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-block-end: 14px; }
.filters label { font-weight: 500; font-size: .86rem; }
.filters select, .filters input { width: auto; min-width: 12rem; }
form.inline { margin-block-start: 8px; }
.copy-row { display: flex; gap: 8px; max-width: 48rem; margin-block-end: 14px; }
.copy-row input { max-width: none; }
details.confirm { display: inline-block; text-align: start; vertical-align: top; margin-inline-end: 14px; }
details.confirm summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { margin-block-end: 6px; }
details.confirm form { display: grid; gap: 8px; margin-block-start: 6px; min-width: 260px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); }
details.confirm summary.danger, summary.danger { color: var(--bad); }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; max-width: 42rem; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
p.or { text-align: center; color: var(--muted); margin: 14px 0; display: flex; align-items: center; gap: 10px; }
p.or::before, p.or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------- tables */
.scroll { overflow-x: auto; margin-block-end: 16px; border-radius: var(--radius); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.scroll > table.list { margin: 0; }
table.list th, table.list td { text-align: start; padding: 11px 14px; border-block-end: 1px solid var(--line-2); vertical-align: top; }
table.list tbody tr:last-child td { border-block-end: 0; }
table.list th { font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--panel); border-block-end: 1px solid var(--line); }
table.list tbody tr:hover td { background: #FBFCFE; }
table.list td[dir=ltr] { white-space: nowrap; }
table.list td a { font-weight: 600; text-decoration: none; }
table.list td a:hover { text-decoration: underline; }
td.actions { white-space: nowrap; text-align: end; }
td.actions form { display: inline; margin-inline-end: .6rem; }
td.details span { display: block; font-size: .85rem; color: var(--muted); }
td.bad { color: var(--bad); font-weight: 600; }
tr.struck td { color: var(--muted); text-decoration: line-through; }
tr.struck td.actions { text-decoration: none; }
tr.total td { background: var(--panel); font-weight: 600; }
table.list td input[type=text] { max-width: 16rem; }
.card table.list { box-shadow: none; }
.card.flush table.list { border: 0; border-radius: 0; }

/* ------------------------------------------------------------- settings: second-level menu */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.subnav { position: sticky; top: calc(var(--top) + 16px); display: flex; flex-direction: column; gap: 2px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.subnav-title { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 8px 8px; font-weight: 600; }
.subnav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.subnav a .ico { color: var(--muted); }
.subnav a:hover { background: var(--panel); color: var(--navy); }
.subnav a[aria-current=page] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.subnav a[aria-current=page] .ico { color: var(--brand); }
.settings-body > .card:last-child { margin-block-end: 0; }
@media (max-width: 1100px) { .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .subnav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; min-width: 0; padding: 6px; }
  .subnav-title { display: none; } .subnav a { white-space: nowrap; padding: 7px 11px; font-size: .92rem; } }
@media (max-width: 720px) { .subnav { flex-wrap: nowrap; overflow-x: auto; } }

/* ------------------------------------------------------------- lists of cards (events, tasks) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
a.event-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; margin: 0; transition: border-color .15s, transform .15s; }
a.event-card:hover { border-color: var(--brand-line); transform: translateY(-1px); }
a.event-card strong { font: 600 1.1rem var(--head); color: var(--navy); }
a.event-card .dates { color: var(--ink-2); }
a.task-card { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; }
.switches { display: grid; gap: 8px; }
form.switch { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0; box-shadow: var(--shadow); }
form.switch label { display: flex; gap: 9px; align-items: center; margin: 0; font-weight: 500; }

/* ------------------------------------------------------------- charts (drawn on the server as SVG) */
.bar-row { display: grid; grid-template-columns: minmax(5rem, 38%) 1fr 3.5rem; gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; }
.bar-row.wide { grid-template-columns: minmax(8rem, 35%) 1fr 5.5rem; }
.bar-row span:last-child { text-align: end; font-weight: 600; color: var(--navy); }
svg.bar { width: 100%; height: 10px; border-radius: 99px; overflow: hidden; }
svg.bar .bar-bg { fill: var(--line-2); }
svg.bar .bar-fill { fill: var(--brand); }
svg.bar.warn .bar-fill { fill: var(--brand-2); }
.meter { width: 100%; height: 8px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
svg.donut { width: 150px; height: 150px; flex: none; transform: rotate(-90deg); }
[dir=rtl] svg.donut { transform: rotate(-90deg) scaleY(-1); }
svg.donut circle { fill: none; stroke-width: 6; }
svg.donut .track { stroke: var(--line-2); }
.donut-center { font: 600 1.6rem var(--head); color: var(--navy); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-inline-start: auto; color: var(--navy); padding-inline-start: 14px; }
.c1 { stroke: var(--s1); background: var(--s1); } .c2 { stroke: var(--s2); background: var(--s2); } .c3 { stroke: var(--s3); background: var(--s3); }
.c4 { stroke: var(--s4); background: var(--s4); } .c5 { stroke: var(--s5); background: var(--s5); } .c6 { stroke: var(--s6); background: var(--s6); }

/* ------------------------------------------------------------- booking page */
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-block-end: 18px; box-shadow: var(--shadow); }
.facts-row > div { background: var(--paper); padding: 12px 16px; }
.facts-row .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; }
.facts-row .v { font: 600 1.05rem var(--head); color: var(--navy); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--head); color: var(--brand);
  background: var(--brand-soft); flex: none; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--line-2); flex-wrap: wrap; }
.people li:last-child { border-block-end: 0; }
.people .name { font-weight: 600; color: var(--navy); }
.people .meta { font-size: .85rem; color: var(--muted); }
.people .end { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.svc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-block-end: 1px solid var(--line-2); align-items: start; }
.svc:last-child { border-block-end: 0; }
.svc .ico-box { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.svc .title { font-weight: 600; color: var(--navy); }
.svc .ref { font-size: .8rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.svc .meta { font-size: .88rem; color: var(--ink-2); }
.svc.struck .title, .svc.struck .meta { text-decoration: line-through; color: var(--muted); }
.svc .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: .9rem; }
dl.facts dd { margin: 0; }
.voucher-row { padding: 12px 0; border-block-start: 1px solid var(--line-2); }
ul.change-lines { margin: 8px 0; padding-inline-start: 1.2rem; }
form.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
form.decide input[type=text] { max-width: 18rem; }
h1.ref { font-family: var(--head); }
.docnum { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; }

/* ------------------------------------------------------------- guest booking page */
.hero { border-radius: 18px; padding: 34px 32px; color: #fff; margin-block-end: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, color-mix(in srgb, var(--brand) 75%, var(--navy)) 100%); box-shadow: 0 10px 30px rgba(15, 27, 54, .15); }
.hero::after { content: ""; position: absolute; inset-inline-end: -80px; inset-block-start: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid color-mix(in srgb, var(--brand-2) 40%, transparent); }
.hero h1 { color: #fff; font-size: 2rem; margin: 0 0 8px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #DCE1F0; }
.hero .facts span { display: inline-flex; gap: 7px; align-items: center; }
.hero .intro { margin: 14px 0 0; max-width: 60ch; color: #EEF0F7; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.1rem; }
.step > h2::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 600 .9rem var(--head); flex: none; }
.traveler-row > div { margin: 0 !important; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.consent { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0; color: var(--ink); }
.consent input { margin-block-start: 3px; }
.send-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 640px) { .hero { padding: 24px 20px; } .hero h1 { font-size: 1.5rem; } }

/* ------------------------------------------------------------- odds and ends */
img.qr { display: block; margin: 1rem auto; background: #fff; border-radius: 8px; }
img.logo-preview { max-height: 64px; }
.pager { display: flex; gap: 1rem; justify-content: center; }
.checks { list-style: none; padding: 0; } .checks .ok { color: var(--ok); } .checks .bad { color: var(--bad); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--brand); margin-block-end: 8px; }
.spacer { height: 16px; }
h3.sub-title { margin: 18px 0 8px; font-size: .95rem; color: var(--ink-2); }
.bar-row span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-row span:first-child .ico { color: var(--muted); width: 16px; height: 16px; }
form.stack { display: grid; gap: 10px; }
form.stack select, form.stack input { max-width: none; }
.small-note { font-size: .85rem; }
.svc-actions { margin-block-start: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: flex-start; }
.svc-actions form.inline-form { display: inline-flex; }
.facts-row .v.bad { color: var(--bad); }
.public-main { max-width: 860px; }
.choice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin: 0 !important; }
.choice label { margin-block-end: 6px; }
.choice select, .choice input[type=number] { max-width: none; }
.consent.soft { background: transparent; border-style: dashed; margin-block-start: 10px; }
button.big { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.send-bar .muted { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; }
.done-card { text-align: center; }
.done-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-block-end: 8px; }
.done-mark .ico { width: 28px; height: 28px; }
.big-ref { font: 700 2rem var(--head); color: var(--navy); letter-spacing: .02em; }
.eyebrow.light { color: color-mix(in srgb, var(--brand-2) 70%, white); }
.auth-form form input { max-width: none; }
.auth-form .fine { margin-block-start: 18px; }
.kpi svg.bar { order: 4; margin-block-start: 10px; }
.kpi .label { padding-inline-end: 42px; }
.icon-btn.menu-btn { display: none; }
@media (max-width: 900px) { .icon-btn.menu-btn { display: inline-grid; } }
.public-form input[type=text], .public-form input[type=email], .public-form input[type=number], .public-form select, .public-form textarea { max-width: none; }
.traveler-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) 11rem; gap: 12px; font-size: .8rem; color: var(--muted); font-weight: 600; padding-inline-start: 0; }
.traveler-head span:first-child { grid-column: 2; }
.traveler-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 11rem; gap: 12px; align-items: center; margin-block-end: 10px; }
.traveler-row .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-weight: 600; }
details.more-travelers summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 4px 0 12px; }
@media (max-width: 640px) { .traveler-row, .traveler-head { grid-template-columns: 26px minmax(0, 1fr) 7.5rem; } }
[dir=rtl] svg.bar { transform: scaleX(-1); }
.event-top { display: flex; justify-content: space-between; align-items: center; margin-block-end: 4px; }
.ico-box { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.ico-box.small { width: 30px; height: 30px; border-radius: 8px; }
.meta-line { display: flex; gap: 7px; align-items: center; color: var(--ink-2); font-size: .92rem; }
.meta-line .ico { width: 15px; height: 15px; color: var(--muted); }
.event-foot { display: flex; justify-content: space-between; align-items: center; margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--line-2); color: var(--muted); }
.event-foot b { color: var(--navy); font-family: var(--head); }
[dir=rtl] .event-foot .ico, [dir=rtl] .send-bar .ico:last-child { transform: scaleX(-1); }
.tools-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-block-end: 18px; }
a.tool { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--navy); font-weight: 600; box-shadow: var(--shadow); font-size: .93rem; }
a.tool:hover { border-color: var(--brand-line); background: var(--brand-soft); }
a.tool .ico { color: var(--brand); }
.block-row { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-block-end: 1px solid var(--line-2); }
.block-row:last-child { border-block-end: 0; }
.block-name { display: flex; flex-direction: column; min-width: 0; }
.block-name strong { color: var(--navy); }
.block-name .muted { font-size: .85rem; }
.block-meter { display: grid; gap: 4px; font-size: .85rem; }
@media (max-width: 720px) { .block-row { grid-template-columns: auto minmax(0, 1fr) auto; } .block-meter { grid-column: 2 / -1; } }
.avatar.small { width: 26px; height: 26px; font-size: .72rem; }
.person { display: inline-flex; gap: 8px; align-items: center; }
.kpi .value small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; box-shadow: var(--shadow); }
.segmented a { padding: 6px 14px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.segmented a.on { background: var(--brand); color: #fff; }
.ico-box.warn { background: var(--warn-bg); color: var(--warn); }
.card-head > div h2 { margin: 0; }
.card-head > div .muted { font-size: .85rem; }
form.form-grid > button, form.form-grid > .buttons, form.form-grid > p, form.form-grid > ul.errorlist { grid-column: 1 / -1; justify-self: start; }
form.form-grid > div:has(> input[type=checkbox]) { align-self: end; }
.banner.good { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); display: flex; align-items: center; gap: 8px; }
.card > form.inline-form, .card > .inline-form { margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
fieldset.form-grid > legend { grid-column: 1 / -1; }
.form-grid > fieldset, .form-grid > div:has(> ul), .form-grid > div:has(> select[multiple]) { grid-column: 1 / -1; }
.card > form.form-grid { margin: 0; }

/* Design pass, part 2: settings, tasks, changes, imports */
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 26px 0 12px; }
.tag .ico { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 3px; }
[dir=rtl] .ico.flip { transform: scaleX(-1); }
.ico-box.big { width: 56px; height: 56px; border-radius: 16px; }
.ico-box.big .ico { width: 26px; height: 26px; }
.person.big .avatar { width: 52px; height: 52px; font-size: 1.3rem; }
.person.big h1 { margin: 0; }
.kpi.compact { padding: 10px 14px; min-width: 12rem; }
.perm-groups { columns: 3 260px; column-gap: 14px; }
.perm-groups fieldset { margin: 0 0 14px; break-inside: avoid; display: inline-block; width: 100%; }
.card.switches { display: grid; gap: 0; padding: 6px 18px; }
.card.switches form.switch { border: 0; border-block-end: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 0; }
.card.switches form.switch:last-child { border-block-end: 0; }
.check-form { margin: 0 0 12px; }
.card.filters { padding: 14px 18px; }
.task-list { display: grid; gap: 10px; }
a.card.task-card { flex-wrap: nowrap; gap: 14px; padding: 14px 18px; margin: 0; transition: border-color .15s, box-shadow .15s; }
a.card.task-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg, var(--shadow)); }
.task-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.task-main .muted { font-size: .88rem; }
.card.change { padding: 16px 20px; }
.card.change.pending { border-inline-start: 4px solid var(--warn); }
.change-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; margin-block-end: 6px; }
.change-title { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.change-title .muted { font-size: .88rem; }
.change-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
ul.change-lines { list-style: none; padding: 10px 14px; background: var(--panel); border-radius: var(--radius-s); }
ul.change-lines li { padding: 3px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
ul.change-lines .what { color: var(--muted); min-width: 8rem; }
ul.change-lines s { color: var(--bad); }
ul.change-lines strong { color: var(--ok); }
.wizard { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.wizard li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
[dir=rtl] .wizard li { padding: 8px 8px 8px 14px; }
.wizard li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--muted); }
.wizard li.on { border-color: var(--brand); color: var(--brand); }
.wizard li.on span { background: var(--brand); color: #fff; }
.wizard li.past { color: var(--ok); }
.wizard li.past span { background: var(--ok-bg); color: var(--ok); }
.upload-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 22px; border-style: dashed; }
.upload-card > div { width: min(420px, 100%); text-align: start; }
@media (max-width: 720px) { .change-head { flex-wrap: wrap; } a.card.task-card { flex-wrap: wrap; } }
.state-card { text-align: center; padding: 34px 30px; margin-block-start: 6vh; }
.state-card .ico-box.big { margin: 0 auto 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.state-card .ico-box.big.warn { background: var(--warn-bg); color: var(--warn); }
.state-card form, .state-card ol { text-align: start; }
.state-card .qr { display: block; margin: 10px auto; border-radius: var(--radius-s); border: 1px solid var(--line); }
details.mrz summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--navy); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
table.list .person strong { white-space: nowrap; }
table.list .person .muted { font-size: .85rem; }
label.perm input[type=checkbox], form.switch input[type=checkbox] { flex: none; }
/* In Arabic pages, amounts, references and dates keep the Latin font so the digits match in both languages. */
:lang(ar) [dir=ltr] { font-family: "Source Sans 3", "Tajawal", "Helvetica Neue", Arial, sans-serif; }
:lang(ar) .kpi .value[dir=ltr], :lang(ar) .facts-row .v[dir=ltr], :lang(ar) h1 [dir=ltr] { font-family: "Outfit", "Tajawal", "Helvetica Neue", Arial, sans-serif; }

/* New project wizard */
.include-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.include-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--paper); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; margin: 0; }
.include-tile:hover { border-color: var(--brand-line); }
.include-tile input { position: absolute; opacity: 0; pointer-events: none; }
.include-tile .ico-box { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); color: var(--muted); flex: none; }
.include-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.include-text .muted { font-size: .84rem; font-weight: 400; }
.include-tile .tick { opacity: 0; color: var(--brand); width: 20px; height: 20px; }
.include-tile:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.include-tile:has(input:checked) .ico-box { background: var(--brand); color: #fff; }
.include-tile:has(input:checked) .tick { opacity: 1; }
.include-tile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-soft); }
.setup-split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.setup-side { position: sticky; top: calc(var(--top) + 16px); }
.item-card { padding: 16px 18px; }
.item-card.state-ready { border-inline-start: 4px solid var(--ok); }
.item-card.state-check, .item-card.state-waiting { border-inline-start: 4px solid var(--warn); }
.item-card .card-head { margin-block-end: 10px; }
.small-ico { width: 13px; height: 13px; vertical-align: -2px; }
ul.item-rows { list-style: none; padding: 8px 12px; margin: 0 0 12px; background: var(--panel); border-radius: var(--radius-s); display: grid; gap: 3px; font-size: .92rem; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); text-decoration: none; color: var(--ink); margin: 0; }
a.choice-box:hover { border-color: var(--brand); }
.choice-box .button, .choice-box button { margin-block-start: auto; align-self: flex-start; }
.choice-box input[type=file] { font-size: .82rem; width: 100%; }
.choice-box select, .choice-box input[type=date] { width: 100%; }
.choice-title { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy); }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.item-remove { margin: 8px 0 0; text-align: end; }
.add-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.add-buttons form { margin: 0; }
.checklist h3 { font-size: .9rem; margin: 14px 0 6px; color: var(--navy); }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { padding: 7px 10px 7px 12px; border-radius: 8px; font-size: .88rem; border-inline-start: 3px solid; }
.checklist li a { color: inherit; text-decoration: none; }
.checklist li a:hover { text-decoration: underline; }
.checklist li.block { background: var(--bad-bg); border-color: var(--bad); color: var(--ink); }
.checklist li.note { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.upload-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-style: dashed; }
.upload-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 14rem; }
.upload-strip input[type=file] { width: auto; }
.form-grid > div.read input, .form-grid > div.read select { border-color: var(--warn); background: var(--warn-bg); }
.from-contract { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--warn); margin-block-start: 4px; }
.from-contract .ico { width: 12px; height: 12px; }
.read-card { border-color: var(--warn-line); }
.warn-banner { background: var(--warn-bg); border-color: var(--warn-line); display: flex; gap: 8px; align-items: flex-start; }
table.rows-table td { vertical-align: top; }
table.rows-table input, table.rows-table select { min-width: 6rem; }
table.rows-table td:first-child input { min-width: 12rem; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--canvas) 92%, transparent); padding: 12px 0; z-index: 5; }
@media (max-width: 1100px) { .setup-split { grid-template-columns: 1fr; } .setup-side { position: static; } }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }
button:disabled, button[disabled] { opacity: .45; cursor: not-allowed; }
.form-grid textarea { width: 100%; }
.voucher-check { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin-block-end: 12px; background: var(--panel); }
.voucher-check .wizard { margin-block-end: 10px; }
.voucher-check form.attest { display: grid; gap: 8px; }
.draft-banner { max-width: 210mm; margin: 0 auto 1rem; }
.limit-form { margin: 0; }
.limit-row { display: flex; gap: 6px; }
.limit-row input { width: 8rem; }
.page-switches { columns: 3 200px; }

/* The side menu in groups (as agreed for the portal, 25 Oct 2026) */
.project-pick { padding: 0 6px 8px; margin: 0; }
.project-pick .side-label { padding: 6px 4px 4px; display: block; }
.project-pick select { width: 100%; background: var(--navy-2); color: #fff; border-color: var(--navy-line); font-weight: 600; }
details.nav-group { margin: 1px 0; }
details.nav-group summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-s);
  color: var(--navy-text); cursor: pointer; font-weight: 500; }
details.nav-group summary::-webkit-details-marker { display: none; }
details.nav-group summary:hover { background: var(--navy-2); color: #fff; }
details.nav-group summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.nav-group summary .chevron { width: 14px; height: 14px; opacity: .6; transform: rotate(90deg); transition: transform .15s; }
details.nav-group[open] > summary .chevron { transform: rotate(-90deg); }
.side a.nav.sub { padding: 6px 10px 6px 40px; font-size: .9rem; color: #B9C1D9; }
[dir=rtl] .side a.nav.sub { padding: 6px 40px 6px 10px; }
.side a.nav.sub[aria-current=page] { background: var(--navy-2); color: #fff; }

/* Manage Bookings, Upsell Opportunities, Clients DB (as agreed for the portal, 26 Oct 2026) */
.row-actions { white-space: nowrap; text-align: end; }
.row-actions .icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); margin-inline-start: 4px; }
.row-actions .icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.row-actions .icon-btn.off { opacity: .35; }
.row-actions .icon-btn .ico { width: 16px; height: 16px; }
.actions-h { text-align: end; }
.svc-cell .tag { margin: 2px 0; }
td.id a { font-weight: 700; }
.manage-filters { display: grid; gap: 10px; margin-block-end: 12px; }
.searchbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 12px; background: var(--paper); margin: 0; }
.searchbar input { border: 0; box-shadow: none; padding: 10px 0; }
.searchbar input:focus { box-shadow: none; }
.slicers { display: flex; flex-wrap: wrap; gap: 10px; }
.slicers label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0; }
.slicers select { min-width: 11rem; }
details.upsell summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
details.upsell summary::-webkit-details-marker { display: none; }
details.upsell[open] summary { margin-block-end: 12px; }
@media (max-width: 720px) { .hide-sm { display: none; } }
.side a.nav.all-projects { font-size: .88rem; color: #B9C1D9; padding-block: 6px; }
details.nav-group.inner { margin-inline-start: 22px; }
details.nav-group.inner summary { padding: 6px 10px; font-size: .9rem; }
details.nav-group.inner summary .ico:first-child { width: 15px; height: 15px; }
.side a.nav.sub.deep { padding-inline-start: 46px; font-size: .86rem; }
[dir=rtl] .side a.nav.sub.deep { padding-inline: 10px 46px; }
.side .nav.sub.soon { display: flex; gap: 6px; align-items: center; padding: 6px 10px 6px 40px; font-size: .9rem; color: #6F7893; cursor: default; }
[dir=rtl] .side .nav.sub.soon { padding: 6px 40px 6px 10px; }
.side .nav.sub.soon small { font-size: .68rem; border: 1px solid #3A4466; border-radius: 99px; padding: 0 6px; }
.side a.nav.sub .count { margin-inline-start: auto; }
.searchbar input { flex: 1; width: 100%; min-width: 0; }
.bookings-table td:nth-child(2) { min-width: 9.5rem; }
.bookings-table .svc-cell { max-width: 15rem; }
.bookings-table .svc-cell .tag { font-size: .74rem; padding: 1px 7px; }
.bookings-table td, .bookings-table th { padding-inline: 8px; }
.bookings-table td:nth-child(4), .bookings-table td:nth-child(5) { white-space: nowrap; }
.bookings-table .row-actions .icon-btn { width: 28px; height: 28px; margin-inline-start: 2px; }
.bookings-table th { font-size: .72rem; }

/* "Test as" (this computer only) */
.test-as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.test-as-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.test-as-card.current { border-color: var(--ok); }
.test-as-card .tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 22px; }
.test-as-card p { margin: 0; flex: 1; }
.test-as-card button { align-self: stretch; }
.test-as-link { display: flex; gap: 12px; align-items: center; margin-block-start: 16px; padding: 12px 14px; border: 1px dashed var(--brand);
  border-radius: var(--radius-s); text-decoration: none; color: var(--ink); background: var(--brand-soft); }
.test-as-link span { display: flex; flex-direction: column; }
.test-as-link small { color: var(--muted); }
.test-as-btn { margin-inline-end: 8px; }
.place-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-block-start: 6px; }
.place-row form { margin: 0; }
button.mini { padding: 2px 8px; font-size: .74rem; border-radius: 99px; }

/* The passenger on one page (portal 7e17116) */
.pf-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-block-end: 16px; }
.pf-glance > div { background: var(--paper); padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.pf-glance span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pf-glance b { font-weight: 600; color: var(--navy); }
.pf-glance > div.bad { background: var(--bad-bg); }
.pf-glance > div.bad b, .pf-glance small, dd.bad { color: var(--bad); }
.pf-history summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.pf-history summary::-webkit-details-marker { display: none; }
.pf-history[open] summary { margin-block-end: 10px; }
.offered-grid { columns: 3 220px; column-gap: 16px; }
.offered-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; break-inside: avoid; font-size: .92rem; }
.tick { width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); color: transparent; flex: none; }
.tick.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tick .ico { width: 14px; height: 14px; }
.mini-btn { padding: 4px 10px; font-size: .8rem; }
.saved-home { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-block-start: 1px solid var(--line); }
.saved-people { display: grid; gap: 8px; margin-block-end: 14px; }
.saved-person { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); font-weight: 400; margin: 0; }
.saved-person > span { display: flex; flex-direction: column; gap: 3px; }
.saved-person.stale { border-color: var(--warn); }
.saved-person input { margin-top: 3px; }
.saved-person .check-label { font-weight: 600; color: var(--brand); font-size: .86rem; }
.bad { color: var(--bad); }
.tabs-row { margin-block-end: 12px; } .saved-block { margin-block-end: 12px; }
.plan-table input { min-width: 7rem; }
pre.file-text { white-space: pre-wrap; font: .88rem/1.5 ui-monospace, Menlo, monospace; margin: 0; max-height: 70vh; overflow: auto; }
.flag-box { position: relative; }
.flag-box summary { list-style: none; cursor: pointer; }
.flag-box summary::-webkit-details-marker { display: none; }
.flag-btn.pressed { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); box-shadow: inset 0 2px 4px rgba(0,0,0,.08); }
.flag-form { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 8px; width: 18rem; margin: 0; }

/* Break-even by aircraft (portal 33fb566) */
.be-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.be-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.be-card h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.be-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.be-inputs label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 600; margin: 0; }
.be-inputs small { font-weight: 400; }
.be-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-s); overflow: hidden; }
.be-figures > div { background: var(--paper); padding: 8px 10px; display: flex; flex-direction: column; }
.be-figures span { font-size: .72rem; color: var(--muted); }
.be-figures b { font: 700 1.1rem var(--head); color: var(--navy); }
.be-figures .warn b { color: var(--warn); } .be-figures .good b { color: var(--ok); }
svg.be-bar { width: 100%; height: 22px; }
.be-cap { fill: var(--panel); } .be-sold, i.be-sold { fill: var(--ok); background: var(--ok); } .be-held, i.be-held { fill: #E0A100; background: #E0A100; }
.be-mark, i.be-mark { fill: var(--bad); background: var(--bad); }
.be-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.be-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 5px; }
@media (max-width: 720px) { .be-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The company's logo on the navy menu, in white as on its website */
.side-brand img { width: auto; background: none; padding: 0; height: 30px; max-width: 170px; filter: brightness(0) invert(1); border-radius: 0; }
.side-brand:has(img) span { display: none; }

/* Cabins and the seat plan (portal 3286b91) */
.cabin-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cabin-rows td:nth-child(2), .cabin-rows td:nth-child(3) { width: 5.5rem; }
.cabin-rows { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cabin-rows th { text-align: start; font-size: .78rem; color: var(--ink-2); font-weight: 600; padding: 4px 6px; }
.cabin-rows td { padding: 3px 6px; }
.cabin-rows input, .cabin-rows select { width: 100%; }
.fold { margin: 10px 0 16px; }
.fold summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.cabin-sample { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cabin-sample-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cabin-total { display: flex; align-items: center; gap: 10px; padding-top: 12px; font-size: 1.05rem; }
.seat-plan { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.seat-people { max-height: calc(100vh - 160px); overflow: auto; }
.seat-progress { display: grid; gap: 6px; margin-bottom: 10px; }
.seat-filter { display: grid; gap: 8px; margin-bottom: 12px; }
.seat-booking { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; margin-bottom: 8px; }
.seat-booking-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.seat-booking-head form { margin-inline-start: auto; }
.seat-person { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; flex-wrap: wrap; }
.seat-person.on { background: var(--brand-bg, #EEF0FC); }
.seat-person > a { flex: 1; }
.seat-person select { font-size: .8rem; padding: 2px 4px; height: auto; }
.seat-chip { font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: var(--navy); color: #fff; border: 0; cursor: pointer; }
.seat-hint { margin-top: 0; }
.seat-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-bottom: 12px; }
.seat-legend .seat { width: 18px; height: 18px; margin-inline-start: 8px; }
.plane { display: grid; gap: 4px; justify-content: center; overflow-x: auto; padding: 8px; }
.cabin-head { text-align: center; font-weight: 700; color: var(--navy); margin: 10px 0 4px; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.seat-row { display: flex; align-items: center; gap: 4px; }
.seat-row.exit { border-block: 2px dashed var(--warn-line, #E8C77A); padding-block: 2px; }
.row-no { width: 26px; text-align: end; font-size: .75rem; color: var(--ink-2); }
.seat-group { display: flex; gap: 3px; }
.aisle { width: 18px; }
.seat, .seat-group form button.seat { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px 6px 4px 4px;
  border: 1px solid var(--line); background: var(--paper); font-size: .66rem; color: var(--ink-2); padding: 0; }
.seat-row.wide .seat { width: 40px; }
.seat.taken { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.seat.blocked { background: repeating-linear-gradient(45deg, var(--line) 0 3px, transparent 3px 6px); color: var(--bad); font-size: .8rem; font-weight: 700; }
a.seat { text-decoration: none; cursor: pointer; }
a.seat:hover { border-color: var(--brand); }
.seat.picked { outline: 2px solid var(--brand); outline-offset: 1px; }
.block-panel { padding: 10px 12px; border: 1px dashed var(--warn-line); background: var(--warn-bg); border-radius: var(--radius-s); margin-bottom: 12px; }
.block-panel p { margin: 0 0 6px; }
.block-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.block-form select, .block-form input { width: auto; max-width: 16rem; }
.flag-b { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--warn); background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.seat.free { cursor: pointer; border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.seat.free:hover { background: var(--ok); color: #fff; }
.row-flag { font-size: .62rem; font-weight: 700; color: var(--warn); margin-inline-start: 4px; }
.row-flag.vip { color: var(--brand-2); }
.notice-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.notice-row.seen { opacity: .6; }
.notice-row .act { display: flex; gap: 10px; }
@media (max-width: 900px) { .cabin-grid { grid-template-columns: 1fr; } }
/* The passenger list beside the map down to 760px; below it stacks, the list kept short so the map stays in view. */
@media (max-width: 760px) { .seat-plan { grid-template-columns: 1fr; } .seat-people { max-height: 42vh; } }

/* A contract's payments, approved one at a time (26 Oct 2026) */
.schedule-row td { background: var(--panel); padding-top: 6px; padding-bottom: 10px; }
.schedule { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.sched-item.to_approve { border-color: var(--warn-line); }
.sched-item.later, .sched-item.waiting { opacity: .7; }
.sched-label { font-weight: 600; }
.sched-amount { font-variant-numeric: tabular-nums; }
tr.locked td { color: var(--muted); }
.pay-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-form select, .pay-form input[type=text], .pay-form input[type=date] { width: auto; max-width: 14rem; padding: 6px 9px; }
.pay-form input[type=file] { width: auto; max-width: 16rem; font-size: .8rem; }
.price-input { max-width: 9rem; }
tr.group-row td { background: var(--panel); font-weight: 700; color: var(--navy); padding-block: 4px; }
.req-form { display: flex; flex-wrap: wrap; gap: 5px; } .req-form select, .req-form input[type=text] { width: auto; max-width: 12rem; padding: 5px 8px; font-size: .85rem; }
.req-kpis .kpi { text-decoration: none; color: inherit; } .req-kpis .kpi.on { border-color: var(--brand); }
.incident { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.incident.urgent { border-inline-start: 3px solid var(--bad); padding-inline-start: 10px; }
.incident.done { opacity: .7; }
.incident p { margin: 0; }
.report-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.flight-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.flight-row select, .flight-row input[type=text] { width: auto; max-width: 16rem; padding: 6px 9px; }
.flight-row input.short { max-width: 7rem; }
.arrive-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 0; }
.shift { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shift.now { background: var(--ok-bg); padding-inline: 8px; border-radius: var(--radius-s); }
label.check { display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* Contracts by type (26 Oct 2026): the type first, then its own boxes */
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.kind-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.kind-tile:hover { border-color: var(--brand); transform: translateY(-1px); }
.kind-tile .ico-box { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.kind-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.kind-text strong { font-size: 1.05rem; color: var(--navy); }
.kind-text .muted { font-size: .86rem; }
.kind-tile .go { color: var(--muted); }
.seg-field > div[id] { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; }
.seg-field > div[id] > div { margin: 0; }
.seg-field > div[id] label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg-field > div[id] label input { position: absolute; opacity: 0; pointer-events: none; }
.seg-field > div[id] label:has(input:checked) { background: var(--paper); color: var(--navy); box-shadow: var(--shadow); }
.seg-field > div[id] label:has(input:focus-visible) { outline: 2px solid var(--brand); }
.chips-field > div[id] { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-field > div[id] > div { margin: 0; }
.chips-field > div[id] label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: .88rem; background: var(--paper); }
.chips-field > div[id] label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--navy); }
.add-row { margin-block-start: 10px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.figures > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel); border-radius: var(--radius-s); }
.figures strong { font-size: 1.2rem; color: var(--navy); }
.warn-card { border-color: var(--warn-line); background: var(--warn-bg); }
.supplier-question .choice-row { margin-block-start: 8px; }
.head-actions { display: flex; gap: 8px; }
.contract-form .rows-table input { min-width: 0; }
.contract-form .rows-table select { min-width: 9rem; }
.contract-form .rows-table input[type=number] { width: 6.5rem; }
.contract-form .rows-table input[type=date] { width: 9.5rem; }
.contract-form .rows-table input[type=time] { width: 6.5rem; }
.contract-form .rows-table td:first-child input:not([type=checkbox]):not([type=date]) { min-width: 10rem; }
.contract-form .rows-table input[type=text] { min-width: 7rem; }
tr.group-row th { background: var(--panel); text-align: start; font-weight: 600; padding-block: 10px; }
tr.group-row .group-name { color: var(--navy); font-size: 1rem; }
tr.group-row .group-sums { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block-start: 4px; font-weight: 400; font-size: .86rem; color: var(--ink-2); }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.terms-note { background: var(--panel); border-radius: var(--radius-s); padding: 8px 12px; font-size: .9rem; }
.due-cell { white-space: nowrap; }
.due-cell .dminus { display: inline-block; min-width: 3.4rem; font-size: .8rem; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.due-cell .dminus.after { color: var(--warn); }
.date-helpers { display: flex; gap: 8px; align-items: center; margin-block-start: 4px; font-size: .8rem; color: var(--muted); }
.date-helpers .days-before { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }
.date-helpers .days-before input { width: 4.2rem; padding: 3px 6px; }
.plan-card .figures, .card .figures { margin-block-start: 10px; }
details.changes { margin-block-start: 8px; }
details.changes summary { cursor: pointer; font-weight: 600; color: var(--warn); font-size: .86rem; }
table.mini-table { font-size: .82rem; margin-block-start: 6px; }
.default-submit { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* New booking, as an airline's passenger page (26 Oct 2026): numbered steps, the name as in the passport, phone with its code */
.pax-form { gap: 4px 20px; }
.pax-step { padding-block: 6px 14px; border-block-end: 1px solid var(--line); }
.pax-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 6px 0 4px; }
.pax-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .9rem; }
.pax-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-block: 10px; }
.pax-row.name-row { grid-template-columns: 110px 1fr 1fr; }
.pax-row input, .pax-row select, .pax-row textarea { width: 100%; min-height: 46px; font-size: 1rem; }
.phone-pair { display: flex; gap: 8px; }
.phone-pair select { flex: 0 0 120px; }
.consent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.consent-chips .chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-size: .9rem; background: var(--paper); font-weight: 500; }
.consent-chips .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--navy); }
.pax-more { padding-block: 10px; }
.pax-more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
@media (max-width: 640px) { .pax-row.name-row { grid-template-columns: 1fr; } }
/* The supplier box: a styled list as you type, with "Add a new supplier" */
.combo { position: relative; }
.combo input { width: 100%; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .combo input { background-position: 18px 50%, 13px 50%; }
.combo-panel { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 27, 54, .14); padding: 6px; max-height: 320px; overflow-y: auto; }
.combo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo-row:hover, .combo-row.on { background: var(--brand-soft); }
.combo-name { font-weight: 500; color: var(--ink); }
.combo-note { font-size: .78rem; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.combo-row.add { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
.combo-row.add .combo-name { color: var(--brand); font-weight: 600; }

/* ============================================================= the design foundation (27 Oct 2026, the design review)
   Read last, so it sets the whole app at once: a readable text colour made from the company's own (--brand-ink, worked
   out in /brand.css), one type scale (16px body, 17px in Arabic, nothing under 13px), fields that never take a small
   label's font, spacing between form rows, a danger style, and fields wide enough in tables. */
:root {
  --brand-ink: #626DB2;  /* /brand.css replaces it with the company's colour made readable */
  --brand-bg: var(--brand-soft); --shadow-lg: 0 12px 32px rgba(15, 27, 54, .14);
  --muted: #5B6579;
  --t-caption: 13px; --t-small: 14px; --t-body: 16px;
  --s1: #4F59C9; --s4: #5B6F8F;
}
body { font-size: var(--t-body); }
:lang(ar) body, body:lang(ar) { font-size: 17px; }
:lang(ar) * { letter-spacing: 0 !important; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
small, .small-note, .helptext, form .helptext { font-size: var(--t-caption); }
.helptext, form .helptext { margin-block-start: 6px; }

/* the readable brand colour: links, buttons, the current place, step numbers */
a, button.link, .eyebrow, .subnav a[aria-current=page], .subnav a[aria-current=page] .ico, .wizard li.on, .combo-row.add .combo-name,
.pax-more summary { color: var(--brand-ink); }
.ico-box { color: var(--brand-ink); }
button.primary, .button.primary { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
button.primary:hover, .button.primary:hover { background: color-mix(in srgb, var(--brand-ink) 85%, black); border-color: color-mix(in srgb, var(--brand-ink) 85%, black); }
.side a.nav[aria-current=page], .segmented a.on, .wizard li.on span, .pax-n, .tick.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.step > h2::before { background: var(--brand-ink); color: #fff; }
.eyebrow { font-size: var(--t-caption); }
button.destructive, .button.destructive { background: var(--bad); border-color: var(--bad); color: #fff; }
button.destructive:hover, .button.destructive:hover { background: color-mix(in srgb, var(--bad) 85%, black); }
button:disabled, button[disabled], .button[aria-disabled=true] { background: var(--line-2); color: var(--muted); border-color: var(--line); opacity: 1; cursor: not-allowed; }
.count { background: color-mix(in srgb, var(--brand-2) 75%, black); font-size: 12px; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

/* fields: one size everywhere, never the label's small font, big enough to tap, no zoom on iPhone */
label { font-size: var(--t-small); margin-block-end: 6px; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local],
input[type=url], input[type=time], input[type=tel], select, textarea {
  font: 400 max(16px, 1rem)/1.35 var(--body); min-height: 44px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink); }
input[type=time], input[type=tel] { width: 100%; max-width: 34rem; }
input[type=time]:focus, input[type=tel]:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-ink); }
textarea { min-height: 88px; }
::placeholder { color: var(--muted); opacity: 1; }
[aria-invalid=true] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg); }
input:disabled, select:disabled, textarea:disabled, input[readonly], textarea[readonly] { background: var(--panel); color: var(--muted); }
.form-grid { gap: 20px 24px; }
.form-grid > div { margin-block-end: 0; }
.form-grid > .span-2 { grid-column: 1 / -1; }

/* tables: calm headings in sentence case, fields wide enough to read their choice */
table.list th { font-size: var(--t-caption); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
table td select { width: auto; min-width: 9rem; }
table td input[type=text] { min-width: 8rem; }
.contract-form .rows-table td select[name$="-category"] { min-width: 13rem; }
.cabin-rows select { min-width: 9rem; }
.be-card { align-content: start; }
th.num, td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* money tiles: the icon never covers a figure or its minus sign */
.kpi .value, .kpi .sub { padding-inline-end: 42px; }
.kpi .value { font-variant-numeric: tabular-nums; }
.kpi .value.bad { color: var(--bad); }

/* buttons that are not slabs: ticks, seats and small buttons keep their own size */
.tick, .seat, .seat-chip, button.mini, .mini-btn { min-height: 0; }
.button.plain-link { border-color: transparent; background: none; color: var(--brand-ink); }
.danger-zone { border-top: 1px solid var(--bad-line); padding-top: 16px; margin-top: 24px; }
.side .soon, .side .coming { color: #8A93AD; }

/* the confirm sheet: asked before anything is removed or deleted (app.js, data-confirm) */
dialog.sheet { border: 0; border-radius: 20px; padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(14, 28, 56, .25);
  color: var(--ink); background: var(--paper); }
dialog.sheet::backdrop { background: rgba(14, 28, 56, .35); backdrop-filter: blur(6px); }
dialog.sheet h2 { margin-block-start: 0; }
dialog.sheet .buttons { justify-content: flex-end; margin-block-start: 20px; }
@media (max-width: 720px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}


/* The GM's dashboard (27 Oct 2026): rows that each carry a decision and its button */
.dash-card { margin-block-end: 16px; }
.decide-row, .deadline-row, .stock-row, .ready-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 4px;
  border-block-start: 1px solid var(--line-2); }
.decide-row:first-of-type, .deadline-row:first-of-type, .stock-row:first-of-type, .ready-row:first-of-type { border-block-start: 0; }
.decide-what, .d-what { flex: 1 1 18rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.d-what .ico { color: var(--muted); }
.d-when { display: flex; flex-direction: column; min-width: 4.5rem; }
.d-stake { min-width: 10rem; text-align: end; font-variant-numeric: tabular-nums; }
.deadline-row.soon .d-when b { color: var(--warn); }
.deadline-row.late .d-when b { color: var(--bad); }
.stock-why { display: flex; flex-wrap: wrap; gap: 6px; }
.info-card summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.info-card summary h2 { margin: 0; flex: 1; }
.info-card summary::-webkit-details-marker { display: none; }
.info-card[open] summary { margin-block-end: 8px; }

/* Quick Book (27 Oct 2026): passengers once, then service cards; one column of steps with the summary beside it */
.qb-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.qb-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: var(--t-small); }
.qb-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); }
.qb-steps li.on { border-color: var(--brand-ink); color: var(--navy); }
.qb-steps li.on span { background: var(--brand-ink); color: #fff; }
.qb-steps li.done span { background: var(--ok-bg); color: var(--ok); }
.qb-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 14px; }
.qb-counts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.qb-counts > div { display: flex; flex-direction: column; gap: 4px; }
.qb-counts input { width: 6.5rem; min-height: 44px; font-size: 1.1rem; text-align: center; }
.qb-pax-more { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; }
.qb-dob { display: flex; flex-direction: column; gap: 4px; max-width: 16rem; }
.chip-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 600; }
.qb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.qb-summary { position: sticky; top: calc(var(--top) + 12px); }
.qb-summary h2 { font-size: 17px; }
.qb-people { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.qb-people li { display: flex; flex-direction: column; }
.qb-total { display: flex; justify-content: space-between; border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.button.block, button.block { display: flex; width: 100%; justify-content: center; margin-block-start: 10px; }
.qb-tabs { margin-block-end: 14px; flex-wrap: wrap; }
.qb-tabs a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.qb-cards { display: grid; gap: 14px; }
.qb-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.qb-card.is-full { background: var(--panel); }
.qb-card header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qb-card h3 { margin: 0; font-size: 17px; }
.qb-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
.qb-price strong { font-size: 1.05rem; color: var(--navy); }
.qb-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-block-start: 12px; }
.qb-add .primary { min-height: 44px; min-width: 7rem; }
.qb-count { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.qb-count input { width: 6rem; min-height: 44px; text-align: center; }
.qb-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 16rem; }
.qb-chips legend { padding: 0; margin-block-end: 4px; color: var(--muted); }
.qb-chips .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; cursor: pointer; }
.qb-chips .chip:has(input:checked) { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--navy); }
.qb-added { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-block-start: 10px; padding: 8px 12px;
  border-radius: var(--radius-s); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.qb-added form { margin: 0; }
.qb-review { width: 100%; margin-block-end: 16px; }
.qb-review .total-row th, .qb-review .total-row td { border-block-start: 2px solid var(--line); }
.qb-needed { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qb-needed li { display: flex; justify-content: space-between; gap: 12px; }
.qb-done { text-align: center; }
.qb-ref { font: 600 44px/1.1 var(--head); color: var(--navy); margin: 4px 0 10px; letter-spacing: .02em; }
.qb-done + .split textarea { width: 100%; font: 15px/1.5 var(--body); }
.warn-text { color: var(--warn); font-weight: 600; }
.qb-status { display: grid; gap: 10px; }
.qb-hold { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.qb-hold .k { color: var(--muted); font-size: var(--t-small); min-width: 8rem; }
.inline-details { display: inline-block; }
.inline-details[open] { display: block; flex-basis: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-block-start: 8px; }
@media (max-width: 960px) {
  .qb-layout { grid-template-columns: 1fr; }
  .qb-summary { position: sticky; bottom: 0; top: auto; z-index: 5; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); }
  .qb-summary .qb-people { display: none; }
}
.qb-add .qb-chips { order: -1; flex-basis: 100%; }
.qb-tabs a.on .muted { color: inherit; opacity: .85; }
.plan-choose { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-block-end: 12px; }
.plan-choose select { min-width: 16rem; }
.plan-table input { min-width: 7rem; }
.plan-table .num-input { width: 5.5rem; min-width: 5.5rem; }
/* The figures moved off the GM's dashboard: folded on Manage Bookings and the project's Finance page */
.figures-card summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.figures-card summary::-webkit-details-marker { display: none; }
.figures-card summary h2 { margin: 0; }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; margin-block-start: 14px; }
.figures-grid h3 { font-size: var(--t-small); color: var(--muted); margin-block-end: 6px; }
.figure-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.figure-bars li { display: grid; grid-template-columns: minmax(7rem, 1fr) 1.2fr auto; gap: 10px; align-items: center; }
.figure-bars progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.figure-bars progress::-webkit-progress-bar { background: var(--line-2); border-radius: 99px; }
.figure-bars progress::-webkit-progress-value { background: var(--brand-ink); border-radius: 99px; }
.figure-bars progress::-moz-progress-bar { background: var(--brand-ink); border-radius: 99px; }
.figure-bars b { font-variant-numeric: tabular-nums; }
/* The payment plan editor: one for the contract, the GM's re-plan and project setup */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-editor .preset-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-end: 10px; }
.plan-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-block: 10px 4px; }
.plan-foot [data-plan-add] { min-height: 44px; }
.plan-left { margin: 0; font-weight: 600; }
.plan-left.ok { color: var(--ok); } .plan-left.warn { color: var(--warn); } .plan-left.bad { color: var(--bad); }
.plan-actions { white-space: nowrap; }
.plan-actions .mini { min-height: 36px; }
.plan-remove { min-width: 36px; }
@media (max-width: 720px) {
  .plan-editor .plan-table thead { display: none; }
  .plan-editor .plan-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 0; border-block-end: 1px solid var(--line); }
  .plan-editor .plan-table td { border: 0; padding: 0; }
  .plan-editor .plan-table td:first-child, .plan-editor .plan-table .due-cell, .plan-editor .plan-actions { grid-column: 1 / -1; }
  .plan-actions .mini { min-height: 44px; }
}
.m-label { display: none; }
@media (max-width: 720px) { .plan-editor .m-label { display: block; font-size: var(--t-caption); color: var(--muted); margin-block-end: 2px; } }
/* Settings › Wording */
.wording-search { margin-block-end: 14px; }
.wording-row { display: grid; grid-template-columns: minmax(12rem, 1.2fr) 1fr 1fr auto; gap: 10px 14px; align-items: end; padding: 12px 0;
  border-block-start: 1px solid var(--line-2); }
.wording-row:first-of-type { border-block-start: 0; }
.wording-row label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.wording-row.is-own .wording-default { color: var(--muted); }
.wording-default { align-self: center; }
.wording-edit { margin-inline-start: 8px; font-size: 15px; text-decoration: none; color: var(--muted); vertical-align: middle; }
.wording-edit:hover { color: var(--brand-ink); }
@media (max-width: 860px) { .wording-row { grid-template-columns: 1fr; } }
.photo-reader { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block: 8px 12px; }
.photo-reader .button { cursor: pointer; min-height: 44px; }
.guest-foot { max-width: 980px; margin: 32px auto 24px; padding: 16px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); text-align: center; }
.guest-foot p { margin: 4px 0; }

/* The phone and touch layer (design review fix 15) */
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--brand-ink); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-s); text-decoration: none; }
.skip-link:focus { top: 8px; }
@media (max-width: 900px) {
  .side { height: 100dvh; visibility: hidden; transition: transform .2s, visibility .2s; }
  body.menu-open .side { visibility: visible; }
  body.menu-open { overflow: hidden; }
}
@media (pointer: coarse) {
  button, .button, .icon-btn, .side a.nav, .segmented a, button.link { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  .seat { min-width: 36px; min-height: 36px; }
}
/* A list table on a phone: each row a card of label and value, no sideways scroll (cells carry data-label) */
@media (max-width: 720px) {
  table.list.stack thead { display: none; }
  table.list.stack, table.list.stack tbody, table.list.stack tr, table.list.stack td { display: block; width: 100%; }
  table.list.stack tr { padding: 10px 2px; border-block-end: 1px solid var(--line); }
  table.list.stack td { border: 0; padding: 2px 0; text-align: start; }
  table.list.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--t-caption); }
  .page-head { flex-wrap: wrap; }
  .page-head .buttons { width: 100%; }
}
/* Upsell opportunities: a service to offer, then who to contact and what they answered */
.upsell-services { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
.upsell-chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); text-decoration: none; color: var(--ink); min-height: 44px; }
.upsell-chip.on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.good-text { color: var(--ok); }
.upsell-filter { margin-block-end: 10px; flex-wrap: wrap; }
.upsell-row { display: grid; grid-template-columns: minmax(14rem, 1.3fr) auto minmax(18rem, 1.5fr); gap: 10px 16px; align-items: center;
  padding: 12px 2px; border-block-start: 1px solid var(--line-2); }
.upsell-row .who { display: flex; flex-direction: column; gap: 2px; }
.upsell-row .contact { display: flex; flex-wrap: wrap; gap: 6px; }
.upsell-row .answer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.upsell-row .answer input[type=text] { flex: 1 1 8rem; min-width: 0; }
@media (max-width: 900px) { .upsell-row { grid-template-columns: 1fr; } }
.card-links { margin-block: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--line-2); }
.card-links h3 { font-size: var(--t-body); margin-block-end: 8px; }
.card-link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-end: 8px; }
.card-link-row input { flex: 1 1 16rem; min-width: 0; }
.pay-card .facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: start; margin: 16px 0; }
/* Contract and project lines as cards (design review fix 14): every field labelled, no sideways scroll */
.line-cards { display: grid; gap: 10px; margin-block-end: 10px; }
.line-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--paper); }
.line-fields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 10px 14px; min-width: 0; }
.line-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-field label { font-size: var(--t-caption); color: var(--muted); font-weight: 600; margin: 0; }
.line-field input, .line-field select, .line-field textarea { width: 100%; min-width: 0; }
.line-field.has-error input, .line-field.has-error select { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: var(--t-caption); }
.line-remove { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.line-removed-note { display: none; font-size: var(--t-caption); color: var(--bad); white-space: nowrap; }
.line-card.is-removed { opacity: .55; background: var(--panel); }
.line-card.is-removed .line-removed-note { display: block; }
.line-card.is-removed [data-line-remove] { display: none; }
/* Forms and feedback (design review fix 16) */
.optional { font-weight: 400; color: var(--muted); font-size: var(--t-caption); }
.error-summary ul { margin: 6px 0 0; padding-inline-start: 18px; }
.error-summary a { color: var(--bad); font-weight: 600; }
.htmx-request, .htmx-request.htmx-indicator { opacity: .6; transition: opacity .2s; }
form .field-error { margin-block-start: 4px; }
[aria-invalid=true] { border-color: var(--bad) !important; }
.messages li.error { background: var(--bad-bg); border-color: var(--bad-line); }

/* One component per job (design review fix 13): one status badge (.tag.status-*), and a switch for settings that save at once */
.tag[class*="status-"] { white-space: nowrap; font-weight: 700; }
input[type=checkbox][role=switch] { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative;
  cursor: pointer; transition: background .15s; vertical-align: middle; border: 0; }
input[type=checkbox][role=switch]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
input[type=checkbox][role=switch]:checked { background: var(--brand-ink); }
input[type=checkbox][role=switch]:checked::after { inset-inline-start: 21px; }
/* Cabins and seat map (the owner's screenshot, 27 Oct 2026): the cabin lines fit their card, the drawing stays in view */
.cabin-grid { align-items: start; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.cabin-grid > * { min-width: 0; }
.cabin-preview { position: sticky; top: calc(var(--top) + 12px); }
.cabin-lines { display: grid; gap: 8px; margin: 14px 0 8px; }
.cabin-line { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; align-items: center; }
.cabin-line label { margin: 0; min-width: 0; }
.cabin-line input, .cabin-line select { width: 100%; min-width: 0 !important; }
.cabin-line-head span { font-size: var(--t-caption); color: var(--muted); font-weight: 600; }
.cabin-line.is-empty select, .cabin-line.is-empty input { background: var(--panel); }
.cl-label { display: none; }
@media (max-width: 1200px) { .cabin-grid { grid-template-columns: 1fr; } .cabin-preview { position: static; } }
@media (max-width: 640px) {
  .cabin-line-head { display: none; }
  .cabin-line { grid-template-columns: 1fr 1fr; padding: 10px 0; border-block-end: 1px solid var(--line-2); }
  .cabin-line label:first-child, .cabin-line label:last-child { grid-column: 1 / -1; }
  .cl-label { display: block; font-size: var(--t-caption); color: var(--muted); margin-block-end: 2px; }
}
/* Fix 18: the booking page's cover photo, and the guest names on its settings */
.hero.with-cover { position: relative; overflow: hidden; }
.hero-cover { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-block-end: 16px; }
.cover-thumb { display: block; max-width: 280px; border-radius: var(--radius-s); margin-block: 8px; }
.guest-names h2 { font-size: 17px; }
.guest-name-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 8px; align-items: center; margin-block: 6px; }
@media (max-width: 720px) { .guest-name-row { grid-template-columns: 1fr; } }
/* Branding: the logo on white and on the dark menu, and a logo made for dark backgrounds shown as it is (fix 18) */
.logo-previews { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 16px; }
.logo-on { margin: 0; padding: 18px; border-radius: var(--radius); min-width: 220px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.logo-on.light { background: #fff; border: 1px solid var(--line); }
.logo-on.dark { background: var(--navy); color: var(--navy-text); }
.logo-on img { max-height: 48px; max-width: 200px; }
.logo-on img.as-white { filter: brightness(0) invert(1); }
.logo-on figcaption { font-size: var(--t-caption); }
.side-brand img.own-dark { filter: none; }
/* Sign in: the form alone (the owner, 27 Oct 2026: nothing that is not the sign-in) */
.auth.auth-plain { grid-template-columns: 1fr; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-block-end: 18px; color: var(--navy); }
.auth-brand img { max-height: 40px; max-width: 160px; }
.transfer-group summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.transfer-group summary::-webkit-details-marker { display: none; }
.transfer-group summary h2 { margin: 0; flex: 1; font-size: 17px; }

/* The bell and its pop-ups (events.alerts): the panel under the bell, the toasts at the bottom corner (left in Arabic). */
.bell-wrap { position: relative; }
.icon-btn.bell { position: relative; }
.icon-btn.bell .badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.bell-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 27, 54, .16); padding: 12px; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 6px; }
.bell-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 4px; }
.bell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bell-list li a { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.bell-list li a:hover { background: var(--info-bg); }
.bell-list li.unread a { border-inline-start: 3px solid var(--brand); background: color-mix(in srgb, var(--info-bg) 60%, transparent); }
.bell-list.page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.bell-empty { padding: 12px 10px; margin: 0; }
.bell-foot { display: block; margin-block-start: 8px; padding-block-start: 8px; border-top: 1px solid var(--line); font-size: .9rem; }
.alert-toasts { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.alert-toast { display: grid; gap: 4px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 27, 54, .18); transition: opacity .6s; }
.alert-toast .button { justify-self: start; }
.alert-toast.fading { opacity: 0; }
.push-setup .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iphone-guide { margin-block-start: 12px; }
@media (max-width: 700px) { .bell-panel { position: fixed; top: calc(var(--top) + 4px); inset-inline: 16px; width: auto; } }
/* A booking's old reference beside its own (core.templatetags.refs): smaller and grey, never mistaken for the new one. */
.old-ref { font-size: .82em; font-weight: 400; color: var(--muted); white-space: nowrap; }
.old-ref::before { content: "· "; }
/* Company & group accounts (the board, 27 Oct 2026): rows near or over their credit limit, the booking's account, the statement. */
.list tr.row-near td { background: color-mix(in srgb, var(--warn-bg, #FFF4D6) 70%, transparent); }
.list tr.row-over td { background: var(--bad-bg); }
.billed-to { margin-inline-start: auto; font-size: .92rem; }
.filters-row { margin-block-end: 12px; }
.statement-who { color: var(--muted); margin: 4px 0 0; }
.statement-credit { margin: 12px 0 0; }
.statement-foot { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
@media print {
  .side, .topbar, .no-print, .skip-link, .messages, .alert-toasts { display: none !important; }
  .app .main-col { margin: 0 !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
/* No descriptions under the titles (the owner, 27 Oct 2026): only a subtitle that carries data (dates, who, when) stays. */
.page-head p.sub:not(.data) { display: none; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: color-mix(in srgb, var(--info-bg) 55%, transparent); }
a.kpi-link { color: inherit; text-decoration: none; } a.kpi-link:hover { border-color: var(--brand); }
.desk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.desk-grid .card { margin: 0; }
@media (max-width: 899px) { .desk-grid { grid-template-columns: 1fr; } }
/* The booking as a trip (the owner's notes, 27 Oct 2026: like the SAUDIA app): journeys, then a card per traveler. */
.trip { display: grid; gap: 16px; margin-block-end: 16px; }
.trip .card { margin: 0; }
.journeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.journey { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; display: grid; gap: 8px; }
.journey-legs { display: flex; align-items: flex-end; gap: 12px; }
.journey-legs > div { display: grid; gap: 2px; }
.journey-legs .when { font-weight: 600; }
.journey-legs .place { font-size: 1.15rem; }
.journey-arrow { color: var(--muted); font-size: 1.3rem; }
[dir=rtl] .journey-arrow { transform: scaleX(-1); }
.journey-plane { font-size: .88rem; }
.trip-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person-head { display: flex; gap: 10px; align-items: center; margin-block-end: 10px; }
.person-head > div { display: grid; }
.person-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.person-facts dt { color: var(--muted); }
.person-facts dd { margin: 0; }
.figure-sub { font-size: .9rem; color: var(--muted); margin: 14px 0 6px; }
.kpi .small-value { font-size: 1.1rem; }
.unseat-all { float: inline-end; margin: 0; }
/* A service's extras (the board, 27 Oct 2026): under the service, small, with their state. */
.extras-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 6px; }
.extras-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 10px; border-inline-start: 3px solid var(--line); background: color-mix(in srgb, var(--info-bg) 40%, transparent); border-radius: 6px; font-size: .92rem; }
.extras-list li.struck { opacity: .55; text-decoration: line-through; }
.extras-list .extra-name { font-weight: 600; }
.extras-list .extra-confirm input { width: 9em; }
.extras-list .inline-form input { padding: 4px 8px; font-size: .88rem; }
.pending-extras { margin: 8px 0 0; color: var(--warn); }
/* Upsell by guest (the board, 27 Oct 2026): one card per booking, what it has and what it lacks. */
.upsell-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-end: 14px; }
.upsell-views { margin-block-end: 10px; }
.guest-upsell { display: grid; gap: 12px; }
.guest-row { margin: 0; display: grid; gap: 10px; }
.guest-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.guest-head > div:first-child { display: grid; gap: 2px; }
.guest-name { font-size: 1.08rem; }
.has-line, .missing-line { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-start; }
.lbl { color: var(--muted); font-size: .88rem; min-width: 5.5em; padding-top: 3px; }
.chip-has { background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 2px 9px; border-radius: 99px; font-size: .9rem; }
.chip-extra { background: var(--info-bg); padding: 2px 9px; border-radius: 99px; font-size: .9rem; }
.chip-missing { border: 1px dashed var(--warn); color: var(--warn); padding: 2px 9px; border-radius: 99px; font-size: .9rem; font-weight: 600; }
.missing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 0; }
.missing-list li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.missing-list li.declined { opacity: .55; }
.missing-list li.declined .chip-missing { text-decoration: line-through; }
.missing-list .answer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-inline-start: auto; }
.missing-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.missing-list .answer select { width: auto; min-width: 9.5em; padding-block: 4px; }
.missing-list .answer .button, .missing-list .answer button { min-height: 0; }
