:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#14243a;background:#f3f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.hidden{display:none!important}.mast{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#0d1c30;color:white;padding:14px max(16px,calc((100vw - 1140px)/2));min-height:72px}.brand{display:flex;gap:10px;align-items:center}.mark{display:grid;place-items:center;font-weight:900;font-size:1.4rem;width:42px;height:42px;color:#fff;background:#ec784d;border-radius:13px}.brand strong{display:block;letter-spacing:.025em}.brand strong span{color:#f4aa84}.brand small{display:block;color:#b9c7d7;font-size:.73rem;margin-top:2px}.header-right{display:flex;align-items:center;gap:12px}.pill{font-size:.75rem;background:#243952;color:#d9e7f4;padding:7px 10px;border-radius:20px}.subtle{background:transparent;color:white;border:1px solid #6a7f96;border-radius:9px;padding:8px 12px}.workspace{max-width:1140px;margin:auto;padding:24px 16px 60px}.topline{display:flex;justify-content:space-between;align-items:center;gap:16px}.topline h1{margin:0;font-size:clamp(1.5rem,3vw,2rem)}.eyebrow{font-size:.72rem;letter-spacing:.12em;font-weight:800;color:#bf6240;margin:0 0 7px}.outlet-select{font-size:.8rem;color:#4c6277;min-width:220px}.outlet-select select{margin-top:5px}.tabs{display:flex;gap:8px;margin:22px 0 20px;border-bottom:1px solid #d4dfe9;padding-bottom:12px}.tabs button{background:#e3eaf2;color:#31465c;border:0;border-radius:11px;padding:12px 25px;font-weight:800}.tabs button.selected{background:#0d1c30;color:white}.card{background:#fff;border:1px solid #e2e8f0;border-radius:17px;box-shadow:0 4px 24px #1d38530d;padding:20px}.login-page{max-width:460px;margin:9vh auto 0;padding:0 16px}.login-card h1{font-size:2rem;margin:8px 0}.login-card p{line-height:1.55;color:#526379}.login-card small{display:block;margin-top:16px;line-height:1.5;color:#697d92}form{display:grid;gap:14px}label{display:block;font-weight:700;font-size:.86rem;color:#34465b}input,select,textarea{display:block;width:100%;padding:12px 13px;border-radius:11px;background:white;border:1px solid #cbd8e4;margin-top:5px;color:#182b41;min-height:44px}.primary{border:0;background:#e76f46;color:white;font-weight:800;border-radius:12px;padding:14px 19px;min-height:46px}.secondary{border:1px solid #ccd9e8;background:white;color:#142840;font-weight:750;border-radius:10px;padding:10px 14px;min-height:44px}.danger{color:#aa3140;border-color:#e6b5c0}.error{color:#aa3140;font-size:.87rem}.muted{color:#5f7186}.notice{padding:13px 16px;background:#fff6e9;border:1px solid #efd7b7;border-radius:11px;margin-bottom:16px;color:#685031}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:12px}.table-card{min-height:114px;border:2px solid #d8e4ee;background:white;color:#182b41;text-align:left;border-radius:15px;padding:15px;display:flex;flex-direction:column;gap:7px}.table-card b{font-size:1.5rem}.table-card small{color:#56697d}.table-card.occupied{border-color:#eeb999;background:#fff6ee}.table-card.selected{outline:3px solid #f5b15c}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.75fr);gap:17px}.section-title{margin:0 0 14px;display:flex;justify-content:space-between;align-items:center;gap:8px}.section-title h2{margin:0;font-size:1.16rem}.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:9px}.menu-item{border:1px solid #dbe6f0;background:#fff;border-radius:11px;text-align:left;padding:12px;min-height:82px}.menu-item b,.menu-item small{display:block}.menu-item small{color:#64778b;margin-top:8px}.cart-row,.visit-row,.bill-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e8eef3}.cart-row span{flex:1}.qty-actions{display:flex;align-items:center;gap:6px}.qty-actions button{width:34px;height:34px;border:1px solid #cbd8e4;background:white;border-radius:8px}.grand{display:flex;justify-content:space-between;font-size:1.2rem;font-weight:900;margin:17px 0}.stack{display:grid;gap:15px}.line-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.chip{font-size:.7rem;border-radius:14px;background:#eef3f7;padding:5px 9px;font-weight:800}.soft-warning{background:#fff6ec;border:1px solid #f4d0a8;border-radius:10px;padding:11px 14px;color:#83513a}.toolbar{display:flex;gap:9px;flex-wrap:wrap}.search{max-width:300px}.report-table{width:100%;border-collapse:collapse}.report-table th,.report-table td{text-align:left;padding:10px;border-bottom:1px solid #e0e9f1;font-size:.82rem}.report-table th{background:#f3f6fa;white-space:nowrap}.scroll{overflow:auto}.hgap{height:16px}footer{text-align:center;color:#60758a;font-size:.73rem;padding:15px}.outline{border:1px solid #d6e1eb;border-radius:12px;padding:12px;margin-top:12px}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ec9c56;outline-offset:2px}@media(max-width:760px){.mast{padding:12px 14px}.brand small{font-size:.63rem}.pill{display:none}.topline{align-items:stretch;flex-direction:column}.outlet-select{min-width:0}.tabs button{flex:1;padding:12px 10px}.two-col{grid-template-columns:1fr}.workspace{padding-top:18px}.card{padding:16px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.mast,.tabs,.topline,footer,button{display:none!important}.card{border:0;box-shadow:none}.workspace{max-width:100%;padding:0}}

/* Ciboora Lite 80mm browser receipt, isolated from the interactive POS screen. */
#cibooraLiteBrowserBill{display:none}
@media print{
  @page{margin:0}
  body>*:not(#cibooraLiteBrowserBill){display:none!important}
  #cibooraLiteBrowserBill{
    display:block!important;
    margin:0!important;padding:2mm!important;
    width:var(--thermal-width,80mm)!important;max-width:var(--thermal-width,80mm)!important;
    color:#000;background:#fff;font:11px/1.3 ui-monospace,Consolas,monospace;
    border:0!important;box-shadow:none!important;
  }
  #cibooraLiteBrowserBill h1,#cibooraLiteBrowserBill h2{margin:0 0 4px;text-align:center}
  #cibooraLiteBrowserBill hr{border:0;border-top:1px dashed #111;margin:6px 0}
  #cibooraLiteBrowserBill .thermal-center{text-align:center}
  #cibooraLiteBrowserBill .thermal-center p{margin:3px 0}
  #cibooraLiteBrowserBill .thermal-row,#cibooraLiteBrowserBill .thermal-total{display:flex;justify-content:space-between;gap:6px;padding:2px 0}
  #cibooraLiteBrowserBill .thermal-row span{flex:1;min-width:0;overflow-wrap:anywhere}
  #cibooraLiteBrowserBill .thermal-row b{text-align:right;overflow-wrap:anywhere}
  #cibooraLiteBrowserBill .thermal-total{border-block:1px dashed #111;font-size:15px;font-weight:800;margin:5px 0}
  #cibooraLiteBrowserBill .thermal-item{display:flex;justify-content:space-between;gap:6px;padding:5px 0;border-bottom:1px dotted #888;break-inside:avoid}
  #cibooraLiteBrowserBill .thermal-item>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
  #cibooraLiteBrowserBill .thermal-item>div:last-child{text-align:right;white-space:nowrap}
  #cibooraLiteBrowserBill small{display:block;font-size:9px}
  #cibooraLiteBrowserBill .thermal-buyer{border:1px dashed #555;padding:4px;margin:5px 0;overflow-wrap:anywhere}
  #cibooraLiteBrowserBill .thermal-receipt-logo{display:block;margin:0 auto 5px;max-height:36mm;max-width:65%;height:auto;object-fit:contain}
  #cibooraLiteBrowserBill .thermal-copy:not(:last-child){break-after:page;page-break-after:always}
}

/* Guest capture for waiter, manager and captain; separate from kitchen notes. */
.guest-details{margin:10px 0 14px;padding:12px;border:1px solid #dce6ee;border-radius:12px;background:rgba(231,239,247,.3)}
.guest-details h3{margin:0 0 8px;font-size:1rem}.guest-details label{display:block;margin:7px 0;font-size:.85rem}
.guest-details input{width:100%;box-sizing:border-box;min-height:42px;padding:8px;border-radius:8px}
.guest-details small{font-size:.74rem;opacity:.8}.guest-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}

.guest-anonymous-label{display:flex!important;align-items:center;gap:9px;margin:10px 0;font-weight:650}
.guest-anonymous-label input{width:20px;height:20px;min-height:20px;margin:0;flex:0 0 20px}



/* Staged per-dish food customisation; visible under its original KOT item. */
.cart-food-line{border-bottom:1px solid #e3eaf1;padding-bottom:12px;margin-bottom:8px}
.cart-food-line .cart-row{border:0;padding-bottom:5px}
.food-note{margin:4px 0 6px;font-size:.82rem}
.food-note textarea{font-size:.85rem;resize:vertical;min-height:60px;margin-top:3px}
.food-addons{border:1px solid #d7e2ec;border-radius:10px;padding:9px 12px;margin:9px 0}
.food-addons legend{font-size:.85rem;font-weight:700;padding:0 5px}
.food-option{display:flex;align-items:center;gap:9px;font-size:.82rem;font-weight:500;margin:7px 0}
.food-option input{width:20px;height:20px;min-height:20px;margin:0;flex:0 0 20px}
.food-addons small{display:block}


/* Role-aware dining stage; colours never change table availability or bill status. */
.table-card.table-map-empty{background:#ffffff;border-color:#c7d1dd;color:#172b40}
.table-card.table-map-active{background:#c9f3d6;border-color:#20894f;color:#124d2b}
.table-card.table-map-presented{background:#ffdbb4;border-color:#e77922;color:#743b0a}
.table-card.table-map-active small,.table-card.table-map-active .chip{color:#124d2b}
.table-card.table-map-presented small,.table-card.table-map-presented .chip{color:#743b0a}
.table-card.table-map-active .chip{background:#a6e8bd}
.table-card.table-map-presented .chip{background:#ffcb8f}
.table-map-legend{display:flex;gap:16px;flex-wrap:wrap;margin:10px 0 7px;font-size:.82rem;font-weight:700}
.table-map-legend span{display:inline-flex;gap:7px;align-items:center}
.table-map-dot{display:inline-block;width:15px;height:15px;border:1px solid #9faab6;border-radius:4px}
.table-map-dot-empty{background:#ffffff}.table-map-dot-active{background:#c9f3d6;border-color:#20894f}.table-map-dot-presented{background:#ffdbb4;border-color:#e77922}
.table-map-help{font-size:.77rem;margin:2px 0 14px}


/* UNIVERSAL CIBOORA KOT v1. Selectors strictly restricted to kitchen KOT. */
@media print {
 .thermal-print-sheet[data-kind="kot"] .thermal-kot-item{display:block!important;break-inside:avoid!important;padding:7px 0!important;text-align:left!important}
 .thermal-print-sheet[data-kind="kot"] .kot-item-details{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;white-space:normal!important;text-align:left!important}
 .thermal-print-sheet[data-kind="kot"] .kot-dish-line{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:start!important;gap:5px!important}
 .thermal-print-sheet[data-kind="kot"] .kot-item-name,.thermal-print-sheet[data-kind="kot"] .kot-item-qty{display:block!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:900!important;line-height:1.15!important;color:#000!important;overflow-wrap:anywhere!important}
 .thermal-print-sheet[data-kind="kot"] .kot-item-qty{text-align:right!important;white-space:nowrap!important}
 .thermal-print-sheet[data-kind="kot"] .kot-item-details small{display:block!important;text-align:left!important;white-space:normal!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;line-height:1.3!important;color:#000!important;margin-top:3px!important;overflow-wrap:anywhere!important}
 .thermal-print-sheet[data-kind="kot"][data-paper-mm="58"] .kot-item-name,.thermal-print-sheet[data-kind="kot"][data-paper-mm="58"] .kot-item-qty{font-size:17px!important}
 .thermal-print-sheet[data-kind="kot"][data-paper-mm="58"] .kot-item-details small{font-size:12px!important}
 .thermal-print-sheet[data-kind="kot"][data-paper-mm="80"] .kot-item-name,.thermal-print-sheet[data-kind="kot"][data-paper-mm="80"] .kot-item-qty{font-size:24px!important}
 .thermal-print-sheet[data-kind="kot"][data-paper-mm="80"] .kot-item-details small{font-size:16px!important}
}
