:root {
  --bg: #f5f4f0; --panel: #fff; --ink: #1d2320; --ink-2: #5d6661; --line: #e6e3dc; --line-2: #d6d2c8;
  --accent: #1f6f54; --accent-2: #6ba58c; --accent-bg: #e8f2ed; --warn: #b7791f; --warn-bg: #fdf3e1; --err: #c0392b; --err-bg: #fbe9e7; --info: #2b5c9e; --info-bg: #e7eef9;
  --r: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
.offline-banner { position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding: 8px 16px; background: #8b2d2d; color: #fff; text-align: center; font-size: 13px; }
.stale-data-banner { position: fixed; z-index: 19; top: 34px; left: 0; right: 0; padding: 7px 16px; background: #8a6516; color: #fff; text-align: center; font-size: 13px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
svg.lucide { width: 16px; height: 16px; stroke-width: 2; vertical-align: -3px; flex: none; }
small { display: block; color: var(--ink-2); font-size: 12px; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
h2 { margin: 0 0 6px; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
h3.sec { margin: 22px 0 10px; font-size: 15px; }
h4 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--ink-2); }
.neg { color: var(--err); }
.sub { color: var(--ink-2); margin: 4px 0 0; }
.empty { color: var(--ink-2); padding: 12px 16px; margin: 0; }

/* layout */
.side { width: 232px; flex: none; background: #17231e; color: #d8e3dd; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; }
.brand b { color: #fff; font-size: 15px; } .brand small { color: #8fa89c; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; font-size: 18px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #c5d3cc; text-decoration: none; font-weight: 500; position: relative; }
#nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
#nav a.on { background: rgba(107,165,140,.22); color: #fff; }
#nav .dot { width: 7px; height: 7px; background: #3ecf7a; border-radius: 50%; margin-left: auto; }
.navsec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f8a7d; padding: 16px 10px 6px; }
.navsec-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: #6f8a7d; font: inherit; text-align: left; cursor: pointer; }
.navsec-toggle:hover { color: #d8e3dd; }
.navsec-toggle svg { width: 13px; height: 13px; }
.reset { margin-top: auto; color: #8fa89c !important; border-color: #2b3a33 !important; }
.wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.build-version { padding: 8px 28px 14px; color: var(--ink-2); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.top { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.grow { flex: 1; }
.live { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--accent); font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 0 3px #3ecf7a33; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #3ecf7a11; } }
.demo-role-banner { color: #6b4a09; background: #fff7d6; border: 1px solid #ead79a; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.demo-role-select { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.demo-role-select .inp { padding: 6px 8px; font-size: 12px; }
.import-card, .import-preview { max-width: 980px; }
.import-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.import-files input[type=file] { display: block; width: 100%; margin-top: 7px; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--paper); }
.import-counts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.import-report-block { border-top: 1px solid var(--line); padding: 14px 0; }
.import-report-block h3 { margin: 0 0 8px; }
.import-report-block h4 { margin: 12px 0 5px; font-size: 12px; }
.import-issues { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 12px; }
@media (max-width: 700px) { .import-files { grid-template-columns: 1fr; } }

/* F11: touch-first restaurant POS */
body.restaurant-portal .side { width: 190px; }
body.restaurant-portal .side .reset, body.restaurant-portal #propsel, body.restaurant-portal .top .live { display: none; }
.restaurant-page { max-width: 1480px; margin: -2px auto 0; }
.pos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.pos-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eyebrow { color: var(--ink-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 18px; align-items: start; }
.pos-left { min-width: 0; }
.pos-section-head, .pos-menu-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.pos-section-head h2, .pos-menu-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.pos-live { color: var(--accent); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.pos-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; }
.pos-tables { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; margin-bottom: 24px; }
.pos-table { min-height: 112px; border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pos-table:hover, .pos-table:focus-visible { border-color: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); outline: none; }
.pos-table.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.pos-table.busy { background: #fffaf0; border-color: #dfb864; }
.pos-table-state { font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.pos-table.busy .pos-table-state { color: var(--warn); }
.pos-table strong { font-size: 17px; margin-top: 3px; }
.pos-table-total { margin-top: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.pos-menu-head { border-top: 1px solid var(--line); padding-top: 18px; }
.pos-categories { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; }
.pos-direct-sale { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #c8d9ef; border-radius: 12px; background: #f4f8ff; color: #18324f; text-align: left; cursor: pointer; }
.pos-direct-sale span { grid-row: span 2; color: #2f6b4f; }
.pos-direct-sale b { font-size: .95rem; }
.pos-direct-sale small { color: #66768a; }
.pos-direct-sale.selected { border-color: #2f6b4f; box-shadow: 0 0 0 2px rgba(47,107,79,.12); }
.pos-cart-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.takeaway-toggle { margin: 0 14px 8px; }
.pos-category { min-height: 44px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 8px 13px; color: var(--ink-2); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pos-category.on { color: #fff; border-color: var(--accent); background: var(--accent); }
.pos-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; }
.pos-menu-item { min-height: 102px; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; padding: 12px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: 1fr auto; gap: 4px 8px; text-align: left; color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.pos-menu-item:hover, .pos-menu-item:focus-visible { border-color: var(--accent-2); outline: none; }
.pos-menu-item strong { grid-column: 2; color: var(--accent); font-size: 15px; }
.pos-menu-item small { margin-top: 4px; }
.pos-menu-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 35px; height: 35px; background: var(--accent-bg); border-radius: 10px; font-size: 18px; }
.pos-cart { position: sticky; top: 78px; padding: 0; overflow: hidden; margin: 0; }
.pos-cart-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.pos-cart-head h2 { margin: 3px 0 0; font-size: 18px; }
.pos-cart-items { padding: 4px 16px; min-height: 132px; max-height: 44vh; overflow: auto; }
.pos-cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 7px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pos-cart-main { min-width: 0; }.pos-cart-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-qty { display: flex; align-items: center; gap: 6px; }.pos-qty-btn { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); font-size: 20px; cursor: pointer; }
.pos-remove { width: 34px; height: 34px; border: 0; color: var(--err); background: transparent; cursor: pointer; }
.pos-totals { padding: 13px 18px; background: #f8f7f2; }.pos-totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }.pos-total { border-top: 1px solid var(--line-2); margin-top: 5px; padding-top: 10px !important; font-size: 17px; }.pos-total strong { color: var(--accent); font-size: 21px; }
.pos-settle { width: calc(100% - 36px); margin: 14px 18px 18px; justify-content: center; min-height: 50px; font-size: 15px; }
.pos-empty { min-height: 122px; padding: 22px 4px; display: grid; place-items: center; text-align: center; color: var(--ink-2); }.pos-empty-icon { font-size: 25px; margin-bottom: 3px; }
.pos-footer-note { display: flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 12px; margin-top: 14px; }
.restaurant-settle-form { min-width: min(420px, 100%); }.restaurant-settle-form label[hidden] { display: none; }.restaurant-settle-form h2 { margin-top: 4px; }.restaurant-settle-form label { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; }.restaurant-settle-form .inp { width: 100%; }.settle-fiscal { display: flex !important; grid-template-columns: auto 1fr; align-items: center; font-weight: 500 !important; }.settle-fiscal input { width: 18px; height: 18px; }
@media (max-width: 920px) { .pos-layout { grid-template-columns: 1fr; }.pos-cart { position: static; }.pos-cart-items { max-height: none; } }
@media (max-width: 620px) { main { padding: 16px 12px 40px; }.top { padding: 10px 12px; }.pos-head { align-items: flex-start; flex-direction: column; }.pos-tables { grid-template-columns: repeat(2, minmax(120px, 1fr)); }.pos-menu-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }.pos-menu-item { min-height: 96px; padding: 10px; }.pos-cart-row { grid-template-columns: minmax(0, 1fr) auto; }.pos-cart-row > strong { grid-column: 1; grid-row: 2; }.pos-cart-row > .pos-remove { grid-column: 2; grid-row: 1 / span 2; }.pos-cart { margin: 0; } body.restaurant-portal .side { width: 178px; } }
@media (max-width: 430px) { body.restaurant-portal .side { display: none; } .pos-menu-grid { gap: 8px; }.pos-menu-item { grid-template-columns: 28px 1fr; font-size: 12px; }.pos-menu-icon { width: 28px; height: 28px; font-size: 15px; }.pos-tables { gap: 8px; } }

/* F54: touch-first kitchen display; deliberately contains no price/totals styles. */
.kds-page { max-width: 1480px; margin: 0 auto; }
.kds-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; }
.kds-order { min-width: 0; }
.kds-order > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kds-order h2 { margin: 4px 0 2px; }
.kds-items { display: grid; gap: 10px; padding-top: 12px; }
.kds-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.kds-item-main { display: grid; gap: 5px; min-width: 0; }
.kds-item-main b { overflow-wrap: anywhere; }
.kds-item-main small { color: var(--muted); }
.kds-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #e5e7eb); }
.kds-order-foot .btn[disabled] { opacity: .5; cursor: not-allowed; }
.kds-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.kds-empty { padding: 48px 20px; text-align: center; }
.kds-empty-icon { font-size: 42px; margin-bottom: 8px; }
.pos-send-kitchen { margin-top: 10px; width: 100%; justify-content: center; }
@media (max-width: 900px) { .kds-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 620px) { .kds-grid { grid-template-columns: 1fr; } .kds-item { align-items: flex-start; flex-direction: column; } .kds-item-actions { justify-content: flex-start; } }

/* F47: visual menu and category management */
.restaurant-menu-admin { max-width: 1480px; margin: 0 auto; }
.restaurant-menu-admin > .head { margin-bottom: 16px; }
.restaurant-admin-grid, .restaurant-admin-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.restaurant-menu-admin .card { min-width: 0; }
.restaurant-menu-admin h2, .restaurant-menu-admin h3 { margin-top: 0; }
.restaurant-menu-admin textarea.inp { min-height: 70px; resize: vertical; }
.restaurant-menu-admin .check-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.restaurant-menu-admin .check-row input { width: 18px; height: 18px; }
.restaurant-menu-admin .tbl small { display: block; color: var(--muted); margin-top: 3px; }
.restaurant-menu-admin .tbl td, .restaurant-menu-admin .tbl th { vertical-align: middle; }
@media (max-width: 800px) { .restaurant-admin-grid, .restaurant-admin-tables { grid-template-columns: 1fr; } .restaurant-menu-admin .head { align-items: flex-start; flex-direction: column; } }

/* F56: menu administration is intentionally one focused section at a time. */
.restaurant-menu-admin { max-width: min(720px, 100%); min-width: 0; overflow-x: clip; }
.restaurant-admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.restaurant-admin-tabs button { flex: 1 1 140px; min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.restaurant-admin-tabs button.on { border-color: var(--accent); background: var(--panel); color: var(--accent); box-shadow: var(--shadow); }
.restaurant-admin-grid, .restaurant-admin-tables { display: block; margin-bottom: 14px; }
.restaurant-admin-grid > section, .restaurant-admin-tables > section { display: none; width: 100%; min-width: 0; margin-bottom: 14px; box-sizing: border-box; }
.restaurant-menu-admin[data-admin-tab="products"] .restaurant-admin-grid > section:nth-child(1), .restaurant-menu-admin[data-admin-tab="products"] .restaurant-admin-tables > section:nth-child(1),
.restaurant-menu-admin[data-admin-tab="categories"] .restaurant-admin-grid > section:nth-child(2), .restaurant-menu-admin[data-admin-tab="categories"] .restaurant-admin-tables > section:nth-child(2),
.restaurant-menu-admin[data-admin-tab="tables"] .restaurant-admin-grid > section:nth-child(3), .restaurant-menu-admin[data-admin-tab="tables"] .restaurant-admin-tables > section:nth-child(3) { display: block; }
.restaurant-menu-admin .tscroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.restaurant-menu-admin .tbl { min-width: 560px; }
.restaurant-menu-admin .form, .restaurant-menu-admin .card { min-width: 0; }
.restaurant-menu-admin .form > *, .mbox .form > * { min-width: 0; }
.restaurant-menu-admin .form .row-end, .restaurant-settle-form .row-end { grid-column: 1 / -1; flex-wrap: wrap; }
.restaurant-menu-admin .inp, .mbox .form .inp, .mbox .form select, .mbox .form textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.restaurant-menu-admin .head > * { min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.top-logout { padding: 6px 10px; font-size: 12px; }
body.auth-required .side, body.auth-required .top { display: none; }
body.auth-required .wrap { width: 100%; }
main { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.demo-note { color: #7c5b08; background: #fff3c4; border: 1px solid #ead28b; border-radius: 999px; padding: 6px 10px; font-size: 11px; }
.subscription-grid { align-items: start; }
.subscription-kpis { margin-bottom: 16px; }
.subscription-method { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-bg); }
.subscription-form { margin-top: 12px; }
.subscription-form .row-end { margin-top: 2px; }
.form-note { color: var(--ink-2); font-size: 11px; line-height: 1.45; }
.table-scroll { overflow-x: auto; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* controls */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #185c45; }
.btn.danger { color: var(--err); border-color: #eec4bf; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.big { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: wait; }
.inp, .form input, .form select, .bk-search input, .bk-search select, .pay input { font: inherit; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); min-width: 0; }
.inp:focus, .form input:focus { outline: 2px solid var(--accent-2); outline-offset: -1px; }
.inp.num { width: 84px; } .inp.num.s { width: 58px; }
#resq, #guestq { width: 240px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs button, .seg button { font: inherit; background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--accent); border-color: var(--accent); }
.seg { display: flex; background: #ebe8e1; border-radius: 10px; padding: 3px; }
.seg button { border-radius: 8px; border: 0; margin: 0; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* pills */
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #efede7; color: var(--ink-2); white-space: nowrap; }
.pill.ok, .st-cazat.pill { background: var(--accent-bg); color: var(--accent); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }
.pill.info, .st-confirmata.pill { background: var(--info-bg); color: var(--info); }
.pill.vip { background: #f3e8fb; color: #7a3fa0; }
.pill.muted { opacity: .7; }
.st-anulata.pill { background: var(--err-bg); color: var(--err); }
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.src::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card .pad { padding: 16px 18px 0; }
.card.note { background: #fbfaf6; color: var(--ink-2); display: flex; gap: 10px; }
.access-denied { max-width: 620px; margin: 48px auto; text-align: center; padding: 42px 28px; }
.access-denied-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--warn); background: var(--warn-bg); }
.access-denied-icon svg { width: 25px; height: 25px; }
.access-denied h1 { margin-bottom: 8px; }
.access-denied p { margin: 6px 0; }
.access-denied .btn { margin-top: 18px; }
.access-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.access-actions .btn { margin-top: 0; }
.access-role-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.support-widget { position: fixed; z-index: 18; right: 22px; bottom: 22px; display: grid; justify-items: end; gap: 10px; }
.support-fab { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 15px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(31,111,84,.28); font: inherit; font-weight: 700; cursor: pointer; }
.support-fab:hover, .support-fab:focus-visible { background: #185c45; outline: 3px solid var(--accent-bg); }
.support-panel { width: min(370px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 110px)); overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 14px 42px rgba(23,35,30,.2); }
.support-panel header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.support-panel header b { font-size: 17px; }.support-panel header small { margin-top: 3px; max-width: 280px; }
.support-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--ink-2); cursor: pointer; }
.support-context { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; padding: 9px; border-radius: 10px; background: var(--info-bg); }.support-context small { flex-basis: 100%; }
#support-form label { display: grid; gap: 6px; margin-top: 13px; font-weight: 600; }#support-form textarea { width: 100%; resize: vertical; }
.support-chat { display: flex; flex-direction: column; gap: 8px; max-height: 270px; overflow: auto; margin: 12px 0; padding: 4px 2px; }.support-bubble { max-width: 88%; padding: 9px 11px; border-radius: 13px; background: #f1f3f1; }.support-bubble.user { align-self: flex-end; background: var(--accent-bg); border-bottom-right-radius: 4px; }.support-bubble.agent { align-self: flex-start; border-bottom-left-radius: 4px; }.support-bubble small { font-size: 10px; font-weight: 700; }.support-bubble p { margin: 3px 0 0; overflow-wrap: anywhere; }.support-welcome { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); }.support-welcome svg { color: var(--accent); flex: none; }.support-welcome p { margin: 0; }.support-composer { border-top: 1px solid var(--line); padding-top: 11px; }.support-composer-tools { display: flex; align-items: center; gap: 8px; }.support-composer-tools .inp { width: auto; padding: 6px 8px; font-size: 12px; }.support-composer-tools small { flex: 1; text-align: right; }.support-composer-row { display: flex; gap: 7px; align-items: flex-end; margin-top: 8px; }.support-composer-row textarea { flex: 1; min-height: 42px; }.support-composer-row .btn { width: 42px; height: 42px; justify-content: center; padding: 0; }
.support-recent { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }.support-recent ul { list-style: none; padding: 0; margin: 8px 0 0; }.support-recent li { display: grid; grid-template-columns: auto 1fr; gap: 4px 7px; padding: 8px 0; border-bottom: 1px solid var(--line); }.support-recent li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }.support-recent li small { grid-column: 2; }
.auth-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: 420px; max-width: 100%; padding: 32px; }
.auth-card h1 { margin-top: 12px; }
.auth-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 25px; font-weight: 700; }
.auth-error { margin: 16px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--err-bg); color: var(--err); }
.auth-demo-note { color: var(--ink-2); font-size: 12px; margin: 16px 0 0; text-align: center; }
.users-card { padding: 0; overflow: hidden; }
.users-security { display: flex; gap: 10px; align-items: baseline; padding: 14px 18px; background: var(--accent-bg); color: var(--accent); }
.users-security span { color: var(--ink-2); font-size: 12px; }
.users-table td small { margin-top: 3px; }
.users-table .inp { padding: 6px 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.daily-list { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--panel-2, var(--panel)); }
.daily-list h4 { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.daily-list h4 small { color: var(--ink-2); font-weight: 500; }
.daily-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.daily-row span { min-width: 0; }
.daily-row small { display: block; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.kpis.small { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi span { color: var(--ink-2); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.kpi b { display: block; font-size: 24px; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .kpi.accent span, .kpi.accent small { color: #cfe6db; }
.kpi.bad b { color: var(--err); }
.big { font-size: 28px; letter-spacing: -.02em; } .big small { display: inline; font-size: 14px; font-weight: 500; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.lrow:first-of-type { border-top: 0; }
.lrow .right { display: flex; gap: 10px; align-items: center; }
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #faf8f3; margin-bottom: 6px; color: var(--ink); text-decoration: none; align-items: flex-start; }
.alert[href]:hover { background: var(--warn-bg); }
.logrow { display: grid; grid-template-columns: 44px 110px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.logrow:first-child { border: 0; } .logrow time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.log { max-height: 420px; overflow: auto; }
.spark { display: flex; gap: 4px; align-items: flex-end; height: 90px; }
.spark.tall { height: 160px; margin-top: 8px; }
.sb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.sb i { width: 100%; border-radius: 4px 4px 2px 2px; display: block; }
.sb small { font-size: 10px; } .sb em { font-style: normal; font-size: 9.5px; color: var(--ink-2); }

/* table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr[data-open] { cursor: pointer; } .tbl tbody tr:hover { background: #fbfaf6; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; } .tbl .c { text-align: center; }
.tbl td .btn + .btn { margin-left: 6px; }
.rates td.c b { display: block; font-variant-numeric: tabular-nums; } .rates .we { background: #f7f5ef; }
.tscroll { overflow-x: auto; }

/* calendar */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; align-items: center; }
.legend span { display: flex; gap: 5px; align-items: center; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .legend .sep { width: 1px; height: 14px; background: var(--line-2); }
.cal { padding: 0; overflow: hidden; }
.cal-scroll { overflow: auto; max-height: calc(100vh - 230px); }
.cal-head, .cal-row, .cal-grp { display: flex; min-width: max-content; }
.cal-head { position: sticky; top: 0; z-index: 3; background: #fbfaf7; border-bottom: 1px solid var(--line); }
.cal-rn { width: 150px; flex: none; position: sticky; left: 0; z-index: 2; background: var(--panel); padding: 0 12px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.cal-head .cal-rn { background: #fbfaf7; }
.cal-rn.grp { font-weight: 700; background: #f3f1ea; border-left: 4px solid var(--pc); }
.cal-days { display: flex; } .cal-days > div { width: 46px; text-align: center; padding: 6px 0; line-height: 1.15; }
.cal-days b { display: block; font-size: 15px; } .cal-days small { font-size: 10px; }
.cal-days .we { background: #f3f1ea; } .cal-days .td { background: var(--accent); color: #fff; border-radius: 8px; } .cal-days .td small { color: #cfe6db; }
.cal-grp { background: #f3f1ea; border-top: 1px solid var(--line-2); }
.cal-occ { display: flex; } .cal-occ span { width: 46px; text-align: center; font-size: 11px; font-weight: 600; padding: 6px 0; color: color-mix(in srgb, var(--accent) calc(var(--o) * 100%), #9aa39e); }
.cal-occ span::after { content: '%'; font-weight: 400; opacity: .6; }
.cal-type { padding: 6px 12px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: #fbfaf7; border-top: 1px solid var(--line); position: sticky; left: 0; width: max-content; }
.cal-type small { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cal-row { height: 38px; border-top: 1px solid var(--line); }
.cal-cells { display: flex; position: relative; }
.cell { width: 46px; flex: none; border-right: 1px solid #f0eee8; cursor: cell; }
.cell.we { background: #faf9f5; } .cell.td { background: #eaf3ee; }
.cell:hover { background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent-2); }
.bar { position: absolute; top: 5px; height: 28px; border-radius: 7px; background: var(--c); color: #fff; font-size: 12px; font-weight: 600; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; cursor: grab; touch-action: none; box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: skewX(-12deg); }
.bar > * , .bar { text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.cal-bar-label { pointer-events: none; overflow: hidden; text-overflow: ellipsis; }
.cal-handle-end { position: absolute; z-index: 2; top: 0; right: 0; width: 12px; height: 100%; cursor: ew-resize; background: rgba(255,255,255,.24); border-left: 1px solid rgba(255,255,255,.4); }
.bar.cal-interacting { cursor: grabbing; opacity: .72; z-index: 3; }
.bar.cal-keyboard-target, .bar:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; z-index: 3; }
.cal-dnd-preview { margin: -4px -2px 12px; padding: 9px 12px; border: 1px solid #b8d9c6; border-radius: 9px; background: var(--accent-bg); color: #174934; font-weight: 700; }
.cell.cal-drop-target { background: #cdebd8; box-shadow: inset 0 0 0 2px #52a779; }
.cell.cal-drop-target-edge { box-shadow: inset 0 0 0 2px var(--accent); }
.toast.calendar-undo-toast { display: flex; align-items: center; gap: 8px; }
.toast-action { border: 0; border-radius: 6px; padding: 3px 8px; background: rgba(255,255,255,.9); color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.bar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; } .bar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar.st-plecat { opacity: .45; }
.bar.st-cazat { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.2); }
.bar.unpaid { background: repeating-linear-gradient(135deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 70%, #fff) 8px 16px); }
.bar:hover { filter: brightness(1.1); z-index: 1; }
.hk { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.hk-curata { background: #3ecf7a; } .hk-murdara { background: #e0574a; } .hk-in-lucru { background: #e0a13a; } .hk-ocupata { background: #6b8fc9; }

/* drawer + modal */
#scrim { position: fixed; inset: 0; background: rgba(20,28,24,.3); opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: var(--panel); z-index: 21; transform: translateX(100%); transition: .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
body.dr-open #drawer { transform: none; } body.dr-open #scrim { opacity: 1; pointer-events: auto; }
.dr-h { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.dr-h h2 { margin: 4px 0 8px; } .dr-h .pill, .dr-h .src { margin-right: 4px; }
.x { background: none; border: 0; cursor: pointer; padding: 4px; height: fit-content; }
.dr-b { padding: 6px 22px 20px; overflow: auto; flex: 1; }
.dr-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.facts span { font-size: 11.5px; color: var(--ink-2); display: block; } .facts b { font-weight: 500; }
.nights { display: flex; flex-wrap: wrap; gap: 6px; } .nights span { background: #f6f4ef; border-radius: 8px; padding: 5px 9px; font-size: 12px; } .nights b { display: block; font-size: 13px; }
.sum { background: #f8f7f2; border-radius: 10px; padding: 10px 14px; margin-top: 14px; }
.sum > div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sum .due { color: var(--warn); font-weight: 600; border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 8px; }
.payment-link-state { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf7; }
.payment-link-state small { display: block; color: var(--ink-2); margin-top: 3px; }
.payment-link-countdown { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.alert.warn { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 9px; color: #6c510d; background: #fff4cf; }
.alert.danger { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 12px; border: 1px solid #efb5ad; border-radius: 9px; color: #8b241b; background: #fff0ed; }
.pill.danger { color: #8b241b; background: #ffe0da; }
.alert.warn small { color: #80682d; }
.alert.warn .btn { align-self: flex-start; margin-top: 4px; }
.id-scan-panel { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.id-scan-panel h4 { margin: 0 0 5px; }
.id-scan-panel h5 { margin: 14px 0 8px; font-size: 12px; color: var(--ink); }
.id-scan-panel p { font-size: 11.5px; line-height: 1.45; }
.id-scan-lead, .id-scan-status { color: var(--ink-2); }
.id-scan-input-label, .id-scan-field { display: grid; gap: 5px; margin-top: 9px; color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.id-scan-input-label textarea { width: 100%; min-height: 76px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.id-scan-actions { margin-top: 9px; }
.id-scan-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.id-scan-field input, .id-scan-field select { width: 100%; }
.id-scan-warning { padding: 9px 10px; border-radius: 8px; color: #6c510d; background: #fff4cf; }
.id-scan-confirm { display: flex; flex-direction: row; align-items: flex-start; gap: 7px; color: var(--ink-2); font-size: 11.5px; line-height: 1.35; }
.id-scan-confirm input { flex: 0 0 auto; margin-top: 2px; }
.id-scan-suggestions .btn { margin-top: 10px; }
#modal { position: fixed; inset: 0; background: rgba(20,28,24,.35); display: none; place-items: center; z-index: 30; padding: 20px; grid-template-columns: minmax(0, 1fr); box-sizing: border-box; }
#modal.on { display: grid; }
.mbox { background: var(--panel); border-radius: 16px; padding: 24px; width: min(620px, 100%); box-sizing: border-box; justify-self: center; max-width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form .chk { flex-direction: row; align-items: center; gap: 8px; }
.quote { background: var(--accent-bg); border-radius: 9px; padding: 10px 12px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; } .row-c { display: flex; justify-content: center; gap: 8px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 40; align-items: center; }
.toast { background: #17231e; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: tin .25s ease; max-width: 560px; }
.toast.err { background: var(--err); } .toast.out { opacity: 0; transform: translateY(8px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* booking engine */
.site { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.08); max-width: 1000px; }
.site-bar { background: #eeece6; padding: 9px 14px; display: flex; gap: 6px; align-items: center; }
.site-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d6d2c8; } .site-bar em { font-style: normal; font-size: 12px; color: var(--ink-2); background: #fff; border-radius: 6px; padding: 3px 12px; margin-left: 12px; }
.site-hero { background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #000)); color: #fff; padding: 30px 32px 20px; }
.site-hero h2 { font-size: 28px; } .site-hero p { opacity: .85; margin: 0 0 18px; }
.steps { display: flex; gap: 18px; font-size: 13px; } .steps span { opacity: .55; } .steps .on { opacity: 1; font-weight: 600; border-bottom: 2px solid #fff; } .steps .ok { opacity: .85; }
.site-body { padding: 24px 32px 32px; }
.bk-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .bk-search label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.bk-note { background: var(--accent-bg); color: var(--accent); padding: 10px 14px; border-radius: 10px; margin: 18px 0 12px; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.bk-room { display: grid; grid-template-columns: 110px 1fr 200px; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.bk-room .ph { height: 84px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 25%, #fff), color-mix(in srgb, var(--pc) 55%, #fff)); display: grid; place-items: center; color: var(--pc); }
.bk-room .ph svg { width: 34px; height: 34px; stroke-width: 1.5; }
.bk-room h3 { font-size: 17px; margin-bottom: 4px; } .bk-room p { margin: 0 0 6px; color: var(--ink-2); }
.bk-room .pr { text-align: right; } .bk-room .pr s { color: var(--ink-2); font-size: 12px; display: block; } .bk-room .pr b { display: block; font-size: 22px; margin-bottom: 8px; }
.bk-room.dis { opacity: .5; }
.bk-2 { display: grid; grid-template-columns: 1fr 300px; gap: 28px; } .bk-2 .form { margin: 0; }
.bk-sum { background: #f8f7f2; border-radius: 12px; padding: 18px; height: fit-content; }
.pay { max-width: 420px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pay-h { background: #1a2b4c; color: #fff; padding: 12px 16px; display: flex; gap: 8px; align-items: center; font-size: 13px; } .pay-h .pill { margin-left: auto; }
.pay-b { padding: 20px; display: flex; flex-direction: column; gap: 10px; } .pay-b h2 { font-size: 30px; margin: 0 0 6px; } .pay-b p { margin: 0; color: var(--ink-2); }
.pay-b label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done { text-align: center; padding: 20px; } .done > svg { width: 56px; height: 56px; color: var(--accent); } .done .sub { max-width: 540px; margin: 8px auto 18px; }

/* whatsapp */
.wa-wrap { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.phone { border-radius: 26px; overflow: hidden; border: 8px solid #1d2320; background: #efe7dd; height: 680px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.wa-top { background: #075e54; color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; } .wa-top small { color: #bfe3dc; } .wa-top svg { width: 30px; height: 30px; background: #fff3; border-radius: 50%; padding: 6px; }
.wa-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 7px 10px 16px; border-radius: 10px; position: relative; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #7a8580; }
.msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg.guest { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.msg.sys { align-self: center; background: #fff7d6; font-size: 12px; padding: 6px 10px; }
.paysim { align-self: center; margin-top: 4px; }
.wa-in { display: flex; gap: 8px; padding: 10px; background: #f0ebe4; } .wa-in input { flex: 1; font: inherit; padding: 10px 14px; border-radius: 20px; border: 0; }
.chips { display: flex; flex-direction: column; gap: 6px; } .chips button { font: inherit; text-align: left; background: #f6f4ef; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; cursor: pointer; } .chips button:hover { border-color: var(--accent-2); background: var(--accent-bg); }
.tool { border-left: 3px solid var(--accent-2); padding: 6px 10px; margin-bottom: 8px; background: #fafaf7; border-radius: 0 8px 8px 0; font-size: 12.5px; }
.tool code { font-weight: 700; color: var(--accent); } .tool small { float: right; } .tool pre { margin: 4px 0; white-space: pre-wrap; font-size: 11.5px; color: var(--ink-2); } .tool span { font-weight: 500; }

/* channels */
.chgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.ch { margin: 0; display: flex; flex-direction: column; gap: 8px; } .ch.off { opacity: .6; }
.ch-h { display: flex; justify-content: space-between; align-items: center; }
.ch-s { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .ch-s span { font-size: 11px; color: var(--ink-2); display: block; } .ch-s b { font-size: 14px; }
.ch .pill { align-self: flex-start; }
.sw input { display: none; } .sw i { width: 34px; height: 20px; border-radius: 10px; background: #d6d2c8; display: block; position: relative; cursor: pointer; transition: .2s; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.sw input:checked + i { background: var(--accent); } .sw input:checked + i::after { left: 16px; }

/* housekeeping */
.hkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hkc { border-radius: 12px; padding: 12px; cursor: pointer; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; transition: .15s; user-select: none; }
.hkc:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .hkc b { font-size: 16px; } .hkc .pill { align-self: flex-start; } .hkc .nx { font-size: 11px; }
.hk-bg-curata { border-left: 4px solid #3ecf7a; } .hk-bg-murdara { border-left: 4px solid #e0574a; background: #fff8f7; } .hk-bg-in-lucru { border-left: 4px solid #e0a13a; background: #fffbf2; } .hk-bg-ocupata { border-left: 4px solid #6b8fc9; background: #f7f9fd; cursor: default; }

/* reports */
.hbar { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: center; padding: 6px 0; }
.hbar > div { background: #f3f1ea; border-radius: 6px; height: 14px; overflow: hidden; } .hbar i { display: block; height: 100%; border-radius: 6px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; } .hbar small { display: inline; margin-left: 6px; }
.accentbox { background: linear-gradient(160deg, #fff, var(--accent-bg)); }
.accentbox input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 12px; }
.saving { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; } .saving span { grid-column: 1 / -1; color: var(--ink-2); font-size: 12.5px; }
.saving b { font-size: 26px; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* product */
.ul { margin: 0; padding-left: 18px; } .ul li { margin: 5px 0; }
.plan.hl { border: 2px solid var(--accent); } .plan p { color: var(--ink-2); }

/* invoice */
.invoice .inv-h { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; } .invoice .r { text-align: right; }
.invoice-card { margin-bottom: 10px; }
.invoice-card-head, .invoice-card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.invoice-card-head small, .invoice-card-meta span { display: block; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.invoice-card-meta { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
.invoice-card-meta span { background: var(--accent-bg); border-radius: 999px; padding: 4px 8px; margin: 0; }
.invoice-internal { color: #6b4a09; background: #fff7d6; border: 1px solid #ead79a; border-radius: 8px; padding: 8px 10px; margin-top: 10px; font-size: 12px; }
.invoice-lines { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12px; }
.invoice-lines li { margin: 4px 0; }
.invoice-banner { display: flex; gap: 8px; justify-content: space-between; }
.demo-banner { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; margin-bottom: 16px; color: #6b4a09; background: #fff7d6; border: 1px solid #ead79a; border-radius: 10px; }
.integration-toolbar { display: grid; grid-template-columns: 220px 260px 1fr; gap: 16px; align-items: end; }
.integration-toolbar label { display: flex; flex-direction: column; gap: 5px; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.integration-toolbar select { width: 100%; }
.billing-note { align-self: center; margin: 0; }
.integration-confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--info-bg); }
.integration-confirm span { color: var(--ink-2); margin-right: auto; }
.integration-warning { color: var(--warn); background: var(--warn-bg); }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.integration-card { margin-bottom: 0; }
.integration-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.integration-head h3 { margin: 0 0 4px; font-size: 17px; }
.integration-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 12px; margin: 12px 0 0; }
.integration-meta b { color: var(--ink); font-weight: 500; }
.secret-hint code { letter-spacing: .08em; color: var(--accent); }
.integration-form { margin-top: 14px; }
.integration-result { padding: 9px 11px; border-radius: 8px; margin-top: 10px; font-size: 12.5px; }
.integration-result.ok { color: var(--accent); background: var(--accent-bg); }
.integration-result.err { color: var(--err); background: var(--err-bg); }
.invoice-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.invoice-provider-card { margin-bottom: 0; }
.invoice-provider-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.invoice-provider-head h3 { margin: 0 0 4px; font-size: 17px; }
.invoice-provider-badges, .invoice-provider-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.invoice-provider-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: 12px; margin: 14px 0 8px; }
.invoice-provider-actions { margin-top: 14px; }
.settings-property { min-width: 220px; }
.direct-settings-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.direct-settings-summary h2 { margin: 0 0 6px; font-size: 18px; }
.direct-settings-form { display: grid; gap: 18px; max-width: 760px; }
.direct-settings-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.direct-settings-form legend { font-weight: 700; padding: 0 6px; }
.direct-settings-form label { display: grid; gap: 6px; }
.direct-settings-form label.check { display: flex; align-items: center; gap: 8px; }
.direct-settings-form input[type="number"], .direct-settings-form select { max-width: 360px; }
.direct-settings-form small { color: var(--ink-2); }
.billing-active { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.billing-active p { margin: 4px 0 0; }
.billing-properties { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.billing-property { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--accent-bg); border-radius: 8px; min-width: 150px; }
.billing-property small { color: var(--accent); }
.billing-property em { color: var(--warn); font-size: 11px; font-style: normal; max-width: 220px; }
/* camere azi */
.camere-picker-wrap { display: inline-flex; align-items: center; gap: 4px; }
.camere-picker-wrap input[type=date] { padding: 5px 8px; font-size: 13px; }
.camere-prop-sec { margin-bottom: 24px; }
.camere-prop-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; border-left: 4px solid var(--pc, var(--accent)); padding-left: 10px; }
.camere-prop-head h2 { font-size: 18px; margin: 0; }
.camere-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.room-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.room-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.room-card.st-libera { border-left: 5px solid #3ecf7a; background: #fafdfb; }
.room-card.st-ocupata { border-left: 5px solid #e0574a; background: #fff; }
.room-card.st-sosire { border-left: 5px solid #e0a13a; background: #fffdf9; }
.room-card.st-plecare { border-left: 5px solid #e08a1e; background: #fffbf6; }
.room-card.st-schimb { border-left: 5px solid #8e44ad; background: #fbf9fd; }

.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rc-name-block { display: flex; flex-direction: column; gap: 2px; }
.rc-room-num { font-size: 18px; font-weight: 700; color: var(--ink); }
.rc-type-name { font-size: 12px; color: var(--ink-2); }
.rc-badges { display: flex; align-items: center; gap: 6px; }
.rc-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rc-content[data-open] { cursor: pointer; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.02); border: 1px solid transparent; }
.rc-content[data-open]:hover { background: rgba(0,0,0,.04); border-color: var(--line-2); }
.rc-free { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 4px 0; }
.rc-state-msg { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.rc-guest-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.rc-guest-row b { font-size: 14px; }
.rc-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.rc-action { margin-top: 4px; }
.rc-actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.rc-schimb { display: flex; flex-direction: column; gap: 6px; }
.rc-schimb-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,.03); cursor: pointer; }
.rc-schimb-item:hover { background: rgba(0,0,0,.06); }
.rc-schimb-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; font-size: 12px; }
.rc-hk-btn { padding: 3px 6px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); cursor: pointer; border-radius: 6px; }
.rc-hk-btn:hover { background: #eee; }
.rc-cap { color: var(--ink-2); font-size: 11.5px; }
.ok-txt { color: var(--accent); }

/* date-first reservation modal */
.modal-res-head { margin-bottom: 12px; }
.nr-form { display: flex; flex-direction: column; gap: 14px; }
.nr-dates-row { display: grid; grid-template-columns: 1fr 1fr 90px 1fr; gap: 10px; }
.nr-guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nr-rooms-section { display: flex; flex-direction: column; gap: 6px; }
.nr-sec-label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.nr-rooms-box { max-height: 220px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; background: #faf9f6; display: flex; flex-direction: column; gap: 10px; }
.nr-type-grp { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.nr-type-info { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.nr-type-info b { color: var(--ink); } .nr-type-info span { color: var(--accent); font-weight: 600; }
.nr-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.res-room-btn { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; transition: .15s; font: inherit; }
.res-room-btn b { font-size: 13px; color: var(--ink); }
.res-room-btn small { font-size: 10px; color: var(--ink-2); }
.res-room-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.res-room-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.res-room-btn.selected b, .res-room-btn.selected small { color: #fff; }
.nr-details summary { cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: 12.5px; padding: 4px 0; }
.nr-details-inner { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

@media print { .side, .top, main, #drawer, #scrim, .row-end { display: none !important; } #modal { position: static; background: none; display: block; } .mbox { box-shadow: none; width: auto; max-width: none; max-height: none; padding: 0; } .invoice { color: #000; } .invoice-internal { border: 1px solid #333; color: #000; background: #fff; } }

/* public advance payment */
body.public-payment { min-height: 100vh; display: block; background: linear-gradient(145deg, #eef4ed, #f7f4ed); }
body.public-payment .wrap { min-height: 100vh; display: block; }
body.public-payment main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.public-card { width: min(100%, 520px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 20px 60px rgba(30,50,38,.12); }
.public-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; }
.public-brand small { margin-left: auto; color: var(--ink-2); font-size: 11px; font-weight: 500; }
.public-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--accent); }
.public-card h1 { margin: 30px 0 8px; font-size: 25px; }
.public-lead { color: var(--ink-2); margin-top: 0; }
.public-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0 14px; }
.public-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 13px; }
.public-details span { color: var(--ink-2); }
.public-details b { text-align: right; font-weight: 600; }
.public-amount { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.public-amount strong { color: var(--accent); font-size: 26px; }
.public-simulator { display: inline-block; border-radius: 5px; padding: 4px 7px; color: #7c5b08; background: #fff0bd; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.public-message { min-height: 22px; margin: 12px 0; color: var(--ink-2); font-size: 13px; }
.public-pay { width: 100%; justify-content: center; min-height: 46px; }
.public-foot { margin: 22px 0 0; color: var(--ink-2); font-size: 11px; text-align: center; }
.public-error { text-align: center; }
.public-error .public-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: var(--warn); font-size: 24px; font-weight: 700; }
.public-error h1 { margin-top: 10px; }
.public-checkin-card { width: min(100%, 620px); }
.public-checkin-form { margin-top: 18px; }
.public-checkin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-checkin-grid .full, .public-checkin-form .full { grid-column: 1 / -1; }
.public-checkin-form label { min-width: 0; }
.public-checkin-form input, .public-checkin-form select { width: 100%; min-width: 0; }
.public-checkin-form .public-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.public-checkin-form .public-consent input { width: auto; flex: 0 0 auto; margin-top: 2px; }
.public-form-note { margin: 14px 0; color: var(--ink-2); font-size: 11px; line-height: 1.45; }
.public-success { text-align: center; }
.public-success .public-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: var(--ok, #3d8a61); font-size: 24px; font-weight: 700; }
@media (max-width: 600px) { body.public-payment main { padding: 12px; } .public-card { padding: 22px 18px; border-radius: 16px; } .public-brand small { font-size: 10px; } .public-details > div { align-items: flex-start; } }
@media (max-width: 440px) { .public-checkin-grid { grid-template-columns: minmax(0, 1fr); } .public-checkin-grid .full, .public-checkin-form .full { grid-column: auto; } body.public-payment main { padding: 8px; } .public-card { max-width: 100%; } }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } .chgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  body { flex-direction: column; } .side { width: 100%; height: auto; position: static; } #nav { display: flex; flex-wrap: wrap; } .navsec, .reset { display: none; }
  main { padding: 16px; } .top { padding: 10px 16px; flex-wrap: wrap; }
  .grid2, .grid3, .wa-wrap, .bk-2 { grid-template-columns: 1fr; } .kpis, .kpis.small, .chgrid { grid-template-columns: 1fr 1fr; }
  .camere-grid { grid-template-columns: 1fr; }
  .nr-dates-row { grid-template-columns: 1fr 1fr; }
  .nr-guest-row { grid-template-columns: 1fr; }
  .bk-room { grid-template-columns: 70px 1fr; } .bk-room .pr { grid-column: 1 / -1; text-align: left; }
  .tbl { display: block; overflow-x: auto; }
  .integration-grid, .invoice-provider-grid { grid-template-columns: 1fr; } .integration-toolbar { grid-template-columns: 1fr; } .billing-active { align-items: flex-start; flex-direction: column; } .billing-properties { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .nr-dates-row { grid-template-columns: 1fr; }
  .invoice-provider-head { flex-direction: column; }
  .invoice-provider-card { padding: 14px; }
  .direct-settings-summary { align-items: flex-start; flex-direction: column; }
  .settings-property { width: 100%; }
  .invoice-provider-actions .btn { white-space: normal; text-align: left; }
  .id-scan-fields { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  #modal { padding: 10px; }
  .mbox { padding: 16px; max-height: 94vh; max-height: 94dvh; }
  .mbox .form { grid-template-columns: minmax(0, 1fr); }
  .restaurant-admin-tabs button { flex: 1 1 90px; padding: 8px 6px; }
  .restaurant-menu-admin .form .row-end .btn, .restaurant-settle-form .row-end .btn { flex: 1 1 120px; justify-content: center; }
  .restaurant-menu-admin .tscroll { overflow: visible; }
  .restaurant-menu-admin .tbl, .restaurant-menu-admin .tbl tbody { display: block; min-width: 0; width: 100%; overflow: visible; }
  .restaurant-menu-admin .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .restaurant-menu-admin .tbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .restaurant-menu-admin .tbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .restaurant-menu-admin .tbl td:first-child { flex: 1 1 100%; }
  .restaurant-menu-admin .tbl td.r { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; text-align: left; }
  .restaurant-menu-admin .tbl td.r .btn { margin: 0; }
  .restaurant-menu-admin .tbl td.empty { flex: 1 1 100%; }
}
