:root{
  --app-bg:#ffffff;
  --app-surface:#ffffff;
  --app-surface-soft:#f6f8fb;
  --app-text:#18212f;
  --app-muted:#667085;
  --app-border:#dde4ee;
  --app-primary:#1f6feb;
  --app-primary-dark:#185abc;
  --app-success:#16803c;
  --app-warning:#b7791f;
  --app-danger:#c92a2a;
  --app-radius:8px;
  --app-shadow:0 10px 26px rgba(24,33,47,.06);
}

html{height:100%}
body.app-body{
  min-height:100vh;
  margin:0;
  display:flex;
  flex-direction:column;
  color:var(--app-text);
  background:var(--app-bg);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:0;
}

.app-main{flex:1;width:100%;max-width:none}
.auth-body{background:#ffffff}
.auth-main{min-height:100vh;padding:0}
.auth-body .footer{display:none}

.app-navbar{
  position:sticky;
  top:0;
  z-index:1030;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--app-border);
  box-shadow:0 8px 24px rgba(24,33,47,.05);
  backdrop-filter:blur(14px);
  display:block;
  padding:0;
}
.app-navbar-top{min-height:64px}
.app-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--app-text);text-decoration:none}
.app-brand-mark{
  width:36px;height:36px;border-radius:8px;background:var(--app-primary);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:.88rem;
}
.app-brand-text{font-size:1rem;white-space:nowrap}
.app-navigation{
  width:100%;
  border-top:1px solid #edf1f6;
  background:#fff;
}
.app-nav-scroll{
  width:100%;
  overflow:visible;
  scrollbar-width:thin;
  scrollbar-color:#c8d2e0 transparent;
}
.app-nav{
  width:100%;
  min-width:0;
  gap:3px;
  padding:7px 0;
}
.app-nav .nav-link{
  color:#4a5568;
  border-radius:8px;
  padding:.55rem .72rem;
  font-weight:650;
  font-size:.88rem;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.app-nav .nav-link i{width:17px;text-align:center;color:#708097}
.app-nav .nav-link:hover{background:#eef4ff;color:var(--app-primary)}
.app-nav .nav-link.active{background:var(--app-primary);color:#fff}
.app-nav .nav-link.active i{color:#fff}
.app-nav-count{
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  background:#dc2626;
  color:#fff;
  font-size:.68rem;
  font-weight:900;
  line-height:1;
}
.app-nav .nav-link.active .app-nav-count{background:#fff;color:#dc2626}
.app-nav-dropdown{
  min-width:220px;
  padding:6px;
  border:1px solid var(--app-border);
  border-radius:8px;
  box-shadow:0 14px 34px rgba(24,33,47,.14);
}
.app-nav-dropdown .dropdown-item{
  min-height:38px;
  padding:8px 10px;
  border-radius:7px;
  color:#445166;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:.82rem;
  font-weight:750;
}
.app-nav-dropdown .dropdown-item i{width:18px;text-align:center;color:#758399}
.app-nav-dropdown .dropdown-item:hover{background:#eef4ff;color:var(--app-primary)}
.app-nav-dropdown .dropdown-item.active{background:var(--app-primary);color:#fff}
.app-nav-dropdown .dropdown-item.active i{color:#fff}
.app-userbar{display:flex;align-items:center;gap:10px;padding-left:12px;border-left:1px solid var(--app-border)}
.app-user-avatar{
  width:34px;height:34px;border-radius:50%;background:#eaf1ff;color:var(--app-primary);
  display:flex;align-items:center;justify-content:center;font-weight:850;
}
.app-user-name{font-weight:760;font-size:.9rem;line-height:1.1}
.app-user-role{color:var(--app-muted);font-size:.78rem}
.app-logout{display:inline-flex;align-items:center;gap:6px}

.page-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-bottom:18px;
}
.eyebrow{
  color:var(--app-primary);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:0;
  font-weight:800;
  margin-bottom:2px;
}
.section-title{
  font-weight:800;
  color:#263244;
  margin-bottom:12px;
}

.card,.panel-card{
  border:1px solid var(--app-border);
  border-radius:var(--app-radius);
  background:#ffffff;
  box-shadow:var(--app-shadow);
}
.panel-card-body{padding:18px}
.card.shadow-sm{box-shadow:var(--app-shadow)!important}
.card-body{padding:18px}

.btn{border-radius:8px;font-weight:700}
.btn-primary{background:var(--app-primary);border-color:var(--app-primary)}
.btn-primary:hover{background:var(--app-primary-dark);border-color:var(--app-primary-dark)}
.btn-outline-primary{border-color:#9bbcf8;color:var(--app-primary)}
.btn-outline-primary:hover{background:var(--app-primary);border-color:var(--app-primary);color:#fff}

.form-control,.form-select{
  border-radius:8px;
  border-color:var(--app-border);
  min-height:42px;
}
.form-control:focus,.form-select:focus{
  border-color:#8bb3f7;
  box-shadow:0 0 0 .2rem rgba(31,111,235,.14);
}
.form-label{font-weight:700;color:#38465a;font-size:.88rem}

.table{
  --bs-table-bg:#ffffff;
  --bs-table-striped-bg:#f5f8fc;
  --bs-table-hover-bg:#eef5ff;
  border-color:var(--app-border);
}
.table thead th{
  color:#526071;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:0;
  background:#f3f7fb;
  border-bottom:1px solid var(--app-border);
}
.table td,.table th{vertical-align:middle}
.table-responsive{border-radius:8px}

.badge{border-radius:20px;padding:20px;font-weight:800}
.badge-status{font-size:.85rem}
.alert{border-radius:8px;border-width:1px}

.metric-card .card-body{display:flex;flex-direction:column;gap:4px}
.metric-head{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.metric-icon{
  width:36px;height:36px;border-radius:8px;display:grid;place-items:center;
  background:#eef4ff;color:var(--app-primary);
}
.metric-icon.is-green{background:#eaf8ef;color:#16803c}
.metric-icon.is-amber{background:#fff6e7;color:#a15c00}
.metric-label{color:var(--app-muted);font-size:.86rem;font-weight:750}
.metric-value{font-size:clamp(1.55rem,2.2vw,2rem);font-weight:900;line-height:1.1}

.empty-state{
  border:1px dashed #b8c3d1;
  background:#f7f9fc;
  color:var(--app-muted);
  border-radius:8px;
  padding:18px;
  text-align:center;
}
.empty-state.compact{padding:12px;font-size:.9rem}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:10px;
}
.product-pick{
  border:1px solid var(--app-border);
  background:#ffffff;
  border-radius:8px;
  padding:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  min-height:88px;
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.product-pick:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:#9bbcf8;
  box-shadow:0 10px 24px rgba(31,111,235,.12);
}
.product-pick:disabled{opacity:.55;cursor:not-allowed;background:#f7f9fc}
.product-pick-main,.product-pick-side{display:flex;flex-direction:column;gap:3px}
.product-pick-main small,.product-pick-side small{color:var(--app-muted)}
.product-pick-side{text-align:right;white-space:nowrap}
.product-metric-grid,.category-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
  margin-bottom:14px;
}
.product-metric-grid>div,.category-metric-grid>div{
  min-height:76px;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:0 6px 18px rgba(24,33,47,.04);
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
}
.product-metric-grid i,.category-metric-grid i{
  width:34px;height:34px;border-radius:8px;background:#eaf2ff;color:var(--app-primary);
  display:grid;place-items:center;
}
.product-metric-grid span,.category-metric-grid span{color:var(--app-muted);font-size:.76rem;font-weight:850}
.product-metric-grid b,.category-metric-grid b{font-size:1.22rem}
.product-metric-grid .is-warning{border-color:#f3d296;background:#fffaf0}
.product-metric-grid .is-warning i{background:#fff3dc;color:#925b08}
.product-quality-panel,.product-bulk-panel{
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  margin-bottom:14px;
  overflow:hidden;
}
.product-quality-head{
  min-height:68px;
  padding:13px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  background:#fffaf0;
  border-bottom:1px solid #f3d296;
}
.product-quality-head>i{
  width:40px;height:40px;border-radius:8px;background:#fff3dc;color:#925b08;
  display:grid;place-items:center;
}
.product-quality-head b,.product-bulk-copy b{display:block;font-size:.9rem}
.product-quality-head span,.product-bulk-copy span{display:block;color:var(--app-muted);font-size:.74rem;font-weight:750}
.product-quality-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0}
.product-quality-list a{
  min-height:56px;
  padding:10px 12px;
  border-right:1px solid #edf1f6;
  border-bottom:1px solid #edf1f6;
  color:var(--app-text);
  text-decoration:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) 16px;
  align-items:center;
  gap:8px;
}
.product-quality-list a:hover{background:#f8fafc;color:var(--app-primary)}
.product-quality-list b{font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-quality-list span{display:block;color:var(--app-muted);font-size:.68rem;grid-column:1}
.product-quality-list i{grid-row:1/3;grid-column:2;color:#8a94a4}
.product-bulk-panel{
  padding:13px;
  display:grid;
  grid-template-columns:minmax(220px,.65fr) minmax(0,1.8fr);
  gap:12px;
  align-items:center;
}
.product-bulk-copy{display:flex;align-items:center;gap:10px}
.product-bulk-copy>i{
  width:40px;height:40px;border-radius:8px;background:#fff3dc;color:#925b08;
  display:grid;place-items:center;
  flex:0 0 auto;
}
.product-bulk-panel form{
  display:grid;
  grid-template-columns:1.2fr 1fr .7fr 1fr auto auto;
  gap:8px;
  align-items:center;
}
.product-bulk-check{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#465568;
  font-size:.76rem;
  font-weight:850;
  white-space:nowrap;
}
.product-filter-bar{
  margin-bottom:14px;
  display:grid;
  grid-template-columns:minmax(240px,1.4fr) repeat(5,minmax(120px,.7fr)) auto auto;
  gap:8px;
}
.product-filter-search{position:relative}
.product-filter-search>i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#8a94a4;
  pointer-events:none;
}
.product-filter-search .form-control{padding-left:38px}
.product-management-table{
  border:1px solid var(--app-border);
  background:#fff;
  box-shadow:var(--app-shadow);
}
.product-management-table .table{margin-bottom:0}
.product-cell{
  min-width:280px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.product-thumb{
  width:48px;
  height:48px;
  border-radius:8px;
  object-fit:cover;
  background:#eef2f7;
  color:#8a94a4;
}
span.product-thumb{
  display:grid;
  place-items:center;
}
.product-cell b{display:block;font-size:.9rem}
.product-cell span,.product-cell small{
  display:block;
  color:var(--app-muted);
  font-size:.7rem;
}
.product-cell small{
  max-width:340px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.product-issue-list{display:flex;flex-wrap:wrap;gap:5px}
.product-issue-list span{
  padding:4px 7px;
  border-radius:999px;
  background:#fff3dc;
  color:#925b08;
  font-size:.66rem;
  font-weight:850;
}
.product-ok-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:27px;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf8ef;
  color:#16803c;
  font-size:.7rem;
  font-weight:850;
  white-space:nowrap;
}
.product-switch-list{display:flex;flex-direction:column;gap:5px}
.product-switch-list form{margin:0}
.product-switch{
  min-width:92px;
  min-height:28px;
  border:1px solid var(--app-border);
  border-radius:999px;
  background:#f8fafc;
  color:#667085;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  font-size:.68rem;
  font-weight:850;
  cursor:pointer;
}
.product-switch i{
  width:16px;
  height:16px;
  border-radius:50%;
  background:#c4ccd8;
}
.product-switch.is-on{border-color:#bdeccf;background:#f2fbf5;color:#16803c}
.product-switch.is-on i{background:#16a34a}
.product-row-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.category-create-form{
  display:grid;
  grid-template-columns:1fr 90px auto;
  gap:8px;
  align-items:end;
}
.category-create-form label{display:flex;flex-direction:column;gap:4px}
.category-create-form span{color:#465568;font-size:.72rem;font-weight:850}
.category-table .form-control{min-height:34px}
.category-count-pill{
  min-height:27px;
  padding:5px 8px;
  border-radius:999px;
  background:#eef2f7;
  color:#465568;
  display:inline-flex;
  align-items:center;
  font-size:.7rem;
  font-weight:850;
  white-space:nowrap;
}
.category-count-pill.is-menu{background:#eaf2ff;color:var(--app-primary)}

.total-strip{
  border:1px solid #cfe0ff;
  background:#f4f8ff;
  border-radius:8px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.total-value{font-size:2rem;font-weight:900;line-height:1;color:var(--app-primary)}
.cart-list{display:flex;flex-direction:column;gap:10px}
.cart-line{
  border:1px solid var(--app-border);
  background:#fff;
  border-radius:8px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:14px;
}
.option-group{
  border:1px solid var(--app-border);
  background:#f8fafc;
  border-radius:8px;
  padding:12px;
  margin-bottom:10px;
}
.option-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--app-border);
  background:#fff;
  border-radius:8px;
  padding:9px 10px;
  margin-bottom:7px;
}

.orders-live-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.live-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.live-metric{
  min-height:86px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  padding:14px;
  display:grid;
  grid-template-columns:46px 1fr auto;
  align-items:center;
  gap:12px;
}
.live-metric i{
  width:46px;
  height:46px;
  border-radius:8px;
  background:#eef5ff;
  color:var(--app-primary);
  display:grid;
  place-items:center;
  font-size:1.08rem;
}
.live-metric span{
  min-width:0;
  color:#526071;
  font-size:.82rem;
  font-weight:850;
}
.live-metric b{
  color:#101828;
  font-size:1.75rem;
  line-height:1;
}
.live-metric.is-primary{border-color:#bcd5ff;background:#f7fbff}
.live-metric.is-warning{border-color:#f5d39b;background:#fffaf0}
.live-metric.is-warning i{background:#fff0d2;color:#a15c00}
.live-metric.is-danger{border-color:#fecaca;background:#fff5f5}
.live-metric.is-danger i{background:#fee2e2;color:#b4232b}
.live-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.live-section-head h5{font-weight:900}
.order-board{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:14px;
  align-items:stretch;
}
.order-card,.request-card,.table-card{
  border:1px solid var(--app-border);
  background:#fff;
  border-radius:8px;
  box-shadow:var(--app-shadow);
  overflow:hidden;
}
.order-card,.request-card{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.order-card.is-urgent,.request-card.is-urgent{border-color:#f1b44c}
.order-card-head,.request-card-head{
  padding:14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
  border-bottom:1px solid var(--app-border);
  background:#fbfcfe;
}
.order-table-name,.request-table-name{font-size:1.1rem;font-weight:900}
.order-meta,.request-meta{color:var(--app-muted);font-size:.84rem}
.order-card-body,.request-card-body{
  padding:14px;
  display:flex;
  flex:1;
  flex-direction:column;
}
.order-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.order-stat{
  border:1px solid var(--app-border);
  background:#f6f9fd;
  border-radius:8px;
  padding:10px;
}
.order-stat small{display:block;color:var(--app-muted);font-weight:750}
.order-stat b{font-size:1.05rem}
.order-preview{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.order-preview li{display:flex;justify-content:space-between;gap:10px;font-size:.9rem}
.order-preview li span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.request-icon{
  width:48px;height:48px;border-radius:8px;background:#eef5ff;color:var(--app-primary);
  display:flex;align-items:center;justify-content:center;font-weight:900;
  font-size:1.25rem;
  flex:0 0 auto;
}
.request-title-block{min-width:0}
.request-icon.is-waiter{background:#eef5ff;color:#1f6feb}
.request-icon.is-bill{background:#fff4e5;color:#b7791f}
.request-icon.is-water{background:#e8f7ff;color:#087ea4}
.request-icon.is-cleaning{background:#eafaf0;color:#16803c}
.request-icon.is-other{background:#f4f4f5;color:#52525b}

.request-type-pill{
  min-width:82px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--app-border);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
  font-weight:850;
}
.request-type-pill.is-waiter{border-color:#bcd5ff;color:#1f6feb;background:#f4f8ff}
.request-type-pill.is-bill{border-color:#f5d39b;color:#9a6700;background:#fff8ed}
.request-type-pill.is-water{border-color:#b8e6fa;color:#087ea4;background:#f0fbff}
.request-type-pill.is-cleaning{border-color:#bdeccf;color:#16803c;background:#f2fbf5}
.request-type-pill.is-other{border-color:#d4d4d8;color:#52525b;background:#fafafa}
.request-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.request-actions form{margin:0}
.request-actions .btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.order-flow-pills{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.order-flow-pills span{
  min-height:34px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
  color:#526071;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:5px 7px;
  font-size:.72rem;
  font-weight:850;
  text-align:center;
  white-space:nowrap;
}
.order-flow-pills span i{font-size:.72rem}
.order-flow-pills .is-waiting{border-color:#f6d596;background:#fff8ea;color:#9a6700}
.order-flow-pills .is-cooking{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.order-flow-pills .is-ready{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.order-card-footer{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--app-border);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.order-updated{
  color:#667085;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.78rem;
  font-weight:750;
}
.order-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.order-actions form{margin:0}
.order-actions .btn{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  line-height:1.15;
  white-space:normal;
  text-align:center;
}

.order-table-operations .panel-card-body{display:flex;flex-direction:column;gap:12px}
.order-table-operations .section-title{margin-bottom:0}
.order-operation-block{
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fafbfc;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.order-operation-title{display:flex;align-items:center;gap:9px}
.order-operation-title>i{
  width:34px;height:34px;border-radius:8px;display:grid;place-items:center;
  background:#eaf2ff;color:var(--app-primary);
}
.order-operation-title>div{display:flex;flex-direction:column}
.order-operation-title b{font-size:.84rem}
.order-operation-title small{color:var(--app-muted);font-size:.7rem}
.order-split-items{
  max-height:230px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:7px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
}
.order-split-items label{
  min-height:48px;
  padding:6px 7px;
  border-bottom:1px solid #edf1f6;
  display:grid;
  grid-template-columns:1fr 72px;
  align-items:center;
  gap:8px;
}
.order-split-items label:last-child{border-bottom:0}
.order-split-items label>span{min-width:0;display:flex;flex-direction:column}
.order-split-items label b{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-split-items label small{color:var(--app-muted);font-size:.66rem}
.order-split-items input{text-align:center}
.order-line-actions{min-width:178px}
.order-item-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.order-item-actions:empty{display:none}
.order-item-transfer,
.order-item-cancel{
  margin-top:7px;
  text-align:left;
}
.order-item-transfer summary,
.order-item-cancel summary{
  list-style:none;
  min-height:30px;
  padding:5px 9px;
  border:1px solid #bad0f5;
  border-radius:8px;
  color:var(--app-primary);
  background:#f6f9ff;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  font-size:.74rem;
  font-weight:850;
}
.order-item-transfer summary::-webkit-details-marker,
.order-item-cancel summary::-webkit-details-marker{display:none}
.order-item-transfer[open] summary{
  color:#fff;
  background:var(--app-primary);
  border-color:var(--app-primary);
}
.order-item-cancel summary{
  border-color:#fecaca;
  color:#b42318;
  background:#fff5f5;
}
.order-item-cancel[open] summary{
  color:#fff;
  background:#dc2626;
  border-color:#dc2626;
}
.order-item-transfer-form,
.order-item-cancel-form{
  margin-top:7px;
  padding:8px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(116px,1fr) 70px;
  gap:6px;
}
.order-item-transfer-form input[name="customer_name"],
.order-item-transfer-form input[name="operation_note"],
.order-item-transfer-form .btn,
.order-item-cancel-form .btn{
  grid-column:1/-1;
}
.order-item-cancel-form{
  grid-template-columns:1fr;
}
.order-payment-remaining{
  padding:6px 8px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--app-primary);
  font-size:.72rem;
  font-weight:850;
  white-space:nowrap;
}
.order-partial-list{
  border:1px solid var(--app-border);
  border-radius:8px;
  overflow:hidden;
}
.order-partial-row{
  padding:9px;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto 32px;
  align-items:center;
  gap:8px;
  border-bottom:1px solid var(--app-border);
  background:#fff;
}
.order-partial-row:last-child{border-bottom:0}
.order-partial-icon{
  width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  background:#eaf8ef;color:var(--app-success);font-size:.72rem;
}
.order-partial-row>div:nth-child(2){min-width:0;display:flex;flex-direction:column}
.order-partial-row b{font-size:.76rem}
.order-partial-row span,.order-partial-row small{color:var(--app-muted);font-size:.65rem}
.order-partial-row small{color:#38465a;margin-top:2px}
.order-partial-row>strong{font-size:.78rem;white-space:nowrap}
.order-partial-row form{margin:0}
.order-partial-row .btn{width:30px;height:30px;padding:0;display:grid;place-items:center}
.order-partial-entry{
  border:1px solid var(--app-border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.order-partial-entry .order-partial-row{border:0;border-radius:0}
.order-partial-actions{display:flex;align-items:center;gap:5px}
.order-partial-actions form{margin:0}
.order-partial-edit{border-top:1px solid var(--app-border);background:#f8fafc}
.order-partial-edit-form{
  padding:10px;
  display:grid;
  grid-template-columns:1.1fr .9fr .7fr;
  gap:7px;
}
.order-partial-edit-form input[name="note"],.order-partial-edit-form .btn{grid-column:1/-1}
.order-partial-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.order-partial-form .btn{grid-column:1/-1}
.order-event-list{display:flex;flex-direction:column}
.order-event{
  display:grid;
  grid-template-columns:32px 1fr auto;
  gap:9px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid var(--app-border);
}
.order-event:last-child{border-bottom:0;padding-bottom:0}
.order-event>i{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:#eef4ff;color:var(--app-primary);font-size:.75rem;
}
.order-event>div{display:flex;flex-direction:column;min-width:0}
.order-event b{font-size:.78rem}
.order-event span,.order-event small,.order-event time{color:var(--app-muted);font-size:.68rem}
.order-event small{margin-top:3px;color:#38465a}
.order-event time{white-space:nowrap}
@media (max-width:420px){
  .order-line-actions{min-width:150px}
  .order-item-actions{justify-content:flex-start}
  .order-item-transfer-form{grid-template-columns:1fr 62px}
  .order-partial-form{grid-template-columns:1fr}
  .order-partial-form .btn{grid-column:auto}
  .order-partial-row{grid-template-columns:30px minmax(0,1fr) 30px}
  .order-partial-row>strong{grid-column:2}
  .order-partial-row>form{grid-column:3;grid-row:1/3}
}

.sale-top-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:12px;
}
.sale-top-grid .span-2{grid-column:span 2}
.sale-top-grid .span-3{grid-column:span 3}
.sale-top-grid .span-4{grid-column:span 4}
.sale-top-grid .span-6{grid-column:span 6}
.sale-top-grid .span-12{grid-column:span 12}
.sale-cart-panel{
  position:static;
  top:auto;
  z-index:auto;
}
.sale-cart-total{
  border:1px solid #cfe0ff;
  background:#f4f8ff;
  border-radius:8px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.sale-cart-total span{color:var(--app-muted);font-size:.86rem;font-weight:750}
.sale-cart-total b{color:var(--app-primary);font-size:1.45rem;font-weight:900}
.sales-workspace{
  align-items:flex-start;
}
.sales-products-panel{
  min-height:620px;
}
.payment-builder{position:relative}
.discount-builder{
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f4f8ff;
  padding:12px;
}
.payment-rows{display:flex;flex-direction:column;gap:10px}
.payment-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
}
.payment-row-head{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.payment-row input[data-payment-field="note"]{grid-column:1/-1}
.payment-summary{
  border-top:1px solid var(--app-border);
  padding-top:12px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.payment-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.payment-summary span{color:var(--app-muted);font-size:.86rem;font-weight:700}
.payment-summary b{font-size:.95rem}

/* Hızlı satış / POS ekranı */
.pos-page-head{margin-bottom:12px}
.pos-page-status{
  display:flex;
  align-items:center;
  gap:16px;
  color:var(--app-muted);
  font-size:.82rem;
  font-weight:750;
}
.pos-page-status span{display:inline-flex;align-items:center;gap:6px}
.pos-page-status .fa-circle{font-size:.55rem}
.pos-order-context{
  display:grid;
  grid-template-columns:minmax(210px,.8fr) minmax(170px,.75fr) minmax(210px,1fr) minmax(240px,1.35fr);
  align-items:end;
  gap:12px;
  padding:12px;
  margin-bottom:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.pos-flow-selector{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
  padding:6px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f4f6f9;
}
.pos-flow-selector label{margin:0;cursor:pointer}
.pos-flow-selector input{position:absolute;opacity:0;pointer-events:none}
.pos-flow-selector span{
  min-height:54px;
  padding:8px 11px;
  border:1px solid transparent;
  border-radius:7px;
  color:#526071;
  display:grid;
  grid-template-columns:30px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  background:transparent;
}
.pos-flow-selector i{grid-row:1/3;width:30px;height:30px;border-radius:7px;background:#e5eaf1;display:grid;place-items:center}
.pos-flow-selector b{font-size:.8rem}
.pos-flow-selector small{font-size:.67rem;color:var(--app-muted)}
.pos-flow-selector input:checked+span{border-color:#9bbcf8;background:#fff;color:var(--app-primary);box-shadow:0 3px 10px rgba(31,111,235,.08)}
.pos-flow-selector input:checked+span i{background:#eaf2ff;color:var(--app-primary)}
.pos-context-title{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 6px;
}
.pos-context-title>i{
  width:38px;
  height:38px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#1f6feb;
}
.pos-context-title div{display:flex;flex-direction:column;min-width:0}
.pos-context-title b{font-size:.95rem}
.pos-context-title small{color:var(--app-muted);font-size:.75rem}
.pos-context-field{display:flex;flex-direction:column;gap:5px;margin:0}
.pos-context-field>span{font-size:.76rem;color:var(--app-muted);font-weight:800}
.pos-context-field .form-control{min-height:44px}

.pos-workspace{
  display:grid;
  grid-template-columns:82px minmax(310px,360px) minmax(480px,1fr) minmax(160px,190px);
  grid-template-areas:"actions ticket catalog categories";
  gap:12px;
  align-items:start;
}
.pos-action-rail{
  grid-area:actions;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:7px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.pos-action{
  width:100%;
  min-height:64px;
  padding:7px 4px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f5f7fa;
  color:#344054;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  text-align:center;
  text-decoration:none;
  font-size:.71rem;
  font-weight:800;
  line-height:1.1;
  transition:background .12s ease,border-color .12s ease,color .12s ease;
}
.pos-action i{font-size:1.08rem}
.pos-action:hover{background:#eef4ff;border-color:#b9d0fa;color:var(--app-primary)}
.pos-action.is-primary{background:var(--app-primary);color:#fff}
.pos-action.is-primary:hover{background:var(--app-primary-dark);color:#fff}

.pos-ticket-panel{
  grid-area:ticket;
  overflow:hidden;
  position:static;
}
.pos-panel-head,.pos-catalog-head{
  min-height:72px;
  padding:14px 16px;
  border-bottom:1px solid var(--app-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fbfcfe;
}
.pos-panel-kicker{
  display:block;
  color:var(--app-primary);
  font-size:.68rem;
  font-weight:850;
  text-transform:uppercase;
}
.pos-panel-head h6,.pos-catalog-head h6{margin:2px 0 0;font-size:1rem;font-weight:850}
.pos-count-badge{
  min-width:64px;
  padding:7px 9px;
  border-radius:999px;
  background:#eaf2ff;
  color:var(--app-primary);
  text-align:center;
  font-size:.76rem;
  font-weight:850;
}
.pos-cart-list{
  min-height:148px;
  max-height:330px;
  overflow:auto;
  padding:10px;
}
.pos-cart-line{
  position:relative;
  padding:10px;
  gap:10px;
  box-shadow:none;
}
.pos-cart-copy{min-width:0;overflow-wrap:anywhere}
.pos-cart-copy>b{display:block;margin-bottom:3px;font-size:.9rem}
.pos-cart-copy .small{font-size:.75rem;line-height:1.45}
.pos-cart-controls{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.pos-cart-controls>b{font-size:.9rem;color:#18212f}
.pos-qty-control{
  height:29px;
  display:grid;
  grid-template-columns:28px 30px 28px;
  align-items:center;
  border:1px solid var(--app-border);
  border-radius:7px;
  overflow:hidden;
  background:#fff;
}
.pos-qty-control button{
  height:100%;
  border:0;
  background:#f1f4f8;
  color:#344054;
  font-size:.68rem;
}
.pos-qty-control button:hover{background:#e4ecf7;color:var(--app-primary)}
.pos-qty-control span{text-align:center;font-size:.78rem;font-weight:850}
.pos-remove-line{
  width:29px;
  height:29px;
  border:1px solid #f1b7b7;
  border-radius:7px;
  background:#fff5f5;
  color:var(--app-danger);
  font-size:.72rem;
}
.pos-remove-line:hover{background:var(--app-danger);color:#fff}
.pos-ticket-panel .sale-cart-total{
  margin:0 10px 12px;
  padding:12px;
  background:#eef5ff;
}
.pos-ticket-panel .sale-cart-total b{font-size:1.55rem}
.pos-open-order-area{
  margin:0 10px 12px;
  padding:12px;
  border:1px solid #b9d0fa;
  border-radius:8px;
  background:#f3f7ff;
}
.pos-open-order-area>div{
  display:flex;
  align-items:center;
  gap:10px;
}
.pos-open-order-area i{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:8px;
  background:#dceaff;
  color:var(--app-primary);
  display:grid;
  place-items:center;
}
.pos-open-order-area span{display:flex;min-width:0;flex-direction:column}
.pos-open-order-area b{color:#1f3c68;font-size:.85rem}
.pos-open-order-area small{color:#64748b;font-size:.72rem;line-height:1.4}
.pos-payment-area{
  padding:12px;
  border-top:1px solid var(--app-border);
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pos-payment-area .discount-builder{margin:0}
.pos-subsection-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pos-subsection-head>div{display:flex;flex-direction:column}
.pos-subsection-head b{display:flex;align-items:center;gap:6px;font-size:.86rem}
.pos-subsection-head small{color:var(--app-muted);font-size:.7rem}
.pos-icon-button{width:34px;height:34px;padding:0;display:grid;place-items:center}
.pos-payment-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pos-payment-shortcuts .btn{display:flex;align-items:center;justify-content:center;gap:6px}
.pos-payment-area .payment-row{padding:8px}
.pos-payment-area .payment-summary{margin:0;padding-top:10px}
.pos-payment-state{
  margin-top:4px;
  padding-top:8px;
  border-top:1px dashed var(--app-border);
}
#paymentState{color:var(--app-warning)}
#paymentState[data-state="Ödendi"]{color:var(--app-success)}
#paymentState[data-state="Kısmi"]{color:#b45309}
#paymentState[data-state="Fazla ödeme"]{color:var(--app-danger)}
.pos-save-sale{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:.96rem;
  font-weight:850;
}
.pos-submit-area{
  padding:0 12px 12px;
  background:#fff;
}
.pos-payment-area + .pos-submit-area{padding-top:0}

.pos-catalog-panel{
  grid-area:catalog;
  min-height:720px;
  overflow:hidden;
}
.pos-catalog-head{background:#fff}
.pos-product-search{
  width:min(390px,52%);
  position:relative;
  display:grid;
  grid-template-columns:1fr 42px;
  gap:6px;
}
.pos-product-search>i{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#8793a5;
  z-index:1;
}
.pos-product-search .form-control{padding-left:36px;min-height:42px}
.pos-product-search .btn{width:42px;padding:0;display:grid;place-items:center}
.pos-product-grid{
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:10px;
  padding:12px;
}
.pos-product-card{
  min-height:216px;
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-color:#dfe5ed;
}
.pos-product-card:hover:not(:disabled){
  transform:translateY(-2px);
  border-color:#8bb3f7;
  box-shadow:0 10px 20px rgba(31,111,235,.12);
}
.pos-product-visual{
  position:relative;
  width:100%;
  height:120px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#eef2f7;
  color:#8290a4;
}
.pos-product-visual>img{width:100%;height:100%;object-fit:cover}
.pos-product-visual>i{font-size:2rem}
.pos-product-visual>small{
  position:absolute;
  left:7px;
  top:7px;
  padding:5px 7px;
  border-radius:6px;
  color:#fff;
  background:rgba(24,33,47,.82);
  font-size:.65rem;
  font-weight:800;
}
.pos-product-info{
  width:100%;
  min-height:94px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:left;
}
.pos-product-info>b{font-size:.9rem;line-height:1.2}
.pos-product-info>small{color:var(--app-muted);font-size:.71rem}
.pos-product-info>span{
  margin-top:auto;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:6px;
}
.pos-product-info strong{color:var(--app-primary);font-size:.91rem}
.pos-product-info em{
  color:var(--app-success);
  font-size:.65rem;
  font-style:normal;
  font-weight:800;
}
.pos-product-info em.is-out{color:var(--app-danger)}
.pos-catalog-panel>#productFilterEmpty{margin:12px}

.pos-category-panel{
  grid-area:categories;
  overflow:hidden;
}
.pos-category-head{
  min-height:72px;
  padding:13px;
  display:flex;
  align-items:center;
  gap:9px;
  border-bottom:1px solid var(--app-border);
  background:#fbfcfe;
}
.pos-category-head>i{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eaf2ff;
  color:var(--app-primary);
}
.pos-category-head div{display:flex;flex-direction:column}
.pos-category-head small{color:var(--app-muted);font-size:.67rem}
.pos-category-head b{font-size:.88rem}
.pos-category-list{display:flex;flex-direction:column;padding:8px;gap:5px}
.pos-category{
  width:100%;
  min-height:45px;
  border:1px solid transparent;
  border-radius:8px;
  padding:8px 9px;
  background:#fff;
  color:#4b596d;
  display:flex;
  align-items:center;
  gap:7px;
  text-align:left;
  font-size:.78rem;
  font-weight:800;
}
.pos-category i{width:15px;text-align:center;color:#94a0b2}
.pos-category:hover{background:#f3f7fc;color:var(--app-primary)}
.pos-category.is-active{background:#1f6feb;color:#fff}
.pos-category.is-active i{color:#fff}

@media (min-width:992px){
  .pos-ticket-panel{
    position:sticky;
    top:126px;
    max-height:calc(100vh - 142px);
    overflow-y:auto;
    scrollbar-width:thin;
  }
}

@media (max-width:1500px){
  .pos-workspace{grid-template-columns:74px minmax(290px,330px) minmax(430px,1fr) 155px}
  .pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}
}
@media (max-width:1250px){
  .pos-order-context{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pos-context-title{grid-column:1/-1}
  .pos-workspace{
    grid-template-columns:74px minmax(300px,340px) minmax(400px,1fr);
    grid-template-areas:
      "categories categories categories"
      "actions ticket catalog";
  }
  .pos-category-panel{display:flex;align-items:stretch}
  .pos-category-head{min-width:150px;border-bottom:0;border-right:1px solid var(--app-border)}
  .pos-category-list{min-width:0;flex:1;flex-direction:row;overflow-x:auto}
  .pos-category{width:auto;min-width:max-content}
}
@media (max-width:991px){
  .pos-workspace{
    grid-template-columns:72px minmax(0,1fr);
    grid-template-areas:
      "categories categories"
      "actions catalog"
      "ticket ticket";
  }
  .pos-catalog-panel{min-height:620px}
}
@media (max-width:767px){
  .pos-page-status{width:100%;justify-content:space-between}
  .pos-order-context{grid-template-columns:1fr}
  .pos-flow-selector{grid-template-columns:1fr}
  .pos-context-title{grid-column:auto}
  .pos-workspace{
    grid-template-columns:1fr;
    grid-template-areas:
      "categories"
      "actions"
      "catalog"
      "ticket";
  }
  .pos-action-rail{flex-direction:row;overflow-x:auto}
  .pos-action{min-width:74px;width:74px}
  .pos-category-panel{display:block}
  .pos-category-head{min-height:58px;border-right:0;border-bottom:1px solid var(--app-border)}
  .pos-category-list{flex-direction:row}
  .pos-catalog-head{align-items:stretch;flex-direction:column}
  .pos-product-search{width:100%}
  .pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  .pos-product-card{min-height:198px}
  .pos-product-visual{height:104px}
}
@media (max-width:420px){
  .pos-product-grid{grid-template-columns:1fr}
  .pos-product-card{min-height:0}
}

/* Görsel masa planı */
.floor-page-head{margin-bottom:14px}
.floor-create-band{
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f6f9ff;
  padding:14px;
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(560px,1.8fr);
  gap:18px;
  align-items:center;
}
.floor-create-copy{display:flex;align-items:center;gap:11px}
.floor-create-copy>i{
  width:42px;height:42px;border-radius:8px;display:grid;place-items:center;
  background:var(--app-primary);color:#fff;
}
.floor-create-copy>div{display:flex;flex-direction:column}
.floor-create-copy small{color:var(--app-muted);font-size:.76rem}
.floor-create-form{
  display:grid;
  grid-template-columns:.55fr 1fr 1fr .55fr auto;
  gap:8px;
}
.floor-create-form .form-control,.floor-create-form .btn{min-height:42px}
.floor-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.floor-summary-item{
  min-height:72px;
  border:1px solid var(--app-border);
  border-left:4px solid #94a3b8;
  border-radius:8px;
  background:#fff;
  padding:12px 14px;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  box-shadow:0 6px 18px rgba(24,33,47,.04);
}
.floor-summary-item>i{
  width:34px;height:34px;border-radius:8px;display:grid;place-items:center;
  background:#f1f4f8;color:#667085;
}
.floor-summary-item span{color:var(--app-muted);font-size:.8rem;font-weight:750}
.floor-summary-item b{font-size:1.45rem}
.floor-summary-item.is-available{border-left-color:#22a447}
.floor-summary-item.is-available>i{background:#eaf8ef;color:#16803c}
.floor-summary-item.is-occupied{border-left-color:#1f6feb}
.floor-summary-item.is-occupied>i{background:#eaf2ff;color:#1f6feb}
.floor-summary-item.is-payment{border-left-color:#e5484d}
.floor-summary-item.is-payment>i{background:#fff0f0;color:#c92a2a}
.floor-summary-item.is-request{border-left-color:#ee9b21}
.floor-summary-item.is-request>i{background:#fff5e7;color:#a15c00}
.floor-insight-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:10px;
}
.floor-insight-strip>div{
  min-height:54px;
  padding:10px 12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.floor-insight-strip span{color:var(--app-muted);font-size:.7rem;font-weight:850}
.floor-insight-strip b{font-size:1.02rem}
.floor-legend{
  display:flex;
  flex-wrap:wrap;
  gap:9px 16px;
  margin-bottom:18px;
  padding:8px 0;
  color:#59677a;
  font-size:.76rem;
  font-weight:750;
}
.floor-control-bar{
  margin-bottom:15px;
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  align-items:center;
  gap:10px;
}
.floor-search{position:relative}
.floor-search>i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#8a94a4;
  pointer-events:none;
}
.floor-search .form-control{min-height:42px;padding-left:38px}
.floor-filter-buttons{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
}
.floor-filter-buttons button{
  min-height:38px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  color:#4b596d;
  padding:7px 10px;
  white-space:nowrap;
  font-size:.74rem;
  font-weight:850;
}
.floor-filter-buttons button:hover{border-color:#9bbcf8;color:var(--app-primary);background:#f5f8ff}
.floor-filter-buttons button.is-active{border-color:var(--app-primary);background:var(--app-primary);color:#fff}
.floor-legend span{display:inline-flex;align-items:center;gap:6px}
.floor-legend i{width:9px;height:9px;border-radius:50%;background:#94a3b8}
.floor-legend i.is-available{background:#22a447}
.floor-legend i.is-occupied{background:#1f6feb}
.floor-legend i.is-payment{background:#e5484d}
.floor-legend i.is-reserved{background:#d99a16}
.floor-legend i.is-cleaning{background:#0891b2}
.floor-legend i.is-disabled{background:#7b8494}
.floor-area-tabs{
  margin:-4px 0 14px;
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding-bottom:4px;
}
.floor-area-tabs button{
  min-width:132px;
  min-height:44px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  color:#465568;
  padding:8px 10px;
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  text-align:left;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(24,33,47,.035);
}
.floor-area-tabs button i{color:#8a94a4}
.floor-area-tabs button span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:.75rem;
  font-weight:850;
}
.floor-area-tabs button b{
  min-width:26px;
  height:24px;
  border-radius:999px;
  background:#eef2f7;
  color:#344054;
  display:grid;
  place-items:center;
  padding:0 6px;
  font-size:.7rem;
}
.floor-area-tabs button:hover{border-color:#9bbcf8;background:#f7fbff;color:var(--app-primary)}
.floor-area-tabs button.is-active{border-color:var(--app-primary);background:#f1f6ff;color:var(--app-primary)}
.floor-area-tabs button.is-active i{color:var(--app-primary)}
.floor-area-tabs button.is-active b{background:var(--app-primary);color:#fff}
.floor-result-strip{
  margin:-5px 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#59677a;
  font-size:.76rem;
  font-weight:800;
}
.floor-result-strip span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.floor-result-strip b{color:#111827;font-size:.9rem}
.floor-result-strip button{
  min-height:32px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  color:#465568;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  font-size:.72rem;
  font-weight:850;
}
.floor-result-strip button:hover{border-color:#9bbcf8;background:#f5f8ff;color:var(--app-primary)}
.floor-plan{display:flex;flex-direction:column;gap:20px}
.floor-area{
  padding:0;
  border-top:1px solid var(--app-border);
}
.floor-area-head{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.floor-area-head>div{display:flex;align-items:center;gap:8px}
.floor-area-head i{color:var(--app-primary)}
.floor-area-head h5{margin:0;font-size:1rem;font-weight:850}
.floor-area-head>span{
  padding:5px 8px;border-radius:999px;background:#f1f4f8;
  color:var(--app-muted);font-size:.72rem;font-weight:800;
}
.table-floor-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:12px;
}
.table-floor-card{
  --table-state:#7b8494;
  border:1px solid var(--app-border);
  border-top:4px solid var(--table-state);
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 22px rgba(24,33,47,.055);
  overflow:hidden;
  transition:transform .12s ease,box-shadow .12s ease;
}
.table-floor-card:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(24,33,47,.09)}
.table-floor-card.is-available{--table-state:#22a447}
.table-floor-card.is-occupied{--table-state:#1f6feb}
.table-floor-card.is-payment{--table-state:#e5484d}
.table-floor-card.is-reserved{--table-state:#d99a16}
.table-floor-card.is-cleaning{--table-state:#0891b2}
.table-floor-card.is-disabled{--table-state:#7b8494;background:#f7f8fa}
.table-floor-card.has-request{box-shadow:0 0 0 2px rgba(238,155,33,.22),0 10px 24px rgba(24,33,47,.08)}
.table-floor-top{
  min-height:82px;
  padding:13px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.table-shape{
  position:relative;
  width:132px;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.table-shape>div{
  position:relative;
  z-index:1;
  width:94px;
  min-height:52px;
  padding:7px;
  border:2px solid color-mix(in srgb,var(--table-state) 55%,white);
  border-radius:8px;
  background:color-mix(in srgb,var(--table-state) 8%,white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.table-shape small{color:var(--table-state);font-size:.62rem;font-weight:900}
.table-shape b{max-width:82px;font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-shape>.fa-chair{position:absolute;color:var(--table-state);font-size:.82rem}
.table-shape>.chair-one{left:1px;transform:rotate(90deg)}
.table-shape>.chair-two{right:1px;transform:rotate(-90deg)}
.table-state-pill{
  padding:6px 8px;
  border:1px solid color-mix(in srgb,var(--table-state) 32%,white);
  border-radius:999px;
  background:color-mix(in srgb,var(--table-state) 8%,white);
  color:var(--table-state);
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:.69rem;
  font-weight:850;
  white-space:nowrap;
}
.table-request-alert{
  margin:0 12px 10px;
  padding:8px 9px;
  border:1px solid #f2cf93;
  border-radius:7px;
  background:#fff8eb;
  color:#925b08;
  display:grid;
  grid-template-columns:20px 1fr auto;
  align-items:center;
  gap:6px;
  font-size:.76rem;
  font-weight:800;
}
.table-request-alert b{
  min-width:23px;height:23px;padding:0 5px;border-radius:999px;
  background:#d97706;color:#fff;display:grid;place-items:center;font-size:.68rem;
}
.table-floor-metrics{
  margin:0 12px 11px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--app-border);
  border-radius:8px;
  overflow:hidden;
}
.table-floor-metrics>div{padding:8px;text-align:center;background:#fafbfc}
.table-floor-metrics>div+div{border-left:1px solid var(--app-border)}
.table-floor-metrics small{display:block;color:var(--app-muted);font-size:.64rem;font-weight:750}
.table-floor-metrics b{
  min-height:22px;display:flex;align-items:center;justify-content:center;gap:4px;
  font-size:.77rem;white-space:nowrap;
}
.table-order-info,.table-menu-link{
  min-height:50px;
  margin:0 12px 12px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:9px;
}
.table-order-info{
  padding:8px 8px 8px 11px;
  border:1px solid #cfe0ff;
  background:#f4f8ff;
  justify-content:space-between;
}
.table-order-info>div{min-width:0;display:flex;flex-direction:column}
.table-order-info small{color:var(--app-muted);font-size:.66rem}
.table-order-info b{font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-order-info .btn{width:34px;height:34px;padding:0;display:grid;place-items:center}
.table-menu-link{
  padding:9px 11px;
  border:1px solid var(--app-border);
  background:#fafbfc;
  color:#4b596d;
  justify-content:center;
  text-decoration:none;
  font-size:.76rem;
  font-weight:800;
}
.table-menu-link span{flex:1;text-align:center}
.table-menu-link:hover{border-color:#9bbcf8;background:#f1f6ff;color:var(--app-primary)}
.table-floor-actions{border-top:1px solid var(--app-border)}
.table-floor-actions>summary{
  min-height:42px;
  padding:10px 12px;
  background:#fafbfc;
  color:#59677a;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.75rem;
  font-weight:800;
}
.table-floor-actions>summary::-webkit-details-marker{display:none}
.table-floor-actions>summary::after{content:"+";margin-left:auto;font-size:1rem}
.table-floor-actions[open]>summary::after{content:"−"}
.table-floor-actions-body{padding:11px;display:flex;flex-direction:column;gap:11px}
.table-operation-form{
  padding-bottom:10px;
  border-bottom:1px dashed var(--app-border);
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
}
.table-operation-form label{grid-column:1/-1;display:flex;flex-direction:column;gap:4px}
.table-operation-form label>span,.table-status-form label>span{
  color:#4b596d;font-size:.69rem;font-weight:850;
}
.table-operation-form .form-control{min-width:0}
.table-edit-form{
  padding-bottom:11px;
  border-bottom:1px dashed var(--app-border);
  display:flex;
  flex-direction:column;
  gap:7px;
}
.table-edit-title{display:flex;align-items:center;gap:8px;margin-bottom:2px}
.table-edit-title>i{
  width:31px;height:31px;border-radius:7px;display:grid;place-items:center;
  background:#eaf2ff;color:var(--app-primary);font-size:.72rem;
}
.table-edit-title>div{display:flex;flex-direction:column}
.table-edit-title b{font-size:.76rem}
.table-edit-title small{color:var(--app-muted);font-size:.65rem}
.table-edit-form label{display:flex;flex-direction:column;gap:4px}
.table-edit-form label>span{color:#4b596d;font-size:.69rem;font-weight:850}
.table-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.table-status-form label{display:flex;flex-direction:column;gap:4px}
.table-status-form small{display:block;margin-top:4px;color:var(--app-muted);font-size:.67rem}
.table-qr-actions{display:flex;gap:7px;justify-content:space-between}
.table-qr-actions form{margin-left:auto}

@media (max-width:1100px){
  .floor-create-band{grid-template-columns:1fr}
  .floor-create-form{grid-template-columns:repeat(4,1fr) auto}
}
@media (max-width:767px){
  .floor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .floor-insight-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .floor-control-bar{grid-template-columns:1fr}
  .floor-result-strip{align-items:stretch;flex-direction:column}
  .floor-result-strip button{justify-content:center}
  .floor-create-form{grid-template-columns:repeat(2,1fr)}
  .floor-create-form .btn{grid-column:1/-1}
  .table-floor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:575px){
  .floor-summary{grid-template-columns:1fr}
  .floor-summary-item{min-height:60px}
  .table-floor-grid{grid-template-columns:1fr}
}

/* Mutfak sipariş ekranı */
.kitchen-page{min-width:0}
.kitchen-page-head{margin-bottom:13px}
.kitchen-assignment-alert{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.kitchen-assignment-alert>div{display:flex;align-items:center;gap:10px}
.kitchen-assignment-alert>div>i{font-size:1.1rem}
@media (max-width:767px){
  .kitchen-assignment-alert{align-items:flex-start;flex-direction:column}
}
.kitchen-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.kitchen-head-actions .btn{display:inline-flex;align-items:center;gap:7px}
.kitchen-clock{
  min-width:92px;
  padding:8px 10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f7f9fc;
  color:#344054;
  text-align:center;
  font-variant-numeric:tabular-nums;
  font-size:.9rem;
  font-weight:850;
}
.kitchen-settings-band{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:14px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f7f9fc;
}
.kitchen-settings-section{
  min-width:0;
  padding:13px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
}
.kitchen-settings-head{margin-bottom:10px}
.kitchen-settings-head>div{display:flex;flex-direction:column}
.kitchen-settings-head b{font-size:.9rem}
.kitchen-settings-head small{color:var(--app-muted);font-size:.7rem}
.kitchen-station-create{
  display:grid;
  grid-template-columns:minmax(120px,1fr) 42px 75px auto;
  gap:7px;
  margin-bottom:10px;
}
.kitchen-station-create .form-control-color,.kitchen-station-editor .form-control-color{
  width:42px;
  min-height:36px;
  padding:4px;
}
.kitchen-station-create .btn{display:flex;align-items:center;gap:5px}
.kitchen-station-editor{display:flex;flex-direction:column;gap:6px}
.kitchen-station-editor>form{
  display:grid;
  grid-template-columns:minmax(110px,1fr) 42px 66px 58px 34px;
  align-items:center;
  gap:6px;
}
.kitchen-active-check{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:var(--app-muted);
  font-size:.67rem;
  font-weight:750;
}
.kitchen-station-editor .btn{width:34px;height:34px;padding:0;display:grid;place-items:center}
.kitchen-category-assignments{
  max-height:238px;
  overflow:auto;
  display:flex;
  flex-direction:column;
}
.kitchen-category-assignments form{
  min-height:42px;
  padding:5px 0;
  border-bottom:1px solid #edf1f6;
  display:grid;
  grid-template-columns:minmax(100px,1fr) minmax(130px,180px);
  align-items:center;
  gap:8px;
}
.kitchen-category-assignments form:last-child{border-bottom:0}
.kitchen-category-assignments span{font-size:.76rem;font-weight:750}
.kitchen-station-tabs{
  display:flex;
  align-items:center;
  gap:7px;
  overflow-x:auto;
  padding:2px 0 10px;
  scrollbar-width:thin;
}
.kitchen-station-tabs a{
  --station-color:#667085;
  min-height:40px;
  padding:7px 10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  color:#4b596d;
  display:inline-flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
  white-space:nowrap;
  font-size:.76rem;
  font-weight:800;
}
.kitchen-station-tabs a>i:empty{width:9px;height:9px;border-radius:50%;background:var(--station-color)}
.kitchen-station-tabs a>small{
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  background:#eef1f5;color:#667085;display:grid;place-items:center;font-size:.62rem;
}
.kitchen-station-tabs a:hover{border-color:#9bbcf8;color:var(--app-primary);background:#f5f8ff}
.kitchen-station-tabs a.is-active{border-color:var(--app-primary);background:var(--app-primary);color:#fff}
.kitchen-station-tabs a.is-active>small{background:rgba(255,255,255,.2);color:#fff}
.kitchen-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-bottom:10px;
}
.kitchen-summary>div{
  min-height:54px;
  padding:9px 12px;
  border:1px solid var(--app-border);
  border-left:4px solid #94a3b8;
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:30px 1fr auto;
  align-items:center;
  gap:8px;
}
.kitchen-summary i{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:#f1f4f8}
.kitchen-summary span{color:var(--app-muted);font-size:.76rem;font-weight:800}
.kitchen-summary b{font-size:1.25rem}
.kitchen-summary .is-new{border-left-color:#e5484d}.kitchen-summary .is-new i{background:#fff0f0;color:#c92a2a}
.kitchen-summary .is-preparing{border-left-color:#d97706}.kitchen-summary .is-preparing i{background:#fff6e8;color:#a15c00}
.kitchen-summary .is-ready{border-left-color:#22a447}.kitchen-summary .is-ready i{background:#eaf8ef;color:#16803c}
.kitchen-ops-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.kitchen-ops-strip>div{
  min-height:54px;
  padding:9px 11px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.kitchen-ops-strip span{color:var(--app-muted);font-size:.68rem;font-weight:850}
.kitchen-ops-strip b{font-size:1rem}
.kitchen-ops-strip .is-warning{border-color:#efb85b;background:#fffaf0}
.kitchen-ops-strip .is-danger{border-color:#e5484d;background:#fff5f5}
.kitchen-filter-bar{
  display:flex;
  align-items:center;
  gap:7px;
  overflow-x:auto;
  padding:2px 0 10px;
}
.kitchen-filter-bar button{
  min-height:36px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  color:#4b596d;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  white-space:nowrap;
  font-size:.73rem;
  font-weight:850;
}
.kitchen-filter-bar button:hover{border-color:#9bbcf8;color:var(--app-primary);background:#f5f8ff}
.kitchen-filter-bar button.is-active{border-color:var(--app-primary);background:var(--app-primary);color:#fff}
.kitchen-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(320px,1fr));
  gap:10px;
  align-items:start;
}
.kitchen-column{
  --kitchen-state:#667085;
  min-width:0;
  border:1px solid var(--app-border);
  border-top:4px solid var(--kitchen-state);
  border-radius:8px;
  background:#f6f8fb;
  overflow:hidden;
}
.kitchen-column.is-new{--kitchen-state:#e5484d}
.kitchen-column.is-preparing{--kitchen-state:#d97706}
.kitchen-column.is-ready{--kitchen-state:#22a447}
.kitchen-column>header{
  min-height:68px;
  padding:11px 12px;
  border-bottom:1px solid var(--app-border);
  background:#fff;
  display:grid;
  grid-template-columns:36px 1fr auto;
  align-items:center;
  gap:9px;
}
.kitchen-column-icon{
  width:36px;height:36px;border-radius:8px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--kitchen-state) 10%,white);
  color:var(--kitchen-state);
}
.kitchen-column>header>div:nth-child(2){display:flex;flex-direction:column}
.kitchen-column h5{margin:0;font-size:.93rem;font-weight:850}
.kitchen-column header span{color:var(--app-muted);font-size:.67rem}
.kitchen-column header>b{
  min-width:30px;height:30px;padding:0 7px;border-radius:999px;
  background:color-mix(in srgb,var(--kitchen-state) 12%,white);
  color:var(--kitchen-state);display:grid;place-items:center;font-size:.78rem;
}
.kitchen-ticket-list{
  min-height:180px;
  max-height:none;
  overflow:visible;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.kitchen-empty{
  min-height:150px;
  color:#8591a3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  font-size:.76rem;
}
.kitchen-empty i{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:#e9edf3;color:#748195;
}
.kitchen-ticket{
  border:1px solid #dbe2ec;
  border-radius:8px;
  background:#fff;
  box-shadow:0 5px 14px rgba(24,33,47,.05);
  overflow:hidden;
  break-inside:avoid;
}
.kitchen-ticket.is-warning{border-color:#efb85b}
.kitchen-ticket.is-late{border-color:#e5484d;box-shadow:0 0 0 2px rgba(229,72,77,.12)}
.kitchen-column.is-filter-empty{opacity:.58}
.kitchen-priority{
  min-height:32px;
  padding:7px 10px;
  border-bottom:1px solid #edf1f6;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.7rem;
  font-weight:900;
}
.kitchen-priority.is-warning{background:#fff7e8;color:#925b08}
.kitchen-priority.is-danger{background:#fff0f0;color:#b4232b}
.kitchen-ticket-head{
  min-height:57px;
  padding:9px 10px;
  border-bottom:1px solid #edf1f6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:#fbfcfe;
}
.kitchen-ticket-head>div{min-width:0;display:flex;flex-direction:column}
.kitchen-ticket-head strong{font-size:.88rem}
.kitchen-ticket-head span{color:var(--app-muted);font-size:.65rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kitchen-ticket-head time{
  padding:5px 7px;border-radius:7px;background:#eef1f5;color:#4b596d;
  display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:.68rem;font-weight:850;
}
.kitchen-ticket.is-warning .kitchen-ticket-head time{background:#fff3dc;color:#925b08}
.kitchen-ticket.is-late .kitchen-ticket-head time{background:#fff0f0;color:#b4232b}
.kitchen-ticket-bulk{
  padding:8px 10px;
  border-bottom:1px solid #edf1f6;
  background:#f8fbff;
}
.kitchen-ticket-bulk .btn{
  width:100%;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:.72rem;
  font-weight:850;
}
.kitchen-ticket-note{
  padding:7px 10px;
  border-bottom:1px solid #edf1f6;
  background:#fff8eb;
  display:flex;
  flex-direction:column;
  font-size:.68rem;
}
.kitchen-ticket-note span{color:#78500c}
.kitchen-ticket-items{display:flex;flex-direction:column}
.kitchen-ticket-item{
  padding:10px;
  border-bottom:1px solid #edf1f6;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:8px;
}
.kitchen-ticket-item:last-child{border-bottom:0}
.kitchen-item-qty{
  width:34px;height:34px;border-radius:8px;background:#18212f;color:#fff;
  display:grid;place-items:center;font-size:.78rem;font-weight:900;
}
.kitchen-item-copy{min-width:0;display:flex;flex-direction:column}
.kitchen-item-copy>b{font-size:.82rem;line-height:1.25}
.kitchen-item-copy>span{
  --station-color:#667085;
  width:max-content;
  max-width:100%;
  margin-top:3px;
  color:var(--station-color);
  display:flex;
  align-items:center;
  gap:5px;
  font-size:.62rem;
  font-weight:800;
}
.kitchen-item-copy>span i{width:7px;height:7px;border-radius:50%;background:var(--station-color)}
.kitchen-item-copy ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.kitchen-item-copy li{color:#526071;font-size:.68rem}
.kitchen-item-copy li::before{content:"+";margin-right:5px;color:var(--app-primary);font-weight:900}
.kitchen-item-copy em{
  margin-top:6px;padding:5px 6px;border-radius:6px;background:#fff3dc;color:#78500c;
  display:flex;align-items:flex-start;gap:5px;font-size:.67rem;font-style:normal;font-weight:750;
}
.kitchen-ticket-item>form{grid-column:1/-1}
.kitchen-ticket-item>form .btn{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:.72rem;
}
@media (max-width:1199px){
  .live-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kitchen-settings-band{grid-template-columns:1fr}
  .kitchen-board{overflow-x:auto;grid-template-columns:repeat(3,minmax(310px,1fr))}
  .kitchen-ticket-list{max-height:none}
}
@media (max-width:767px){
  .kitchen-head-actions{width:100%}
  .kitchen-head-actions .btn span{display:none}
  .kitchen-clock{margin-left:auto}
  .kitchen-summary{grid-template-columns:1fr}
  .kitchen-ops-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kitchen-board{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
  .kitchen-column{min-width:min(88vw,370px);scroll-snap-align:start}
  .kitchen-station-create{grid-template-columns:1fr 42px 70px}
  .kitchen-station-create .btn{grid-column:1/-1;justify-content:center}
  .kitchen-station-editor>form{grid-template-columns:1fr 42px 62px 54px 34px}
}
@media (max-width:460px){
  .kitchen-settings-section{padding:10px}
  .kitchen-station-editor>form{grid-template-columns:minmax(90px,1fr) 42px 34px}
  .kitchen-station-editor>form input[name="sort_order"],.kitchen-active-check{display:none}
  .kitchen-category-assignments form{grid-template-columns:1fr}
}

.payment-ledger{display:flex;flex-direction:column;gap:10px}
.payment-ledger-row{
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  padding:12px;
}
.report-operation-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0 4px;
}
.report-operation-grid>div{
  min-height:82px;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:34px 1fr auto;
  grid-template-areas:
    "icon label value"
    "icon note note";
  align-items:center;
  gap:4px 10px;
  box-shadow:0 6px 18px rgba(24,33,47,.04);
}
.report-operation-grid i{
  grid-area:icon;
  width:34px;height:34px;border-radius:8px;background:#eef5ff;color:var(--app-primary);
  display:grid;place-items:center;
}
.report-operation-grid span{grid-area:label;color:var(--app-muted);font-size:.76rem;font-weight:850}
.report-operation-grid b{grid-area:value;font-size:1.2rem;text-align:right}
.report-operation-grid small{grid-area:note;color:#526071;font-size:.7rem}
.report-highlight-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:14px 0 8px;
}
.report-highlight-grid>div{
  min-height:118px;
  padding:13px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:0 6px 18px rgba(24,33,47,.04);
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "note note";
  align-items:center;
  gap:4px 10px;
}
.report-highlight-grid i{
  grid-area:icon;
  width:34px;height:34px;border-radius:8px;background:#eef5ff;color:var(--app-primary);
  display:grid;place-items:center;
}
.report-highlight-grid span{
  grid-area:label;
  color:var(--app-muted);
  font-size:.74rem;
  font-weight:850;
}
.report-highlight-grid b{
  grid-area:value;
  min-width:0;
  font-size:.98rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.report-highlight-grid small{
  grid-area:note;
  color:#526071;
  font-size:.7rem;
  line-height:1.35;
}
.report-highlight-grid .is-warning{border-color:#f3d296;background:#fffaf0}
.report-highlight-grid .is-warning i{background:#fff3dc;color:#925b08}
.report-mini-bar{
  height:5px;
  margin-top:5px;
  border-radius:999px;
  background:#edf1f6;
  overflow:hidden;
}
.report-mini-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:var(--app-primary);
}
.report-list{display:flex;flex-direction:column;gap:9px}
.report-list-row{
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  padding:10px;
}
.report-list-row>div:first-child{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.report-list-row b{font-size:.86rem}
.report-list-row span{display:block;color:var(--app-muted);font-size:.72rem}
.report-list-row strong{display:block;text-align:right;font-size:.88rem}
.report-table .report-mini-bar{min-width:90px}
.stock-insight-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
  margin-bottom:14px;
}
.stock-insight-grid>div{
  min-height:72px;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  box-shadow:0 6px 18px rgba(24,33,47,.04);
}
.stock-insight-grid i{
  width:34px;height:34px;border-radius:8px;background:#eaf2ff;color:var(--app-primary);
  display:grid;place-items:center;
}
.stock-insight-grid span{color:var(--app-muted);font-size:.78rem;font-weight:850}
.stock-insight-grid b{font-size:1.25rem}
.stock-insight-grid .is-danger{border-color:#f1b8bb;background:#fff8f8}
.stock-insight-grid .is-danger i{background:#fff0f0;color:#c92a2a}
.stock-insight-grid .is-warning{border-color:#f3d296;background:#fffaf0}
.stock-insight-grid .is-warning i{background:#fff3dc;color:#925b08}
.stock-alert-board{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:12px;
  margin:14px 0 18px;
}
.stock-alert-panel{
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 22px rgba(24,33,47,.05);
  overflow:hidden;
}
.stock-alert-panel.is-danger{border-color:#f1b8bb}
.stock-alert-panel.is-warning{border-color:#f3d296}
.stock-alert-panel.is-recipe{border-color:#bad0f5}
.stock-alert-head{
  min-height:62px;
  padding:12px;
  border-bottom:1px solid var(--app-border);
  display:grid;
  grid-template-columns:38px 1fr;
  align-items:center;
  gap:10px;
  background:#fbfcfe;
}
.stock-alert-head>i{
  width:38px;
  height:38px;
  border-radius:8px;
  background:#eef5ff;
  color:var(--app-primary);
  display:grid;
  place-items:center;
}
.stock-alert-panel.is-danger .stock-alert-head>i{background:#fff0f0;color:#c92a2a}
.stock-alert-panel.is-warning .stock-alert-head>i{background:#fff3dc;color:#925b08}
.stock-alert-head b{display:block;font-size:.88rem}
.stock-alert-head span{color:var(--app-muted);font-size:.72rem;font-weight:750}
.stock-alert-list{display:flex;flex-direction:column}
.stock-alert-row{
  min-height:58px;
  padding:10px 12px;
  border-bottom:1px solid #edf1f6;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
}
.stock-alert-row:last-child{border-bottom:0}
.stock-alert-row>div{min-width:0;display:flex;flex-direction:column}
.stock-alert-row b{
  font-size:.82rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stock-alert-row span{color:var(--app-muted);font-size:.68rem;line-height:1.35}
.stock-alert-row em{
  padding:5px 7px;
  border-radius:999px;
  background:#fff0f0;
  color:#b4232b;
  font-size:.67rem;
  font-style:normal;
  font-weight:850;
  white-space:nowrap;
}
.stock-alert-row .btn{white-space:nowrap}
.stock-state-pill{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:5px 8px;
  border-radius:999px;
  font-size:.7rem;
  font-weight:850;
  white-space:nowrap;
}
.stock-state-pill.is-ok{background:#eaf8ef;color:#16803c}
.stock-state-pill.is-warning{background:#fff3dc;color:#925b08}
.stock-state-pill.is-danger{background:#fff0f0;color:#b4232b}
.permission-group{
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
  padding:12px;
}
.permission-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:9px;
  color:#344054;
  font-size:.88rem;
  cursor:pointer;
}
.permission-check .form-check-input{flex:0 0 auto;margin-top:.18rem}
.settings-logo-preview{
  min-height:150px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.settings-logo-preview img{display:block;max-width:100%;max-height:150px;object-fit:contain}
.settings-login-preview{
  min-height:238px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.settings-login-preview img{
  display:block;
  width:100%;
  min-height:238px;
  object-fit:cover;
}
.settings-slider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.settings-slider-item{
  border:1px solid var(--app-border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
}
.settings-slider-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.settings-slider-item span{display:block;padding:8px;font-size:.84rem;font-weight:700}
.settings-tabs{
  display:flex;align-items:center;gap:6px;overflow-x:auto;padding:5px;
  border:1px solid var(--app-border);border-radius:8px;background:#f4f6f9;
}
.settings-tabs a{
  min-height:38px;padding:8px 11px;border-radius:7px;color:#526071;
  display:inline-flex;align-items:center;gap:7px;text-decoration:none;white-space:nowrap;
  font-size:.78rem;font-weight:800;
}
.settings-tabs a:hover{background:#fff;color:var(--app-primary)}
.settings-tabs a.is-active{background:#fff;color:var(--app-primary);box-shadow:0 2px 8px rgba(24,33,47,.08)}
.settings-table-create-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.settings-table-create-head>i{
  width:40px;height:40px;border-radius:8px;background:#eaf2ff;color:var(--app-primary);
  display:grid;place-items:center;font-size:1rem;
}
.settings-table-create{
  display:grid;grid-template-columns:.7fr 1.2fr 1fr .65fr auto;
  align-items:end;gap:9px;
}
.settings-table-create label,.settings-table-edit label{display:flex;flex-direction:column;gap:5px}
.settings-table-create label>span,.settings-table-edit label>span{color:#4b596d;font-size:.72rem;font-weight:800}
.settings-table-create .btn{min-height:42px}
.settings-table-list{display:flex;flex-direction:column;gap:12px}
.settings-table-card{
  border:1px solid var(--app-border);border-left:4px solid var(--app-primary);
  border-radius:8px;background:#fff;box-shadow:var(--app-shadow);overflow:hidden;
  display:grid;grid-template-columns:265px minmax(0,1fr);
}
.settings-table-card.is-inactive{border-left-color:#8a94a4;background:#fafbfc}
.settings-table-preview{
  padding:14px;border-right:1px solid var(--app-border);background:#f7f9fc;
  display:grid;grid-template-columns:1fr 82px;gap:12px;align-items:center;
}
.settings-table-shape{
  grid-column:1/-1;min-height:58px;border:2px solid #9bbcf8;border-radius:8px;
  background:#eef5ff;color:var(--app-primary);display:grid;
  grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:9px;
}
.settings-table-shape>i{width:30px;height:30px;border-radius:7px;background:#fff;display:grid;place-items:center}
.settings-table-shape b{color:#263244;font-size:.87rem}
.settings-table-shape small{font-size:.67rem;font-weight:900}
.settings-table-current{min-width:0;display:flex;flex-direction:column;gap:4px}
.settings-table-current span{color:var(--app-muted);font-size:.7rem}
.settings-table-current b{display:flex;align-items:center;gap:5px;font-size:.76rem}
.settings-table-current em{
  width:max-content;max-width:100%;padding:4px 6px;border-radius:6px;
  background:#fff3dc;color:#925b08;font-size:.63rem;font-style:normal;font-weight:800;
}
.settings-table-preview>img{width:82px;height:82px;border:1px solid var(--app-border);border-radius:8px;background:#fff}
.settings-table-edit{
  padding:14px;display:grid;grid-template-columns:1.3fr .55fr 1fr .55fr 1fr;
  gap:9px;align-items:end;
}
.settings-table-active{
  grid-column:1/-1;min-height:35px;flex-direction:row!important;
  align-items:center;gap:7px!important;
}
.settings-table-edit>.btn{grid-column:1/-1;min-height:42px}
.settings-table-links{
  grid-column:1/-1;padding:10px 14px;border-top:1px solid var(--app-border);
  display:flex;align-items:center;justify-content:flex-end;gap:7px;
}
.settings-table-links form{margin:0}
@media (max-width:1100px){
  .settings-table-create{grid-template-columns:repeat(4,1fr)}
  .settings-table-create .btn{grid-column:1/-1}
  .settings-table-card{grid-template-columns:220px minmax(0,1fr)}
  .settings-table-edit{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .settings-table-create{grid-template-columns:repeat(2,1fr)}
  .settings-table-card{grid-template-columns:1fr}
  .settings-table-preview{border-right:0;border-bottom:1px solid var(--app-border)}
}
@media (max-width:480px){
  .settings-table-create,.settings-table-edit{grid-template-columns:1fr}
  .settings-table-active,.settings-table-edit>.btn{grid-column:auto}
  .settings-table-links{justify-content:stretch}
  .settings-table-links .btn{flex:1}
}
.app-brand-logo{width:200px;object-fit:contain;border-radius:8px}

.auth-card{
  width:100%;
  max-width:440px;
  background:#fff;
  border-radius:8px;
  border:1px solid var(--app-border);
  box-shadow:0 18px 50px rgba(24,33,47,.10);
  overflow:hidden;
}
.auth-card-head{
  padding:24px 24px 0;
}
.auth-mark{
  width:44px;height:44px;border-radius:8px;background:var(--app-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:16px;
}
.auth-logo {
    display: block;
    width: 450px;
    max-width: 100%;
    
    object-fit: contain;
    margin: 0 auto 16px auto;
}
.auth-card-body{padding:24px}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(380px,.65fr)}
.auth-visual{
  position:relative;min-height:100vh;background-position:center;background-size:cover;
  display:flex;align-items:flex-end;padding:clamp(30px,5vw,72px);overflow:hidden;
}
.auth-visual-shade{position:absolute;inset:0;background:rgba(8,15,24,.55)}
.auth-visual-content{position:relative;z-index:1;color:#fff;max-width:680px}
.auth-visual-badge{
  display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(255,255,255,.3);
  border-radius:999px;background:rgba(255,255,255,.12);font-size:.8rem;font-weight:800;
}
.auth-visual-content h1{margin:18px 0 10px;font-size:clamp(2rem,4vw,3.8rem);line-height:1.05;font-weight:900;letter-spacing:0}
.auth-visual-content p{margin:0;color:rgba(255,255,255,.8);font-size:1.05rem;max-width:600px}
.auth-panel{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px;background:#fff}

.footer{
  margin-top:auto;
  width:100%;
  background:rgba(255,255,255,.8);
  border-top:1px solid var(--app-border);
  color:var(--app-muted);
  padding:14px 20px;
  text-align:center;
  font-size:.86rem;
}
.panel-live-alert{
  position:fixed;
  right:16px;
  bottom:84px;
  z-index:1080;
  width:min(380px,calc(100vw - 32px));
}
.panel-sound-toggle{position:fixed;right:16px;bottom:24px;z-index:1080}
.modal{z-index:1210}
.modal-backdrop{z-index:1200}
.app-confirm-modal{z-index:1220}
.app-confirm-card{
  border:0;
  border-radius:8px;
  padding:24px;
  text-align:center;
  box-shadow:0 26px 66px rgba(15,23,42,.2);
}
.app-confirm-icon{
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef5ff;
  color:var(--app-primary);
  font-size:1.5rem;
}
.app-confirm-modal[data-app-tone="error"] .app-confirm-icon{
  background:#fff1f2;
  color:var(--app-danger);
}
.app-confirm-modal[data-app-tone="warning"] .app-confirm-icon,
.app-confirm-modal[data-app-tone="confirm"] .app-confirm-icon{
  background:#fff7ed;
  color:#d97706;
}
.app-confirm-modal[data-app-tone="success"] .app-confirm-icon{
  background:#ecfdf3;
  color:#16a34a;
}
.app-confirm-card h5{margin:0 0 8px;font-size:1.1rem;font-weight:900}
.app-confirm-card p{margin:0;color:var(--app-muted);line-height:1.5}
.app-confirm-actions{display:flex;gap:8px;justify-content:center;margin-top:18px}
.app-confirm-actions .btn{min-width:112px;min-height:40px}
.sound-attention{animation:soundPulse 1.35s ease-in-out infinite}
@keyframes soundPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(31,111,235,.16)}
  50%{box-shadow:0 0 0 9px rgba(31,111,235,0)}
}
@media (prefers-reduced-motion:reduce){.sound-attention{animation:none}}

.print-wrap{max-width:380px;margin:0 auto;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

@media (max-width: 1199px){
  .app-navbar-top{min-height:58px}
  .app-navigation{padding-bottom:12px}
  .app-nav-scroll{overflow:visible}
  .app-nav{width:100%;padding:8px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .app-nav .nav-link{padding:.65rem .72rem}
  .app-nav .dropdown-menu{position:static!important;width:100%;margin:3px 0 7px;box-shadow:none}
  .app-userbar{border-left:0;padding:12px 0 0;margin-top:8px;border-top:1px solid var(--app-border)}
}
@media (max-width: 991px){
  .product-bulk-panel{grid-template-columns:1fr}
  .product-bulk-panel form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-filter-search{grid-column:1/-1}
  .category-create-form{grid-template-columns:1fr 90px}
  .category-create-form .btn{grid-column:1/-1}
  .sale-top-grid .span-2,
  .sale-top-grid .span-3,
  .sale-top-grid .span-4,
  .sale-top-grid .span-6{grid-column:span 6}
  .report-operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 850px){
  .auth-shell{grid-template-columns:1fr}
  .auth-visual{min-height:280px;padding:28px}
  .auth-visual-content h1{font-size:2rem;max-width:540px}
  .auth-visual-content p{font-size:.95rem}
  .auth-panel{min-height:auto;padding:26px 18px 36px}
}
@media (max-width: 576px){
  .app-brand-text{max-width:210px;overflow:hidden;text-overflow:ellipsis}
  .app-nav{grid-template-columns:1fr}
  .app-main{padding-top:18px!important}
  .auth-visual{min-height:230px}
  .auth-visual-content h1{font-size:1.65rem}
  .auth-visual-content p{display:none}
  .auth-panel{padding:18px 14px 28px}
  .panel-card-body,.card-body{padding:14px}
  .live-metric-grid{grid-template-columns:1fr}
  .live-metric{grid-template-columns:42px 1fr auto}
  .live-metric i{width:42px;height:42px}
  .order-board{grid-template-columns:1fr}
  .order-stats{grid-template-columns:1fr}
  .order-flow-pills{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-actions{grid-template-columns:1fr}
  .request-actions{width:100%}
  .request-actions form,.request-actions .btn{width:100%}
  .total-strip{align-items:stretch;flex-direction:column}
  .total-strip .btn{width:100%}
  .sale-top-grid .span-2,
  .sale-top-grid .span-3,
  .sale-top-grid .span-4,
  .sale-top-grid .span-6{grid-column:span 12}
  .payment-row{grid-template-columns:1fr}
  .payment-row input[data-payment-field="note"]{grid-column:auto}
  .report-operation-grid{grid-template-columns:1fr}
  .product-metric-grid,.category-metric-grid{grid-template-columns:1fr}
  .product-quality-head{grid-template-columns:40px minmax(0,1fr)}
  .product-quality-head .btn{grid-column:1/-1}
  .product-bulk-panel form{grid-template-columns:1fr}
  .product-filter-bar{grid-template-columns:1fr}
  .product-cell{min-width:220px}
  .category-create-form{grid-template-columns:1fr}
  .stock-insight-grid{grid-template-columns:1fr}
  .stock-alert-board{grid-template-columns:1fr}
  .stock-alert-row{grid-template-columns:1fr}
  .stock-alert-row em{width:max-content}
}
.recipe-metric {
  height: 100%;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-metric span,
.recipe-metric small {
  color: #64748b;
}

.recipe-metric strong {
  margin: 4px 0 1px;
  color: #172033;
  font-size: 1.42rem;
  line-height: 1.2;
}
.recipe-alert-band{
  margin-bottom:14px;
  padding:13px 14px;
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f6f9ff;
  display:flex;
  align-items:flex-start;
  gap:11px;
}
.recipe-alert-band>i{
  width:34px;height:34px;border-radius:8px;background:#eaf2ff;color:var(--app-primary);
  display:grid;place-items:center;flex:0 0 auto;
}
.recipe-alert-band>div{display:flex;flex-direction:column;gap:2px}
.recipe-alert-band b{font-size:.9rem}
.recipe-alert-band span{color:var(--app-muted);font-size:.82rem}
.recipe-alert-band.is-danger{border-color:#f1b8bb;background:#fff8f8}
.recipe-alert-band.is-danger>i{background:#fff0f0;color:#c92a2a}
.recipe-warning-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:-4px 0 14px;
}
.recipe-warning-list span,.recipe-stock-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  background:#f1f4f8;
  color:#4b596d;
  padding:5px 8px;
  font-size:.7rem;
  font-weight:850;
}
.recipe-warning-list span{
  background:#fff3dc;
  color:#925b08;
}
.recipe-stock-pill{margin-top:7px}
.recipe-stock-pill.is-danger{background:#fff0f0;color:#b4232b}

@media (max-width:767px){
  .order-partial-edit-form{grid-template-columns:1fr}
  .order-partial-edit-form input[name="note"],.order-partial-edit-form .btn{grid-column:auto}
}

/* Garson çalışma ekranı */
.waiter-page{min-width:0}
.waiter-head{align-items:flex-start}
.waiter-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.waiter-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.waiter-metrics>div{
  min-height:72px;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  box-shadow:var(--app-shadow);
}
.waiter-metrics i{
  width:34px;height:34px;border-radius:8px;background:#eef5ff;color:var(--app-primary);
  display:grid;place-items:center;
}
.waiter-metrics span{color:var(--app-muted);font-size:.74rem;font-weight:800}
.waiter-metrics b{font-size:1.35rem;font-weight:900}
.waiter-filter-bar{
  margin:-2px 0 14px;
  padding:10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.waiter-filter-search{position:relative;min-width:0}
.waiter-filter-search i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#8290a3;
  font-size:.82rem;
}
.waiter-filter-search .form-control{padding-left:35px;min-height:40px}
.waiter-filter-chips{
  min-width:0;
  display:flex;
  gap:7px;
  overflow-x:auto;
  scrollbar-width:thin;
}
.waiter-filter-chips button{
  min-height:38px;
  padding:7px 10px;
  border:1px solid var(--app-border);
  border-radius:999px;
  background:#fff;
  color:#465568;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.76rem;
  font-weight:850;
}
.waiter-filter-chips button.is-active{
  background:var(--app-primary);
  border-color:var(--app-primary);
  color:#fff;
}
.waiter-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(330px,390px);
  gap:14px;
  align-items:start;
}
.waiter-section{
  min-width:0;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  padding:14px;
}
.waiter-section+.waiter-section{margin-top:14px}
.waiter-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.waiter-section-head h5{margin:0;font-size:1rem;font-weight:900}
.waiter-section-head span{color:var(--app-muted);font-size:.78rem;font-weight:650}
.waiter-side{position:sticky;top:126px}
.waiter-table-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
  gap:10px;
}
.waiter-table-grid.is-filter-empty::after{
  content:"Bu filtreye uygun masa yok.";
  grid-column:1/-1;
  padding:18px;
  border:1px dashed #b9c4d3;
  border-radius:8px;
  background:#f8fafc;
  color:var(--app-muted);
  text-align:center;
  font-weight:800;
}
.waiter-table-card{
  min-height:150px;
  padding:12px;
  border:1px solid var(--app-border);
  border-left:5px solid #94a3b8;
  border-radius:8px;
  background:#fff;
  color:var(--app-text);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.waiter-table-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(24,33,47,.1);color:var(--app-text)}
.waiter-table-card.is-available{border-left-color:#16a34a}
.waiter-table-card.is-occupied{border-left-color:#1f6feb}
.waiter-table-card.is-request{border-left-color:#d97706;background:#fffaf0}
.waiter-table-card.is-bill{border-left-color:#dc2626;background:#fff5f5}
.waiter-table-card.is-reserved{border-left-color:#7c3aed}
.waiter-table-card.is-cleaning{border-left-color:#0891b2}
.waiter-table-card.is-disabled{border-left-color:#64748b;opacity:.72}
.waiter-table-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.waiter-table-top b{display:block;font-size:1.05rem;font-weight:900;line-height:1.18}
.waiter-table-top span{display:block;color:var(--app-muted);font-size:.72rem;font-weight:750;margin-top:2px}
.waiter-table-top i{
  width:34px;height:34px;border-radius:8px;background:#f1f5f9;color:#475569;
  display:grid;place-items:center;flex:0 0 auto;
}
.waiter-table-state{
  width:max-content;
  max-width:100%;
  padding:5px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#1f6feb;
  font-size:.72rem;
  font-weight:900;
}
.waiter-table-foot{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:#475569;
  font-size:.78rem;
  font-weight:800;
}
.waiter-table-foot strong{color:var(--app-text);white-space:nowrap}
.waiter-table-card em{
  padding:6px 8px;
  border-radius:7px;
  background:#fff3dc;
  color:#925b08;
  font-size:.72rem;
  font-style:normal;
  font-weight:850;
}
.waiter-table-card em.is-ready{background:#eafaf0;color:#16803c}
.waiter-request-list,.waiter-ready-list{display:flex;flex-direction:column;gap:9px}
.waiter-request-card,.waiter-ready-card{
  min-width:0;
  padding:10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:9px;
  align-items:start;
}
.waiter-request-card.is-bill,.waiter-request-card.is-waiter{border-color:#f1b44c;background:#fffaf0}
.waiter-request-card>div:nth-child(2),.waiter-ready-card>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.waiter-request-card b,.waiter-ready-card b{font-size:.86rem;line-height:1.2}
.waiter-request-card span,.waiter-ready-card span{color:var(--app-muted);font-size:.72rem;font-weight:750}
.waiter-request-card small,.waiter-ready-card small{color:#465568;font-size:.68rem;line-height:1.25}
.waiter-request-actions{
  grid-column:1/-1;
  display:flex;
  gap:6px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.waiter-request-actions form{margin:0}
.waiter-ready-card{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.waiter-ready-card form{margin:0}

.waiter-table-layout{
  display:grid;
  grid-template-columns:minmax(320px,370px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.waiter-order-panel{position:sticky;top:126px;min-width:0}
.waiter-check-total{
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f4f8ff;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.waiter-check-total span{color:var(--app-muted);font-size:.78rem;font-weight:800}
.waiter-check-total b{color:var(--app-primary);font-size:1.35rem;font-weight:900}
.waiter-check-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:8px;
}
.waiter-check-stats>div{
  padding:8px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
}
.waiter-check-stats small{display:block;color:var(--app-muted);font-size:.66rem;font-weight:850}
.waiter-check-stats b{font-size:1rem}
.waiter-order-items{margin-top:10px;display:flex;flex-direction:column;gap:8px;max-height:420px;overflow:auto}
.waiter-order-item{
  padding:10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.waiter-order-item-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.waiter-order-item-main b{font-size:.82rem;line-height:1.2}
.waiter-order-item-main span,.waiter-order-item-main small{color:var(--app-muted);font-size:.68rem}
.waiter-order-item form{margin:0}

.waiter-sale-panel{min-width:0}
.waiter-mobile-cart-bar{
  display:none;
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f4f8ff;
  box-shadow:var(--app-shadow);
  padding:9px;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.waiter-mobile-cart-bar>div{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.waiter-mobile-cart-bar span{color:var(--app-muted);font-size:.68rem;font-weight:850}
.waiter-mobile-cart-bar b{font-size:.86rem;color:var(--app-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.waiter-mobile-cart-bar .btn{min-height:34px;padding:6px 9px}
.waiter-mobile-cart-bar.is-updated{animation:waiterCartPop .42s ease}
.waiter-cart-feedback{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:1085;
  transform:translate(-50%,18px);
  opacity:0;
  pointer-events:none;
  max-width:min(360px,calc(100vw - 28px));
  padding:10px 13px;
  border-radius:8px;
  background:#172033;
  color:#fff;
  font-size:.82rem;
  font-weight:850;
  box-shadow:0 12px 28px rgba(24,33,47,.22);
  transition:opacity .16s ease, transform .16s ease;
}
.waiter-cart-feedback.is-visible{opacity:1;transform:translate(-50%,0)}
@keyframes waiterCartPop{
  0%{transform:scale(1)}
  48%{transform:scale(1.018)}
  100%{transform:scale(1)}
}
.waiter-catalog-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(310px,350px);
  gap:14px;
  align-items:start;
}
.waiter-catalog{min-height:620px}
.waiter-catalog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.waiter-catalog-head h5,.waiter-cart-head h5{margin:0;font-size:1rem;font-weight:900}
.waiter-catalog-head span,.waiter-cart-head span{color:var(--app-muted);font-size:.76rem;font-weight:750}
.waiter-search{
  width:min(360px,100%);
  position:relative;
}
.waiter-search i{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  color:#8290a3;font-size:.82rem;
}
.waiter-search .form-control{padding-left:35px}
.waiter-category-strip{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:9px;
  margin-bottom:10px;
  scrollbar-width:thin;
}
.waiter-category-strip button{
  min-height:36px;
  padding:7px 10px;
  border:1px solid var(--app-border);
  border-radius:999px;
  background:#fff;
  color:#465568;
  white-space:nowrap;
  font-size:.76rem;
  font-weight:850;
}
.waiter-category-strip button.is-active{background:var(--app-primary);border-color:var(--app-primary);color:#fff}
.waiter-product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:10px;
}
.waiter-product-card{
  min-height:185px;
  padding:0;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  text-align:left;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.waiter-product-card:hover:not(:disabled){transform:translateY(-1px);border-color:#9bbcf8;box-shadow:0 10px 24px rgba(31,111,235,.12)}
.waiter-product-card:disabled{opacity:.55;cursor:not-allowed;background:#f8fafc}
.waiter-product-visual{
  position:relative;
  width:100%;
  aspect-ratio:1.35;
  background:#edf3fb;
  color:#6b7c93;
  display:grid;
  place-items:center;
}
.waiter-product-visual img{width:100%;height:100%;object-fit:cover}
.waiter-product-visual>i{font-size:1.45rem}
.waiter-product-visual em{
  position:absolute;
  right:7px;
  top:7px;
  width:26px;height:26px;border-radius:50%;
  background:#fff;color:var(--app-primary);
  display:grid;place-items:center;font-style:normal;
  box-shadow:0 4px 10px rgba(24,33,47,.12);
}
.waiter-product-copy{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.waiter-product-copy b{font-size:.84rem;line-height:1.2}
.waiter-product-copy small{color:var(--app-muted);font-size:.68rem}
.waiter-product-copy strong{color:var(--app-primary);font-size:.88rem}
.waiter-cart{
  position:sticky;
  top:126px;
  max-height:calc(100vh - 142px);
  overflow:auto;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  padding:14px;
  scrollbar-width:thin;
}
.waiter-cart-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.waiter-cart-list{display:flex;flex-direction:column;gap:9px}
.waiter-cart-line{
  padding:10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.waiter-cart-line>div:first-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.waiter-cart-line b{font-size:.82rem}
.waiter-cart-line span,.waiter-cart-line small{color:var(--app-muted);font-size:.68rem}
.waiter-cart-controls{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.waiter-note-field{display:flex;flex-direction:column;gap:5px;margin:10px 0 0}
.waiter-note-field span{color:var(--app-muted);font-size:.72rem;font-weight:850}
.waiter-cart-total{
  margin-top:10px;
  padding:12px;
  border:1px solid #cfe0ff;
  border-radius:8px;
  background:#f4f8ff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.waiter-cart-total span{color:var(--app-muted);font-size:.76rem;font-weight:850}
.waiter-cart-total b{color:var(--app-primary);font-size:1.18rem;font-weight:900}
.waiter-submit-row{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
.waiter-submit-row .btn{min-height:44px}

@media (max-width:1199px){
  .waiter-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .waiter-filter-bar{grid-template-columns:1fr}
  .waiter-workspace,.waiter-table-layout,.waiter-catalog-shell{grid-template-columns:1fr}
  .waiter-side,.waiter-order-panel,.waiter-cart{position:static;top:auto;max-height:none}
  .waiter-order-panel{order:2}
  .waiter-sale-panel{order:1}
  .waiter-mobile-cart-bar{
    position:sticky;
    top:72px;
    z-index:1020;
    display:flex;
  }
}
@media (max-width:767px){
  .waiter-head-actions{width:100%}
  .waiter-head-actions .btn{flex:1}
  .waiter-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .waiter-filter-bar{padding:9px}
  .waiter-filter-chips{padding-bottom:2px}
  .waiter-filter-chips button{min-height:36px;padding:6px 9px;font-size:.72rem}
  .waiter-metrics>div{grid-template-columns:30px 1fr;min-height:68px}
  .waiter-metrics b{grid-column:2;font-size:1.15rem}
  .waiter-table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .waiter-catalog-head{flex-direction:column}
  .waiter-search{width:100%}
  .waiter-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .waiter-product-card{min-height:152px}
  .waiter-product-visual{aspect-ratio:1.55}
  .waiter-product-copy{padding:8px}
  .waiter-product-copy b{font-size:.76rem}
  .waiter-product-copy small{font-size:.62rem}
  .waiter-product-copy strong{font-size:.8rem}
  .waiter-cart{padding:11px}
  .waiter-order-item,.waiter-cart-line,.waiter-ready-card{grid-template-columns:1fr}
  .waiter-order-item form,.waiter-ready-card form{justify-self:stretch}
  .waiter-order-item .btn,.waiter-ready-card .btn{width:100%}
}
@media (max-width:460px){
  .waiter-section{padding:11px}
  .waiter-metrics{grid-template-columns:1fr}
  .waiter-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .waiter-table-card{min-height:130px;padding:10px}
  .waiter-table-top b{font-size:.88rem}
  .waiter-table-top span{font-size:.64rem}
  .waiter-table-top i{width:30px;height:30px}
  .waiter-table-foot{font-size:.68rem;flex-direction:column}
  .waiter-mobile-cart-bar{top:62px}
  .waiter-mobile-cart-bar .btn{padding:6px 8px;font-size:.74rem}
  .waiter-request-card{grid-template-columns:38px minmax(0,1fr)}
}
@media (max-width:340px){
  .waiter-table-grid,.waiter-product-grid{grid-template-columns:1fr}
}

.cash-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.cash-metrics>div{
  border:1px solid var(--app-border);
  border-radius:8px;
  padding:12px;
  background:#fff;
}
.cash-metrics span{
  display:block;
  color:var(--app-muted);
  font-size:.82rem;
}
.cash-metrics b{
  display:block;
  margin-top:4px;
  font-size:1.15rem;
}
@media (max-width:575.98px){
  .cash-metrics{grid-template-columns:1fr}
}

.dashboard-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.dashboard-head{
  margin-bottom:0;
}
.dashboard-quick-access{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:14px;
}
.dashboard-quick-group{
  min-width:0;
  padding:14px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.dashboard-quick-title{
  margin-bottom:10px;
  color:var(--app-muted);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
}
.dashboard-quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:10px;
}
.dashboard-quick-card{
  --quick-color:var(--app-primary);
  aspect-ratio:1/1;
  min-height:118px;
  padding:14px 10px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
  color:var(--app-text);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background .12s ease;
}
.dashboard-quick-card:hover{
  color:var(--app-text);
  border-color:color-mix(in srgb,var(--quick-color) 55%,white);
  background:color-mix(in srgb,var(--quick-color) 7%,white);
  box-shadow:0 12px 24px rgba(24,33,47,.08);
  transform:translateY(-1px);
}
.dashboard-quick-card i{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--quick-color);
  background:color-mix(in srgb,var(--quick-color) 11%,white);
  font-size:2.15rem;
}
.dashboard-quick-card span{
  max-width:100%;
  color:var(--app-text);
  font-size:20px;
  font-weight:600;
  line-height:1.22;
  overflow-wrap:anywhere;
}
.dashboard-quick-card.is-sales-primary{--quick-color:#1f6feb}
.dashboard-quick-card.is-sales{--quick-color:#16a34a}
.dashboard-quick-card.is-waiter{--quick-color:#7c3aed}
.dashboard-quick-card.is-orders{--quick-color:#d97706}
.dashboard-quick-card.is-kitchen{--quick-color:#dc2626}
.dashboard-quick-card.is-tables{--quick-color:#0891b2}
.dashboard-filter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.dashboard-periods{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dashboard-periods label{
  position:relative;
  margin:0;
}
.dashboard-periods input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.dashboard-periods span{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  color:var(--app-muted);
  font-weight:800;
  font-size:.82rem;
  cursor:pointer;
}
.dashboard-periods label.is-active span,
.dashboard-periods input:checked+span{
  color:#fff;
  border-color:var(--app-primary);
  background:var(--app-primary);
}
.dashboard-date-fields{
  display:grid;
  grid-template-columns:150px 150px auto;
  gap:8px;
  align-items:center;
}
.dashboard-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.dash-kpi{
  min-height:132px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:16px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.dash-kpi-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:8px;
  font-size:1.2rem;
}
.dash-kpi span{
  display:block;
  color:var(--app-muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}
.dash-kpi b{
  display:block;
  min-width:0;
  margin-top:6px;
  color:var(--app-text);
  font-size:1.45rem;
  line-height:1.12;
  overflow-wrap:anywhere;
}
.dash-kpi small{
  display:block;
  margin-top:7px;
  color:var(--app-muted);
  font-weight:750;
  line-height:1.35;
}
.dash-kpi.is-blue .dash-kpi-icon{background:#eaf2ff;color:#1f6feb}
.dash-kpi.is-green .dash-kpi-icon{background:#eaf8ef;color:#16803c}
.dash-kpi.is-amber .dash-kpi-icon{background:#fff7e6;color:#b7791f}
.dash-kpi.is-purple .dash-kpi-icon{background:#f1e9ff;color:#7c3aed}
.dash-kpi.is-red .dash-kpi-icon{background:#fff0f0;color:#c92a2a}
.dash-kpi.is-cyan .dash-kpi-icon{background:#e7f8fb;color:#0891b2}
.dash-kpi.is-slate .dash-kpi-icon{background:#eef2f7;color:#334155}
.dash-kpi.is-dark .dash-kpi-icon{background:#edf0f3;color:#18212f}
.dashboard-cash-strip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid #b9dcff;
  border-radius:8px;
  background:#f3f8ff;
}
.dashboard-cash-strip>div{
  display:flex;
  align-items:center;
  gap:12px;
}
.dashboard-cash-strip i{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#1f6feb;
  background:#e1efff;
}
.dashboard-cash-strip span{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.dashboard-cash-strip small{color:var(--app-muted)}
.dashboard-chart-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.dashboard-panel{
  min-width:0;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  overflow:hidden;
}
.dashboard-chart-wide{
  grid-column:span 2;
}
.dashboard-panel-head{
  min-height:64px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:15px 16px;
  border-bottom:1px solid var(--app-border);
}
.dashboard-panel-head span{
  display:block;
  color:var(--app-muted);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
}
.dashboard-panel-head b{
  display:block;
  margin-top:2px;
  color:var(--app-text);
  font-size:1rem;
}
.dashboard-panel-head>a{
  color:var(--app-primary);
  font-weight:850;
  font-size:.82rem;
  text-decoration:none;
  white-space:nowrap;
}
.dashboard-panel-head>i{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--app-primary);
  background:#eef5ff;
}
.dashboard-chart-box{
  position:relative;
  min-height:278px;
  height:278px;
  padding:14px;
}
.dashboard-mini-charts{
  display:grid;
  grid-template-columns:1fr 1fr;
}
.dashboard-mini-charts .dashboard-chart-box{
  min-height:228px;
  height:228px;
}
.dashboard-ops-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.dashboard-list{
  display:flex;
  flex-direction:column;
  padding:8px;
}
.dashboard-list-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:11px 10px;
  border-radius:8px;
  color:var(--app-text);
  text-decoration:none;
}
.dashboard-list-row+ .dashboard-list-row{
  border-top:1px solid #eef2f7;
  border-radius:0;
}
.dashboard-list-row:hover{
  background:#f6f8fb;
  color:var(--app-text);
}
.dashboard-list-row>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.dashboard-list-row b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.9rem;
}
.dashboard-list-row small{
  color:var(--app-muted);
  font-weight:700;
}
.dashboard-list-row>span{
  flex:0 0 auto;
  color:var(--app-text);
  font-weight:900;
  font-size:.86rem;
  text-align:right;
}
.dashboard-list-row.is-alert>span,
.dashboard-list-row.is-alert small{
  color:var(--app-danger);
}
.dashboard-list-row.is-ready>span{
  color:var(--app-success);
}

@media (max-width:1399px){
  .dashboard-quick-access{grid-template-columns:1fr 1.5fr}
  .dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:991px){
  .dashboard-quick-access{grid-template-columns:1fr}
  .dashboard-filter{align-items:stretch;flex-direction:column}
  .dashboard-date-fields{grid-template-columns:1fr 1fr auto;width:100%}
  .dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-chart-wide{grid-column:span 1}
}
@media (max-width:767px){
  .dashboard-quick-group{padding:12px}
  .dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dashboard-quick-card{min-height:108px;padding:12px 8px}
  .dashboard-quick-card i{width:40px;height:40px}
  .dashboard-date-fields{grid-template-columns:1fr}
  .dashboard-kpi-grid,.dashboard-chart-grid,.dashboard-ops-grid{grid-template-columns:1fr}
  .dashboard-mini-charts{grid-template-columns:1fr}
  .dashboard-chart-box{height:245px;min-height:245px}
  .dash-kpi{min-height:116px}
}
@media (max-width:420px){
  .dashboard-quick-card{min-height:102px}
  .dashboard-quick-card span{font-size:.76rem}
  .dashboard-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-periods span{justify-content:center}
  .dash-kpi{grid-template-columns:42px minmax(0,1fr);padding:13px}
  .dash-kpi-icon{width:42px;height:42px}
  .dash-kpi b{font-size:1.22rem}
}

.pos-popular-strip{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--app-border);
  background:#fffaf0;
}
.pos-popular-title{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.pos-popular-title>i{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#a16207;
  background:#fef3c7;
}
.pos-popular-title span{display:flex;flex-direction:column;min-width:0}
.pos-popular-title b{font-size:.84rem;color:#1f2937}
.pos-popular-title small{font-size:.68rem;color:#7c6a3a}
.pos-popular-list{
  min-width:0;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:thin;
}
.pos-popular-chip{
  min-width:148px;
  max-width:210px;
  min-height:58px;
  padding:9px 10px;
  border:1px solid #f0dca4;
  border-radius:8px;
  background:#fff;
  color:#1f2937;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}
.pos-popular-chip:hover:not(:disabled){
  border-color:#d6a91d;
  background:#fff8db;
}
.pos-popular-chip:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.pos-popular-chip span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.78rem;
  font-weight:900;
}
.pos-popular-chip small{
  color:#7c6a3a;
  font-size:.68rem;
  font-weight:800;
}
.pos-product-code{
  color:#475569!important;
  font-weight:850;
}
.order-command-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.order-command-card{
  min-height:74px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
}
.order-command-card>i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--app-primary);
  background:#eef5ff;
}
.order-command-card span{min-width:0;display:flex;flex-direction:column;gap:3px}
.order-command-card small{
  color:var(--app-muted);
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
}
.order-command-card b{
  color:var(--app-text);
  font-size:.88rem;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.order-command-card.is-primary>i{color:#fff;background:var(--app-primary)}
.order-command-card.is-success>i{color:#16803c;background:#eaf8ef}
.order-command-card.is-money>i{color:#8a5b00;background:#fff4df}
.order-close-payment-actions{
  flex-wrap:wrap;
}
.order-close-payment-actions .btn{
  min-width:86px;
}

@media (max-width:1399px){
  .order-command-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:991px){
  .pos-popular-strip{grid-template-columns:1fr}
  .order-command-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:575px){
  .pos-popular-chip{min-width:136px}
  .order-command-strip{grid-template-columns:1fr}
  .order-close-payment-actions .btn{flex:1 1 calc(50% - 8px)}
}

.audit-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
.audit-summary-grid>div{
  min-height:98px;
  padding:14px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--app-shadow);
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.audit-summary-grid i{
  width:42px;
  height:42px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--app-primary);
  background:#eef5ff;
}
.audit-summary-grid span{
  display:block;
  color:var(--app-muted);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
}
.audit-summary-grid b{
  display:block;
  margin-top:4px;
  font-size:1.22rem;
  line-height:1.15;
}
.audit-summary-grid .is-warning i{color:#a16207;background:#fff4df}
.audit-flow-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.audit-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.audit-chip,
.audit-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  border:1px solid var(--app-border);
  border-radius:999px;
  padding:5px 9px;
  background:#f8fafc;
  color:#344054;
  font-size:.74rem;
  font-weight:850;
}
.audit-chip b{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#1f2937;
}
.audit-chip.is-primary,.audit-action.is-primary{border-color:#bad0f5;background:#f3f7ff;color:var(--app-primary)}
.audit-chip.is-success,.audit-action.is-success{border-color:#bdeccf;background:#f2fbf5;color:var(--app-success)}
.audit-chip.is-warning,.audit-action.is-warning{border-color:#f5d39b;background:#fff8ed;color:#9a6700}
.audit-chip.is-danger,.audit-action.is-danger{border-color:#fecaca;background:#fff5f5;color:#b42318}
.audit-date{white-space:nowrap;font-weight:800;font-size:.78rem}
.audit-context summary{
  cursor:pointer;
  color:var(--app-primary);
  font-size:.76rem;
  font-weight:850;
}
.audit-context dl{
  margin:7px 0 0;
  padding:8px;
  border:1px solid var(--app-border);
  border-radius:8px;
  background:#f8fafc;
}
.audit-context dl>div{
  display:grid;
  grid-template-columns:minmax(90px,.4fr) minmax(0,1fr);
  gap:8px;
  padding:4px 0;
  border-bottom:1px solid #edf1f6;
}
.audit-context dl>div:last-child{border-bottom:0}
.audit-context dt{
  color:#475467;
  font-size:.7rem;
  font-weight:900;
}
.audit-context dd{
  margin:0;
  color:#1f2937;
  font-size:.72rem;
  overflow-wrap:anywhere;
}
@media (max-width:991px){
  .audit-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .audit-flow-grid{grid-template-columns:1fr}
}
@media (max-width:575px){
  .audit-summary-grid{grid-template-columns:1fr}
  .audit-context dl>div{grid-template-columns:1fr}
}
