@font-face { font-family: "Operator Sora"; src: url("assets/sora-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Operator Manrope"; src: url("assets/manrope-latin.woff2") format("woff2"); font-display: swap; }

:root { --op-deep:#052f33; --op-blue:#075e63; --op-teal:#0a8b87; --op-mint:#dff3ef; --op-bg:#edf4f2; --op-yellow:#f5c542; --op-white:#fff; --op-ink:#102e30; --op-muted:#6b807e; --op-line:rgba(7,94,99,.14); --op-red:#b1463b; --op-shadow:0 18px 50px rgba(5,47,51,.09); }
* { box-sizing: border-box; }
body { margin:0; color:var(--op-ink); background:var(--op-bg); font-family:"Operator Manrope",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid var(--op-yellow); outline-offset:3px; }
[hidden] { display:none!important; }

.operator-blocked { min-height:100vh; display:grid; place-items:center; align-content:center; padding:30px; text-align:center; }
.operator-blocked svg { width:72px; fill:none; stroke:var(--op-blue); stroke-width:1.5; }
.operator-blocked h1 { margin:8px 0; font:760 clamp(30px,6vw,54px)/1 "Operator Sora"; letter-spacing:-.065em; }
.operator-blocked > p:not(.operator-kicker) { color:var(--op-muted); }
.operator-blocked a { margin-top:16px; padding:13px 18px; border-radius:13px; color:#fff; background:var(--op-blue); text-decoration:none; font-weight:750; }

.operator-header { position:sticky; z-index:30; top:0; min-height:76px; display:grid; grid-template-columns:260px 1fr auto; gap:26px; align-items:center; padding:12px clamp(18px,3vw,42px); color:#fff; background:rgba(5,47,51,.97); border-bottom:1px solid rgba(255,255,255,.1); backdrop-filter:blur(18px); }
.operator-brand { display:flex; align-items:center; gap:11px; color:inherit; text-decoration:none; }
.operator-brand svg { width:39px; fill:none; stroke:var(--op-yellow); stroke-width:1.5; }
.operator-brand span { display:grid; gap:2px; }
.operator-brand strong { font:750 13px "Operator Sora"; letter-spacing:-.03em; }
.operator-brand small { color:rgba(255,255,255,.55); font-size:7px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.operator-tabs { justify-self:center; display:flex; gap:5px; padding:5px; border-radius:14px; background:rgba(255,255,255,.07); }
.operator-tabs button { min-height:40px; padding:8px 15px; border:0; border-radius:10px; color:rgba(255,255,255,.68); background:transparent; font:720 9px "Operator Sora"; }
.operator-tabs button.is-active { color:var(--op-deep); background:var(--op-yellow); }
.operator-tabs b { min-width:18px; height:18px; display:inline-grid; place-items:center; margin-left:4px; border-radius:999px; color:#fff; background:var(--op-teal); font-size:7px; }
.operator-actions { display:flex; align-items:center; gap:7px; }
.operator-actions button,.operator-actions a { padding:10px 12px; border:1px solid rgba(255,255,255,.13); border-radius:10px; color:#fff; background:transparent; font-size:8px; font-weight:750; text-decoration:none; }
.operator-actions button.is-enabled { color:var(--op-deep); background:var(--op-yellow); border-color:var(--op-yellow); }

.operator-main { width:min(1480px,calc(100% - 48px)); margin:0 auto; padding:30px 0 80px; }
.operator-kicker { margin:0 0 7px; color:#997300; font:800 8px "Operator Sora"; letter-spacing:.15em; text-transform:uppercase; }
.bar-service-control { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(600px,1.5fr); gap:24px; align-items:center; padding:27px 30px; border:1px solid var(--op-line); border-left:6px solid var(--op-teal); border-radius:24px; background:#fff; box-shadow:var(--op-shadow); transition:border-color .25s ease; }
.bar-service-control.is-paused { border-left-color:var(--op-yellow); }
.bar-service-control h1 { margin:0; font:760 clamp(27px,4vw,42px) "Operator Sora"; letter-spacing:-.06em; }
.bar-service-control > div > p:last-child { margin:8px 0 0; color:var(--op-muted); font-size:10px; }
.bar-service-control form { display:grid; grid-template-columns:160px 120px minmax(210px,1fr) auto; gap:10px; align-items:end; padding:15px; border-radius:17px; background:#eff8f6; }
.bar-service-control form > label:not(.service-switch) { display:grid; gap:6px; color:var(--op-blue); font:740 8px "Operator Sora"; text-transform:uppercase; letter-spacing:.05em; }
.bar-service-control input[type="number"],.bar-service-control input[type="text"] { width:100%; min-height:40px; padding:9px 11px; border:1px solid var(--op-line); border-radius:10px; color:var(--op-ink); background:#fff; font-size:9px; text-transform:none; }
.field-unit { display:grid; grid-template-columns:1fr auto; align-items:center; padding-right:9px; border:1px solid var(--op-line); border-radius:10px; background:#fff; }
.field-unit input { border:0!important; }
.field-unit i { color:var(--op-muted); font:700 8px "Operator Sora"; }
.service-switch { display:grid; grid-template-columns:42px 1fr; gap:9px; align-items:center; min-height:40px; }
.service-switch input { position:absolute; opacity:0; }
.service-switch > span { width:42px; height:24px; padding:3px; border-radius:999px; background:#9eb2af; }
.service-switch i { display:block; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .2s ease; }
.service-switch input:checked + span { background:var(--op-teal); }
.service-switch input:checked + span i { transform:translateX(18px); }
.service-switch b { font:740 9px "Operator Sora"; }
.bar-service-control form > button { min-height:40px; padding:8px 13px; border:0; border-radius:10px; color:#fff; background:var(--op-blue); font:750 8px "Operator Sora"; }
.bar-service-control form > small { grid-column:1/-1; min-height:12px; color:var(--op-blue); font-size:8px; }

.operator-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:18px; }
.operator-stats article { padding:18px; border:1px solid var(--op-line); border-radius:18px; background:#fff; box-shadow:0 8px 26px rgba(5,47,51,.04); }
.operator-stats span,.operator-stats small { display:block; }
.operator-stats span { color:var(--op-muted); font:750 8px "Operator Sora"; text-transform:uppercase; letter-spacing:.08em; }
.operator-stats strong { display:block; margin:5px 0 2px; color:var(--op-blue); font:780 28px "Operator Sora"; letter-spacing:-.05em; }
.operator-stats small { color:var(--op-muted); font-size:8px; }
.operator-stats .ready-stat { color:var(--op-deep); background:var(--op-yellow); border-color:transparent; }
.operator-stats .ready-stat span,.operator-stats .ready-stat strong,.operator-stats .ready-stat small { color:inherit; }

.order-toolbar,.catalog-heading { display:flex; justify-content:space-between; align-items:end; gap:22px; margin:34px 0 16px; }
.order-toolbar h2,.catalog-heading h2 { margin:0; font:760 30px "Operator Sora"; letter-spacing:-.055em; }
.catalog-heading > div:first-child > p:last-child { margin:5px 0 0; color:var(--op-muted); font-size:9px; }
.segmented-control { display:flex; padding:4px; border:1px solid var(--op-line); border-radius:12px; background:#fff; }
.segmented-control button { padding:9px 13px; border:0; border-radius:8px; color:var(--op-muted); background:transparent; font:720 8px "Operator Sora"; }
.segmented-control button.is-active { color:#fff; background:var(--op-blue); }
.catalog-heading > div:last-child { display:flex; flex-wrap:wrap; gap:8px; }
.catalog-heading button { padding:11px 15px; border:1px solid var(--op-line); border-radius:11px; color:var(--op-blue); background:#fff; font:750 9px "Operator Sora"; }
.catalog-heading button.primary { color:var(--op-deep); background:var(--op-yellow); border-color:var(--op-yellow); }

.order-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:start; }
.order-column { min-height:360px; padding:12px; border:1px solid var(--op-line); border-radius:20px; background:rgba(255,255,255,.52); }
.order-column > header { display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; padding:7px 7px 14px; }
.order-column h3 { margin:0; font:750 11px "Operator Sora"; }
.order-column header b { min-width:24px; height:24px; display:grid; place-items:center; border-radius:8px; color:var(--op-blue); background:var(--op-mint); font:750 8px "Operator Sora"; }
.status-dot { width:9px; height:9px; border-radius:50%; }
.dot-new { background:#ef8d4d; box-shadow:0 0 0 5px rgba(239,141,77,.12); }
.dot-preparing { background:var(--op-teal); box-shadow:0 0 0 5px rgba(10,139,135,.12); }
.dot-ready { background:#d7a600; box-shadow:0 0 0 5px rgba(245,197,66,.2); }
.order-column > div { display:grid; gap:9px; }
.order-card { position:relative; padding:16px; border:1px solid var(--op-line); border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(5,47,51,.06); animation:orderIn .25s ease both; }
@keyframes orderIn { from { opacity:0; transform:translateY(8px); } }
.order-card.is-urgent { border-color:#e79962; box-shadow:0 8px 28px rgba(203,91,52,.12); }
.order-card > header { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.order-room { display:flex; align-items:center; gap:9px; }
.order-room > span { min-width:43px; height:43px; display:grid; place-items:center; padding:5px; border-radius:13px; color:#fff; background:var(--op-blue); font:760 10px "Operator Sora"; }
.order-room > span.source-table { color:var(--op-deep); background:var(--op-yellow); }
.order-room > span.source-walk_in { background:var(--op-teal); }
.order-room strong,.order-room small { display:block; }
.order-room strong { font:750 10px "Operator Sora"; }
.order-room small { margin-top:3px; color:var(--op-muted); font-size:7px; }
.elapsed-time { padding:6px 8px; border-radius:8px; color:var(--op-blue); background:var(--op-mint); font:760 8px "Operator Sora"; white-space:nowrap; }
.is-urgent .elapsed-time { color:#81331e; background:#ffe1d0; }
.order-item-list { margin:13px 0; padding:11px 0; border-block:1px solid var(--op-line); list-style:none; }
.order-item-list li { display:flex; justify-content:space-between; gap:10px; padding:3px 0; font-size:9px; }
.order-item-list b { color:var(--op-blue); font-family:"Operator Sora"; }
.order-note { margin:0 0 12px; padding:9px; border-radius:9px; color:#705400; background:#fff4c3; font-size:8px; line-height:1.5; }
.order-card footer { display:grid; grid-template-columns:1fr auto; gap:7px; align-items:center; }
.order-total { font:780 13px "Operator Sora"; color:var(--op-blue); }
.order-card footer button { padding:9px 11px; border:0; border-radius:9px; color:#fff; background:var(--op-blue); font:740 8px "Operator Sora"; }
.order-card footer button.ready-action { color:var(--op-deep); background:var(--op-yellow); }
.order-card footer button.cancel-action { width:32px; padding:9px 0; color:var(--op-red); background:#fbe7e3; }
.empty-column { padding:38px 12px; color:var(--op-muted); font-size:9px; text-align:center; }

.order-history { display:grid; gap:8px; }
.history-row { display:grid; grid-template-columns:100px 1fr 160px 120px 120px; gap:12px; align-items:center; padding:13px 16px; border:1px solid var(--op-line); border-radius:14px; background:#fff; font-size:9px; }
.history-row strong { font-family:"Operator Sora"; }
.history-status { padding:6px 8px; border-radius:8px; color:var(--op-blue); background:var(--op-mint); text-align:center; font-weight:750; }
.history-status.status-cancelled { color:#8c3730; background:#fbe3df; }

.operator-catalog { display:grid; gap:14px; }
.catalog-category { overflow:hidden; border:1px solid var(--op-line); border-radius:20px; background:#fff; }
.catalog-category > header { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:18px 20px; background:#f2f8f6; }
.catalog-category h3 { margin:0; font:750 15px "Operator Sora"; }
.catalog-category header p { margin:4px 0 0; color:var(--op-muted); font-size:8px; }
.catalog-category header button,.catalog-product button { padding:8px 10px; border:1px solid var(--op-line); border-radius:9px; color:var(--op-blue); background:#fff; font-size:8px; font-weight:750; }
.catalog-products { display:grid; }
.catalog-product { display:grid; grid-template-columns:1fr 120px 90px 80px; gap:14px; align-items:center; padding:13px 20px; border-top:1px solid var(--op-line); }
.catalog-product strong,.catalog-product small { display:block; }
.catalog-product strong { font:720 10px "Operator Sora"; }
.catalog-product small { margin-top:3px; color:var(--op-muted); font-size:7px; }
.catalog-product > b { color:var(--op-blue); font:760 10px "Operator Sora"; }
.availability-pill { padding:6px 8px; border-radius:999px; color:#12655f; background:#d8f3ed; font-size:7px; font-weight:800; text-align:center; }
.availability-pill.is-off { color:#7c6250; background:#eee7df; }
.category-off { opacity:.62; }
.catalog-empty { padding:22px; color:var(--op-muted); font-size:9px; text-align:center; }

.qr-room-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.qr-access-section { margin-top:18px; padding:20px; border:1px solid var(--op-line); border-radius:22px; background:rgba(255,255,255,.5); }
.qr-access-section + .qr-access-section { margin-top:16px; }
.qr-access-section > header { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:14px; }
.qr-access-section > header h3 { margin:0; font:750 19px "Operator Sora"; letter-spacing:-.04em; }
.qr-access-section > header p:last-child { margin:5px 0 0; color:var(--op-muted); font-size:8px; }
.qr-access-section > header > span { padding:7px 9px; border-radius:999px; color:var(--op-blue); background:var(--op-mint); font-size:7px; font-weight:800; white-space:nowrap; }
.qr-access-empty { grid-column:1/-1; border:1px dashed var(--op-line); border-radius:16px; background:#fff; }
.qr-room-card { display:grid; grid-template-columns:140px 1fr; gap:18px; align-items:center; padding:20px; border:1px solid var(--op-line); border-radius:20px; background:#fff; box-shadow:0 9px 30px rgba(5,47,51,.05); }
.qr-service-card { position:relative; overflow:hidden; }
.qr-service-card::before { position:absolute; inset:0 auto 0 0; width:4px; content:""; background:var(--op-yellow); }
.qr-service-card.service-walk_in::before { background:var(--op-teal); }
.qr-service-card.is-inactive { opacity:.62; filter:saturate(.65); }
.qr-room-card img { width:140px; height:140px; padding:8px; border:1px solid var(--op-line); border-radius:15px; background:#fff; }
.qr-room-card h3 { margin:0; font:750 15px "Operator Sora"; }
.qr-room-card p { margin:6px 0 12px; color:var(--op-muted); font-size:8px; }
.room-occupancy { display:inline-block; margin-bottom:11px; padding:6px 8px; border-radius:999px; color:#6e786f; background:#edf0ed; font-size:7px; font-weight:800; }
.room-occupancy.is-occupied { color:#12655f; background:#d8f3ed; }
.qr-actions { display:flex; flex-wrap:wrap; gap:6px; }
.qr-actions button,.qr-actions a { padding:8px 9px; border:1px solid var(--op-line); border-radius:9px; color:var(--op-blue); background:#fff; font-size:7px; font-weight:750; text-decoration:none; }
.qr-actions .download { color:var(--op-deep); background:var(--op-yellow); border-color:var(--op-yellow); }
.qr-actions .danger-lite { color:var(--op-red); background:#fff4f1; border-color:#f2d5ce; }

.service-validity-card { display:flex; align-items:center; gap:12px; padding:15px; border:1px solid var(--op-line); border-radius:14px; color:var(--op-blue); background:#eff8f6; }
.service-validity-card > span { width:34px; height:34px; border-radius:11px; color:var(--op-deep); background:var(--op-yellow); }
.service-validity-card strong,.service-validity-card small { display:block; }
.service-validity-card strong { font:750 10px "Operator Sora"; }
.service-validity-card small { margin-top:4px; color:var(--op-muted); font-size:8px; line-height:1.5; }
.service-point-dialog [data-walk-in-validity] { max-width:260px; }

.operator-dialog { width:min(570px,calc(100% - 26px)); padding:0; border:0; border-radius:23px; color:var(--op-ink); background:#fff; box-shadow:0 28px 90px rgba(3,35,38,.27); }
.operator-dialog::backdrop { background:rgba(3,35,38,.62); backdrop-filter:blur(5px); }
.operator-dialog form { display:grid; gap:13px; padding:25px; }
.operator-dialog header { display:flex; justify-content:space-between; align-items:start; margin-bottom:5px; }
.operator-dialog h2 { margin:0; font:760 25px "Operator Sora"; letter-spacing:-.055em; }
.operator-dialog header button { width:38px; height:38px; border:0; border-radius:11px; color:var(--op-blue); background:var(--op-mint); font-size:22px; }
.operator-dialog label { display:grid; gap:6px; color:var(--op-blue); font:740 8px "Operator Sora"; text-transform:uppercase; letter-spacing:.05em; }
.operator-dialog input,.operator-dialog textarea,.operator-dialog select { width:100%; padding:11px 12px; border:1px solid var(--op-line); border-radius:11px; color:var(--op-ink); background:#fbfdfc; font-size:10px; text-transform:none; letter-spacing:normal; }
.operator-dialog textarea { resize:vertical; }
.dialog-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:end; }
.operator-dialog .check-field { display:flex; align-items:center; gap:8px; min-height:41px; text-transform:none; }
.check-field input { width:17px; height:17px; }
.operator-dialog form > p { min-height:15px; margin:0; color:var(--op-red); font-size:8px; font-weight:700; }
.operator-dialog footer { display:grid; grid-template-columns:auto 1fr auto auto; gap:7px; padding-top:5px; }
.operator-dialog footer button { padding:10px 13px; border:1px solid var(--op-line); border-radius:10px; color:var(--op-blue); background:#fff; font:740 8px "Operator Sora"; }
.operator-dialog footer button.primary { color:var(--op-deep); background:var(--op-yellow); border-color:var(--op-yellow); }
.operator-dialog footer button.danger { color:var(--op-red); background:#fbe7e3; border-color:transparent; }
.operator-toast { position:fixed; z-index:80; right:22px; bottom:22px; width:min(380px,calc(100% - 28px)); padding:15px 17px; border-radius:14px; color:#fff; background:var(--op-blue); box-shadow:0 18px 55px rgba(5,47,51,.25); font-size:10px; font-weight:750; }

@media (max-width:1100px) {
  .operator-header { grid-template-columns:220px 1fr; }
  .operator-actions { grid-column:1/-1; justify-content:flex-end; margin-top:-6px; }
  .bar-service-control { grid-template-columns:1fr; }
  .qr-room-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .operator-header { position:static; grid-template-columns:1fr; gap:10px; }
  .operator-tabs { justify-self:stretch; overflow-x:auto; }
  .operator-tabs button { flex:1; white-space:nowrap; }
  .operator-actions { grid-column:auto; justify-content:stretch; }
  .operator-actions > * { flex:1; text-align:center; }
  .operator-main { width:calc(100% - 24px); padding-top:14px; }
  .bar-service-control { padding:21px; }
  .bar-service-control form { grid-template-columns:1fr 1fr; }
  .service-message-field { grid-column:1/-1; }
  .bar-service-control form > button { grid-column:1/-1; }
  .operator-stats { grid-template-columns:1fr 1fr; }
  .order-board { grid-template-columns:1fr; }
  .order-column { min-height:180px; }
  .qr-room-grid { grid-template-columns:1fr; }
  .history-row { grid-template-columns:80px 1fr 100px; }
  .history-row > :nth-child(3),.history-row > :nth-child(4) { display:none; }
  .catalog-product { grid-template-columns:1fr auto auto; }
  .catalog-product .availability-pill { display:none; }
}
@media (max-width:520px) {
  .bar-service-control form { grid-template-columns:1fr; }
  .service-message-field,.bar-service-control form > button { grid-column:auto; }
  .operator-stats { grid-template-columns:1fr 1fr; }
  .order-toolbar,.catalog-heading { align-items:flex-start; flex-direction:column; }
  .catalog-heading > div:last-child { width:100%; }
  .catalog-heading button { flex:1; }
  .qr-room-card { grid-template-columns:110px 1fr; padding:14px; }
  .qr-room-card img { width:110px; height:110px; }
  .dialog-row { grid-template-columns:1fr; }
  .operator-dialog footer { grid-template-columns:1fr 1fr; }
  .operator-dialog footer span { display:none; }
}
@media print {
  body { background:#fff; }
  .operator-header,.bar-service-control,.operator-stats,.order-toolbar,[data-operator-panel="orders"],[data-operator-panel="menu"],.catalog-heading,.operator-toast { display:none!important; }
  .operator-main { width:100%; padding:0; }
  [data-operator-panel="qrs"] { display:block!important; }
  .qr-room-grid { grid-template-columns:repeat(2,1fr); gap:12mm; }
  .qr-room-card { break-inside:avoid; box-shadow:none; border:1px solid #bbb; }
  .qr-actions,.room-occupancy { display:none; }
  .qr-service-card.is-inactive { display:none!important; }
  .qr-access-section { padding:0; border:0; background:#fff; }
  .qr-access-section > header > span { display:none; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
