/* ==========================================================================
   Waterriff Hotel Management -- the application stylesheet.

   The shell copies the reference dashboard: a dark icon-and-label sidebar, a
   top bar with global search, KPI cards with trend arrows, area and bar
   charts, and dense register tables.  The palette is Waterriff's own -- the
   primary blue from the school product, with the sidebar in a deep navy so
   the white content area reads as the working surface.
   ========================================================================== */

:root {
    --ink: #132C50;
    --ink-2: #2B4468;
    --muted: #6B7C93;
    --muted-2: #93A2B5;
    --line: #DCE4ED;
    --line-soft: #EDF2F7;
    --paper: #FFFFFF;
    --bg: #F4F7FA;

    --brand: #1E6EC5;
    --brand-deep: #0F2A4D;
    --brand-soft: #E7F2FC;
    --brand-light: #44DDF9;
    /* round 38: a hotel may replace the accent and the sub heading with its
       own colours.  The defaults are the platform's, so a hotel that chose
       nothing looks exactly as it always did. */
    --brand-accent: #1E6EC5;
    --brand-sub: #2B4468;
    /* the heading band every register table and every card carries.  A deep,
       desaturated navy rather than the bright accent: a wall of saturated
       colour across forty tables is not mature, it is loud. */
    --head-bg: linear-gradient(180deg, #1B3557 0%, #14294A 100%);
    --head-tx: #EAF1F9;
    --head-line: #0E2038;

    --green: #22A98D;
    --green-soft: #E4F5EE;
    --amber: #E8A33D;
    --amber-soft: #FDF3E3;
    --red: #D2564B;
    --red-soft: #FBEAE8;
    --purple: #7C5CD6;
    --purple-soft: #EFEBFC;

    --side-bg: #0F1E33;
    --side-bg-2: #16283F;
    --side-tx: #C3D2E4;
    --side-tx-strong: #FFFFFF;
    --side-active: #1E6EC5;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(19, 44, 80, .06), 0 8px 24px -12px rgba(19, 44, 80, .18);
    --sans: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- shell -- */
.app { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }

.side {
    background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
    color: var(--side-tx);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 18px 16px;
    color: var(--side-tx-strong);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
}
.brand-tx { display: flex; flex-direction: column; line-height: 1.2; }
.brand-tx strong { font-size: 15px; letter-spacing: -.01em; }
.brand-tx small { font-size: 10.5px; color: var(--side-tx); letter-spacing: .04em; }

.side-home {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 12px 6px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--side-tx-strong);
    font-weight: 600;
    font-size: 13.5px;
}
.side-home:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }

.side-nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 12px 12px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    color: var(--side-tx);
    font-size: 13px;
    line-height: 1.3;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav-ic { display: flex; flex: none; opacity: .9; }

/* --- the sidebar's sections ------------------------------------------- */
/* Seventeen departments in one flat list is a wall.  They are grouped under
   the headings a hotel thinks in, and each group opens and closes so a person
   sees the part they work in and not the rest. */
.nav-group { display: flex; flex-direction: column; }
.nav-group + .nav-group { margin-top: 2px; }

.nav-head {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 11px 7px;
    border: 0;
    background: none;
    color: var(--side-tx);
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    border-radius: var(--radius-sm);
}
.nav-head:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-head:focus-visible { outline: 2px solid var(--brand-light); outline-offset: -2px; }
.nav-head-t { flex: 1; min-width: 0; }
.nav-head-n {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .62);
}
.nav-chev {
    display: flex;
    flex: none;
    opacity: .55;
    transition: transform .16s ease;
}
.nav-group.open .nav-chev { transform: rotate(90deg); }
.nav-group.open .nav-head { color: var(--side-tx-strong); }

/* closed: the body is gone, so the panel is only as tall as what is open */
.nav-body { display: none; flex-direction: column; gap: 1px; }
.nav-group.open .nav-body { display: flex; }

/* a section with no heading -- the console -- keeps its items bare */
.side-nav > .nav-item { margin-top: 1px; }

.side-foot {
    margin-top: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--side-tx);
}
.side-link { color: var(--brand-light); }

.main { display: flex; flex-direction: column; min-width: 0; }

/* --------------------------------------------------------------- topbar -- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 22px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.tb-search {
    flex: 1;
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--paper);
    color: var(--muted);
}
.tb-search input {
    border: 0;
    outline: none;
    flex: 1;
    font: inherit;
    font-size: 13px;
    background: none;
    color: var(--ink);
}
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-date, .tb-shift {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 99px;
    background: var(--line-soft);
    white-space: nowrap;
}
.tb-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    position: relative;
}
.tb-icon:hover { background: var(--brand-soft); color: var(--brand); }
.tb-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    border: 1.5px solid #fff;
}

.tb-dd { position: relative; }
.tb-dd > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 99px;
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
}
.tb-dd > summary::-webkit-details-marker { display: none; }
.tb-dd > summary:hover { background: var(--line-soft); }
.tb-bell > summary { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }
.tb-dd-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    min-width: 210px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 60;
}
.tb-dd-wide { min-width: 320px; }
.tb-dd-menu a {
    display: block;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--ink-2);
}
.tb-dd-menu a:hover { background: var(--brand-soft); text-decoration: none; }
.tb-note { display: block; padding: 9px 11px; border-radius: var(--radius-sm); }
.tb-note:hover { background: var(--line-soft); text-decoration: none; }
.tb-note-t { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.tb-note-b { display: block; font-size: 12px; color: var(--muted); }
.tb-note-empty { padding: 14px 11px; font-size: 12.5px; color: var(--muted); text-align: center; }
.tb-prop { display: flex; align-items: center; gap: 6px; }
.tb-prop-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }

/* -------------------------------------------------------------- content -- */
.content { padding: 22px 26px 60px; display: flex; flex-direction: column; gap: 18px; }

/* ---- the back arrow on every feature screen ----------------------------
   A person three departments deep should never have to reach for the browser's
   own Back button, which re-posts the last form in a session application.
   The arrow always leads somewhere safe: the dashboard by default. */
.pg-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 8px; padding: 5px 11px 5px 8px;
    border: 1px solid #D6E2EE; border-radius: 999px;
    background: #FFFFFF; color: #1E6EC5;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    line-height: 1; transition: border-color .15s, background .15s, transform .15s;
}
.pg-back:hover {
    border-color: #1E6EC5; background: #EFF6FE;
    transform: translateX(-2px);
}
.pg-back svg { display: block; }
/* round 49: the greeting under the page title, and the person beside the
   actions.  Both live in the header because the header is the one thing every
   department screen goes through, so neither can be forgotten by a new page. */
.pg-greet {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-accent, var(--brand));
    letter-spacing: -.005em;
}
.pg-who {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(19, 44, 80, .05);
}
.pg-who-face {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 170%);
    color: #fff;
}
.pg-who-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-who-initials { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pg-who-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pg-who-tx strong { font-size: 12.5px; color: var(--ink); }
.pg-who-tx small {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}
.pg-head-actions { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }

/* the owner console is not a department page, so its arrow gets a quieter,
   dark treatment to match that shell */
.pg-head-owner .pg-back { background: #16324F; border-color: #2A4E75; color: #CFE4F7; }
.pg-head-owner .pg-back:hover { background: #1D4066; border-color: #4B7CA8; }

.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* breadcrumb trail -- HMS Home > department */
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }
.crumb-sep { color: var(--line); font-weight: 400; }
.crumb-now { color: var(--ink); }

/* the title carries a short accent rule under it -- the one place a colour is
   allowed to be loud -- and the line beneath it is the hotel's own sub-heading
   colour when it chose one */
.pg-head h1 { font-size: 22px; }
.pg-head h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--brand-accent);
}
.pg-head p { margin: 7px 0 0; font-size: 13px; color: var(--brand-sub); }
.pg-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ KPI cards -- */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.kpi {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 15px 17px 14px;
    box-shadow: var(--shadow);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.kpi-ic {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
}
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-trend.flat { color: var(--muted-2); }
.kpi-sub { color: var(--muted); }
.kpi.green .kpi-ic { background: var(--green-soft); color: var(--green); }
.kpi.amber .kpi-ic { background: var(--amber-soft); color: #B87A16; }
.kpi.red .kpi-ic { background: var(--red-soft); color: var(--red); }
.kpi.purple .kpi-ic { background: var(--purple-soft); color: var(--purple); }

/* -------------------------------------------------------- quick actions -- */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.qa {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 13px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
}
.qa:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-soft); }
.qa-ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
}
.qa-ic.green { background: var(--green-soft); color: var(--green); }
.qa-ic.amber { background: var(--amber-soft); color: #B87A16; }
.qa-ic.purple { background: var(--purple-soft); color: var(--purple); }
.qa-ic.red { background: var(--red-soft); color: var(--red); }
.qa-tx { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.dsum-ic { color: var(--muted-2); display: inline-flex; }

/* ---------------------------------------------------------------- cards -- */
.card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
/* every panel is headed the same way: a short accent bar, the title, and the
   actions on the right in one of the button styles below.  A heading with no
   bar and a heading with a bar read as two different kinds of panel, which is
   why the bar is drawn from the same rule everywhere. */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 17px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #FBFDFE 0%, #F5F9FC 100%);
}
.card-head h2 {
    font-size: 14.5px;
    padding-left: 11px;
    position: relative;
    color: var(--ink);
}
.card-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 15px;
    border-radius: 3px;
    background: var(--brand-accent);
}
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.card-body { padding: 16px 17px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* --------------------------------------------------------------- charts -- */
.chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line-soft); stroke-width: 1; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ch-fill { fill: rgba(30, 110, 197, .12); stroke: none; }
.ch-dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.ch-bar { fill: var(--brand); }
.ch-bar:nth-child(even) { fill: #4A8EDB; }
.ch-track { stroke: var(--line-soft); }
.ch-seg { stroke-linecap: butt; }
.ch-xlab { font-size: 9.5px; fill: var(--muted-2); }
.ch-ylab { font-size: 10.5px; fill: var(--muted); }
.ch-vlab { font-size: 10px; fill: var(--muted-2); }
.chart-area.green .ch-line { stroke: var(--green); }
.chart-area.green .ch-fill { fill: rgba(34, 169, 141, .12); }
.chart-area.green .ch-dot { stroke: var(--green); }
.chart-area.amber .ch-line { stroke: #D8902A; }
.chart-area.amber .ch-fill { fill: rgba(232, 163, 61, .14); }
.chart-area.amber .ch-dot { stroke: #D8902A; }

.donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.chart-donut { width: 150px; height: 150px; flex: none; }
.ch-legs { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.ch-leg { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ch-leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ch-leg b { margin-left: auto; color: var(--ink); }

/* --------------------------------------------------------------- tables -- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
/* The heading band.  Round 38 asked for every table in every dashboard to be
   structured the same way and for the headings to carry a cool, mature colour
   -- so the band is a deep desaturated navy with light type, the same on all
   forty-odd registers in the product.  Saturated accent colour across that
   many tables is not mature, it is loud. */
.tbl thead th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--head-tx);
    background: var(--head-bg);
    padding: 10px 12px;
    border-bottom: 2px solid var(--head-line);
    border-right: 1px solid rgba(255, 255, 255, .07);
    white-space: nowrap;
    vertical-align: bottom;
}
.tbl thead th:last-child { border-right: 0; }
.tbl thead th.num { text-align: right; }
.tbl thead th .tbl-sub { color: rgba(234, 241, 249, .68); }
.tbl tbody tr:nth-child(even) { background: #F8FBFD; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tbody tr:hover { background: #EFF6FC; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* a group row and a line row: the register reads top-down, department first,
   then what it sold, then the total for all of them */
.tbl tr.sr-grp td {
    background: #E9F1F9;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    vertical-align: middle;
}
.tbl tr.sr-grp:hover td { background: #E1EDF7; }
/* round 48: how a department's money was actually taken, on its own group row,
   so the register answers "cash, transfer or POS?" without leaving the page */
.tbl tr.sr-grp .sr-grp-rails {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-3, #6B7B8C);
    letter-spacing: .01em;
}
.tbl tr.sr-line td { padding: 7px 12px; font-size: 12.5px; color: var(--ink-2); }
.tbl tr.sr-line td:first-child { padding-left: 26px; }
.tbl tfoot td {
    padding: 11px 12px;
    font-weight: 700;
    color: var(--ink);
    background: #F1F6FA;
    border-top: 2px solid var(--head-line);
}
.tbl tfoot td.num { text-align: right; }
/* the register's own note strip, under the last row */
.tbl-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }

/* --- the auditor's department money table ------------------------------
   Eight figures a row is only readable if the eye is told where to go, so the
   header groups them -- Money generated over four windows, Money spent over
   the same four -- and the two directions are tinted apart. */
.am-tbl th { vertical-align: bottom; }
.am-tbl .am-grp { text-align: center; font-size: 11.5px; letter-spacing: .04em;
                  text-transform: uppercase; border-bottom: 1px solid var(--line); }
.am-tbl .am-grp.am-in { background: rgba(34, 169, 141, .09); color: #177A63; }
.am-tbl .am-grp.am-out { background: rgba(166, 54, 44, .07); color: #A6362C; }
.am-tbl .am-sub { font-size: 10.5px; font-weight: 600; text-align: right;
                  color: var(--ink-2); white-space: nowrap; }
.am-tbl .am-sub:first-child { text-align: center; }
.am-tbl tbody td { vertical-align: top; }
.am-tbl tbody tr.am-dept:hover { background: rgba(30, 110, 197, .05); }
.am-tbl tfoot td { font-weight: 700; background: var(--brand-soft, #f6fafc);
                   border-top: 2px solid var(--line); }
.amt-pos { color: #177A63; }
.amt-neg { color: #A6362C; }

/* each department, opened up underneath */
.am-detail { scroll-margin-top: 80px; }

/* each department, folded shut until the auditor has a question about it */
.am-fold { border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
           margin-bottom: 8px; background: #fff; overflow: hidden; }
.am-fold > summary { display: flex; align-items: center; gap: 12px;
                     padding: 11px 14px; cursor: pointer; list-style: none; }
.am-fold > summary::-webkit-details-marker { display: none; }
.am-fold > summary:hover { background: rgba(30, 110, 197, .04); }
.am-fold-t { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.am-fold-n { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-2);
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-fold-c { font-size: 11.5px; font-weight: 600; color: var(--blue, #1E6EC5); }
.am-fold[open] > summary .am-fold-c::before { content: "Close "; }
.am-fold[open] > summary .am-fold-c { color: var(--ink-2); }
.am-fold-b { margin-left: 4px; }

/* The auditor's two buttons above the folds: open every department, or close
   them all, with a reading of how many are open right now. */
.am-fold-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 0 0 10px; }
.am-fold-count { font-size: 12px; color: var(--ink-2); margin-left: 4px; }
@media print { .am-fold-bar { display: none !important; } }
.am-fold-body { padding: 4px 14px 16px; border-top: 1px solid var(--line-soft); }

/* --- the auditor's channel to the group admin ---------------------------
   Two ends, one thread.  Mine sits to the right, theirs to the left, and both
   say who wrote them and when -- a conversation nobody can attribute is a
   conversation nobody can rely on. */
.ch-thread { display: flex; flex-direction: column; gap: 12px; }
.ch-bubble { max-width: 78%; align-self: flex-start; }
.ch-bubble.mine { align-self: flex-end; }
.ch-who { font-weight: 700; font-size: 12.5px; color: var(--ink); }
.ch-role { font-size: 11px; color: var(--ink-2); margin-left: 6px; }
.ch-when { font-size: 11px; color: var(--ink-3, #8a99ab); margin-left: 6px; }
.ch-re { font-size: 10.5px; font-weight: 600; color: var(--blue, #1E6EC5);
         margin-left: 6px; }
.ch-body { margin-top: 4px; padding: 10px 13px; border: 1px solid var(--line);
           border-radius: 12px 12px 12px 3px; background: #fff;
           font-size: 13px; line-height: 1.5; white-space: pre-wrap;
           word-break: break-word; }
.ch-bubble.mine .ch-body { border-radius: 12px 12px 3px 12px;
                           background: var(--brand-soft, #f6fafc);
                           border-color: rgba(30, 110, 197, .22); }
.ch-subj { font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.ch-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ch-file { display: inline-flex; align-items: center; gap: 6px;
           padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
           background: #fff; font-size: 11.5px; color: var(--ink-2);
           text-decoration: none; }
.ch-file:hover { border-color: var(--blue, #1E6EC5); color: var(--blue, #1E6EC5);
                 text-decoration: none; }
.ch-file-n { font-weight: 600; max-width: 200px; overflow: hidden;
             text-overflow: ellipsis; white-space: nowrap; }
.ch-file-s { color: var(--ink-3, #8a99ab); }
.ch-empty { padding: 22px 14px; text-align: center; color: var(--ink-2);
            font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; }
.ch-form .f-actions { margin-top: 6px; }
.am-h3 { margin: 20px 0 8px; font-size: 13px; font-weight: 700;
         letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.am-detail .am-h3:first-of-type { margin-top: 6px; }
.tbl-empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.tbl-foot { text-align: right; color: var(--muted); font-size: 11.5px;
  padding: 9px 12px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #FBFDFF, #F5F9FC); }
.tbl-strong { font-weight: 600; color: var(--ink); }
.tbl-sub { font-size: 11.5px; color: var(--muted); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.pill-neutral { background: var(--line-soft); color: var(--ink-2); }
.pill-green { background: var(--green-soft); color: #17845A; }
.pill-amber { background: var(--amber-soft); color: #9A6510; }
.pill-red { background: var(--red-soft); color: #A03A31; }
.pill-blue { background: var(--brand-soft); color: #14508F; }
.pill-purple { background: var(--purple-soft); color: #563DA8; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty-ic {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--line-soft);
    color: var(--muted-2);
}
.empty strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.empty span { font-size: 12.5px; }

/* -------------------------------------------------------------- buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
/* A button that carries the action is the one that gets the colour, and it
   gets a gradient rather than a flat fill: a flat fill looks like a label, a
   gradient looks like something you can press.  Everything else stays quiet
   so the eye lands on the right one. */
.btn-primary {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 170%);
    color: #fff;
    box-shadow: 0 1px 2px rgba(19, 44, 80, .18);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 2px 6px rgba(19, 44, 80, .22); }
.btn-outline {
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%);
    border-color: var(--line);
    color: var(--ink-2);
}
.btn-outline:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn-ghost { background: var(--line-soft); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line); }
.btn-green { background: linear-gradient(180deg, var(--green) 0%, #177A63 170%); color: #fff; }
.btn-red { background: linear-gradient(180deg, var(--red) 0%, #A6362C 170%); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
/* the small action that sits in a heading or at the end of a table row */
.btn-ic { padding: 6px 9px; }

/* --------------------------------------------------------------- forms --- */
.field { margin-bottom: 14px; }
.field label, .label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-2);
    margin-bottom: 5px;
}
.field input, .field select, .field textarea,
.f-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    font: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, .f-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 110, 197, .14);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* a checkbox on a form -- "take it out of our own stock book" */
.f-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--ink);
    cursor: pointer;
}
.f-check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* the row a form's buttons sit on, so they do not float loose */
.f-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.flash {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 550;
    border: 1px solid var(--line);
    background: #fff;
}
.flash.ok, .flash.success { background: var(--green-soft); border-color: #CBE5D8; color: #1F6B4A; }
.flash.error { background: var(--red-soft); border-color: #F2D2CE; color: #8A332C; }
.flash.warn { background: #FDF3E0; border-color: #F0DCB4; color: #7A5518; }
.flash.info { background: var(--brand-soft); border-color: #C9E4EE; color: #14508F; }

/* ----------------------------------------------------------- auth pages -- */
.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #EAF4FB 0%, #C9E2F3 38%, #9CC8E8 72%, #71BBE0 100%);
}

/* the photograph sits on the main background and is faded into it, so it
   reads as a wash of colour behind the card rather than a picture -- the
   card itself is opaque white and always the sharpest thing on the page */
.auth-stage-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: url("/static/brand/auth.jpg") center / cover no-repeat;
    opacity: .52;
    mix-blend-mode: multiply;
}
.auth-stage { position: relative; z-index: 1; width: 100%;
    display: flex; justify-content: center; }
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: #FFFFFF;
    border: 0;
    border-radius: 14px;
    padding: 32px 34px 28px;
}
.auth-card-wide { max-width: 720px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand-mark {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
}
.auth-brand-tx strong { display: block; font-size: 16px; }
.auth-brand-tx small { display: block; font-size: 12px; color: var(--muted); }
.auth h1 { font-size: 21px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.auth-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    text-align: center;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.6;
}
.auth-foot a { color: var(--brand); }
.auth-tiers {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--line-soft);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    color: var(--ink-2);
}
.auth-tiers div { display: flex; justify-content: space-between; gap: 10px; }
.auth-tiers b { color: var(--ink); }
/* the way back to the sign-in page, on the step after it */
.auth-back { margin: 0 0 4px; }
.auth-back .btn { gap: 7px; }

/* --------------------------------------------------------------- public -- */
.pub-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.pub-nav .brand { color: var(--ink); border: 0; padding: 0; }
.pub-nav .brand-mark { width: 32px; height: 32px; margin: 0; border-radius: 9px; }
.pub-nav .brand-tx strong { color: var(--ink); }
.pub-nav .brand-tx small { color: var(--muted); }
/* the three navigation entries are buttons, not bare links */
.pub-links { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pub-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease, background .16s ease,
                box-shadow .16s ease, transform .16s ease;
}
.pub-nav-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-soft);
}
.pub-nav-btn:active { transform: translateY(1px); }
.pub-nav-btn.is-primary {
    background: linear-gradient(135deg, var(--brand), #2F86DE);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(30, 110, 197, .55);
}
.pub-nav-btn.is-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #1A5FB4, #2F86DE);
    box-shadow: 0 10px 22px -8px rgba(30, 110, 197, .65);
    transform: translateY(-1px);
}

.hero { padding: 74px 28px; text-align: center; background: linear-gradient(180deg, #EAF4FB, #C9E2F3); }
.hero h1 { font-size: clamp(28px, 4vw, 42px); max-width: 20em; margin: 0 auto 14px; }
.hero p { font-size: 16px; color: var(--ink-2); max-width: 44em; margin: 0 auto 26px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.section { padding: 54px 28px; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 32px; }
.section-head h2 { font-size: 25px; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
/* a tone per department card -- the page says which, this says how it looks */
.feat[data-tone="blue"]   { --fc: #1E6EC5; --fc-soft: #E7F2FC; }
.feat[data-tone="teal"]   { --fc: #0E8A9E; --fc-soft: #E0F4F7; }
.feat[data-tone="green"]  { --fc: #1B8F76; --fc-soft: #E4F5EE; }
.feat[data-tone="amber"]  { --fc: #B5791A; --fc-soft: #FDF3E3; }
.feat[data-tone="purple"] { --fc: #6A4CCB; --fc-soft: #EFEBFC; }
.feat[data-tone="red"]    { --fc: #C24A40; --fc-soft: #FBEAE8; }

.feat {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section.alt .feat { background: var(--bg); }
/* a hairline of the card's own colour, drawn across the top as you point at it */
.feat::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--fc, var(--brand));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .24s ease;
}
.feat:hover,
.feat:focus-within {
    transform: translateY(-4px);
    border-color: var(--fc, var(--brand));
    box-shadow: 0 2px 4px rgba(19, 44, 80, .07), 0 16px 34px -14px rgba(19, 44, 80, .3);
}
.feat:hover::after,
.feat:focus-within::after { transform: scaleX(1); }
.feat-ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--fc-soft, var(--brand-soft));
    color: var(--fc, var(--brand));
    margin-bottom: 13px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.feat:hover .feat-ic,
.feat:focus-within .feat-ic {
    background: var(--fc, var(--brand));
    color: #fff;
    transform: scale(1.07);
}
.feat h3 { font-size: 15px; margin-bottom: 6px; transition: color .2s ease; }
.feat:hover h3 { color: var(--fc, var(--brand)); }
.feat p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.pub-foot { background: var(--side-bg); color: var(--side-tx); padding: 34px 28px; font-size: 12.5px; }
.pub-foot a { color: var(--brand-light); }

/* ------------------------------------------------------- advertisement -- */
/* The one band on the page that asks for something.  It is loud on purpose:
   an advertisement nobody notices is not an advertisement.  The colours are the
   product's own -- navy falling into teal -- so it belongs to the same house. */
.ad-band {
    position: relative;
    overflow: hidden;
    padding: 54px 28px;
    background: linear-gradient(118deg, #0F2A4D 0%, #14406E 42%, #0E8A9E 100%);
    color: #fff;
}
/* a soft light source behind the copy, so the band is not a flat wash */
.ad-band::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 221, 249, .28), rgba(68, 221, 249, 0) 68%);
    pointer-events: none;
}
.ad-band-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr .9fr;
    gap: 40px;
    align-items: center;
}
.ad-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-light);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}
.ad-copy h2 {
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.18;
    margin: 0 0 12px;
    color: #fff;
}
.ad-copy p {
    font-size: 15px;
    line-height: 1.65;
    color: #D6E6F5;
    max-width: 34em;
    margin: 0 0 22px;
}
.ad-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.ad-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 650;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ad-btn-primary {
    background: #fff;
    color: #0F2A4D;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
.ad-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55);
}
.ad-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .38);
    color: #fff;
}
.ad-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-2px);
}
.ad-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ad-stat {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
}
.ad-stat b {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: var(--brand-light);
    margin-bottom: 4px;
}
.ad-stat span { font-size: 11.5px; color: #CBDCEC; line-height: 1.4; }
.ad-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.ad-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: #E4F1FA;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 5px 11px;
}

/* ------------------------------------------------------------- partner -- */
.partner { background: var(--bg); }
.partner-card {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 2px 4px rgba(19, 44, 80, .07), 0 18px 36px -16px rgba(19, 44, 80, .32);
}
.partner-mark {
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #0E8A9E);
    color: #fff;
}
.partner-body { flex: 1; min-width: 0; }
.partner-body h3 { font-size: 17px; margin: 0 0 6px; }
.partner-body p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.partner-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 650;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.partner-link:hover {
    background: var(--brand);
    color: #fff;
    transform: translateX(2px);
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1020px) {
    .grid-3, .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ad-band-inner { grid-template-columns: 1fr; gap: 26px; }
    .ad-side { grid-template-columns: repeat(3, 1fr); }
    .partner-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .partner-link { align-self: stretch; justify-content: center; }
    .app { grid-template-columns: 1fr; }
    .side { position: static; height: auto; }
    .side-nav { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .nav-group.open .nav-body { display: contents; }
    .nav-head { width: auto; padding: 6px 8px; }
    .nav-head-n, .nav-chev { display: none; }
    .nav-label { display: none; }
    .nav-item { padding: 9px; }
    .side-home span { display: none; }
    .content { padding: 16px 14px 50px; }
    .tb-date, .tb-shift, .tb-prop-label { display: none; }
}


/* --------------------------------------------------------------------------
   Forms and widgets the department pages rely on
   -------------------------------------------------------------------------- */
.pos-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 7px; max-height: 300px; overflow-y: auto; padding: 3px; }
.pos-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
    border-radius: 9px; background: var(--paper); padding: 8px 10px; cursor: pointer;
    font-size: 12.5px; color: var(--ink); }
.pos-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.pos-item input { width: 15px; height: 15px; accent-color: var(--brand); margin: 0; }
.pos-item span { flex: 1; }
.pos-item b { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* A menu item now carries a tick, a quantity and what the bar is holding of
   it, so the card is a little taller and laid out in two rows: the name and
   the price on the first, the quantity and the stock mark on the second. */
.pos-item { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.pos-item-n { flex: 1 1 auto; font-weight: 600; }
.pos-item-p { flex: 0 0 auto; }
.pos-item-q { flex: 0 0 auto; display: inline-flex; align-items: center;
    gap: 5px; }
.pos-item-q label { font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 0; }
.pos-item-qty { width: 54px !important; height: 26px !important;
    text-align: center; font-size: 12px; padding: 2px 4px; }
.pos-item-qty:disabled { background: #f2f5f9; color: #9aa8ba; }
.pos-item-s { flex: 1 1 100%; font-size: 11px; font-style: normal; }
.pos-have { color: #2c7a63; }
.pos-low { color: #a8620a; font-weight: 700; }
.pos-out { color: #a11d1d; font-weight: 700; }

/* The item the bar has none of: still on the menu, still visible, and not
   selectable.  Hiding it would make the till look like it never sold. */
.pos-item.is-out { border-color: #e6c9c9; background: #fdf6f6; }
.pos-item.is-out .pos-item-n { color: #8d6a6a; text-decoration: line-through; }
.pos-item.is-out input[type=checkbox] { cursor: not-allowed; }
.pos-item.is-low { border-color: #ecd9b0; background: #fdfaf2; }
.pos-item.is-picked { border-color: var(--brand); background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand); }

/* The order's running total, read out while it is still being built. */
.pos-totals { margin-top: 12px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--paper); padding: 10px 14px; }
.pos-totals-row { display: flex; justify-content: space-between; gap: 12px;
    font-size: 12.5px; color: var(--ink-2); padding: 3px 0; }
.pos-totals-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pos-totals-row.is-total { border-top: 1px solid var(--line); margin-top: 5px;
    padding-top: 7px; font-size: 15px; font-weight: 700; color: var(--navy); }
.pos-totals-row.is-total b { color: var(--navy); }
.pos-warn { color: #a8620a; }

.reg-radios { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.reg-radio { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
    border-radius: 9px; background: var(--paper); padding: 9px 13px; cursor: pointer;
    font-size: 13.5px; color: var(--ink); }
.reg-radio:hover { border-color: var(--brand); }
.reg-radio input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.reg-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.f-input-xs { max-width: 92px; padding: 6px 8px; font-size: 12px; }
.row-form { display: flex; gap: 5px; align-items: center; }
.side-ver { font-size: 11px; color: rgba(255, 255, 255, .42); letter-spacing: .02em; }
.tb-user { display: flex; align-items: center; gap: 9px; }
.muted { color: var(--muted); }
.pg-head-tx { min-width: 0; }

/* charts ------------------------------------------------------------------ */
.chart { display: block; width: 100%; height: auto; }
.chart-area, .chart-bar { width: 100%; height: auto; overflow: visible; }
.ch-grid line { stroke: var(--line); stroke-width: 1; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.4;
    stroke-linecap: round; stroke-linejoin: round; }
.ch-fill { fill: var(--brand); opacity: .13; stroke: none; }
.ch-dot { fill: var(--card); stroke: var(--brand); stroke-width: 2; }
.ch-track { fill: var(--line); opacity: .5; }
.ch-seg { fill: var(--brand); }
.ch-xlab, .ch-ylab, .ch-vlab { font-size: 10px; fill: var(--muted);
    font-family: inherit; }
.ch-vlab { font-weight: 600; fill: var(--ink); }

/* the third-party widget, when a hotel configures one.  It is left alone
   until then -- an empty div with a site key that was never set renders
   nothing, and hiding it outright would hide the real widget too. */
.g-recaptcha, .h-captcha { margin: 4px 0 16px; min-height: 78px; }

/* cookie preference sheet ------------------------------------------------- */
.cookie-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px;
    z-index: 9100; width: min(680px, calc(100% - 120px)); background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 16px;
    box-shadow: 0 18px 46px rgba(10, 37, 64, .22); display: flex; gap: 16px;
    align-items: center; }
.cookie-bar[hidden] { display: none; }
.cookie-bar h4 { margin: 0 0 2px; font-size: 14px; }
.cookie-bar p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cookie-bar .cookie-actions { display: flex; gap: 8px; flex-shrink: 0;
    align-items: center; flex-wrap: wrap; }
.cookie-bar .cookie-inner { flex: 1; min-width: 0; }
@media (max-width: 620px) {
    .pub-nav { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .pub-links { width: 100%; margin-left: 0; }
    .pub-nav-btn { flex: 1; justify-content: center; padding: 10px 12px; }
    .ad-side { grid-template-columns: 1fr; }
    .ad-stat { text-align: left; display: flex; align-items: baseline; gap: 10px; }
    .ad-stat b { font-size: 24px; margin: 0; }
}

@media (max-width: 620px) {
  .cookie-bar { flex-direction: column; }
  .cookie-bar .cookie-actions { width: 100%; }
}


/* --------------------------------------------------------------------------
   Availability calendar
   -------------------------------------------------------------------------- */
.cal { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.cal th { font-weight: 600; color: var(--muted); padding: 4px 3px; text-align: center; }
.cal th span { display: block; font-size: 10px; text-transform: uppercase;
    letter-spacing: .05em; opacity: .75; }
.cal-corner { text-align: left; width: 150px; }
.cal-today { color: var(--brand) !important; }
.cal-today span { color: var(--brand); }
.cal-row { text-align: left; color: var(--ink); font-size: 12px; white-space: nowrap; }
.cal-row small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.cal-cell { border-radius: 6px; padding: 7px 4px; text-align: center; font-weight: 700;
    font-size: 12.5px; }
.avail-ok   { background: rgba(34, 169, 141, .16); color: #177A63; }
.avail-low  { background: rgba(232, 163, 61, .22); color: #9A6410; }
.avail-full { background: rgba(210, 86, 75, .18);  color: #A6362C; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
    font-size: 11.5px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.cal-legend i.avail-ok   { background: rgba(34, 169, 141, .5); }
.cal-legend i.avail-low  { background: rgba(232, 163, 61, .55); }
.cal-legend i.avail-full { background: rgba(210, 86, 75, .5); }
.cal-legend i.cal-today  { background: var(--brand); }

.bullets { margin: 0; padding-left: 18px; line-height: 1.85; font-size: 12.5px;
    color: var(--ink-2); }

/* numeric cells and movement arrows */
.num { font-variant-numeric: tabular-nums; }
.num.up   { color: #177A63; }
.num.down { color: #A6362C; }

/* a two-column form table (label left, value right) */
.tbl-form th { width: 160px; text-align: left; color: var(--muted); font-weight: 600;
    font-size: 12px; vertical-align: top; }
.tbl-form td { font-size: 13px; }

/* --------------------------------------------------------------------------
   Digital registration card and signature pad
   -------------------------------------------------------------------------- */
.sig { border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
    padding: 11px 13px; margin-bottom: 12px; }
.sig-head { display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; }
.sig-head b { display: block; font-size: 13px; }
.sig-head span { font-size: 11.5px; color: var(--muted); }
#sig-pad { display: block; width: 100%; height: 150px; background: #fff;
    border: 1px dashed var(--line); border-radius: 8px; cursor: crosshair;
    touch-action: none; }
.sig-foot { margin-top: 9px; }
.sig-preview { text-align: center; padding: 6px 0 10px; }
.sig-preview img { max-width: 100%; max-height: 130px; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; padding: 6px; }
.sig-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Integration health list
   -------------------------------------------------------------------------- */
.int { display: flex; align-items: center; gap: 13px; padding: 11px 4px;
    border-bottom: 1px solid var(--line-soft); }
.int:last-child { border-bottom: 0; }
.int-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
    background: var(--brand-soft); color: var(--brand); display: flex;
    align-items: center; justify-content: center; }
.int-tx { flex: 1; min-width: 0; }
.int-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.int-name .tbl-sub { font-weight: 400; margin-left: 7px; }
.int-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px;
    color: var(--muted); margin-top: 2px; }
.int-err { font-size: 11.5px; color: #A6362C; margin-top: 3px; }
.int-side { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }


/* --------------------------------------------------------------------------
   Sub-category navigation (spec section C)
   -------------------------------------------------------------------------- */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px;
    border-bottom: 1px solid var(--line); padding-bottom: 0; }
.subnav-a { display: inline-block; padding: 8px 13px; font-size: 12.5px;
    font-weight: 600; color: var(--muted); text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav-a:hover { color: var(--ink); background: var(--line-soft); }
.subnav-a.active { color: var(--brand-accent); border-bottom-color: var(--brand-accent); }

/* ------------------------------------------------- round 38: sales records --
   Four windows over one register.  The window buttons are a segmented control
   rather than four links, because they are four views of the same table and a
   person should be able to move between them without a page load of context. */
.sr-wins { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 12px;
           background: #fff; border: 1px solid var(--line-soft);
           border-radius: 10px; box-shadow: var(--shadow); }
.sr-win { display: inline-block; padding: 8px 16px; font-size: 12.5px;
          font-weight: 600; color: var(--ink-2); border-radius: 7px;
          text-decoration: none; }
.sr-win:hover { background: var(--line-soft); color: var(--ink);
                text-decoration: none; }
.sr-win.active { background: var(--head-bg); color: #fff; }
.sr-custom { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.sr-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
            margin: 0 0 16px; }
.sr-range label { font-size: 12px; font-weight: 600; color: var(--muted); }
.sr-range .f-input { width: auto; }
.sr-tbl thead th { border-right: 1px solid rgba(255, 255, 255, .07); }
/* the four shortcuts on the front office dashboard */
.sr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px; }
.sr-tile { display: flex; align-items: center; gap: 11px; padding: 12px 13px;
           border: 1px solid var(--line); border-radius: 10px;
           background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FC 100%);
           color: var(--ink); text-decoration: none; }
.sr-tile:hover { border-color: var(--brand-accent); text-decoration: none;
                 box-shadow: 0 2px 8px -3px rgba(19, 44, 80, .22); }
.sr-tile-ic { display: inline-flex; align-items: center; justify-content: center;
              width: 34px; height: 34px; flex: none; border-radius: 9px;
              background: var(--brand-soft); color: var(--brand-accent); }
.sr-tile-tx { display: flex; flex-direction: column; min-width: 0; }
.sr-tile-tx strong { font-size: 13px; }
.sr-tile-tx small { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------ round 38: hotel branding --
   The owner picks four colours; the preview beside the pickers is drawn from
   the same four, so what they see is what the hotel gets. */
.brand-row { display: flex; gap: 8px; align-items: center; }
.brand-row .f-input { flex: 1 1 auto; }
.f-color { width: 46px; flex: none; padding: 3px; height: 36px; cursor: pointer; }
.brand-prev { display: grid; grid-template-columns: 128px 1fr; min-height: 148px;
              border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
              background: #fff; }
.brand-prev-side { display: flex; flex-direction: column; gap: 9px; padding: 13px 11px;
                   background: linear-gradient(180deg, #0F1E33 0%, #16283F 100%); }
.brand-prev-mark { font-weight: 700; color: #fff; font-size: 13px; }
.brand-prev-lab { font-size: 11px; color: rgba(195, 210, 228, .8); }
.brand-prev-lab.on { color: #fff; font-weight: 600;
                     border-left: 2px solid var(--brand-accent); padding-left: 6px; }
.brand-prev-main { padding: 16px 15px; }
.brand-prev-h { margin: 2px 0 10px; font-size: 15px; color: var(--ink); }
.brand-prev-sub { margin: 0 0 2px; font-size: 11.5px; color: var(--muted); }
.brand-prev-btn { display: inline-block; padding: 6px 13px; border-radius: 7px;
                  background: var(--brand); color: #fff; font-size: 12px;
                  font-weight: 600; }
.brand-prev-a { display: inline-block; margin-left: 10px; font-size: 12px;
                color: var(--brand); }


/* --------------------------------------------------------------------------
   Shared icon sizing and a two-field row inside a form
   -------------------------------------------------------------------------- */
.ic { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Public site: contact bar, hero over a photograph, full footer
   -------------------------------------------------------------------------- */

/* the thin strip above the navigation -- social icons and phone numbers */
.contact-bar { background: var(--brand-deep); color: #cfe0f2; font-size: 12px; }
.contact-bar-inner {
    max-width: 1180px; margin: 0 auto; padding: 7px 22px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.contact-bar-note { color: #9fb8d6; }
.contact-bar-social { display: flex; gap: 9px; margin-left: auto; }
.contact-bar-social a {
    width: 24px; height: 24px; border-radius: 6px; display: grid;
    place-items: center; color: #cfe0f2; background: rgba(255, 255, 255, .08);
}
.contact-bar-social a:hover { background: var(--brand); color: #fff; }
.contact-bar-social svg { width: 13px; height: 13px; }
.contact-bar-links { display: flex; align-items: center; gap: 9px; }
.contact-bar-links a { color: #dbe8f6; font-weight: 600; }
.contact-bar-links a:hover { color: #fff; }
.contact-bar-sep { color: #4d6b92; }

/* the hero sits on a photograph with a dark wash so white text stays legible */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 560px; padding: 96px 28px 104px; text-align: center;
    color: #fff;
}
/* The hero sits on the photograph the client supplied -- the building with the
   louvred facade -- laid across the whole field at full strength, so the
   building is what you see.  Over it goes a wash dark enough that the white
   headline stays the loudest thing on the field over the bright sky in the
   photograph, and no darker: an earlier pass left the wash at the weight it
   had carried when the hero held only the maps, and it flattened the
   photograph into a plain navy block.  The connected African map and the
   Nigeria map stay on top as a faint watermark. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-photo {
    position: absolute; inset: 0;
    background: url("/static/brand/hero.jpg") center / cover no-repeat;
}
.hero-bg-africa { position: absolute; top: -6%; left: -6%; width: 66%;
    height: auto; opacity: .10; }
.hero-bg-nigeria { position: absolute; right: -2%; bottom: -8%; width: 26%;
    height: auto; opacity: .12; }
.hero-bg-veil { position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(9, 24, 46, .58) 0%, rgba(11, 30, 56, .40) 45%,
        rgba(9, 24, 46, .66) 100%); }
.hero-inner { position: relative; z-index: 1; }
/* A soft scrim behind the words alone.  The photograph the client supplied for
   the hero is a bright winter field, and white type set straight onto bright
   snow does not read -- while a wash heavy enough to fix that flattens the
   photograph back into a navy block.  So the wash stays light and the words
   get their own soft darkening behind them, fading out to nothing at the
   edges so the field itself is left untouched. */
.hero-inner::before {
    content: ""; position: absolute; inset: -10% -14%; z-index: -1;
    pointer-events: none;
    background: radial-gradient(62% 58% at 50% 46%,
        rgba(5, 16, 33, .66) 0%, rgba(6, 19, 38, .40) 52%,
        rgba(6, 19, 38, 0) 100%);
}
.hero h1 {
    font-size: clamp(30px, 4.6vw, 52px); max-width: 22em; margin: 0 auto 16px;
    color: #fff; text-shadow: 0 2px 26px rgba(0, 0, 0, .60);
}
.hero p {
    font-size: clamp(14.5px, 1.5vw, 17px); color: #d8e6f6; max-width: 46em;
    margin: 0 auto 30px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .62);
    backdrop-filter: blur(4px);
    font-weight: 700;
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }
.hero .btn-primary { box-shadow: 0 10px 28px rgba(30, 110, 197, .45); }
.hero-badges {
    display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
    margin-top: 34px; font-size: 12.5px; color: #b9cfe6;
}
.hero-badges span { display: flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 15px; height: 15px; color: var(--cyan); }

/* a real footer, in the style of the school product */
.pub-foot { background: var(--brand-deep); color: #c3d5ea; text-align: left; }
.foot-grid > *, .foot-col, .foot-brand, .foot-office, .foot-bar { text-align: left; }
.foot-col-head { text-align: left; }
.foot-grid {
    max-width: 1180px; margin: 0 auto; padding: 44px 22px 30px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 30px;
}
.foot-brand svg { height: 34px; width: auto; margin-bottom: 14px; }
.foot-brand p { font-size: 12.5px; line-height: 1.65; color: #a8bedb; margin: 0 0 16px; }
.foot-social { display: flex; gap: 9px; }
.foot-social a {
    width: 30px; height: 30px; border-radius: 8px; display: grid;
    place-items: center; color: #c3d5ea; background: rgba(255, 255, 255, .08);
}
.foot-social a:hover { background: var(--brand); color: #fff; }
.foot-social svg { width: 15px; height: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.foot-col-head {
    font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
    color: #7f9ac0; font-weight: 700; margin-bottom: 3px;
}
.foot-col a { color: #c3d5ea; }
.foot-col a:hover { color: #fff; }
.foot-office { margin: 0; font-size: 12.5px; color: #a8bedb; }
.foot-office strong { display: block; color: #dce8f5; }

/* the bottom bar holds the copyright and the discreet owner-console entry */
.foot-bar {
    border-top: 1px solid rgba(255, 255, 255, .09);
    max-width: 1180px; margin: 0 auto; padding: 16px 22px 22px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: #8aa6c6;
}
.foot-bar-nav { margin-left: auto; display: flex; gap: 14px; }
.foot-bar-nav a { color: #8aa6c6; }
.foot-bar-nav a:hover { color: #fff; }

/* C2026 -- deliberately the same colour as the bar it sits on.  Only someone
   who knows it is there will find it; it is not styled as a link. */
.c2026 {
    color: inherit; text-decoration: none; opacity: .55;
    font-variant: all-small-caps; letter-spacing: .14em; font-size: 11px;
    padding: 2px 5px; border-radius: 4px;
}
.c2026:hover { opacity: 1; color: #dce8f5; }

@media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 460px; padding: 72px 22px 78px; }
}


/* --------------------------------------------------------------------------
   Live chat
   -------------------------------------------------------------------------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 9000;
    font-family: inherit; }

.chat-fab {
    display: flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--brand), #1E4E86); color: #fff;
    padding: 13px 19px 13px 15px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
    box-shadow: 0 10px 30px rgba(19, 44, 80, .34);
    transition: transform .16s ease, box-shadow .16s ease;
}
.chat-fab:hover { transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(19, 44, 80, .42); }
.chat-fab-icon { display: grid; place-items: center; }
.chat-fab-close { display: none; font-size: 22px; line-height: 1; }
.chat-widget.is-open .chat-fab { padding: 12px 15px; }
.chat-widget.is-open .chat-fab-icon,
.chat-widget.is-open .chat-fab-label { display: none; }
.chat-widget.is-open .chat-fab-close { display: block; }

.chat-panel {
    position: absolute; right: 0; bottom: 68px;
    width: 376px; max-width: calc(100vw - 40px);
    height: 544px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 18px;
    box-shadow: 0 26px 70px rgba(9, 24, 46, .34);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line);
    animation: chat-in .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.97); }
                     to   { opacity: 1; transform: none; } }
.chat-panel[hidden] { display: none; }

/* --- the header ------------------------------------------------------- */
.chat-head {
    display: flex; align-items: center; gap: 11px; padding: 14px 15px;
    background: linear-gradient(135deg, var(--brand), #1E4E86);
    color: #fff; position: relative; flex-shrink: 0;
}
.chat-head-avatar {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: rgba(255, 255, 255, .16); display: grid; place-items: center;
    position: relative;
}
.chat-head-avatar::after {
    content: ""; position: absolute; right: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #35D07F; border: 2px solid var(--brand);
}
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; font-size: 14px; letter-spacing: .01em; }
.chat-head-text span { font-size: 11.5px; color: #b9d2ee; }
.chat-close { background: none; border: 0; color: #fff; font-size: 23px;
    line-height: 1; cursor: pointer; opacity: .75; padding: 0 3px;
    border-radius: 6px; }
.chat-close:hover { opacity: 1; background: rgba(255, 255, 255, .14); }

/* --- the email gate --------------------------------------------------- */
.chat-gate { padding: 24px 20px 20px; }
.chat-gate[hidden] { display: none; }
.chat-gate-head { display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 18px; }
.chat-gate-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: var(--brand-soft); color: var(--brand); display: grid;
    place-items: center; }
.chat-gate-tx strong { display: block; font-size: 15px; color: var(--ink);
    margin-bottom: 3px; }
.chat-gate-tx span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.chat-gate input { width: 100%; margin-bottom: 10px; }
.chat-gate-err { color: var(--red); font-size: 11.5px; margin: 0 0 8px; }
.chat-gate-err[hidden] { display: none; }
.chat-gate-note { font-size: 11px; color: var(--muted); margin: 12px 0 0;
    line-height: 1.55; text-align: center; }
.chat-gate .btn-block { padding: 11px; font-size: 13.5px; border-radius: 11px; }

/* --- the conversation ------------------------------------------------- */
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 11px;
    background: linear-gradient(180deg, #F4F7FB, #EDF2F8); }
.chat-log[hidden] { display: none; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 15px;
    font-size: 12.8px; line-height: 1.6; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line);
    border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink-2);
    box-shadow: 0 1px 3px rgba(16, 42, 70, .05); }
.chat-msg.me { background: linear-gradient(135deg, var(--brand), #1E4E86);
    color: #fff; align-self: flex-end; border-bottom-right-radius: 5px;
    box-shadow: 0 3px 10px rgba(19, 44, 80, .2); }
.chat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.chat-msg.bot a { color: var(--brand); }
.chat-msg strong { color: var(--ink); }
.chat-msg.me strong { color: #fff; }
.chat-typing { display: flex; gap: 5px; align-self: flex-start; padding: 12px 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px;
    border-bottom-left-radius: 5px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #aebfd6;
    animation: chat-blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); }
                        30% { opacity: 1; transform: translateY(-3px); } }

/* --- the quick replies ------------------------------------------------ */
.chat-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 12px 14px 0;
    flex-shrink: 0; }
.chat-quick[hidden] { display: none; }
.chat-chip { border: 1px solid var(--line); background: #fff;
    color: var(--ink-2); font-size: 11.8px; padding: 7px 12px;
    border-radius: 999px; cursor: pointer; font-weight: 500;
    transition: border-color .14s ease, color .14s ease, background .14s ease; }
.chat-chip:hover { border-color: var(--brand); color: var(--brand);
    background: var(--brand-soft); }

/* --- the composer ----------------------------------------------------- */
.chat-form { display: flex; gap: 9px; padding: 12px 14px 14px; flex-shrink: 0; }
.chat-form[hidden] { display: none; }
.chat-form input { flex: 1; border-radius: 11px; }
.chat-send { width: 42px; height: 42px; flex-shrink: 0; border: 0;
    border-radius: 11px; background: linear-gradient(135deg, var(--brand),
    #1E4E86); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: transform .14s ease; }
.chat-send:hover { transform: scale(1.06); }

/* --- the handoff strip ------------------------------------------------- */
.chat-foot { padding: 11px 14px; border-top: 1px solid var(--line);
    background: #fff; font-size: 11.5px; color: var(--muted);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    flex-shrink: 0; }
.chat-foot a { color: var(--brand); font-weight: 600; }
.chat-foot-sep { color: #cbd6e4; }

@media (max-width: 520px) {
    .chat-widget { right: 12px; bottom: 12px; }
    .chat-panel { width: calc(100vw - 24px); height: calc(100vh - 110px); }
    .chat-fab-label { display: none; }
}


/* --------------------------------------------------------------------------
   the hotel onboarding wizard
   -------------------------------------------------------------------------- */

.wiz-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: wiz;
}

.wiz-steps .step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  color: var(--ink-3, #7a8798);
  font-size: 13px;
  font-weight: 600;
}

.wiz-steps .step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line, #e3e9f2);
  color: var(--ink-2, #4b5a6b);
  font-size: 12px;
  font-weight: 700;
}

.wiz-steps .step.now {
  border-color: var(--brand, #132C50);
  color: var(--brand, #132C50);
  background: #fff;
  box-shadow: 0 4px 14px rgba(19, 44, 80, .10);
}

.wiz-steps .step.now .step-num {
  background: var(--brand, #132C50);
  color: #fff;
}

.wiz-steps .step.done {
  color: var(--green, #22A98D);
  border-color: rgba(34, 169, 141, .35);
  background: rgba(34, 169, 141, .07);
}

.wiz-steps .step.done .step-num {
  background: var(--green, #22A98D);
  color: #fff;
}

.wiz-form .card + .card { margin-top: 18px; }

.wiz-h {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1b2735);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 9px;
  margin: 12px 0 4px;
}

.feat-tick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #4b5a6b);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.feat-tick:hover {
  border-color: var(--brand, #132C50);
  color: var(--brand, #132C50);
}

.feat-tick input { margin: 0; accent-color: var(--brand, #132C50); }

.feat-tick:has(input:checked) {
  border-color: var(--brand, #132C50);
  background: rgba(19, 44, 80, .06);
  color: var(--brand, #132C50);
}

.feat-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--line, #e3e9f2);
  flex: 0 0 auto;
}

.feat-tick:has(input:checked) .feat-ic {
  background: var(--brand, #132C50);
  color: #fff;
}

.user-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1fr 1.6fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line, #e3e9f2);
}

.user-row .field { margin: 0; }
.user-row .user-del { height: 38px; margin-bottom: 2px; }
#user-rows .user-row:first-child .user-del { visibility: hidden; }

/* ---- one item line on a store delivery ---------------------------------- */
.line-row {
  display: grid;
  grid-template-columns: 28px 1.7fr .9fr .8fr auto;
  gap: 12px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line, #e3e9f2);
}
.line-row .field { margin: 0; }
.line-row .user-del { height: 38px; margin-bottom: 2px; }
.line-no {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--brand-soft, #e8f2f8); color: var(--brand-deep, #0F2A4D);
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
#post-lines .line-row:first-child .user-del { visibility: hidden; }

/* ---- the store's shelf, laid out to pick from ----------------------------
   A requisition is where a kitchen and a store stop agreeing about what a
   thing is called.  The shelf is the store's own spelling of its own stock,
   as pills: search narrows it, clicking one fills the line.                   */
.req-picker {
  margin: 4px 0 18px; padding: 14px 16px;
  border: 1px solid var(--line, #e3e9f2); border-radius: 12px;
  background: var(--brand-soft, #f6fafc);
}
.req-shelf {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 148px; overflow-y: auto; padding: 2px;
}
.req-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line, #d8e3ee);
  border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--brand-deep, #0F2A4D);
  transition: border-color .12s, background .12s;
}
.req-chip:hover { border-color: var(--brand, #10A8B8); background: #f0fbfc; }
.req-chip:active { transform: translateY(1px); }
.req-chip-u {
  font-size: 11px; color: #7c8ba0; text-transform: lowercase;
}
#req-shelf-note { margin: 10px 2px 0; }

/* ---- a requisition, laid out across the page ------------------------------
   Round 41.  Both ends of the requisition used to run their facts down a
   Field/Value card squeezed into a one-third column, which is what made the
   form look hidden on a dashboard: the "Release from your stock" heading
   clipped to "R STOCK" and the "-- not releasing this --" option clipped to
   "this".  The facts now sit across the width of the page and the lines of
   the request get every bit of room that is left.                            */
.fact-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 26px;
}
.fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-lab {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #7c8ba0;
}
.fact-val {
  font-size: 13.5px; font-weight: 600; color: #1b2b3a; line-height: 1.45;
  overflow-wrap: anywhere;
}
.fact-val .pill { font-weight: 700; }
@media (max-width: 900px) {
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the store's answer: one wide table, and the one button that releases on a
   bar of its own at the bottom where it cannot be missed */
.rel-form .card { margin-bottom: 18px; }
.rel-tbl th { white-space: normal; }
.rel-tbl td { vertical-align: middle; }
.rel-tbl .rel-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--brand-soft, #e8f2f8); color: var(--brand-deep, #0F2A4D);
  font-size: 12px; font-weight: 700;
}
.rel-tbl .rel-pick { width: 100%; min-width: 0; }
.rel-tbl .rel-qty { width: 100%; min-width: 0; max-width: 160px; }
.rel-tbl th:nth-child(4), .rel-tbl td:nth-child(4) { width: 36%; }
.rel-tbl th:nth-child(5), .rel-tbl td:nth-child(5) { width: 20%; }
.rel-acts {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line, #e3e9f2);
}
.rel-acts .field-note { margin: 0; flex: 1 1 240px; }

/* ---- a message, read in full ---------------------------------------------
   Round 41: open, reply, archive and delete on every message, on the inbox
   line and on the message itself, wherever it is read from.                    */
.msg-body {
  margin: 18px 0 0; padding: 16px 18px; font-size: 14px; line-height: 1.65;
  color: #22303f; background: #F7FAFC; border: 1px solid var(--line, #e3e9f2);
  border-radius: 10px; white-space: normal;
}
.msg-acts {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line, #e3e9f2);
}
.inline-form { display: inline; margin: 0; }

/* ---- an order taken at the reception, as a table ------------------------- */
#ord-lines { border-collapse: separate; border-spacing: 0; }
#ord-lines thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #7c8ba0; font-weight: 700; padding: 8px 10px; text-align: left;
  border-bottom: 1px solid var(--line, #e3e9f2);
}
#ord-lines td { padding: 6px 10px; vertical-align: middle; border: 0; }
#ord-lines tbody tr { border-bottom: 1px dashed var(--line, #eef2f7); }
#ord-lines .line-no { margin-bottom: 0; }
#ord-lines .field { margin: 0; }
#ord-lines .user-del { height: 34px; }
#ord-lines tfoot td {
  padding: 12px 10px 4px; border-top: 1px solid var(--line, #e3e9f2);
  font-size: 15px;
}
.ord-amt { font-variant-numeric: tabular-nums; color: #4a5a6e; }
#ord-total { font-variant-numeric: tabular-nums; color: var(--brand-deep, #0F2A4D); }

/* ---- the kitchen's selling point ----------------------------------------- */
.kpos-shelf {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 172px; overflow-y: auto; padding: 2px; margin-bottom: 10px;
}
.kpos-dish {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 8px 13px; border: 1px solid var(--line, #d8e3ee);
  border-radius: 10px; background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--brand-deep, #0F2A4D);
  text-align: left; min-width: 168px;
}
.kpos-dish:hover { border-color: var(--brand, #10A8B8); background: #f0fbfc; }
.kpos-dish:active { transform: translateY(1px); }
.kpos-dish-n { font-weight: 600; }
.kpos-dish-p {
  font-size: 11px; color: #7c8ba0; font-variant-numeric: tabular-nums;
}
.kpos-have-box {
  display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px;
  border: 1px solid var(--line, #e3e9f2); border-radius: 10px;
  background: var(--brand-soft, #f6fafc);
}
.kpos-have { font-size: 12px; color: #4a5a6e; }

/* A dish the kitchen can no longer send out: still on the shelf, still
   visible, and not pickable.  Hiding it would make the pass look like it
   never cooked it. */
.kpos-dish { flex-direction: column; align-items: flex-start; gap: 3px; }
.kpos-dish-s { flex: 1 1 100%; font-size: 11px; font-style: normal; }
.kpos-dish.is-out { border-color: #e6c9c9; background: #fdf6f6;
    cursor: not-allowed; }
.kpos-dish.is-out .kpos-dish-n { color: #8d6a6a; text-decoration: line-through; }
.kpos-dish.is-low { border-color: #ecd9b0; background: #fdfaf2; }
.kpos-have::before { content: "\25CF "; color: var(--green, #22A98D); }
#kpos-lines td { padding: 6px 10px; vertical-align: middle; border: 0; }
#kpos-lines .field { margin: 0; }
.kpos-amt { font-variant-numeric: tabular-nums; color: #4a5a6e; }
#kpos-total { font-variant-numeric: tabular-nums; color: var(--brand-deep, #0F2A4D); }
.line-onhand input { background: #f4f7fb; color: #5b6b80; }

/* ---- the alert a department gets when stock arrives --------------------- */
.dlv-alert { display: block; margin-bottom: 16px; }
.dlv-alert-h { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.dlv-alert-h svg { flex: none; }
.dlv-alert .field-note { margin: 6px 0 12px; }
.dlv-act { display: flex; gap: 8px; align-items: center; }
.dlv-act .f-input { max-width: 190px; }
.dlv-alert table { margin-top: 4px; }

.pw-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--line, #e3e9f2);
  overflow: hidden;
  margin: 4px 0 8px;
}

.pw-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .2s ease, background .2s ease;
}

.pw-meter .pw-0 { background: #e05252; }
.pw-meter .pw-1 { background: #e05252; }
.pw-meter .pw-2 { background: #e8a33d; }
.pw-meter .pw-3 { background: #e8c33d; }
.pw-meter .pw-4 { background: #3aa87a; }
.pw-meter .pw-5 { background: var(--green, #22A98D); }

.logo-preview { margin-top: 8px; }

table.kv th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3, #7a8798);
  padding: 5px 14px 5px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 190px;
}

table.kv td { padding: 5px 0; }

@media (max-width: 860px) {
  .user-row { grid-template-columns: 1fr 1fr; }
  .line-row { grid-template-columns: 28px 1fr 1fr; }
  .line-row .line-onhand { grid-column: 2 / span 2; }
  .dlv-act { flex-direction: column; align-items: stretch; }
  .dlv-act .f-input { max-width: none; }
  .user-row .field:last-of-type { grid-column: span 2; }
  table.kv th { width: 130px; }
}


/* the cookie bar: the bar itself, and the preferences panel inside it */
.cookie-bar.is-open { animation: cookie-in .35s ease both; }
@keyframes cookie-in {
    from { opacity: 0; transform: translate(-50%, 14px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-bar .cookie-inner { position: relative; }
.cookie-panel {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    display: grid; gap: 9px;
}
.cookie-panel label {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12.5px; color: var(--ink-2); cursor: pointer; line-height: 1.45;
}
.cookie-panel input { margin: 2px 0 0; flex: 0 0 auto; }
.cookie-panel span strong { display: inline; color: var(--ink); }
.cookie-panel-actions { display: flex; gap: 8px; margin-top: 3px; flex-wrap: wrap; }


/* the wizard's Back / Continue pair */
.wiz-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    align-items: center; margin-top: 6px;
}
.wiz-actions .btn-primary { margin-left: auto; }


/* an owner console table with a wide action column */
.tbl-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.tbl-inline { display: inline; }


/* ==========================================================================
   Round 19 -- the combined booking form, the folio receipt and the panels
   ========================================================================== */

/* the default price list: 100k / 200k / 300k */
.price-row { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip { font-variant-numeric: tabular-nums; }
.price-chip:hover { background: var(--blue, #1E6EC5); color: #fff;
                    border-color: var(--blue, #1E6EC5); }

/* group or individual */
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
             margin: 0 0 6px; }
.kind-opt { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px;
            border: 1px solid var(--line, #dbe4ee); border-radius: 12px;
            cursor: pointer; background: #fff; }
.kind-opt:hover { border-color: var(--blue, #1E6EC5); }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt:has(input:checked) { border-color: var(--blue, #1E6EC5);
                               background: #f3f8ff; }
.kind-ic { color: var(--blue, #1E6EC5); }
.kind-lb { font-weight: 700; font-size: 14px; }
.kind-bl { font-size: 12px; color: #6b7c91; }

/* the folio's three actions */
.folio-acts { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.folio-mail { display: flex; gap: 7px; align-items: center; }
.folio-mail .f-input { max-width: 220px; }

/* the receipt: printed, sent and emailed as one document */
.receipt { border: 1px solid var(--line, #dbe4ee); border-radius: 12px;
           padding: 22px 24px; background: #fff; max-width: 720px; }
.receipt-head { text-align: center; border-bottom: 2px solid #132C50;
                padding-bottom: 10px; margin-bottom: 12px; }
.receipt-brand { font-size: 20px; font-weight: 800; letter-spacing: .02em;
                 color: #132C50; }
.receipt-sub { font-size: 11px; color: #6b7c91; letter-spacing: .12em;
               text-transform: uppercase; }
.receipt-title { margin: 0 0 10px; font-size: 16px; }
.receipt-meta { width: 100%; border-collapse: collapse; font-size: 13px;
                margin-bottom: 14px; }
.receipt-meta th { text-align: left; width: 120px; padding: 3px 0;
                   font-weight: 600; color: #6b7c91; }
.receipt-meta td { padding: 3px 0; text-align: right;
                   font-variant-numeric: tabular-nums; }
.receipt-lines { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.receipt-lines th { text-align: left; padding: 6px 8px; background: #f2f6fa;
                    border-bottom: 1px solid var(--line, #dbe4ee); }
.receipt-lines td { padding: 5px 8px; border-bottom: 1px solid #eef3f8; }
.receipt-lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-lines tfoot td { font-weight: 700; border-top: 2px solid #132C50; }
.receipt-foot { margin: 14px 0 0; font-size: 11px; color: #6b7c91;
                text-align: center; }

/* the advance deposit and the receptionist's Guest CRM sit above the KPIs */
.adv-deposit { border-top: 3px solid #22A98D; }
.crm-top { border-top: 3px solid #1E6EC5; }

/* Scoped to the folio receipt.  Unscoped it ran on every print in the
   application and blanked every page that has no #folio-receipt on it. */
@media print {
  body.printing-folio * { visibility: hidden; }
  body.printing-folio #folio-receipt,
  body.printing-folio #folio-receipt * { visibility: visible; }
  body.printing-folio #folio-receipt { position: absolute; left: 0; top: 0;
                   width: 100%; border: 0; padding: 0; }
}

/* ---- the guest folio, laid out the way the hotel's template asks --------
   logo + hotel information across the top, then the six identifying fields,
   then the transaction details table of Date / Description / Amount. */
.receipt { background: #FFFFFF; }
.rc-top {
    display: flex; align-items: flex-start; gap: 18px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 2px solid #132C50;
}
.rc-logo { width: 66px; height: auto; flex: 0 0 auto; display: block; }
.rc-hotel { flex: 1 1 auto; min-width: 0; }
.rc-hotel-name {
    font-size: 17px; font-weight: 800; color: #132C50;
    letter-spacing: -.2px; line-height: 1.2;
}
.rc-hotel-sub { font-size: 11.5px; color: #4A5F76; line-height: 1.5; margin-top: 2px; }
.rc-doc { text-align: right; flex: 0 0 auto; }
.rc-doc-t {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
    color: #7B8CA0; font-weight: 700;
}
.rc-doc-n { font-size: 17px; font-weight: 800; color: #132C50; margin-top: 2px; }

.rc-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px; margin-bottom: 20px;
}
.rc-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rc-k {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
    color: #7B8CA0; font-weight: 700;
}
.rc-v { font-size: 14px; font-weight: 700; color: #132C50; word-break: break-word; }
.rc-h {
    font-size: 13px; font-weight: 800; color: #132C50;
    text-transform: uppercase; letter-spacing: .06em;
    margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #E2EAF2;
}
.rc-lines { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rc-lines th {
    text-align: left; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .07em; color: #7B8CA0; font-weight: 700;
    padding: 6px 8px; border-bottom: 1px solid #E2EAF2;
}
.rc-lines td { padding: 7px 8px; border-bottom: 1px solid #F0F4F8; color: #24384F; }
.rc-lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.rc-date { color: #7B8CA0; white-space: nowrap; }
.rc-empty { color: #7B8CA0; font-style: italic; text-align: center; padding: 14px; }
.rc-lines tfoot td {
    font-weight: 800; color: #132C50; border-top: 1px solid #D6E2EE;
    padding-top: 9px;
}
.rc-lines .rc-due td { color: #B3261E; }
.rc-sign {
    display: flex; gap: 40px; margin-top: 18px; padding-top: 14px;
    border-top: 1px dashed #C6D5E4;
}
.rc-sign > div { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 640px) {
    .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-top { flex-wrap: wrap; }
    .rc-doc { text-align: left; }
}
/* on paper the folio is one clean black-and-white document, no card chrome */
@media print {
    #folio-receipt { border: 0; box-shadow: none; padding: 0; }
    #folio-receipt .rc-logo { width: 72px; }
    .rc-hotel-sub, .rc-k, .rc-lines th, .rc-date { color: #333; }
}


/* ---- printing an owner history ------------------------------------------
   One clean sheet: no sidebar, no top bar, no card chrome, just the title,
   the numbers and the rows.  Used by the Print button on the owner's booking
   and transaction histories. */
/* A dark heading band does not print -- browsers leave backgrounds off the
   paper by default -- so the register prints as light type on nothing at all.
   The band is therefore re-drawn for paper: dark type on a light tint, the
   same structure, readable on a mono laser printer. */
@media print {
    .tbl thead th {
        background: #E7EEF6 !important;
        color: #132C50 !important;
        border-bottom: 1.5pt solid #132C50 !important;
        border-right: 0 !important;
    }
    .tbl thead th .tbl-sub { color: #4A5F76 !important; }
    .card-head { background: #F2F7FB !important; }
    .tbl tbody tr:nth-child(even) { background: #F7FAFC !important; }
    .btn { box-shadow: none !important; }
}


/* ---- printing a record: one clean sheet -------------------------------
   Every class the application asks `wrhPrint()` for is listed, and each
   one carries the descendant it is meant to strip.  A bare
   `body.printing-record` in the list is the body element itself, and
   `display: none` on the body is a blank page -- which is exactly what
   this block used to do. */
@media print {
    body.printing-record .side, .top, .pg-head-actions, .pg-back, .crumb, .folio-acts, .no-print,
    body.printing-debt-record .side, .top, .pg-head-actions, .pg-back, .crumb, .folio-acts, .no-print,
    body.printing-registry-record .side, .top, .pg-head-actions, .pg-back, .crumb, .folio-acts, .no-print,
    body.printing-owner-record .side, .top, .pg-head-actions, .pg-back, .crumb, .folio-acts, .no-print,
    body.printing-pos-receipt .side, .top, .pg-head-actions, .pg-back, .crumb, .folio-acts, .no-print { display: none !important }
    body.printing-record .main,
    body.printing-debt-record .main,
    body.printing-registry-record .main,
    body.printing-owner-record .main,
    body.printing-pos-receipt .main { margin: 0 !important }
    body.printing-record .content,
    body.printing-debt-record .content,
    body.printing-registry-record .content,
    body.printing-owner-record .content,
    body.printing-pos-receipt .content { padding: 0 !important; max-width: none !important }
    body.printing-record .card,
    body.printing-debt-record .card,
    body.printing-registry-record .card,
    body.printing-owner-record .card,
    body.printing-pos-receipt .card { border: 0 !important; box-shadow: none !important }
    body.printing-record .pg-head h1,
    body.printing-debt-record .pg-head h1,
    body.printing-registry-record .pg-head h1,
    body.printing-owner-record .pg-head h1,
    body.printing-pos-receipt .pg-head h1 { font-size: 18pt }
    body.printing-record .pg-head p,
    body.printing-debt-record .pg-head p,
    body.printing-registry-record .pg-head p,
    body.printing-owner-record .pg-head p,
    body.printing-pos-receipt .pg-head p { font-size: 10pt }
    body.printing-record table,
    body.printing-debt-record table,
    body.printing-registry-record table,
    body.printing-owner-record table,
    body.printing-pos-receipt table { font-size: 9.5pt }
    body.printing-record .ch-bubble,
    body.printing-debt-record .ch-bubble,
    body.printing-registry-record .ch-bubble,
    body.printing-owner-record .ch-bubble,
    body.printing-pos-receipt .ch-bubble { max-width: 100% }
    body.printing-record .ch-body,
    body.printing-debt-record .ch-body,
    body.printing-registry-record .ch-body,
    body.printing-owner-record .ch-body,
    body.printing-pos-receipt .ch-body { border: 0; padding: 2pt 0 }
    body.printing-record .ch-form,
    body.printing-debt-record .ch-form,
    body.printing-registry-record .ch-form,
    body.printing-owner-record .ch-form,
    body.printing-pos-receipt .ch-form { display: none !important }
    body.printing-record .pg-head,
    body.printing-debt-record .pg-head,
    body.printing-registry-record .pg-head,
    body.printing-owner-record .pg-head,
    body.printing-pos-receipt .pg-head { border-bottom: 2px solid #132C50;
        padding-bottom: 8pt; margin-bottom: 10pt }
}


/* ---- the money boxes on the finance receivables and payables cards -----
   The figure has to be readable at arm's length before anyone presses
   Collect or Pay, so this box is deliberately larger than a normal input:
   a bigger font, tabular figures so the digits line up, and the value
   pre-filled with the balance so the person sees the number first. */
.amt-box { display: flex; flex-direction: column; gap: 6px; min-width: 168px; }
.f-input-amt {
    font-size: 19px !important; font-weight: 800;
    font-variant-numeric: tabular-nums; letter-spacing: .2px;
    padding: 10px 12px !important; text-align: right;
    border: 2px solid #C9D8E8 !important; border-radius: 10px !important;
    background: #FCFDFE; color: #132C50; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.f-input-amt:focus {
    border-color: #1E6EC5 !important;
    box-shadow: 0 0 0 3px rgba(30, 110, 197, .16);
    outline: none;
}
.amt-act { display: flex; gap: 6px; align-items: center; }
.amt-big {
    font-size: 16px; font-weight: 800; color: #132C50;
    font-variant-numeric: tabular-nums;
}
.settled-tag {
    display: inline-block; padding: 6px 10px; border-radius: 8px;
    background: #EAF7F1; color: #1B7A5A; font-size: 12px; font-weight: 700;
}
.tbl-sub { font-size: 11.5px; color: #6B7E93; margin-top: 2px; }
.row-form { margin: 0; }
@media (max-width: 720px) {
    .amt-box { min-width: 132px; }
    .f-input-amt { font-size: 17px !important; }
}


/* ---- the booking register, laid out landscape -------------------------
   One wide table so every heading and every function is on screen at once:
   the register sits under the booking-source doughnut and reads across the
   full width of the page rather than in a narrow column beside it. */
.reg-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.reg-bar .reg-count { font-size: 12.5px; color: var(--muted); margin-right: auto; }
/* layout.table() puts the extra class on the scrolling wrapper, not on the
   <table> itself, so the register's rules hang off the wrapper */
.reg-wide { overflow-x: visible; }
.reg-wide table { table-layout: auto; }
.reg-wide th { padding: 8px 10px; }
.reg-wide td { padding: 9px 10px; white-space: nowrap; }
.reg-wide .num { white-space: nowrap; }
@media (max-width: 1180px) { .reg-wide { overflow-x: auto; } }
.reg-src {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #33475E;
}
.reg-src i {
    width: 9px; height: 9px; border-radius: 3px; flex: none;
    background: var(--ch-col, #6B7C93);
}

/* ---- receivables and payables, rebuilt as a list ---------------------
   Two cards, each full width, one row per account: who it is on the left,
   what is owed in the middle in figures large enough to read before anyone
   presses Collect or Pay, and the figure box and its buttons on the right.
   The old five-column table repeated the reference twice and squeezed the
   amount box into a column, which is what made the section read as crowded. */
.ar-list { display: flex; flex-direction: column; gap: 10px; }
.ar-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) minmax(150px, 1fr) auto auto;
    gap: 8px 18px; align-items: center;
    padding: 13px 16px; border: 1px solid var(--line, #E2EAF2);
    border-radius: 12px; background: #FFFFFF;
    transition: border-color .15s, box-shadow .15s;
}
.ar-row:hover { border-color: #C4D6E8; box-shadow: 0 1px 4px rgba(19,44,80,.06); }
.ar-row.is-done { background: #FAFCFE; }
.ar-who { min-width: 0; }
.ar-who .tbl-strong { display: block; font-size: 13.5px; }
.ar-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ar-bal { text-align: right; min-width: 120px; }
.ar-bal .amt-big { font-size: 19px; }
.ar-bal .tbl-sub { margin-top: 1px; }
.ar-act { min-width: 178px; }
.ar-act .amt-box { min-width: 0; }
.ar-head {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) minmax(150px, 1fr) auto auto;
    gap: 8px 18px; padding: 0 16px 8px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.ar-head span:nth-child(3) { text-align: right; }
@media (max-width: 900px) {
    .ar-row, .ar-head { grid-template-columns: 1fr 1fr; }
    .ar-bal { text-align: left; }
    .ar-act { grid-column: 1 / -1; }
}

/* the role picker on the team screen: one tick per role, the standing role
   leading, so more than one role may be given to one person */
.feat-grid-roles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feat-grid-roles .feat-tick { align-items: flex-start; }
.feat-grid-roles .feat-sub {
    display: block; font-size: 11px; color: var(--muted);
    font-weight: 400; line-height: 1.4; margin-top: 2px;
}
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: #33475E; }

/* ---- pictures on a staff form ------------------------------------------
   The picker is emptied the moment a file is chosen and the shrunk image is
   carried in a hidden field, so the visible box is a preview, not the upload
   control.  Everything is inline: no external fonts, no network. */
.img-field { display: flex; align-items: flex-start; gap: 12px; }
.img-shot {
    width: 96px; height: 96px; object-fit: cover; flex: none;
    border: 1px solid var(--line, #E2EAF2); border-radius: 10px;
    background: #F7FAFC; display: none;
}
.img-shot.is-on { display: block; }
.img-side { min-width: 0; }
.img-note { font-size: 11.5px; color: var(--muted); margin: 4px 0 6px; }
.img-pick { font-size: 12px; }

/* ---- the shift roll -----------------------------------------------------
   Staff down the side, the weeks of the month across the top.  One grid is
   the whole roll for a month, and it saves as one. */
.roll-wrap { overflow-x: auto; }
table.roll { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.roll th, table.roll td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
table.roll th {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); text-align: center;
    white-space: nowrap;
}
table.roll th.roll-who, table.roll td.roll-who { text-align: left; white-space: nowrap; }
table.roll td.roll-cell { text-align: center; }
table.roll select {
    font-size: 12px; padding: 5px 6px; border-radius: 8px;
    border: 1px solid #C9D8E8; background: #fff; min-width: 104px;
}
table.roll td.roll-tot { text-align: center; color: var(--muted); white-space: nowrap; }
.roll-rest { color: #98A6B6; }

/* ---- attendance, entered by hand ---------------------------------------
   One row per member of staff, a status each, saved for the month in view. */
.att-wrap { overflow-x: auto; }
table.att { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.att th, table.att td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
table.att th {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); text-align: center; white-space: nowrap;
}
table.att th.att-who, table.att td.att-who { text-align: left; white-space: nowrap; }
table.att td { text-align: center; }
.att-pick { display: inline-flex; gap: 3px; }
.att-pick label {
    font-size: 11px; padding: 3px 7px; border-radius: 999px; cursor: pointer;
    border: 1px solid #D5E1EC; background: #fff; color: #5A6E85; white-space: nowrap;
}
.att-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.att-pick input:checked + span { font-weight: 700; }
.att-pick label.is-present input:checked + span { color: #1B7A5A; }
.att-pick label.is-late input:checked + span { color: #B57B12; }
.att-pick label.is-absent input:checked + span { color: #B23A3A; }
.att-pick label.is-leave input:checked + span { color: #1E6EC5; }
.att-pick label.is-off input:checked + span { color: #5A6E85; }
.att-pick label:has(input:checked) { border-color: currentColor; background: #F4F9FE; }

/* ---- a month strip ------------------------------------------------------*/
.month-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.month-bar .month-now { font-weight: 700; color: var(--ink); }

/* ---- the three buttons on a staff record heading -----------------------*/
.rec-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-acts .btn { white-space: nowrap; }

/* ---- a query form, printed ---------------------------------------------*/
.q-sheet { max-width: 780px; margin: 0 auto; }
.q-rule { border-bottom: 1px solid var(--line, #E2EAF2); margin: 10px 0 14px; }
.q-sign { display: flex; gap: 28px; margin-top: 26px; }
.q-sign div { flex: 1; }
.q-sign .q-line { border-bottom: 1px solid #33475E; height: 30px; }
.q-sign .q-cap { font-size: 11px; color: var(--muted); margin-top: 4px; }
@media print {
    .side, .topbar, .pg-head, .subnav, .rec-acts, .no-print { display: none !important; }
    .content { padding: 0 !important; }
    .q-sheet { max-width: none; }
}

/* ---- a discount badge on a room ---------------------------------------*/
.disc-tag {
    display: inline-block; padding: 2px 7px; border-radius: 999px;
    background: #FDECEC; color: #B23A3A; font-size: 11px; font-weight: 700;
}
.disc-tag.is-off { background: #EEF2F6; color: #6B7C93; }

.card-foot {
    padding: 9px 16px; border-top: 1px solid #E2EAF2;
    background: #F7FAFC; border-radius: 0 0 14px 14px;
    font-size: 12.5px; font-weight: 700; color: #4A5F76;
}

/* the date half of the global search -- the same search runs on a name or on a
   date, so the box sits inside the search field rather than on a page of its own */
.tb-date-q {
    border: 0; border-left: 1px solid #DCE6F0; margin-left: 6px; padding-left: 10px;
    background: transparent; color: #2A3F55; font: inherit; font-size: 12.5px;
    max-width: 132px; cursor: pointer;
}
.tb-date-q:focus { outline: none; color: #1E6EC5; }
@media (max-width: 900px) {
    .tb-date-q { display: none; }
}


/* the till's hand-priced lines: a name, a quantity and a price per row, with
   the running total in the last cell */
.pos-lines { width: 100%; margin-bottom: 10px; }
.pos-lines td { padding: 5px 6px; vertical-align: middle; }
.pos-lines .f-input { width: 100%; }
.pos-line-total { font-weight: 700; white-space: nowrap; color: var(--navy); }

/* Every column of the till's hand-priced lines is named, and the name says
   what goes in the box rather than repeating the heading above it.  A person
   standing up with a guest waiting should never have to guess which of three
   empty boxes wants the price. */
.pos-lines thead th { padding: 8px 6px; vertical-align: bottom; }
.pos-lines thead label { display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
    margin: 0; cursor: default; }
.pos-lines thead .tbl-sub { display: block; font-size: 10px; font-weight: 500;
    text-transform: none; letter-spacing: 0; color: var(--muted);
    margin-top: 1px; }
.pos-lines tbody td { padding-top: 4px; }
.pos-lines .field { margin: 0; }
.pos-lines .f-input-amt { text-align: right; font-variant-numeric: tabular-nums; }
.pos-line .pos-line-total { font-size: 13.5px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------------------------------------------------------------------------
   Round 28 -- the settle card, the till's two searches, the stock warning
   --------------------------------------------------------------------------- */

/* The balance due is the one number on the folio a guest asks about, so it is
   the one number that is set largest and alone. */
.folio-due { text-align: center; padding: 6px 0 16px; }
.folio-due-n { display: block; font-size: 34px; font-weight: 700;
               color: var(--navy, #132C50); letter-spacing: -.5px; }
.folio-due-k { display: block; font-size: 12px; color: #6b7d94;
               margin-top: 4px; }
.folio-pay { border-top: 1px solid #e6edf5; padding-top: 14px; }
.folio-next { border-top: 1px solid #e6edf5; margin-top: 16px;
              padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px;
              align-items: flex-start; }
.folio-next .row-form { margin: 0; }
.folio-next .f-row { margin: 0; }

/* The till's guest search: a live-filtered table rather than a select holding
   every booking the hotel has ever taken. */
.pos-guests { margin-top: 10px; }
.pos-guests td { padding: 7px 10px; }
.pos-guest[style*="none"] { display: none !important; }
.pos-pick { display: inline-flex; align-items: center; cursor: pointer; }
.pos-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pos-pick span { width: 17px; height: 17px; border: 2px solid #b9c8d8;
                 border-radius: 50%; display: inline-block; position: relative;
                 transition: border-color .15s, box-shadow .15s; }
.pos-pick input:checked + span { border-color: var(--blue, #1E6EC5); }
.pos-pick input:checked + span::after {
    content: ""; position: absolute; inset: 3px; border-radius: 50%;
    background: var(--blue, #1E6EC5); }
.pos-pick input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(30, 110, 197, .25); }

/* An item the bar is out of is struck through rather than hidden -- the person
   at the till needs to see that it was on the menu and is gone. */
.pos-menu .pos-item[style*="none"] { display: none !important; }

@media print {
    .folio-due, .folio-pay, .folio-next { display: none !important; }
}

/* ---- the bell: a small "all" link, a heading, and a way to clear it ------ */
.tb-bell { position: relative; }
/* what the bell is for, said once, where you press it */
.tb-bell-note {
    padding: 9px 12px 10px;
    font-size: 11.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .62);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.tb-bell-all {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
}
.tb-bell-all:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.tb-note-head {
    padding: 7px 11px 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.tb-note-clear { padding: 7px 6px 3px; border-top: 1px solid var(--line-soft); margin-top: 5px; }

/* ---------------------------------------------------------------------------
   Round 39 -- correcting a live folio, and the guest who leaves owing money
   --------------------------------------------------------------------------- */

/* The Control Admin's correction panel.  It rewrites money a guest owes, so it
   is marked as such rather than dressed up as an ordinary form: a quiet amber
   rule and a heading that names the right, not a second blue button. */
.corr-card { border-color: var(--amber); }
.corr-card .card-head h2 { color: var(--ink); }
.corr-card .card-head { border-bottom-color: var(--amber); }
.corr-h {
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.corr-card .corr-h:first-of-type { margin-top: 4px; }

/* the remove buttons on a live folio's charges and payments */
.folio-x { display: inline; }
.folio-x .btn { white-space: nowrap; }

/* the debt option at check-out */
/* --- the check-out form ------------------------------------------------
   Round 44.  The money comes first, then the names, then two buttons that both
   finish the check-out.  The old layout put the debt option behind a tick that
   only appeared when a balance happened to be outstanding, which is why nobody
   could find it on a folio that was already settled -- the two buttons are on
   the screen either way. */
.co-form { display: block; }
.co-money {
    margin: 0 0 16px;
    padding: 14px 15px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2, #fbfcfe);
}
.co-h {
    margin: 0 0 11px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-2, #46586d);
}
.co-money .f-row { align-items: flex-end; }
.co-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 4px 0 10px;
}
.co-acts .btn { min-width: 168px; justify-content: center; }
.debt-opt { margin: 6px 0 2px; }
.debt-what { margin: 0; }
.debt-what-on {
    padding: 9px 11px;
    border-left: 3px solid var(--red);
    background: #fff;
}
.debt-what-on strong { color: var(--red); }

.debt-tick {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2, #fbfcfe);
    cursor: pointer;
}
.debt-tick input { margin-top: 3px; }
.debt-tick strong { display: block; font-size: 13.5px; }
.debt-now {
    margin-top: 11px;
    padding: 13px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    background: #fff;
}
.debt-now[hidden] { display: none; }

/* a debt folio that is still owing, on the list */
.tbl .amt-big { font-weight: 700; }

/* --------------------------------------------------------------------------
   the human check on the sign-in form -- "I'm not a robot"

   A tick that reveals a question the server asked.  It sits inside the form's
   own visual language: the same paper, the same line, the same radius.  The
   shield on the right is the whole promise of the widget in one glyph -- this
   page is checking that a person is here.
   -------------------------------------------------------------------------- */
.captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper, #fff);
    padding: 11px 13px;
    margin: 4px 0 16px;
}
.captcha-box {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    user-select: none;
}
.captcha-box input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
    cursor: pointer;
    margin: 0;
}
.captcha-mark { margin-left: auto; color: var(--brand); display: flex; }
.captcha-q {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line-soft);
    padding-top: 11px;
    margin-top: 2px;
}
.captcha-q[hidden] { display: none; }
.captcha-q label { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.captcha-q input { max-width: 150px; }

/* --------------------------------------------------------------------------
   install as software -- the card on the dashboard

   One card, one button, one sentence about what happens next.  It is on the
   dashboard only: the manifest and the service worker are attached to the
   signed-in shell, so this is the only place the offer can be made at all.
   -------------------------------------------------------------------------- */
.install-app {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.install-app-ic {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
}
.install-app-tx { flex: 1 1 260px; min-width: 220px; }
.install-app-tx strong { display: block; font-size: 14.5px; }
.install-app-tx span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 3px;
}
.install-app-go { flex: 0 0 auto; }

@media print {
    .corr-card { display: none !important; }
    #pwa-install { display: none !important; }
    .folio-x { display: none !important; }
    .debt-now { display: none !important; }
    .debt-opt { display: none !important; }
}


/* ---- the debt registry chip, top-right of the front office header --------
   The number the whole hotel is waiting on, in the corner of the screen the
   person who needs it is already looking at.  It is a chip rather than
   another KPI card because it is not a KPI -- it is a door into the debt
   list, and the figure on it changes the moment a guest is checked out owing
   money.  Red on purpose: money still owed is the one figure on this page
   that is never good news. */
.debt-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 13px 7px 10px; border-radius: 999px;
    background: #FBEAE8; border: 1.5px solid #E9A9A2;
    color: #A8332B; text-decoration: none; line-height: 1.15;
    box-shadow: 0 1px 2px rgba(19, 44, 80, .06);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.debt-chip:hover {
    border-color: #D2564B; box-shadow: 0 2px 8px rgba(210, 86, 75, .22);
}
.debt-chip-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 999px;
    background: #D2564B; color: #fff; flex: 0 0 30px;
}
.debt-chip-tx { display: flex; flex-direction: column; }
.debt-chip-tx strong {
    font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}
.debt-chip-tx small {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; color: #B4574F;
}
.debt-chip-clear { background: #E7F5F0; border-color: #9AD3C1; color: #16694F; }
.debt-chip-clear .debt-chip-ic { background: #22A98D; }
.debt-chip-clear .debt-chip-tx small { color: #1E7C61; }

/* the print and download buttons on every row of the debt list -- three
   buttons in one cell, so they sit side by side rather than stacking the
   table four rows deep */
.dbt-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* ---- the guest registry's print-all ------------------------------------
   The on-screen table has an Open button per row and a search form above
   it; neither belongs on paper.  So the registry renders a second block,
   hidden on screen, that is the only thing left when the page is printed:
   its own heading, the whole register, and the totals an auditor signs. */
.reg-print { display: none; }

@media print {
  .reg-print { display: block; }
  .reg-print-head { margin-bottom: 14px; }
  .reg-print-head h2 {
    margin: 0 0 2px; font-size: 17px; font-weight: 700; color: #132C50;
  }
  .reg-print-sub {
    margin: 0 0 10px; font-size: 11.5px; color: #5A6B7F;
  }
  .reg-print-tbl {
    width: 100%; border-collapse: collapse; font-size: 10.5px;
  }
  .reg-print-tbl th,
  .reg-print-tbl td {
    border: 0.5pt solid #C7D2DE; padding: 4px 6px; text-align: left;
    vertical-align: top;
  }
  .reg-print-tbl thead th {
    background: #EEF3F8; font-weight: 700; color: #132C50;
  }
  .reg-print-tbl td.num, .reg-print-tbl th.num { text-align: right; }
  .reg-print-tbl tfoot td {
    background: #F6F9FC; font-weight: 700; color: #132C50;
  }
  .reg-print-tbl tbody tr:nth-child(even) td { background: #FAFCFE; }
}

/* the photograph box on the team edit form -- the picture as it stands, and
   the compressed one as soon as a file is picked */
.staff-photo-box { margin-top: 6px; }
.staff-photo-box img {
  max-height: 88px; max-width: 160px; border-radius: 10px;
  border: 1px solid var(--line, #DCE5EE); display: block;
}
.staff-photo-box .staff-photo-empty { font-size: 12px; }

/* ---- a department's own record summary (round 49) ----------------------
   Four windows -- Daily, Weekly, Monthly, Annual -- as four tiles, each a
   link into the full record.  They sit inside the department's own
   dashboard, so the bar reads its own takings without going to accounts. */
.dr-card .card-head { flex-wrap: wrap; gap: 4px; }
.dr-wins {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 4px 0 12px;
}
@media (max-width: 900px) { .dr-wins { grid-template-columns: repeat(2, 1fr); } }
.dr-win {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border: 1px solid var(--line, #DCE5EE); border-radius: 10px;
  background: var(--brand-soft, #F4F9FE); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.dr-win:hover { border-color: var(--primary, #1E6EC5); }
.dr-win-k { font-size: 12px; font-weight: 700; color: var(--muted, #5A6B7F);
            text-transform: uppercase; letter-spacing: .04em; }
.dr-win-v { font-size: 19px; font-weight: 700; color: var(--brand-deep, #0F2A4D); }
.dr-win-n { font-size: 11.5px; color: var(--muted, #5A6B7F); }
.dr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dr-tab {
  padding: 6px 14px; border: 1px solid var(--line, #DCE5EE); border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--brand-deep, #0F2A4D); background: #fff;
}
.dr-tab.on { background: var(--primary, #1E6EC5); border-color: var(--primary, #1E6EC5);
             color: #fff; }

/* ---- the kitchen switcher (round 49) ------------------------------------
   One dashboard, one sidebar entry, as many kitchens behind it as the
   property has.  The switcher moves between them and the selling point, the
   stock records and the post history all follow. */
.k-switch {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 10px 14px; border: 1px solid var(--line, #DCE5EE);
  border-radius: 10px; background: var(--brand-soft, #F4F9FE);
}
.k-switch label { font-size: 12px; font-weight: 700; color: var(--muted, #5A6B7F);
                  text-transform: uppercase; letter-spacing: .04em; }
.k-switch .f-input { max-width: 260px; }

/* ---- the department cards, smaller and coloured all the time ------------
   Round 50: they were white and uniformly blue until pointed at.  They now
   carry their own colour on the tile, the heading and a tinted ground from
   the moment the page loads. */
.feat {
    padding: 15px 15px 14px;
    background: var(--fc-soft, var(--brand-soft));
    border-color: color-mix(in srgb, var(--fc, var(--brand)) 22%, transparent);
}
.feat-ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 10px;
}
.feat h3 { font-size: 13.5px; margin-bottom: 5px; color: var(--fc, var(--brand)); }
.feat p { font-size: 12.5px; line-height: 1.55; }
.feat-grid { gap: 13px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

/* ---- the centralized services card --------------------------------------
   Every service the platform runs, in one card, each in its own colour. */
.svc-card { max-width: 1080px; margin: 22px auto 0; }
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 8px;
}
.svc {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--fc-soft, var(--brand-soft));
    border: 1px solid color-mix(in srgb, var(--fc, var(--brand)) 20%, transparent);
    font-size: 12px;
    font-weight: 600;
    color: var(--fc, var(--brand));
    line-height: 1.3;
}
.svc-ic {
    width: 24px; height: 24px; border-radius: 7px; flex: 0 0 24px;
    display: grid; place-items: center;
    background: var(--fc, var(--brand)); color: #fff;
}
.svc[data-tone="blue"]   { --fc: #1E6EC5; --fc-soft: #E7F2FC; }
.svc[data-tone="teal"]   { --fc: #0E8A9E; --fc-soft: #E0F4F7; }
.svc[data-tone="green"]  { --fc: #1B8F76; --fc-soft: #E4F5EE; }
.svc[data-tone="amber"]  { --fc: #B5791A; --fc-soft: #FDF3E3; }
.svc[data-tone="purple"] { --fc: #6A4CCB; --fc-soft: #EFEBFC; }
.svc[data-tone="red"]    { --fc: #C24A40; --fc-soft: #FBEAE8; }

/* ---- a look inside Quantum-6HMS -----------------------------------------
   Six pictures, each with the function it shows.  The card is the partner
   band's own card -- a solid colour, a picture across the top, white text on
   the colour -- so the two bands read as one page rather than one good band
   and one long one.  The explanation is not printed under the picture: it
   opens over the card when Explore is pressed, and closes by hand. */
.look-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    max-width: 1080px; margin: 0 auto;
}
.look-card {
    position: relative; margin: 0; border-radius: var(--radius);
    overflow: hidden; background: var(--brand-deep);
    box-shadow: 0 10px 26px rgba(15, 42, 77, .16);
    display: flex; flex-direction: column; min-height: 262px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.look-card:hover { transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 42, 77, .24); }
.look-shot { width: 100%; height: 158px; object-fit: cover; display: block; }
.look-body {
    padding: 14px 16px 16px; color: #fff; flex: 1;
    display: flex; flex-direction: column; gap: 5px;
}
.look-body h3 { margin: 0; font-size: 15.5px; letter-spacing: -.15px; color: #fff;
    display: flex; align-items: center; gap: 9px; }
.look-ic { display: inline-flex; opacity: .96; color: #fff; }
.look-ic svg { display: block; }
.look-addr {
    margin: 0; font-size: 12.5px; line-height: 1.5;
    color: rgba(255, 255, 255, .8);
}
.look-open {
    margin-top: auto; align-self: flex-start; border: 1px solid rgba(255, 255, 255, .42); cursor: pointer;
    font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; padding: 6px 12px; border-radius: 99px;
    background: rgba(255, 255, 255, .2); color: #fff;
    transition: background .16s ease;
}
.look-open:hover { background: rgba(255, 255, 255, .34); }
.look-card[data-tone="blue"]   { background: #1E6EC5; }
.look-card[data-tone="teal"]   { background: #0E8A9E; }
.look-card[data-tone="green"]  { background: #1B8F76; }
.look-card[data-tone="amber"]  { background: #B5791A; }
.look-card[data-tone="purple"] { background: #6A4CCB; }
.look-card[data-tone="red"]    { background: #C24A40; }
@media (max-width: 900px) { .look-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .look-grid { grid-template-columns: 1fr; } }

/* the service cards still narrow on a phone, in their own query */
@media (max-width: 620px) {
    .svc-grid { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
}
.look-card .look-addr { color: #ffffff; font-weight: 500; }

/* ---- where a laundry order has got to -----------------------------------
   Four steps, the ones already passed lit, the one it is on marked. */
.dr-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dr-step {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: #EEF3F8; color: #6B7C90; border: 1px solid #DDE6EF;
}
.dr-step.on {
    background: var(--brand-soft, #E7F2FC); color: var(--brand, #1E6EC5);
    border-color: color-mix(in srgb, var(--brand, #1E6EC5) 35%, transparent);
}
.dr-step.on:last-of-type { background: #E4F5EE; color: #1B8F76; border-color: #9FD8C6; }

/* ---- the explore popup (bright white content on opaque dark brand card) -- */
.look-pop {
    position: fixed; inset: 0; z-index: 1200; display: none;
    align-items: center; justify-content: center; padding: 22px;
    background: rgba(8, 20, 36, .74); backdrop-filter: blur(4px);
}
.look-pop[hidden] { display: none !important; }
.look-pop.on { display: flex; }
.look-pop-card {
    position: relative; width: min(620px, 100%); max-height: 86vh; overflow: auto;
    background: #0D243C; color: #ffffff; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-top: 5px solid var(--fc, var(--brand));
    padding: 28px 28px 26px;
    box-shadow: 0 28px 70px rgba(4, 12, 24, .64);
    animation: lookPop .2s ease-out;
}
@keyframes lookPop {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.look-pop-k,
#look-pop-k {
    display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
    font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: #ffffff; background: rgba(30, 110, 197, .48);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.look-pop-card h3,
.look-pop-card h2,
#look-pop-t {
    font-size: 21px; font-weight: 800; letter-spacing: -.018em;
    color: #ffffff; margin: 0 0 11px;
}
.look-pop-card p,
#look-pop-p {
    font-size: 15px; line-height: 1.72; color: #ffffff; margin: 0;
}
.look-pop-x,
#look-pop-x {
    position: absolute; top: 13px; right: 13px; width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, .36); border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #ffffff;
    font-size: 20px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.look-pop-x:hover,
#look-pop-x:hover { background: #ffffff; color: #0D243C; border-color: #ffffff; }
/* ---- our partner hotels -------------------------------------------------
   Pictures, a name and an address, in the loud band style of the
   advertisement section. */
.partner-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 18px; max-width: 1080px; margin: 0 auto;
}
.ph {
    background: #fff; border: 1px solid var(--line-soft); border-radius: 14px;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ph:hover, .ph:focus-within {
    transform: translateY(-4px); border-color: var(--fc, var(--brand));
    box-shadow: 0 14px 30px rgba(15, 42, 77, .14);
}
.ph[data-tone="blue"]   { --fc: #1E6EC5; --fc-soft: #E7F2FC; }
.ph[data-tone="teal"]   { --fc: #0E8A9E; --fc-soft: #E0F4F7; }
.ph[data-tone="green"]  { --fc: #1B8F76; --fc-soft: #E4F5EE; }
.ph[data-tone="amber"]  { --fc: #B5791A; --fc-soft: #FDF3E3; }
.ph[data-tone="purple"] { --fc: #6A4CCB; --fc-soft: #EFEBFC; }
.ph[data-tone="red"]    { --fc: #C24A40; --fc-soft: #FBEAE8; }
.ph-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
           background: #0F1E33; border-bottom: 3px solid var(--fc, var(--brand)); }
.ph-body { padding: 14px 15px 16px; }
.ph-body h3 { font-size: 14.5px; margin-bottom: 5px; }
.ph-addr { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.ph-tag {
    display: inline-block; margin-top: 9px; font-size: 10.5px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: var(--fc);
    background: var(--fc-soft); border-radius: 999px; padding: 3px 9px;
}

/* ---- "Built for global hotels" in one line ------------------------------
   Six cards, one row, no wrapping on a desktop screen. */
.why-row { display: flex; gap: 14px; max-width: 1180px; margin: 0 auto; }
.why-row .feat { flex: 1 1 0; min-width: 0; padding: 14px 13px; }
.why-row .feat h3 { font-size: 12.8px; }
.why-row .feat p { font-size: 11.8px; }
.why-row .feat-ic { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 8px; }
@media (max-width: 900px) {
    .why-row { flex-wrap: wrap; }
    .why-row .feat { flex: 1 1 44%; }
}
@media (max-width: 560px) {
    .why-row .feat { flex: 1 1 100%; }
}

.f-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-grid-2 .field { margin: 0; }
@media (max-width: 620px) { .f-grid-2 { grid-template-columns: 1fr; } }

/* ---- the dashboard customiser ----------------------------------------- */
.dash-lay-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}
.dash-lay-row{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.dash-lay-on{display:inline-flex;align-items:center;gap:7px;font-weight:600;
  font-size:13px;color:var(--ink);cursor:pointer;padding-bottom:9px}
.dash-lay-on input{width:16px;height:16px;accent-color:var(--brand);cursor:pointer}
.dash-lay-pos{width:104px;margin:0}
.dash-lay-key{margin:11px 0 3px;font-size:14px;letter-spacing:-.1px;color:var(--ink)}
.dash-lay-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px}
.dash-lay-two .field{margin:0}
@media (max-width:560px){.dash-lay-two{grid-template-columns:1fr}}

/* ---- the partner hotels band ------------------------------------------ */
.partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ph{position:relative;margin:0;border-radius:var(--radius);overflow:hidden;
  background:var(--brand-deep);box-shadow:0 10px 26px rgba(15,42,77,.16);
  display:flex;flex-direction:column;min-height:262px;
  transition:transform .18s ease,box-shadow .18s ease}
.ph:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(15,42,77,.24)}
.ph-shot{width:100%;height:158px;object-fit:cover;display:block}
.ph-body{padding:14px 16px 16px;color:#fff;flex:1;display:flex;
  flex-direction:column;gap:5px}
.ph-body h3{margin:0;font-size:15.5px;letter-spacing:-.15px;color:#fff}
.ph-addr{margin:0;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.8)}
.ph-tag{margin-top:auto;align-self:flex-start;font-size:10.5px;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;padding:4px 9px;border-radius:99px;
  background:rgba(255,255,255,.15);color:#fff}
.ph[data-tone="blue"]{background:#1E6EC5}
.ph[data-tone="teal"]{background:#0E8A9E}
.ph[data-tone="green"]{background:#1B8F76}
.ph[data-tone="amber"]{background:#B5791A}
.ph[data-tone="purple"]{background:#6A4CCB}
.ph[data-tone="red"]{background:#C24A40}
@media (max-width:900px){.partner-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.partner-grid{grid-template-columns:1fr}}

/* ---- "built for global hotels" on one line ---------------------------- */
.why-row{display:flex;gap:0;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);background:var(--surface)}
.why-row .feat{flex:1 1 0;min-width:0;border:0;border-right:1px solid var(--line);
  border-radius:0;box-shadow:none;background:transparent;padding:18px 14px}
.why-row .feat:last-child{border-right:0}
.why-row .feat:hover{transform:none;box-shadow:none;background:var(--brand-soft)}
.why-row .feat h3{font-size:13px}
.why-row .feat p{font-size:11.5px;line-height:1.45}
@media (max-width:900px){
  .why-row{flex-wrap:wrap}
  .why-row .feat{flex:1 1 40%;border-bottom:1px solid var(--line)}
}
@media (max-width:560px){
  .why-row{flex-direction:column}
  .why-row .feat{flex:1 1 auto;border-right:0}
}

/* ---- the laundry order's own stepper ---------------------------------- */
.dr-steps{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.dr-step{display:inline-flex;align-items:center;gap:6px;font-size:12px;
  font-weight:600;padding:6px 11px;border-radius:99px;background:var(--brand-soft);
  color:var(--brand);border:1px solid transparent}
.dr-step.on{background:var(--brand);color:#fff}
.dr-step svg{flex:none}

/* ---- round 53: the stay times a hotel sets for itself ---------------- */
.stay-preview{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--brand-soft)}
.stay-preview-t{display:flex;flex-direction:column;line-height:1.15}
.stay-preview-t strong{font-size:20px;color:var(--brand-deep);
  font-variant-numeric:tabular-nums;letter-spacing:.2px}
.stay-preview-t small{font-size:11px;color:var(--muted);text-transform:uppercase;
  letter-spacing:.5px}
.stay-preview-a{font-size:18px;color:var(--brand);font-weight:700}

/* the countdown inside the departing-today card */
.dep-count{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;
  border-radius:999px;font-size:12px;font-weight:700;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.dep-count-ok{background:var(--green-soft);color:#1B8F76}
.dep-count-soon{background:var(--amber-soft);color:#B5791A}
.dep-count-due{background:var(--red-soft);color:#C24A40}
.dep-count-due{animation:dep-pulse 1.6s ease-in-out infinite}
@keyframes dep-pulse{0%,100%{opacity:1}50%{opacity:.62}}
@media (prefers-reduced-motion: reduce){
  .dep-count-due{animation:none}
}

/* the check-in / check-out hours, shown where the desk already looks */
.stay-clock{display:flex;gap:10px;flex-wrap:wrap}
.stay-clock-t{flex:1 1 130px;display:flex;align-items:center;gap:10px;
  padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:#fff}
.stay-clock-ic{display:grid;place-items:center;width:34px;height:34px;
  border-radius:9px;background:var(--brand-soft);color:var(--brand);flex:none}
.stay-clock-tx{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.stay-clock-tx strong{font-size:17px;color:var(--brand-deep);
  font-variant-numeric:tabular-nums}
.stay-clock-tx small{font-size:11px;color:var(--muted)}

/* ---- round 53: the analytics window filter ---- */
.an-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;
  padding:0 0 12px;border-bottom:1px solid var(--line-soft);margin-bottom:12px}
.an-filter .field{margin:0;min-width:150px}
.an-filter .field-note{margin:0;font-size:12px;color:var(--muted)}
.an-filter .f-input{min-width:150px}


/* ---- round 53: the header every printed document carries ----------------
   The hotel's name on the left, this product's name on the right, a rule
   under it, and nothing else.  It is hidden on screen -- it exists only for
   the printer -- so the page a person is looking at is unchanged. */
.wrh-print-head { display: none; }
@media print {
    .wrh-print-head {
        display: flex !important;
        align-items: baseline;
        justify-content: space-between;
        gap: 12pt;
        padding: 0 0 6pt;
        margin: 0 0 10pt;
        border-bottom: 1.5pt solid #132C50;
        font-family: "Segoe UI", Arial, sans-serif;
        color: #132C50;
    }
    .wrh-print-head-hotel { font-size: 13pt; font-weight: 800; }
    .wrh-print-head-product {
        font-size: 10.5pt; font-weight: 600; color: #1E6EC5;
        letter-spacing: .3px; text-align: right;
    }
}

/* A consistent accessible show/hide control on every password field. */
.q6-password-wrap { position: relative; display: block; width: 100%; }
.q6-password-wrap > input { padding-right: 48px !important; }
.q6-password-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    padding: 0; border: 0; border-radius: 7px; background: transparent;
    color: #60738A; cursor: pointer;
}
.q6-password-toggle:hover { background: #EEF4FA; color: #183848; }
.q6-password-toggle:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 1px;
}
.q6-password-toggle svg { width: 19px; height: 19px; display: block; }

.co-reconcile{margin:14px 0;padding:14px 16px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:#F7FAFD}
.co-reconcile>strong{display:block;margin-bottom:10px;color:var(--brand-deep)}
.co-reconcile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px}
.co-reconcile-grid>div{display:flex;flex-direction:column;gap:4px;padding:9px 11px;
  border-radius:8px;background:#fff;border:1px solid var(--line-soft)}
.co-reconcile-grid span{font-size:11px;color:var(--muted)}
.co-reconcile-grid b{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.co-dept-details{margin:16px 0}
.co-dept-details>h2{font-size:17px;margin:18px 0 10px;color:var(--brand-deep)}
