.rp-modal .modal-card,.rp-modal .detail-modal-card{width:min(860px,94vw)!important;max-width:860px!important;max-height:88vh!important;height:auto!important;margin:auto!important;border-radius:18px!important;overflow:auto!important}.rp-modal{align-items:center!important;justify-content:center!important}.rp-body{padding:14px;max-height:73vh;overflow:auto}.rp-body fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;padding:14px;border:1px solid #36516c;border-radius:12px}.rp-body label{display:flex;align-items:center;gap:10px;justify-content:space-between}.rp-body input,.rp-body select{max-width:220px}.rp-body textarea{width:100%}.rp-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.rp-route{padding:6px;border-bottom:1px solid #36516c}.rp-body table{width:100%;text-align:right}.rp-body td{padding:8px;border-bottom:1px solid #36516c}.rp-body small{display:block}.rp-note-list{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.rp-note-list label{padding:10px;border:1px solid #36516c;border-radius:8px}.rp-line-notes{padding:3px 8px!important;margin-inline:6px;min-width:28px!important}.rp-line-note{display:block!important;white-space:normal;font-size:11px;color:#83d8ff}.restaurant-pos .cart-product-cell:has(.rp-line-note){flex-wrap:wrap;height:auto!important}.restaurant-pos .sale-sheet-row:has(.rp-line-note){min-height:72px!important}@media(max-width:600px){.rp-body fieldset{grid-template-columns:1fr}.rp-body input,.rp-body select{max-width:170px}}
html body[data-active-page="cashierPage"] #detailModal.rp-modal:not(.is-hidden){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;padding:18px!important}
html body[data-active-page="cashierPage"] #detailModal.rp-modal .detail-modal-card{display:block!important;flex:none!important;width:min(860px,94vw)!important;max-width:860px!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:90dvh!important;block-size:auto!important;min-block-size:0!important;margin:auto!important;padding:18px!important;border-radius:18px!important;overflow:auto!important;align-self:center!important}
html body #detailModal.rp-modal #detailModalBody{height:auto!important;overflow:visible!important;display:block!important}
html body #detailModal.rp-modal .rp-body label{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:auto!important;min-width:0!important;font-size:13px!important}
html body #detailModal.rp-modal .rp-body input,html body #detailModal.rp-modal .rp-body select{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
html body #detailModal.rp-modal .rp-body input[type="checkbox"]{width:auto!important}
html body #detailModal.rp-modal .rp-body button{background:#1c3859;color:#def0ff;border:1px solid #3e6086;border-radius:9px;padding:9px 13px}
html body #detailModal.rp-modal .rp-body .rp-route{grid-template-columns:1fr 1fr!important;align-items:center}
#kitchenAppPage{padding:24px;max-width:1600px;margin:auto;width:100%;box-sizing:border-box}#kitchenAppPage .rp-body{max-height:none;overflow:visible}#kitchenAppPage .rp-body fieldset{grid-template-columns:repeat(3,minmax(0,1fr));background:var(--panel-bg,#102039)}#kitchenAppPage .rp-body label{display:grid;gap:5px;min-width:0}#kitchenAppPage input,#kitchenAppPage select,#kitchenAppPage textarea{width:100%;max-width:100%;box-sizing:border-box}#kitchenAppPage input[type=checkbox]{width:auto}#kitchenAppPage .rp-route{display:grid;grid-template-columns:1fr 1fr;gap:18px}#kitchenAppPage button{background:#193656;color:#e3f1ff;border:1px solid #385776;border-radius:9px;padding:10px 15px;cursor:pointer}#kitchenAppPage button.active{background:#0865dc}#kitchenAppPage button:disabled{opacity:.5}#kitchenAppPage .rp-tabs{align-items:end}#kitchenAppPage .rp-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}#kitchenAppPage .rp-ticket{padding:18px;border:1px solid #56708b;border-top:5px solid #3096ff;border-radius:13px;background:#12243c}#kitchenAppPage .rp-ticket h2{margin:0 0 8px}#kitchenAppPage .rp-ticket li{padding:10px 0;border-bottom:1px solid #38516b}#kitchenAppPage .rp-ticket li p{color:#ffd29a;margin:5px 0}#kitchenAppPage .rp-state-preparing{border-top-color:#f4b94b}#kitchenAppPage .rp-state-ready{border-top-color:#36c77b}#kitchenAppPage .rp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}#kitchenAppPage .rp-kpis article{padding:18px;background:#193656;border-radius:12px}#kitchenAppPage .rp-kpis strong{display:block;font-size:27px}#kitchenAppPage .rp-table-scroll{overflow:auto}#kitchenAppPage th,#kitchenAppPage td{padding:10px;white-space:normal;min-width:90px}#kitchenAppNav.active{background:#125cab}@media(max-width:720px){#kitchenAppPage{padding:12px}#kitchenAppPage .rp-body fieldset{grid-template-columns:1fr}#kitchenAppPage .rp-tabs{display:grid;grid-template-columns:1fr 1fr}#kitchenAppPage .rp-board{grid-template-columns:1fr}}

/* Follow the application's existing theme switch, including live changes. */
html body[data-active-page] #detailModal.rp-create-note-modal .detail-modal-card{width:min(460px,94vw)!important;max-width:460px!important}
html body #detailModal.rp-create-note-modal .rp-body{max-height:65vh}
html body #detailModal.rp-create-note-modal .rp-body input{width:100%!important;max-width:100%!important}
html body #detailModal.rp-create-note-modal #rpCreateNoteError{color:#ff9d9d;white-space:normal}
@media screen {
html[data-pos-theme="light"] #kitchenAppPage{color:#20364f}
html[data-pos-theme="light"] #kitchenAppPage :is(.dashboard-header,.panel-card){background:#fff!important;background-image:none!important;border-color:#d9e2ed!important;color:#20364f!important}
html[data-pos-theme="light"] #kitchenAppPage .rp-body fieldset,
html[data-pos-theme="light"] #kitchenAppPage .rp-kpis article{background:#f2f6fc!important;border-color:#d3dfed!important;color:#20364f!important}
html[data-pos-theme="light"] #kitchenAppPage :is(h1,h2,h3,strong,b,legend){color:#20364f!important}
html[data-pos-theme="light"] #kitchenAppPage :is(p,small,label,td,th){color:#455b74!important}
html[data-pos-theme="light"] #kitchenAppPage :is(input,select,textarea){background:#fff!important;color:#20364f!important;border-color:#b9cadd!important;color-scheme:light}
html[data-pos-theme="light"] #kitchenAppPage button{background:#eaf1fb!important;background-image:none!important;color:#174c8a!important;border-color:#c3d4ea!important}
html[data-pos-theme="light"] #kitchenAppPage button.active{background:#0865dc!important;color:#fff!important;border-color:#0865dc!important}
html[data-pos-theme="light"] #kitchenAppPage button:hover{background:#dce9fc!important}
html[data-pos-theme="light"] #kitchenAppPage button.active:hover{background:#0756bc!important}
html[data-pos-theme="light"] #kitchenAppPage :is(td,th,.rp-route){border-color:#d7e1ed!important}
html[data-pos-theme="light"] #kitchenAppPage thead th{background:#edf3fa!important}
html[data-pos-theme="light"] #kitchenAppPage tbody tr{background:#fff!important}
html[data-pos-theme="light"] #kitchenAppPage tbody tr:nth-child(even){background:#f7f9fc!important}
html[data-pos-theme="light"] #kitchenAppPage a{color:#075bb6!important}
html[data-pos-theme="light"] #detailModal.rp-modal .detail-modal-card{background:#fff!important;color:#20364f!important;border-color:#d9e2ed!important}
html[data-pos-theme="light"] #detailModal.rp-modal :is(h2,p,label,small){color:#20364f!important}
html[data-pos-theme="light"] #detailModal.rp-modal .rp-body button{background:#eaf1fb!important;color:#174c8a!important;border-color:#c3d4ea!important}
html[data-pos-theme="light"] #detailModal.rp-modal :is(input,select,textarea){background:#fff!important;color:#20364f!important;border-color:#b9cadd!important}
}
