/* =============================================================================
   Meridian Hotel ERP — brand theme
   Hospitality-grade: midnight navy · warm ivory · gold signature accent.
   All component hooks (.card-x, table.grid, .pill, .tabs-x, .btn-brass, forms,
   modals) are preserved so every screen inherits the theme.
   ============================================================================= */

:root {
    /* surfaces */
    --paper:      #F6F4EF;   /* warm ivory workspace */
    --paper-deep: #EFEBE3;
    --card:       #FFFFFF;
    --line:       #E4DFD5;
    --line-soft:  #EFEBE4;

    /* ink */
    --ink:        #101828;
    --ink-soft:   #4B5563;
    --ink-faint:  #8A94A6;

    /* brand */
    --night:      #0B1B33;   /* sidebar */
    --night-2:    #132A52;
    --night-line: rgba(255,255,255,.08);
    --brass:      #B8892E;   /* gold signature — primary actions (var name kept for compatibility) */
    --brass-lift: #D2A544;
    --brass-deep: #8F6A1F;
    --brass-wash: #FBF4E3;
    --brass-ink:  #1E1503;   /* text on gold */
    --cobalt:     #2457D6;   /* links / info */
    --cobalt-wash:#EAF0FD;

    /* status */
    --clean:      #147A5A;  --clean-bg:     #E3F4EC;
    --dirty:      #B54B24;  --dirty-bg:     #FBE9E1;
    --inspected:  #2457D6;  --inspected-bg: #EAF0FD;
    --blocked:    #5D6675;  --blocked-bg:   #EBEDF1;
    --occupied:   #123B7E;  --occupied-bg:  #E5EBF7;
    --danger:     #B3261E;  --danger-bg:    #FBE9E7;
    --warn:       #8A5A00;  --warn-bg:      #FDF2DC;
    --ok:         #147A5A;

    --radius:     10px;
    --radius-lg:  14px;
    --radius-xl:  18px;
    --shadow-sm:  0 1px 2px rgba(16,24,40,.05);
    --shadow:     0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12);
    --shadow-lg:  0 2px 4px rgba(16,24,40,.06), 0 24px 48px -20px rgba(16,24,40,.22);
    --ring:       0 0 0 4px rgba(184,137,46,.18);

    --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cond: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(184,137,46,.08), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(36,87,214,.06), transparent 60%),
        var(--paper);
}
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: #1B44B0; text-decoration: underline; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.eyebrow { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
::selection { background: rgba(184,137,46,.25); }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #CFC8BB; border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #B8AF9F; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------- shell ---- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 248px; flex: 0 0 248px;
    background:
        radial-gradient(420px 260px at 20% 0%, rgba(184,137,46,.18), transparent 60%),
        linear-gradient(180deg, var(--night-2) 0%, var(--night) 55%, #08152A 100%);
    color: #D6DEEB;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid rgba(255,255,255,.04);
    box-shadow: 8px 0 30px -20px rgba(0,0,0,.45);
}
.brand { padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.brand::before {
    content: ""; position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brass-lift), var(--brass-deep));
    box-shadow: 0 6px 16px -6px rgba(184,137,46,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand::after {
    content: "M"; position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center;
    font-family: var(--cond); font-weight: 800; font-size: 17px; color: var(--brass-ink); letter-spacing: -.02em;
}
.brand-mark { margin-left: 46px; font-family: var(--cond); font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #FFF; line-height: 1.1; }
.brand-sub  { margin-left: 46px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(214,222,235,.55); font-weight: 600; }

.nav-scroll { overflow-y: auto; flex: 1; padding: 6px 12px 20px; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border: 3px solid transparent; background-clip: padding-box; }
.nav-group {
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
    color: rgba(214,222,235,.42); padding: 16px 10px 6px;
}
.nav-link-x {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; margin: 1px 0;
    border-radius: 9px; color: rgba(214,222,235,.82); text-decoration: none; font-size: 13px; font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    position: relative;
}
.nav-link-x:hover { background: rgba(255,255,255,.06); color: #FFF; text-decoration: none; }
.nav-link-x.active {
    background: linear-gradient(90deg, rgba(184,137,46,.22), rgba(184,137,46,.06));
    color: #FFF; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(184,137,46,.35);
}
.nav-link-x.active::before {
    content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--brass-lift), var(--brass));
}
.nav-link-x .ico {
    width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center;
    border-radius: 7px; background: rgba(255,255,255,.06); font-size: 12px; opacity: .95;
}
.nav-link-x.active .ico { background: rgba(184,137,46,.35); color: #FFE9B8; }

.sidebar-foot { padding: 14px 20px 18px; border-top: 1px solid var(--night-line); font-size: 12.5px; background: rgba(0,0,0,.18); }
.sidebar-foot #whoami { color: #DCE3EC !important; font-weight: 600; }
.sidebar-foot a { color: rgba(214,222,235,.6) !important; }
.sidebar-foot a:hover { color: #FFF !important; }

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

.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15,34,68,.03), 0 6px 18px -14px rgba(15,34,68,.25);
}
/* v154 - title block with a navy accent bar, closer to the reference header */
.topbar h1 {
    font-family: var(--cond); font-size: 22px; font-weight: 800; letter-spacing: -.02em;
    margin: 0; color: var(--navy, #0F2244); position: relative; padding-left: 14px;
}
.topbar h1::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, var(--navy, #0F2244), var(--brass, #B08640));
}
.topbar .topbar-tools { display: flex; align-items: center; gap: 10px; }
.topbar #propertySwitch {
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--navy, #0F2244); font-weight: 600; padding: 6px 10px;
}
.topbar #propertySwitch:focus { outline: 2px solid var(--brass-wash, #F3E8CF); border-color: var(--brass, #B08640); }
.business-date {
    font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brass-deep);
    background: var(--brass-wash); border: 1px solid #EEDDB0; border-radius: 999px; padding: 4px 12px;
}
.content { padding: 22px 24px 40px; flex: 1; }
.content > * { animation: rise .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- KPIs ---- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(184,137,46,.10), transparent 70%); }
.kpi .label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-faint); }
.kpi .value { font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1.2; margin-top: 6px; letter-spacing: -.02em; }
.kpi .foot  { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.kpi.accent { border-color: #EEDDB0; background: linear-gradient(180deg, #FFFDF8, #FFF); }
.kpi.accent .value { color: var(--brass-deep); }

/* -------------------------------------------------------------- cards ---- */
.card-x {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden;
}
.card-x > header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #FFFFFF, #FCFBF8);
}
.card-x > header h2 { font-family: var(--cond); font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-x > header h2::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, var(--brass-lift), var(--brass)); }
.card-x > .body { padding: 16px 18px; }
.card-x > .body.flush { padding: 0; }
.card-x h3 { font-family: var(--cond); }

/* -------------------------------------------------------------- tables --- */
.table-responsive { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.grid thead th {
    position: sticky; top: 0; z-index: 1;
    text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
    color: var(--ink-faint); background: #FAF8F3; padding: 10px 14px; border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.grid tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.grid tbody tr { transition: background .12s ease; }
table.grid tbody tr:hover { background: #FBF9F4; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody td:first-child { font-weight: 600; }
table.grid td.num, table.grid th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.grid td .btn { margin-left: 4px; }

/* Bootstrap tables used in forms/modals get the same editorial look */
.table { --bs-table-bg: transparent; color: var(--ink); font-size: 13px; }
.table > thead > tr > th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); background: #FAF8F3; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table > :not(caption) > * > * { padding: 9px 12px; border-bottom-color: var(--line-soft); }
.table > tbody > tr:hover > * { background: #FBF9F4; }
.table tfoot th, .table tfoot td { background: #FAF8F3; border-top: 2px solid var(--line); }
.table-sm > :not(caption) > * > * { padding: 7px 10px; }

.empty { padding: 42px 20px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.empty .headline { font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: linear-gradient(135deg, var(--brass-wash), #F3ECDB); border: 1px solid #EEDDB0; }

/* --------------------------------------------------------------- pills --- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: capitalize;
    padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
    border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.pill.clean     { color: var(--clean);     background: var(--clean-bg);     border-color: #CFE9DC; }
.pill.dirty     { color: var(--dirty);     background: var(--dirty-bg);     border-color: #F3D2C3; }
.pill.inspected { color: var(--inspected); background: var(--inspected-bg); border-color: #CFDBF8; }
.pill.blocked   { color: var(--blocked);   background: var(--blocked-bg);   border-color: #D9DDE4; }
.pill.occupied  { color: var(--occupied);  background: var(--occupied-bg);  border-color: #CBD6EE; }
.pill.neutral   { color: var(--ink-soft);  background: #F1EFEA;             border-color: #E2DED4; }
.pill.warn      { color: var(--warn);      background: var(--warn-bg);      border-color: #F3DEB4; }
.pill.danger    { color: var(--danger);    background: var(--danger-bg);    border-color: #F1CDC9; }

/* --------------------------------------------------------- forms & inputs */
.form-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 5px;
}
.form-control, .form-select {
    font-family: var(--sans); font-size: 13.5px; color: var(--ink);
    background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px 12px; min-height: 40px;
    box-shadow: inset 0 1px 2px rgba(16,24,40,.03);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-control-sm, .form-select-sm { min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.form-control::placeholder { color: #B1B7C3; }
.form-control:hover, .form-select:hover { border-color: #CFC8BB; }
.form-control:focus, .form-select:focus { border-color: var(--brass); box-shadow: var(--ring); outline: 0; background-color: #FFFEFB; }
.form-control[readonly], .form-control:disabled, .form-select:disabled { background-color: #F7F5F0; color: var(--ink-soft); }
.form-select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 11px center; background-size: 14px 10px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238A94A6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-check-input { -webkit-appearance: none; appearance: none; background-color: #FFF; }
.form-check-input:checked[type=checkbox] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%231E1503' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); background-size: 100% 100%; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179,38,30,.12); }
textarea.form-control { min-height: 80px; }
.form-check-input { width: 18px; height: 18px; margin-top: .15em; border: 1.5px solid #CFC8BB; border-radius: 5px; }
.form-check-input:checked { background-color: var(--brass); border-color: var(--brass); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brass); }
.input-group-text { background: #FAF8F3; border-color: var(--line); color: var(--ink-soft); font-size: 12.5px; }
.form-text { color: var(--ink-faint); font-size: 12px; }
.alert { border-radius: var(--radius); font-size: 13px; }
.alert-info { background: var(--cobalt-wash); border-color: #CFDBF8; color: #1B3F94; }
.alert-warning { background: var(--warn-bg); border-color: #F3DEB4; color: var(--warn); }
.alert-danger { background: var(--danger-bg); border-color: #F1CDC9; color: var(--danger); }
.alert-success { background: var(--clean-bg); border-color: #CFE9DC; color: var(--clean); }

/* ------------------------------------------------------------- buttons --- */
.btn { font-family: var(--sans); font-weight: 600; border-radius: var(--radius); letter-spacing: .01em; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-brass {
    color: var(--brass-ink) !important;
    background: linear-gradient(180deg, var(--brass-lift), var(--brass));
    border: 1px solid var(--brass-deep);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 14px -8px rgba(184,137,46,.9);
}
.btn-brass:hover, .btn-brass:focus { background: linear-gradient(180deg, #DDB253, var(--brass-lift)); color: var(--brass-ink) !important; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -8px rgba(184,137,46,1), var(--ring); border-color: var(--brass-deep); }
.btn-brass:disabled { opacity: .55; }
.btn-outline-ink { color: var(--ink); background: #FFF; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-outline-ink:hover, .btn-outline-ink:focus { color: var(--ink); background: #FBF9F4; border-color: #CFC8BB; box-shadow: var(--shadow-sm); }
.btn-outline-ink:focus-visible { box-shadow: var(--ring); }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); }
.btn-primary:hover { background: #1B44B0; border-color: #1B44B0; }
.btn-close { opacity: .55; }
.btn-close:hover { opacity: 1; }

/* ---------------------------------------------------------------- tabs --- */
.tabs-x { display: inline-flex; gap: 4px; background: #ECE8DF; padding: 4px; border-radius: 12px; margin-bottom: 18px; border: 1px solid var(--line); }
.tabs-x button {
    appearance: none; background: transparent; border: 0; border-radius: 9px;
    font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
    padding: 7px 14px; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tabs-x button:hover { color: var(--ink); }
.tabs-x button.active { background: #FFF; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px var(--line); }

/* -------------------------------------------------------------- modals --- */
.modal-content { border: 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, #FFFFFF, #FCFBF8); padding: 14px 20px; }
.modal-header::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brass-lift), var(--brass), var(--cobalt)); }
.modal-header { position: relative; }
.modal-title { font-family: var(--cond) !important; font-weight: 800 !important; font-size: 16px !important; letter-spacing: -.01em; }
.modal-body { padding: 18px 20px; }
.modal-footer { border-top: 1px solid var(--line-soft); background: #FCFBF8; padding: 12px 20px; gap: 8px; }
.modal-backdrop.show { opacity: .55; background: #0B1B33; }

/* -------------------------------------------------------------- toasts --- */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; }
.toast-x {
    background: #111A2E; color: #F3F6FB; font-size: 13px; padding: 11px 14px 11px 12px;
    border-radius: 12px; border-left: 3px solid var(--brass-lift); box-shadow: var(--shadow-lg);
    min-width: 240px; max-width: 380px; animation: rise .22s ease both;
}
.toast-x.err { border-left-color: #E4614F; }
.toast-x.ok  { border-left-color: #3FA981; }

.spinner-wrap { padding: 44px; text-align: center; color: var(--ink-faint); }
.spinner-border { color: var(--brass); }

/* --------------------------------------------------------- misc/legacy ---- */
.review-grid { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review-row { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; background: #FFF; }
.review-row:nth-child(even) { background: #FCFBF8; }
.review-row:last-child { border-bottom: 0; }
.review-row .k { width: 160px; flex: 0 0 160px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-faint); padding-top: 2px; }
.review-row .v { flex: 1; color: var(--ink); }
.money-total { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.folio-line td { font-size: 13px; }
.folio-line.void td { text-decoration: line-through; color: var(--ink-faint); }

@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: none; }
    .content { padding: 16px; }
    .topbar { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ----------------------------------------------------------- room rack --- */
.rack-floor { margin-bottom: 22px; }
.rack-floor > .floor-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); margin-bottom: 8px; }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.slot {
    position: relative; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blocked);
    border-radius: 12px; padding: 10px 12px 11px; cursor: pointer; text-align: left; width: 100%; display: block;
    box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease;
}
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot:focus-visible { outline: 0; box-shadow: var(--ring); }
.slot .no { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.slot .type { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.slot .who { margin-top: 7px; font-size: 11.5px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 25px; }
.slot .who.vacant { color: var(--ink-faint); font-style: italic; }
.slot .hk { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px #FFF; }
.slot.s-clean     { border-left-color: var(--clean); }
.slot.s-dirty     { border-left-color: var(--dirty); }
.slot.s-inspected { border-left-color: var(--inspected); }
.slot.s-cleaning  { border-left-color: var(--brass); }
.slot.s-blocked   { border-left-color: var(--blocked); background: repeating-linear-gradient(135deg, #FFF, #FFF 7px, #F4F3EF 7px, #F4F3EF 14px); }
.slot.occupied    { background: linear-gradient(180deg, #F3F6FD, #EEF3FC); }
.rack-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--ink-soft); }
.rack-key span { display: inline-flex; align-items: center; gap: 6px; }
.rack-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.wiz-steps { display: flex; margin-bottom: 20px; }
.wiz-steps .st {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 34px;
    font-family: var(--cond);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: 11px;
    color: var(--ink-faint);
}
.wiz-steps .st .dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--line);
    color: var(--ink-faint);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 12px;
    z-index: 2;
}
.wiz-steps .st::before,
.wiz-steps .st::after {
    content: "";
    position: absolute;
    top: 13px;
    height: 2px;
    background: var(--line);
    z-index: 1;
}
.wiz-steps .st::before { left: 0; right: 50%; }
.wiz-steps .st::after  { left: 50%; right: 0; }
.wiz-steps .st:first-child::before,
.wiz-steps .st:last-child::after { display: none; }
.wiz-steps .st.active { color: var(--ink); }
.wiz-steps .st.active .dot { border-color: var(--brass); color: var(--brass); }
.wiz-steps .st.done { color: var(--ink); }
.wiz-steps .st.done .dot { background: var(--brass); border-color: var(--brass); color: #FFF; }
.wiz-steps .st.done::before,
.wiz-steps .st.done::after,
.wiz-steps .st.active::before { background: var(--brass); }

.pick-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    background: var(--card);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.pick-card:hover { border-color: var(--brass-lift); }
.pick-card.sel {
    border-color: var(--brass);
    box-shadow: 0 0 0 2px var(--brass-wash);
}

.wiz-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    background: var(--brass-wash);
    border: 1px solid #C5DAF6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--ink);
    margin-bottom: 16px;
}
.wiz-summary .mono { margin-left: auto; font-weight: 600; font-size: 14px; }

/* -------------------------------------------- booking wizard, rich form --
   Required markers, the returning-guest lookup, and the review grid. */
.req { color: var(--danger); font-weight: 600; }

.wiz-existing {
    background: var(--brass-wash);
    border: 1px solid #C5DAF6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--ink);
}

.wiz-results { position: relative; }
.wiz-result {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--card);
    cursor: pointer;
    font-size: 13px;
}
.wiz-result:first-child { border-top: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-top: 4px; }
.wiz-result:last-child { border-radius: 0 0 6px 6px; }
.wiz-result:hover { background: var(--brass-wash); }
.wiz-result span { color: var(--ink-soft); }
.wiz-result.muted { cursor: default; color: var(--ink-faint); }
.wiz-result.muted:hover { background: var(--card); }

.review-grid {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.review-row {
    display: flex;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.review-row:last-child { border-bottom: 0; }
.review-row .k {
    flex: 0 0 130px;
    font-family: var(--cond);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    color: var(--ink-faint);
    padding-top: 2px;
}
.review-row .v { flex: 1; color: var(--ink); }

/* Make Bootstrap's invalid feedback show under our compact fields */
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }

/* ===================== Guest Reservation wizard (mock match) ============ */
.gr-wizard .form-label {
    text-transform: none;
    font-family: var(--sans);
    letter-spacing: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.gr-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.gr-head svg { color: var(--brass); }
.gr-head h3 { font-family: var(--cond); font-size: 21px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -.01em; }
.gr-head p { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 0; }
.gr-title { font-family: var(--cond); font-size: 20px; font-weight: 700; color: var(--ink); }
.gr-lead { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 16px; }

/* stepper — filled active + done, like the mock */
.gr-wizard .wiz-steps { margin: 6px 0 22px; }
.gr-wizard .wiz-steps .st .dot { width: 34px; height: 34px; font-size: 13px; border-width: 2px; }
.gr-wizard .wiz-steps .st { padding-top: 42px; font-size: 12px; text-transform: none; font-family: var(--sans); letter-spacing: 0; }
.gr-wizard .wiz-steps .st::before, .gr-wizard .wiz-steps .st::after { top: 17px; }
.wiz-steps .st.active .dot { background: var(--brass); border-color: var(--brass); color: #FFF; }
.wiz-steps .st.active { color: var(--brass); font-weight: 600; }

/* icon-prefixed fields */
.field-ico { position: relative; }
.field-ico > .ico {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--ink-faint); display: flex; pointer-events: none; z-index: 2;
}
.field-ico .form-control, .field-ico .form-select { padding-left: 34px; height: 40px; font-size: 13.5px; }
.field-ico select.form-select { padding-left: 34px; }

/* right-hand booking summary */
.summary-card {
    background: linear-gradient(180deg, #F3F7FE 0%, #EAF1FC 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
}
.sc-head { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.sc-head svg { color: var(--brass); }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.sc-row .sc-ico { color: var(--ink-faint); display: flex; }
.sc-row .sc-k { color: var(--ink-soft); }
.sc-row .sc-v { margin-left: auto; font-weight: 500; color: var(--ink); }
.sc-div { height: 1px; background: var(--line); margin: 10px 0; }
.sc-total { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); padding: 4px 0; }

/* step-1 features panel */
.features-card {
    background: linear-gradient(180deg, #F3F7FE 0%, #EAF1FC 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    height: 100%;
}
.hotel-illus { text-align: center; color: var(--brass); margin-bottom: 16px; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.feat .fi { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #FFF; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); }
.feat h5 { font-size: 13.5px; margin: 0 0 2px; font-weight: 600; color: var(--ink); }
.feat p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* footer nav buttons with inline icons */
.gr-btn { display: inline-flex; align-items: center; gap: 6px; }
.gr-btn svg { vertical-align: middle; }

/* wizard: floating close button (no modal title bar) */
.modal-x { position: absolute; top: 16px; right: 18px; z-index: 6; }
.gr-wizard { padding-top: 2px; }
.gr-wizard .gr-head { padding-right: 34px; }  /* keep title clear of the ✕ */

/* wizard header lives in the fixed modal-header (stays put while body scrolls) */
.gr-modal-head {
    display: block;
    background: #FFFFFF;
    padding: 16px 18px 8px;
    border-bottom: 1px solid var(--line-soft);
}
.gr-modal-head .gr-head { margin: 0 0 12px; padding-right: 34px; }
.gr-modal-head .modal-x { position: absolute; top: 16px; right: 18px; z-index: 6; }
.gr-modal-head .wiz-steps { margin: 6px 0 4px; }
.gr-modal-head .wiz-steps .st {
    padding-top: 42px;
    font-size: 12px;
    text-transform: none;
    font-family: var(--sans);
    letter-spacing: 0;
}
.gr-modal-head .wiz-steps .st .dot { width: 34px; height: 34px; font-size: 13px; border-width: 2px; }
.gr-modal-head .wiz-steps .st::before,
.gr-modal-head .wiz-steps .st::after { top: 17px; }

/* ===================== Guest profile (modern, grouped) ================== */
.gp-modal-head { display: block; background: #FFFFFF; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.gp-modal-head .modal-x { position: absolute; top: 14px; right: 16px; z-index: 6; }
.gp-modal-title { font-family: var(--cond); font-size: 17px; font-weight: 700; color: var(--ink); }

.gp-hero {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(180deg, #F3F7FE 0%, #EAF1FC 100%);
    border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
}
.gp-avatar {
    width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
    background: var(--navy-900); color: #fff; display: grid; place-items: center;
    font-family: var(--cond); font-size: 22px; font-weight: 700; letter-spacing: .5px;
}
.gp-id { min-width: 0; }
.gp-name { font-family: var(--cond); font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.gp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gp-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink); }
.gp-chip svg { color: var(--brass); }
.gp-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.gp-badge.vip { background: #FDF2DC; color: #8A5A00; }
.gp-badge.bad { background: var(--danger-bg); color: var(--danger); }
.gp-stats { margin-left: auto; display: flex; gap: 8px; }
.gp-stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 74px; }
.gp-stat .v { display: block; font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink); }
.gp-stat .k { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }

.gp-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gp-section { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gp-sec-head { display: flex; align-items: center; gap: 7px; background: #F4F8FE; color: var(--ink); font-family: var(--cond); font-weight: 600; font-size: 13px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); }
.gp-sec-head svg { color: var(--brass); }
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; }
.gp-cell { padding: 7px 12px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); min-width: 0; }
.gp-cell:nth-child(2n) { border-right: 0; }
.gp-grid .gp-cell:nth-last-child(-n+1) { border-bottom: 0; }
.gp-k { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.gp-v { display: block; font-size: 13px; color: var(--ink); margin-top: 1px; word-break: break-word; }

@media (max-width: 720px) {
    .gp-sections { grid-template-columns: 1fr; }
    .gp-stats { width: 100%; margin-left: 0; }
}

/* ------------------------------------------------- branded dialogs -------- */
.dlg-hero { display: flex; align-items: center; gap: 12px; padding: 0 30px 0 0; }
.dlg-hero-ico {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #FFF6DF, var(--brass-wash)); color: var(--brass-deep);
    border: 1px solid #EEDDB0; box-shadow: 0 6px 14px -10px rgba(184,137,46,.9);
}
.dlg-hero-ico svg { width: 20px; height: 20px; }
.dlg-hero-title { font-family: var(--cond); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.dlg-hero-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.modal-header:has(.dlg-hero) { padding: 12px 20px; }
.modal-header .dlg-hero + .modal-x, .modal-x { top: 14px; right: 16px; }
.dlg-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.dlg-label .req { color: var(--danger); font-weight: 700; margin-left: 2px; }
.dlg-field .form-control, .dlg-field .form-select, .field-ico.dlg-field select.form-select { height: 48px; padding-left: 52px; font-size: 14px; border-radius: 12px; }
.dlg-field.dlg-textarea .form-control { height: auto; min-height: 76px; padding-top: 12px; padding-bottom: 22px; }
.dlg-field.dlg-textarea > .ico { top: 24px; transform: none; }
.dlg-field > .ico {
    left: 10px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: #F1F3F8; color: #4B5563;
}
.dlg-field.tint-blue > .ico   { background: #E8EFFD; color: #2457D6; }
.dlg-field.tint-violet > .ico { background: #EFE9FB; color: #6D3FD1; }
.dlg-field.tint-green > .ico  { background: #E3F4EC; color: #147A5A; }
.dlg-field.tint-red > .ico    { background: #FBE9E7; color: #B3261E; }
.char-count { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--ink-faint); font-family: var(--mono); pointer-events: none; }
.feat-panel { background: #F3F7FE; border: 1px solid #DCE6F8; border-radius: 14px; padding: 12px 14px 14px; }
.feat-panel-title { font-family: var(--cond); font-weight: 700; font-size: 14px; color: #1E3A8A; margin-bottom: 10px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feat-card {
    display: flex; align-items: center; gap: 12px; background: #FFF; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; cursor: pointer; margin: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.feat-card:hover { border-color: #CFC8BB; box-shadow: var(--shadow-sm); }
.feat-card:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,137,46,.14); }
.feat-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; background: #F1F3F8; color: #4B5563; }
.feat-ico.tint-blue { background: #E8EFFD; color: #2457D6; }
.feat-ico.tint-red { background: #FBE9E7; color: #B3261E; }
.feat-ico.tint-green { background: #E3F4EC; color: #147A5A; }
.feat-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.feat-txt strong { font-size: 14px; color: var(--ink); }
.feat-txt small { font-size: 12px; color: var(--ink-soft); }
.feat-card .form-check-input { margin: 0; width: 20px; height: 20px; flex: 0 0 20px; }
.dlg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.dlg-sec { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); margin-top: 4px; }
.dlg-field.tint-gold > .ico { background: var(--brass-wash); color: var(--brass-deep); }


/* ============================================================
   ROOM TYPE DIALOG — ADDITIONS
   Append to app.css (or load after it).
   Adds: blue section header, blue-tinted feat-panel, toggle
   switch variant of feat-card, plain-icon field variant.
   ============================================================ */

/* Blue section header (Basic Information, Description, etc.) */
.dlg-sec-blue {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1D5FD8;
    letter-spacing: 0;
    text-transform: none;
    padding: 4px 0 8px;
    margin-top: 6px;
    border-bottom: none;
    line-height: 1.2;
}
.dlg-sec-blue .dlg-sec-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1D5FD8;
    width: 16px;
    height: 16px;
}
.dlg-sec-blue .dlg-sec-ico svg { width: 16px; height: 16px; }

/* Blue-tinted panel variant (Additional Settings) */
.feat-panel.feat-panel-blue {
    background: #EEF3FD;
    border: 1px solid #DCE6F8;
}
.feat-panel-blue .feat-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1D5FD8;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 10px;
}
.feat-panel-blue .feat-panel-title .dlg-sec-ico { color: #1D5FD8; width: 16px; height: 16px; display: inline-flex; }
.feat-panel-blue .feat-panel-title .dlg-sec-ico svg { width: 16px; height: 16px; }

/* Toggle-switch variant of the feature card (used in Additional Settings) */
.feat-card.feat-toggle {
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
}
.feat-card.feat-toggle .feat-ico {
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 8px;
}
.feat-card.feat-toggle .feat-ico svg { width: 18px; height: 18px; }
.feat-card.feat-toggle .feat-txt { padding-top: 2px; }
.feat-card.feat-toggle .feat-txt strong {
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.25;
    display: block;
    margin-bottom: 3px;
}
.feat-card.feat-toggle .feat-txt small {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.3;
    display: block;
}

/* The switch itself */
.feat-card.feat-toggle .feat-switch {
    margin: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    align-items: center;
}
.feat-card.feat-toggle .feat-switch .form-check-input {
    margin: 0;
    width: 34px;
    height: 20px;
    cursor: pointer;
    background-color: #d5dce8;
    border-color: #d5dce8;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}
.feat-card.feat-toggle .feat-switch .form-check-input:checked {
    background-color: #1D5FD8;
    border-color: #1D5FD8;
}
.feat-card.feat-toggle .feat-switch .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(29, 95, 216, 0.15);
    border-color: #1D5FD8;
}

/* When a checked toggle is present, subtle brass ring is overkill — override */
.feat-card:has(.form-check-input:checked) {
    border-color: #B7C5E4;
    box-shadow: 0 0 0 2px rgba(29, 95, 216, 0.08);
}

/* Plain-grey icon variant for iconed fields with no tint class.
   The default .dlg-field > .ico already gives grey — this just tones
   it down further to match the mockup's near-flat look. */
.dlg-field:not(.tint-blue):not(.tint-violet):not(.tint-green):not(.tint-red):not(.tint-gold) > .ico {
    background: #F1F3F8;
    color: #6B7280;
}


/* ============================================================
   RATE PLAN DIALOG — ADDITIONS (rate-plan-specific only;
   shared branded-dialog bits already defined above)
   ============================================================ */

/* Single-column feature grid (Refundable spans full width) */
.feat-grid.feat-grid-1 { grid-template-columns: 1fr; }

/* Info note banner under the toggles */
.dlg-note {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 12px; padding: 12px 14px;
    background: #F3F7FE; border: 1px solid #DCE6F8; border-radius: 12px;
    font-size: 12px; color: #33517F; line-height: 1.4;
}
.dlg-note .dlg-note-ico { flex: 0 0 16px; width: 16px; height: 16px; color: #1D5FD8; display: inline-flex; margin-top: 1px; }
.dlg-note .dlg-note-ico svg { width: 16px; height: 16px; }

/* Date inputs: keep native calendar icon from crowding the field icon */
.dlg-field input[type="date"].form-control { padding-right: 8px; }


/* ============================================================
   RATE CALENDAR — GRID REDESIGN
   Append to app.css (or load after it).
   ============================================================ */

/* ---- Card header with subtitle + View rate plans button ---- */
.rc-card .rc-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 16px 18px 12px;
}
.rc-card .rc-head h2 { margin: 0; }
.rc-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.rc-viewplans { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rc-viewplans svg { width: 16px; height: 16px; }

/* ---- Filter bar ---- */
.rc-filters {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
    gap: 12px;
    padding: 4px 18px 14px;
}
.rc-field { min-width: 0; }
.rc-field .dlg-label { margin-bottom: 4px; }

/* ---- Set-rate panel ---- */
.rc-setbar {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.1fr auto auto;
    gap: 12px;
    align-items: end;
    padding: 0 18px 12px;
}
.rc-closed { display: flex; align-items: center; padding-bottom: 2px; }
.rc-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 0; }
.rc-check .form-check-input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 16px; }
.rc-check .form-check-input:checked { background-color: #1D5FD8; border-color: #1D5FD8; }
.rc-check span { display: flex; flex-direction: column; line-height: 1.2; }
.rc-check strong { font-size: 13px; color: var(--ink); }
.rc-check small { font-size: 11px; color: var(--ink-soft); }
.rc-apply { display: flex; align-items: end; padding-bottom: 2px; }
.rc-apply .btn { white-space: nowrap; }

.rc-note { margin: 0 18px 14px; }

/* ---- Calendar bar (month name + nav + view toggle) ---- */
.rc-calwrap { border-top: 1px solid var(--line-soft); padding: 14px 18px 18px; }
.rc-calbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.rc-monthnav { display: flex; align-items: center; gap: 8px; }
.rc-monthname {
    font-family: var(--cond, inherit); font-size: 18px; font-weight: 800;
    color: var(--ink); letter-spacing: -.01em;
}
.rc-navbtn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.rc-navbtn:hover { background: #F3F7FE; border-color: #C9D8F2; color: #1D5FD8; }
.rc-calbar-right { display: flex; align-items: center; gap: 14px; }
.rc-hint { font-size: 12px; color: var(--ink-soft); }

/* View toggle (Month / Week / List) */
.rc-viewtoggle { display: inline-flex; background: #F1F4F9; border-radius: 8px; padding: 3px; gap: 2px; }
.rc-viewtoggle button {
    border: 0; background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
    padding: 5px 14px; border-radius: 6px; line-height: 1;
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.rc-viewtoggle button.active {
    background: #fff; color: #1D5FD8;
    box-shadow: 0 1px 2px rgba(11,46,99,.12);
    border: 1px solid #C9D8F2;
}

/* ---- The grid ---- */
.rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.rc-grid-head { border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; }
.rc-dow {
    text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-soft);
    padding: 10px 0; background: #FBFCFE;
}
.rc-grid-body {
    border: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden;
    border-left: 0;
}
.rc-grid-body .rc-cell { border-left: 1px solid var(--line); }

.rc-cell {
    position: relative; min-height: 84px; padding: 8px 10px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 2px;
    background: #fff; cursor: pointer;
    transition: background .1s ease, box-shadow .1s ease;
}
/* first row cells: no double top border (head already sits above) */
.rc-grid-body .rc-cell:nth-child(-n+7) { border-top: 0; }
.rc-cell:hover { background: #F7FAFF; }
.rc-cell:focus-visible { outline: 2px solid #1D5FD8; outline-offset: -2px; }

.rc-daynum { font-size: 13px; font-weight: 600; color: var(--ink); }
.rc-rate { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.rc-rooms { font-size: 11px; color: var(--ink-soft); }
.rc-rate-closed { color: #B3261E; font-weight: 700; }

/* Out-of-month days (greyed) */
.rc-cell-out { background: #FCFCFD; }
.rc-cell-out .rc-daynum { color: #C2C8D2; font-weight: 500; }
.rc-cell-out .rc-rate, .rc-cell-out .rc-rooms { opacity: .55; }

/* Low inventory — warm tint */
.rc-cell-low { background: #FDF3F2; }
.rc-cell-low:hover { background: #FCEBE9; }

/* Closed — stronger warm tint */
.rc-cell-closed { background: #FBE9E7; }
.rc-cell-closed:hover { background: #F8DED9; }

/* Today — brand blue fill */
.rc-cell-today {
    background: #1D5FD8 !important;
    box-shadow: inset 0 0 0 1px #1D5FD8;
}
.rc-cell-today .rc-daynum,
.rc-cell-today .rc-rate,
.rc-cell-today .rc-rooms { color: #fff; }
.rc-cell-today .rc-rate-closed { color: #FFD9D4; }
.rc-cell-today:hover { background: #1A55C4 !important; }

/* Clicked/selected day — blue ring (distinct from today's fill) */
.rc-cell-sel:not(.rc-cell-today) {
    box-shadow: inset 0 0 0 2px #1D5FD8;
    background: #EEF3FD;
}

/* Week view: taller cells, single row */
.rc-grid-week .rc-cell { min-height: 120px; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .rc-filters { grid-template-columns: 1fr 1fr; }
    .rc-setbar { grid-template-columns: 1fr 1fr; }
    .rc-apply, .rc-closed { grid-column: span 1; }
}
@media (max-width: 640px) {
    .rc-filters, .rc-setbar { grid-template-columns: 1fr; }
    .rc-calbar { align-items: flex-start; }
    .rc-cell { min-height: 68px; padding: 6px; }
    .rc-rate, .rc-daynum { font-size: 12px; }
    .rc-rooms { font-size: 10px; }
}


/* ============================================================
   ADD TAX DIALOG — ADDITIONS
   Append to app.css (or load after it).
   Reuses .dlg-sec-blue, .dlg-note, .field-ico, .dlg-btn from
   earlier dialog work.
   ============================================================ */

/* Blue hero icon (this dialog uses blue accents, not brass) */
.dlg-hero-ico.dlg-hero-ico-blue {
    background: #EAF1FD;
    color: #1D5FD8;
    border: 1px solid #D3E1FA;
    box-shadow: 0 6px 14px -10px rgba(29,95,216,.8);
}

/* Blue primary action button (Save Tax) */
.btn.dlg-btn-blue,
.btn-primary.dlg-btn-blue {
    background: #1D5FD8;
    border-color: #1D5FD8;
    color: #fff;
}
.btn.dlg-btn-blue:hover,
.btn-primary.dlg-btn-blue:hover {
    background: #1A55C4;
    border-color: #1A55C4;
    color: #fff;
}
.btn.dlg-btn-blue:focus,
.btn-primary.dlg-btn-blue:focus {
    box-shadow: 0 0 0 3px rgba(29,95,216,.25);
}

/* Rate field with a % suffix inside the input */
.dlg-field.dlg-field-suffix { position: relative; }
.dlg-field.dlg-field-suffix .form-control { padding-left: 12px; padding-right: 30px; }
.dlg-field.dlg-field-suffix .dlg-suffix {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: var(--ink-soft); pointer-events: none;
}

/* Inline checkbox rows (Tax-inclusive, Active) */
.dlg-inline-check {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0;
    font-size: 13px; color: var(--ink);
}
.dlg-inline-check .form-check-input {
    margin: 0; width: 18px; height: 18px; flex: 0 0 18px; cursor: pointer;
}
.dlg-inline-check .form-check-input:checked {
    background-color: #1D5FD8; border-color: #1D5FD8;
}
.dlg-inline-check span { display: inline-flex; align-items: center; gap: 4px; }

/* Small info tooltip glyph next to labels/checkboxes */
.dlg-tip {
    display: inline-flex; align-items: center; color: var(--ink-faint);
    cursor: help; vertical-align: middle;
}
.dlg-tip svg { width: 13px; height: 13px; }
.dlg-tip:hover { color: #1D5FD8; }

/* Info note sub-line (the "e.g." example under the main note text) */
.dlg-note-sub { color: #5B7196; font-size: 11.5px; }
.dlg-note-blue { background: #EEF3FD; border-color: #DCE6F8; }


/* ============================================================
   ADD TAX DIALOG — GOLD/BRASS VARIANT
   Append to app.css (or load after it).
   Matches the mockup: gold section bars, uppercase labels,
   amber info note, brass Save + gold Active checkbox.
   ============================================================ */

/* Gold left-bar section header */
.dlg-tax .dlg-sec-bar {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    padding: 2px 0 8px 12px;
    margin-top: 6px;
    line-height: 1.2;
}
.dlg-tax .dlg-sec-bar::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 4px; height: 16px;
    border-radius: 3px;
    background: var(--brass, #B8892E);
}

/* Uppercase field labels (CODE, NAME, TYPE, ...) */
.dlg-tax .dlg-ulabel {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 5px;
}
.dlg-tax .dlg-ulabel .req { color: var(--danger); margin-left: 2px; }

/* Plain (icon-less) inputs/selects sized to match the mockup */
.dlg-tax .form-control,
.dlg-tax .form-select {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d7dbe3;
    font-size: 14px;
    padding: 8px 14px;
}
.dlg-tax .form-control:focus,
.dlg-tax .form-select:focus {
    border-color: var(--brass, #B8892E);
    box-shadow: 0 0 0 3px rgba(184,137,46,.15);
}

/* Inline checkbox rows (Tax-inclusive, Active) — gold when checked */
.dlg-tax .dlg-inline-check {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0;
    font-size: 14px; color: var(--ink);
}
.dlg-tax .dlg-inline-check .form-check-input {
    margin: 0; width: 20px; height: 20px; flex: 0 0 20px; cursor: pointer;
    border-radius: 5px; border: 1px solid #c7ccd6;
}
.dlg-tax .dlg-inline-check .form-check-input:checked {
    background-color: var(--brass, #B8892E);
    border-color: var(--brass, #B8892E);
}
.dlg-tax .dlg-inline-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(184,137,46,.2);
    border-color: var(--brass, #B8892E);
}

/* Amber info note */
.dlg-note.dlg-note-gold {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 4px; padding: 13px 16px;
    background: #FDF6E7;
    border: 1px solid #F0E0BC;
    border-radius: 12px;
    font-size: 13px;
    color: #6B5220;
    line-height: 1.4;
}
.dlg-note.dlg-note-gold .dlg-note-ico {
    flex: 0 0 16px; width: 16px; height: 16px;
    color: var(--brass, #B8892E);
    display: inline-flex; margin-top: 1px;
}
.dlg-note.dlg-note-gold .dlg-note-ico svg { width: 16px; height: 16px; }


/* ============================================================
   ADD PROMOTION DIALOG — ADDITIONS
   Append to app.css (or load after it).
   Provides a general (unscoped) gold section-bar header, a
   section-note suffix, and the room-type checkbox cards.
   ============================================================ */

/* General gold left-bar section header (works outside .dlg-tax too) */
.dlg-sec-bar {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    padding: 2px 0 8px 12px;
    margin-top: 6px;
    line-height: 1.2;
}
.dlg-sec-bar::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 4px; height: 16px;
    border-radius: 3px;
    background: var(--brass, #B8892E);
}
/* faint "(Optional)" suffix next to a section title */
.dlg-sec-note {
    font-weight: 500;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-left: 4px;
}

/* Applicable room types — checkbox cards */
.promo-rt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.promo-rt-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    margin: 0;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.promo-rt-card:hover { border-color: #CFC8BB; box-shadow: var(--shadow-sm); }
.promo-rt-card:has(input:checked) {
    border-color: var(--brass, #B8892E);
    box-shadow: 0 0 0 3px rgba(184,137,46,.14);
}
.promo-rt-ico {
    width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: #F1F3F8; color: #4B5563;
}
.promo-rt-ico svg { width: 16px; height: 16px; }
.promo-rt-name {
    flex: 1; min-width: 0;
    font-size: 13px; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-rt-card .form-check-input {
    margin: 0; width: 18px; height: 18px; flex: 0 0 18px; cursor: pointer;
    border-radius: 5px;
}
.promo-rt-card .form-check-input:checked {
    background-color: var(--brass, #B8892E);
    border-color: var(--brass, #B8892E);
}

@media (max-width: 992px) {
    .promo-rt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .promo-rt-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   ADD MEAL PLAN DIALOG — ADDITIONS
   Append to app.css (or load after it).
   Card-style section panels + gold Active toggle card.
   ============================================================ */

/* Rounded card panel wrapping a section */
.dlg-panel {
    border: 1px solid #E7E9EF;
    border-radius: 14px;
    padding: 16px 18px 18px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11,46,99,.03);
}

/* Panel header: gold icon tile + title */
.dlg-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}
.dlg-panel-ico {
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--brass-wash, #FBF3E2);
    color: var(--brass-deep, #9A6B1E);
}
.dlg-panel-ico svg { width: 17px; height: 17px; }

/* Gold "Active" toggle card at the bottom of the dialog */
.dlg-active-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #F0E0BC;
    border-radius: 14px;
    background: #FDF6E7;
    cursor: pointer;
    margin: 0;
}
.dlg-active-check { display: inline-flex; }
.dlg-active-card .form-check-input {
    margin: 0; width: 26px; height: 26px; flex: 0 0 26px; cursor: pointer;
    border-radius: 7px;
    border: 1px solid #E2C98F;
    background-color: #fff;
}
.dlg-active-card .form-check-input:checked {
    background-color: var(--brass, #B8892E);
    border-color: var(--brass, #B8892E);
}
.dlg-active-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(184,137,46,.2);
    border-color: var(--brass, #B8892E);
}
.dlg-active-txt { display: flex; flex-direction: column; line-height: 1.3; }
.dlg-active-txt strong { font-size: 14px; color: var(--ink); }
.dlg-active-txt small { font-size: 12.5px; color: var(--ink-soft); }


/* ============================================================
   ADD POLICY DIALOG — ADDITIONS
   Append to app.css (or load after it).
   Uppercase labels (general), and icon-tile textareas with
   character counters.
   ============================================================ */

/* Uppercase field labels, general (works outside .dlg-tax) */
.dlg-policy .dlg-ulabel,
.dlg-ulabel {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.dlg-ulabel .req { color: var(--danger); margin-left: 2px; }
/* faint inline note in a label (the JSON example) */
.dlg-ulabel-note {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-faint);
    font-size: 11.5px;
    margin-left: 4px;
    font-family: var(--mono, monospace);
}

/* Icon-tile textarea (left icon tile + textarea + counter) */
.dlg-ta-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #d7dbe3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.dlg-ta-wrap:focus-within {
    border-color: var(--brass, #B8892E);
    box-shadow: 0 0 0 3px rgba(184,137,46,.12);
}
.dlg-ta-ico {
    flex: 0 0 48px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14px;
    background: #F4F6FA;
    color: #6B7280;
    border-right: 1px solid #e7eaf0;
}
.dlg-ta-ico svg { width: 18px; height: 18px; }
.dlg-ta.form-control {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    resize: vertical;
    min-height: 90px;
    padding: 12px 14px 22px;
    font-size: 13.5px;
}
.dlg-ta.form-control:focus { box-shadow: none; border: 0; }
.dlg-ta-count {
    position: absolute;
    right: 12px; bottom: 8px;
    font-size: 11px;
    color: var(--ink-faint);
    font-family: var(--mono, monospace);
    pointer-events: none;
}


/* ============================================================
   ADD USER DIALOG — ADDITIONS
   Append to app.css (or load after it).
   ============================================================ */

/* Divider between User Information and Roles */
.dlg-hr {
    border: 0;
    border-top: 1px solid var(--line-soft, #ECEEF3);
    margin: 18px 0 4px;
}

/* Roles — checkbox cards in a responsive grid */
.user-role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.user-role-card {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    cursor: pointer;
    margin: 0;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.user-role-card:hover { border-color: #CFC8BB; box-shadow: var(--shadow-sm); }
.user-role-card:has(input:checked) {
    border-color: var(--brass, #B8892E);
    box-shadow: 0 0 0 3px rgba(184,137,46,.14);
    background: var(--brass-wash, #FBF6EA);
}
.user-role-card .form-check-input {
    margin: 0; width: 16px; height: 16px; flex: 0 0 16px; cursor: pointer;
    border-radius: 4px;
}
.user-role-card .form-check-input:checked {
    background-color: var(--brass, #B8892E);
    border-color: var(--brass, #B8892E);
}
.user-role-ico {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brass-deep, #9A6B1E);
    flex: 0 0 18px;
}
.user-role-ico svg { width: 16px; height: 16px; }
.user-role-name {
    flex: 1; min-width: 0;
    font-size: 13px; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .user-role-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .user-role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .user-role-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PAYROLL SETTINGS — REDESIGN ADDITIONS
   Append to app.css (or load after it).
   ============================================================ */

.ps-card { max-width: 1080px; }

/* Card header: gold gear tile + title, Save on the right */
.ps-card .ps-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft, #ECEEF3);
}
.ps-head-l { display: flex; align-items: center; gap: 12px; }
.ps-head-l h2 { margin: 0; }
.ps-head-ico {
    width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 9px; display: grid; place-items: center;
    background: var(--brass, #B8892E); color: #fff;
}
.ps-head-ico svg { width: 18px; height: 18px; }

/* Section group */
.ps-group { margin: 0 0 18px; }
.ps-group-head {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 700; letter-spacing: .05em;
    color: var(--ink); text-transform: uppercase;
    background: var(--brass-wash, #FBF3E2);
    border-radius: 9px;
    padding: 9px 12px;
    margin-bottom: 12px;
}
.ps-group-ico {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brass-deep, #9A6B1E);
    width: 18px; height: 18px; flex: 0 0 18px;
}
.ps-group-ico svg { width: 16px; height: 16px; }

/* Uppercase field labels */
.ps-ulabel {
    display: block;
    font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 5px;
}

/* Info note spacing */
.ps-note { margin-top: 6px; }


/* ============================================================
   PHONE +91 PREFIX — ADD EMPLOYEE DIALOG
   Append to app.css.
   ============================================================ */

/* A field-ico variant where the leading element is a text prefix (+91)
   inside a shaded tile, instead of an icon. */
.dlg-field.dlg-field-prefix { position: relative; }
.dlg-field-prefix .dlg-prefix {
    position: absolute;
    left: 1px; top: 1px; bottom: 1px;
    width: 46px;
    display: flex; align-items: center; justify-content: center;
    background: #F4F6FA;
    border-right: 1px solid #e7eaf0;
    border-radius: 11px 0 0 11px;
    font-size: 13px; font-weight: 600; color: #55606E;
    pointer-events: none;
}
.dlg-field-prefix .form-control {
    padding-left: 58px;
}


/* ============================================================
   ADD EMPLOYEE — TABS + SECTION SPACING FIX
   Append to app.css.
   ============================================================ */

/* Fix: section header bars were cramped against the row above.
   Give every non-first section header top margin inside dialogs. */
.dlg-policy .row + .row .ps-group-head,
.dlg-policy .ps-group-head { margin-top: 14px; }
.dlg-policy .row:first-child .ps-group-head,
.dlg-policy .emp-tabpane .row:first-child .ps-group-head { margin-top: 4px; }

/* Employee dialog tabs */
.emp-tabs.nav-tabs {
    border-bottom: 1px solid var(--line, #E7E9EF);
    margin-bottom: 16px;
    gap: 2px;
}
.emp-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--ink-soft, #55606E);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 0;
}
.emp-tabs .nav-link:hover { color: var(--ink, #0B2E63); }
.emp-tabs .nav-link.active {
    color: var(--brass-deep, #9A6B1E);
    border-bottom-color: var(--brass, #B8892E);
    background: none;
}
.emp-tabpane { animation: empFade .15s ease; }
@keyframes empFade { from { opacity: 0; } to { opacity: 1; } }


/* ============================================================
   ACCOUNTING DIALOGS — ADDITIONS
   Append to app.css.
   Covers: New voucher, New vendor bill, Add bank/cash account,
   Control & receipt accounts (GL mapping).
   ============================================================ */

/* Line-item tables inside modals: let them scroll horizontally on small widths */
.dlg-linetable { overflow-x: auto; margin-top: 4px; }
.dlg-linetable table { margin: 0; }
.dlg-linetable > table > thead > tr > th {
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: var(--ink-soft);
    background: #F7F5EF; border-bottom: 1px solid var(--line); padding: 8px 8px;
    white-space: nowrap;
}
.dlg-linetable > table > tbody > tr > td { padding: 5px 6px; vertical-align: middle; border-top: 1px solid #EFF1F5; }
.dlg-linetable .dlg-field { margin: 0; }
.dlg-linetable .form-control, .dlg-linetable .form-select { border: 0; box-shadow: none; }
.dlg-linetable .form-control:focus, .dlg-linetable .form-select:focus { box-shadow: none; }
.dlg-linetable .bl-amt { text-align: right; background: #F7F8FA; border: 1px solid #EEF0F4; border-radius: 8px; }

/* Dr / Cr prefix tiles inside the debit/credit cells */
.dlg-field.dlg-drcr .ico { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.dlg-field.dlg-drcr .ico-dr { color: #1D5FD8; }
.dlg-field.dlg-drcr .ico-cr { color: #9A6B1E; }

/* Row delete button */
.btn-linedel {
    border: 1px solid var(--line); background: #fff; border-radius: 9px;
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-soft); cursor: pointer; transition: all .12s ease;
}
.btn-linedel:hover { border-color: #E4B4B0; color: var(--danger, #B3261E); background: #FCF3F2; }

/* Quick-template buttons (voucher) */
.jv-templates {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin: 4px 0 12px;
}
.jv-tpl-label { font-size: 12.5px; color: var(--ink-soft); margin-right: 2px; }
.jv-tpl {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #CFDBF2; background: #fff; color: var(--accent, #1D5FD8);
    border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.jv-tpl:hover { background: #EEF3FD; border-color: #9FB6DD; }
.jv-tpl svg { width: 15px; height: 15px; }

/* Voucher totals line */
.jv-totals { font-size: 13px; color: var(--ink); }

/* Vendor bill totals card */
.bill-totals {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: #F7F9FC;
}
.bill-totals > div {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 18px; min-width: 110px;
    border-left: 1px solid #E9EDF3;
}
.bill-totals > div:first-child { border-left: 0; }
.bill-totals span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.bill-totals strong { font-size: 14px; color: var(--ink); }
.bill-total-hi { background: var(--brass-wash, #FBF3E2); }
.bill-total-hi strong { color: var(--brass-deep, #9A6B1E); }

/* GL mapping mono inputs keep a subtle monospace look */
.gl-key.mono, .cc-map.mono { font-family: var(--mono, monospace); }


/* ============================================================
   CASHIER SHIFT + ADD ACCOUNT + GIFT VOUCHER — ADDITIONS
   Append to app.css.
   ============================================================ */

/* ---- Cashier shift screen ---- */
.ks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ks-head-l { display: flex; align-items: center; gap: 12px; }
.ks-head-ico {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brass-wash, #FBF3E2); color: var(--brass-deep, #9A6B1E);
}
.ks-status {
    display: inline-flex; align-items: center; gap: 7px;
    background: #E9F6EE; color: #147A5A; font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 999px;
}
.ks-dot { width: 8px; height: 8px; border-radius: 50%; background: #1AA06D; display: inline-block; }

.ks-section-head {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink);
    border-left: 3px solid var(--brass, #B8892E); padding-left: 9px; margin: 4px 0 14px;
}
.ks-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .ks-tiles { grid-template-columns: repeat(2, 1fr); } }
.ks-tile {
    border: 1px solid var(--line, #E7E9EF); border-radius: 14px; padding: 16px 12px;
    text-align: center; background: #fff;
}
.ks-tile-ico {
    width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brass-wash, #FBF3E2); color: var(--brass-deep, #9A6B1E);
}
.ks-upi { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--brass-deep, #9A6B1E); border: 1.5px solid currentColor; border-radius: 5px; padding: 1px 4px; }
.ks-tile-val { font-size: 20px; font-weight: 700; color: var(--ink, #0B2E63); }
.ks-tile-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft, #55606E); margin-top: 3px; }

.ks-drawer {
    position: relative; border: 1px solid var(--line, #E7E9EF); border-radius: 14px;
    background: linear-gradient(180deg, #FCFAF4, #FBF6EA);
    padding: 22px; text-align: center; margin-bottom: 8px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ks-drawer-val { font-size: 28px; font-weight: 700; color: var(--brass-deep, #9A6B1E); }
.ks-drawer-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft, #55606E); }
.ks-safe { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: #E7D3A8; }
@media (max-width: 700px) { .ks-safe { display: none; } }

/* ---- Add account: checkbox / switch rows ---- */
.dlg-switch-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.dlg-switch-line .form-check-input {
    width: 20px; height: 20px; margin: 1px 0 0; flex: none; cursor: pointer;
    border-radius: 6px; border: 1.5px solid #CBD2DE;
}
.dlg-switch-line .form-check-input:checked { background-color: var(--brass, #B8892E); border-color: var(--brass, #B8892E); }
.dlg-switch-line span { font-size: 13.5px; color: var(--ink, #0B2E63); line-height: 1.35; }

/* Address textarea inside an icon field aligns the icon to the top */
.dlg-field textarea.form-control { padding-top: 8px; min-height: 60px; resize: vertical; }
.field-ico.dlg-field:has(textarea) .ico { align-self: flex-start; padding-top: 8px; }


/* ============================================================
   PROCUREMENT — New purchase order / request line boxes
   Append to app.css.
   ============================================================ */

/* Framed section around a line table (ITEMS / TAXES) */
.dlg-linebox {
    border: 1px solid var(--line, #E7E9EF); border-radius: 14px;
    background: #fff; overflow: hidden;
}
.dlg-linebox-head {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft, #55606E);
    background: linear-gradient(180deg, #FBF6EA, #FBF3E2);
    padding: 9px 14px; border-bottom: 1px solid var(--line, #E7E9EF);
}
.dlg-linebox .dlg-addline { margin: 10px 14px 12px; }

.dlg-linewrap { overflow-x: auto; }

/* the line table header cells use the same uppercase treatment */
.dlg-linetable thead th {
    font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-faint, #8A93A2);
    text-transform: uppercase; padding: 8px 8px; border-bottom: 1px solid var(--line, #E7E9EF);
    text-align: left; background: transparent;
}
.dlg-linetable td { padding: 7px 8px; vertical-align: middle; }
.dlg-linetable .field-ico { margin: 0; }

/* read-only computed amount cells */
.dlg-amt {
    background: #F3F5F9 !important; text-align: right; font-variant-numeric: tabular-nums;
    color: var(--ink, #0B2E63); font-weight: 600;
}

/* Add line / add tax button, ghost style with a plus */
.dlg-addline { display: inline-flex; align-items: center; gap: 6px; }

/* delete cell */
.dlg-linedel-cell { text-align: center; width: 44px; }
.btn-linedel {
    border: none; background: transparent; color: var(--ink-faint, #8A93A2);
    cursor: pointer; padding: 5px; border-radius: 8px; line-height: 0;
}
.btn-linedel:hover { background: #FBE9E7; color: var(--danger, #B3261E); }

/* Total row under the tax box */
.dlg-total-row {
    display: flex; align-items: baseline; justify-content: flex-end; gap: 16px;
    padding: 14px 4px 2px;
}
.dlg-total-lbl { font-size: 14px; color: var(--ink-soft, #55606E); }
.dlg-total-val { font-size: 24px; font-weight: 800; color: var(--ink, #0B2E63); font-variant-numeric: tabular-nums; }


/* ============================================================
   RECEIVE GOODS — line box footer (Total Items / Grand Total)
   Append to app.css.
   ============================================================ */
.dlg-linebox-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 14px 12px; flex-wrap: wrap;
}
.dlg-foot-totals { display: flex; align-items: baseline; gap: 18px; margin-left: auto; }
.dlg-foot-lbl { font-size: 13px; color: var(--ink-soft, #55606E); }
.dlg-foot-lbl b { color: var(--ink, #0B2E63); }
.dlg-foot-grand { font-size: 20px; font-weight: 800; color: var(--ink, #0B2E63); font-variant-numeric: tabular-nums; }



/* ============================================================
   COMPACT SIDEBAR (v88) — narrower nav, tighter type.
   ============================================================ */
.sidebar { width: 222px; flex: 0 0 222px; }
.brand { padding: 16px 14px 12px; }
.brand::before { left: 14px; top: 15px; width: 29px; height: 29px; border-radius: 9px; }
.brand-mark { margin-left: 38px; font-size: 15px; }
.brand-sub { margin-left: 38px; font-size: 9.5px; letter-spacing: .12em; }
.nav-group { font-size: 9.5px; padding: 13px 8px 5px; letter-spacing: .14em; }
.nav-link-x { padding: 6px 8px; gap: 8px; font-size: 12.5px; border-radius: 8px; }
.nav-link-x .ico { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; font-size: 11px; }
.sidebar-foot { padding: 10px 14px 12px; font-size: 11.5px; }


/* ============================================================
   NISTTECH rebrand (v107) — image logo replaces the CSS "M" chip.
   ============================================================ */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand::before, .brand::after { display: none; content: none; }
.brand-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; padding: 4px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-mark { margin-left: 0; letter-spacing: .02em; }
.brand-sub { margin-left: 0; }
