/* ==================================================================
   Hotel system – design system
   Calm "lagoon teal" for actions, warm "sunset amber" for money,
   soft neutral surfaces, Inter typography. Works offline (no CDNs).
=================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* brand */
  --brand: #0e7c74;          /* lagoon teal – primary actions */
  --brand-600: #0b6a63;
  --brand-700: #095852;
  --brand-ink: #0a2e30;      /* sidebar */
  --brand-soft: #e7f5f3;
  --brand-ring: rgba(14, 124, 116, .18);
  --accent: #f2a516;         /* sunset amber – money & highlights */
  --accent-600: #d98c06;
  --accent-soft: #fff6e0;
  /* neutrals */
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #18242b;
  --ink-2: #3d4b53;
  --muted: #6b7a83;
  --line: #e6eaed;
  --line-2: #eef1f3;
  /* status */
  --ok: #15803d; --ok-soft: #e8f7ee;
  --warn: #b45309; --warn-soft: #fff4e0;
  --bad: #be123c; --bad-soft: #ffeaef;
  --info: #0369a1; --info-soft: #e6f3fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .05);
  --sidebar-w: 256px;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 14, 124, 116;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 14, 124, 116;
  --bs-link-hover-color: var(--brand-700);
  --bs-link-hover-color-rgb: 9, 88, 82;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.55;
}

body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.015em; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.min-w-0 { min-width: 0; }
::selection { background: var(--brand-ring); }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; padding: .5rem .95rem; letter-spacing: -.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: all .15s ease; }
.btn-sm { padding: .32rem .65rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(14, 124, 116, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #bfe0dc; --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-soft);
  --bs-btn-active-color: var(--brand-700); background: #fff; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-color: var(--ink-2); --bs-btn-hover-bg: #f4f6f7;
  --bs-btn-hover-border-color: #d7dde1; --bs-btn-active-bg: #eef1f3; box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #3a2500; border: 1px solid var(--accent-600);
  box-shadow: 0 1px 2px rgba(217, 140, 6, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); color: #fff; }
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; }
.btn-link { font-weight: 600; }
.btn:focus-visible { box-shadow: 0 0 0 .2rem var(--brand-ring); }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: var(--radius-sm); padding: .55rem .8rem; border-color: #dbe1e5; background-color: #fff;
  font-size: .9rem; box-shadow: 0 1px 1px rgba(16, 24, 40, .03); }
.form-control::placeholder { color: #9aa6ad; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-ring); }
.form-control[readonly] { background: #f6f8f9; }
.form-check-input { border-color: #c9d1d6; }
.form-check-input:checked, .form-check-input:indeterminate { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--brand-ring); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: .8rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .78rem; }
.input-group > .btn { box-shadow: none; }

/* ---------- layout ---------- */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: radial-gradient(120% 60% at 0% 0%, #12423f 0%, var(--brand-ink) 55%, #071d1f 100%);
  color: #c4d9d6; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.04);
}
.app-sidebar .brand { padding: 1.15rem 1.1rem 1rem; display: flex; align-items: center; gap: .75rem; color: #fff; }
.app-sidebar .brand-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #f8c04a, var(--accent));
  color: #3a2500; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 6px 14px -4px rgba(242, 165, 22, .5); }
.app-sidebar .brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.app-sidebar .brand-name { font-weight: 700; line-height: 1.2; font-size: .95rem; letter-spacing: -.01em; }
.app-sidebar .brand-sub { font-size: .72rem; color: #8fb5b0; }
.app-sidebar nav { flex: 1; overflow-y: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #6f9b96; padding: 1.1rem 1.35rem .35rem; font-weight: 700; }
.app-sidebar .nav-link { color: #c4d9d6; padding: .5rem .8rem; margin: 1px .65rem; border-radius: 10px;
  display: flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 500; transition: background .12s ease, color .12s ease; }
.app-sidebar .nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; color: #8fb5b0; transition: color .12s ease; }
.app-sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-sidebar .nav-link:hover i { color: #fff; }
.app-sidebar .nav-link.active { background: rgba(94, 234, 212, .12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #5eead4; }
.app-sidebar .nav-link.active i { color: #5eead4; }
.app-sidebar .nav-link .badge { margin-left: auto; }
.sidebar-user { margin: .5rem .65rem .9rem; padding: .7rem; border-radius: 12px; background: rgba(255, 255, 255, .05);
  display: flex; align-items: center; gap: .65rem; color: #fff; border: 1px solid rgba(255, 255, 255, .06); }
.sidebar-user .who { min-width: 0; line-height: 1.25; }
.sidebar-user .who strong { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .who span { font-size: .72rem; color: #8fb5b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-user a { color: #8fb5b0; margin-left: auto; font-size: 1.1rem; }
.sidebar-user a:hover { color: #fff; }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line); padding: .65rem 1.75rem; display: flex; align-items: center; gap: 1rem; }
.app-topbar .search { max-width: 460px; flex: 1; position: relative; }
.app-topbar .search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #9aa6ad; }
.app-topbar .search input { padding-left: 2.3rem; background: #f3f5f6; border-color: transparent; box-shadow: none; border-radius: 99px; }
.app-topbar .search input:focus { background: #fff; border-color: var(--brand); }
.app-topbar .kbd { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: .68rem; color: #9aa6ad;
  border: 1px solid var(--line); border-radius: 5px; padding: 0 .35rem; background: #fff; }
.app-content { padding: 1.75rem; flex: 1; max-width: 1480px; width: 100%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #14a196, var(--brand)); color: #fff;
  display: inline-grid; place-items: center; font-weight: 700; font-size: .78rem; flex-shrink: 0; letter-spacing: .02em; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.soft { background: var(--brand-soft); color: var(--brand-700); }

.net-pill { font-size: .74rem; padding: .3rem .65rem; border-radius: 99px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: .35rem; align-items: center; }
.net-pill.online { background: var(--ok-soft); color: var(--ok); }
.net-pill.offline { background: var(--bad-soft); color: var(--bad); }
.topbar-clock { font-size: .8rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
  .app-sidebar.show { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
  .app-topbar { padding: .6rem 1rem; }
}
.sidebar-backdrop { display: none; }
.sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(8, 20, 22, .45); z-index: 1035; }

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.page-head h1 .icon-badge { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(14, 124, 116, .1); }
.page-head p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line-2); padding: .95rem 1.2rem; font-weight: 650; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-header i { color: var(--brand); }
.card-body { padding: 1.2rem; }
.card-footer { border-top: 1px solid var(--line-2); padding: .85rem 1.2rem; }
a.card { transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: #d5dde1; }

.stat { padding: 1.15rem 1.25rem; display: flex; flex-direction: row; gap: 1rem; align-items: center; height: 100%; }
.stat .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat .num { font-size: 1.5rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.ico-teal { background: #d7f3ef; color: #0b6a63; } .ico-amber { background: #fff1d6; color: #b45309; }
.ico-rose { background: #ffe4e9; color: #be123c; } .ico-sky { background: #e0f0fb; color: #0369a1; }
.ico-violet { background: #eee9fe; color: #6d28d9; } .ico-slate { background: #e8ecef; color: #334155; }
.ico-green { background: #def7e7; color: #15803d; }

.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  padding: 1.1rem .5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: .85rem; transition: all .15s ease; height: 100%; box-shadow: var(--shadow-sm); }
.quick-action i { font-size: 1.55rem; }
.quick-action:hover { border-color: #bfe0dc; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--brand-700); }

/* ---------- tables & lists ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; font-size: .875rem; }
.table > :not(caption) > * > * { padding: .75rem 1rem; vertical-align: middle; border-bottom-color: var(--line-2); }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  background: #f8fafb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { --bs-table-hover-bg: #f5faf9; }
.table td.fw-semibold, .table td.text-end { white-space: nowrap; }
.table td.text-end { font-variant-numeric: tabular-nums; }
.row-link { cursor: pointer; }
.list-group-item { border-color: var(--line-2); padding: .8rem 1.2rem; }
.empty { text-align: center; padding: 2.75rem 1rem; color: var(--muted); }
.empty i { font-size: 2.2rem; display: block; margin-bottom: .6rem; opacity: .45; }

.badge { font-weight: 600; padding: .38em .7em; border-radius: 7px; font-size: .74em; letter-spacing: .01em; }
.badge-soft-success { background: var(--ok-soft); color: #166534; } .badge-soft-danger { background: var(--bad-soft); color: #9f1239; }
.badge-soft-info { background: var(--info-soft); color: #075985; } .badge-soft-warning { background: var(--warn-soft); color: #92400e; }
.badge-soft-secondary { background: #eef1f3; color: #475569; } .badge-soft-primary { background: #dcf3f0; color: #0b5a54; }
.badge-soft-dark { background: #e2e8f0; color: #0f172a; }

.filter-pills .btn { border-radius: 99px; font-size: .8rem; padding: .32rem .85rem; }
.filter-pills .btn-light { box-shadow: none; }

/* ---------- room board ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: .9rem; }
.room-tile { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: .9rem .95rem; position: relative;
  transition: all .15s ease; display: flex; flex-direction: column; min-height: 156px; box-shadow: var(--shadow-sm); overflow: hidden; }
.room-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tile); }
.room-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.room-tile .no { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.room-tile .type { font-size: .76rem; color: var(--muted); }
.room-tile .state { font-size: .74rem; font-weight: 700; color: var(--tile); display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem;
  background: color-mix(in srgb, var(--tile) 10%, white); padding: .18rem .5rem; border-radius: 99px; align-self: flex-start; }
.room-tile .who { font-size: .82rem; margin-top: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.room-tile .actions { margin-top: auto; padding-top: .65rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.room-tile .actions .btn { font-size: .74rem; padding: .25rem .55rem; border-radius: 8px; }
.tile-success { --tile: #16a34a; } .tile-danger { --tile: #e11d48; } .tile-info { --tile: #0284c7; }
.tile-warning { --tile: #d97706; } .tile-secondary { --tile: #64748b; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- availability grid ---------- */
.avail { font-size: .78rem; }
.avail th, .avail td { text-align: center; padding: .35rem !important; min-width: 56px; }
.avail td.room { text-align: left; font-weight: 700; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 112px; }
.avail .cell { display: block; border-radius: 7px; padding: .38rem .2rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 82px; }
.avail .free { background: #f0fbf4; color: #15803d; } .avail .free:hover { background: #c7f0d6; }
.avail .res { background: var(--info-soft); color: #075985; } .avail .occ { background: var(--bad-soft); color: #9f1239; }
.avail th.today { background: var(--accent-soft) !important; color: #92400e; }

/* ---------- folio / booking ---------- */
.money-box { border-radius: var(--radius); padding: 1.05rem 1.2rem; border: 1px solid transparent; }
.money-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .8; font-weight: 700; }
.money-box .val { font-size: 1.55rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.owe { background: var(--bad-soft); color: #9f1239; border-color: #ffd3dd; }
.clear { background: var(--ok-soft); color: #166534; border-color: #c9eed7; }
.credit { background: var(--info-soft); color: #1e40af; border-color: #cfe5f6; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: .8rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-ico { width: 30px; height: 30px; border-radius: 50%; background: #f1f5f4; display: grid; place-items: center; flex-shrink: 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: .45rem .8rem; font-size: .88rem; }
.kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; font-weight: 600; }

/* ---------- POS ---------- */
.menu-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .85rem; cursor: pointer; height: 100%;
  transition: all .12s ease; user-select: none; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.menu-item:hover { border-color: var(--accent); box-shadow: 0 6px 16px -6px rgba(242, 165, 22, .45); }
.menu-item:active { transform: scale(.97); }
.menu-item .price { color: var(--brand-700); font-weight: 750; margin-top: auto; font-variant-numeric: tabular-nums; }
.menu-item.off { opacity: .45; pointer-events: none; }
.menu-item .route { position: absolute; top: .6rem; right: .6rem; font-size: .66rem; }
.menu-item.bump { animation: bump .25s ease; }
@keyframes bump { 50% { transform: scale(.96); border-color: var(--accent); } }
.cart-line { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.qty-btn { width: 28px; height: 28px; padding: 0; border-radius: 8px; box-shadow: none; }
.cat-tabs .nav-link { border-radius: 99px; color: var(--ink-2); font-weight: 600; font-size: .82rem; padding: .38rem .9rem; background: #fff; border: 1px solid var(--line); }
.cat-tabs .nav-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cart-route { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: .65rem 0 .1rem; }

/* ---------- auth / setup ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-art { background: radial-gradient(120% 90% at 10% 0%, #17a093 0%, #0d5c56 38%, var(--brand-ink) 75%, #041618 100%); color: #fff; padding: 3rem 3.25rem;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -140px; bottom: -160px;
  background: radial-gradient(circle, rgba(242, 165, 22, .35), rgba(242, 165, 22, 0) 70%); }
.auth-art h2 { font-size: 2.35rem; font-weight: 800; max-width: 480px; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
.auth-art .feat { display: flex; gap: .75rem; align-items: center; margin: .6rem 0; color: #d6ebe8; }
.auth-art .feat i { color: var(--accent); font-size: 1.15rem; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.auth-form .inner { width: 100%; max-width: 420px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center;
  font-weight: 700; font-size: .8rem; margin-right: .55rem; }

/* ---------- printable pages (receipt view, invoice) ---------- */
.receipt { background: #fff; margin: 1.5rem auto; padding: 1.2rem 1.1rem; font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.receipt.r-80mm { width: 80mm; } .receipt.r-58mm { width: 58mm; }
.receipt.r-a4 { width: 190mm; font-family: var(--bs-body-font-family); font-size: 14px; padding: 2rem; }
.receipt h3 { font-size: 16px; font-weight: 800; margin: 0; }
.receipt .center { text-align: center; } .receipt hr { border-top: 1px dashed #111; opacity: 1; margin: .55rem 0; }
.receipt table { width: 100%; } .receipt td { padding: 2px 0; vertical-align: top; } .receipt .r { text-align: right; }
.receipt .big { font-size: 18px; font-weight: 800; }
.print-bar { position: sticky; top: 0; background: var(--brand-ink); padding: .7rem; display: flex; gap: .5rem; justify-content: center; z-index: 5; }
@media print {
  @page { margin: 6mm; }
  body { background: #fff !important; }
  .no-print, .print-bar, .app-sidebar, .app-topbar, .rp-tray { display: none !important; }
  .receipt { box-shadow: none; margin: 0; }
  .app-main { margin: 0 !important; }
  .card { border: 0; box-shadow: none; }
}

/* ---------- feedback ---------- */
.toast-container { z-index: 2000; }
.toast { border-radius: 12px; box-shadow: var(--shadow-md); font-weight: 500; }
.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.spinner-pulse { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
  font-size: 2rem; margin: 0 auto; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .4); } 70% { box-shadow: 0 0 0 22px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.alert { border-radius: 12px; border-width: 1px; }
.alert-warning { background: var(--warn-soft); border-color: #fde3b0; color: #7c3a06; }
.alert-info { background: var(--info-soft); border-color: #cfe5f6; color: #0c4a6e; }
.alert-danger { background: var(--bad-soft); border-color: #ffd0db; color: #881337; }
.dropdown-menu { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: .35rem; font-size: .875rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }
.dropdown-item:active { background: var(--brand); }
.modal-content { border-radius: 16px; border: 0; box-shadow: 0 24px 60px -12px rgba(16, 24, 40, .3); }
.modal-header { border-bottom-color: var(--line-2); padding: 1rem 1.25rem; } .modal-footer { border-top-color: var(--line-2); }
.modal-title { font-weight: 700; font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; }
.progress { background: #eef1f3; }

/* ---------- RBAC ---------- */
.role-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 99px; font-size: .75rem;
  font-weight: 600; background: color-mix(in srgb, var(--rc) 12%, white); color: color-mix(in srgb, var(--rc) 82%, black); margin: 0 .25rem .25rem 0; }
.role-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); }
.role-card { position: relative; overflow: hidden; }
.role-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rc); }
.perm-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perm-group-head { background: #f8fafb; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.perm-row { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 1rem; border-top: 1px solid var(--line-2); cursor: pointer; margin: 0; }
.perm-row:hover { background: #f5faf9; }
.perm-row .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.perm-row.locked { opacity: .55; cursor: not-allowed; }
.perm-code { font-family: ui-monospace, monospace; font-size: .7rem; color: var(--muted); }
.matrix td.yes { color: #16a34a; text-align: center; } .matrix td.no { color: #cbd5e1; text-align: center; }
.matrix .grp td { background: #f8fafb; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.role-pick { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; display: flex; gap: .7rem; cursor: pointer; height: 100%; margin: 0; background: #fff; transition: all .12s ease; }
.role-pick:hover { border-color: #bfe0dc; }
.role-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }

/* ---------- printers ---------- */
.printer-badge { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.printer-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.st-kitchen { background: #ffedd5; color: #c2410c; } .st-bar { background: #eee9fe; color: #6d28d9; }
.st-receipt { background: #d7f3ef; color: #0b6a63; } .st-other { background: #e8ecef; color: #334155; }

@media (max-width: 575.98px) {
  .stat { padding: .85rem; gap: .65rem; }
  .stat .ico { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 10px; }
  .stat .num { font-size: 1.12rem; }
  .page-head h1 { font-size: 1.22rem; }
  .page-head h1 .icon-badge { width: 36px; height: 36px; }
}
.card-header .btn i, .card-header .btn-primary i { color: inherit; }
.stat .num { white-space: nowrap; font-size: 1.35rem; }
