/* ==========================================================================
   Conference Database Reloaded
   Brand: navy #00205b with the gold (#bc955a) from the Britannia / Elite marks.
   No build step - plain CSS with custom properties.
   ========================================================================== */

:root {
    --navy: #00205b;
    --navy-700: #001a4a;
    --navy-600: #0b2e6e;
    --navy-100: #e6ebf3;
    --navy-50: #f3f5f9;
    --gold: #bc955a;
    --gold-600: #a37f45;
    --gold-100: #f5ede1;
    --ink: #1c2433;
    --ink-2: #4a5568;
    --ink-3: #5d6678;   /* muted text: 5:1 or better on white, the page background and the tinted boxes */
    --line: #d9dee7;
    --line-2: #eceff4;
    --bg: #f4f6f9;
    --card: #ffffff;
    --ok: #1d7a4b;
    --good: #1f9d55;            /* brighter green for accents: online dots, "good news" tiles */
    --ok-bg: #e5f4ec;
    --warn: #8a5a00;
    --warn-bg: #fff4dc;
    --bad: #b42318;
    --bad-bg: #fdecea;
    --info-bg: #e9f0fb;
    --kind-activity: #6b4f9e;   /* record-type colours used on tiles, the diary and the calendar */
    --kind-task: #4a5568;
    --opera: #1d4f9c;
    --spark: #7f95ba;           /* past months in the small 12-month charts (3:1 on white); this month is navy */
    --hotel: var(--navy);
    --hotel-ink: #fff;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0, 32, 91, .06), 0 2px 8px rgba(0, 32, 91, .06);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --s-status-1: #b26b00; --s-status-1-bg: #fff1d6;   /* provisional */
    --s-status-2: #1e5aa8; --s-status-2-bg: #e3edfb;   /* confirmed */
    --s-status-3: #1d7a4b; --s-status-3-bg: #e2f3ea;   /* contracted */
    --s-status-4: #4a5568; --s-status-4-bg: #eceff4;   /* enquiry */
    --s-status-5: #b42318; --s-status-5-bg: #fdecea;   /* lost */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy); }
a:hover { color: var(--gold-600); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 650; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85em; }
.muted { color: var(--ink-3); }
.mt { margin-top: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
pre.debug { background: #111; color: #eee; padding: 1rem; overflow: auto; font-size: 12px; border-radius: var(--radius); text-align: left; }
.pre-wrap { white-space: pre-wrap; margin: 0; font: inherit; }

/* ------------------------------------------------------------- masthead */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead__inner { max-width: 1500px; margin: 0 auto; padding: .55rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.brand img { display: block; height: 40px; width: auto; }
.brand__app { color: var(--navy); font-weight: 600; letter-spacing: .02em; padding-left: 1.25rem; border-left: 2px solid var(--gold); font-size: 1rem; }
.usermenu { margin-left: auto; position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .25rem .5rem; border-radius: var(--radius); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--navy-50); }
.usermenu__name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; color: var(--navy); }
.usermenu__name small { color: var(--gold-600); font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; border: 2px solid var(--gold); }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 230px; padding: .35rem; z-index: 50; display: flex; flex-direction: column; }
.usermenu__panel a, .usermenu__panel .linklike { padding: .5rem .75rem; border-radius: 6px; text-decoration: none; color: var(--ink); text-align: left; }
.usermenu__panel a:hover, .usermenu__panel .linklike:hover { background: var(--navy-50); color: var(--navy); }
.usermenu__panel { max-height: calc(100vh - 90px); overflow-y: auto; }
/* Settings: one expandable item holding the admin pages */
.usermenu__group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-radius: 6px; cursor: pointer; color: var(--ink); }
.usermenu__group > summary::-webkit-details-marker { display: none; }
.usermenu__group > summary::after { content: ''; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -.2rem .1rem 0 .75rem; transition: transform .15s ease; }
.usermenu__group[open] > summary::after { transform: rotate(-135deg); margin-top: .2rem; }
.usermenu__group > summary:hover { background: var(--navy-50); color: var(--navy); }
.usermenu__group[open] > summary { font-weight: 600; color: var(--navy); }
.usermenu__sub { display: flex; flex-direction: column; margin: .1rem 0 .35rem .6rem; padding-left: .5rem; border-left: 2px solid var(--line); }
.usermenu__sub a { padding: .4rem .65rem; font-size: .93rem; }
.usermenu__label { padding: .55rem .65rem .15rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }

/* -------------------------------------------- hotel bar (current hotel) */
.hotelbar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 40; }
.hotelbar__inner { max-width: 1500px; margin: 0 auto; padding: .6rem 1.25rem .3rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hotelbar__id { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.hotelbar__name { font-size: 1.25rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotelbar__num { opacity: .65; font-size: .85rem; }
.hotel-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .15rem .55rem; border-radius: 6px; font-weight: 800; letter-spacing: .04em; background: var(--hotel); color: var(--hotel-ink); box-shadow: 0 0 0 2px rgba(255,255,255,.85); font-size: .85rem; }
.hotelswitch { margin-left: auto; }
.hotelswitch select { background: var(--navy-700); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: .4rem 2rem .4rem .6rem; max-width: 340px; font: inherit; }
.mainnav { max-width: 1500px; margin: 0 auto; }
.mainnav__inner { display: flex; flex-wrap: wrap; gap: 0 .15rem; padding: 0 1rem; }
.mainnav a { color: rgba(255,255,255,.82); text-decoration: none; padding: .55rem .8rem .5rem; box-shadow: inset 0 -3px 0 transparent; white-space: nowrap; font-weight: 500; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.mainnav a.is-active { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); font-weight: 650; }
.mainnav__toggle { display: none; }
.hotelbar--plain .mainnav__inner { padding-top: .25rem; }
.is-training .hotelbar { background: repeating-linear-gradient(135deg, var(--navy) 0 22px, #14306b 22px 44px); }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--p2 { background: var(--warn-bg); color: var(--warn); }
.tag--p3 { background: var(--bad-bg); color: var(--bad); }
.pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-size: .75rem; font-weight: 600; }

/* ------------------------------------------------------------- page */
.page { max-width: 1500px; width: 100%; margin: 0 auto; padding: 1.25rem; flex: 1; }
.footer { text-align: center; color: var(--ink-3); font-size: .8rem; padding: 1.25rem; }
.narrow { max-width: 640px; margin: 0 auto; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pagehead--tight { margin: 1.5rem 0 .75rem; align-items: center; }
.pagehead--tight h2 { margin: 0; }
.pagehead p { margin: 0; }
.pagehead__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pagehead__actions form { display: inline; margin: 0; }
.crumbs { margin: 0 0 .15rem !important; font-size: .85rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.card > h2:first-child { padding-bottom: .5rem; border-bottom: 1px solid var(--line-2); margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
details.card > summary { cursor: pointer; }
.inline-h { display: inline; border: 0 !important; padding: 0 !important; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--ink-3); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid2--wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.stack > * + * { margin-top: .9rem; }

/* ------------------------------------------------------------- flash */
.flash { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border-left: 4px solid; background: var(--info-bg); border-color: var(--navy); }
.flash--success { background: var(--ok-bg); border-color: var(--ok); }
.flash--error { background: var(--bad-bg); border-color: var(--bad); }
.flash--warning { background: var(--warn-bg); border-color: var(--gold); }
.flash--info { background: var(--info-bg); border-color: var(--navy); }

/* ------------------------------------------------------------- imports / documents */
.radio-card { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; margin: 0 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.radio-card:has(input:checked) { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--gold); background: var(--info-bg); }
.radio-card input { margin-top: .25rem; }
fieldset.plain legend { font-weight: 600; margin-bottom: .5rem; color: var(--navy); }
.table tr.row--warn td { background: var(--warn-bg); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: var(--line-2); padding: .05rem .3rem; border-radius: 4px; }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .95rem; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-50); }
.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--bad); border-color: #f1c4bf; }
.btn--danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.btn--small { padding: .25rem .6rem; font-size: .8rem; }
.btn--block { width: 100%; padding: .7rem; }
.iconbtn { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .1rem .35rem; border-radius: 4px; }
.iconbtn:hover { color: var(--bad); background: var(--bad-bg); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

/* ------------------------------------------------------------- forms */
label, .label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; font-size: .85rem; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
    width: 100%; padding: .48rem .6rem; border: 1px solid #c6cdd9; border-radius: 6px; font: inherit; color: var(--ink); background: #fff; min-height: 36px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,32,91,.12); outline: none; }
input[readonly] { background: var(--navy-50); color: var(--ink-2); }
input:disabled, select:disabled, textarea:disabled { background: #f1f3f6; color: var(--ink-3); }
input[type=color] { width: 56px; height: 36px; padding: 2px; border: 1px solid #c6cdd9; border-radius: 6px; }
.field { min-width: 0; }
.field__hint { color: var(--ink-3); font-size: .8rem; margin: .25rem 0 0; }
.field__error { color: var(--bad); font-size: .8rem; font-weight: 600; margin: .25rem 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); background: #fffafa; }
.req { color: var(--bad); }
.check, .radio { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); cursor: pointer; margin: 0; }
.check input, .radio input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.radios { display: flex; flex-direction: column; gap: .4rem; }
.radio { align-items: flex-start; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-wrap: wrap; }
.radio small { flex-basis: 100%; color: var(--ink-3); font-weight: 400; padding-left: 1.4rem; }
.radio:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.checks { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin: .9rem 0; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem .9rem; max-height: 260px; overflow: auto; padding: .5rem; border: 1px solid var(--line); border-radius: 6px; }
.checkgrid--tall { max-height: 340px; }
.checkfilter { margin-bottom: .4rem; }
.cols { display: grid; gap: .9rem 1rem; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline input[type=text] { flex: 1; min-width: 120px; }
.actions { display: flex; justify-content: flex-end; gap: .5rem; align-items: center; flex-wrap: wrap; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card.plain { border: 1px solid var(--line); padding: 1.1rem 1.25rem; }
.w-num { width: 90px !important; }
.money input { text-align: right; font-variant-numeric: tabular-nums; }
.optdates { display: grid; gap: .5rem; margin-top: .9rem; }
.optdate { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.optdate .check { min-width: 135px; }
.optdate input[type=date] { width: auto; }
.optdate--range { margin-top: .5rem; }
.optdate .field__error { flex-basis: 100%; }
.stagedates { margin: -.25rem 0 .75rem; }
.thumb { display: block; max-width: 100%; max-height: 140px; border-radius: 6px; margin-bottom: .4rem; border: 1px solid var(--line); }
.linkbox { margin-bottom: 1rem; border-color: var(--gold); background: var(--gold-100); }
.linkbox input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* record forms */
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.span-all { grid-column: 1 / -1; }
.savebar { position: sticky; bottom: 0; z-index: 30; margin-top: 1.25rem; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; padding: .75rem 1rem; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(0,32,91,.08); flex-wrap: wrap; }
.savebar--inline { position: static; box-shadow: none; }
.saving-to { margin-right: auto; color: var(--ink-2); font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.saving-to strong { color: var(--navy); display: inline-flex; align-items: center; gap: .35rem; }
.hotel-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--hotel); box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.actions .saving-to { margin-right: auto; }

/* ------------------------------------------------------------- status */
.status { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
h1 .status { font-size: .8rem; }
.status--1 { color: var(--s-status-1); background: var(--s-status-1-bg); }
.status--2 { color: var(--s-status-2); background: var(--s-status-2-bg); }
.status--3 { color: var(--s-status-3); background: var(--s-status-3-bg); }
.status--4 { color: var(--s-status-4); background: var(--s-status-4-bg); }
.status--5 { color: var(--s-status-5); background: var(--s-status-5-bg); }
.role { font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--line-2); white-space: nowrap; }
.role--head_office { background: var(--navy); color: #fff; }
.role--area_manager { background: var(--gold); color: #fff; }
.role--cluster_manager { background: var(--gold-100); color: var(--gold-600); }
.role--manager { background: var(--navy-100); color: var(--navy); }

/* ------------------------------------------------------------- tabs & filters */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.tabs--wrap { flex-wrap: wrap; }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.segmented a { padding: .4rem .8rem; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.segmented a + a { border-left: 1px solid var(--line); }
.segmented a.is-active { background: var(--navy); color: #fff; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; display: grid; gap: .7rem; }
.filters__row { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.filters .field { width: auto; }
.field--grow { flex: 1 1 260px; }
.filters__buttons { margin-left: auto; display: flex; gap: .4rem; }
.quickdates { display: flex; gap: .9rem; font-size: .85rem; flex-wrap: wrap; }
.multi { position: relative; }
.multi summary { list-style: none; cursor: pointer; border: 1px solid #c6cdd9; border-radius: 6px; padding: .45rem .7rem; background: #fff; min-height: 36px; display: flex; gap: .4rem; align-items: center; white-space: nowrap; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: "▾"; color: var(--ink-3); margin-left: .2rem; }
.multi__label { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.multi__value { color: var(--navy); font-weight: 600; }
.multi[open] summary { border-color: var(--navy); }
.multi__panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 35; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: .5rem; min-width: 240px; max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: .2rem; }
.multi__panel label { font-weight: 500; color: var(--ink); display: flex; gap: .45rem; align-items: center; padding: .2rem .3rem; border-radius: 4px; margin: 0; }
.multi__panel label:hover { background: var(--navy-50); }

/* ------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .tablewrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; background: var(--navy-50); color: var(--navy); font-weight: 650; padding: .55rem .65rem; border-bottom: 2px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: .5rem .65rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: #fafbfd; }
.table--click tbody tr[data-href] { cursor: pointer; }
.table--click tbody tr:hover td { background: var(--gold-100); }
.table--compact td, .table--compact th { padding: .35rem .5rem; }
.table tfoot td { font-weight: 700; background: var(--navy-50); border-top: 2px solid var(--line); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.overdue { color: var(--bad); font-weight: 700; }
.table tr.is-disabled td { color: var(--ink-3); }
.table td.clip { max-width: 320px; }
.table input, .table select { min-height: 30px; padding: .25rem .4rem; }
.rowactions { white-space: nowrap; text-align: right; }
.rowactions form, .rowactions details { display: inline-block; }
.sort { color: inherit; text-decoration: none; }
.sort.is-asc::after { content: " ▲"; font-size: .7em; }
.sort.is-desc::after { content: " ▼"; font-size: .7em; }
.pager { display: flex; justify-content: center; gap: 1rem; align-items: center; margin: 1rem 0; }
.pager a { font-weight: 600; }
.addrow { margin-top: .75rem; }
.addrow input[type=number] { width: 100px; }
.popover { position: relative; }
.popover summary { list-style: none; }
.popover summary::-webkit-details-marker { display: none; }
.popover__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; width: min(560px, 90vw); text-align: left; white-space: normal; }

/* ------------------------------------------------------------- notes, balance */
.notes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.notes li { border-left: 3px solid var(--gold); background: var(--navy-50); padding: .55rem .8rem; border-radius: 0 6px 6px 0; }
.notes__meta { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.notes__body { white-space: normal; overflow-wrap: anywhere; }
.balance { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0 0 1rem; }
.balance div { background: var(--navy-50); padding: .5rem .65rem; border-radius: 6px; }
.balance dt { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.balance dd { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.balance__due.is-late { background: var(--bad-bg); } .balance__due.is-late dd { color: var(--bad); }
.balance__due.is-paid { background: var(--ok-bg); } .balance__due.is-paid dd { color: var(--ok); }
.peoplelist { list-style: none; padding: 0; margin: 0; columns: 3 220px; }
.peoplelist li { padding: .2rem 0; break-inside: avoid; }
.peoplelist li.is-disabled a { color: var(--ink-3); text-decoration: line-through; }

/* ------------------------------------------------------------- dashboard */
.hero { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-600) 60%, #23417f 100%); color: #fff; border-radius: 12px; padding: 1.6rem 1.8rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; min-height: 170px; background-position: center; }
.hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; background: url('/assets/img/favicon.png') no-repeat center / contain; opacity: .12; pointer-events: none; }
.hero--image::after { display: none; }
.hero--image > :not(.hero__bg) { position: relative; z-index: 1; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; display: block; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,32,91,.88) 0%, rgba(0,32,91,.55) 55%, rgba(0,32,91,.15) 100%); }
.hero h1 { color: #fff; font-size: 2rem; margin: .1rem 0 .25rem; }
.hero p { margin: 0; opacity: .9; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--gold) !important; font-weight: 700; opacity: 1 !important; }
.hero__actions { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--navy); transition: transform .08s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--ink); }
.tile__num { font-size: 2rem; font-weight: 750; color: var(--navy); line-height: 1.1; }
.tile__label { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.tile__overdue { margin-top: .35rem; color: var(--bad); font-weight: 700; font-size: .8rem; }
.tile--show { border-top-color: var(--gold); }
.tile--chase { border-top-color: var(--navy); }
.tile--payment { border-top-color: var(--s-status-3); }
.tile--activity { border-top-color: var(--kind-activity); }
.tile--task { border-top-color: var(--kind-task); }
.diary { list-style: none; margin: 0 0 .75rem; padding: 0 .25rem 0 0; max-height: 640px; overflow-y: auto; }
.diary__day { font-weight: 700; color: var(--navy); margin-top: .8rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line-2); }
.diary__day:first-child { margin-top: 0; }
.diary__item { display: flex; flex-direction: column; padding: .4rem 0 .4rem .7rem; border-left: 3px solid var(--navy); margin: .35rem 0; }
.diary__item a { font-weight: 600; text-decoration: none; }
.diary__kind { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.diary__item--show { border-left-color: var(--gold); }
.diary__item--payment { border-left-color: var(--s-status-3); }
.diary__item--activity { border-left-color: var(--kind-activity); }
.diary__item--task { border-left-color: var(--kind-task); }
.diary--overdue .diary__kind { color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 0; }
.stats div { background: var(--navy-50); padding: .6rem .75rem; border-radius: 6px; }
.stats dt { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.stats dd { margin: 0; font-size: 1.35rem; font-weight: 750; color: var(--navy); }
.stats dd small { font-size: .8rem; color: var(--ink-2); font-weight: 600; display: block; }

/* hotel chooser */
.hotelgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.hotelcard { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--hotel); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.hotelcard:hover { border-color: var(--gold); border-left-color: var(--hotel); color: var(--ink); }
.hotelcard .hotel-chip { align-self: flex-start; box-shadow: none; }
.hotelcard__name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.hotelcard__meta { color: var(--ink-3); font-size: .8rem; }
/* Hotels page: cards with the hotel's picture (or its colour and code) and what is due / overdue there.
   The plain .hotelcard above is still used by Groups > Hotel galleries. */
.hotelsection { margin-bottom: 1.4rem; }
.hotelsection__title { display: flex; align-items: baseline; gap: .5rem; font-size: 1rem; margin: 0 0 .55rem; }
.hotelsection__title small { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.hoteltools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.hotelfind { flex: 1 1 240px; max-width: 340px; }
.hotelfind input { width: 100%; background: #fff; }
.hotelcard--photo { padding: 0; gap: 0; border-left-width: 1px; border-left-color: var(--line); overflow: hidden; height: 100%; transition: transform .08s ease; }
.hotelcard--photo:hover { transform: translateY(-2px); border-color: var(--gold); }
.hotelcard__top { position: relative; display: block; aspect-ratio: 16 / 7; background: var(--hotel); overflow: hidden; }
.hotelcard__top img { display: block; width: 100%; height: 100%; }
.hotelcard__top .hotel-chip { position: absolute; left: .6rem; bottom: .6rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.hotelcard__code { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hotel-ink); font-size: 2.2rem; font-weight: 800; letter-spacing: .08em; }
.hotelcard__tag { position: absolute; right: .6rem; top: .6rem; padding: .1rem .55rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.hotelcard__body { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem .8rem; flex: 1; }
.hotelcard__due { margin-top: .3rem; font-size: .8rem; color: var(--ink-2); }
.hotelcard__due.is-none { color: var(--ink-3); }
.hotelcard__overdue { font-size: .8rem; font-weight: 700; color: var(--bad); }
/* "carry on where you left off": one card on its side, so it doesn't push the list down the page */
.hotelsection--last .hotelgrid { grid-template-columns: minmax(0, 460px); }
.hotelsection--last .hotelcard--photo { flex-direction: row; }
.hotelsection--last .hotelcard__top { flex: 0 0 40%; aspect-ratio: auto; min-height: 104px; }
.hotelsection--last .hotelcard__tag { right: auto; left: .6rem; }
@media (max-width: 700px) { .hotelfind { flex-basis: 100%; max-width: none; } }
/* phones: every card on its side - a long list of full-width pictures is a lot of scrolling */
@media (max-width: 600px) {
    .hotelcard--photo { flex-direction: row; }
    .hotelcard--photo .hotelcard__top { flex: 0 0 36%; aspect-ratio: auto; min-height: 96px; }
    .hotelcard__code { font-size: 1.5rem; }
    .hotelcard__body { padding: .55rem .75rem .6rem; }
}

/* tasks */
.tasklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.task { display: flex; gap: .75rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.task--p2 { border-left-color: var(--gold); }
.task--p3 { border-left-color: var(--bad); }
.task.is-overdue .task__meta { color: var(--bad); font-weight: 600; }
.task.is-done { opacity: .65; }
.task.is-done .task__title { text-decoration: line-through; }
.task form { margin: 0; }
.task__tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: #fff; cursor: pointer; font-weight: 800; display: grid; place-items: center; padding: 0; margin-top: 2px; }
.task.is-done .task__tick { background: var(--ok); border-color: var(--ok); }
.task__tick:hover { background: var(--navy-100); }
.task__title { font-weight: 650; text-decoration: none; }
.task__text { margin: .2rem 0; color: var(--ink-2); }
.task__meta { margin: .2rem 0 0; font-size: .8rem; color: var(--ink-3); }

/* calendar */
.calnav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.calnav h1 { margin: 0 .5rem; min-width: 190px; justify-content: center; }
.legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.legend__item { display: inline-flex; gap: .35rem; align-items: center; font-weight: 500; padding-left: .5rem; border-left: 4px solid var(--navy); margin: 0; }
.legend__item--show { border-color: var(--gold); } .legend__item--payment { border-color: var(--s-status-3); } .legend__item--activity { border-color: var(--kind-activity); } .legend__item--task { border-color: var(--kind-task); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cal th { background: var(--navy); color: #fff; padding: .45rem; font-weight: 600; }
.cal td { border: 1px solid var(--line-2); height: 112px; vertical-align: top; padding: .25rem; }
.cal td.is-out { background: #f7f8fb; } .cal td.is-out .cal__day { color: #b6bcc8; }
.cal td.is-today { background: var(--gold-100); box-shadow: inset 0 0 0 2px var(--gold); }
.cal__day { font-weight: 700; color: var(--navy); font-size: .85rem; }
.cal__ev { display: block; font-size: .75rem; padding: .1rem .35rem; margin-top: .15rem; border-radius: 4px; background: var(--navy-100); color: var(--navy); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--navy); }
.cal__ev--show { background: var(--gold-100); border-color: var(--gold); color: #6b4a16; }
.cal__ev--payment { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.cal__ev--activity { background: #efe9f8; border-color: var(--kind-activity); color: #4c3577; }
.cal__ev--task { background: var(--line-2); border-color: var(--kind-task); color: var(--ink); }
.cal__more { font-size: .75rem; color: var(--ink-3); }

/* reports */
.reportlist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.reportlist a { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow); height: 100%; }
.reportlist a strong { color: var(--navy); }
.reportlist a:hover { border-color: var(--navy); border-left-color: var(--gold); }
.barchart { margin: 0 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.barchart figcaption { display: flex; gap: 1rem; margin-bottom: .6rem; font-size: .8rem; font-weight: 600; }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; background: var(--c); }
.key--1, .seg--1 { --c: #8fa3c4; } .key--2, .seg--2 { --c: var(--navy); } .key--3, .seg--3 { --c: var(--gold); } .key--4, .seg--4 { --c: #c9645b; }
.barchart__row { display: grid; grid-template-columns: 200px 1fr auto; gap: .6rem; align-items: center; margin: .2rem 0; }
.barchart__label { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); text-align: right; }
.barchart__bar { display: flex; gap: 2px; height: 16px; background: transparent; }
.seg { background: var(--c); min-width: 2px; }
.seg:last-child { border-radius: 0 4px 4px 0; }
.barchart__val { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.5rem; }
.barchart__val small { color: var(--ink-3, #7a8396); }
.barchart__row.is-other .barchart__label { font-style: italic; }
.barchart__row:hover .barchart__label, .barchart__row:hover .barchart__val { color: var(--ink); }
.barchart__row:hover .seg { filter: brightness(1.08); }
/* report charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0; min-width: 0; }
.chart--bars { grid-column: 1 / -1; }
.chart__title { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: .6rem; display: block !important; }
.chart__keys { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); margin: -.2rem 0 .6rem; }
.chart__keys i, .pie__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.chart__more { font-size: .75rem; color: var(--ink-2); margin: .5rem 0 0; }
.pie { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.pie__svg svg { width: 170px; height: 170px; display: block; }
.pie__svg path, .pie__svg circle { transition: opacity .15s; }
.pie__svg svg:hover path:not(:hover), .pie__svg svg:hover circle:not(:hover) { opacity: .55; }
.pie__legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; font-size: .82rem; }
.pie__legend li { display: grid; grid-template-columns: 16px 1fr auto auto; gap: .5rem; align-items: center; padding: .2rem 0; border-bottom: 1px solid var(--line-2); }
.pie__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pie__pct { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; min-width: 3rem; }
.pie__val { font-variant-numeric: tabular-nums; text-align: right; min-width: 4.5rem; }
.pie__total { font-weight: 700; border-bottom: 0 !important; }
.table--report td { white-space: nowrap; }

/* auth */
body.auth { background: radial-gradient(1200px 600px at 10% -10%, #19397a 0%, var(--navy) 55%, #00143b 100%); justify-content: center; align-items: center; padding: 1rem; }
.authcard { background: #fff; width: min(440px, 100%); border-radius: 14px; padding: 2rem 2rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); border-top: 5px solid var(--gold); }
.authcard { overflow: hidden; }
.authcard__head { margin: -2rem -2rem 1.5rem; padding: 1.5rem 2rem 1.25rem; border-bottom: 3px solid var(--gold); }
.authcard__logo { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .authcard { padding: 1.5rem 1.25rem 1.25rem; } .authcard__head { margin: -1.5rem -1.25rem 1.25rem; padding: 1.25rem 1.25rem 1rem; } }
.authcard h1 { margin-bottom: 0; }
.authcard .muted.small { margin-top: 1rem; }
.authcard__or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 1rem; color: var(--muted, #6b7280); font-size: .85rem; }
.authcard__or::before, .authcard__or::after { content: ""; flex: 1; border-top: 1px solid #d5d9e0; }
.btn--ms { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; color: #2f2f2f; border: 1px solid #8c8c8c; font-weight: 600; text-decoration: none; }
.btn--ms:hover { background: #f3f3f3; }

/* errors */
.errorpage { text-align: center; padding: 3rem 1rem; }
.errorpage h1 { justify-content: center; }
.errorpage__code { font-size: 4rem; font-weight: 800; color: var(--gold); margin: 0; line-height: 1; }

/* print */
body.print { background: #fff; display: block; padding: 1.5rem; }
.print__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: .75rem; margin-bottom: 1rem; }
.print__head img { height: 44px; width: auto; }
.kv { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.kv th, .kv td { border: 1px solid var(--line); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.kv th { background: var(--navy-50); width: 15%; color: var(--navy); }
.print__note { border-left: 3px solid var(--gold); padding: .3rem .7rem; margin: .5rem 0; }

@media print {
    .masthead, .hotelbar, .footer, .filters, .pagehead__actions, .savebar, .quickdates, .tabs { display: none !important; }
    body { background: #fff; }
    .page { padding: 0; max-width: none; }
    .tablewrap, .card { box-shadow: none; border: 0; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .formgrid, .grid2, .grid2--wide-left { grid-template-columns: 1fr; }
    .brand__app { display: none; }
    .balance { grid-template-columns: repeat(2, 1fr); }
    .hotelswitch { margin-left: 0; width: 100%; }
    .hotelswitch select { max-width: none; width: 100%; }
}
@media (max-width: 600px) {
    .page { padding: .75rem; }
    .cols--2, .cols--4 { grid-template-columns: 1fr; }
    .span2 { grid-column: auto; }
    .brand img { height: 30px; }
    .usermenu__name { display: none; }
    .hero h1 { font-size: 1.5rem; }
    .barchart__row { grid-template-columns: 96px 1fr auto; }
    .charts { grid-template-columns: 1fr; }
    .cal td { height: 70px; } .cal__ev { font-size: .65rem; }
    .filters__buttons { margin-left: 0; }
}
.card .cols + h3 { margin-top: 1.2rem; }
.cols--4 > .span-2 { grid-column: span 2; }
@media (max-width: 720px) { .cols--4 > .span-2 { grid-column: auto; } }
.card h2 + .cols, .card .cols + h2 { margin-top: .4rem; }
.card form + h2, .card .check + h2 { margin-top: 1.2rem; }
.card .check + h3, .card h3 { margin-top: 1.1rem; }

/* ------------------------------------------------------------- touch screens (tablets, phones) */
@media (pointer: coarse) {
    .btn { min-height: 42px; }
    .btn--small { min-height: 36px; }
    input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
    .multi summary { min-height: 42px; }
    .multi__panel label { padding: .45rem .4rem; }
    .mainnav a { padding-top: .7rem; padding-bottom: .65rem; }
}

/* ------------------------------------------------------------- phones */
@media (max-width: 700px) {
    /* menu collapses behind a button showing the current page */
    .js .mainnav__toggle { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; color: #fff; font: inherit; font-weight: 500; padding: .7rem 1rem; cursor: pointer; text-align: left; }
    .mainnav__toggle strong { margin-left: auto; color: var(--gold); font-weight: 650; }
    .mainnav__burger, .mainnav__burger::before, .mainnav__burger::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
    .mainnav__burger::before, .mainnav__burger::after { content: ""; position: absolute; left: 0; }
    .mainnav__burger::before { top: -6px; } .mainnav__burger::after { top: 6px; }
    .js .mainnav__inner { display: none; }
    .js .mainnav.is-open .mainnav__inner { display: flex; flex-direction: column; padding: 0 0 .5rem; }
    .mainnav.is-open .mainnav__burger { background: transparent; }
    .mainnav.is-open .mainnav__burger::before { top: 0; transform: rotate(45deg); }
    .mainnav.is-open .mainnav__burger::after { top: 0; transform: rotate(-45deg); }
    .mainnav.is-open .mainnav__inner a { padding: .75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
    .mainnav.is-open .mainnav__inner a.is-active { box-shadow: inset 4px 0 0 var(--gold); }
    .hotelbar { position: static; }
    .hotelbar__inner { padding: .5rem .75rem .25rem; gap: .5rem; }

    /* quick-view tabs become wrapped chips */
    .tabs { border-bottom: 0; gap: .4rem; }
    .tabs a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; margin: 0; background: #fff; }
    .tabs a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

    /* compact save bar: hotel on one small line, buttons side by side */
    .savebar { padding: .5rem .6rem; gap: .4rem .5rem; }
    .savebar .saving-to { flex: 1 1 100%; font-size: .8rem; margin: 0; }
    .savebar > .btn, .savebar > a.btn, .savebar > button { flex: 1 1 0; }

    /* filter drop-downs open as a panel at the bottom of the screen */
    .multi[open] .multi__panel { position: fixed; top: auto; left: .75rem; right: .75rem; bottom: .75rem; min-width: 0; max-height: 60vh; z-index: 60; box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: .75rem; }

    .calnav h1 { min-width: 0; font-size: 1.4rem; margin: 0 .25rem; }
    .calnav { justify-content: space-between; }
    .pagehead__actions { width: 100%; }
}

/* ------------------------------------------------------------- online users */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.dot--online { background: var(--good); box-shadow: 0 0 0 3px rgba(31,157,85,.18); }
.online { margin-bottom: 1rem; }
.online h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.online__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem 1.25rem; }
.online__list li { display: flex; flex-direction: column; padding: .35rem 0 .35rem .7rem; border-left: 3px solid var(--good); }
.online-text { color: var(--ok); }
/* overview: who's online, on hover / focus of the count */
.whos { position: relative; display: inline-flex; align-items: center; gap: .3rem; cursor: help; border-bottom: 1px dotted var(--good); outline: none; }
.whos__pop { display: none; position: fixed; z-index: 60; min-width: 230px; max-width: 300px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,20,60,.18); padding: .55rem .75rem; text-align: left; white-space: normal; font-weight: 400; }
.whos__pop strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .3rem; }
.whos__pop span { display: block; padding: .15rem 0; font-size: .85rem; }
.whos__pop em { display: block; font-style: normal; font-size: .75rem; color: var(--ink-2); }
.whos:hover .whos__pop, .whos:focus .whos__pop, .whos:focus-within .whos__pop { display: block; }

/* ------------------------------------------------------------- multi-hotel overview */
.hotelbar__overview { margin-left: auto; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; white-space: nowrap; }
.hotelbar__overview:hover { background: rgba(255,255,255,.1); color: #fff; }
.hotelbar__overview + .hotelswitch { margin-left: 0; }
/* shorter banner for pages without a hotel picture (Overview, Groups dashboard) */
.hero--overview, .hero--compact { min-height: 0; padding: 1.3rem 1.6rem; margin-bottom: 1rem; }
.overview__scope select { min-width: 240px; background: #fff; }
.tile__sub { color: var(--ink-3); font-size: .8rem; margin-top: .2rem; }
.tile--good { border-top-color: var(--good); }
.attention { margin-bottom: 1rem; }
.attention__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.attention__list li { display: flex; flex-direction: column; }
.attention__list a { text-decoration: none; font-weight: 600; color: var(--navy); display: inline-flex; gap: .4rem; align-items: center; }
.table--overview .hotel-chip { box-shadow: none; font-size: .72rem; min-width: 2.4rem; }
.table--overview td a { text-decoration: none; font-weight: 600; }
.table--overview a.is-bad, .is-bad { color: var(--bad); }
.table--overview tfoot th { background: var(--navy); color: #fff; position: static; border: 0; }
.table--overview .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; }
.table--overview thead .sticky-col { background: var(--navy-50); z-index: 2; }
.table--overview tfoot .sticky-col { background: var(--navy); }
/* a row of group headings (Next 7 days, Overdue...) above the column headings, and a faint line where each group starts.
   Lines are drawn as inset shadows: real borders don't travel with headings that stay put. */
.table--overview thead th { vertical-align: bottom; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--line); }
.table--overview thead .colgroup { text-align: center; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .1rem; box-shadow: inset 1px 0 0 var(--line); }
.table--overview thead .g { box-shadow: inset 1px 0 0 var(--line), inset 0 -2px 0 var(--line); }
.table--overview tbody .g { box-shadow: inset 1px 0 0 var(--line-2); }
.table--overview tfoot .g { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .2); }
/* A long table that scrolls inside its own box, so the headings and the totals row stay in view.
   (Headings can't follow the page itself: .tablewrap scrolls sideways, which stops them at its edge.)
   Not on phones or very short windows, where a scrolling box inside the page gets in the way. */
@media (min-width: 701px) and (min-height: 600px) {
    .tablewrap--tall { max-height: calc(100vh - 4.5rem); overflow: auto; }
    /* the whole heading block stays put (it can be more than one row), not each cell */
    .tablewrap--tall thead { position: sticky; top: 0; z-index: 3; }
    .tablewrap--tall thead th { top: auto; }
    .tablewrap--tall tfoot th, .tablewrap--tall tfoot td { position: sticky; bottom: 0; z-index: 3; }
    .tablewrap--tall tfoot .sticky-col { z-index: 4; }
}
.sortlink { color: inherit; text-decoration: none; }
.sortlink.is-active, .sortlink:hover { text-decoration: underline; }
@media (max-width: 700px) {
    .hotelbar__overview { order: 3; margin-left: 0; }
    .overview__scope, .overview__scope select { width: 100%; min-width: 0; }
}

/* ------------------------------------------------------------- clickable dashboard figures */
.tile--link { position: relative; padding: 0; }
.tile--link .tile__main { display: flex; flex-direction: column; padding: .9rem 1rem; color: inherit; text-decoration: none; flex: 1; }
.tile--link:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile--link .tile__overdue { margin: -.4rem 1rem .8rem; text-decoration: none; align-self: flex-start; border-radius: 4px; }
.tile--link .tile__overdue:hover { text-decoration: underline; }
.tile__main:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--radius); }
a.stat { display: flex; flex-direction: column; background: var(--navy-50); padding: .6rem .75rem; border-radius: 6px; text-decoration: none; border: 1px solid transparent; }
a.stat:hover { border-color: var(--gold); background: #fff; }
.stat__label { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.stat__num { font-size: 1.35rem; font-weight: 750; color: var(--navy); }
.stat__num small { font-size: .8rem; color: var(--ink-2); font-weight: 600; display: block; }
.drillbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; padding: .6rem 1rem; margin-bottom: 1rem; background: var(--info-bg); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.drillbar a { font-weight: 600; white-space: nowrap; }
a.stat--value { grid-column: span 2; border-left: 4px solid var(--navy); }
a.stat--good { border-left-color: var(--good); }
@media (max-width: 420px) { .stat--value { grid-column: auto; } }
.perhotel { margin-bottom: 1rem; }
.perhotel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.perhotel__list a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.perhotel__list a:hover { border-color: var(--gold); }
.perhotel__list .hotel-chip, .hotel-chip--sm { box-shadow: none; font-size: .7rem; min-width: 2.2rem; padding: .1rem .4rem; }
.nowrap { white-space: nowrap; }
/* overview: the figures in two labelled groups, one above the other - what needs doing, then how sales are going.
   --n (set on each .tiles--overview) = how many tiles are in that group; 2 tiles across on phones.
   The Sales tiles are wide (.tiles--wide / .tile--wide): the figure on the left, its trend on the right. */
.tilegroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: 1rem; }
.tilegroup { display: flex; flex-direction: column; min-width: 0; }
.tilegroup__title { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: 1rem; margin: 0 0 .45rem; }
.tilegroup__title small { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.tiles--overview { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: .6rem; margin-bottom: 0; flex: 1; }
.tiles--overview .tile__main { padding: .75rem .8rem; }
.tiles--overview .tile__label { font-size: .8rem; }
.tiles--overview .tile__num { font-size: 1.55rem; white-space: nowrap; }
/* tile colour = state: red when something is overdue, green for business won, grey when there is nothing there */
.tile--bad { border-top-color: var(--bad); }
.tile--bad .tile__num { color: var(--bad); }
.tile--zero { border-top-color: var(--line); }
.tile--zero .tile__num { color: var(--ink-3); }
@media (min-width: 701px) {
    .tile--wide { flex-direction: row; align-items: stretch; }
    .tile--wide > .tile__main { flex: 1 1 42%; min-width: 0; }
    .tile--wide > .tile__trend { flex: 1 1 58%; min-width: 0; margin: 0; padding: .7rem .8rem .6rem .2rem; justify-content: flex-end; }
}
@media (min-width: 701px) and (max-width: 1100px) { .tiles--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Trend under a figure (partials/trend.twig): this month so far against the same days of last month, then the last
   12 months as small columns - past months grey, this month navy. It sits outside the tile's link. */
.tile__trend { display: flex; flex-direction: column; gap: .3rem; margin-top: auto; padding: 0 .8rem .65rem; }
.tile:not(.tile--link) > .tile__trend { padding: .5rem 0 0; }
.delta { font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.delta b { font-size: .7em; margin-right: .1rem; vertical-align: .08em; }
.delta--up b { color: var(--ok); }
.delta--down b { color: var(--warn); }
.spark { display: flex; align-items: flex-end; height: 34px; border-bottom: 1px solid var(--line); }
/* a column's hover area is its full height and width; the bar is inset 1px each side, leaving a 2px gap between bars */
.spark__col { flex: 1 1 0; max-width: 26px; height: 100%; display: flex; align-items: flex-end; padding: 0 1px; }
.spark__col i { display: block; width: 100%; min-height: 2px; background: var(--spark); border-radius: 3px 3px 0 0; }
.spark__col.is-zero i { min-height: 0; }
.spark__col.is-current i { background: var(--navy); }
.spark__col:hover i, .spark__col.is-on i { filter: brightness(1.18); }
.spark__readout { font-size: .75rem; line-height: 1.2; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles--trend { grid-template-columns: repeat(auto-fill, minmax(210px, 260px)); margin-bottom: .6rem; }
.trendtable { margin: .5rem 0 0; font-size: .85rem; }
/* hotel dashboard: This month row (the Overview's Sales layout) between the Coming up tiles and the diary */
.dash-month { margin-bottom: 1.25rem; }
/* Overview: Last update on a hotel using the new system that has gone quiet */
.stale { color: var(--warn); font-weight: 600; white-space: nowrap; }
.stale b { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--warn-bg); font-size: .85em; margin-right: .15rem; }
/* Groups chase list: Overdue / Due today / Next 7 days */
.diary__day small { font-weight: 500; color: var(--ink-3); margin-left: .25rem; }
.diary__day.is-overdue { color: var(--bad); }
.trendtable > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; width: fit-content; }
.trendtable > summary:hover { color: var(--navy); }
.trendtable .tablewrap { margin-top: .5rem; }
.trendtable tr.is-current td { font-weight: 650; }
@media (max-width: 700px) { .tiles--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } .tiles--overview .tile__num { font-size: 1.3rem; } }

/* ------------------------------------------------------------- notifications bell & messages */
.msglink, .bell summary { color: var(--navy); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; position: relative; cursor: pointer; list-style: none; }
.msglink { margin-left: auto; }
.msglink:hover, .bell summary:hover, .bell[open] summary { background: var(--navy-50); }
.bell { position: relative; }
.bell summary::-webkit-details-marker { display: none; }
.masthead__inner .usermenu { margin-left: 0; }
.bell__count { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.bell summary .bell__count { position: absolute; top: 2px; right: 0; }
.bell__panel { position: absolute; right: -60px; top: calc(100% + 6px); width: 360px; max-width: calc(100vw - 1.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.bell__head, .bell__foot { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; }
.bell__head { border-bottom: 1px solid var(--line-2); }
.bell__foot { border-top: 1px solid var(--line-2); font-size: .9rem; }
.bell__enable { margin: 0; padding: .6rem .8rem; background: var(--info-bg); }
.bell__list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.bell__list li a { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .8rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.bell__list li a:hover { background: var(--navy-50); }
.bell__list li.is-unread a { background: var(--info-bg); box-shadow: inset 3px 0 0 var(--gold); }
.bell__list span { color: var(--ink-2); font-size: .85rem; }
.bell__list small { color: var(--ink-3); font-size: .75rem; }
.bell__list--page { max-height: none; }
.bell__empty { padding: .8rem; color: var(--ink-3); }
.msgs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; align-items: start; }
.msgs__list { padding: .75rem; }
.convos { list-style: none; margin: .75rem 0 0; padding: 0; max-height: 65vh; overflow-y: auto; }
.convos a { display: flex; flex-direction: column; padding: .55rem .6rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.convos li.is-active a, .convos a:hover { background: var(--navy-50); }
.convos li.is-unread .convos__name { font-weight: 750; }
.convos__name { font-weight: 600; color: var(--navy); }
.convos__last { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos__empty { padding: .5rem; }
.thread__head { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line-2); padding-bottom: .6rem; margin-bottom: .6rem; }
.thread__head h2 { margin: 0; }
.thread__head p { margin: 0; }
.thread__back { display: none; font-size: 1.6rem; text-decoration: none; padding: 0 .4rem; }
.thread { display: flex; flex-direction: column; gap: .5rem; max-height: 55vh; overflow-y: auto; padding: .25rem .25rem .75rem; }
.bubble { max-width: 75%; align-self: flex-start; background: var(--navy-50); border-radius: 12px 12px 12px 4px; padding: .55rem .8rem; }
.bubble--me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 12px 12px 4px 12px; }
.bubble small { display: block; margin-top: .25rem; font-size: .75rem; opacity: .75; }
.bubble__body { overflow-wrap: anywhere; }
.bubble__about { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .2rem; color: inherit; }
.composer { border-top: 1px solid var(--line-2); padding-top: .6rem; }
.composer textarea { width: 100%; }
.composer__bar { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
#to { width: 100%; margin-top: .4rem; }
@media (max-width: 800px) {
    .msgs { grid-template-columns: 1fr; }
    .msgs--thread .msgs__list { display: none; }
    .thread__back { display: inline-block; }
    .bubble { max-width: 90%; }
    .bell__panel { right: -100px; }
}
@media (max-width: 420px) { .msglink { width: 34px; } .bell summary { width: 34px; } }

/* in-page notification pop-ups */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { position: relative; display: block; background: #fff; color: inherit; text-decoration: none; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 32px 10px 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); animation: toast-in .2s ease-out; }
.toast strong { display: block; }
.toast span { display: block; font-size: .9em; color: #555; margin-top: 2px; }
.toast__x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: #777; padding: 4px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.notify-help { margin-top: .5rem; }
.notify-help summary { cursor: pointer; font-weight: 600; }
.notify-help ul { padding-left: 1.2rem; }
.notify-help li { margin: .3rem 0; }

/* hotel admin: choose which part of the picture shows */
.picframe { display: grid; gap: .75rem; }
.picframe__src { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; user-select: none; touch-action: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.picframe__src img { display: block; max-width: 100%; max-height: 320px; pointer-events: none; }
.picframe__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; }
.picframe__previews { display: grid; grid-template-columns: 1fr 170px; gap: .6rem; align-items: end; }
.picframe__prev { position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(115deg, var(--navy) 0%, var(--navy-600) 60%, #23417f 100%); cursor: grab; touch-action: none; }
.picframe__prev:active { cursor: grabbing; }
.picframe__prev--wide { aspect-ratio: 7.8 / 1; }
.picframe__prev--phone { aspect-ratio: 1 / 1.05; }
.picframe__prev .hero__bg img { pointer-events: none; }
.picframe__prev span.lbl { position: absolute; left: 8px; bottom: 6px; z-index: 1; color: #fff; font-size: .7rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.picframe__zoom { display: flex; align-items: center; gap: .6rem; }
.picframe__zoom input[type=range] { flex: 1; max-width: 260px; }
@media (max-width: 600px) { .picframe__previews { grid-template-columns: 1fr; } .picframe__prev--phone { width: 170px; } }

/* Opera Cloud */
.operaids { display: grid; gap: .25rem; margin-top: .6rem; max-width: 760px; }
.operaids__head, .operaids__row { display: grid; grid-template-columns: 1fr 7rem 15rem; gap: .5rem; align-items: center; font-size: .85rem; }
.operaids__head { font-weight: 700; color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.operaids input, .operaids select { padding: .25rem .4rem; }
@media (max-width: 640px) { .operaids__head { display: none; } .operaids__row { grid-template-columns: 1fr 1fr; } .operaids__row span { grid-column: 1 / -1; font-weight: 600; } }
.opera { border-left: 4px solid var(--opera); }
.opera__head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.opera__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin: .6rem 0; }
.opera__stats div { background: var(--line-2); border-radius: 8px; padding: .45rem .6rem; }
.opera__stats small { display: block; color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.opera__stats strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.opera__pickup { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-top: .3rem; }
.opera__pickup span { display: block; height: 100%; background: var(--opera); border-radius: 0 4px 4px 0; }
.opera__nights { font-size: .8rem; }
.opera__nights td, .opera__nights th { padding: .2rem .5rem; text-align: right; }
.opera__nights th:first-child, .opera__nights td:first-child { text-align: left; }
.opera__issue { margin: .4rem 0 0; }
.opera__sub { font-size: .95rem; margin: 1rem 0 0; color: var(--navy); }
.opera__stats .is-total { background: #e3eaf7; }
.opera__stats .is-here { background: #fff; border: 1px dashed var(--line); }
.opera__events { margin: .6rem 0; }
.opera__events summary { cursor: pointer; font-weight: 600; }
.opera__events table { margin-top: .4rem; }
.opera__bytype { max-width: 520px; }

/* gallery */
.gal { background: var(--navy); border-radius: var(--radius); overflow: hidden; border-bottom: 3px solid var(--gold); }
/* slide show button (gallery page) */
.gal-play.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gal-play__ico { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.gal-play.is-on .gal-play__ico { width: 8px; height: 10px; border-width: 0 3px; border-color: currentColor; }
/* client gallery link panel (gallery page) */
.gal-client-btn { border-color: var(--gold); }
.gal-client-btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gal-client { margin: 0 0 1rem; padding: .85rem 1rem; background: var(--navy-50); border-left: 4px solid var(--gold); border-radius: 6px; }
.gal-client[hidden] { display: none; }
.gal-client label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.gal-client__row { display: flex; gap: .4rem; flex-wrap: wrap; }
.gal-client__row input { flex: 1 1 280px; min-width: 0; }
.gal-client p { margin: .45rem 0 0; }
.gal-caption { margin: .5rem 0 .25rem; font-weight: 600; color: var(--ink); min-height: 1.4em; }
.gal-albums { margin-bottom: .75rem; }
.gal-albums .pill { margin-left: .25rem; }
.btn.is-disabled { pointer-events: none; opacity: .5; }
.galgrid { display: grid; grid-template-columns: 1fr 22rem; gap: .4rem 1rem; align-items: center; max-width: 900px; }
.galgrid__head { font-weight: 700; color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.galgrid select { width: 100%; }
.galgrid .is-suggested select { border-color: var(--gold); background: #fffaf0; }
@media (max-width: 640px) { .galgrid { grid-template-columns: 1fr; } .galgrid__head { display: none; } }

/* Galleria in the Britannia / Elite colours - navy #00205b, gold #bc955a.
   "body" in front of each rule outranks the theme's own CSS, which loads after this file. */
body .galleria-theme-classic { --g-navy: #00205b; --g-deep: #001640; --g-gold: #bc955a; background: var(--g-navy); }
body .galleria-theme-classic .galleria-stage { top: 12px; left: 12px; right: 12px; bottom: 84px; background: var(--g-deep); border-radius: 6px; }
body .galleria-theme-classic .galleria-thumbnails-container { height: 64px; bottom: 10px; left: 12px; right: 12px; }
body .galleria-theme-classic .galleria-carousel .galleria-thumbnails-list { margin-left: 34px; margin-right: 34px; }
body .galleria-theme-classic .galleria-thumbnails .galleria-image { width: 90px; height: 60px; margin: 0 6px 0 0; background: var(--g-deep); border: 2px solid transparent; border-radius: 4px; opacity: .55; transition: opacity .15s, border-color .15s; }
body .galleria-theme-classic.notouch .galleria-thumbnails .galleria-image:hover { opacity: .9; border-color: rgba(188, 149, 90, .6); }
body .galleria-theme-classic .galleria-thumbnails .galleria-image.active { opacity: 1; border-color: var(--g-gold); }
/* arrows: gold-ringed navy circles with a drawn chevron instead of the theme's grey sprite */
body .galleria-theme-classic .galleria-image-nav { margin-top: -26px; height: 52px; }
body .galleria-theme-classic .galleria-image-nav-left,
body .galleria-theme-classic .galleria-image-nav-right { background: rgba(0, 32, 91, .78) none; width: 48px; height: 48px; border: 2px solid var(--g-gold); border-radius: 50%; opacity: .75; left: 22px; transition: opacity .15s, background-color .15s; }
body .galleria-theme-classic .galleria-image-nav-right { left: auto; right: 22px; }
body .galleria-theme-classic.notouch .galleria-image-nav-left:hover,
body .galleria-theme-classic.notouch .galleria-image-nav-right:hover { opacity: 1; background-color: var(--g-gold); }
body .galleria-theme-classic .galleria-image-nav-left::before,
body .galleria-theme-classic .galleria-image-nav-right::before,
body .galleria-theme-classic .galleria-thumb-nav-left::before,
body .galleria-theme-classic .galleria-thumb-nav-right::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: solid #fff; border-width: 0 0 3px 3px; transform: translate(-30%, -50%) rotate(45deg); }
body .galleria-theme-classic .galleria-image-nav-right::before,
body .galleria-theme-classic .galleria-thumb-nav-right::before { border-width: 3px 3px 0 0; transform: translate(-70%, -50%) rotate(45deg); }
body .galleria-theme-classic .galleria-thumb-nav-left,
body .galleria-theme-classic .galleria-thumb-nav-right { background: transparent none; height: 64px; width: 28px; opacity: .9; }
body .galleria-theme-classic .galleria-thumb-nav-left::before,
body .galleria-theme-classic .galleria-thumb-nav-right::before { width: 9px; height: 9px; border-color: var(--g-gold); }
body .galleria-theme-classic.notouch .galleria-thumb-nav-left:hover,
body .galleria-theme-classic.notouch .galleria-thumb-nav-right:hover { background-color: rgba(188, 149, 90, .18); }
/* "3 / 17" */
body .galleria-theme-classic .galleria-counter { bottom: auto; top: 22px; left: 24px; background: rgba(0, 22, 64, .8); color: var(--g-gold); border: 1px solid rgba(188, 149, 90, .5); border-radius: 999px; padding: 4px 10px; font: 600 12px/1 inherit; letter-spacing: .04em; opacity: 1 !important; }
/* loading: a gold ring */
body .galleria-theme-classic .galleria-loader { background: none; top: 22px; right: 24px; width: 22px; height: 22px; border: 3px solid rgba(188, 149, 90, .3); border-top-color: var(--g-gold); border-radius: 50%; animation: gal-spin .8s linear infinite; }
@keyframes gal-spin { to { transform: rotate(360deg); } }
/* lightbox (click a picture) - Galleria sets these inline, hence !important */
body .galleria-lightbox-shadow { background: #000c22 !important; opacity: .9 !important; }
body .galleria-lightbox-box, body .galleria-lightbox-content { background: #00205b !important; }
body .galleria-lightbox-box { border: 2px solid #bc955a !important; border-radius: 8px; }
body .galleria-lightbox-content { box-shadow: none !important; }
body .galleria-lightbox-title { color: #fff !important; font: 600 14px/1.3 inherit !important; }
body .galleria-lightbox-counter { color: #bc955a !important; font: 600 12px/1 inherit !important; opacity: 1 !important; }
body .galleria-lightbox-close { background: #bc955a !important; color: #00205b !important; border-radius: 50%; width: 26px !important; height: 26px !important; line-height: 24px !important; font: 700 16px/24px inherit !important; text-align: center; top: -12px !important; right: -12px !important; }
@media (max-width: 640px) {
    body .galleria-theme-classic .galleria-stage { left: 6px; right: 6px; top: 6px; bottom: 70px; }
    body .galleria-theme-classic .galleria-thumbnails-container { height: 52px; left: 6px; right: 6px; }
    body .galleria-theme-classic .galleria-thumbnails .galleria-image { width: 72px; height: 48px; }
    body .galleria-theme-classic .galleria-image-nav-left, body .galleria-theme-classic .galleria-image-nav-right { width: 40px; height: 40px; left: 10px; }
    body .galleria-theme-classic .galleria-image-nav-right { left: auto; right: 10px; }
}

/* ------------------------------------------------ Groups section */
.mainnav__section { align-self: center; margin-right: .6rem; padding: .2rem .65rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mainnav a.mainnav__back { margin-left: auto; color: rgba(255,255,255,.65); font-size: .9rem; }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--narrow input { max-width: 11rem; }
.radios--row { flex-direction: row; flex-wrap: wrap; gap: .35rem 1.1rem; }
.checkrow { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.inline--end { align-items: flex-end; }
.inline--end .field { margin-bottom: 0; }
.inline--end .btn { margin-bottom: .1rem; }
.opera-tick { color: var(--s-status-3); font-weight: 800; }
.opera-avail { margin-top: .8rem; }
.opera-avail .table { max-width: 22rem; }
.opera-avail .error { color: var(--bad); }
.groupform [hidden] { display: none !important; }
@media (max-width: 700px) { .cols--3 { grid-template-columns: 1fr 1fr; } }
.opera-cols { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: .5rem; }
.opera-h { font-size: .95rem; margin: .4rem 0 .35rem; color: var(--navy); }
.opera-fr__grid th.c, .opera-fr__grid td.c { text-align: center; white-space: nowrap; }
.fr-free, .fr-busy { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.fr-free { color: var(--s-status-3); background: var(--s-status-3-bg); }
.fr-busy { color: var(--s-status-5); background: var(--s-status-5-bg); }
@media (max-width: 900px) { .opera-cols { grid-template-columns: 1fr; } }
.opera-fr__grid td:first-child { white-space: nowrap; }

/* ------------------------------------------------ attendee lists (events we run ourselves) */
.attendee-toggle { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.2rem; padding: .7rem .8rem; background: var(--bg, #f6f7fa); border: 1px dashed var(--line); border-radius: 6px; }
.attendee-toggle .check { flex: 1 1 320px; }
.attendee-toggle .field { margin-bottom: 0; }
.attendees__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.attendees__head h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.attendees__tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.attendees__table .attendees__day th { background: var(--navy); color: #fff; font-weight: 650; padding: .45rem .6rem; }
.attendees__table .attendees__day a { color: var(--gold); margin-left: .8rem; font-weight: 600; }
.attendees__add { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.attendees__add h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--navy); }
.attendees__fields { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; }
.attendees__fields .field { margin-bottom: 0; }
.attendees__fields .field--grow { flex: 1 1 200px; }
.field--xs input { width: 5.5rem; }
.attendees__btn .btn { margin-bottom: .05rem; }
.attendees__clear { margin-top: .8rem; text-align: right; }
.inline-form { display: inline; }
a.iconbtn { text-decoration: none; }
a.iconbtn:hover { color: var(--navy); background: var(--line); }
.attendee-print .tick { width: 1.6rem; text-align: center; font-size: 1.1rem; }
.cal__ev--event { white-space: normal; background: #fdecef; border-color: #b4234a; color: #8a1838; font-weight: 600; }
.legend__item--event { border-color: #b4234a; }
.availcheck { margin-bottom: 1rem; }
.availcheck summary { cursor: pointer; }
.availcheck__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .8rem; margin-top: .8rem; }
.availcheck__form .field { margin-bottom: 0; }
.availcheck__form .field__hint { flex-basis: 100%; margin: 0; }
.tag--ok { color: var(--s-status-3); background: var(--s-status-3-bg); border-color: transparent; }
.syscheck__st { width: 4.5rem; } .syscheck__fix { margin-top: .2rem; font-family: ui-monospace, monospace; word-break: break-word; }

/* Groups revenue production report: flag key */
.revflag { display: inline-block; padding: 0 .4rem; border-radius: 3px; color: #1d2433; font-weight: 600; }

/* Groups request form: number of rooms under each room type */
.roomtypes { gap: .6rem 1.1rem; }
.roomtype { display: flex; flex-direction: column; gap: .25rem; }
.roomtype input[type=number] { width: 5.5rem; padding: .25rem .4rem; }

/* OPERA availability below zero (hotel overbooked) */
.opera-neg { color: var(--bad); font-weight: 700; }

/* Groups dashboard */
.tile--link .tile__more { margin: -.4rem 1rem .8rem; }

/* lightbox previous / next: round buttons like the main viewer's (Galleria's own are plain white boxes) */
body .galleria-lightbox-prev, body .galleria-lightbox-next { box-sizing: border-box; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(0, 32, 91, .78); border: 2px solid rgba(188, 149, 90, .7); color: transparent !important; font-size: 0; line-height: 0; transition: background-color .15s, border-color .15s; }
body .galleria-lightbox-prev { left: 16px; }
body .galleria-lightbox-next { right: 16px; left: auto; }
body .galleria-lightbox-prev::before, body .galleria-lightbox-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border: solid #fff; border-width: 0 0 3px 3px; transform: translate(-30%, -50%) rotate(45deg); }
body .galleria-lightbox-next::before { border-width: 3px 3px 0 0; transform: translate(-70%, -50%) rotate(45deg); }
body .galleria-lightbox-prevholder:hover .galleria-lightbox-prev, body .galleria-lightbox-nextholder:hover .galleria-lightbox-next { background: #bc955a; border-color: #bc955a; }

/* Booking documents (Documents page, Admin › Word templates) */
.doctype { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.doctype .field { min-width: 260px; margin: 0; }
.doctype-item { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0; }
.doctype-item summary { cursor: pointer; }
.doctype-form { margin-top: .6rem; }

/* Letterheads (Admin › Word templates) */
.lhgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.lhcard { border: 1px solid var(--line); border-radius: 8px; padding: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.lhcard img { width: 100%; aspect-ratio: 210 / 297; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.lhcard form { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.lhcard input[type=text] { flex: 1 1 100%; }
.lhcard input[type=file] { max-width: 100%; font-size: .75rem; }

/* Calendar › Add to Outlook */
.outlook { margin-bottom: 1rem; }
.outlook summary { cursor: pointer; }
.outlook__cols { margin-top: .8rem; align-items: start; }
.outlook__link { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.outlook__link input { flex: 1 1 260px; font-size: .8rem; }

/* gallery albums as a grid of cards (Groups › Media: Group Travel) */
.albumgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.albumcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); height: 100%; }
.albumcard:hover { border-color: var(--gold); color: var(--ink); }
.albumcard__img { display: block; aspect-ratio: 3 / 2; background: var(--navy-50); }
.albumcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.albumcard__name { font-weight: 700; color: var(--navy); padding: .55rem .75rem 0; }
.albumcard__meta { color: var(--ink-3); font-size: .8rem; padding: 0 .75rem .6rem; }

/* ------------------------------------------------ What's new (footer version link, user menu) */
.newdot { display: inline-block; margin-left: .35rem; padding: 0 .4rem; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.newdot[hidden] { display: none; }
.footer a { color: inherit; }
.tag--gold { background: var(--gold); color: var(--navy); }
.whatsnew { max-width: 48rem; margin-bottom: 1rem; }
.whatsnew--latest { border-left: 4px solid var(--gold); }
.whatsnew__ver { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.whatsnew__area { margin: .9rem 0 .3rem; color: var(--navy); }
.whatsnew__area:first-of-type { margin-top: 0; }
.whatsnew__list { margin: 0; padding-left: 1.2rem; }
.whatsnew__list li { margin: .25rem 0; line-height: 1.5; }

/* Arrival sheet (booking page): signing on screen */
.arrivals__cell { min-width: 11rem; }
.arrivals__sig { display: block; max-width: 150px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: .25rem; }
.arrivals tr:target { background: var(--gold-100); }
.signdlg { width: min(46rem, 94vw); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; box-shadow: 0 10px 40px rgba(0, 32, 91, .25); }
.signdlg::backdrop { background: rgba(0, 32, 91, .45); }
.signdlg h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
#sign-pad { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; background: linear-gradient(to bottom, transparent calc(77% - 1px), var(--line) calc(77% - 1px), var(--line) calc(77% + 1px), transparent calc(77% + 1px)) #fff; border: 2px dashed var(--navy-600); border-radius: 6px; touch-action: none; cursor: crosshair; }
.signdlg__buttons { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .75rem; }
