:root{font-family:Segoe UI,Arial,sans-serif;color:#212529;background:#f5f4f1}body{margin:0;background:#f5f4f1}header{display:flex;align-items:center;gap:1rem;background:#181818;color:white;padding:.7rem 1rem}.brand{font-weight:750;color:white;text-decoration:none;font-size:1.45rem}.brand small{font-size:.75rem;font-weight:400;color:#ddd;margin-left:.4rem}#rc-user{margin-left:auto;font-size:.85rem}h1{font-size:1.5rem;margin:0}h2{font-size:1.2rem}h3{font-size:1rem}label{font-size:.85rem}button,.btn{touch-action:manipulation}#rc-version{font-size:.75rem;color:#666}#rc-nav{display:flex;gap:.4rem;margin-bottom:.7rem}#rc-notice:not(:empty){padding:.55rem .7rem;border-left:4px solid #d52327;background:#fff0d6;margin-bottom:.6rem}#rc-login{max-width:420px;margin:2rem auto;padding:1rem;background:white}#rc-login label{display:block;margin:.7rem 0}.rc-panel{border:1px solid #d9d4cd;background:white;border-radius:.35rem;padding:.7rem;margin-bottom:.7rem}.rc-form{display:flex;gap:.5rem;flex-wrap:wrap;align-items:end;margin:.6rem 0}.rc-form label{flex:1 1 125px;min-width:0}.rc-form .wide{flex:3 1 200px}.rc-form .short{flex:0 1 100px}.rc-form .form-control,.rc-form .form-select{padding:.3rem .45rem}.rc-room{margin-bottom:1rem}.rc-tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:.5rem}.rc-table{min-height:85px;text-align:left;background:#e6f4e7;border:1px solid #5d8b63;border-radius:.35rem;padding:.6rem}.rc-table.occupied{background:#ffdfce;border-color:#c43824}.rc-table.selected{outline:3px solid #d42327;outline-offset:1px}.rc-table strong,.rc-table small{display:block}.rc-work{display:grid;grid-template-columns:minmax(230px,1fr) minmax(390px,2fr);gap:.7rem;align-items:start}.rc-scroll{overflow:auto;max-width:100%}.rc-scroll table{min-width:540px;white-space:nowrap;font-size:.85rem}.rc-scroll th,.rc-scroll td{padding:.3rem .45rem;vertical-align:middle}.rc-total{display:flex;justify-content:space-between;font-size:1.3rem;font-weight:700;padding:.5rem 0}.rc-actions{display:flex;justify-content:flex-end;gap:.4rem;flex-wrap:wrap}.rc-subtle{font-size:.8rem;color:#666}.rc-error{color:#b42318}.rc-fiscal-verify{background:#fff1cc}.rc-config details{margin:.5rem 0}.rc-config summary{font-weight:650;padding:.3rem}.rc-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.4rem;margin:.5rem 0}.rc-product-grid button{text-align:left;min-height:55px}.rc-blank{padding:1rem;color:#666}dialog{border:1px solid #bbb;border-radius:.4rem;max-width:min(94vw,800px);max-height:90vh;overflow:auto}dialog::backdrop{background:#0007}.text-success{color:#198754!important}#rc-prebill-body{padding:.4rem}.rc-permissions input{width:1rem;height:1rem;margin-right:.2rem}@media(max-width:850px){.rc-work{grid-template-columns:1fr}header{padding:.5rem}.rc-tables{grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}.btn{min-height:38px}.rc-form label{flex-basis:120px}}@media print{body>*{display:none!important}body #rc-prebill[open]{display:block!important;position:static;border:0;width:80mm;max-width:80mm;margin:0;padding:4mm}#rc-prebill button,#rc-prebill h2{display:none}#rc-prebill table{font-size:12px;width:100%}#rc-prebill table td{padding:2px}dialog::backdrop{display:none}}
header { position: relative; flex-wrap: wrap; }
.brand {
 display: inline-flex;
 align-items: center;
 gap: .55rem;
 margin-right: auto;
 white-space: nowrap;
}
.brand:hover { color: white; }
.rc-brand-name { letter-spacing: -.045em; }
.rc-brand-name strong { color: #ff6269; font-weight: 850; }
.rc-brand-mark { position: relative; display: inline-block; width: 1.65rem; height: 1.55rem; }
.rc-brand-mark i { position: absolute; inset: 0; }
.rc-brand-mark i:nth-child(1) { background: #527ee3; clip-path: polygon(0 2%,50% 48%,50% 77%,23% 51%,23% 98%,0 98%); }
.rc-brand-mark i:nth-child(2) { background: #ed4049; clip-path: polygon(100% 2%,100% 98%,77% 98%,77% 50%,50% 77%,50% 48%); }
.rc-brand-mark i:nth-child(3) { background: #ffbf44; clip-path: polygon(50% 85%,100% 39%,100% 54%,50% 100%); }
#rc-user { margin-left: 0; overflow-wrap: anywhere; }
body {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 min-height: 100svh;
}
main, #rc-app:not([hidden]), #rc-screen {
 display: flex;
 flex: 1;
 flex-direction: column;
 min-width: 0;
}
#rc-screen:not(:has(.rc-operator-stage)) { background: white; }
#rc-screen > .rc-panel { margin: 0; border-inline: 0; border-radius: 0; padding: clamp(.8rem, 2vw, 1.5rem); }
#rc-screen > .rc-panel:last-child { flex: 1; }
#rc-footer:not([hidden]) {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: flex-end;
 gap: .35rem .7rem;
 padding: .35rem .75rem;
 border-top: 1px solid #d9d4cd;
 background: #f5f4f1;
}
.rc-operator-stage {
 display: grid;
 flex: 1;
 align-items: center;
 min-height: 24rem;
 padding: clamp(1.25rem, 5vw, 5rem);
 background: linear-gradient(90deg, #17181be8, #17181b45 68%, #17181b13),
             #19191d url('/ristomt-operator-background.jpg') center right / cover no-repeat;
}
.rc-operator-card {
 width: min(100%, 28rem);
 max-height: 65vh;
 overflow: auto;
 padding: clamp(1.2rem, 3vw, 2rem);
 border: 1px solid #e4e0dc;
 border-top: 4px solid #d52327;
 border-radius: .65rem;
 background: #fff;
 color: #222127;
 box-shadow: 0 14px 40px #0005;
}
.rc-operator-card h1 {
 margin: 0 0 1rem;
 font-size: clamp(1.4rem, 3vw, 1.85rem);
 font-weight: 720;
}
.rc-operator-list { display: grid; gap: .6rem; }
.rc-operator-option {
 display: grid;
 grid-template-columns: 2.5rem minmax(0, 1fr) auto;
 align-items: center;
 gap: .7rem;
 width: 100%;
 min-height: 60px;
 padding: .6rem .75rem;
 border: 1px solid #d9c6c7;
 border-radius: .45rem;
 color: #222127;
 background: #fff;
 text-align: left;
}
.rc-operator-option:hover { background: #fff2f2; border-color: #c1262e; }
.rc-operator-option:focus-visible { outline: 3px solid #a72531; outline-offset: 2px; }
.rc-operator-option:disabled { opacity: .6; }
.rc-operator-initials {
 display: grid;
 place-items: center;
 width: 2.5rem;
 height: 2.5rem;
 border-radius: 50%;
 background: #f9e5e6;
 color: #9c202a;
 font-size: .85rem;
 font-weight: 720;
}
.rc-operator-info { display: grid; overflow-wrap: anywhere; }
.rc-location-option { grid-template-columns: minmax(0, 1fr) auto; overflow-wrap: anywhere; }
.rc-operator-info small, .rc-picker-status { color: #5f5b62; }
.rc-operator-arrow { color: #a72531; font-size: 1.5rem; line-height: 1; }
.rc-picker-status { margin: 0; }
@media (max-width: 600px) {
 header { gap: .45rem .7rem; }
 .rc-brand-mark, .brand small { display: none; }
 .rc-operator-stage {
  align-items: end;
  padding: 1rem 1rem max(1rem,env(safe-area-inset-bottom));
  background-position: center, 72% center;
 }
 .rc-operator-card { max-height: 58svh; }
}
#rc-nav {
 position: relative;
 display: flex;
 gap: 5px;
 padding: 6px;
 background: #e7edf4;
 border: 1px solid #aebccd;
 border-inline: 0;
 margin: 0;
}
#rc-nav > .btn { flex: 1 1 0; min-width: 0; }
#rc-nav[hidden], #rc-header-nav[hidden] { display: none; }
#rc-nav .btn, .rc-nav-options .btn {
 min-height: 44px;
 padding: .5rem .65rem;
 border-color: #9cacc1;
 background: #fff;
 color: #172f50;
 font-weight: 650;
}
#rc-nav .btn:hover, .rc-nav-options .btn:hover { background: #dce8f6; }
#rc-nav .btn[aria-current="page"], .rc-nav-options .btn[aria-current="page"] { color: #fff; background: #193e69; border-color: #193e69; }
.rc-nav-dropdown { position: relative; }
.rc-nav-dropdown summary {
 display: flex;
 align-items: center;
 justify-content: center;
 min-width: 44px;
 min-height: 44px;
 color: white;
 border: 1px solid #797b84;
 font-size: 1.15rem;
 list-style: none;
}
.rc-nav-dropdown summary::-webkit-details-marker { display: none; }
.rc-nav-dropdown summary:hover, .rc-nav-dropdown summary.rc-nav-selected { color: #fff; background: #303037; }
.rc-nav-dropdown:not([open]) .rc-nav-options { display: none; }
.rc-nav-options {
 position: absolute;
 z-index: 20;
 inset: calc(100% + .45rem) auto auto 0;
 display: grid;
 gap: .35rem;
 width: min(18rem,calc(100vw - 2rem));
 max-height: 62vh;
 overflow: auto;
 padding: .5rem;
 border: 1px solid #aebccd;
 border-radius: .45rem;
 background: #fff;
 box-shadow: 0 .65rem 1.5rem #172f5033;
}
.rc-nav-options .btn { text-align: left; }
@media (max-width: 600px) {
 #rc-nav > .btn { padding-inline: .35rem; font-size: .85rem; }
 .rc-nav-dropdown { position: static; flex: 0 0 auto; }
 .rc-nav-options { inset: calc(100% + .25rem) 0 auto; width: auto; border-radius: 0 0 .45rem .45rem; }
}
.rc-settings { display: flex; flex-direction: column; }
.rc-settings-grid {
 display: grid;
 flex: 1;
 grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr));
 grid-auto-rows: minmax(7rem,1fr);
 gap: .75rem;
 margin: 0;
}
.rc-settings-tile {
 display: grid;
 justify-items: center;
 align-content: center;
 gap: .55rem;
 min-height: 7rem;
 padding: .8rem .45rem;
 color: #24272c;
 background: #fff;
 border: 1px solid #b5bfcb;
 border-radius: .45rem;
 font-weight: 650;
}
.rc-settings-tile img { object-fit: contain; }
.rc-settings-tile:hover { background: #fff0f1; border-color: #b72432; }
.rc-settings-tile:focus-visible { outline: 3px solid #a72531; outline-offset: 2px; }
.rc-settings-secondary { margin-top: .75rem; }
.rc-settings .breadcrumb { align-items: baseline; margin-bottom: .85rem; }
.rc-settings .breadcrumb button { text-align: left; }
.rc-fiscal-identity { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .85rem; margin: 0; }
.rc-fiscal-identity dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.rc-settings > .rc-config, .rc-settings-tools { padding: .9rem; }
.rc-settings-tools { border: 1px solid #d9d4cd; border-radius: .35rem; }
.rc-room-options { display: flex; flex: 1 1 100%; gap: .55rem 1rem; flex-wrap: wrap; align-items: end; padding: .6rem 0; }
.rc-room-options[hidden] { display: none; }
.rc-print-heading { display: grid; flex: 1 1 100%; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: .6rem; }
.rc-print-options { flex: 1 1 100%; }
.rc-print-options > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: .5rem; padding: .5rem 0; }
.rc-print-options label { white-space: normal; }
.rc-font-field { display: flex; flex: 1 1 100%; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rc-room-list-toolbar { margin-bottom: .65rem; }
.rc-room-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dddde0; }
.rc-room-list-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: .4rem;
 min-height: 3.3rem;
 padding: .4rem .1rem;
 border-bottom: 1px solid #dddde0;
 overflow-wrap: anywhere;
}
.rc-room-list-row small { display: block; color: #595b64; }
.rc-room-list-actions { display: flex; flex-shrink: 0; gap: .25rem; }
.rc-room-list-actions .btn { min-width: 44px; min-height: 44px; }
.rc-room-editor { max-width: 58rem; }
.rc-room-editor > label { flex-basis: 100%; }
.rc-room-detail { flex: 1 1 100%; border: 1px solid #c9cdd5; border-radius: .35rem; padding: .5rem .7rem; }
.rc-room-detail summary { font-weight: 650; color: #172f50; cursor: pointer; }
.rc-room-editor-actions { display: flex; flex: 1 1 100%; gap: .5rem; justify-content: flex-end; padding-top: .5rem; }
.rc-room-options legend, .rc-menu-products legend { float: none; width: auto; margin: 0 0 .4rem; font-size: .95rem; font-weight: 650; }
.rc-room-options label:has([name="menuId"]) { flex: 2 1 13rem; }
.rc-room-help { flex-basis: 100%; color: #595b64; }
.rc-room-printers { display: grid; flex-basis: 100%; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .55rem; }
.rc-printer-slot { display: grid; gap: .25rem; padding: .45rem; border: 1px solid #d5d9de; border-radius: .35rem; }
.rc-printer-slot > label { min-width: 0; }
.rc-menu-products { display: grid; flex-basis: 100%; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .55rem; max-height: 55vh; overflow: auto; }
.rc-room-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rc-room-tags span { padding: .3rem .6rem; border-radius: .35rem; background: #e7edf4; color: #172f50; font-size: .85rem; }
.rc-room-options label:has([type="checkbox"]) { display: flex; align-items: center; gap: .35rem; align-self: center; }
.rc-room-options input[type="color"] { display: block; min-height: 36px; width: 4.5rem; }
.rc-settings-tools p { margin: .65rem 0 0; }
.rc-settings .rc-config summary {
 padding: .55rem .65rem;
 border: 1px solid #c3cdd8;
 border-radius: .35rem;
 background: #edf2f7;
 color: #172f50;
}
@media (max-width: 600px) {
 .rc-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(6rem,1fr); gap: .55rem; }
 .rc-settings-tile { min-height: 6rem; }
}
.rc-floor { border-color: #bdc9d6; }
.rc-floor-toolbar, .rc-screen-heading {
 display: flex;
 flex-wrap: wrap;
 gap: .65rem 1rem;
 justify-content: space-between;
 align-items: center;
}
.rc-floor-toolbar { justify-content: flex-start; margin-bottom: .75rem; align-items: end; }
.rc-floor-toolbar label { min-width: min(12rem, 100%); }
.rc-zoom { display: flex; align-items: center; gap: .35rem; }
.rc-zoom button {
 width: 44px;
 height: 44px;
 border: 1px solid #9cacc1;
 border-radius: .3rem;
 background: #fff;
 color: #172f50;
 font-size: 1.3rem;
}
.rc-zoom button:disabled { opacity: .46; }
.rc-zoom output { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.rc-floor-counts { display: flex; flex-wrap: wrap; align-self: center; gap: .35rem; font-size: .85rem; }
.rc-floor-counts span { padding: .25rem .55rem; border-radius: .3rem; }
.rc-free { color: #1b512c; background: #e6f4e7; }
.rc-occupied { color: #7d3020; background: #ffdfce; }
.rc-floor-scroll {
 max-height: min(62vh, 640px);
 min-height: 200px;
 overflow: auto;
 padding: .65rem;
 border: 1px solid #b8c5d3;
 border-radius: .35rem;
 background: #edf2f7;
}
.rc-floor-grid { --slot-width: 116px; --slot-height: 88px; display: grid; width: max-content; grid-template-columns: repeat(6,var(--slot-width)); grid-auto-rows: var(--slot-height); gap: .5rem; }
.rc-floor-grid.rc-zoom-0 { --slot-width: 88px; --slot-height: 74px; }
.rc-floor-grid.rc-zoom-2 { --slot-width: 145px; --slot-height: 110px; }
.rc-floor-grid.rc-zoom-3 { --slot-width: 174px; --slot-height: 132px; }
.rc-floor-grid .rc-table { min-width: 0; min-height: 0; overflow-wrap: anywhere; overflow: auto; }
.rc-floor-grid .rc-table strong { font-size: 1.12rem; }
.rc-floor-grid .rc-table[aria-pressed="true"] { outline: 3px solid #193e69; outline-offset: -3px; }
.rc-floor-empty { display: block; border: 1px dashed #c5d0dc; border-radius: .35rem; }
.rc-floor-target { background: #f8fafc; border-color: #7791ae; color: #193e69; font-size: 1.22rem; }
.rc-floor-target:hover { background: #dce8f6; }
.rc-floor-selection { margin: .65rem 0 0; min-height: 1.5rem; }
.rc-payment-summary { display: flex; gap: .55rem 2rem; flex-wrap: wrap; margin-bottom: 0; }
.rc-payment-summary dt { font-size: .85rem; }
.rc-payment-summary dd { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }
