/* Turbo Hotel front desk: either direction (logical properties only, never left/right), built for fingers (big targets, no hover tricks). */
:root {
    /* Metronic (Alansar ERP) palette */
    --navy: #181c32;
    --bg: #f5f8fa;
    --card: #ffffff;
    --line: #eff2f5;
    --text: #3f4254;
    --muted: #7e8299;
    --primary: #009ef7;
    --primary-dark: #0095e8;
    --ok: #50cd89;
    --danger: #f1416c;
    --warn: #ffc700;
    --reserved: #009ef7;
    --checked-in: #2563c9;
    --unassigned: #ffc700;
    --clean: #2e9d5b;        /* green: ready for a guest (the client's colours, 2026-11-22) */
    --inspected: #1e7d47;    /* green, darker: inspected and ready */
    --dirty: #8d5a2b;        /* brown: dirty */
    --out-of-order: #c62f2f; /* red: out of order */
    --occupied: #2563c9;     /* blue: a guest is in */
    --radius: .475rem;
    --tap: 44px;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }


button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
h2 { margin: 0 0 .6rem; font-size: 1.5rem; }
h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
p { margin: .25rem 0; }
.muted { color: var(--muted); font-weight: 400; }
.warn { color: var(--warn); }
.empty { padding: 1.4rem; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }

/* ---------------------------------------------------------------- buttons */
.btn {
    min-height: var(--tap);
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: #f5f8fa;
    color: #5e6278;
    font-weight: 500;
    transition: color .2s, background-color .2s;
}
.btn:hover:not(:disabled) { background: #e4e6ef; color: #3f4254; }
.btn:active:not(:disabled) { background: #d9dbe7; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled), .btn.primary:active:not(:disabled) { background: var(--primary-dark); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: #f5f8fa; border-color: transparent; color: #5e6278; }
.btn.big { min-height: 52px; font-size: 1.1rem; min-width: 140px; }
.btn.small { min-height: 34px; padding: 0 .8rem; font-size: .9rem; }
.btn.field { width: 100%; text-align: start; font-weight: 500; background: #fff; border: 1px solid #e4e6ef; }

/* ---------------------------------------------------------------- page actions row (the title lives in the Metronic toolbar) */
.topbar { display: flex; align-items: center; gap: .6rem; padding: 0 0 1rem; flex-wrap: wrap; }
.topbar-title { display: none; }
.topbar:not(:has(> *:not(.topbar-title))) { display: none; }
.property-select { min-height: var(--tap); border-radius: var(--radius); padding: 0 .8rem; border: 1px solid #e4e6ef; background: #fff; }

main { padding: 0; margin: 0; }

/* ---------------------------------------------------------------- home */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.summary div { background: var(--card); border-radius: var(--radius); padding: .9rem; text-align: center; display: flex; flex-direction: column; }
.summary b { font-size: 1.9rem; color: var(--navy); }
.summary span { color: var(--muted); font-size: .9rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.tile {
    min-height: 130px; padding: 1rem; border: 0; border-radius: 18px;
    background: var(--card); box-shadow: 0 2px 0 var(--line);
    display: flex; flex-direction: column; justify-content: center; gap: .3rem; text-align: start;
}
.tile b { font-size: 1.35rem; }
.tile span { color: var(--muted); }
.tile .count { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.tile.accent { background: var(--primary); color: #fff; }
.tile.accent span { color: rgba(255, 255, 255, .85); }
.tile:active { transform: scale(.98); }

/* ---------------------------------------------------------------- toolbar, legend */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.legend { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; margin-bottom: .6rem; }
.tools .legend { margin-bottom: 0; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; margin-inline-start: .6rem; }

.st-reserved { background: var(--reserved); }
.st-checked_in { background: var(--checked-in); }
.st-checked_out { background: #94a3b8; }
.st-cancelled { background: #94a3b8; }
.st-unassigned { background: var(--unassigned); }
.hk-clean { background: var(--clean); color: #fff; }
.hk-inspected { background: var(--inspected); color: #fff; }
.hk-dirty { background: var(--dirty); color: #fff; }
.hk-out_of_order { background: var(--out-of-order); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.chip { min-height: 44px; border: 0; border-radius: 999px; padding: 0 1rem; color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- room rack */
.rack { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.rack-row { display: grid; grid-template-columns: 96px 1fr; min-width: 1010px; border-bottom: 1px solid var(--line); }
.rack-room {
    position: sticky; inset-inline-start: 0; z-index: 3;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: #f8fafc; border-inline-start: 1px solid var(--line); min-height: 58px;
}
.rack-room b { font-size: 1.15rem; }
.rack-room small { opacity: .85; font-size: .75rem; }
.rack-room.hk-dirty, .rack-room.hk-out_of_order, .rack-room.hk-inspected, .rack-room.hk-clean { box-shadow: inset -6px 0 0 currentColor; }
.rack-room.hk-clean { background: #eaf6ef; color: var(--clean); }
.rack-room.hk-inspected { background: #e6f3f7; color: var(--inspected); }
.rack-room.hk-dirty { background: #fcf0e4; color: var(--dirty); }
.rack-room.hk-out_of_order { background: #eceef1; color: var(--out-of-order); }
.rack-room b, .rack-room small { color: var(--text); }

.rack-cells { display: grid; grid-template-columns: repeat(calc(var(--days) * 2), minmax(32px, 1fr)); position: relative; } /* two halves a day */
.rack-head .day { grid-column: span 2; }
.rack-head .rack-cells { position: static; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .35rem 0; border-inline-end: 1px solid var(--line); background: #f8fafc; }
.day small { color: var(--muted); font-size: .72rem; }
.day.weekend { background: #f3eef7; }
.day.today { background: var(--primary); color: #fff; }
.day.today small { color: rgba(255, 255, 255, .85); }
.cell { grid-row: 1; min-height: 58px; border: 0; border-inline-end: 1px solid var(--line); background: transparent; }
.cell.weekend { background: rgba(120, 90, 160, .05); }
.cell.today { background: rgba(29, 111, 214, .07); }
.cell:active { background: rgba(29, 111, 214, .18); }
.bar {
    grid-row: 1; z-index: 2; margin: 7px 3px; min-height: 44px; border: 0; border-radius: 12px; color: #fff;
    font-weight: 600; font-size: .9rem; padding: 0 .6rem; overflow: hidden; text-align: start; box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.bar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- cards and lists */
.card {
    display: flex; align-items: center; gap: .8rem; justify-content: space-between;
    background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .7rem; border: 1px solid var(--line);
}
.card-main { display: flex; align-items: center; gap: 1rem; flex: 1; min-height: var(--tap); cursor: pointer; }
.card-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.card h3 { margin: 0; }
.room-badge {
    min-width: 76px; height: 64px; padding: 0 .6rem; border-radius: 14px; background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
}
.room-badge.none { background: var(--unassigned); font-size: 1rem; }
.pill { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: #e7eef6; color: var(--navy); font-size: .85rem; font-weight: 600; }
.pill.res-active { background: #dff3e7; color: #17653a; }
.pill.res-cancelled { background: #f6e0dd; color: var(--danger); }

.search {
    width: 100%; min-height: var(--tap); padding: 0 1rem; margin-bottom: .8rem;
    border: 1px solid #e4e6ef; border-radius: var(--radius); font-size: 1rem; background: #fff; color: #5e6278;
}
.search:focus, input:focus, select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0, 158, 247, .15); }

/* ---------------------------------------------------------------- housekeeping tiles */
.floor { margin: 1rem 0 .5rem; color: var(--muted); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.room-tile {
    min-height: 96px; border: 0; border-radius: var(--radius); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .1rem; padding: .4rem;
}
.room-tile b { font-size: 1.6rem; }
.room-tile small { opacity: .95; }
.room-tile em { font-style: normal; font-size: .8rem; opacity: .95; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-tile.taken { background: #cbd5e1; color: #64748b; }

/* ---------------------------------------------------------------- wizard */
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li { flex: 1; text-align: center; padding: .6rem .2rem; border-radius: 10px; background: #dde5ee; color: var(--muted); font-weight: 600; }
.steps li.on { background: var(--primary); color: #fff; }
.steps li.done { background: #cfe3f7; color: var(--primary-dark); }
.step { background: var(--card); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.quick { display: flex; gap: .5rem; margin-bottom: .7rem; }
.quick .btn { flex: 1; }
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.cal-head .btn { min-width: 56px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid small { color: var(--muted); padding: .2rem 0; }
.cal-day { min-height: 48px; border: 0; border-radius: 10px; background: #f3f6fa; font-weight: 600; }
.cal-day.off { background: transparent; }
.cal-day.pick { background: var(--primary); color: #fff; }
.cal-day:disabled { opacity: .3; }
/* the booking calendar as a range (tap arrival, then departure) with the free rooms of each type under the day (2026-11-19) */
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 4px 2px; min-height: 58px; }
.cal-day b { font-size: 1rem; }
.cal-day .cal-free { display: flex; flex-direction: column; font-size: .74rem; font-weight: 700; line-height: 1.3; color: #2c3e55; direction: ltr; font-family: ui-monospace, Consolas, monospace; }
.cal-day .cal-free i { font-style: normal; white-space: nowrap; }
.cal-day.inrange { background: #d9e8ff; }
.cal-day.end { background: var(--primary); color: #fff; opacity: .85; }
.cal-day.pick .cal-free, .cal-day.end .cal-free { color: #fff; }
.cal-day.wait { outline: 2px dashed var(--primary); outline-offset: -2px; }
.cal-day.full:not(.pick):not(.end) { background: #fdecec; }
.num-in { width: 4.2rem; text-align: center; font-weight: 700; font-size: 1.05rem; border: 1px solid var(--line, #dde3ea); border-radius: 8px; padding: .3rem; }
.group-head .group-counts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.group-counts label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.group-head .group-counts .num-in { flex: 0 0 auto; width: 7rem; min-height: 40px; }
.period-free { margin-top: .6rem; padding: .55rem .7rem; border-radius: 10px; background: #eef7ee; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.period-free b { direction: ltr; }
.period-free .pf-type + .pf-type::before { content: ' · '; text-decoration: none; display: inline-block; white-space: pre; }
.period-free .pf-type.nofit { color: #98a2b3; text-decoration: line-through; }
.period-free.bad { background: #fdecec; }
.period-free em { color: #b42318; font-style: normal; font-weight: 700; flex-basis: 100%; }
.stepper { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.stepper span { flex: 1; font-weight: 600; }
.stepper b { min-width: 54px; text-align: center; font-size: 1.6rem; }
.stepper .btn { min-width: 64px; font-size: 1.5rem; }
.plans { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.summary-line { margin-top: 1rem; padding: .8rem; background: #f3f6fa; border-radius: var(--radius); }
.wiz-nav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 1rem; }
.wiz-nav .btn.primary { margin-inline-start: auto; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.option {
    min-height: 140px; padding: 1rem; border: 3px solid var(--line); border-radius: 18px; background: #fff;
    display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: start;
}
.option b { font-size: 1.3rem; }
.option .price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.option em { font-style: normal; color: var(--ok); font-weight: 600; }
.option em.bad { color: var(--danger); }
.option.pick { border-color: var(--primary); background: #eaf2fd; }

.tabs { display: flex; gap: .5rem; margin-bottom: .8rem; }
.form label { display: block; margin-bottom: .8rem; font-weight: 600; }
.form input { width: 100%; min-height: 60px; margin-top: .3rem; padding: 0 1rem; border: 2px solid var(--line); border-radius: var(--radius); }
.review { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.review div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.review div:last-child { border-bottom: 0; }
.hint { align-self: center; color: var(--warn); font-weight: 600; font-size: .9rem; }
.balance-box { display: flex; justify-content: space-between; align-items: center; margin: .8rem 0; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.balance-box b { font-size: 1.8rem; }
.balance-box.owe { background: #fcebe8; color: var(--danger); }
.balance-box.zero { background: #e4f4ea; color: #17653a; }
.balance-box.credit { background: #e7eefb; color: var(--primary-dark); }
.folio-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.folio-row .d { color: var(--muted); min-width: 52px; font-size: .9rem; }
.folio-row .t { flex: 1; }
.folio-row.voided .t, .folio-row.voided b { text-decoration: line-through; color: var(--muted); }
.btn.small { min-height: 40px; padding: 0 .8rem; font-size: .9rem; }
.folio-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.empty.small { padding: .7rem; font-size: .95rem; }
.audit-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.audit-box div { background: var(--card); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); }
.audit-box span { color: var(--muted); font-size: .9rem; }
.audit-box b { font-size: 1.25rem; }
.review .total { background: #eaf2fd; font-size: 1.3rem; }
.review span { color: var(--muted); }

.finished { text-align: center; background: var(--card); border-radius: var(--radius); padding: 2rem 1rem; }
.check { width: 90px; height: 90px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 3.4rem; line-height: 90px; }
.big-number { font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.done-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15, 30, 45, .55); display: flex; align-items: flex-end; justify-content: center; }
.overlay.top { z-index: 60; align-items: center; }
.sheet {
    position: relative; width: min(760px, 100%); max-height: 88vh; overflow-y: auto;
    background: #fff; border-radius: 22px 22px 0 0; padding: 1.2rem 1.2rem 1.6rem;
}
.close { position: absolute; top: .6rem; inset-inline-end: .8rem; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #eef2f6; font-size: 1.8rem; line-height: 1; }
.stay-box {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
    padding: .8rem 1rem; margin: .7rem 0; border-radius: var(--radius); border: 1px solid var(--line); border-inline-start: 8px solid;
    background: #fff;
}
.stay-box.st-reserved { border-inline-start-color: var(--reserved); }
.stay-box.st-checked_in { border-inline-start-color: var(--checked-in); }
.stay-box.st-checked_out, .stay-box.st-cancelled { border-inline-start-color: #94a3b8; }
.stay-box { background: #fff !important; }
.stay-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 190px; }
.status-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.status-buttons .btn { border: 0; }

.dialog { width: min(440px, 92vw); background: #fff; border-radius: 22px; padding: 1.4rem; }
.dialog-actions { display: flex; gap: .7rem; margin-top: 1rem; }
.dialog-actions .btn { flex: 1; min-width: 0; }
.kp-value { min-height: 70px; padding: .5rem 1rem; border-radius: var(--radius); background: #f3f6fa; font-size: 2rem; text-align: center; letter-spacing: .12em; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .8rem; direction: ltr; } /* keypads read 1-2-3 from the left everywhere */
.btn.kp { min-height: 72px; font-size: 1.8rem; }

.app-toast {
    position: fixed; z-index: 1100; top: 76px; inset-inline: 1rem; margin: 0 auto; width: fit-content; max-width: 92vw; /* top, so it never covers the buttons at the bottom of a sheet */
    padding: .9rem 1.4rem; border-radius: 14px; color: #fff; background: var(--ok); font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.app-toast.error { background: var(--danger); color: #fff; } /* the general .error below paints text red: red on red */
/* the pages with the fixed header and toolbar: below both (it used to sit behind them, only its shadow showing) */
body.header-fixed .app-toast { top: calc(52px + var(--kt-toolbar-height, 42px) + 12px); }
.busy { position: fixed; top: 64px; inset-inline: 0; z-index: 95; height: 4px; overflow: hidden; background: rgba(29, 111, 214, .2); }
.busy span { display: block; height: 100%; width: 30%; background: var(--primary); animation: slide 1s infinite linear; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(450%); } }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--navy); }
.login-card { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 2rem 1.6rem; }
.login-card h1 { margin: 0; font-size: 2rem; color: var(--navy); }
.login-card label { display: block; margin: 1rem 0 0; font-weight: 600; }
.login-card input { width: 100%; min-height: 60px; margin-top: .3rem; padding: 0 1rem; border: 2px solid var(--line); border-radius: var(--radius); }
.login-card .btn { width: 100%; margin-top: 1.2rem; }
.error { color: var(--danger); font-weight: 600; margin: .8rem 0 0; }

@media (max-width: 760px) {
    html { font-size: 17px; }
    .two-col { grid-template-columns: 1fr; }
    .summary b { font-size: 1.5rem; }
    .card { flex-direction: column; align-items: stretch; }
    .who { display: none; }
    .topbar .btn { min-height: 44px; padding: 0 .7rem; }
}

/* the bar with many buttons (restaurant) wraps instead of pushing the page sideways */
@media (max-width: 1000px) {
    .topbar { flex-wrap: wrap; gap: .4rem; padding: .4rem .6rem; }
    .topbar-title { flex: 1 1 100%; order: -1; }
}

/* ---------------------------------------------------------------- restaurant (POS) */
a.tile { text-decoration: none; color: inherit; }
a.btn.link { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.pos-main { max-width: 1500px; }
.small-note { font-size: .85rem; margin-top: .5rem; }

.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.table-tile {
    min-height: 140px; border-radius: 18px; border: 3px solid var(--line); background: #fff; padding: .6rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
}
.table-tile b { font-size: 1.9rem; }
.table-tile small, .table-tile em { color: var(--muted); font-style: normal; }
.table-tile .amount { font-size: 1.25rem; font-weight: 700; }
.table-tile.free { border-color: #b9e0c9; }
.table-tile.occupied { background: #fdf1e1; border-color: var(--unassigned); }
.table-tile:active { transform: scale(.97); }
.tbl-free { background: #b9e0c9; }
.tbl-busy { background: var(--unassigned); }

.pos-layout { display: grid; grid-template-columns: 1fr 460px; gap: 1rem; align-items: start; }
.menu-panel { min-width: 0; }
.menu-tools { display: flex; gap: .5rem; margin-bottom: .6rem; }
.menu-tools .search { flex: 1; margin: 0; }
.focus-btn { min-width: 52px; }
/* the menu sections, each in its own colour, all in view (they wrap instead of scrolling away) */
.cats { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.cat-btn {
    --cat: #64748b; border: 0; border-radius: 10px; padding: .65rem 1rem; min-height: 46px; font-weight: 700; font-size: 1rem;
    color: #fff; background: var(--cat); opacity: .82; transition: transform .08s, opacity .08s;
}
.cat-btn.cat-all { --cat: #1e1e2d; }
.cat-btn.on { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cat); transform: translateY(-1px); }
.cat-btn:active { transform: scale(.96); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.item-btn {
    min-height: 104px; border: 0; border-radius: var(--radius); background: #fff; border-top: 6px solid var(--cat, #e08a1e); box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .5rem; text-align: center;
}
.item-btn b { font-size: 1.05rem; }
.item-btn span { color: var(--primary); font-weight: 700; }
.item-btn.st-kitchen { --kitchen: #e08a1e; }
.item-btn.st-bar { --kitchen: #1b7f9e; }
.item-btn.st-none { --kitchen: #94a3b8; }
.item-btn:active { transform: scale(.97); background: #eaf2fd; }

.order-panel { position: sticky; top: 76px; background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .7rem; max-height: calc(100vh - 100px); }
.order-panel header h2 { font-size: 1.25rem; margin: 0; }
.lines { overflow-y: auto; min-height: 120px; flex: 1; }
.oline { display: grid; grid-template-columns: 124px 1fr auto auto; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.oline .qty { display: flex; align-items: center; gap: .3rem; justify-content: center; }
.oline .qty b { min-width: 28px; text-align: center; font-size: 1.15rem; }
.oline .qty .btn.small { min-width: 38px; padding: 0; }
.oline .name span { overflow-wrap: anywhere; }
.oline .name { display: flex; flex-direction: column; line-height: 1.25; }
.oline .name small { color: var(--muted); }
.oline .sent-tag { color: var(--ok) !important; font-weight: 600; }
.oline.sent { background: #f4faf6; }
.danger-text { color: var(--danger); }
.totals div { display: flex; justify-content: space-between; padding: .15rem 0; color: var(--muted); }
.totals .grand { color: var(--text); font-size: 1.4rem; font-weight: 700; border-top: 2px solid var(--line); margin-top: .3rem; padding-top: .4rem; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
/* the order's commands, coloured by what they do */
.act { color: #fff !important; border: 0; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.act:disabled { opacity: .45; }
.act-kitchen { background: #f2a900; color: #1e1e2d !important; }
.act-pay { background: #2bb673; }
.act-move { background: #7c3aed; }
.act-table { background: #1e9be8; }
.act-discount { background: #f57c00; }
.act-waiter { background: #5f7d8c; }
.act-print { background: #1e1e2d; }
.item-btn .station-tag { color: #1b7f9e; font-weight: 700; }
/* full screen at the till: the hotel menu, header and toolbar step aside */
body.pos-focus #kt_aside, body.pos-focus .header, body.pos-focus .toolbar, body.pos-focus .footer { display: none !important; }
body.pos-focus .wrapper { padding: 0 !important; }
body.pos-focus .content { padding-top: .6rem !important; }
body.pos-focus .order-panel { top: .6rem; max-height: calc(100vh - 1.2rem); }
.order-actions .btn.danger-text { grid-column: 1 / -1; min-height: 44px; }
.big-stepper { justify-content: center; margin: 1rem 0; }
.big-stepper b { font-size: 2.4rem; min-width: 80px; }
.dialog.wide { width: min(620px, 94vw); max-height: 92vh; overflow-y: auto; }
.room-tile.pick { outline: 4px solid var(--primary); }
.room-tile small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.ticket { background: #fff; border-radius: 18px; border: 3px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.ticket header { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.ticket header .pill { margin-inline-start: auto; white-space: nowrap; }
.ticket header b { font-size: 1.25rem; }
.ticket ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.ticket li { font-size: 1.15rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.ticket .ticket-extras { list-style: none; margin: .2rem 0 0; padding-inline-start: 1.2rem; }
.ticket .ticket-extras li { font-size: 1rem; font-weight: 600; border-bottom: 0; padding: 0; color: var(--navy); }
.ticket footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ticket.tk-new { border-color: var(--reserved); }
.ticket.tk-preparing { border-color: var(--unassigned); background: #fffaf2; }
.ticket.tk-ready { border-color: var(--ok); background: #f1faf4; }
.ticket.late { border-color: var(--danger); }

@media (max-width: 1000px) {
    .pos-layout { grid-template-columns: 1fr; }
    .order-panel { position: static; max-height: none; }
}

/* ---------------------------------------------------------------- inventory */
.inv-main { padding: 0; }
.tools .search { flex: 1; min-width: 220px; }
.tools .search.narrow { flex: 0 0 220px; min-width: 0; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.stock-tile {
    display: flex; flex-direction: column; gap: .2rem; text-align: start; min-height: 110px; padding: .9rem 1rem;
    background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
}
.stock-tile:active { transform: scale(.98); }
.stock-tile .qty-line { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stock-tile.low { border-color: var(--danger); background: #fcebe8; }
.stock-tile.low .qty-line, .stock-tile em { color: var(--danger); font-style: normal; font-weight: 600; }
.receive { display: flex; flex-direction: column; gap: .8rem; }
.rcv-lines { display: flex; flex-direction: column; gap: .5rem; }
.rcv-line { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rcv-line b { flex: 1; }
.cost-list { display: flex; flex-direction: column; gap: .5rem; }
.cost-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cost-row b { flex: 1; min-width: 140px; }
.margin { min-width: 70px; text-align: center; padding: .3rem .6rem; border-radius: 999px; font-weight: 700; color: #fff; background: #94a3b8; }
.margin.good { background: var(--ok); }
.margin.ok { background: var(--warn); }
.margin.bad { background: var(--danger); }
.kp-overlay { z-index: 70; }

/* ---------------------------------------------------------------- menu management */
.item-btn .per-person { display: block; color: var(--primary-dark); font-weight: 600; }
.menu-cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; padding: .8rem 1rem; }
.menu-cat.off { opacity: .6; }
.menu-cat-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.menu-cat-head h3 { flex: 1; margin: 0; }
.catalog-item { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
.catalog-item.off b { text-decoration: line-through; color: var(--muted); }
.catalog-item b { flex: 1; min-width: 150px; }
.tag { padding: .2rem .7rem; border-radius: 999px; background: #eaf2fd; color: var(--primary-dark); font-size: .85rem; font-weight: 600; }
.btn.field.primary { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- companies */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.co-card { display: flex; flex-direction: column; gap: .3rem; text-align: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-height: var(--tap); }
.co-card.off { opacity: .6; }
.co-card:active { transform: scale(.98); }
.co-card .owed { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.co-card .owed.zero { color: var(--muted); font-weight: 400; font-size: 1rem; }
.co-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
.co-line .grow { flex: 1; min-width: 160px; }
.co-line.voided .grow { text-decoration: line-through; color: var(--muted); }
.co-line .out { color: var(--danger); font-weight: 600; }
.co-line .in { color: #17653a; font-weight: 600; }
.co-picks { display: flex; flex-direction: column; gap: .5rem; max-height: 50vh; overflow-y: auto; }
select.search { padding: 0 .8rem; }
.sheet button.field + button.field { margin-top: .5rem; }

/* ---------------------------------------------------------------- reports */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpis div { background: var(--card); border-radius: var(--radius); padding: .9rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.kpis b { font-size: 1.5rem; color: var(--navy); }
.kpis span { color: var(--muted); font-size: .9rem; }
.report-scroll { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: .7rem 1rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th { color: var(--muted); font-weight: 600; background: #f4f7fb; }
.report-table tfoot td { font-weight: 700; background: #eaf2fd; }
.report-table td.late { color: var(--danger); font-weight: 700; }

/* ---------------------------------------------------------------- housekeeping */
.hk-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.hk-chips button { display: flex; align-items: center; gap: .5rem; }
.hk-chips b { font-size: 1.3rem; }
.hk-room { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 112px; padding: .6rem .4rem; border: 0; border-radius: var(--radius); text-align: center; }
.hk-room b { font-size: 1.6rem; }
.hk-room small, .hk-room em { font-style: normal; font-size: .8rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-room.selected { outline: 5px solid var(--primary); outline-offset: 2px; }
.hk-room .note-dot { position: absolute; top: .3rem; inset-inline-start: .4rem; }
.hk-bar { position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--line); padding: .7rem 1rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; z-index: 5; }
.my-room { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; margin-bottom: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); border-inline-start: 10px solid var(--dirty); }
.my-room.done { border-inline-start-color: var(--clean); opacity: .75; }
.my-room b.no { font-size: 2rem; min-width: 90px; }
.my-room .grow { flex: 1; min-width: 160px; }
.sheet a.btn.link, .co-line a.btn.link { color: var(--navy); border: 2px solid var(--line); background: #fff; }

/* ---------------------------------------------------------------- group booking */
.option-wrap { display: flex; flex-direction: column; gap: .4rem; }
.option-wrap .option { width: 100%; flex: 1; }
.opt-bar { display: flex; align-items: center; justify-content: space-between; }
.opt-count { background: var(--primary); color: #fff; padding: .2rem .9rem; border-radius: 999px; font-weight: 700; }
.opt-minus { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; font-size: 1.8rem; line-height: 1; color: var(--primary); }
.opt-minus:disabled { opacity: .35; }
.opt-qty { width: 4.5rem; height: 44px; text-align: center; font-size: 1.15rem; font-weight: 700; border: 2px solid var(--primary); border-radius: 10px; color: var(--primary); }
.rooming-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.rooming-row b { min-width: 110px; }
.rooming-row input { flex: 1; }
.group-tag { background: #fff3cd; color: #7a5b00; }

/* ---------------------------------------------------------------- extra services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin: .8rem 0; }
.svc-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-height: 96px; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; text-align: start; }
.svc-tile b { font-size: 1.05rem; }
.svc-tile span { color: var(--primary); font-weight: 700; }
.svc-tile small { color: var(--muted); }
.svc-tile:active { transform: scale(.98); background: #eaf2fd; }
.report-table tr.clickable { cursor: pointer; } .report-table tr.clickable:active { background: #eaf2fd; }

/* ---------------------------------------------------------------- accounting */
.report-table tr.group-row td { font-weight: 700; background: #f4f7fb; }
.entry-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.entry-row select.search:first-child { flex: 2; min-width: 220px; }
.entry-row .search.narrow { flex: 1; min-width: 110px; }
.kpis b.late { color: var(--danger); }


/* ---------------------------------------------------------------- Metronic frame tweaks */
.aside-logo { justify-content: center; position: relative; }
.aside-logo .wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1.05; color: #fff; font-weight: 800; letter-spacing: .3em; font-size: 1.15rem; text-decoration: none; }
.aside-logo .aside-toggle { position: absolute; inset-inline-end: 1rem; }
[data-kt-aside-minimize=on] .aside-logo .wordmark { display: none; }
[data-kt-aside-minimize=on] .aside-logo .aside-toggle { position: static; }
.aside-menu .menu-link { cursor: pointer; }
.aside-menu .catalog-item .menu-link.active { background-color: rgba(63, 66, 84, .35); color: #fff; }
.drawer-start { inset-inline-start: 0; }

/* the page content sits on white cards, as in the ERP */
#kt_content_container > .app > main, #kt_content_container > .app > .inv-main {
    background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 0 20px 0 rgba(76, 87, 125, .02);
}
.card, .kpis div, .stat, .panel, .report-scroll, .co-line { border: 1px solid #eff2f5; box-shadow: none; background: #fff; border-radius: var(--radius); }
.empty { background: #f9f9f9; box-shadow: none; }

.tabs { flex-wrap: wrap; gap: .25rem; margin-bottom: 1.5rem; border-bottom: 1px solid #eff2f5; }
.tabs .btn { min-height: 46px; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #7e8299; font-weight: 600; }
.tabs .btn:hover { color: var(--primary); background: transparent; }
.tabs .btn.primary { background: transparent; color: var(--primary); border-bottom-color: var(--primary); }

.report-table th { background: #f9f9f9; color: #7e8299; text-transform: none; font-weight: 600; }
.report-table td, .report-table th { border-bottom: 1px dashed #e4e6ef; }
.tag { border-radius: .425rem; background: #f1faff; color: var(--primary); }
.pill { border-radius: .425rem; }

/* dashboard (reception home) */
.home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.home-head h2 { margin: 0; font-size: 1.4rem; color: var(--navy); }
.home-head h2 small { font-size: .9rem; font-weight: 400; margin-inline-start: .6rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.2rem; border-inline-start: 3px solid var(--primary); }
.stat span { color: var(--muted); }
.stat b { font-size: 1.5rem; color: var(--navy); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.2rem; }
.panel { padding: 1rem 1.2rem 1.2rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.panel-head h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.link-btn { border: 0; background: transparent; color: var(--primary); font-weight: 600; min-height: 36px; }
.row-line { display: flex; align-items: center; gap: .8rem; padding: .6rem .3rem; border-top: 1px dashed #e4e6ef; cursor: pointer; min-height: 56px; }
.row-line:first-of-type { border-top: 0; }
.row-line:hover { background: #f9f9f9; }
.row-line .grow { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.room-badge.small { min-width: 44px; width: 44px; height: 44px; font-size: 1rem; border-radius: .475rem; }
.aside .catalog-item, .aside .menu-accordion, .aside .menu-sub { border: 0; }

/* ---------------------------------------------------------------- forms and details are pages, not pop-ups */
.app.has-sheet > main, .app.has-sheet > .inv-main, .app.has-sheet > .topbar { display: none; }
.app > .overlay:not(.top) { position: static; display: block; inset: auto; z-index: auto; background: none; padding: 0; }
.app > .overlay:not(.top) > .sheet {
    position: static; width: 100%; max-height: none; overflow: visible; border-radius: var(--radius); background: #fff;
    padding: 1.5rem; box-shadow: 0 0 20px 0 rgba(76, 87, 125, .02);
}
.sheet .close {
    position: static; width: auto; height: auto; min-height: 40px; padding: 0 1rem; margin-bottom: 1rem; border-radius: var(--radius);
    background: #f5f8fa; color: var(--primary); font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center;
}
.sheet .close:hover { background: #e9f4fe; }
.sheet h2 { margin-top: 0; padding-bottom: .8rem; border-bottom: 1px dashed #e4e6ef; font-size: 1.35rem; color: var(--navy); }
.field-label { display: block; margin: 0 0 1rem; font-weight: 600; color: #5e6278; }
.field-label .search { margin-top: .4rem; margin-bottom: 0; font-weight: 400; }
.sheet .dialog-actions { justify-content: flex-start; flex-wrap: wrap; border-top: 1px dashed #e4e6ef; padding-top: 1rem; }
.sheet .dialog-actions .btn { flex: 0 0 auto; min-width: 140px; }
.rcv-line .search.qty { width: 160px; margin: 0; min-height: 40px; }
.page-h2 { margin: 0 0 1.2rem; font-size: 1.3rem; color: var(--navy); }
td.late, b.late, .late { color: var(--danger); }
.dialog-actions .dialog-actions { display: contents; }
input[inputmode="decimal"] { direction: ltr; text-align: right; }

/* report extras */
.report-table tr.group-row td { background: #f9f9f9; font-weight: 700; }
.report-table tr.total-row td { background: #f1faff; font-weight: 700; }
.databar { height: 10px; background: #eff2f5; border-radius: 5px; overflow: hidden; }
.databar i { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.databar i.neg { background: var(--danger); }
.report-table thead th[colspan] { text-align: center; border-inline-start: 1px dashed #e4e6ef; }
/* the letterhead and footer exist only on paper */
.print-letterhead, .print-footer { display: none; }

@page { size: A4; margin: 12mm 10mm 16mm; @bottom-center { content: "صفحة " counter(page) " من " counter(pages); font-size: 9pt; color: #555; } }
@media print {
    .aside, .header, .toolbar, .footer, .tools, .app-toast, .busy, .drawer-overlay { display: none !important; }
    .wrapper { padding: 0 !important; }
    body { background: #fff; }
    #kt_content_container > .app > main, #kt_content_container > .app > .inv-main { box-shadow: none; padding: 0; }
    .report-scroll { border: 0; overflow: visible; }

    .print-letterhead { display: flex !important; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 3px solid #111; padding-bottom: .5rem; margin-bottom: .8rem; color: #111; }
    .print-letterhead h1 { margin: 0 0 .15rem; font-size: 1.5rem; }
    .print-letterhead h2 { margin: 0 0 .15rem; font-size: 1.2rem; text-align: end; }
    .print-letterhead p { margin: .05rem 0; font-size: .85rem; }
    .print-letterhead-doc { text-align: end; }
    .print-letterhead [hidden] { display: none !important; }
    .print-footer { display: block !important; margin-top: 1rem; text-align: center; font-size: .8rem; color: #444; }
    .page-h2 { display: none !important; }
    /* long tables run over several pages: the heading row repeats, a row is never cut in two */
    .report-table { font-size: 9.5pt; width: 100%; }
    .report-table thead { display: table-header-group; }
    .report-table tfoot { display: table-row-group; }
    .report-table tr { page-break-inside: avoid; }
    .report-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .btn, .search, button, select, input[type="file"] { display: none !important; }
    .overlay, .busy { position: static !important; }
}
.inv-lines .search { margin: 0; min-height: 38px; min-width: 130px; }
.inv-lines .search.qty { min-width: 80px; width: 90px; }
.inv-lines td { vertical-align: middle; }
.tag.late-tag { background: #fff5f8; color: var(--danger); }

/* the menu scrolls inside the sidebar (Metronic's own scroll script is not used), the contact buttons share one row */
.aside { display: flex; flex-direction: column; height: 100vh; }
.aside .aside-logo { flex: 0 0 auto; }
.aside .aside-menu { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.aside .aside-menu > .hover-scroll-overlay-y { flex: 1 1 auto; min-height: 0; margin-top: .5rem !important; margin-bottom: .5rem !important; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6b6b88 transparent; }
.aside .aside-footer { flex: 0 0 auto; display: flex; gap: .5rem; padding-top: .8rem !important; padding-bottom: 1rem !important; }
.aside .aside-footer .btn { flex: 1 1 0; width: auto !important; margin: 0 !important; padding: .55rem .2rem; font-size: 0; }
.aside .aside-footer .btn i { margin: 0 !important; font-size: 1.15rem; }
[data-kt-aside-minimize=on] .aside .aside-footer { flex-direction: column; }

/* ---------------------------------------------------------------- home page cards (like the Alansar ERP home) */
.home-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-bar .page-h2 { margin: 0; }
.home-bar .search { max-width: 320px; margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chips-row .btn { min-height: 38px; padding: 0 .9rem; font-size: .92rem; }
.chips-row .tag { margin-inline-start: .3rem; }
.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 800px) { .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .screen-grid { grid-template-columns: 1fr; } }
.screen-card { display: flex; flex-direction: column; gap: .35rem; }
.screen-art { aspect-ratio: 16 / 9; overflow: hidden; border-radius: .85rem; display: block; color: rgba(255, 255, 255, .92); font-size: 3.4rem; cursor: pointer; box-shadow: 0 6px 16px rgba(20, 30, 50, .12); transition: transform .12s; }
.screen-art:hover { transform: translateY(-2px); }
.screen-card h3 { margin: .4rem 0 0; font-size: 1rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.screen-card .crumb { margin: 0; font-weight: 600; }
.screen-card .info { margin: .2rem 0 0; color: #5e6278; font-size: .92rem; background: #f9f9f9; border-radius: .475rem; padding: .5rem .7rem; }
.screen-actions { display: flex; gap: .45rem; margin-top: .5rem; }
.screen-actions .act { width: 42px; height: 38px; border: 0; border-radius: .475rem; color: #fff; display: grid; place-items: center; cursor: pointer; }
.screen-actions .info-btn { background: #009ef7; }
.screen-actions .heart-btn { background: #cfd3de; }
.screen-actions .heart-btn.on { background: #f1416c; }
.screen-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-icon .svg-icon svg { width: 1.4rem; height: 1.4rem; }
.screen-actions .act i { color: #fff; font-size: 1rem; }
.chips-row .btn i { color: inherit; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0 0 0 .4rem; accent-color: var(--primary); vertical-align: middle; flex: 0 0 20px; }
label.co-line { display: flex; align-items: center; gap: .8rem; }

/* a checkbox with its text on one line (forms) */
label.inline-check { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 12px; }

/* ---------------------------------------------------------------- users, roles and the audit log */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .35rem 1rem; margin-bottom: .6rem; }
.perm-grid label.inline-check { margin-inline-end: 0; align-items: flex-start; }
.perm-list { margin: 0 0 .6rem; padding-inline-start: 1.2rem; }
.users-table .tag { display: inline-block; margin: 0 0 .2rem .3rem; }
.row-actions .btn { margin: .1rem; }
.nowrap { white-space: nowrap; }
.narrow-form { max-width: 460px; }
.audit-diff { width: 100%; border-collapse: collapse; font-size: .85rem; }
.audit-diff td { padding: .2rem .4rem; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.audit-diff td.k { color: var(--muted); white-space: nowrap; }
.audit-diff .old { color: var(--danger); text-decoration: line-through; }
.audit-diff .new { color: #17653a; }
.report-table td.row-actions { white-space: normal; }
.users-table td.row-actions > span { display: flex; flex-wrap: wrap; gap: .25rem; max-width: 230px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.room-tile.picked { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- the notification bell */
.bell-badge { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-panel { position: absolute; top: 44px; inset-inline-end: 0; width: 340px; max-width: 92vw; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); z-index: 1000; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.bell-empty { padding: 1.2rem; text-align: center; color: var(--muted); margin: 0; }
.bell-item { display: flex; flex-direction: column; gap: .15rem; width: 100%; text-align: start; padding: .6rem .9rem; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.bell-item:hover { background: #f4f7fb; }
.bell-item.unread { background: #eef6ff; }
.bell-item.urgent b { color: var(--danger); }
.bell-item span { color: var(--muted); font-size: .85rem; }
.bell-item small { color: var(--muted); }
.bell-foot { display: block; padding: .6rem; text-align: center; font-weight: 600; }
.catalog-box { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; background: #fff; }
.catalog-box textarea.search { width: 100%; height: auto; }
.bell-head .btn-link { padding: 0; background: none; border: 0; color: var(--primary); font-size: .85rem; }

/* screen access: a grid of screens by what may be done on each */
.screen-grid { width: 100%; }
.screen-grid .group-row th { background: var(--soft, #eef3f8); text-align: start; padding: .5rem .6rem; }
.screen-grid th.chk, .screen-grid td.chk { text-align: center; width: 5.5rem; white-space: nowrap; }
.screen-grid tr.changed td { background: #fff7df; }
.screen-grid input[type="checkbox"] { width: 1.1rem; height: 1.1rem; }
.sheet.wide { max-width: 980px; }
.seg { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: .6rem 0; }
.btn.tiny { padding: 0 .35rem; font-size: .75rem; min-height: 0; line-height: 1.4; opacity: .6; }

/* English screens: the Arabic bundle sets Cairo on its own, the left-to-right bundle names Poppins, which is not shipped */
[dir="ltr"] { --bs-font-sans-serif: 'Cairo', Helvetica, Arial, sans-serif; }
[dir="ltr"] body, [dir="ltr"] .btn, [dir="ltr"] input, [dir="ltr"] select, [dir="ltr"] textarea { font-family: var(--bs-font-sans-serif); }

/* ---------------------------------------------------------------- booking site setup */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.site-card { background: var(--card, #fff); border: 1px solid var(--line, #e4e6ef); border-radius: 12px; overflow: hidden; cursor: pointer; }
.site-card.off { opacity: .55; }
.site-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.site-photo { height: 150px; background: #eef1f6 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #7e8299; }
.site-body { padding: .8rem 1rem; }
.site-body p { margin: .2rem 0; }
.photo-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1rem; }
.photo-strip figure { margin: 0; width: 150px; display: flex; flex-direction: column; gap: .3rem; }
.photo-strip img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; }
.photo-add { width: 150px; height: 100px; border: 2px dashed #b5b5c3; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5e6278; }
.pick-chip { min-height: 38px; border: 1px solid #d0d4e0; background: #fff; color: #3f4254; border-radius: 999px; padding: 0 .9rem; }
.pick-chip.on { background: #009ef7; border-color: #009ef7; color: #fff; }
.form.wide { max-width: 820px; }

/* orders guests sent from the QR menu (restaurant screen) and the QR cards (menu screen) */
.menu-waiting { animation: menu-pulse 1.4s ease-in-out infinite; }
@keyframes menu-pulse { 50% { box-shadow: 0 0 0 6px rgba(241, 65, 108, .35); } }
.menu-req { border: 1px solid #e4e6ef; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.qm-thumb { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #f5f8fa; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.5rem; }
.qm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qr-print { display: none; }
@media print {
    body.printing-qr .app > *:not(.qr-print), body.printing-qr #kt_aside, body.printing-qr #kt_header, body.printing-qr #kt_toolbar, body.printing-qr #kt_footer, body.printing-qr .print-letterhead { display: none !important; }
    body.printing-qr .qr-print { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8mm; }
    .qr-card { border: 1px dashed #999; border-radius: 4mm; padding: 5mm; text-align: center; display: flex; flex-direction: column; gap: 2mm; break-inside: avoid; }
    .qr-card b { font-size: 16pt; }
}

/* the financial year of the ERP screens: a past one is shown in amber everywhere, so nobody books into it by mistake */
.work-year.past { background: #fff4de; color: #8a5300; }
.past-year-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff4de; color: #8a5300; border: 1px solid #ffc700; border-radius: 8px; padding: 8px 14px; margin-bottom: 12px; }
.year-chooser { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.year-chooser-box { background: var(--bs-body-bg, #fff); border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; }

/* reports centre */
.rc-group { margin: 18px 0 8px; }
.rc-group h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rc-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #e4e6ef; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rc-card:hover { border-color: #1769c2; box-shadow: 0 2px 8px rgba(23, 105, 194, .12); }
.rc-card b { color: #1769c2; }
.rc-card span { font-size: .85rem; color: #7e8299; }

/* cashier settlement */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.notes-grid label { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 6px; }
.notes-grid label span { font-weight: 700; text-align: end; }
.notes-grid label small { grid-column: 2; color: #7e8299; }
.notes-grid .notes-total { grid-column: 1 / -1; margin: 4px 0 0; font-size: 1.05rem; }
.handover-in { border: 2px solid #ffc700; background: #fff8dd; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.tick-line { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
/* the waiter goes over each name's order with the guests: quantity, swap, note; fits a phone */
.menu-req-person { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-top: 1px dashed #e4e6ef; }
.menu-req-line { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr); gap: 6px; align-items: center; }
.menu-req-line .search { margin: 0; min-width: 0; }
.menu-req-line.dropped { opacity: 0.45; text-decoration: line-through; }
.menu-req-qty { display: flex; align-items: center; gap: 4px; }
.menu-req-qty b { min-width: 1.6em; text-align: center; }
.menu-req-qty .btn { min-width: 36px; min-height: 36px; }
@media (max-width: 560px) { .menu-req-line { grid-template-columns: auto minmax(0, 1fr); } .menu-req-line input.search { grid-column: 1 / -1; } }
/* fixed screen numbers: support asks "which screen number?" */
.screen-no { display: inline-block; min-width: 2.2em; padding: 0 5px; border-radius: 6px; background: #eef3ff; color: #3e6fd8; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 18px; font-variant-numeric: tabular-nums; direction: ltr; }
.menu-link .screen-no { margin-inline-start: auto; opacity: .75; }
.menu-link.active .screen-no { opacity: 1; }
.screen-chip { padding: 2px 8px; border-radius: 999px; background: #eef3ff; color: #3e6fd8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.screen-jump { width: 92px !important; }
@media (max-width: 767.98px) { .screen-jump { display: none; } }
@media print { .screen-jump { display: none; } }

/* ---------------------------------------------------------------- scrollbars that can be seen
   A wide table must show that it has more: the scrollbars are wider and darker everywhere (the theme hid them), and a table that runs
   past the screen gets a thick blue edge on the side that still has columns, with a line under it (see shell.js, markScrollables). */
* { scrollbar-width: auto; scrollbar-color: #7d8799 #e9edf2; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: #e9edf2; border-radius: 8px; }
*::-webkit-scrollbar-thumb { background: #7d8799; border-radius: 8px; border: 2px solid #e9edf2; }
*::-webkit-scrollbar-thumb:hover { background: #4f5968; }
.aside *::-webkit-scrollbar-track { background: transparent; }
.aside *::-webkit-scrollbar-thumb { background: #6b6b88; border-color: transparent; }
.has-more-start { border-inline-start: 5px solid #1769c2 !important; }
.has-more-end { border-inline-end: 5px solid #1769c2 !important; }
.scroll-hint { display: none; margin: -.6rem 0 1rem; font-size: .85rem; font-weight: 600; color: #1769c2; }
.scroll-hint.show { display: block; }
@media print { .scroll-hint { display: none !important; } .has-more-start, .has-more-end { border-inline-width: 0 !important; } }
/* an error message stays until it is clicked: it says so with a close mark */
.app-toast { cursor: pointer; }
.app-toast.error::after { content: "✕"; margin-inline-start: .9rem; opacity: .85; font-weight: 700; }
.form-alert { margin: .7rem 0; padding: .7rem 1rem; border: 1px solid #f6c000; border-radius: 10px; background: #fff8dd; color: #6b5000; font-weight: 600; }
.search.missing { border-color: var(--danger); background: #fff5f8; }
.party-line { display: block; font-size: .8rem; }
.offer-tag { display: block; color: #b42318; font-weight: 700; text-decoration: none; }
/* the hotel's logo at the top of the menu (Alrasheed: 75px high), on a light card so a dark logo shows on the dark menu */
.aside-logo .brand-logo { margin: 6px 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 4px 10px; max-width: 170px; }
.aside-logo .brand-logo img { max-height: 52px; max-width: 150px; object-fit: contain; display: block; }
[data-kt-aside-minimize=on] .aside-logo .brand-logo { display: none; }
.header-logo { height: 30px; max-width: 90px; object-fit: contain; }
.hotel-logo-row { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.hotel-logo-box { width: 160px; height: 90px; border: 1px dashed #c9d2de; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; }
.hotel-logo-box img { max-width: 150px; max-height: 80px; object-fit: contain; }
.hotel-logo-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
/* ---------------------------------------------------------------- select2 (every drop-down list, see select2-auto.js)
   The container takes the <select>'s own classes (search, narrow...) so the layout rules still place it; the box itself looks like a field. */
.select2-container.s2-box { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; display: inline-block; max-width: 100%; vertical-align: middle; }
.field-label .select2-container.s2-box { display: block; }
.s2-box .select2-selection--single { height: auto; min-height: var(--tap); display: flex; align-items: center; border: 1px solid #e4e6ef; border-radius: var(--radius); background: #fff; font-size: 1rem; }
.s2-box .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding-inline: 1rem 2rem; color: #5e6278; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-box .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }
.s2-box.select2-container--focus .select2-selection, .s2-box.select2-container--open .select2-selection { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0, 158, 247, .15); }
.s2-box.select2-container--disabled .select2-selection { background: #f5f8fa; }
.select2-container--open { z-index: 3000; }
.select2-dropdown { border-color: #e4e6ef; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font-size: 1rem; min-width: 12rem; }
.select2-search--dropdown .select2-search__field { min-height: 40px; border-radius: var(--radius); padding: 0 .7rem; }
.select2-results__option { padding: .55rem .9rem; }
.select2-results > .select2-results__options { max-height: 320px; }
@media print { .select2-container { display: none !important; } .select2-hidden-accessible { position: static !important; width: auto !important; height: auto !important; clip: auto !important; } }

.report-table td .select2-container.s2-box, .entry-row .select2-container.s2-box { min-width: 14rem; }
.s2-box .select2-selection:focus { outline: 0; }
/* the select2 boxes must not squeeze the words of a line: a short list (narrow) takes less, a text field in a table keeps room to write */
.report-table td .select2-container.s2-box.narrow { min-width: 9rem; }
.report-table td > input.search:not(.qty):not([type="date"]):not([type="checkbox"]) { min-width: 12rem; }
.vlines td > input.search:not(.qty) { min-width: 18rem; }
.vlines th:nth-child(5), .vlines td:nth-child(5) { width: 32%; }
/* a transfer or issue line asking for more than the store holds */
tr.over-stock td { background: #fff5f5; }
.over-note { display: block; color: var(--danger); font-weight: 700; font-size: .78rem; }

/* ---------------------------------------------------------------- the day at a glance (2026-11-17) */
.day-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.day-tile { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; text-align: start; padding: 1rem 1.2rem; background: var(--card); border: 0; border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(76, 87, 125, .06); border-block-start: 4px solid var(--tile, var(--primary)); cursor: pointer; min-height: 120px; }
div.day-tile { cursor: default; }
.day-tile.t-arr { --tile: var(--primary); }
.day-tile.t-dep { --tile: #f1416c; }
.day-tile.t-in { --tile: var(--ok); }
.day-tile.t-hour { --tile: var(--inspected); }
.dt-label { color: var(--muted); font-weight: 600; }
.day-tile > b { font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.day-tile small { color: var(--muted); }
.day-tile small.bad { color: var(--danger); font-weight: 600; }
.dt-bar { align-self: stretch; inline-size: 100%; display: block; block-size: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dt-bar > i { display: block; block-size: 100%; background: var(--tile, var(--primary)); border-radius: 3px; transition: inline-size .4s; }
.dt-hour { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin-block-start: .2rem; }
.dt-hour span { display: flex; align-items: baseline; gap: .4rem; color: var(--muted); font-size: .9rem; }
.dt-hour b { font-size: 1.3rem; color: var(--navy); }

.vac-panel { margin-bottom: 1.2rem; }
.legend.small { margin: 0; font-size: .8rem; }
.legend i.hk-checked { background: var(--navy); }
.vac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.vac-card { display: flex; flex-direction: column; gap: .5rem; text-align: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfcfd; cursor: pointer; min-height: 160px; }
.vac-card:hover { border-color: var(--primary); }
.vac-top { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.vac-name { font-weight: 700; color: var(--navy); }
.vac-total { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.vac-big { display: flex; align-items: center; gap: .6rem; }
.vac-big b { font-size: 2.2rem; line-height: 1; color: var(--ok); min-inline-size: 2.2rem; }
.vac-big span { display: flex; flex-direction: column; color: var(--text); font-weight: 600; line-height: 1.3; }
.vac-big small { color: var(--muted); font-weight: 400; }
.vac-stack { align-self: stretch; inline-size: 100%; display: flex; block-size: 10px; border-radius: 5px; overflow: hidden; background: var(--line); gap: 2px; }
.vac-stack i { display: block; block-size: 100%; min-inline-size: 0; }
.vac-stack .s-occ { background: var(--navy); }
.vac-stack .s-ready { background: var(--clean); }
.vac-stack .s-dirty { background: var(--dirty); }
.vac-stack .s-ooo { background: var(--out-of-order); }
.vac-chips { display: flex; flex-wrap: wrap; gap: .3rem; min-block-size: 1.4rem; }
.vac-chips span { font-size: .75rem; padding: .1rem .5rem; border-radius: 1rem; background: var(--line); color: var(--text); }
.vac-chips .c-dirty { background: #fff8dd; color: #8a6d00; }
.vac-chips .c-ooo { background: #eff2f5; color: #5e6278; }
.vac-sell { margin-block-start: auto; font-size: .85rem; font-weight: 600; color: var(--primary); }
.vac-sell.none { color: var(--danger); }
.vac-total-line { margin: .8rem 0 0; }
.small { font-size: .85rem; }

.count-pill { background: var(--danger); color: #fff; border-radius: 1rem; padding: 0 .6rem; font-weight: 700; font-size: .85rem; }
.act-line { display: flex; align-items: center; gap: .7rem; padding: .55rem .3rem; border-top: 1px dashed #e4e6ef; cursor: pointer; min-height: 52px; }
.act-line:first-of-type { border-top: 0; }
.act-line:hover { background: #f9f9f9; }
.act-line .grow { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.act-line small { color: var(--muted); }
.act-dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--warn); flex: none; }
.act-line.k-blocked .act-dot, .act-line.k-overdue_departure .act-dot, .act-line.k-passport_expired .act-dot, .act-line.k-visa_expired .act-dot { background: var(--danger); }
.act-line.k-vip .act-dot, .act-line.k-birthday_in_stay .act-dot { background: var(--inspected); }

.tl { display: flex; align-items: flex-end; gap: 3px; block-size: 150px; padding-block-start: 1rem; }
.tl-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; block-size: 100%; position: relative; min-inline-size: 0; }
.tl-col i { display: block; inline-size: 100%; max-inline-size: 22px; background: var(--primary); border-radius: 4px 4px 0 0; min-block-size: 2px; opacity: .85; }
.tl-col.past i { background: #b5d9f5; }
.tl-col em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--navy); }
.tl-col span { font-size: .7rem; color: var(--muted); margin-block-start: .2rem; }
.tl-col.now span { color: #fff; background: var(--danger); border-radius: 3px; padding: 0 .2rem; font-weight: 700; }

/* ---------------------------------------------------------------- guest identity and papers (2026-11-17) */
.g-alerts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.g-alert { padding: .25rem .7rem; border-radius: 1rem; font-size: .85rem; font-weight: 600; background: #fff8dd; color: #8a6d00; }
.g-alert.a-passport_expired, .g-alert.a-visa_expired, .g-alert.a-blocked { background: #fff5f8; color: var(--danger); }
.g-alert.a-vip, .g-alert.a-birthday_in_stay { background: #f8f5ff; color: var(--inspected); }
.id-card { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #f8fbff 0%, #ffffff 60%); overflow: hidden; }
.id-card-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: var(--navy); color: #fff; }
.id-card-head small { opacity: .8; }
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem 1rem; padding: .8rem 1rem; }
.id-grid > div { display: flex; flex-direction: column; padding: .35rem 0; border-block-end: 1px dashed var(--line); }
.id-grid span { color: var(--muted); font-size: .8rem; }
.id-grid b { color: var(--navy); font-weight: 600; }
.id-grid .bad b { color: var(--danger); }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.docs { margin: 1rem 0; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.doc { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.doc-thumb { inline-size: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: #f5f8fa center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); cursor: pointer; }
.doc.add { justify-content: center; border: 2px dashed #cfd6e0; border-radius: var(--radius); padding: .6rem; cursor: pointer; min-block-size: 140px; }
.doc.add:hover { border-color: var(--primary); }
.doc.add select { inline-size: 100%; }
.doc-plus { font-weight: 700; color: var(--primary); }
.link-btn.danger { color: var(--danger); min-height: 28px; font-size: .85rem; }
.form-sub { margin: 1rem 0 .2rem; color: var(--navy); font-size: 1rem; border-block-start: 1px solid var(--line); padding-block-start: .8rem; }
.occ-docs { white-space: nowrap; }
.doc-mini { display: inline-flex; align-items: center; justify-content: center; inline-size: 34px; block-size: 34px; margin-inline-end: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f5f8fa center / cover no-repeat; cursor: pointer; vertical-align: middle; font-weight: 700; color: var(--primary); }
.doc-mini.add { border-style: dashed; }
.bad-text { color: var(--danger); font-weight: 600; }
.eta-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.eta-line .eta { inline-size: 8rem; min-height: 38px; padding: .2rem .5rem; }

/* ---------------------------------------------------------------- the bell desk (2026-11-17) */
.lg-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .lg-grid { grid-template-columns: 1fr; } }
.lg-receive { position: sticky; top: 1rem; }
.lg-lists h3 { margin: 1rem 0 .5rem; color: var(--navy); font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; }
.lg-card { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; margin-bottom: .5rem; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); border-radius: var(--radius); }
.lg-card.store { border-inline-start-color: var(--inspected); }
.lg-card.old { border-inline-start-color: var(--danger); }
.lg-card.moving { border-inline-start-color: var(--warn); }
.lg-card .grow { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-inline-size: 0; }
.lg-card small { color: var(--muted); }
.lg-card.old .lg-meta { color: var(--danger); }
.lg-tag { flex: none; inline-size: 58px; block-size: 58px; border-radius: 8px; background: #fff8dd; border: 2px dashed #c9a400; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.lg-tag small { font-size: .7rem; color: #8a6d00; }
.lg-tag b { font-size: 1.15rem; color: var(--navy); }
.lg-acts { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; max-inline-size: 260px; }

/* ---------------------------------------------------------------- check-in in steps and the queue (2026-11-17) */
.ci-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .8rem 0 1.2rem; }
.ci-steps li { display: flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .5rem; border-radius: 2rem; background: var(--line); cursor: pointer; color: var(--muted); font-weight: 600; }
.ci-steps li i { inline-size: 26px; block-size: 26px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: var(--navy); }
.ci-steps li.on { background: var(--primary); color: #fff; }
.ci-steps li.ok i { background: var(--ok); color: #fff; }
.ci-body h3 { color: var(--navy); }
.ci-room { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-inline-size: 140px; padding: 1rem 1.4rem; border-radius: 12px; border: 3px solid var(--line); margin-bottom: .8rem; }
.ci-room b { font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.ci-room.hk-clean, .ci-room.hk-inspected { border-color: var(--ok); }
.ci-room.hk-dirty { border-color: var(--warn); }
.ci-room.hk-out_of_order, .ci-room.none { border-color: var(--danger); }
.ci-check { list-style: none; padding: 0; }
.ci-check li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; }
.ci-check li i { inline-size: 24px; block-size: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: #fff; background: var(--warn); }
.ci-check li.ok i { background: var(--ok); }
.ok-text { color: var(--ok); font-weight: 700; }
.act-line.k-ready .act-dot, .act-line.k-queue_room_ready .act-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(80, 205, 137, .25); }
.act-line.k-bags_waiting .act-dot { background: var(--primary); }
.it-acts { display: flex; gap: .3rem; flex-wrap: wrap; }
.act-line.k-item-done, .act-line.k-item-cancelled { opacity: .55; }
.act-line.k-item-no_answer .act-dot, .act-line.k-wakeup_no_answer .act-dot { background: var(--danger); }
.act-line.k-wakeup_due .act-dot { background: var(--inspected); }
.tl-wake { font-size: .65rem; color: #fff; background: var(--inspected); border-radius: 50%; min-inline-size: 16px; text-align: center; line-height: 16px; margin-block-end: 2px; }
/* payment terms on a booking; the room's own guest */
.terms-line { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .4rem 0 .8rem; }
.terms-line .search.narrow { inline-size: auto; min-inline-size: 220px; margin: 0; }
.pick-list { display: flex; flex-direction: column; gap: .4rem; margin: .4rem 0 1rem; }
.btn.pick { justify-content: flex-start; text-align: start; gap: .5rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.credit-box { border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .8rem 0; }
.credit-box.on { border-color: var(--ok); }
.room-tile.off { opacity: .45; cursor: not-allowed; }
.tl-dep { font-size: .65rem; color: #fff; background: var(--warn); border-radius: 50%; min-inline-size: 16px; text-align: center; line-height: 16px; margin-block-end: 2px; }
.mail-line { display: inline-flex; gap: .4rem; align-items: center; }

/* ---------------------------------------------------------------- front office dashboard, dense like OPERA's workspace (Ahmed 2026-11-19):
   one strip of numbers, tables instead of cards, the guest lists in tabs, everything on one screen without scrolling */
.fo-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 0; margin-bottom: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fo-kpi { display: flex; flex-direction: column; gap: .15rem; align-items: stretch; text-align: start; padding: .55rem .8rem; background: transparent; border: 0; border-inline-start: 1px solid var(--line); min-width: 0; position: relative; }
.fo-kpi:first-child { border-inline-start: 0; }
button.fo-kpi { cursor: pointer; }
button.fo-kpi:hover { background: #f9fafb; }
.fo-kpi::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: var(--tile, transparent); }
.fo-kpi > span { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-kpi > b { font-size: 1.35rem; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.fo-kpi > small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-kpi > small.bad { color: var(--danger); font-weight: 700; }
.fo-kpi .dt-bar { block-size: 4px; }
.fo-kpi.k-arr { --tile: var(--primary); }
.fo-kpi.k-dep { --tile: #f1416c; }
.fo-kpi.k-in { --tile: var(--navy); }
.fo-kpi.k-occ { --tile: var(--ok); }
.fo-kpi.k-ready { --tile: var(--clean); }
.fo-kpi.k-ready > b { color: #1f9d5c; }
.fo-kpi.k-dirty { --tile: var(--dirty); }
.fo-kpi.k-ooo { --tile: var(--out-of-order); }
.fo-kpi.k-sell { --tile: var(--primary); }
.fo-kpi.k-sell > b { color: var(--primary); }
.fo-kpi.k-hour { --tile: var(--inspected); }
.fo-hour { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem; }
.fo-hour em { font-style: normal; display: flex; align-items: baseline; gap: .3rem; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; }
.fo-hour b { font-size: .95rem; color: var(--navy); }

.fo-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: .9rem; align-items: start; }
.fo-main, .fo-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.fo-panel { padding: .7rem .9rem .8rem; }
.fo-panel .panel-head { margin-bottom: .35rem; gap: .6rem; }
.fo-panel .panel-head h3 { font-size: 1rem; }
.fo-panel .legend { margin-bottom: 0; font-size: .78rem; }
.fo-panel .legend i { width: 11px; height: 11px; border-radius: 3px; }
.fo-panel .empty { padding: .8rem; font-size: .9rem; }

.fo-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fo-table th { position: sticky; top: 0; z-index: 1; background: #f9fafb; color: var(--muted); font-weight: 600; font-size: .76rem; text-align: start; padding: .4rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fo-table td { padding: .32rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); white-space: nowrap; }
.fo-table td b { color: var(--navy); font-weight: 600; }
.fo-table .n { text-align: center; font-variant-numeric: tabular-nums; }
.fo-table td.strong { font-weight: 700; color: var(--navy); }
.fo-table td.ok { color: #1f9d5c; font-weight: 700; }
.fo-table td.warn { color: #b88a00; font-weight: 700; }
.fo-table td.zero { color: #c4c7d4; }
.fo-table td.sell { color: var(--primary); font-weight: 700; }
.fo-table td.bad { color: var(--danger); font-weight: 600; font-size: .78rem; }
.fo-table tr.click { cursor: pointer; }
.fo-table tr.click:hover td { background: #f5f9ff; }
.fo-table tfoot td { font-weight: 700; color: var(--navy); background: #f9fafb; border-bottom: 0; }
.fo-table .bar-col { width: 22%; min-width: 90px; }
.fo-table .bar-col .vac-stack { block-size: 8px; }
.fo-table .room-col { width: 1%; }

.fo-room { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 42px; padding: .1rem .35rem; border-radius: .35rem; background: #eef3ff; color: var(--navy); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; box-shadow: inset 3px 0 0 var(--hk, transparent); }
[dir="rtl"] .fo-room { box-shadow: inset -3px 0 0 var(--hk, transparent); }
.fo-room.none { background: #fff8dd; color: #8a6d00; }
.fo-room.hk-clean { background: #eaf6ef; color: var(--navy); --hk: var(--clean); }
.fo-room.hk-inspected { background: #f1ebfd; color: var(--navy); --hk: var(--inspected); }
.fo-room.hk-dirty { background: #fff8dd; color: var(--navy); --hk: var(--dirty); }
.fo-room.hk-out_of_order { background: #eceef1; color: var(--navy); --hk: var(--out-of-order); }

.fo-st { display: inline-block; padding: .05rem .5rem; border-radius: 1rem; font-size: .75rem; font-weight: 600; background: #eef3ff; color: var(--primary-dark); }
.fo-st.st-checked_in { background: #e8fff3; color: #17653a; }
.fo-st.st-checked_out { background: #f1f1f4; color: var(--muted); }
.fo-st.st-no_show, .fo-st.st-cancelled, .fo-st.owes { background: #fff5f8; color: var(--danger); }

.fo-tabs { justify-content: flex-start; border-bottom: 1px solid var(--line); margin: -.2rem -.9rem .4rem; padding: 0 .9rem; }
.fo-tabs > button:not(.link-btn) { border: 0; background: transparent; padding: .45rem .2rem; margin-inline-end: .9rem; color: var(--muted); font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fo-tabs > button.on { color: var(--navy); border-bottom-color: var(--primary); }
.fo-tabs em { font-style: normal; display: inline-block; min-width: 1.4rem; padding: 0 .35rem; margin-inline-start: .25rem; border-radius: 1rem; background: var(--line); color: var(--text); font-size: .75rem; text-align: center; }
.fo-tabs > button.on em { background: var(--primary); color: #fff; }
.fo-tabs .spacer { flex: 1; }
.fo-tabs .link-btn { min-height: 30px; font-size: .85rem; }
.fo-scroll { max-height: 340px; overflow-y: auto; }
.fo-side .fo-scroll { max-height: 290px; }

.fo-side .act-line { min-height: 0; padding: .35rem .2rem; gap: .5rem; font-size: .88rem; }
.fo-side .act-line small { font-size: .76rem; }
.fo-side .act-line .act-dot { inline-size: 8px; block-size: 8px; }
.fo-side .tl { block-size: 82px; padding-block-start: .4rem; gap: 2px; }
.fo-side .tl-col em, .fo-side .tl-col b { font-size: .65rem; }
.fo-side .tl-col span { font-size: .62rem; }
.fo-side .it-acts .btn.small { min-height: 28px; font-size: .78rem; padding: 0 .5rem; }

/* a smaller screen: two rows of five; occupancy with ready under it, the last hour at the end over both rows (Ahmed 2026-11-19) */
@media (max-width: 1280px) {
    .fo-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row dense; }
    .fo-kpi.k-arr { grid-area: 1 / 1; }
    .fo-kpi.k-dep { grid-area: 1 / 2; }
    .fo-kpi.k-in { grid-area: 1 / 3; }
    .fo-kpi.k-occ { grid-area: 1 / 4; }
    .fo-kpi.k-hour { grid-area: 1 / 5 / 3 / 6; justify-content: center; }
    .fo-kpi.k-dirty { grid-area: 2 / 1; border-inline-start: 0; }
    .fo-kpi.k-ooo { grid-area: 2 / 2; }
    .fo-kpi.k-sell { grid-area: 2 / 3; }
    .fo-kpi.k-ready { grid-area: 2 / 4; }
    .fo-kpi.k-dirty, .fo-kpi.k-ooo, .fo-kpi.k-sell, .fo-kpi.k-ready { border-top: 1px solid var(--line); }
    .fo-kpi.k-hour .fo-hour { grid-template-columns: 1fr; gap: .15rem; }
}
@media (max-width: 1100px) { .fo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .fo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fo-kpis .fo-kpi { grid-area: auto; }
    .fo-kpi.k-hour .fo-hour { grid-template-columns: 1fr 1fr; }
    .fo-kpi { border-inline-start: 0; border-top: 1px solid var(--line); }
    .fo-kpi:nth-child(even) { border-inline-start: 1px solid var(--line); }
    .fo-kpi:nth-child(-n+2) { border-top: 0; }
    .fo-kpi.k-hour { grid-column: 1 / -1; }
    .fo-table .bar-col { display: none; }
    .fo-scroll, .fo-panel { overflow-x: auto; }
}

/* ---------------------------------------------------------------- home: the commands as small cards, many on one screen (Ahmed 2026-11-19: the big pictures hid the commands) */
div.screen-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
div.screen-grid .screen-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "art title acts" "art crumb acts" "info info info"; align-items: center; gap: .1rem .7rem; padding: .55rem .65rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
div.screen-grid .screen-card:hover { border-color: #c9e7fb; box-shadow: 0 4px 12px rgba(20, 30, 50, .06); }
div.screen-grid .screen-art { grid-area: art; inline-size: 52px; block-size: 52px; aspect-ratio: auto; border-radius: .6rem; box-shadow: none; }
div.screen-grid .screen-art:hover { transform: none; }
div.screen-grid .screen-card h3 { grid-area: title; align-self: end; margin: 0; font-size: .95rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
div.screen-grid .screen-card .crumb { grid-area: crumb; align-self: start; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
div.screen-grid .screen-card .info { grid-area: info; margin-top: .4rem; font-size: .85rem; }
div.screen-grid .screen-actions { grid-area: acts; flex-direction: column; gap: .25rem; margin: 0; }
div.screen-grid .screen-actions .act { inline-size: 28px; block-size: 24px; border-radius: .35rem; }
div.screen-grid .screen-actions .act i { font-size: .72rem; }
div.screen-grid .screen-actions .info-btn { background: #eef6ff; }
div.screen-grid .screen-actions .info-btn i { color: var(--primary); }
div.screen-grid .screen-actions .heart-btn { background: #f5f8fa; }
div.screen-grid .screen-actions .heart-btn i { color: #b5b9c8; }
div.screen-grid .screen-actions .heart-btn.on { background: #fff5f8; }
div.screen-grid .screen-actions .heart-btn.on i { color: #f1416c; }
@media (max-width: 480px) { div.screen-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- a slimmer top: the header and the title bar take less of the screen (Ahmed 2026-11-19) */
body#kt_body { --kt-toolbar-height: 42px !important; --kt-toolbar-height-tablet-and-mobile: 42px !important; }
@media (min-width: 992px) {
    body.header-fixed .header { height: 52px; }
    body.header-fixed.toolbar-fixed .toolbar { top: 52px; }
    body.header-fixed.toolbar-fixed .wrapper { padding-top: calc(52px + var(--kt-toolbar-height)); }
    body.header-fixed .busy { top: 51px; }
}
#kt_header .btn { min-height: 32px; height: 32px; padding: 0 .7rem; font-size: .85rem; line-height: 30px; white-space: nowrap; word-spacing: .15em; }
#kt_header .btn.btn-icon { width: 32px; padding: 0; justify-content: center; }
#kt_header .btn.btn-icon i { font-size: 1rem !important; }
#kt_header .symbol-35px .symbol-label { width: 30px; height: 30px; }
#kt_header .symbol-35px { margin-inline-end: .5rem !important; }
#kt_header .fw-bolder.fs-5 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22vw; font-size: 1rem !important; }
#kt_header .fw-bold.text-gray-800 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12vw; }
#kt_header .gap-3 { gap: .5rem !important; }
#kt_header .screen-jump { height: 30px; min-height: 30px; }
#kt_toolbar .page-title { margin-bottom: 0 !important; min-width: 0; }
#kt_toolbar .page-title h1 { font-size: 1.1rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kt_toolbar .btn { min-height: 30px; height: 30px; padding: 0 .7rem; font-size: .82rem; line-height: 28px; white-space: nowrap; }
#kt_content { padding-top: 12px; }
#kt_content_container > .app > main, #kt_content_container > .app > .inv-main { padding: 1rem 1.2rem; }
.home-head { margin-bottom: .7rem; }
.home-head h2 { font-size: 1.2rem; }
.home-head .btn { min-height: 36px; }

/* a group booking's name next to the guest in the dashboard lists */
.fo-table .fo-gtag { margin-inline-start: .4rem; font-size: .7rem; padding: .05rem .4rem; }

/* ---------------------------------------------------------------- new booking, step 2: the period at a glance (2026-11-19) */
.period-panel { margin-bottom: 1rem; }
.period-scroll { max-height: none; overflow-x: auto; }
.period-table th.night { min-width: 74px; line-height: 1.2; }
.period-table th.night span { display: block; font-weight: 500; font-size: .7rem; }
.period-table th.night b { color: var(--navy); font-size: .78rem; }
.period-table th.wkend { background: #fff8ec; }
.period-table td.night { line-height: 1.15; }
.period-table td.night b { display: block; font-size: 1rem; color: #1f9d5c; }
.period-table td.night small { color: var(--muted); font-size: .7rem; }
.period-table td.night.low b { color: #b88a00; }
.period-table td.night.low { background: #fffbea; }
.period-table td.night.none b { color: var(--danger); }
.period-table td.night.none { background: #fff5f8; }
.period-table td.ok { color: #1f9d5c; }
.period-table .type-cell { white-space: normal; min-width: 190px; }
.period-table .type-cell b { display: block; }
.period-table .type-cell small { display: block; font-size: .74rem; }
.period-table .amen { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; }
.period-table .amen em { font-style: normal; font-size: .66rem; padding: 0 .35rem; border-radius: 1rem; background: #f1f3f8; color: var(--text); }
.period-table .plan-col { min-width: 96px; }
.period-table td.plan-col.on { background: #eef6ff; font-weight: 700; color: var(--navy); }
.plan-pick { border: 1px solid #e4e6ef; background: #fff; border-radius: 1rem; padding: .1rem .55rem; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.plan-pick.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.period-note { margin: .5rem 0 0; font-weight: 600; color: var(--navy); }
.period-table .qty-in { width: 64px; min-height: 30px; padding: 0 .3rem; text-align: center; border: 1px solid #e4e6ef; border-radius: .4rem; font-weight: 700; }
.period-table .qty-in:disabled { background: #f5f8fa; color: #c4c7d4; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid #ffe08a; border-radius: var(--radius); background: #fffbea; }
.group-head b { font-size: 1.05rem; color: var(--navy); }
.group-head .search { flex: 1 1 260px; margin: 0; min-height: 40px; }
.group-head small { flex-basis: 100%; }
.price-terms { margin: .4rem 0; padding: .45rem .7rem; border-radius: var(--radius); background: #e8fff3; color: #17653a; font-weight: 600; font-size: .88rem; }
.price-terms.net { background: #fff8dd; color: #7a5b00; }
.wiz-deposit { margin: .8rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfd; }
.wiz-deposit h3 { margin: 0 0 .4rem; font-size: 1rem; }
.wiz-deposit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.wiz-deposit-row .field-label { margin: 0; }
.tag.tax-off { background: #fff5f8; color: var(--danger); }

/* a group's company step (2026-11-19) */
.group-co h3 { margin-top: 1rem; }
.co-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 2px solid var(--primary); border-radius: var(--radius); background: #f2f8ff; }
.co-chosen > div { display: flex; flex-direction: column; gap: 3px; }
.co-chosen b { font-size: 1.1rem; }
.co-chosen small.ok { color: #067647; font-weight: 600; }
.co-chosen small.warn { color: #b54708; font-weight: 600; }
.co-new { margin-top: .75rem; padding: .8rem; border: 1px dashed #c8d3e0; border-radius: var(--radius); }
.co-files { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-direction: column; gap: 4px; }
.co-files li { display: flex; justify-content: space-between; align-items: center; background: #f3f6fa; padding: .3rem .6rem; border-radius: 8px; }
.books-note { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radius); background: #f6f7fb; border-inline-start: 4px solid var(--primary); }
.books-note p { margin: .35rem 0 0; font-size: .9rem; line-height: 1.6; }

/* ---- the bookings workspace and the booking screen (OPERA course, phase 1, 2026-11-20) ---- */
.bw-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: .7rem; }
.bw-tab { background: none; border: 0; padding: .55rem 1rem; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.bw-tab.on { color: var(--navy); border-bottom-color: var(--primary); }
.bw-searches, .bk-toggle { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.bw-chip { border: 1px solid #d8dee8; background: var(--card); border-radius: 999px; padding: .28rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--navy); }
.bw-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bw-filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .5rem; }
.bw-filters .search { flex: 1 1 260px; min-width: 0; }
.bw-filters .search.narrow { flex: 0 1 170px; }
.bw-inline { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.bw-count { margin-inline-start: auto; color: var(--muted); font-size: .85rem; }
.bw-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .45rem .7rem; margin-bottom: .5rem; background: #fff8dd; border: 1px solid #f1e2a6; border-radius: var(--radius); }
.bw-table tr.picked td { background: #eef6ff; }
.bw-table td.num, .bk-grid td.num { text-align: end; font-variant-numeric: tabular-nums; }
.bw-vip { color: #d4a106; margin-inline-end: .25rem; }
.bw-guest b { font-weight: 600; }
.pill.res-hold { background: #fff1d6; color: #8a5a00; }
.bw-menu-cell { position: relative; }
.bw-menu { position: absolute; inset-inline-end: 0; top: 100%; z-index: 30; display: flex; gap: 1rem; padding: .8rem 1rem; background: var(--card); border: 1px solid #d8dee8; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(24, 28, 50, .15); white-space: normal; }
.bw-menu-col { min-width: 150px; display: flex; flex-direction: column; gap: .1rem; }
.bw-menu-col h4 { margin: 0 0 .3rem; font-size: .76rem; color: var(--muted); text-transform: none; }
.bw-menu-item { background: none; border: 0; padding: .28rem .2rem; text-align: start; font: inherit; font-size: .88rem; color: var(--primary-dark); cursor: pointer; border-radius: 6px; }
.bw-menu-item:hover { background: #eef6ff; }
.bw-menu-inline { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.bw-pages { display: flex; gap: .6rem; align-items: center; justify-content: center; margin: .7rem 0; color: var(--muted); }
.bw-counts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .7rem 0; font-size: .88rem; }
.bw-counts .dim { color: var(--muted); }
.bw-counts .warn { color: var(--danger); font-weight: 600; }
.bk-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .8rem; }
.bk-panel h3 { margin: 0 0 .55rem; font-size: 1rem; color: var(--navy); }
.bk-panel h4 { margin: .8rem 0 .4rem; font-size: .9rem; }
.bk-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }
.bk-row .field-label { flex: 0 1 180px; }
.bk-check { padding-bottom: .55rem; }
.bk-company { flex: 1 1 320px !important; position: relative; }
.bk-search { margin-inline-start: auto; }
.bk-hits { position: absolute; z-index: 20; inset-inline: 0; top: 100%; background: var(--card); border: 1px solid #d8dee8; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24, 28, 50, .12); max-height: 260px; overflow: auto; }
.bk-form, .bk-form > div { position: relative; }
.bk-hit { display: block; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .45rem .7rem; text-align: start; font: inherit; cursor: pointer; }
.bk-hit:hover { background: #eef6ff; }
.bk-chosen { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; background: #f3f8ff; border-radius: 8px; margin-bottom: .5rem; }
.bk-messages { margin-bottom: .8rem; padding: .6rem .9rem; border-radius: var(--radius); background: #fff8dd; border-inline-start: 4px solid #e0b000; }
.bk-messages ul { margin: .3rem 0 0; padding-inline-start: 1.2rem; }
.bk-gridhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.bk-hint { margin: 0 0 .4rem; font-size: .82rem; }
.bk-grid th { text-align: center; }
.bk-cell { text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.bk-cell:hover { background: #eef6ff; }
.bk-cell.on { background: var(--primary) !important; color: #fff; font-weight: 600; }
.bk-cell.off { color: var(--muted); }
.bk-cell.off small { font-size: .74rem; }
.bk-grid tr.bk-full td:first-child, .bk-grid tr.bk-nofit td:first-child { opacity: .65; }
.bk-typemsg { font-size: .76rem; color: #8a5a00; white-space: normal; }
.bk-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .8rem; }
.bk-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; font-size: .9rem; }
.bk-dl dt { color: var(--muted); }
.bk-dl dd { margin: 0; }
.bk-night { display: inline-block; margin-inline-end: .6rem; font-size: .82rem; }
.bk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.bk-done { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem 1rem; margin-bottom: .8rem; border-radius: var(--radius); background: #dff3e7; color: #17653a; }
.bk-note { padding: .5rem .7rem; background: #f6f7fb; border-radius: 8px; }
.stepper { display: inline-flex; align-items: center; gap: .25rem; }
.stepper .num-in { width: 4.2rem; text-align: center; }
@media (max-width: 900px) {
    .bk-columns { grid-template-columns: 1fr; }
    .bw-menu { position: fixed; inset-inline: 8px; top: auto; bottom: 8px; flex-wrap: wrap; max-height: 70vh; overflow: auto; }
}
.bw-wrap { white-space: normal; }
.stepper .btn.small { min-width: 2.2rem; padding: .3rem .45rem; }
.bk-row .field-label { flex: 0 1 auto; }
.bk-row .field-label input[type=date] { min-width: 150px; }
.bw-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; margin: .6rem 0 .9rem; max-height: 300px; overflow: auto; }
.bw-room { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .3rem; border: 1px solid #d8dee8; border-radius: 8px; background: var(--card); font: inherit; cursor: pointer; }
.bw-room b { font-size: 1.05rem; }
.bw-room small { font-size: .72rem; color: var(--muted); }
.bw-room.on { border-color: var(--primary); background: #eef6ff; box-shadow: 0 0 0 2px var(--primary) inset; }

/* ---- the booking screen, second look (Ahmed 2026-11-20: show the free rooms and the answer, and look better than OPERA) ---- */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.bk-main { min-width: 0; }
.bk-side { position: sticky; top: .8rem; display: flex; flex-direction: column; gap: .8rem; }
.bk-side .bk-panel { margin: 0; }
.bk-side .search { width: 100%; margin-bottom: .45rem; }
.bk-hero { background: linear-gradient(135deg, #1b2a4a 0%, #23406e 55%, #2b5c94 100%); color: #fff; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .9rem; box-shadow: 0 10px 30px rgba(27, 42, 74, .25); }
.bk-hero-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; }
.bk-hero-row + .bk-hero-row { margin-top: .8rem; }
.bk-field { display: flex; flex-direction: column; gap: .2rem; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .5rem .7rem; min-width: 165px; }
.bk-field span { font-size: .75rem; opacity: .8; }
.bk-field input { background: #fff; border: 0; border-radius: 7px; padding: .35rem .5rem; font: inherit; color: var(--navy); }
.bk-field small { font-size: .74rem; opacity: .85; }
.bk-nights { display: flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: .3rem .5rem; }
.bk-nights div { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.bk-nights b { font-size: 1.6rem; line-height: 1; }
.bk-nights small { font-size: .72rem; opacity: .85; }
.bk-nights button, .bk-count button { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1.1rem; cursor: pointer; }
.bk-nights button:hover, .bk-count button:hover { background: rgba(255, 255, 255, .35); }
.bk-party { display: flex; gap: .5rem; margin-inline-start: auto; flex-wrap: wrap; }
.bk-count { display: flex; flex-direction: column; align-items: center; gap: .2rem; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .35rem .55rem; }
.bk-count small { font-size: .74rem; opacity: .85; }
.bk-count > div { display: flex; align-items: center; gap: .25rem; }
.bk-count input { width: 3rem; text-align: center; border: 0; border-radius: 6px; padding: .25rem; font: inherit; font-weight: 700; color: var(--navy); background: #fff; }
.bk-hero .bk-company { flex: 1 1 320px; position: relative; }
.bk-hero .bk-company .search { width: 100%; height: 100%; min-height: 44px; border: 0; }
.bk-hero .bk-chosen { background: rgba(255, 255, 255, .95); color: var(--navy); margin: 0; min-height: 44px; }
.bk-calwrap { padding-bottom: .5rem; }
.bk-calnav { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.bk-cal { border-collapse: separate; border-spacing: 3px; width: 100%; font-variant-numeric: tabular-nums; }
.bk-cal th, .bk-cal td { text-align: center; padding: .3rem .2rem; border-radius: 7px; min-width: 2.6rem; }
.bk-cal thead th { cursor: pointer; color: var(--muted); font-weight: 500; }
.bk-cal thead th small { display: block; font-size: .64rem; }
.bk-cal thead th b { font-size: .95rem; color: var(--navy); }
.bk-cal thead th.weekend b { color: #b25b00; }
.bk-cal tbody th { text-align: start; font-size: .82rem; color: var(--navy); padding-inline-end: .5rem; }
.bk-cal td { cursor: pointer; font-weight: 600; font-size: .85rem; }
.bk-cal td.many { background: #e3f6ea; color: #17653a; }
.bk-cal td.few { background: #fff1d6; color: #8a5a00; }
.bk-cal td.none { background: #fde4e4; color: #b42318; }
.bk-cal td.past, .bk-cal th.past { opacity: .35; cursor: default; }
.bk-cal .stay { box-shadow: inset 0 0 0 2px var(--primary); }
.bk-cal thead th.stay { background: var(--primary); color: #fff; }
.bk-cal thead th.stay b, .bk-cal thead th.stay small { color: #fff; }
.bk-cal-total td, .bk-cal-total th { background: #f3f5f9; color: var(--navy); font-size: .8rem; }
.bk-verdict { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-radius: 12px; margin-bottom: .8rem; border: 1px solid; }
.bk-verdict.ok { background: #effaf3; border-color: #bfe8cd; }
.bk-verdict.no { background: #fff4f2; border-color: #f6c9c1; }
.bk-verdict-main { display: flex; gap: .7rem; align-items: center; }
.bk-verdict-main b { display: block; color: var(--navy); }
.bk-verdict-main small { color: var(--muted); }
.bk-verdict-icon { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: 0 0 auto; }
.bk-verdict.ok .bk-verdict-icon { background: #1f9d55; }
.bk-verdict.no .bk-verdict-icon { background: #d92d20; }
.bk-verdict-types { display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-free { border-radius: 999px; padding: .2rem .65rem; font-size: .85rem; }
.bk-free.many { background: #dff3e7; color: #17653a; }
.bk-free.few { background: #fff1d6; color: #8a5a00; }
.bk-free.none { background: #fde4e4; color: #b42318; }
.bk-showbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .7rem; font-size: .85rem; }
.bk-type { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(24, 28, 50, .05); transition: box-shadow .15s; }
.bk-type:hover { box-shadow: 0 6px 18px rgba(24, 28, 50, .09); }
.bk-type.dim { opacity: .62; }
.bk-type-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.bk-type-name { display: flex; gap: .7rem; align-items: center; }
.bk-type-name b { font-size: 1.05rem; color: var(--navy); }
.bk-type-name small { display: block; }
.bk-code { display: inline-grid; place-items: center; min-width: 2.8rem; padding: .3rem .45rem; border-radius: 9px; background: #e9eefb; color: #23406e; font-weight: 700; font-size: .85rem; }
.bk-type-free { text-align: center; border-radius: 12px; padding: .35rem .8rem; min-width: 5rem; }
.bk-type-free b { display: block; font-size: 1.6rem; line-height: 1.1; }
.bk-type-free small { font-size: .72rem; }
.bk-type-free.many { background: #e3f6ea; color: #17653a; }
.bk-type-free.few { background: #fff1d6; color: #8a5a00; }
.bk-type-free.none { background: #fde4e4; color: #b42318; }
.bk-bars { display: flex; gap: 3px; align-items: flex-end; height: 42px; margin: .6rem 0 .2rem; }
.bk-bars span { flex: 1 1 0; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bk-bars i { display: block; width: 100%; height: var(--h); background: linear-gradient(180deg, #5bb37e, #2f8f57); border-radius: 4px 4px 0 0; }
.bk-bars span.low i { background: linear-gradient(180deg, #f3a96b, #d9622b); }
.bk-bars small { font-size: .62rem; color: var(--muted); }
.bk-typewarn { margin: .3rem 0 0; font-size: .8rem; color: #b42318; }
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: .7rem; }
.bk-tile { display: flex; flex-direction: column; gap: .3rem; text-align: start; padding: .55rem .7rem; border-radius: 11px; border: 1px solid #d8dee8; background: #fbfcfe; font: inherit; cursor: pointer; transition: transform .08s, border-color .15s; }
.bk-tile:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); }
.bk-tile.on { border-color: var(--primary); background: #eaf5ff; box-shadow: 0 0 0 2px var(--primary) inset; }
.bk-tile.off { opacity: .55; }
.bk-tile:disabled { cursor: default; background: #f6f7f9; }
.bk-tile-plan b { color: var(--navy); }
.bk-tile-plan small { color: var(--muted); font-size: .76rem; }
.bk-tile-price b { display: block; font-size: 1.1rem; color: #12305a; }
.bk-tile-price small { font-size: .72rem; color: var(--muted); }
.bk-tile-blocked { font-size: .78rem; color: #b42318; }
.bk-summary.empty { background: #f9fafc; border-style: dashed; }
.bk-sum-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin: .7rem 0; padding: .55rem .7rem; border-radius: 10px; background: #12305a; color: #fff; }
.bk-total b { font-size: 1.25rem; }
.bk-cartline { display: flex; gap: .4rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.bk-cartline span:nth-child(2) { flex: 1; }
.bk-booknow { width: 100%; margin-top: .6rem; }
.bk-guest { position: relative; }
.bk-done-icon { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; font-weight: 700; }
@media (max-width: 1100px) {
    .bk-layout { grid-template-columns: 1fr; }
    .bk-side { position: static; }
    .bk-party { margin-inline-start: 0; }
}
.bk-typenote { margin: .3rem 0 0; font-size: .82rem; color: #8a5a00; }
.bk-typeok { margin: .3rem 0 0; font-size: .82rem; color: #17653a; }

/* the bill in windows (OPERA course, phase 3, 2026-11-20) */
.fw-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: stretch; margin: .6rem 0; }
.fw-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .4rem .7rem; border: 1px solid #d8dee8; border-radius: 10px; background: var(--card); font: inherit; cursor: pointer; text-align: start; }
.fw-tab b { font-size: .85rem; color: var(--navy); }
.fw-tab small { font-size: .75rem; color: var(--muted); }
.fw-tab.company { border-inline-start: 4px solid #5b7bd5; }
.fw-tab.on { border-color: var(--primary); background: #eaf5ff; box-shadow: 0 0 0 2px var(--primary) inset; }
.fw-new, .fw-winhead { margin-bottom: .5rem; }
.fw-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .35rem 0; }
.fw-row .search { flex: 1 1 180px; min-width: 0; }
.fw-row .search.narrow { flex: 0 1 170px; }
.fw-move { border: 1px solid #d8dee8; border-radius: 6px; padding: .1rem .2rem; font: inherit; font-size: .8rem; background: #f6f8fb; }
.fw-routes { margin-top: .8rem; padding: .6rem .8rem; border: 1px dashed #c8d3e0; border-radius: 10px; }
.fw-routes h3 { margin-top: 0; }
.fw-transfer { padding: .7rem .8rem; margin: .5rem 0; border: 1px solid #c8d3e0; border-radius: 10px; background: #f8fbff; }
.fw-transfer .search { width: 100%; margin: .4rem 0; }

/* groups and blocks (OPERA course, phase 4, 2026-11-20) */
.gb-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-inline-end: .35rem; vertical-align: middle; background: #c3cad6; }
.gb-dot.st-tentative, .gb-cell.st-tentative, .pill.st-tentative { background: #ffe9b8; color: #8a5a00; }
.gb-dot.st-definite, .gb-cell.st-definite, .pill.st-definite { background: #c9efd6; color: #17653a; }
.gb-dot.st-inquiry, .gb-cell.st-inquiry, .pill.st-inquiry { background: #e3e8f2; color: #455066; }
.gb-dot.st-lost, .gb-cell.st-lost, .pill.st-lost, .gb-dot.st-cancelled, .gb-cell.st-cancelled, .pill.st-cancelled { background: #f6d9d6; color: #9b2c20; }
.gb-dot.st-tentative { background: #e0a400; } .gb-dot.st-definite { background: #1f9d55; } .gb-dot.st-lost, .gb-dot.st-cancelled { background: #d92d20; }
.gb-board tbody th { white-space: nowrap; }
.gb-board tbody th a { color: var(--navy); text-decoration: none; }
.gb-cell { cursor: pointer; font-size: .82rem; }
.gb-row { cursor: pointer; }
.gb-row:hover td { background: #f3f8ff; }
.gb-sheet { max-width: 1100px; }
.gb-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.gb-head h2 { margin-bottom: .2rem; }
.gb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin: .7rem 0; }
.gb-kpis > div { background: #f6f8fb; border-radius: 10px; padding: .55rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.gb-kpis small { color: var(--muted); font-size: .75rem; }
.gb-kpis b { font-size: 1.15rem; color: var(--navy); }
.gb-bar { display: block; height: 6px; background: #e3e8f2; border-radius: 3px; overflow: hidden; }
.gb-bar i { display: block; height: 100%; background: #1f9d55; }
.gb-status { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .6rem; }
.gb-status .fw-row { flex-basis: 100%; }
.gb-rate { display: block; font-size: .66rem; color: var(--muted); font-weight: 400; }
.gb-gridform { margin-top: .9rem; padding: .7rem .9rem; border: 1px dashed #c8d3e0; border-radius: 10px; }
.gb-gridform h3 { margin-top: 0; }
.gb-paste { width: 100%; font-family: inherit; direction: auto; }
.gb-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin: .6rem 0; }
.gb-booking { border-bottom: 1px solid var(--line); }
.bk-calnav .btn { white-space: nowrap; }

/* sales accounts (OPERA course, phase 4, 2026-11-20) */
.sa-act { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .45rem; background: var(--card); }
.sa-act.late { border-color: #f3b3aa; background: #fff7f5; }
.sa-act.hot .sa-icon { background: #ffe9b8; }
.sa-act.done { opacity: .7; }
.sa-icon { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #eef2fa; flex: 0 0 auto; }
.sa-body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.sa-close { display: flex; gap: .3rem; align-items: center; }
.sa-close .search { width: 14rem; }
.sa-prio { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 6px; font-weight: 700; font-size: .85rem; background: #e3e8f2; color: #455066; }
.sa-prio.pA { background: #1f9d55; color: #fff; } .sa-prio.pB { background: #ffe9b8; color: #8a5a00; } .sa-prio.pC { background: #e3e8f2; }
.sa-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: .8rem; }
.sa-person { border-bottom: 1px solid var(--line); }
.sa-reach { padding: .1rem .45rem; border-radius: 6px; font-weight: 600; }
.sa-reach.ok { background: #dff3e7; color: #17653a; } .sa-reach.mid { background: #fff1d6; color: #8a5a00; } .sa-reach.low { background: #fde4e4; color: #b42318; }
.sa-dialog { max-width: 560px; width: 100%; }
@media (max-width: 900px) { .sa-grid { grid-template-columns: 1fr; } .sa-act { flex-wrap: wrap; } }
.sa-icon { font-weight: 700; color: var(--navy); }
.sa-icon.k-call { background: #e3f0ff; } .sa-icon.k-meeting { background: #ece4ff; } .sa-icon.k-visit { background: #dff3e7; } .sa-icon.k-email { background: #fff1d6; } .sa-icon.k-task { background: #eef2fa; }

/* housekeeping: several rooms at once, conditions, task sheets (OPERA course, phase 5, 2026-11-20) */
.hk-svc { position: absolute; top: 4px; inset-inline-start: 4px; font-size: .62rem; padding: .05rem .35rem; border-radius: 6px; background: #fde4e4; color: #b42318; }
.hk-svc.makeup { background: #e3f0ff; color: #12305a; }
.hk-cond { display: block; font-size: .65rem; color: #6941c6; }
.hk-bar-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 .3rem; }
.hk-bar { flex-wrap: wrap; }
.hk-sheets { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed #c8d3e0; border-radius: 12px; background: var(--card); }
.hk-sheet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; margin-top: .7rem; }
.hk-sheet { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; break-inside: avoid; }
.hk-sheet h4 { margin: 0 0 .4rem; }
.hk-check { font-size: 1.1rem; }
@media print {
    .hk-sheets { border: 0; padding: 0; }
    .hk-sheets > p, .hk-sheets > .fw-row, .hk-sheets > label, .hk-sheets > h3, .room-grid, .floor, .hk-chips, .tools, .hk-bar, .topbar { display: none !important; }
    .hk-sheet { page-break-after: always; border: 0; }
}

/* availability and sell limits (OPERA course, phase 5, 2026-11-20) */
.iv-board th { white-space: nowrap; }
.iv-board .iv-sub { font-weight: 400; color: var(--muted); font-size: .75rem; padding-inline-start: 1rem; }
.iv-board .iv-n { font-size: .78rem; color: var(--muted); font-weight: 400; cursor: default; }
.iv-board .iv-limit { font-size: .78rem; color: #6941c6; font-weight: 600; cursor: default; }
.iv-board .iv-type td { font-size: .95rem; }
.iv-board .iv-occ td { font-size: .78rem; background: #f3f5f9; }
.iv-board .iv-occ td.warm { background: #fff1d6; color: #8a5a00; }
.iv-board .iv-occ td.hot { background: #fde4e4; color: #b42318; }
.iv-board .iv-house td { font-weight: 700; }
.sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }

/* sliding sections (2026-11-20, the ERP's slidingDiv): a button with an arrow folds or opens the section below with a slide */
.slide-btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.slide-btn h3, .slide-btn b { margin: 0; }
.slide-chev { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #eef1f4; color: #51657a; font-style: normal; font-size: .75rem; transition: transform .3s ease, background .2s; flex: none; }
.slide-chev::before { content: '▾'; }
.slide-btn:hover .slide-chev { background: #e0e7ee; }
.slide-btn.closed .slide-chev { transform: rotate(90deg); }
[dir="rtl"] .slide-btn.closed .slide-chev { transform: rotate(-90deg); }
.slide-hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.slide-btn:not(.closed) .slide-hint { display: none; }
.slide-box { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease, opacity .35s ease; opacity: 1; }
.slide-box > * { overflow: hidden; min-height: 0; }
.slide-box.closed { grid-template-rows: 0fr; opacity: 0; }
@media print { .slide-box.closed { grid-template-rows: 1fr; opacity: 1; } .slide-chev { display: none; } }
.rc-line { font-size: .85rem; white-space: nowrap; }
.rc-old { color: #b42318; text-decoration: line-through; }
.rc-new { color: #1f7a4f; font-weight: 700; }

/* check-in: money left on the room (the client's list, 2026-11-21) */
.ci-warn { margin: .7rem 0; padding: .65rem .9rem; border-radius: 10px; background: #fff4e0; border: 1px solid #f0b54a; color: #7a4a00; font-weight: 600; }

/* a group's rooms as lines: count + type, "+ another room type" (2026-11-21) */
.group-lines { display: grid; gap: 6px; margin: 8px 0; }
.group-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.group-line .num-in { width: 80px; }
.group-line select.search { flex: 1 1 220px; min-width: 0; max-width: 360px; }
.group-line .gl-free { font-size: 12px; color: var(--muted, #64708a); }
.group-line.short .gl-free { color: #b42318; font-weight: 700; }
.group-line-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.group-head .group-lines { flex-basis: 100%; }
.group-head .group-line { flex-wrap: nowrap; }
.group-head .group-line .num-in { flex: 0 0 6rem; width: 6rem; min-height: 40px; text-align: center; }
.group-head .group-line select.search { flex: 0 1 320px; min-height: 40px; }
.group-head .group-line .btn.small { flex: 0 0 auto; }
.group-head .group-line .gl-free { flex: 0 0 auto; white-space: nowrap; }
.group-head .group-line-foot .btn.small { flex: 0 0 auto; }
@media (max-width: 600px) { .group-head .group-line { flex-wrap: wrap; } .group-head .group-line select.search { flex: 1 1 100%; } }

/* a room type's profile on the room types screen (2026-11-21) */
.rt-profile { display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #dde3ec); }
.rt-profile h4 { margin: 6px 0 0; }
.rt-bed { display: flex; gap: 8px; align-items: center; }
.rt-bed .num-in { width: 70px; flex: none; text-align: center; }
.rt-bed select.search { flex: 1 1 auto; }
.rt-group { display: grid; gap: 4px; }
.rt-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rt-check { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; cursor: pointer; }
.rt-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rt-photo { position: relative; width: 120px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #dde3ec); }
.rt-photo img { width: 100%; height: 100%; object-fit: cover; }
.rt-photo .btn { position: absolute; top: 4px; inset-inline-end: 4px; padding: 0 6px; }
.rt-sum { display: block; font-size: 12px; }

/* a room type's details under its card on the booking screen (2026-11-21) */
.bk-facts { display: grid; gap: 6px; padding: 8px 4px; font-size: 14px; }
.bk-factgroup { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 8px; }
.bk-factgroup b { color: var(--ink, #13213a); }
@media (max-width: 600px) { .bk-factgroup { grid-template-columns: 1fr; gap: 2px; } }

/* the booking's money in its window (2026-11-22) */
.money-line { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 8px 12px; margin: 6px 0; border-radius: 10px; background: #f3f7f6; }
.money-line b.late { color: #b42318; }

/* a room with a guest in it is blue on the housekeeping board (the client's colours, 2026-11-22); its cleaning state stays written on it */
.hk-room.hk-occupied { background: var(--occupied); color: #fff; }
.hk-room.hk-occupied.hk-dirty { box-shadow: inset 0 -6px 0 var(--dirty); }
.legend-hk { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin: 4px 0 10px; }
.legend-hk i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }

/* items on and off from the kitchen (2026-11-22) */
.avail-panel { display: grid; gap: 10px; margin: 6px 0 14px; padding: 12px; border: 1px solid var(--line, #dde3ec); border-radius: 12px; background: #fff; }
.avail-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.avail-item { display: grid; padding: 6px 12px; border-radius: 10px; border: 1px solid; cursor: pointer; font: inherit; text-align: start; }
.avail-item.on { border-color: #2e9d5b; background: #eaf6ef; }
.avail-item.off { border-color: #c62f2f; background: #fdecec; text-decoration: line-through; }
.avail-item small { font-size: 11px; text-decoration: none; }

/* an item stopped by itself: an ingredient ran out (2026-11-22) */
.avail-item.auto { border-color: #d9822b; background: #fff4e5; }
.tile.ran-out { opacity: .55; }
.tile .ran-out-tag { display: block; font-size: 11px; color: #b42318; font-weight: 700; }

/* the maintenance work order (2026-11-22) */
.wo { display: grid; gap: 8px; margin-top: 12px; }
.wo h3 { margin: 10px 0 0; font-size: 15px; }
.wo-notes { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.wo-notes li { display: grid; }
.wo-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wo-row .search { flex: 1 1 160px; min-width: 0; }
.wo-row .search.narrow { flex: 0 0 110px; }
.wo-buy { display: grid; gap: 6px; padding: 8px; border: 1px dashed var(--line, #dde3ec); border-radius: 10px; }

/* the meal door: camera and cost per guest (2026-11-22) */
.meal-cam { width: 100%; max-width: 420px; border-radius: 12px; background: #000; margin: 8px 0; }
.meal-cost { margin: 10px 0 16px; padding: 10px; border: 1px solid var(--line, #dde3ec); border-radius: 12px; }

/* a warning line: the night audit behind, nights not on the folio yet (2026-11-23) */
.warn-line { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #fff4ce; color: #7a5200; border: 1px solid #f0d78c; font-size: 14px; }

/* booking-site photos: main badge, order and replace (2026-11-23) */
.photo-strip figure { position: relative; }
.photo-main { position: absolute; top: 6px; inset-inline-start: 6px; background: #1e7d47; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.photo-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.photo-tools .btn.small { padding: 2px 8px; font-size: 12px; }

/* group check-in (2026-11-24) */
.groupin .gi-table td { vertical-align: middle; }
.groupin .gi-table .search { min-width: 90px; padding: 6px 8px; }
.groupin .gi-table td:nth-child(3) .search { min-width: 170px; }
.groupin tr.gi-ok td { background: #ecfdf3; }
.groupin tr.gi-bad td { background: #fef2f2; }
.groupin .gi-why { color: #b91c1c; font-size: 13px; }
.groupin .gi-paste { margin: 8px 0 12px; padding: 8px 12px; border: 1px dashed var(--line, #dde3ec); border-radius: 10px; }
.groupin .gi-paste textarea { width: 100%; margin: 6px 0; }

/* the title bar's "copy link" (HotelShell.copyLink) */
.copy-link-tip { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: #1e1e2d; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 3000; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
[dir=rtl] .copy-link-tip { transform: translateX(50%); }
