:root{
  --app-bg:#f5f6f8;
  --app-surface:#ffffff;
  --app-surface-2:#fbfcfd;
  --app-line:#dfe4ea;
  --app-line-strong:#c9d2dc;
  --app-text:#111827;
  --app-muted:#667085;
  --app-primary:#2563eb;
  --app-primary-dark:#1d4ed8;
  --app-teal:#0f766e;
  --app-amber:#b45309;
  --app-danger:#dc2626;
  --app-success:#15803d;
  --app-radius:8px;
  --app-shadow:0 10px 26px rgba(17,24,39,.08);
  --touch-size:44px;
}

html,body{scroll-behavior:smooth;}
body{
  min-height:100vh;
  background:var(--app-bg);
  color:var(--app-text);
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  font-size:15px;
  line-height:1.44;
}
a{color:var(--app-primary);}
a:hover{color:var(--app-primary-dark);}

/* The project ships a small Bootstrap fallback, so keep the shell independent
   from Bootstrap's missing responsive utilities and offcanvas/modal CSS. */
.d-sm-inline-flex,.d-md-flex,.d-lg-flex{display:none !important;}
.d-lg-none{display:initial;}
@media (min-width:576px){.d-sm-inline-flex{display:inline-flex !important;}}
@media (min-width:768px){.d-md-flex{display:flex !important;}}
@media (min-width:992px){
  .d-lg-flex{display:flex !important;}
  .d-lg-none{display:none !important;}
  .col-lg-3{width:25%}
  .col-lg-4{width:33.333%}
  .col-lg-5{width:41.666%}
  .col-lg-6{width:50%}
  .col-lg-8{width:66.666%}
  .col-lg-9{width:75%}
}
@media (min-width:1200px){
  .col-xl-3{width:25%}
  .col-xl-5{width:41.666%}
  .col-xl-7{width:58.333%}
}
.col-xl-3,.col-xl-5,.col-xl-7{padding:0 8px;width:100%;}
@media (min-width:1200px){
  .row>.col-xl-3{width:25%}
  .row>.col-xl-5{width:41.666%}
  .row>.col-xl-7{width:58.333%}
}

.app-topbar{
  background:#ffffff;
  border-bottom:1px solid var(--app-line);
  box-shadow:0 8px 24px rgba(17,24,39,.05);
  z-index:1030;
}
.app-topbar-main{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.app-brand{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  color:var(--app-text);
  text-decoration:none;
  font-weight:800;
}
.app-brand:hover{color:var(--app-text);}
.app-brand-mark{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--app-radius);
  background:linear-gradient(135deg,var(--app-primary),var(--app-teal));
  color:#fff;
  font-weight:900;
}
.app-brand-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:36vw;
}
.app-topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.55rem;
  min-width:0;
}
.app-user-chip{
  align-items:center;
  gap:.5rem;
  border:1px solid var(--app-line);
  background:var(--app-surface-2);
  border-radius:999px;
  padding:.45rem .7rem;
  color:var(--app-muted);
  max-width:300px;
}
.app-user-chip span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.app-user-chip strong{color:var(--app-text);font-size:.82rem;}
.app-menu-button,.app-logout-button,.app-alert-button{
  min-height:40px;
  border-radius:var(--app-radius);
  font-weight:800;
}
.app-menu-button{
  color:var(--app-text);
  border:1px solid var(--app-line-strong);
  background:#fff;
}
.app-logout-button{
  color:var(--app-danger);
  border:1px solid rgba(220,38,38,.24);
  background:#fff;
}
.app-alert-button{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#fff;
  border:0;
  background:var(--app-text);
  box-shadow:0 8px 18px rgba(17,24,39,.14);
}
.app-alert-button:hover,.app-alert-button:focus{color:#fff;background:#0b1220;}
.app-alert-button.unread-alerts{background:var(--app-danger);}
.app-alert-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.app-alert-button.unread-alerts .app-alert-dot{
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.2);
}
.app-alert-count{
  min-width:26px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:0 .45rem;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:.82rem;
}

.app-nav-scroll{
  gap:.4rem;
  padding:0 0 .8rem;
  overflow-x:auto;
  scrollbar-width:thin;
}
.app-nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.45rem .75rem;
  border:1px solid var(--app-line);
  border-radius:999px;
  color:#344054;
  background:#fff;
  text-decoration:none;
  font-weight:750;
  white-space:nowrap;
}
.app-nav-link:hover{
  color:var(--app-primary);
  border-color:#bfdbfe;
  background:#eff6ff;
}
.app-nav-link.is-active{
  color:#fff;
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.app-mobile-menu{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:1060;
  width:min(360px,calc(100vw - 32px));
  display:block;
  overflow:auto;
  background:#fff;
  border-left:1px solid var(--app-line);
  box-shadow:-18px 0 40px rgba(17,24,39,.18);
  transform:translateX(105%);
  visibility:hidden;
  transition:transform .18s ease,visibility .18s ease;
}
.app-mobile-menu.is-open,
.app-mobile-menu.show{
  transform:translateX(0);
  visibility:visible;
}
.offcanvas-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:1rem;
  border-bottom:1px solid var(--app-line);
}
.offcanvas-title{margin:0;font-size:1.05rem;font-weight:950;}
.offcanvas-body{padding:1rem;}
.btn-close{
  width:36px;
  height:36px;
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#fff;
  color:transparent;
  position:relative;
  cursor:pointer;
}
.btn-close:before,.btn-close:after{
  content:"";
  position:absolute;
  left:9px;
  right:9px;
  top:17px;
  height:2px;
  background:#344054;
}
.btn-close:before{transform:rotate(45deg);}
.btn-close:after{transform:rotate(-45deg);}
.app-backdrop{
  position:fixed;
  inset:0;
  z-index:1050;
  display:none;
  background:rgba(17,24,39,.38);
}
.app-backdrop.is-open{display:block;}
.app-mobile-nav{display:grid;gap:.55rem;}
.app-mobile-nav-link{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:.75rem .85rem;
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#fff;
  color:var(--app-text);
  text-decoration:none;
  font-weight:800;
}
.app-mobile-nav-link.is-active{
  color:#fff;
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.app-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1035;
  display:none;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  background:#fff;
  border-top:1px solid var(--app-line);
  box-shadow:0 -8px 22px rgba(17,24,39,.08);
}
.app-bottom-nav-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:.25rem .35rem;
  color:var(--app-muted);
  text-decoration:none;
  font-size:.78rem;
  font-weight:850;
  text-align:center;
}
.app-bottom-nav-link.is-active{color:var(--app-primary);}

.app-content{
  max-width:1540px;
  margin-left:auto;
  margin-right:auto;
  padding:1.25rem 1.25rem 2rem;
}
.app-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.app-page-kicker{
  color:var(--app-muted);
  font-size:.77rem;
  text-transform:uppercase;
  font-weight:900;
}
.app-page-head h1{
  margin:0;
  font-size:1.55rem;
  font-weight:900;
  line-height:1.16;
}
.app-page-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end;}
.app-flash{border-radius:var(--app-radius);box-shadow:var(--app-shadow);}

.card-soft,.panel-soft,.kpi,.table-card,.menu-card,.kitchen-ticket,.receipt{
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#fff;
  box-shadow:var(--app-shadow);
}
.card{border-radius:var(--app-radius);}
.card-body{padding:1rem;}
.module-title{
  font-size:1rem;
  font-weight:900;
  color:var(--app-text);
}
.text-muted{color:var(--app-muted) !important;}
.badge{font-weight:800;}

.btn,.form-control,.form-select{min-height:var(--touch-size);}
.btn-sm,.form-control-sm,.form-select-sm{min-height:36px;}
.btn{font-weight:800;letter-spacing:0;border-radius:var(--app-radius);}
.btn-primary{
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.btn-primary:hover,.btn-primary:focus{
  background:var(--app-primary-dark);
  border-color:var(--app-primary-dark);
}
.btn-outline-primary{
  color:var(--app-primary);
  border-color:#aac6ff;
}
.btn-outline-primary:hover,.btn-outline-primary:focus{
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.btn-outline-secondary{
  color:#475467;
  border-color:var(--app-line-strong);
  background:#fff;
}
.btn-outline-secondary:hover,.btn-outline-secondary:focus{
  color:#111827;
  background:#f3f4f6;
}
.btn-outline-danger{
  color:var(--app-danger);
  border-color:rgba(220,38,38,.28);
  background:#fff;
}
.btn-outline-danger:hover,.btn-outline-danger:focus{
  color:#fff;
  background:var(--app-danger);
  border-color:var(--app-danger);
}
.d-inline{display:inline;}
.form-control,.form-select{
  border-radius:var(--app-radius);
  border-color:var(--app-line-strong);
  font-size:.94rem;
}
.form-control:focus,.form-select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 .22rem rgba(37,99,235,.12);
}
.form-label{font-weight:800;color:#344054;font-size:.88rem;}
.form-check-input:checked{
  background-color:var(--app-primary);
  border-color:var(--app-primary);
}

.kpi{
  min-height:118px;
  padding:1rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
}
.kpi .h3,.kpi .h4,.metric-value{
  font-weight:950;
  letter-spacing:0;
}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.85rem;
}
.metric-card{
  min-height:126px;
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#fff;
  box-shadow:var(--app-shadow);
  padding:1rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.metric-label{
  color:var(--app-muted);
  font-size:.82rem;
  font-weight:850;
}
.metric-value{
  font-size:1.45rem;
  line-height:1.15;
}
.metric-subtle{font-size:.82rem;color:var(--app-muted);}
.metric-accent-blue{border-top:4px solid var(--app-primary);}
.metric-accent-teal{border-top:4px solid var(--app-teal);}
.metric-accent-amber{border-top:4px solid var(--app-amber);}
.metric-accent-green{border-top:4px solid var(--app-success);}

.hero-shell{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  padding:1rem;
  border-radius:var(--app-radius);
  background:#111827;
  box-shadow:var(--app-shadow);
  color:#fff;
}
.hero-title{font-size:1.45rem;font-weight:950;line-height:1.15;}
.hero-subtitle{opacity:.84;max-width:700px;}
.hero-pills{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start;}
.hero-pill{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.16);
  padding:.5rem .7rem;
  border-radius:999px;
  font-weight:850;
  color:#fff;
}

.quick-link-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:176px;
  text-decoration:none;
  color:var(--app-text);
  background:#fff;
  border-radius:var(--app-radius);
  padding:1rem;
  border:1px solid var(--app-line);
  box-shadow:var(--app-shadow);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.quick-link-card:hover{
  color:var(--app-text);
  transform:translateY(-2px);
  border-color:#bfdbfe;
  box-shadow:0 14px 30px rgba(17,24,39,.12);
}
.quick-link-icon{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--app-radius);
  background:#eff6ff;
  color:var(--app-primary);
  font-weight:950;
}
.quick-link-title{font-size:1.05rem;font-weight:950;margin:.75rem 0 .25rem;}
.quick-link-desc{color:var(--app-muted);font-size:.92rem;}
.quick-card-a .quick-link-icon{background:#ecfdf5;color:var(--app-success);}
.quick-card-b .quick-link-icon{background:#eff6ff;color:var(--app-primary);}
.quick-card-c .quick-link-icon{background:#fffbeb;color:var(--app-amber);}
.quick-card-d .quick-link-icon{background:#eef2ff;color:#4338ca;}

.item-thumb{width:72px;height:72px;object-fit:cover;border-radius:var(--app-radius);border:1px solid var(--app-line);background:#fff;}
.item-thumb-lg{width:100%;height:176px;object-fit:cover;border-radius:0;border:0;background:#f3f4f6;}
.menu-card{height:100%;overflow:hidden;}
.menu-card .body{padding:.9rem;}
.catalog-grid,.qr-menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:.85rem;
}
.menu-toolbar{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(150px,220px);
  gap:.75rem;
  align-items:end;
}
.menu-card[data-filter-hidden="1"]{display:none;}
.menu-card .small{overflow-wrap:anywhere;}

.table-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:.85rem;
}
.table-card{padding:1rem;}
.table-status-vacant{border-left:5px solid var(--app-success);}
.table-status-occupied{border-left:5px solid var(--app-danger);}
.table-status-reserved{border-left:5px solid var(--app-amber);}
.table-status-bill_requested{border-left:5px solid var(--app-primary);}
.table-status-merged{border-left:5px solid #6b7280;}

.table{font-size:.92rem;margin-bottom:0;}
.table td,.table th{vertical-align:middle;}
.table-responsive{-webkit-overflow-scrolling:touch;}
.table thead th,.table tbody tr:first-child th{
  color:#475467;
  font-size:.78rem;
  text-transform:uppercase;
  border-bottom-color:var(--app-line-strong);
}
.interactive-tile{transition:transform .15s ease,box-shadow .15s ease;}
.interactive-tile:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(17,24,39,.08);}

.filter-strip,.report-filter-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(160px,220px)) auto;
  gap:.75rem;
  align-items:end;
}
.report-filter-strip-wide{
  grid-template-columns:repeat(2,minmax(150px,190px)) repeat(3,minmax(180px,1fr)) auto;
}
.report-filter-note{
  color:var(--app-muted);
  font-size:.88rem;
}
.report-section-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
}
.report-card{height:100%;}
.report-card .table-responsive{max-height:440px;}
#reportsBody .card-body{overflow-x:auto;}
#reportsBody .table{min-width:620px;}
.report-chart-card{height:100%;}
.report-pie{
  width:168px;
  height:168px;
  border-radius:50%;
  margin:0 auto;
  border:12px solid #fff;
  box-shadow:inset 0 0 0 1px var(--app-line),0 12px 24px rgba(17,24,39,.09);
}
.report-legend{
  display:grid;
  gap:.5rem;
}
.report-legend div{
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  align-items:center;
  gap:.5rem;
  color:#344054;
  font-size:.88rem;
}
.report-legend span{
  width:12px;
  height:12px;
  border-radius:3px;
}
.report-legend strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.report-legend em{
  color:var(--app-muted);
  font-style:normal;
  font-weight:850;
}
.report-bar-list{
  display:grid;
  gap:.75rem;
}
.report-bar-row{
  display:grid;
  gap:.35rem;
}
.report-bar-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  color:#344054;
  font-size:.9rem;
}
.report-bar-label span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.report-bar-label strong{
  color:var(--app-text);
  white-space:nowrap;
}
.report-bar-track{
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#eef2f7;
}
.report-bar-track span{
  display:block;
  height:100%;
  min-width:0;
  border-radius:999px;
}

.app-empty-filter{
  display:none;
  border:1px dashed var(--app-line-strong);
  border-radius:var(--app-radius);
  padding:1rem;
  text-align:center;
  color:var(--app-muted);
  background:#fff;
}
.ajax-busy{
  position:relative;
  pointer-events:none;
  opacity:.72;
}
.ajax-busy:after{
  content:attr(data-busy-label);
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.82);
  font-weight:900;
  color:var(--app-text);
  border-radius:inherit;
  backdrop-filter:blur(2px);
  z-index:3;
}
.ajax-busy:not([data-busy-label]):after{content:"Saving...";}
.app-toast{
  position:fixed;
  top:18px;
  right:18px;
  z-index:2000;
  min-width:260px;
  max-width:380px;
  border-radius:var(--app-radius);
  box-shadow:0 14px 30px rgba(17,24,39,.2);
  padding:.8rem .95rem;
  font-weight:850;
  color:#fff;
  background:var(--app-success);
}
.app-toast.is-error{background:var(--app-danger);}

.modal{
  position:fixed;
  inset:0;
  z-index:1070;
  display:none;
  overflow:auto;
  background:rgba(17,24,39,.42);
  padding:.75rem;
}
.modal.show{display:block;}
.modal-dialog{
  width:min(960px,calc(100vw - 24px));
  max-width:min(960px,calc(100vw - 24px));
  margin:2rem auto;
}
.modal-dialog-centered{min-height:calc(100vh - 4rem);display:flex;align-items:center;}
.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 4rem);overflow:hidden;}
.modal-dialog-scrollable .modal-body{overflow:auto;}
.modal-content{width:100%;background:#fff;border-radius:var(--app-radius);}
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:1rem;
}
.modal-title{font-size:1.1rem;font-weight:950;}
.modal-body{padding:1rem;}
.live-alert-modal .modal-dialog{width:min(960px,calc(100vw - 24px));max-width:min(960px,calc(100vw - 24px));}
.live-alert-modal .modal-content{border:0;border-radius:var(--app-radius);box-shadow:0 24px 55px rgba(17,24,39,.22);}
.live-alert-modal .modal-header{
  color:#fff;
  background:#111827;
  border-bottom:0;
}
.live-alert-modal .btn-close{filter:invert(1);}
.live-alert-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:.75rem;
}
.live-alert-item{
  border:1px solid var(--app-line);
  border-left:5px solid #64748b;
  border-radius:var(--app-radius);
  padding:.85rem;
  background:#fff;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
}
.live-alert-item.alert-type-qr_order{border-left-color:var(--app-success);background:#f0fdf4;}
.live-alert-item.alert-type-call_waiter{border-left-color:var(--app-primary);background:#eff6ff;}
.live-alert-item.alert-type-water{border-left-color:var(--app-teal);background:#ecfdf5;}
.live-alert-item.alert-type-tissue{border-left-color:#64748b;background:#f8fafc;}
.live-alert-item.alert-type-clean_table{border-left-color:var(--app-amber);background:#fffbeb;}
.live-alert-item.alert-type-request_bill{border-left-color:var(--app-danger);background:#fef2f2;}
.live-alert-title{font-weight:950;color:var(--app-text);margin-bottom:.25rem;}
.live-alert-subtitle,.live-alert-meta{color:var(--app-muted);}
.live-alert-meta{font-size:.82rem;margin-top:.45rem;}
.live-alert-note{
  color:#344054;
  font-size:.86rem;
  margin-top:.45rem;
  padding:.55rem;
  border-radius:var(--app-radius);
  background:rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.32);
  overflow-wrap:anywhere;
}
.live-alert-type-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
  padding:.28rem .5rem;
  margin-bottom:.55rem;
}
.live-alert-empty{
  grid-column:1/-1;
  border:1px dashed var(--app-line-strong);
  border-radius:var(--app-radius);
  background:#fff;
  color:var(--app-muted);
  text-align:center;
  padding:1.5rem 1rem;
  font-weight:850;
}

.qr-box{border:1px dashed var(--app-line-strong);border-radius:var(--app-radius);padding:.85rem;background:#fff;}
.receipt{max-width:780px;margin:0 auto;padding:1.25rem;}
.commission-box{background:#eff6ff;border:1px dashed #93c5fd;border-radius:var(--app-radius);padding:.75rem;}

.public-bill-body .app-content{
  max-width:920px;
}
.public-bill-wrap{
  display:grid;
  gap:1rem;
}
.public-bill-actions{
  display:flex;
  justify-content:flex-end;
}
.public-bill-card{
  overflow:hidden;
}
.public-bill-card .card-body{
  padding:1.25rem;
}
.public-bill-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--app-line);
}
.public-bill-kicker{
  color:var(--app-muted);
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
}
.public-bill-head h1{
  margin:.15rem 0 .25rem;
  font-size:1.65rem;
  line-height:1.1;
  letter-spacing:0;
}
.public-bill-number{
  min-width:180px;
  text-align:right;
}
.public-bill-number span{
  display:block;
  color:var(--app-primary);
  font-weight:950;
}
.public-bill-number strong{
  color:var(--app-muted);
  font-size:.9rem;
}
.public-bill-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
  margin-top:1rem;
}
.public-bill-meta div{
  min-height:76px;
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#f8fafc;
  padding:.75rem;
}
.public-bill-meta span,
.public-bill-totals span,
.public-bill-payments span{
  display:block;
  color:var(--app-muted);
  font-size:.78rem;
  font-weight:850;
}
.public-bill-meta strong{
  display:block;
  margin-top:.2rem;
  overflow-wrap:anywhere;
}
.public-bill-table th:last-child,
.public-bill-table td:last-child{
  font-weight:900;
}
.public-bill-totals{
  width:min(360px,100%);
  margin:1rem 0 0 auto;
  display:grid;
  gap:.45rem;
}
.public-bill-totals div,
.public-bill-payments div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.55rem .7rem;
  border-radius:var(--app-radius);
  background:#f8fafc;
}
.public-bill-grand{
  color:#fff;
  background:#111827 !important;
}
.public-bill-grand span{
  color:rgba(255,255,255,.7);
}
.public-bill-grand strong{
  font-size:1.1rem;
}
.public-bill-payments{
  margin-top:1rem;
  display:grid;
  gap:.45rem;
}

.recipe-workspace .table-responsive{overflow:auto;}
.recipe-picker{
  display:grid;
  gap:.55rem;
  max-height:520px;
  overflow:auto;
  padding-right:.2rem;
}
.recipe-picker-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-height:54px;
  padding:.7rem .75rem;
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:#fff;
  color:var(--app-text);
  text-decoration:none;
}
.recipe-picker-link:hover{
  color:var(--app-text);
  border-color:#bfdbfe;
  background:#eff6ff;
}
.recipe-picker-link.is-active{
  color:#fff;
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.recipe-picker-link span{
  min-width:0;
  display:grid;
  gap:.12rem;
}
.recipe-picker-link strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.recipe-picker-link small{
  color:inherit;
  opacity:.72;
}
.recipe-picker-link em{
  min-width:28px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#f3f4f6;
  color:#475467;
  font-style:normal;
  font-weight:900;
  font-size:.82rem;
}
.recipe-picker-link.is-active em{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.recipe-cost-strip{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  justify-content:flex-end;
}
.recipe-cost-strip span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.35rem .6rem;
  border:1px solid var(--app-line);
  border-radius:999px;
  background:#f8fafc;
  color:#475467;
  font-size:.86rem;
  gap:.25rem;
}
.recipe-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
.recipe-table{min-width:760px;}

@media (max-width:1199.98px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .report-section-grid{grid-template-columns:1fr;}
  .report-filter-strip-wide{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:991.98px){
  .app-content{padding:1rem .85rem 5.25rem;}
  .app-page-head{align-items:flex-start;flex-direction:column;}
  .app-page-actions{width:100%;justify-content:flex-start;}
  .app-brand-text{max-width:44vw;}
  .app-bottom-nav.d-lg-none{display:grid !important;}
}
@media (max-width:767.98px){
  body{font-size:.94rem;}
  .container,.container-fluid{padding-left:.75rem;padding-right:.75rem;}
  .app-topbar-main{min-height:62px;}
  .app-brand-mark{width:34px;height:34px;}
  .app-page-head h1{font-size:1.28rem;}
  .metric-grid{grid-template-columns:1fr;}
  .hero-shell{padding:.85rem;}
  .hero-title{font-size:1.2rem;}
  .card-body{padding:.85rem;}
  .menu-toolbar,.filter-strip,.report-filter-strip{grid-template-columns:1fr;}
  .catalog-grid,.qr-menu-grid{grid-template-columns:1fr;}
  .table-responsive .table{min-width:720px;}
  .table-mobile-cards thead,.table-mobile-cards tbody tr:first-child th{display:none;}
  .table-mobile-cards tbody,.table-mobile-cards tr,.table-mobile-cards td{display:block;width:100%;}
  .table-mobile-cards tr{
    border:1px solid var(--app-line);
    border-radius:var(--app-radius);
    margin-bottom:.75rem;
    background:#fff;
    box-shadow:0 8px 18px rgba(17,24,39,.05);
    overflow:hidden;
  }
  .table-mobile-cards td{border:0;border-bottom:1px solid #edf2f7;padding:.65rem .75rem;}
  .table-mobile-cards td:last-child{border-bottom:0;}
  .table-mobile-cards td[data-label]:before{
    content:attr(data-label);
    display:block;
    font-size:.72rem;
    text-transform:uppercase;
    color:var(--app-muted);
    font-weight:900;
    margin-bottom:.15rem;
  }
  .table-mobile-cards .d-flex{flex-wrap:wrap;}
  .public-bill-head{flex-direction:column;}
  .public-bill-number{text-align:left;min-width:0;}
  .public-bill-meta{grid-template-columns:1fr 1fr;}
  .public-bill-actions{justify-content:stretch;}
  .public-bill-actions .btn{width:100%;}
  .app-toast{left:.75rem;right:.75rem;top:auto;bottom:72px;max-width:none;min-width:0;}
  .live-alert-modal .modal-dialog{width:calc(100vw - 18px);max-width:calc(100vw - 18px);margin:.55rem auto;}
  .live-alert-grid{grid-template-columns:1fr;}
}
@media (max-width:430px){
  .app-brand-text{max-width:34vw;}
  .app-alert-button span:nth-child(2){display:none;}
}
@media print{
  .no-print,.offcanvas,.app-topbar,.app-bottom-nav,.app-page-head{display:none !important;}
  body{background:#fff;}
  .app-content{max-width:none;padding:0;}
  .receipt,.card-soft,.panel-soft,.kpi,.metric-card{box-shadow:none;border:0;}
  .public-bill-actions{display:none !important;}
  .public-bill-body .app-content{max-width:none;padding:0;}
  .public-bill-card .card-body{padding:.5rem;}
  .public-bill-meta div,.public-bill-totals div,.public-bill-payments div{background:#fff;}
}
