/* 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); }
.bad { color: var(--bad); }
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 img { height: 34px; width: auto; max-width: 120px; border-radius: 6px; background: #fff; padding: 2px; }
.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(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-block-end: 18px; }
.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); }
details.mrz summary { cursor: pointer; color: var(--brand); font-weight: 600; }
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; }
tr.group-row td { background: var(--panel); }
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: 1440px) { .settings-layout { grid-template-columns: 1fr; gap: 16px; } .subnav { position: static; flex-direction: row; flex-wrap: wrap; 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); }
.person { display: flex; gap: 12px; align-items: center; }
.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); }
.card.change { padding: 16px 18px; }
.change-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
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 { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 12px; }
.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; } .traveler-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- 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 { 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) */
.pill-st { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap; }
.pill-st.ok { background: #1F9D5A; }
.pill-st.pending { background: #E0A100; color: #2B2100; }
.pill-st.progress { background: #2F6FDB; }
.pill-st.off { background: #8B93A7; }
.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 .pill-st { font-size: .72rem; padding: 2px 8px; }
.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; }
.preset-row { display: flex; gap: 6px; flex-wrap: wrap; }
.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 { 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-grid { align-items: start; grid-template-columns: 3fr 2fr; }
.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; }
.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; }
