/* Shared staff layout: compact work areas without reducing browser zoom. */
.topbar-start{display:flex;align-items:center;gap:16px;min-width:0}
.staff-nav-toggle{flex-shrink:0;background:#fff;border-color:var(--line)}
.cashier-alert-heading .cashier-list-toggle{background:#fff;color:#8e1524;border-color:#fff;flex-shrink:0;font-size:12px;min-height:36px;padding:8px 11px}
.workspace main>*{min-width:0;max-width:100%}
.workspace :is(input,select,textarea){max-width:100%;min-width:0}
.workspace :is(.table-wrap,.table-scroll,.hr-table-wrap){max-width:100%;min-width:0;overscroll-behavior-x:contain}
.workspace :is(.table-wrap,.table-scroll,.hr-table-wrap):focus-visible{outline:3px solid #bd6600;outline-offset:3px}
.page-heading{flex-wrap:wrap}
.page-heading>div{flex:1 1 260px;min-width:0}
.page-heading :is(.button,form){max-width:100%}
.page-heading :is(h1,p),.section-heading{overflow-wrap:anywhere}
.filters,.filters form,.quick-filters{flex-wrap:wrap;min-width:0}
.filters{justify-content:flex-start}
.filters form{flex:1 1 360px}
.filters :is(input,select){max-width:100%;min-width:0}
.order-layout>*,.clock-layout>*,.service-grid>*,.hr-detail-grid>*{min-width:0}
footer{flex-wrap:wrap;gap:10px}

@media(min-width:601px){
  .sidebar{height:100vh;height:100dvh;overflow:hidden}
  .sidebar>.brand,.sidebar>.nav-caption{flex-shrink:0}
  .sidebar nav{overflow-y:auto;min-height:0;flex:1;align-content:start;overscroll-behavior:contain;scrollbar-gutter:stable}
  .sidebar-bottom{flex-shrink:0}
  .staff-nav-collapsed .sidebar{visibility:hidden;transform:translateX(-100%)}
  .staff-nav-collapsed .workspace{margin-left:0}
  .workspace .order-layout{grid-template-columns:minmax(0,1fr) minmax(280px,32%);align-items:start}
  .workspace .order-layout>.bill{position:sticky;top:12px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;scrollbar-gutter:stable}
}

@media(min-width:601px) and (max-width:1440px), (min-width:601px) and (max-height:820px){
  .sidebar{width:196px;padding:18px 12px 12px}
  .workspace{margin-left:196px}
  .sidebar .brand{gap:9px;justify-content:flex-start}
  .sidebar .brand-symbol{width:38px;height:40px}
  .sidebar .brand-word{display:block;font-size:25px}
  .sidebar .nav-caption{display:block;margin:20px 9px 12px;font-size:9px}
  .sidebar nav{display:grid;gap:4px;margin-top:0}
  .sidebar nav a{font-size:12px;gap:9px;padding:8px 10px;min-height:38px;line-height:1.45}
  .sidebar nav a svg{width:18px;height:18px}
  .sidebar-bottom{display:none}
  .topbar{height:62px;min-height:62px;padding:0 22px;gap:12px}
  .topbar-start{gap:12px}
  .top-actions{gap:10px}
  .location{font-size:12px;gap:8px}
  .staff-nav-toggle{min-height:38px;padding:8px 11px}
  main{padding:20px 22px 28px;min-height:calc(100dvh - 125px)}
  h1{font-size:26px;line-height:1.25;margin:4px 0 8px}
  .page-heading{gap:12px;margin-bottom:16px;padding-bottom:14px}
  .page-heading p{margin-bottom:0;line-height:1.55}
  .section-heading{gap:12px;flex-wrap:wrap;margin:22px 0 14px}
  .service-panel{padding:18px;margin-bottom:16px}
  .workspace .filters{padding:12px 14px;gap:10px;margin-bottom:16px;align-items:end}
  .workspace .filters form,.workspace .quick-filters{gap:8px}
  .workspace .filters :is(input,select){flex:0 1 210px}
  .workspace .filters select{width:auto}
  .workspace .filters .button{min-height:40px;padding:9px 12px}
  .workspace th,.workspace td{padding:11px 12px;vertical-align:middle;line-height:1.5}
  .workspace td .button{min-height:36px;padding:7px 10px;margin:2px 0;font-size:12px;max-width:100%}
  .workspace td:has(>.button),.workspace td:has(>form){min-width:130px}
  .workspace :is(.kpi-grid,.hr-stats){grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin-bottom:20px}
  .workspace .module-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
  .workspace .tables-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px}
  .table-card{padding:18px}
  .table-number{font-size:36px;margin:16px 0;gap:14px}
  .workspace .ticket-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
  .ticket{padding:18px}
  .ticket-heading{margin-bottom:14px}
  .ticket-items{margin:16px 0}
  .workspace .order-layout{gap:16px}
  .workspace .order-layout .menu-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr));gap:12px}
  .workspace .order-layout .menu-card :is(img,.dish-placeholder){height:clamp(112px,18vh,152px);aspect-ratio:auto;object-fit:contain}
  .workspace .order-layout .menu-card-body{padding:12px}
  .workspace .order-layout .menu-card h3{font-size:14px;line-height:1.4;margin-bottom:8px;overflow-wrap:anywhere}
  .workspace .order-layout .menu-price{margin-bottom:10px}
  .workspace .order-layout .menu-card .button{min-height:38px;padding:8px 10px}
  .workspace .menu-categories{gap:6px;margin-bottom:14px}
  .workspace .menu-categories .button{min-height:38px;padding:8px 11px}
  .workspace .bill{padding:16px}
  .bill-heading{margin-bottom:12px}
  .bill-item{padding:12px 0;gap:8px}
  .bill-total{padding:16px 0;gap:8px;flex-wrap:wrap}
  .bill-total strong{font-size:20px}
  .bill-note{line-height:1.5}
  .cashier-alert-toolbar{gap:9px;font-size:12px}
  .cashier-alert-toolbar .button{min-height:34px;padding:6px 10px}
  .cashier-alert-toolbar small{font-size:11px}
  .cashier-alert-heading{padding:12px 16px;gap:12px}
  .cashier-alert-heading strong{font-size:18px}
  .cashier-alert-heading p{font-size:12px;margin:4px 0 0}
  .cashier-alert-banner [data-cashier-items]{max-height:clamp(180px,30dvh,240px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .cashier-alert-order{padding:12px 16px;gap:14px}
  .cashier-alert-contact{min-width:0}
  .cashier-alert-phone{font-size:18px}
  .cashier-alert-actions{gap:7px}
  .cashier-alert-actions .button{min-height:36px;padding:8px 10px}
  .workspace .dish-fields{gap:16px}
  .workspace .hr-nav{gap:6px;margin-bottom:18px}
  .workspace .hr-nav a{font-size:12px;padding:8px 12px}
  .workspace .hr-filter{padding:14px;gap:10px}
  .workspace .hr-filter button{width:auto}
  .workspace .hr-table-wrap td .button{font-size:12px;min-height:38px;padding:8px 10px}
  footer{padding:18px 22px}
}

@media(min-width:601px) and (max-width:900px){
  .topbar{padding:0 16px}
  main{padding:16px}
  .top-actions time,.top-actions .avatar{display:none}
  .workspace .order-layout{grid-template-columns:minmax(0,1fr) 280px;gap:12px}
  .workspace .order-layout .menu-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))}
}

@media(min-width:601px) and (max-width:760px){
  .workspace .order-layout{grid-template-columns:minmax(0,1fr)}
  .workspace .order-layout>.bill{position:static;max-height:none}
  .topbar .location{display:none}
}

@media(max-width:600px){
  .staff-nav-toggle{display:none}
  .topbar-start{gap:0}
  .top-actions time,.top-actions .avatar{display:none}
  .page-heading>div{flex-basis:auto}
  .cashier-alert-heading{flex-wrap:wrap}
  .cashier-alert-heading .cashier-list-toggle{margin-left:auto}
}

.service-summary{margin-bottom:20px;padding:20px;display:grid;gap:12px;min-width:0}.service-summary h2{font-size:20px}.service-summary .table-wrap{overflow-x:auto}

.table-entry{display:flex;flex-direction:column;gap:8px;min-width:0}.table-entry>.table-card{flex:1}.table-entry>form{margin:0}.table-entry>form button{font-size:12px;white-space:normal}
.table-order-total{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;margin-top:9px;padding-top:8px;border-top:1px solid var(--line)}
.table-order-total span{color:var(--muted);font-size:11px}
.table-order-total strong{font-size:16px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Active service includes paid food waiting for cashier handoff. */
.panel.order-active{background:#effaf2;border-color:#4dba76;box-shadow:0 0 0 1px #4dba7620,0 3px 14px #23824712}
.order-active .ticket-heading>b{color:#176b36}
.order-active .ticket-heading .badge{background:#d1efdc;color:#176035}
tr.order-active>td{background:#effaf2}
tr.order-active:hover>td{background:#e1f5e8}
tr.order-active>td:first-child{box-shadow:inset 4px 0 #35a862}

.gulim .sidebar{background:#191817;border-color:#191817}
.gulim .sidebar>.brand{margin-bottom:20px}
.gulim-sidebar-logo{display:block;width:100%;max-width:196px;height:auto;border-radius:5px}
.gulim-login-logo{max-width:100%;border-radius:6px}
.gulim .sidebar nav a:hover:not([aria-current]){background:#35312a}
.gulim .button.primary{background:#ffc540;border-color:#ffc540;color:#241c11}
.gulim .button.primary:hover{background:#efb535;border-color:#efb535}
