@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
/* EXPOKADO LANCHE — design system */

:root {
  --green-dark:  #284f42;
  --green-main:  #3f8068;
  --green-light: #73aa8e;
  --green-pale:  #eaf4ed;
  --gold:        #f6ae00;
  --gold-light:  #fff1b8;
  --red:         #bd1915;
  --orange:      #e65b16;
  --blue:        #1679a7;
  --bg:          #f7f0e5;
  --white:       #fffdf8;
  --text:        #251c15;
  --text-muted:  #74695f;
  --border:      #ddd5ca;
  --shadow:      0 18px 38px rgba(96,55,22,.12), 0 4px 10px rgba(96,55,22,.06);
  --radius:      16px;
  --radius-sm:   9px;
  --sidebar-w:   252px;
  --header-h:    60px;
}

/* Mesas: leitura rápida e operação por toque */
#tablesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.table-card {
  min-height: 245px;
  padding: 24px 20px;
  border: 4px solid transparent;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 12px 0 rgba(35,18,10,.18), 0 24px 42px rgba(35,18,10,.18);
}
.table-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 0 rgba(35,18,10,.17), 0 30px 48px rgba(35,18,10,.24);
}
.table-card.livre {
  color: #fff;
  border-color: #075f27;
  background: linear-gradient(145deg,#20c85a 0%,#07913b 58%,#056c2c 100%);
}
.table-card.ocupada {
  color: #fff;
  border-color: #8d0505;
  background: linear-gradient(145deg,#ff3b30 0%,#dc1111 58%,#a90606 100%);
}
.table-card.conta,
.table-card.reservada {
  color: #291500;
  border-color: #b16d00;
  background: linear-gradient(145deg,#ffd64e,#f0a915);
}
.table-card .t-num {
  color: inherit;
  font-size: 64px;
  line-height: .9;
  text-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.table-card .t-name,
.table-card .t-total,
.table-card .table-assignee,
.table-card > div[style*="font-size:12px"] {
  color: inherit !important;
  font-size: 16px !important;
  font-weight: 800;
}
.table-card .t-total { font-size: 24px !important; }
.table-card .t-status .badge {
  padding: 8px 15px;
  background: rgba(255,255,255,.94);
  color: #24120d;
  border: 0;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,.16);
}
.table-action-hint {
  margin-top: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.45);
}
.order-item-entry {
  background: linear-gradient(145deg,#fff6dc,#ffe8a3);
  border: 2px solid #e2a91e;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(110,66,5,.12);
}
.order-item-entry-title {
  color: #7f1712;
  font: 900 23px/1 'Barlow Condensed',sans-serif;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.order-item-entry-grid {
  display: grid;
  grid-template-columns: minmax(220px,2fr) 100px minmax(240px,2fr) auto;
  gap: 12px;
  align-items: end;
}
.order-entry-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #4f2a16;
}
.order-entry-notes textarea {
  min-height: 64px;
  resize: vertical;
  border: 2px solid #d98522;
  background: #fff;
}
.order-entry-add { min-height: 52px; white-space: nowrap; }
.order-entry-help {
  margin-top: 9px;
  color: #77501b;
  font-size: 12px;
  font-weight: 700;
}
@media(max-width:900px) {
  #tablesGrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .table-card { min-height: 210px; padding: 18px 12px; }
  .table-card .t-num { font-size: 52px; }
  .order-item-entry-grid { grid-template-columns: 1fr 90px; }
  .order-entry-notes { grid-column: 1/-1; }
  .order-entry-add { grid-column: 1/-1; }
}
@media(max-width:480px) {
  #tablesGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .table-card { min-height: 190px; border-radius: 17px; }
  .table-card .t-num { font-size: 46px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at 88% 0%, rgba(246,174,0,.14), transparent 25rem), var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.identity-pending .layout { visibility:hidden; }

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--green-main); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f5f5f5; }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-gold      { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b8943d; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 8px; border-radius: 50%; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 14px; background: #fff;
  transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--green-main); }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px;
}
.card-body { padding: 20px; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-green  { background: var(--green-pale); color: var(--green-dark); }
.badge-red    { background: #fde8e6; color: var(--red); }
.badge-orange { background: #fef0e0; color: var(--orange); }
.badge-blue   { background: #e0f0ff; color: var(--blue); }
.badge-gray   { background: #f0f0f0; color: #666; }
.badge-gold   { background: var(--gold-light); color: #8a6c1a; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .15s;
}
.modal {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: slideUp .2s;
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }

/* ── Toast notifications ── */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius-sm); color: #fff;
  font-size: 14px; font-weight: 500; min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2); animation: slideIn .3s;
  display: flex; align-items: center; gap: 10px;
}
.toast-success { background: var(--green-main); }
.toast-error   { background: var(--red); }
.toast-info    { background: var(--blue); }
.toast-warning { background: var(--orange); }

/* ── Loading ── */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--green-pale); border-top-color: var(--green-main);
  animation: spin 0.8s linear infinite;
}
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.8);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}

/* ── Tables ── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .5px;
}
table.data-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafafa; }

/* ── Layout SPA ── */
.layout {
  display: flex; min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: linear-gradient(165deg, #fffaf1 0%, #f8ead7 100%);
  display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100; transition: transform .3s;
}
.sidebar-logo {
  padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.sidebar-logo-text { color: var(--text); }
.sidebar-logo-text .brand { font-size: 17px; font-weight: 900; line-height: 1.1; letter-spacing:.4px; }
.sidebar-logo-text .sub { font-size: 10px; color: rgba(255,255,255,.6); }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section { padding: 4px 16px 4px; font-size: 10px; font-weight: 700; color: #9b7358; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: #604c40; cursor: pointer;
  font-size: 14px; font-weight: 500; border-left: 3px solid transparent;
  transition: all .15s; text-decoration: none;
}
.nav-item:hover { background: rgba(189,25,21,.07); color: var(--red); }
.nav-item.active { background: linear-gradient(90deg,rgba(189,25,21,.14),rgba(246,174,0,.10)); color: var(--red); border-left-color: var(--gold); }
.nav-item .icon { width: 18px; text-align: center; font-size: 16px; }
.sidebar-footer {
  padding: 16px; border-top: 1px solid rgba(255,255,255,.1);
  color: #8d6b59; font-size: 12px;
}
.sidebar-user { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.sidebar-user .info .name { color: var(--text); font-size: 13px; font-weight: 600; }
.sidebar-user .info .role { font-size: 11px; }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  height: var(--header-h); background: rgba(255,253,248,.94); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(7,29,61,.06), 0 5px 18px rgba(7,29,61,.04);
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.page-content { padding: 24px; flex: 1; }

/* Mobile sidebar toggle */
.menu-toggle {
  display: none; background: none; border: none; font-size: 22px; cursor: pointer;
  padding: 4px; color: var(--text);
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99;
}

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: linear-gradient(155deg,#fff 0%,#fffaf0 100%); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(47,107,88,.06);
}
.stat-card .stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.stat-card .stat-value { font-size: 28px; font-weight: 900; color: var(--green-dark); font-family:'Barlow Condensed',sans-serif; letter-spacing:.02em; }
.stat-card .stat-icon { font-size: 24px; }
.stat-card.gold .stat-value { color: var(--gold); }
.stat-card.red .stat-value  { color: var(--red); }
.stat-card.blue .stat-value { color: var(--blue); }

/* ── Balcões ── */
.tables-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.table-card {
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  text-align: center; transition: all .2s; border: 2px solid transparent;
  background: linear-gradient(160deg,#fff,#fff8e9); box-shadow: var(--shadow);
}
.table-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.table-card.livre   { border-color: #26753b; background: linear-gradient(160deg,#f7fff5,#e5f4df); }
.table-card.ocupada { border-color: var(--red); background: #fff0ee; }
.table-card.conta   { border-color: var(--orange); background: #fff8f0; }
.table-card .t-num  { font-size: 34px; font-weight: 900; color: var(--green-dark); font-family:'Barlow Condensed',sans-serif; }
.table-card .t-name { font-size: 11px; color: var(--text-muted); }
.table-card .t-status { font-size: 12px; margin-top: 4px; }
.table-card .t-total { font-size: 16px; font-weight: 700; color: var(--orange); margin-top: 4px; }

/* ── Menu Cardápio ── */
.menu-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-btn {
  padding: 8px 16px; border-radius: 20px; border: 2px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.cat-btn.active { background: var(--green-main); color: #fff; border-color: var(--green-main); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .2s;
}
.product-card:hover { transform: translateY(-2px); }
.product-card img { width: 100%; height: 140px; object-fit: cover; background: var(--bg); }
.product-card .p-body { padding: 14px; }
.product-card .p-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.product-card .p-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.product-card .p-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card .p-price { font-size: 18px; font-weight: 800; color: var(--green-main); }
.product-card .p-time  { font-size: 11px; color: var(--text-muted); }

/* ── KDS (Kitchen Display) ── */
.kds-header {
  background: var(--green-dark); color: #fff; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 16px; }
.kds-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; display: flex; flex-direction: column;
}
.kds-card.urgente { border: 2px solid var(--red); animation: pulse-red 1.5s infinite; }
.kds-card.atrasado { border: 2px solid var(--orange); }
.kds-card-header {
  padding: 12px 16px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.kds-card-header.pendente  { background: var(--green-pale); color: var(--green-dark); }
.kds-card-header.cozinha   { background: #fff3cd; color: #856404; }
.kds-card-header.pronta    { background: #d1ecf1; color: #0c5460; }
.kds-items { flex: 1; padding: 12px 16px; }
.kds-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.kds-item:last-child { border-bottom: none; }
.kds-item .qty { font-weight: 800; min-width: 24px; font-size: 16px; color: var(--green-dark); }
.kds-item .item-name { flex: 1; }
.kds-item .item-notes { font-size: 11px; color: var(--orange); font-style: italic; }
.kds-item .item-check { cursor: pointer; font-size: 20px; }
.kds-timer { font-size: 24px; font-weight: 800; }
.kds-timer.normal  { color: var(--green-main); }
.kds-timer.warn    { color: var(--orange); }
.kds-timer.danger  { color: var(--red); }
.kds-card-footer { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ── Cliente tablet menu ── */
.customer-header {
  background: var(--green-dark); padding: 16px 20px;
  color: #fff; position: sticky; top: 0; z-index: 10;
}
.customer-cart-badge {
  position: relative; display: inline-block;
}
.customer-cart-badge .count {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: #fff; width: 20px; height: 20px;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,.15);
  z-index: 200; transform: translateY(100%); transition: transform .3s;
  max-height: 70vh; overflow-y: auto; padding: 20px;
}
.cart-drawer.open { transform: translateY(0); }

/* ── Animações ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.4); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }

/* ── Login page ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(12,8,5,.55),rgba(12,8,5,.84)),
    radial-gradient(circle at 18% 24%, rgba(246,181,22,.27), transparent 27rem),
    radial-gradient(circle at 86% 75%, rgba(184,23,23,.38), transparent 32rem),
    linear-gradient(135deg, #100806 0%, #3e0a08 48%, #160806 100%);
  padding: 20px;
}
.login-card {
  background: rgba(255,253,248,.98); border-radius: 26px; padding: 38px 36px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: slideUp .4s;
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { width: 120px; height: auto; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-top: 12px; }
.login-logo p { color: var(--text-muted); font-size: 13px; }
.login-logo .brand-mark {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  border-width: 4px;
  box-shadow: 0 10px 0 #9f1017, 0 20px 34px rgba(7,29,61,.28);
}

.brand-mark {
  width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 22px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:900; font-size:24px; letter-spacing:-1px;
  background:linear-gradient(145deg,var(--green-main),var(--green-dark));
  box-shadow:0 12px 28px rgba(23,63,53,.28);
  position:relative;
}
.brand-mark::after {
  content:""; width:12px; height:12px; border-radius:50%; background:var(--gold);
  position:absolute; right:10px; top:10px; box-shadow:0 0 0 4px rgba(255,255,255,.18);
}
.store-hero {
  background:linear-gradient(135deg,var(--green-dark),var(--green-main));
  color:#fff; border-radius:22px; padding:24px; margin-bottom:22px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  box-shadow:0 16px 38px rgba(23,63,53,.18);
}
.store-hero h2 { font-size:24px; line-height:1.15; margin-bottom:6px; }
.store-hero p { color:rgba(255,255,255,.72); font-size:13px; }
.store-hero .hero-chip { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); padding:9px 13px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }

/* ── Configuração fiscal guiada ── */
.fiscal-steps {
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:10px;
  align-items:center; margin-bottom:16px;
}
.fiscal-step-pill {
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid rgba(11,79,145,.12);
  border-radius:14px; padding:12px 14px; box-shadow:0 6px 18px rgba(7,29,61,.06);
}
.fiscal-step-pill > span, .fiscal-section-number {
  width:30px; height:30px; flex:0 0 30px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; background:var(--green-main); color:#fff; font-size:13px; font-weight:800;
}
.fiscal-step-pill div, .fiscal-form-section summary div, .fiscal-save-bar div { display:flex; flex-direction:column; gap:2px; }
.fiscal-step-pill b { color:var(--green-dark); font-size:13px; }
.fiscal-step-pill small, .fiscal-form-section summary small, .fiscal-save-bar small { color:var(--text-muted); font-size:11px; }
.fiscal-step-arrow { color:var(--text-muted); font-size:24px; }
.fiscal-guidance {
  padding:13px 15px; margin-bottom:14px; border-radius:12px; background:#eef6ff;
  color:#123d6b; border:1px solid #d7e9fb; font-size:13px;
}
.fiscal-form-section {
  border:1px solid rgba(11,79,145,.14); border-radius:14px; margin-bottom:12px;
  overflow:hidden; background:#fff;
}
.fiscal-form-section summary {
  display:flex; align-items:center; gap:11px; padding:14px 16px; cursor:pointer;
  list-style:none; background:#fbfcfe;
}
.fiscal-form-section summary::-webkit-details-marker { display:none; }
.fiscal-form-section summary::after {
  content:'⌄'; margin-left:auto; color:var(--text-muted); font-size:18px; transition:transform .2s;
}
.fiscal-form-section[open] summary::after { transform:rotate(180deg); }
.fiscal-form-section[open] summary { border-bottom:1px solid rgba(11,79,145,.10); }
.fiscal-section-content { padding:16px; }
.fiscal-accountant-warning, .fiscal-security-note {
  padding:12px 14px; border-radius:10px; font-size:12px; margin-bottom:14px;
}
.fiscal-accountant-warning { background:#fff7df; color:#745600; border:1px solid #f5df9a; }
.fiscal-security-note { background:#eef6ff; color:#123d6b; border:1px solid #d7e9fb; }
.fiscal-save-bar {
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  position:sticky; bottom:10px; padding:14px 16px; margin-top:16px;
  background:rgba(255,255,255,.97); border:1px solid rgba(11,79,145,.14);
  border-radius:14px; box-shadow:0 10px 30px rgba(7,29,61,.12);
}

/* Split payment entry: ordered, individually auditable tender parts. */
.payment-sheet [hidden] { display:none !important; }
.payment-sheet-backdrop { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.payment-sheet {
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.payment-split-instructions { margin:12px 0; font-size:14px; line-height:1.45; }
.payment-split-parts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.payment-part-card { min-width:0; padding:14px; border:1px solid #bd9b6a; border-radius:12px; background:#fffdf8; }
.payment-part-card h3 { margin:0 0 10px; font-size:16px; }
.payment-part-card label { display:block; margin:10px 0 5px; font-size:13px; font-weight:800; }
.payment-part-card input[readonly] { background:#f1eadc; font-weight:800; }
.payment-split-totals { display:flex; justify-content:space-between; gap:12px; margin:12px 0; padding:12px; border-radius:10px; background:#eaf4ed; }
.payment-split-review { padding:14px; border:2px solid #17633e; border-radius:12px; background:#f0faf4; }
.payment-split-review h3 { margin-bottom:8px; }
.payment-split-review ul { margin:8px 0 12px 20px; }
.payment-sheet-actions { position:sticky; bottom:-20px; z-index:2; display:flex; gap:10px; padding:12px 0 max(4px,env(safe-area-inset-bottom,0px)); background:linear-gradient(180deg,rgba(255,248,233,.88),#fff8e9 30%); }
.payment-sheet-actions .btn { flex:1; min-width:0; white-space:normal; }
.payment-sheet-actions .btn-block { width:auto; }
.release-payment-parts { display:grid; gap:8px; margin:10px 0; padding:12px; border-radius:10px; border:1px solid #d6b78d; background:#fffdf7; }
.release-payment-parts > div { padding-top:7px; border-top:1px solid #e8dcc8; overflow-wrap:anywhere; }
.release-payment-parts > div:first-of-type { border-top:0; }
@media (max-width:640px) {
  .payment-sheet-backdrop { padding:0; }
  .payment-sheet {
    width:100%;
    max-height:calc(100vh - env(safe-area-inset-top,0px));
    max-height:calc(100svh - env(safe-area-inset-top,0px));
    padding:16px 16px max(16px,env(safe-area-inset-bottom,0px));
    border-radius:18px 18px 0 0;
  }
  .payment-split-parts { grid-template-columns:minmax(0,1fr); }
  .payment-split-totals { position:sticky; bottom:58px; z-index:1; }
  .payment-sheet-actions { bottom:calc(-16px + env(safe-area-inset-bottom,0px)); margin:0 -16px; padding:10px 16px max(10px,env(safe-area-inset-bottom,0px)); }
  .payment-sheet-actions .btn { min-height:56px; font-size:17px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sidebar-overlay.open { opacity: 1; pointer-events: all; }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .kds-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .topbar-title { font-size: 16px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions > span:not(.notification-bell) { display: none !important; }
  .store-hero { border-radius: 16px; padding: 18px; }
  .store-hero h2 { font-size: 20px; }
  .fiscal-steps { grid-template-columns:1fr; gap:8px; }
  .fiscal-step-arrow { display:none; }
  .fiscal-save-bar { align-items:stretch; flex-direction:column; bottom:6px; }
  .fiscal-save-bar .btn { width:100%; }
  #dashGrid { grid-template-columns: 1fr !important; }
  .table-responsive { margin: 0 -16px; padding: 0 16px; }
  table.data-table { min-width: 620px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .modal-body { padding: 20px; }
  /* The order detail sheet must fit the visible iPhone viewport and keep its
     content independently scrollable above Safari's browser/home-indicator area. */
  .order-detail-backdrop {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .order-detail-modal {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px);
    overflow: hidden;
  }
  .order-detail-modal .modal-header { flex: 0 0 auto; }
  .order-detail-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .users-table-wrap { margin: 0; padding: 0; overflow: visible; }
  .users-table { min-width: 0 !important; display: block; }
  .users-table thead { display: none; }
  .users-table tbody { display: grid; gap: 12px; }
  .users-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 14px;
    padding: 16px;
    background: var(--white);
    border: 1px solid rgba(11,79,145,.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .users-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .users-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .users-table td:nth-child(1),
  .users-table td:nth-child(2) { grid-column: 1 / -1; }
  .users-table .user-actions { justify-content: flex-end; }
  .users-table .user-actions::before { display: none; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tables-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
}

/* Proprietor sales intelligence — grounded, zero-based charts with a restrained
   dimensional edge that echoes the shop's printed menu/signage identity. */
.owner-insights { --oi-ink:#31261d; --oi-muted:#766858; --oi-paper:#fffaf0; --oi-green:#17633e; --oi-green-side:#0b482c; --oi-gold:#f2b713; --oi-red:#a92520; margin:0 0 24px; color:var(--oi-ink); }
.owner-insights[hidden] { display:none; }
.oi-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:22px; align-items:end; padding:26px 28px; color:#fff8e9; background:linear-gradient(112deg,#174a32 0%,#17633e 67%,#225b3d 100%); border:1px solid #0c452b; box-shadow:0 7px 0 #123d2b,0 14px 24px rgba(52,34,17,.15); }
.oi-hero:after { content:""; position:absolute; width:230px;height:230px; right:100px;top:-150px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 24px rgba(255,255,255,.035),0 0 0 48px rgba(255,255,255,.025); pointer-events:none; }
.oi-eyebrow { display:block; font-size:10px; letter-spacing:.18em; font-weight:900; color:#f7ca55; text-transform:uppercase; }
.oi-hero h2 { margin:5px 0 4px; font:800 clamp(25px,3vw,36px)/1.02 'Barlow Condensed',sans-serif; letter-spacing:.015em; }
.oi-hero p { max-width:600px; color:#d7e8d8; font-size:13px; }
.oi-date-form { position:relative;z-index:1; display:flex;align-items:end;gap:9px;flex-wrap:wrap; }
.oi-date-form label { display:grid;gap:4px;color:#e4efdf;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase; }
.oi-date-form input { width:145px;min-height:42px;padding:8px 10px;border:1px solid #86a68d;border-radius:4px;background:#fffaf0;color:#28231c;font:600 13px 'DM Sans',sans-serif; }
.oi-date-form button { min-height:42px;padding:0 16px;border:0;border-radius:4px;background:#f2b713;color:#342700;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #b98506; }
.oi-date-form button:hover { transform:translateY(-1px); }
.oi-presets { display:flex;gap:6px;margin-top:11px; }
.oi-presets button { padding:5px 10px;border:1px solid rgba(255,255,255,.3);border-radius:3px;background:rgba(255,255,255,.08);color:#fff;font-size:11px;font-weight:700;cursor:pointer; }
.oi-presets button:hover,.oi-presets button[aria-pressed="true"] { background:#fff3c4;color:#3a2b09; }
.oi-period-note { margin-top:13px;font-size:11px;color:#d9e8da; }
.oi-status { margin:13px 0; padding:14px 16px; border-left:4px solid var(--oi-gold); background:#fff4cd; color:#4c3b14; font-size:13px; }
.oi-status.error { border-color:var(--oi-red);background:#fff0eb;color:#7c201b; }
.oi-status[hidden] { display:none; }
.oi-skeleton { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 0; }
.oi-skeleton span { height:80px;background:linear-gradient(100deg,#eee5d7 20%,#f8f2e9 40%,#eee5d7 60%);background-size:200% 100%;animation:oi-shimmer 1.3s ease-in-out infinite; }
@keyframes oi-shimmer { to { background-position:-200% 0; } }
.oi-kpis { display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 18px; }
.oi-kpi { min-width:0;padding:16px 18px 14px;background:var(--oi-paper);border:1px solid #e5d6bd;box-shadow:0 4px 0 #e6d7c2,0 7px 14px rgba(63,39,15,.07); }
.oi-kpi.primary { background:#f7e8b9;border-color:#dfbf60;box-shadow:0 4px 0 #c69b30,0 7px 14px rgba(63,39,15,.09); }
.oi-kpi-label { display:block;color:#766858;font-size:10px;letter-spacing:.12em;font-weight:900;text-transform:uppercase; }
.oi-kpi strong { display:block;margin-top:5px;color:#214c34;font:800 clamp(23px,3vw,32px)/1 'Barlow Condensed',sans-serif;overflow-wrap:anywhere; }
.oi-kpi.primary strong { color:#4b390b; }
.oi-kpi small { display:block;margin-top:6px;color:#766858;font-size:11px; }
.oi-section-head { display:flex;align-items:end;justify-content:space-between;gap:12px;margin:24px 0 11px;padding-bottom:8px;border-bottom:2px solid #d9c6a7; }
.oi-section-head h3 { color:#214c34;font:800 22px/1.05 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.025em; }
.oi-section-head p { color:var(--oi-muted);font-size:11px; }
.oi-highlights { display:grid;grid-template-columns:1fr 1fr;gap:11px; }
.oi-highlight { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;background:#e9f3e9;border-left:5px solid #17633e;box-shadow:0 3px 0 #cbdcc9; }
.oi-highlight.low { background:#fff0e8;border-left-color:#aa3a2c;box-shadow:0 3px 0 #e3c4b5; }
.oi-highlight small { display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:900;color:#61715d; }
.oi-highlight strong { display:block;margin:3px 0;color:#214c34;font:800 22px/1.05 'Barlow Condensed',sans-serif; }
.oi-highlight.low strong { color:#8c2d24; }
.oi-highlight span { text-align:right;font-size:12px;font-weight:800; }
.oi-chart-grid { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.8fr);gap:12px; }
.oi-card { min-width:0;background:var(--oi-paper);border:1px solid #e3d6c3;box-shadow:0 4px 0 #e6d7c2,0 8px 16px rgba(63,39,15,.06); }
.oi-card-head { display:flex;justify-content:space-between;align-items:start;gap:12px;padding:14px 17px 9px;border-bottom:1px solid #eee2d0; }
.oi-card-head h4 { color:#214c34;font:800 18px/1.1 'Barlow Condensed',sans-serif;text-transform:uppercase; }
.oi-card-head p { margin-top:4px;color:var(--oi-muted);font-size:11px; }
.oi-unit-tag { flex:0 0 auto;padding:4px 7px;background:#f5e8c9;color:#69511a;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase; }
.oi-chart-wrap { padding:12px 14px 14px; }
.oi-svg-scroll { overflow-x:auto;overscroll-behavior-x:contain; }
.oi-chart { display:block;width:100%;height:auto;min-height:190px; }
.oi-chart text { font-family:'DM Sans',sans-serif;fill:#766858;font-size:10px; }
.oi-chart .axis-label { fill:#574c3e;font-size:10px;font-weight:700; }
.oi-chart .gridline { stroke:#e9dfd1;stroke-width:1; }
.oi-chart .zero-line { stroke:#746858;stroke-width:1.5; }
.oi-chart .bar-front { fill:#2d8052; }
.oi-chart .bar-side { fill:#145335; }
.oi-chart .bar-top { fill:#62a478; }
.oi-chart .bar-muted { fill:#d7c99f; }
.oi-chart .bar-highlight { fill:#e0ad27; }
.oi-chart .point { fill:#f2b713;stroke:#174a32;stroke-width:2.5; }
.oi-chart .trend { fill:none;stroke:#17633e;stroke-width:3;stroke-linejoin:round;stroke-linecap:round; }
.oi-chart .tooltip-target { cursor:help; }
.oi-chart-grid > .oi-card:nth-child(2) .oi-chart { min-width:560px; }
.oi-chart-foot { padding:8px 16px 13px;color:#746858;font-size:11px;line-height:1.45; }
.oi-chart-foot b { color:#31261d; }
.oi-legend { display:flex;align-items:center;gap:7px;margin-top:7px;font-size:10px;color:#685c4c; }
.oi-legend i { width:10px;height:10px;background:#2d8052;display:inline-block;box-shadow:2px 2px 0 #145335; }
.oi-products-card { margin-top:12px; }
.oi-products-layout { display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:16px;padding:14px 17px; }
.oi-product-leaders { display:grid;gap:8px;align-content:start; }
.oi-product-leader { padding:11px 12px;background:#f2ebdb;border-left:4px solid #e0ad27; }
.oi-product-leader.low { background:#f7e8e0;border-left-color:#a94732; }
.oi-product-leader small { color:#766858;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900; }
.oi-product-leader b { display:block;margin:3px 0;color:#2d4f38;font-size:14px;overflow-wrap:anywhere; }
.oi-product-leader span { font-size:11px;color:#625647; }
.oi-product-table-wrap { max-height:380px;overflow:auto;border:1px solid #e4d8c7; }
.oi-product-table { width:100%;border-collapse:collapse;font-size:12px; }
.oi-product-table th { position:sticky;top:0;text-align:left;padding:9px 10px;background:#eee3d0;color:#5e503f;font-size:10px;letter-spacing:.07em;text-transform:uppercase; }
.oi-product-table td { padding:8px 10px;border-top:1px solid #eee4d6; }
.oi-product-table td:not(:first-child),.oi-product-table th:not(:first-child) { text-align:right;white-space:nowrap; }
.oi-product-table tbody tr:hover { background:#fff2cf; }
.oi-product-table .zero { color:#8a7d6c; }
.oi-insight-note { margin:8px 0 0;color:#776b5d;font-size:10px;line-height:1.45; }
.oi-accessible-summary { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-width:900px) {
  .oi-hero { grid-template-columns:1fr;align-items:start; }
  .oi-date-form { max-width:550px; }
  .oi-chart-grid { grid-template-columns:1fr; }
  .oi-chart-grid > .oi-card:first-child .oi-chart { min-width:650px; }
  .oi-products-layout { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .oi-hero { padding:20px 17px; }
  .oi-date-form { display:grid;grid-template-columns:1fr 1fr; }
  .oi-date-form label { min-width:0; }
  .oi-date-form input { width:100%; }
  .oi-date-form button { grid-column:1/-1;width:100%; }
  .oi-kpis { grid-template-columns:1fr 1fr;gap:8px; }
  .oi-kpi { padding:12px; }
  .oi-kpi.primary { grid-column:1/-1; }
  .oi-highlights { grid-template-columns:1fr; }
  .oi-section-head { align-items:start;flex-direction:column; }
  .oi-chart-grid > .oi-card:nth-child(2) .oi-chart { min-width:560px; }
  .oi-chart-grid > .oi-card:first-child .oi-chart { min-width:760px; }
  .oi-product-table { min-width:450px; }
  .oi-chart-foot { padding-left:12px;padding-right:12px; }
}
@media(prefers-reduced-motion:reduce) { .oi-skeleton span { animation:none; } .oi-date-form button:hover { transform:none; } }

/* ── Misc ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.online-dot { width:8px; height:8px; border-radius:50%; background:var(--green-light); display:inline-block; }
.offline-dot { width:8px; height:8px; border-radius:50%; background:var(--red); display:inline-block; }

/* Fair rotation + consistency monitoring */
.shift-card { margin:0 0 18px; border:1px solid rgba(189,25,21,.16); background:linear-gradient(135deg,#fffdf8,#fff4d8); }
.shift-card .card-body { padding:18px; }
.shift-top { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.shift-kicker,.security-kicker { font-size:10px; letter-spacing:.12em; font-weight:800; color:var(--red); text-transform:uppercase; }
.shift-title { font-size:22px; font-weight:900; color:var(--green-dark); margin:3px 0; }
.shift-copy { font-size:12px; color:var(--text-muted); max-width:560px; }
.shift-control { min-width:145px; justify-content:center; padding:14px 18px; font-size:15px; }
.shift-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:16px; }
.shift-metric { background:rgba(255,255,255,.72); border:1px solid rgba(189,25,21,.1); border-radius:12px; padding:10px; }
.shift-metric strong { display:block; font:800 24px 'Barlow Condensed',sans-serif; color:var(--red); }
.shift-metric span { display:block; font-size:10px; color:var(--text-muted); line-height:1.2; }
.shift-offline { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fff0ee; color:var(--red); font-size:12px; font-weight:700; }
.shift-assignments { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:12px; padding:11px 13px; border-radius:12px; background:rgba(189,25,21,.06); border:1px solid rgba(189,25,21,.12); font-size:12px; }
.shift-assignments b { color:var(--red); }
.shift-assignments span { color:var(--text-muted); }
.rotation-list { display:grid; gap:10px; }
.rotation-row,.assignment-row { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--white); }
.rotation-row.next { border-color:var(--gold); background:linear-gradient(100deg,#fff8dc,#fffdf8); box-shadow:0 5px 0 rgba(246,174,0,.16); }
.rotation-position { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:var(--bg); color:var(--red); font-weight:900; }
.rotation-row.next .rotation-position { background:var(--gold); color:#5d4300; }
.rotation-main { flex:1; min-width:0; }
.rotation-main b { display:block; }
.rotation-main small { color:var(--text-muted); font-size:11px; }
.rotation-count { text-align:right; font:800 22px 'Barlow Condensed',sans-serif; color:var(--red); }
.rotation-count small { display:block; font:600 10px 'DM Sans',sans-serif; color:var(--text-muted); }
.security-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.alert-nav-badge { background:var(--red); color:#fff; border-radius:999px; padding:1px 7px; font-size:10px; margin-left:auto; }
.security-alerts { display:grid; gap:12px; }
.security-alert { border-left:5px solid var(--gold); }
.security-alert.critical { border-left-color:var(--red); }
.security-alert.high { border-left-color:var(--orange); }
.security-alert .card-header { align-items:flex-start; gap:10px; }
.security-alert-title { flex:1; }
.security-alert-title b { display:block; font-size:15px; }
.security-alert-title small { color:var(--text-muted); font-size:11px; }
.security-details { color:var(--text-muted); font-size:13px; white-space:pre-line; }
.security-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.security-empty { background:linear-gradient(135deg,#fffdf8,#fff6df); border:1px dashed #e3c878; }

/* ── Impressoras · operação quente, acabamento premium ── */
.printer-hero { background:linear-gradient(118deg,#741b1d 0%,#a9362d 52%,#c97839 100%); color:#fff; border-radius:24px; padding:28px; margin-bottom:18px; display:flex; justify-content:space-between; align-items:center; gap:20px; box-shadow:0 16px 34px rgba(116,27,29,.2); position:relative; overflow:hidden; }
.printer-hero:after { content:""; position:absolute; width:260px; height:260px; border:1px solid rgba(255,239,194,.22); border-radius:50%; right:-80px; top:-100px; }
.printer-kicker { display:block; color:#b98236; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; margin-bottom:5px; }
.printer-hero .printer-kicker { color:#f7d89a; }
.printer-hero h2 { font:800 30px/1.08 'Barlow Condensed',sans-serif; letter-spacing:.01em; margin-bottom:8px; }
.printer-hero p { max-width:600px; color:rgba(255,255,255,.78); font-size:13px; }
.printer-hero-mark { width:74px; height:74px; border:1px solid rgba(255,255,255,.3); border-radius:22px; display:grid; place-items:center; font-size:38px; color:#f5d49a; transform:rotate(-5deg); z-index:1; }
.printer-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px; }
.printer-stat { background:linear-gradient(145deg,#fffdf8,#fff3dd); border:1px solid rgba(178,112,48,.16); border-radius:16px; padding:16px 18px; min-height:106px; position:relative; }
.printer-stat-icon { color:#a9362d; font-size:20px; position:absolute; right:16px; top:14px; }
.printer-stat small { color:var(--text-muted); display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:800; max-width:75%; }
.printer-stat strong { color:#741b1d; display:block; font:800 31px 'Barlow Condensed',sans-serif; margin-top:12px; }
.printer-stat em { font:600 12px 'DM Sans',sans-serif; color:var(--text-muted); }
.printer-setup { margin-bottom:22px; border:1px solid rgba(178,112,48,.18); }
.printer-setup .card-header { align-items:flex-start; gap:14px; }
.printer-setup .card-header b { display:block; font-size:18px; }
.printer-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:20px; }
.printer-step { padding:0 16px; border-right:1px solid #eadfce; display:flex; flex-direction:column; gap:5px; }
.printer-step:first-child { padding-left:0; }.printer-step:last-child { border:0; padding-right:0; }
.printer-step b { color:#a9362d; font:800 23px 'Barlow Condensed',sans-serif; }.printer-step strong { color:#741b1d; font-size:13px; }.printer-step span { color:var(--text-muted); font-size:11px; line-height:1.45; }
.printer-note { margin:0 20px 20px; padding:11px 13px; color:#795d22; background:#fff7df; border:1px solid #f2dda2; border-radius:10px; font-size:12px; }
.printer-toolbar { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:20px 0 12px; }.printer-toolbar h3 { color:#741b1d; font-size:20px; }.printer-toolbar p,.printer-jobs .card-header small { color:var(--text-muted); font-size:12px; display:block; }.printer-toolbar-actions { display:flex; gap:8px; flex-wrap:wrap; }
.printer-loading { display:grid; gap:12px; }.printer-skeleton { height:170px; border-radius:16px; background:linear-gradient(90deg,#f1e8dc,#fff8ed,#f1e8dc); background-size:200% 100%; animation:printerShimmer 1.4s infinite; }.printer-station { margin-bottom:14px; border:1px solid rgba(178,112,48,.18); }.printer-station-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px 12px; }.printer-station-title,.printer-station-actions,.printer-device-main,.printer-device-actions { display:flex; align-items:center; gap:10px; }.printer-station-title h3 { color:#741b1d; font-size:17px; }.printer-station-title small,.printer-device-main small { display:block; color:var(--text-muted); font-size:11px; }.printer-live,.printer-offline { width:10px; height:10px; border-radius:50%; background:#3f8068; box-shadow:0 0 0 4px rgba(63,128,104,.12); flex:none; }.printer-offline { background:#bd1915; box-shadow:0 0 0 4px rgba(189,25,21,.1); }.printer-station-meta { display:flex; gap:20px; flex-wrap:wrap; padding:0 20px 14px; color:var(--text-muted); font-size:11px; border-bottom:1px solid var(--border); }.printer-station-meta b { color:var(--text); }.printer-devices { padding:8px 20px 0; }.printer-device { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 0; border-bottom:1px dashed #e4d9ca; }.printer-device:last-child { border-bottom:0; }.printer-device.is-waiting { background:#fffaf0; margin:0 -10px; padding-left:10px; padding-right:10px; border-radius:10px; }.printer-device-icon { width:34px; height:34px; display:grid; place-items:center; background:#f8e6d1; border-radius:10px; color:#a9362d; font-size:20px; }.printer-device-main { min-width:0; }.printer-device-main strong { display:block; font-size:13px; }.printer-channel-list { display:block; color:#a36a2f; font-size:10px; margin-top:3px; }.printer-device-actions { justify-content:flex-end; flex-wrap:wrap; }.printer-device-empty,.printer-empty,.printer-error { text-align:center; padding:28px 20px; color:var(--text-muted); }.printer-add-device { background:none; border:0; border-top:1px solid var(--border); width:100%; padding:13px; color:#a9362d; cursor:pointer; font-weight:800; font-size:12px; }.printer-empty-mark { display:block; color:#b98236; font-size:40px; margin-bottom:4px; }.printer-empty h3,.printer-error h3 { color:#741b1d; margin-bottom:5px; }.printer-empty p,.printer-error p { font-size:13px; margin-bottom:14px; }.printer-jobs { margin-top:20px; border:1px solid rgba(178,112,48,.18); }.printer-jobs .card-header > div { display:flex; flex-direction:column; gap:3px; }.printer-jobs-table td small { display:block; color:var(--text-muted); font-size:11px; }.printer-job-error { max-width:250px; color:#9a5b48; font-size:11px; }.printer-job-actions { display:flex; gap:5px; justify-content:flex-end; }.printer-modal .modal-header h3 { color:#741b1d; }.printer-form-intro { color:var(--text-muted); font-size:13px; margin-bottom:18px; }.printer-check { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; }.printer-channel-title { font-size:12px; color:var(--text-muted); font-weight:800; margin:18px 0 8px; }.printer-channels { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }.printer-channels label { border:1px solid var(--border); border-radius:9px; padding:9px; font-size:12px; cursor:pointer; }.credential-warning { background:#fff1df; color:#7a4c17; border:1px solid #efcf93; border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:4px; font-size:13px; margin-bottom:16px; }.credential-warning span { font-size:11px; }.credential-field { margin-bottom:12px; }.credential-field label { display:block; color:var(--text-muted); font-size:11px; font-weight:800; margin-bottom:4px; }.credential-field > div { display:flex; gap:8px; align-items:center; }.credential-field code { flex:1; overflow:auto; background:#f7f0e5; border:1px solid var(--border); padding:10px; border-radius:8px; color:#741b1d; font-size:12px; }.printer-server-note { color:var(--text-muted); font-size:12px; padding-top:6px; }
@keyframes printerShimmer { to { background-position:-200% 0; } }
@media (max-width:768px) {
  .shift-top { flex-direction:column; }
  .shift-control { width:100%; }
  .shift-metrics { grid-template-columns:repeat(2,1fr); }
  .rotation-row,.assignment-row { align-items:flex-start; }
  .rotation-count { margin-left:auto; }
  .security-toolbar .btn { flex:1; }
}

/* v11 — operação tátil, profundidade controlada e hierarquia móvel */
:root {
  --surface: #fffaf2;
  --surface-strong: #fffdf8;
  --ink: #2a1b16;
  --line-strong: rgba(96,48,29,.20);
  --shadow-lift: 0 12px 0 rgba(125,14,11,.10), 0 24px 42px rgba(72,34,15,.13), inset 0 1px 0 rgba(255,255,255,.9);
}
body { color: var(--ink); }
.card, .stat-card, .operations-panel, .store-hero, .table-card, .product-card {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.card { background: linear-gradient(145deg,var(--surface-strong),var(--surface)); }
.card-header { min-height: 58px; border-bottom: 1px solid var(--line-strong); }
.btn { min-height: 42px; border: 1px solid rgba(42,27,22,.13); box-shadow: 0 3px 0 rgba(42,27,22,.10); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.form-control { min-height: 44px; border: 2px solid var(--line-strong); background: #fffdf8; }
.sidebar { background: linear-gradient(165deg,#fffaf0,#f3dfc8); border-right: 1px solid rgba(125,14,11,.15); box-shadow: 12px 0 30px rgba(83,37,18,.08); }
.sidebar-logo { position: sticky; top: 0; z-index: 2; background: rgba(255,250,240,.95); border-bottom: 1px solid var(--line-strong); }
.sidebar-logo-text .sub { color: var(--text-muted); }
.sidebar-close { display:none; margin-left:auto; width:38px; height:38px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface-strong); color:var(--red); font-size:25px; line-height:1; cursor:pointer; }
.sidebar-nav { padding: 14px 10px; }
.nav-section { margin: 14px 8px 6px; padding: 8px 10px 5px; border-top: 1px solid rgba(125,14,11,.14); font-size: 10px; }
.nav-group-toggle { display:flex; width:calc(100% - 16px); margin:14px 8px 4px; padding:8px 10px 5px; justify-content:space-between; align-items:center; border:0; border-top:1px solid rgba(125,14,11,.14); background:none; color:#9b7358; font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase; cursor:pointer; }
.nav-group-toggle span { font-size:14px; }
.nav-item { min-height: 46px; margin: 2px 0; border-radius: 11px; border-left-width: 3px; padding: 11px 13px; }
.nav-item.active { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 12px rgba(125,14,11,.10); }
.sidebar-footer { background: rgba(255,253,248,.55); border-top: 1px solid var(--line-strong); }
.topbar { min-height: var(--header-h); background: rgba(255,253,248,.96); }
.page-content { max-width: 1540px; width: 100%; margin: 0 auto; }
.section.active { animation: sectionIn .22s ease both; }
.stat-card { min-height: 138px; padding: 22px; border-top: 3px solid var(--green-main); }
.stat-card.gold { border-top-color: var(--gold); }
.stat-card.red { border-top-color: var(--red); }
.stat-card.blue { border-top-color: var(--blue); }
.stat-card .stat-value { font-size: 34px; }
.operations-panel { background: rgba(255,253,248,.75); }
.order-stage { border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 #fff, 0 8px 16px rgba(68,32,12,.06); }
.users-access-card { border-left: 5px solid var(--gold); }
.access-link-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line-strong); }
.access-link-row:last-child { border-bottom:0; }
.access-link-row code { color:var(--red); font-size:12px; overflow-wrap:anywhere; }
.access-link-actions { display:flex; gap:6px; flex:0 0 auto; }
.role-note { padding:12px 14px; border:1px solid #edd18a; border-radius:12px; background:#fff7dc; color:#6d5100; font-size:12px; }
@keyframes sectionIn { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:768px) {
  .sidebar { width: min(86vw, 330px); }
  .sidebar-logo { padding: 14px; }
  .sidebar-close { display:grid; place-items:center; }
  .sidebar-nav { padding: 10px 12px 18px; }
  .sidebar-footer { padding: 12px; }
  .page-content { padding: 14px; }
  .topbar { padding: 0 12px; }
  .topbar-title { font-size: 15px; }
  .stat-card { min-height: 112px; padding: 16px; }
  .stat-card .stat-value { font-size: 29px; }
  .access-link-row { align-items:flex-start; flex-direction:column; }
  .access-link-actions { width:100%; }
  .access-link-actions .btn { flex:1; justify-content:center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* Central de continuidade: informações operacionais, nunca credenciais. */
.offline-center { margin:0 0 18px; padding:18px; border:1px solid #d6b6a1; }
.offline-center-focus { outline:3px solid rgba(197,31,36,.25); }
.offline-center-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.offline-center h3 { margin:2px 0 4px; }
.offline-center p { margin:0; color:var(--text-muted); font-size:13px; }
.offline-state-badge { border-radius:999px; padding:5px 10px; font-weight:800; font-size:11px; background:#fff0c8; color:#80510b; }
.offline-state-badge.is-online { background:#dff2e5; color:#176c39; }
.offline-state-badge.is-offline { background:#ffe0dc; color:#9e161c; }
.offline-center-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:16px 0; }
.offline-center-grid > div { display:flex; flex-direction:column; gap:4px; padding:10px; border-radius:9px; background:#fff5e8; font-size:12px; }
.offline-center-grid strong { font-size:20px; color:#a9151b; }
.offline-center-actions { display:flex; flex-wrap:wrap; gap:8px; }
.offline-details { margin-top:14px; border-top:1px solid #ead9ca; padding-top:12px; }
.offline-queue-row { display:grid; grid-template-columns:1fr auto 1fr auto auto; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #ead9ca; font-size:12px; }
.offline-queue-row small { color:var(--text-muted); }
.offline-warning { color:#80510b !important; background:#fff0c8; border-radius:8px; padding:9px; margin-top:12px !important; }
.offline-order-builder { border:1px solid #e0c8b4; border-radius:10px; padding:12px; margin-top:12px; background:#fffaf2; }
.offline-order-builder .form-row { display:flex; gap:8px; margin-bottom:8px; }
.offline-order-item { display:flex; gap:8px; align-items:center; padding:7px 0; border-bottom:1px solid #ead9ca; }
.offline-order-item span { flex:1; font-size:13px; }
.offline-order-item button { border:0; color:#a9151b; background:none; cursor:pointer; font-size:18px; }
.edge-mode-banner { display:flex; align-items:center; gap:12px; background:#eef5ff; border:1px solid #abc5ea; border-radius:13px; padding:12px 14px; margin-bottom:14px; color:#17365f; }
.edge-mode-banner[hidden] { display:none; }
.edge-mode-banner > div { display:flex; flex-direction:column; flex:1; }
.edge-mode-banner small { color:#45658d; margin-top:2px; }
.edge-mode-pulse { width:11px; height:11px; border-radius:50%; background:#2f70c0; box-shadow:0 0 0 5px rgba(47,112,192,.14); }
.edge-mode-banner.has-pending { background:#fff8e5; border-color:#e8c45f; }
.edge-mode-banner.has-pending .edge-mode-pulse { background:#d89a00; }
.edge-mode-banner.has-conflict { background:#fff0ef; border-color:#e48f88; }
.edge-mode-banner.has-conflict .edge-mode-pulse { background:#c72222; }
.car-orders-hero { background:linear-gradient(130deg,#17365f,#315d9b 58%,#d9a11a); }
.car-panel-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.car-orders-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.car-order-card { background:var(--white); border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow:0 7px 20px rgba(59,35,17,.08); }
.car-order-head,.car-order-head > div,.car-order-actions { display:flex; align-items:center; gap:10px; }
.car-order-head { justify-content:space-between; align-items:flex-start; }
.car-order-icon { width:42px; height:42px; display:grid; place-items:center; background:#e8effa; border-radius:12px; font-size:22px; }
.car-order-head small { color:var(--text-muted); font-size:10px; font-weight:900; letter-spacing:.08em; }
.car-order-head h3 { margin:2px 0 0; color:#17365f; font-size:17px; }
.car-order-body { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0; }
.car-order-body > div { background:#f7f3ed; border-radius:9px; padding:9px; display:flex; flex-direction:column; gap:2px; }
.car-order-body span { color:var(--text-muted); font-size:10px; }
.car-order-body b { font-size:14px; }
.car-order-notes { color:var(--text-muted); font-size:12px; border-left:3px solid #315d9b; padding-left:9px; margin-bottom:12px; }
.car-order-actions { justify-content:flex-end; flex-wrap:wrap; }
@media (max-width:700px) {
  .offline-center-grid { grid-template-columns:repeat(2,1fr); }
  .offline-queue-row { grid-template-columns:1fr auto; }
  .offline-queue-row small { grid-column:1/-1; }
  .car-orders-grid { grid-template-columns:1fr; }
}

.section { display: none; }
.section.active { display: block; }

.order-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 16px;
}
.order-card-header {
  padding: 14px 16px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
}
.order-items-list { padding: 12px 16px; }
.order-item-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; border-bottom: 1px dashed #f0f0f0;
}
.order-item-row:last-child { border-bottom: none; }
.order-total { padding: 12px 16px; background: var(--bg); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; }

.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pm-btn {
  padding: 14px 8px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: #fff; cursor: pointer; text-align: center; transition: all .2s;
  font-size: 12px; font-weight: 600;
}
.pm-btn .pm-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.pm-btn.selected { border-color: var(--green-main); background: var(--green-pale); }
.pm-btn:hover { border-color: var(--green-light); }

.report-chart { display: flex; flex-direction: column; gap: 8px; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.chart-bar-label { width: 120px; text-align: right; color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-wrap { flex: 1; background: var(--bg); border-radius: 4px; overflow: hidden; height: 22px; }
.chart-bar { height: 100%; background: var(--green-main); border-radius: 4px; transition: width .5s; display: flex; align-items: center; padding: 0 8px; }
.chart-bar-val { font-size: 11px; color: #fff; font-weight: 700; }

.notification-bell { position: relative; cursor: pointer; }
.notification-bell .badge-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; width: 18px; height: 18px;
  border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.summary-box {
  background: var(--green-pale); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 16px;
}
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-row.total { font-weight: 800; font-size: 18px; border-top: 1px solid #ccc; margin-top: 8px; padding-top: 8px; }

/* tab pills */
.tab-pills { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.tab-pill { flex: 1; padding: 8px 4px; text-align: center; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-muted); }
.tab-pill.active { background: #fff; color: var(--green-dark); box-shadow: 0 1px 6px rgba(0,0,0,.1); }

/* Brand layer: dimensional yellow/red/blue identity, without changing JS contracts. */
.brand-mark { overflow: hidden; background: #090909; border: 3px solid var(--red); box-shadow: 0 8px 18px rgba(35,20,10,.32); }
.brand-mark::after { display: none; }
.brand-mark img, .brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-logo .brand-logo { width: 48px; height: 48px; border-radius: 10px; }
.stat-card { border-top: 4px solid var(--green-main); position: relative; }
.stat-card.gold { border-top-color: var(--gold); }
.stat-card.red { border-top-color: var(--red); }
.stat-card.blue { border-top-color: var(--blue); }
.stat-card .stat-icon { color: var(--red); }
.btn-primary { background: linear-gradient(145deg, #d12620, #8f0f0d); box-shadow: 0 5px 0 #5d0b09, 0 8px 15px rgba(143,15,13,.22); }
.btn-primary:hover { background: linear-gradient(145deg, #e53a31, #a51613); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(145deg, #ffd329, #e9a900); color: #342500; box-shadow: 0 5px 0 #bd8500; }
.card, .stat-card, .order-card, .product-card, .table-card { border: 1px solid rgba(11,79,145,.08); }
.section.active { animation: sectionIn .22s ease both; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 400px) {
  .page-content { padding: 12px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 14px 12px; }
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-icon { font-size: 19px; }
}

/* EXPOKADO 3D operations layer */
.sidebar-logo { background: rgba(255,255,255,.4); }
.sidebar-footer { border-top-color: rgba(123,79,48,.15); }
.topbar { background: rgba(255,250,241,.92); }
.btn { border-radius: 12px; box-shadow: 0 4px 0 rgba(91,32,24,.12), 0 9px 16px rgba(91,32,24,.08); }
.btn-secondary { background: #fffaf2; }
.card, .stat-card, .order-card, .product-card, .table-card { box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.85); }
.table-card { min-height: 152px; position:relative; overflow:hidden; }
.table-card::before { content:""; position:absolute; width:90px; height:90px; border-radius:50%; right:-34px; top:-34px; background:rgba(246,174,0,.14); }
.table-card .t-num { position:relative; }
.channel-sales-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 18px; }
.channel-sales-card { padding:18px; border-radius:18px; background:linear-gradient(145deg,#fffdf8,#f5e3ca); border:1px solid rgba(189,25,21,.12); box-shadow:var(--shadow); }
.channel-sales-card strong { display:block; font-size:25px; color:var(--red); margin-top:5px; }
.channel-sales-card small { color:var(--text-muted); font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.control-banner { padding:16px 18px; border-radius:16px; background:#fff8e9; border:1px solid #efd59e; color:#725327; margin-bottom:16px; }
.release-row, .driver-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.release-row:last-child, .driver-row:last-child { border-bottom:0; }
.assignment-address { display:flex; flex-direction:column; gap:5px; margin:14px 0; padding:14px; border-radius:14px; background:var(--gold-light); border:1px solid rgba(209,141,0,.2); }
.assignment-address span { color:var(--text-muted); }
.assignment-address a { color:var(--red); font-weight:800; }
.table-card.assigned-elsewhere { opacity:.72; cursor:not-allowed; }
.table-assignee { margin-top:7px; font-size:11px; font-weight:800; color:var(--red); }
.mobile-flow { max-width:720px; }
@media(max-width:700px){ .channel-sales-grid{grid-template-columns:1fr 1fr}.channel-sales-card strong{font-size:20px}.release-row,.driver-row{align-items:flex-start;flex-direction:column}.release-row .btn,.driver-row .btn{width:100%} }
.login-page { background: radial-gradient(circle at 18% 20%, rgba(246,174,0,.22), transparent 25rem), linear-gradient(135deg,#f9eddb,#f5cfc2 55%,#f8e7c8); }
.login-card { border:1px solid rgba(189,25,21,.12); box-shadow:0 24px 55px rgba(100,48,25,.18); }
.customer-header { background: linear-gradient(135deg,#7f1718,#b5251d) !important; }

/* ── Owner order board: a dense, dimensional three-stage control surface ── */
.operations-panel {
  margin: 26px 0 18px;
  padding: 22px;
  border: 1px solid rgba(37,28,21,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(249,242,229,.93));
  box-shadow: 0 18px 42px rgba(45,25,11,.12), inset 0 1px rgba(255,255,255,.9);
}
.operations-heading {
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin-bottom:18px;
}
.section-eyebrow { color:var(--red); font-size:10px; font-weight:800; letter-spacing:.16em; }
.operations-heading h3 { margin-top:3px; font-size:22px; letter-spacing:-.03em; }
.operations-meta { color:var(--text-muted); font-size:11px; font-weight:700; white-space:nowrap; }
.live-pip { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:#2f8b55; box-shadow:0 0 0 4px rgba(47,139,85,.13); }
.order-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.order-stage {
  min-height:270px; padding:16px; border-radius:17px; overflow:hidden;
  background:#fff; border:1px solid rgba(37,28,21,.1);
  box-shadow:0 8px 18px rgba(45,25,11,.08);
  position:relative;
}
.order-stage::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:var(--stage-color); }
.stage-analysis { --stage-color:#c53526; background:linear-gradient(150deg,#fff9f3,#fff); }
.stage-production { --stage-color:#d69613; background:linear-gradient(150deg,#fffaf0,#fff); }
.stage-ready { --stage-color:#2e8555; background:linear-gradient(150deg,#f4faf3,#fff); }
.stage-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.stage-header > div { display:flex; align-items:center; gap:9px; }
.stage-header h4 { font-size:15px; letter-spacing:-.01em; }
.stage-header strong { color:var(--stage-color); font-size:25px; font-family:'Barlow Condensed',sans-serif; line-height:1; }
.stage-index { color:var(--stage-color); font:800 10px 'Barlow Condensed',sans-serif; letter-spacing:.08em; }
.stage-caption { margin:5px 0 14px; color:var(--text-muted); font-size:11px; }
.stage-list { display:grid; gap:9px; }
.stage-empty { display:grid; place-items:center; min-height:126px; padding:18px; color:var(--text-muted); border:1px dashed rgba(37,28,21,.18); border-radius:12px; font-size:12px; text-align:center; }
.board-order {
  padding:12px 13px; border:1px solid rgba(37,28,21,.1); border-left:3px solid var(--stage-color);
  border-radius:11px; background:rgba(255,255,255,.88); cursor:pointer;
  box-shadow:0 4px 10px rgba(45,25,11,.06); transition:transform .18s, box-shadow .18s;
}
.board-order:hover { transform:translateY(-2px); box-shadow:0 9px 18px rgba(45,25,11,.13); }
.board-order-top, .board-order-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.board-order-top { color:var(--stage-color); font-size:11px; }
.board-order-top span { color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board-order-name { margin:7px 0 9px; font-size:13px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board-order-bottom { color:var(--text-muted); font-size:11px; }
.board-order-bottom strong { color:var(--text); font-size:12px; }

@media (max-width: 900px) {
  .order-board { grid-template-columns:1fr; }
  .order-stage { min-height:0; }
  .stage-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .operations-panel { padding:15px; margin-top:18px; border-radius:17px; }
  .operations-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  .operations-heading h3 { font-size:19px; }
  .stage-list { grid-template-columns:1fr; }
  .stage-empty { min-height:84px; }
}

/* EXPOKADO dashboard hero */
.dashboard-hero {
  min-height: 300px;
  margin-bottom: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 44%, rgba(255,214,92,.52), transparent 18rem),
    linear-gradient(135deg,#b7191c 0%,#df3b22 57%,#f09a19 100%);
  box-shadow: 0 15px 0 #8f1518, 0 26px 42px rgba(125,42,19,.22);
  border: 1px solid rgba(246,174,0,.35);
}
.dashboard-hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(143,21,24,.72) 0%,rgba(184,23,23,.34) 45%,rgba(240,154,25,.02) 78%);
}
.dashboard-hero-content { max-width:570px; text-shadow:0 3px 16px rgba(112,24,15,.38); }
.hero-kicker { color:var(--gold); font-size:11px; font-weight:900; letter-spacing:.16em; margin-bottom:8px; }
.dashboard-hero h2 { font-family:'Barlow Condensed',sans-serif; font-size:clamp(34px,5vw,58px); line-height:.92; letter-spacing:.01em; text-transform:uppercase; max-width:520px; }
.dashboard-hero p { color:rgba(255,255,255,.84); font-size:14px; margin-top:10px; }
.hero-actions { display:flex; gap:9px; margin-top:20px; flex-wrap:wrap; }
.hero-action { border:0; border-radius:10px; padding:10px 15px; background:linear-gradient(145deg,#ffc62b,#e79b00); color:#261600; font-weight:900; cursor:pointer; box-shadow:0 4px 0 #9e6800; }
.hero-action.ghost { color:#fff; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.25); box-shadow:none; backdrop-filter:blur(8px); }
.hero-assistant-status { position:absolute; right:22px; bottom:20px; display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:14px; background:rgba(255,250,239,.90); border:1px solid rgba(246,174,0,.55); backdrop-filter:blur(10px); box-shadow:0 8px 20px rgba(120,35,16,.16); }
.hero-assistant-status div { display:flex; flex-direction:column; }
.hero-assistant-status small { font-size:8px; letter-spacing:.12em; color:var(--text-muted); }
.hero-assistant-status b { color:var(--red); font-size:12px; }
.assistant-pulse { width:11px; height:11px; border-radius:50%; background:#54d26d; box-shadow:0 0 0 6px rgba(84,210,109,.14); animation:pulseAssistant 1.8s infinite; }
@keyframes pulseAssistant { 50% { box-shadow:0 0 0 11px rgba(84,210,109,0); } }

.service-channels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:22px 0; }
.demo-data-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 22px;
  padding:18px 20px;
  border:1px solid #e2c9aa;
  border-radius:16px;
  background:#fffaf2;
  box-shadow:0 10px 24px rgba(65,24,12,.08);
}
.demo-data-panel h3 { margin:3px 0 5px; font-size:20px; }
.demo-data-panel p { margin:0; color:var(--text-muted); font-size:13px; }
.demo-data-actions { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
@media(max-width:700px) {
  .demo-data-panel { align-items:stretch; flex-direction:column; }
  .demo-data-actions { justify-content:stretch; }
  .demo-data-actions .btn { flex:1; }
}
.service-channel { border:0; border-radius:18px; padding:17px; display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer; color:#fff; transition:.2s; box-shadow:0 7px 0 rgba(0,0,0,.20),0 14px 25px rgba(35,20,10,.12); }
.service-channel:hover { transform:translateY(-2px); }
.service-channel > span { font-size:28px; filter:drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.service-channel div { display:flex; flex-direction:column; flex:1; }
.service-channel b { font-size:17px; }
.service-channel small { color:rgba(255,255,255,.72); font-size:10px; }
.service-channel em { font-style:normal; font-size:9px; font-weight:900; letter-spacing:.08em; padding:5px 7px; border-radius:7px; background:rgba(0,0,0,.18); }
.service-channel.counter { background:linear-gradient(145deg,#bc1d18,#760c0a); }
.service-channel.table { background:linear-gradient(145deg,#e6a200,#9a6000); }
.service-channel.delivery { background:linear-gradient(145deg,#24834b,#12502d); }
.service-channel.car { background:linear-gradient(145deg,#315d9b,#17365f); }

.order-channel-picker { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:16px; }
.order-channel-option { border:2px solid var(--border); background:#fff; border-radius:14px; padding:13px 8px; display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; color:var(--text); }
.order-channel-option span { font-size:25px; }
.order-channel-option small { color:var(--text-muted); font-size:10px; }
.order-channel-option.active { border-color:var(--red); background:#fff2e3; box-shadow:0 5px 0 rgba(143,15,13,.18); transform:translateY(-2px); }

.espoka-fab { position:fixed; right:22px; bottom:22px; z-index:490; width:64px; height:64px; border-radius:50%; padding:3px; border:3px solid var(--gold); background:#111; cursor:pointer; box-shadow:0 8px 0 #72100d,0 14px 28px rgba(32,12,5,.32); }
.espoka-fab img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.espoka-fab-pulse { position:absolute; right:1px; top:1px; width:13px; height:13px; border-radius:50%; background:#47cc67; border:2px solid #fff; z-index:2; }
.espoka-panel { position:fixed; right:22px; bottom:100px; z-index:489; width:min(370px,calc(100vw - 28px)); border-radius:20px; overflow:hidden; background:#fffdf8; box-shadow:0 26px 70px rgba(26,11,5,.34); border:1px solid rgba(246,174,0,.4); transform:translateY(20px) scale(.96); opacity:0; pointer-events:none; transition:.22s; }
.espoka-panel.open { transform:none; opacity:1; pointer-events:auto; }
.espoka-panel-header { display:flex; align-items:center; gap:11px; padding:15px; color:#fff; background:linear-gradient(135deg,#1b110d,#710f0c); }
.espoka-panel-header img { width:47px; height:47px; border-radius:14px; object-fit:cover; border:2px solid var(--gold); }
.espoka-panel-header div { display:flex; flex-direction:column; flex:1; }
.espoka-panel-header small { font-size:8px; letter-spacing:.12em; color:#d8c5af; }
.espoka-panel-header b { color:var(--gold); font-size:18px; }
.espoka-panel-header span { font-size:10px; color:#dce7dd; }
.espoka-panel-header i { display:inline-block; width:7px; height:7px; border-radius:50%; background:#48cf68; margin-right:4px; }
.espoka-panel-header button { background:none; border:0; color:#fff; font-size:26px; cursor:pointer; }
.espoka-panel-body { padding:16px; }
.espoka-panel-body p { font-size:13px; color:var(--text-muted); margin-bottom:12px; }
.espoka-panel-body p b { color:var(--text); }
.espoka-panel-body > button { width:100%; text-align:left; padding:12px 13px; margin-top:7px; border:1px solid var(--border); border-radius:11px; background:#fff; color:var(--text); font-weight:700; cursor:pointer; }
.espoka-panel-body > button:hover { border-color:var(--gold); background:#fff9e8; }
.espoka-coming { margin-top:13px; padding:11px; border-radius:11px; background:#f2eee8; display:flex; flex-direction:column; }
.espoka-coming span { font-size:9px; color:var(--red); font-weight:900; letter-spacing:.1em; }
.espoka-coming small { color:var(--text-muted); margin-top:2px; }

@media (max-width: 768px) {
  .dashboard-hero { min-height:270px; padding:22px 18px; background-position:60% center; }
  .dashboard-hero::before { background:linear-gradient(90deg,rgba(143,21,24,.75),rgba(184,23,23,.18)),linear-gradient(0deg,rgba(143,21,24,.35),transparent); }
  .dashboard-hero-content { padding-bottom:45px; }
  .hero-assistant-status { left:18px; right:auto; bottom:16px; }
  .service-channels { grid-template-columns:1fr; gap:10px; }
  .service-channel { padding:14px 16px; }
  .espoka-fab { right:14px; bottom:14px; width:58px; height:58px; }
  .espoka-panel { right:14px; bottom:84px; }
}

/* ── Final brand polish: EXPOKADO visual language ──
   The logo is the hero, not an afterthought. Deep charcoal anchors the
   interface while bun yellow, ketchup red and lettuce green create a
   confident service rhythm. */
:root {
  --green-dark: #8f1518;
  --green-main: #b81717;
  --green-light: #e23824;
  --green-pale: #fff0d2;
  --gold: #f6b516;
  --gold-light: #fff4c7;
  --red: #9f1715;
  --orange: #e36a1f;
  --blue: #176b8f;
  --bg: #f4efe7;
  --white: #fffdf8;
  --text: #261b15;
  --text-muted: #75685d;
  --border: #e2d7ca;
  --shadow: 0 16px 34px rgba(48, 22, 8, .12), 0 3px 8px rgba(48, 22, 8, .07);
}

body {
  background:
    radial-gradient(circle at 92% 0%, rgba(246,181,22,.13), transparent 24rem),
    radial-gradient(circle at 2% 96%, rgba(184,23,23,.06), transparent 26rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.btn, .form-control, .card, .stat-card, .order-card, .product-card,
.table-card, .service-channel, .cat-btn, .type-card, .product-row {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease,
    background-color .22s ease, color .22s ease;
}
.btn-primary { background: linear-gradient(145deg, #d52b20, #991311); }
.btn-primary:hover { box-shadow: 0 7px 0 #5d0b09, 0 15px 26px rgba(143,15,13,.22); }
.btn-secondary { background: rgba(255,253,248,.88); }
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-light); }
.form-control { background: rgba(255,253,248,.92); }
.form-control:focus { box-shadow: 0 0 0 4px rgba(184,23,23,.12); }
.card:hover, .stat-card:hover { box-shadow: 0 20px 38px rgba(48,22,8,.15); }

.sidebar {
  background:
    radial-gradient(circle at 72% 0%, rgba(246,181,22,.30), transparent 14rem),
    linear-gradient(160deg, #fffaf0 0%, #f8ead5 62%, #f4d8c2 100%);
  border-right: 1px solid rgba(159,23,21,.12);
  box-shadow: 14px 0 34px rgba(83,36,16,.07);
}
.sidebar-logo { padding: 20px 18px 21px; }
.sidebar-logo .brand-mark {
  width: 58px !important; height: 58px !important; border-radius: 17px !important;
  border: 2px solid rgba(246,181,22,.75);
  box-shadow: 0 6px 0 #a81a17, 0 14px 22px rgba(112,40,20,.18);
}
.sidebar-logo .brand-logo { width: 100%; height: 100%; border-radius: 15px; }
.sidebar-logo-text .brand { color: var(--gold); letter-spacing: .7px; }
.sidebar-logo-text .brand { color: var(--red); }
.sidebar-logo-text .sub { color: var(--text-muted); }
.nav-item { border-left-width: 4px; }
.nav-item.active { box-shadow: inset 4px 0 var(--gold); border-left-color: transparent; }

.topbar { background: rgba(255,253,248,.9); backdrop-filter: blur(14px); }
.topbar-title { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: 21px; }

.brand-mark {
  border: 3px solid var(--gold);
  background: #fff8e8;
  box-shadow: 0 7px 0 #7d0e0b, 0 17px 30px rgba(34,10,5,.28);
  transform: translateY(-1px);
}
.brand-mark img, .brand-logo { object-fit: cover; }
.brand-mark--hero {
  width: 138px !important; height: 138px !important; border-radius: 38px !important;
  border-width: 5px; box-shadow: 0 10px 0 #7d0e0b, 0 25px 42px rgba(34,10,5,.36);
}
.brand-mark--hero img { border-radius: 32px; }

.login-page {
  position: relative;
  background:
    radial-gradient(circle at 17% 18%, rgba(246,181,22,.48), transparent 24rem),
    radial-gradient(circle at 86% 78%, rgba(184,23,23,.23), transparent 32rem),
    linear-gradient(135deg, #fff8e9 0%, #f7dcc1 48%, #f5bda8 100%);
}
.login-page::after {
  content: "LANCHES • BALCÃO • DELIVERY";
  position: absolute; left: 34px; bottom: 28px; color: rgba(125,26,20,.68);
  font: 800 11px 'Plus Jakarta Sans', sans-serif; letter-spacing: .22em;
}
.login-card {
  border: 1px solid rgba(246,181,22,.35);
  box-shadow: 0 20px 0 rgba(159,23,21,.78), 0 34px 70px rgba(112,40,20,.20);
}
.login-logo h1 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 27px; }

.customer-header {
  background: linear-gradient(105deg, #a51618, #d93420 72%, #f0a415) !important;
  box-shadow: 0 5px 18px rgba(31,10,4,.25);
}
.customer-logo .brand-mark {
  width: 52px !important; height: 52px !important; border-radius: 16px !important;
  border-width: 2px; box-shadow: 0 5px 0 #7d0e0b, 0 10px 18px rgba(0,0,0,.28);
}
.customer-logo .brand-logo { border-radius: 14px; }
.customer-logo .logo-text { color: var(--gold); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }
.store-intro-card { border: 1px solid rgba(246,181,22,.4); }
.store-intro-card::before {
  content: "EXPOKADO LANCHE";
  position: absolute; top: 18px; right: 20px; color: rgba(255,244,199,.9);
  font: 800 10px 'Plus Jakarta Sans', sans-serif; letter-spacing: .15em;
}
.store-intro-card { position: relative; }
.type-screen > div:first-child .brand-mark {
  width: 128px !important; height: 128px !important; border-radius: 36px !important;
  border-width: 5px; box-shadow: 0 10px 0 #7d0e0b, 0 24px 38px rgba(34,10,5,.28);
}
.type-screen > div:first-child .brand-logo { border-radius: 31px; }
.type-screen h2 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; }
.type-card:hover, .product-row:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(48,22,8,.15); }
.product-row.in-cart { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,181,22,.16), var(--shadow); }

@media (max-width:768px) {
  .printer-hero { padding:22px 18px; border-radius:18px; }.printer-hero h2 { font-size:26px; }.printer-hero-mark { display:none; }
  .printer-stats { grid-template-columns:1fr; }.printer-stat { min-height:84px; }.printer-stat strong { margin-top:8px; }
  .printer-setup .card-header,.printer-toolbar { align-items:stretch; flex-direction:column; }.printer-setup .card-header .btn { width:100%; justify-content:center; }
  .printer-steps { grid-template-columns:1fr 1fr; gap:18px 0; }.printer-step:nth-child(2) { border-right:0; }.printer-step:nth-child(3) { padding-left:0; }.printer-step:nth-child(4) { padding-right:0; }
  .printer-toolbar-actions .btn { flex:1; justify-content:center; }.printer-station-head { align-items:flex-start; flex-direction:column; }.printer-station-actions { width:100%; justify-content:space-between; }
  .printer-device { align-items:flex-start; flex-direction:column; }.printer-device-actions { width:100%; justify-content:flex-start; }.printer-jobs-table { min-width:700px; }
}

.dashboard-hero { box-shadow: 0 12px 0 #7d0e0b, 0 28px 46px rgba(43,20,7,.25); }
.dashboard-hero h2 { text-shadow: 0 4px 0 rgba(125,14,11,.42), 0 5px 18px rgba(125,35,15,.34); }
.dashboard-hero-logo {
  position: absolute;
  top: 50%;
  right: 172px;
  width: 132px;
  height: 132px;
  padding: 6px;
  transform: translateY(-54%) rotate(2deg);
  border-radius: 38px;
  background: linear-gradient(145deg, #ffd85c, #f6b516 45%, #8d140f 46%, #5d0b09);
  box-shadow: 0 12px 0 rgba(91,9,7,.9), 0 27px 42px rgba(0,0,0,.42);
  z-index: 2;
}
.dashboard-hero-logo::after {
  content: "";
  position: absolute;
  inset: 7px 18px auto;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}
.dashboard-hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 31px;
}
.service-channel:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(0,0,0,.2), 0 20px 32px rgba(35,20,10,.16); }

@media (max-width: 768px) {
  .login-page::after { left: 18px; bottom: 15px; font-size: 9px; }
  .login-card { box-shadow: 0 12px 0 rgba(125,14,11,.55), 0 24px 48px rgba(0,0,0,.38); }
  .brand-mark--hero { width: 112px !important; height: 112px !important; }
  .type-screen > div:first-child .brand-mark { width: 108px !important; height: 108px !important; }
  .dashboard-hero-logo { width:88px; height:88px; right:18px; top:22px; transform:rotate(2deg); border-radius:26px; }
  .dashboard-hero-logo img { border-radius:21px; }
  .dashboard-hero-content { padding-right:72px; }
}

/* WhatsApp service desk + authorship: warm operational layer */
.whatsapp-inbox-card { border: 1px solid rgba(189,25,21,.18); box-shadow: 0 14px 30px rgba(96,55,22,.10); }
.whatsapp-inbox-header { background: linear-gradient(110deg,#fff8e9,#fffdf8); align-items:flex-start; }
.whatsapp-inbox-header h3 { margin-top:3px; color:var(--green-dark); }
.whatsapp-inbox-header p { color:var(--text-muted); font-size:12px; font-weight:400; margin-top:3px; }
.inbox-count { display:inline-grid; place-items:center; min-width:24px; height:24px; margin-left:6px; border-radius:999px; background:var(--red); color:#fff; font-size:12px; vertical-align:middle; }
.wa-request-row { display:flex; justify-content:space-between; gap:18px; padding:15px 0; border-bottom:1px solid var(--border); }
.wa-request-row:last-child { border-bottom:0; padding-bottom:0; }
.wa-request-copy { min-width:0; flex:1; }.wa-request-top { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.wa-request-copy p { margin:6px 0 3px; font-size:13px; }.wa-request-copy small { color:var(--text-muted); font-size:11px; }
.wa-request-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }.inbox-empty,.inbox-loading { padding:22px 0; color:var(--text-muted); display:flex; flex-direction:column; gap:4px; }.inbox-empty b { color:var(--green-dark); }
.wa-addition-modal { max-width:680px; }.wa-order-summary { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 14px; border-radius:12px; background:var(--bg); color:var(--green-dark); }.wa-order-summary span { color:var(--text-muted); font-size:12px; }.wa-source-note { margin:12px 0; padding:10px 12px; border:1px solid #f0d58a; border-radius:10px; background:#fff8df; color:#795b0c; font-size:12px; font-weight:600; }.wa-product-list,.wa-selected-items { display:grid; gap:7px; margin-bottom:14px; max-height:210px; overflow:auto; }.wa-product-row,.wa-selected-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 10px; border:1px solid var(--border); border-radius:10px; background:#fff; }.wa-product-row small { display:block; color:var(--text-muted); }.wa-selected-row > div:first-child { flex:1; }.wa-selected-row .form-control { margin-top:5px; font-size:12px; padding:7px 9px; }.wa-qty { display:flex; gap:8px; align-items:center; }.wa-qty button { border:1px solid var(--border); background:var(--bg); border-radius:7px; width:28px; height:28px; cursor:pointer; font-weight:800; }.wa-payment-choice { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; }.wa-warning { padding:12px; border:1px solid #e6b44d; border-radius:10px; background:#fff6dc; color:#765500; display:grid; gap:8px; font-size:12px; }.wa-addition-inline { margin-top:7px; padding:7px 9px; border-radius:8px; background:#fff3d7; color:#765500; font-size:12px; }.auth-summary { display:flex; flex-wrap:wrap; gap:8px; margin:5px 0 15px; }.auth-stat { min-width:110px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:linear-gradient(140deg,#fffdf8,#fff4dc); }.auth-stat small,.authorship-table td small { display:block; color:var(--text-muted); font-size:10px; }.auth-stat b { display:block; font-size:21px; color:var(--green-dark); }.authorship-table tr.audit-failure td { background:#fff0ee; }.authorship-table tr.audit-auth-event td:first-child { border-left:3px solid var(--gold); }.authorship-table details summary { cursor:pointer; color:var(--red); font-weight:700; }.authorship-table details span { display:block; max-width:240px; white-space:pre-wrap; font-size:11px; color:var(--text-muted); margin-top:4px; }.auth-pagination { display:flex; align-items:center; justify-content:center; gap:12px; padding-top:16px; font-size:12px; color:var(--text-muted); }
@media (max-width:768px) { .wa-request-row { flex-direction:column; gap:10px; }.wa-request-actions { justify-content:flex-start; }.wa-request-actions .btn { flex:1; }.auth-pagination { flex-wrap:wrap; }.audit-auth-filters { grid-template-columns:1fr; }.whatsapp-inbox-header { flex-direction:column; } }

/* ═══════════════════════════════════════════════════════════════════════
   EXPOKADO / service counter system
   A warm, high-contrast visual layer for long shifts: red signal, yolk gold,
   charcoal ink and a soft tortilla background. Kept as an override layer so
   the existing operational templates and inline hooks remain untouched.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --green-dark:#24100d;
  --green-main:#b71918;
  --green-light:#d85c3f;
  --green-pale:#fff0e5;
  --gold:#f3ad18;
  --gold-light:#fff4c9;
  --red:#b71918;
  --orange:#d86725;
  --blue:#246b83;
  --bg:#f7f1e8;
  --white:#fffdf9;
  --text:#241b17;
  --text-muted:#75675e;
  --border:#e5d8cb;
  --shadow:0 16px 36px rgba(62,27,12,.10),0 3px 9px rgba(62,27,12,.06);
  --radius:14px;
  --radius-sm:8px;
  --sidebar-w:258px;
}

html { background:var(--bg); }
body {
  background:
    radial-gradient(circle at 100% 0,rgba(243,173,24,.16),transparent 23rem),
    linear-gradient(120deg,rgba(183,25,24,.025),transparent 42%),var(--bg);
  font-family:'Plus Jakarta Sans','DM Sans',sans-serif;
}
button,.btn,.nav-item,.cat-btn,.table-card,.product-card { -webkit-tap-highlight-color:transparent; }
.btn { border-radius:9px; min-height:38px; font-weight:800; letter-spacing:.01em; }
.btn-primary { background:var(--red); box-shadow:0 3px 0 #7f100f; }
.btn-primary:hover { background:#8f1112; transform:translateY(-1px); }
.btn-secondary { background:var(--white); border-color:#d8c7b8; }
.btn-secondary:hover { background:#fff5dc; border-color:var(--gold); }
.btn-gold { background:var(--gold); color:#3b2009; box-shadow:0 3px 0 #b77b0d; }
.form-control { min-height:42px; background:#fffefa; border-color:#dfcfc0; color:var(--text); }
.form-control:focus { border-color:var(--red); box-shadow:0 0 0 3px rgba(183,25,24,.11); }
.card,.stat-card,.product-card,.table-card { border:1px solid rgba(120,67,32,.11); box-shadow:var(--shadow); }
.card-header { background:linear-gradient(100deg,#fffdf9,#fff8ed); }
.badge-green { background:#fff0dc; color:#8d4f0d; }
.badge-blue { background:#e5f3f4; color:#246b83; }

.sidebar {
  background:linear-gradient(180deg,#24100d 0%,#301412 62%,#421713 100%);
  border-right:1px solid rgba(243,173,24,.18);
  box-shadow:8px 0 28px rgba(37,12,5,.16);
}
.sidebar-logo { padding:18px 17px 20px; border-bottom-color:rgba(255,255,255,.13); }
.sidebar-logo img { border-radius:50%; border:2px solid var(--gold); }
.sidebar-logo-text { color:#fff8e9; }
.sidebar-logo-text .brand { letter-spacing:.09em; font-family:'Barlow Condensed',sans-serif; font-size:22px; }
.sidebar-logo-text .sub { color:rgba(255,244,220,.62); }
.sidebar-nav { padding:15px 10px; }
.nav-group-toggle { color:#d9a987 !important; padding:13px 12px 7px !important; }
.nav-item { color:#f4dfcf; border-left:3px solid transparent; border-radius:8px; margin:2px 0; padding:11px 12px; }
.nav-item:hover { background:rgba(243,173,24,.11); color:#ffd66a; }
.nav-item.active { background:linear-gradient(90deg,rgba(243,173,24,.2),rgba(183,25,24,.28)); border-left-color:var(--gold); color:#ffd86b; }
.nav-item .icon { filter:saturate(.8); }
.sidebar-footer { border-top-color:rgba(255,255,255,.13); color:#d9a987; }
.sidebar-user .info .name { color:#fff8e9; }
.sidebar-user .avatar { background:var(--gold); color:#35160d; }

.topbar { background:rgba(255,253,249,.94); border-bottom-color:#eadbce; height:66px; }
.topbar-title { font-family:'Barlow Condensed',sans-serif; font-size:23px; letter-spacing:.015em; color:#341611; }
.page-content { padding:28px 30px 42px; max-width:1700px; width:100%; }
.online-dot { background:#2d9a67; box-shadow:0 0 0 4px rgba(45,154,103,.12); }

.stats-grid { gap:14px; }
.stat-card { position:relative; overflow:hidden; padding:18px 19px; min-height:126px; background:linear-gradient(145deg,#fffefa 0%,#fff3dd 100%); }
.stat-card::after { content:""; position:absolute; width:74px;height:74px;right:-18px;bottom:-24px;border-radius:50%;background:rgba(243,173,24,.15); }
.stat-card .stat-label { letter-spacing:.07em; font-size:10px; }
.stat-card .stat-value { font-size:34px; color:var(--red); }
.stat-card.gold .stat-value { color:#a96b08; }
.stat-card.blue .stat-value { color:var(--blue); }
.stat-card.red .stat-value { color:var(--red); }
.stat-icon { opacity:.88; }

.dashboard-hero { border-radius:18px; margin-bottom:18px; background-position:center; }
.service-channels { gap:12px; }
.service-channel { border:1px solid rgba(183,25,24,.14); border-radius:13px; background:var(--white); }
.service-channel em { color:var(--red); font-size:10px; font-style:normal; font-weight:900; letter-spacing:.08em; }
.operations-panel { border-color:rgba(183,25,24,.12); }
.operations-heading h3 { font-family:'Barlow Condensed',sans-serif; font-size:25px; letter-spacing:.02em; }
.order-stage { border-radius:12px; border-color:rgba(120,67,32,.12); }

.products-grid { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; }
.product-card { position:relative; border-radius:15px; }
.product-card img { height:170px; aspect-ratio:4/3; object-position:center; transition:transform .35s ease; }
.product-card:hover img { transform:scale(1.04); }
.product-card > .p-body { position:relative; background:linear-gradient(#fffefa,#fff9ef); padding:16px; }
.product-card .p-name { font-size:16px; color:#321712; }
.product-card .p-desc { min-height:34px; }
.product-card .p-price { color:var(--red); font-family:'Barlow Condensed',sans-serif; font-size:23px; }
.product-card .p-time { background:#fff1cb; padding:3px 7px; border-radius:99px; }

/* Audit is a reading surface first: stable rhythm, visual grouping and no
   microscopic text. The table can scroll horizontally on narrow devices. */
#section-auditoria .card-header { padding:18px 22px; }
#section-auditoria .audit-auth-filters,
#section-auditoria .audit-filters { background:#fff8ed; border:1px solid #ead6bd; border-radius:12px; padding:13px; }
#section-auditoria table.data-table { font-size:13px; }
#section-auditoria table.data-table th { background:#fff1d8; color:#684b35; font-size:10px; padding:11px 14px; }
#section-auditoria table.data-table td { padding:13px 14px; vertical-align:top; }
#section-auditoria table.data-table tbody tr:nth-child(even) td { background:rgba(255,249,238,.7); }
#section-auditoria table.data-table tbody tr:hover td { background:#fff3d1; }
.authorship-table td small { margin-top:3px; }
.authorship-table details summary { color:var(--red); }
.audit-failure td { background:#fff0ed !important; }
.auth-pagination { border-top:1px solid var(--border); margin-top:4px; }

.table-responsive { border-radius:12px; }

/* Dashboard ao vivo, desempenho com dados reais e cartões da auditoria */
.dashboard-insights {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:4px;
}
.dashboard-insights > .card {
  border:1px solid #ead8c8;
  box-shadow:0 14px 32px rgba(75,34,19,.1);
}
.dashboard-insights .card-header { min-height:78px; }
.dashboard-insights .card-header h3 { margin-top:2px; color:#381b16; font-size:19px; }
.dashboard-insights .section-eyebrow { color:#9b261e; font-size:9px; letter-spacing:.14em; }
.insight-card-icon {
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  flex:none;
  border-radius:13px;
  background:#fff0db;
  font-size:22px;
}
.dashboard-top-products { display:grid; gap:15px; }
.dashboard-product-row { display:grid; grid-template-columns:32px minmax(0,1fr); gap:11px; align-items:center; }
.dashboard-product-rank {
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border-radius:10px;
  background:#fff0db;
  color:#9e321d;
  font:800 14px 'Barlow Condensed',sans-serif;
}
.dashboard-product-row:first-child .dashboard-product-rank { background:#b11f25; color:#fff; }
.dashboard-product-info { min-width:0; }
.dashboard-product-label { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:6px; font-size:13px; }
.dashboard-product-label b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-product-label strong { flex:none; color:#9e321d; font-size:12px; }
.dashboard-product-track { height:9px; overflow:hidden; border-radius:99px; background:#f3e8dd; }
.dashboard-product-track span { display:block; height:100%; min-width:5px; border-radius:inherit; background:linear-gradient(90deg,#bf272a,#edaa20); }
.dashboard-chart-note { margin:16px 0 0; color:#817267; font-size:11px; }
.dashboard-month-summary { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:16px; }
.dashboard-month-summary > div { display:grid; gap:4px; }
.dashboard-month-summary span { color:#74695f; font-size:11px; }
.dashboard-month-summary strong { color:#941d21; font:800 29px/1.1 'Barlow Condensed',sans-serif; }
.dashboard-month-days { padding:6px 9px; border-radius:99px; background:#edf4ef; color:#345d45 !important; font-weight:700; white-space:nowrap; }
.dashboard-month-chart-wrap { overflow-x:auto; overflow-y:hidden; border:1px solid #edddcc; border-radius:16px; background:linear-gradient(180deg,#fffdf9,#fff4e9); scrollbar-color:#ba8e7c transparent; }
.dashboard-month-chart-wrap:focus-visible { outline:3px solid #9b261e; outline-offset:2px; }
.dashboard-month-chart { display:block; min-width:100%; height:215px; }
.dashboard-month-axis { stroke:#d9cbbd; stroke-width:1.5; }
.dashboard-month-grid { stroke:#e8d9c9; stroke-width:1; stroke-dasharray:4 5; }
.dashboard-month-bar { fill:url(#monthSalesGradient); transition:opacity .15s ease; }
.dashboard-month-bar-current { fill:#eea624; }
.dashboard-month-bar:hover { opacity:.7; }
.dashboard-month-tick { fill:#715a50; font:700 12px 'DM Sans',sans-serif; }
.dashboard-month-scale { fill:#a08779; font:600 11px 'DM Sans',sans-serif; }
.dashboard-month-value { fill:#7f2825; font:800 11px 'DM Sans',sans-serif; }
.dashboard-unavailable { color:#74695f; font:600 13px 'DM Sans',sans-serif; }
.dashboard-chart-unavailable { padding:14px; border:1px dashed #d8c7b7; border-radius:12px; background:#fffaf2; color:#74695f; font-size:12px; }
#dashboardOrderBoard { align-items:stretch; }
#dashboardOrderBoard .order-stage {
  min-width:0;
  overflow:hidden;
  border:2px solid transparent;
  border-radius:17px;
  box-shadow:0 8px 20px rgba(34,18,10,.17);
}
#dashboardOrderBoard .stage-header { align-items:center; }
#dashboardOrderBoard .stage-header h4,
#dashboardOrderBoard .stage-caption { color:inherit; }
#dashboardOrderBoard .stage-header strong { min-width:35px; height:35px; display:grid; place-items:center; border-radius:999px; background:#fff; color:inherit; }
#dashboardOrderBoard .stage-index { border-radius:9px; background:rgba(255,255,255,.24); color:inherit; }
#dashboardOrderBoard .stage-analysis {
  background:linear-gradient(145deg,#c9363d,#a91f2c);
  border-color:#861927;
  color:#fff;
}
#dashboardOrderBoard .stage-production {
  background:linear-gradient(145deg,#f4c84e,#e8a51b);
  border-color:#a76b0e;
  color:#34220a;
}
#dashboardOrderBoard .stage-ready {
  background:linear-gradient(145deg,#35a96b,#18784c);
  border-color:#125f3d;
  color:#fff;
}
#dashboardOrderBoard .stage-list { gap:9px; }
#dashboardOrderBoard .board-order {
  border:1px solid rgba(255,255,255,.52);
  border-radius:12px;
  background:rgba(255,255,255,.94);
  color:#2d211a;
  box-shadow:0 4px 10px rgba(28,14,4,.13);
}
#dashboardOrderBoard .board-order:hover { transform:translateY(-2px); box-shadow:0 8px 15px rgba(28,14,4,.17); }
#dashboardOrderBoard .stage-empty { color:inherit; background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.32); }
.menu-add-button { min-height:42px; padding-inline:17px; font-weight:800; box-shadow:0 5px 13px rgba(189,25,21,.2); }
.menu-add-button > span { font-size:13px; }
#section-auditoria .audit-session-card {
  overflow:hidden;
  margin:0 0 17px;
  border:1px solid #ead8c7;
  border-radius:16px;
  background:#fffdf8;
  box-shadow:0 8px 20px rgba(65,30,13,.09);
}
#section-auditoria .audit-session-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 18px;
  background:linear-gradient(100deg,#811a20,#bd2728 70%,#d7821c);
  color:#fff;
}
#section-auditoria .audit-session-header .badge { background:#fff; color:#83191e; }
#section-auditoria .audit-session-facts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:13px 16px;
  background:#fff5e8;
}
#section-auditoria .audit-session-facts > span {
  display:grid;
  gap:3px;
  min-width:0;
  padding:10px;
  border:1px solid #ecd6bf;
  border-radius:11px;
  background:#fffdf9;
}
#section-auditoria .audit-session-facts small { color:#806a58; font-size:10px; font-weight:700; text-transform:uppercase; }
#section-auditoria .audit-session-facts b { overflow-wrap:anywhere; color:#43251b; font-size:12px; }
#section-auditoria .audit-transaction {
  margin:0 14px 10px;
  padding:12px 14px;
  border-left:5px solid #45986d;
  border-radius:0 11px 11px 0;
  background:#edf7f0;
  color:#284334;
  font-size:13px;
}
#section-auditoria .audit-session-facts + .audit-transaction { margin-top:12px; }
#section-auditoria .audit-transaction:not(.audit-transaction-sale) { border-left-color:#df8a24; background:#fff4dc; color:#68440d; }
#section-auditoria .audit-transaction > div { margin-top:6px; }
#section-auditoria .audit-events { margin-top:20px; }
#section-auditoria .audit-events h3 { margin:0 0 11px; color:#6e231d; }
#section-auditoria .audit-event-list { display:grid; gap:10px; }
#section-auditoria .audit-event-card {
  padding:14px 16px;
  border:1px solid #e5c29b;
  border-left:5px solid #e5a51e;
  border-radius:12px;
  background:linear-gradient(100deg,#fff1d4,#fffaf0);
}
#section-auditoria .audit-event-card > div { display:flex; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; color:#542b1e; }
#section-auditoria .audit-event-card > div span { color:#74695f; font-size:12px; }
#section-auditoria .audit-event-card p { margin-top:7px; color:#604f44; font-size:13px; }

@media (max-width:768px) {
  .dashboard-insights { grid-template-columns:1fr; gap:13px; }
  #section-auditoria .audit-session-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:400px) {
  .dashboard-month-summary { align-items:flex-start; flex-direction:column; }
  .dashboard-month-chart { height:205px; }
  #section-auditoria .audit-session-facts { grid-template-columns:1fr 1fr; }
}
table.data-table th:first-child { border-radius:9px 0 0 0; }
table.data-table th:last-child { border-radius:0 9px 0 0; }

.login-page {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,210,75,.95) 0 8%, transparent 27%),
    radial-gradient(circle at 88% 82%, rgba(255,153,55,.75) 0 9%, transparent 31%),
    radial-gradient(circle at 78% 8%, rgba(255,242,194,.48) 0 5%, transparent 24%),
    linear-gradient(140deg, #8f1116 0%, #c9231e 42%, #ef5b27 72%, #f5a623 100%);
}
.login-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -260px;
  border-radius: 50%;
  border: 90px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 55px rgba(255,211,97,.10);
}
.login-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -220px;
  top: -220px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 60px rgba(255,212,98,.09);
}
.login-card {
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 0 rgba(108,10,12,.32), 0 32px 72px rgba(76,8,9,.34);
}
.login-logo h1 { color:var(--red); font-family:'Barlow Condensed',sans-serif; font-size:28px; letter-spacing:.035em; }
.login-logo p { color:#795c4e; }
.brand-mark { background:linear-gradient(145deg,#f7c23b,#b71918); box-shadow:0 10px 0 #74100e,0 18px 30px rgba(90,17,9,.26); }

@media (max-width:768px) {
  .page-content { padding:18px 14px 30px; }
  .topbar { height:60px; }
  .topbar-title { font-size:20px; }
  .stats-grid { gap:9px; }
  .stat-card { min-height:108px; padding:14px; }
  .stat-card .stat-value { font-size:29px; }
  .products-grid { gap:10px; }
  .product-card img { height:auto; aspect-ratio:1.25; }
  .product-card .p-body { padding:12px; }
  .product-card .p-name { font-size:14px; }
  #section-auditoria .table-responsive { margin:0 -14px; padding:0 14px; }
  #section-auditoria table.data-table { min-width:860px; }
  #section-auditoria table.data-table td { padding:12px; }
}

/* ── v13 service-ready finish ─────────────────────────────────────────────
   Warm, light surfaces keep the operation readable in a busy service. The
   identity still comes from the EXPOKADO tomato and mustard mark. */
:root {
  --green-dark: #2d2926;
  --green-main: #b72824;
  --green-light: #c99a35;
  --green-pale: #fae9df;
  --gold: #d59a26;
  --gold-light: #fff1cf;
  --red: #b72824;
  --orange: #c9692e;
  --blue: #47728a;
  --bg: #f6f0e7;
  --white: #fffdf9;
  --text: #2d2926;
  --text-muted: #716861;
  --border: #e1d6ca;
  --line-strong: #dacabd;
  --surface-strong: #fffdf9;
  --shadow: 0 12px 28px rgba(72,42,24,.09), 0 2px 7px rgba(72,42,24,.05);
}

body {
  font-size: 15px;
  background: radial-gradient(circle at 88% 0%, rgba(213,154,38,.12), transparent 28rem), var(--bg);
}

.sidebar {
  background: #fffaf3;
  border-right: 1px solid #e4d7ca;
  box-shadow: 8px 0 26px rgba(65,40,25,.06);
}
.sidebar-logo {
  padding: 20px 18px;
  background: #fffaf3;
  border-bottom: 1px solid #e9ddd1;
}
.sidebar-logo-text { color: var(--text); }
.sidebar-logo-text .brand {
  color: var(--red);
  font-size: 22px;
  letter-spacing: .08em;
}
.sidebar-logo-text .sub { color: #91847a; font-size: 11px; }
.sidebar-nav { padding: 16px 11px; }
.nav-group-toggle {
  color: #927d6e !important;
  font-size: 11px !important;
  letter-spacing: .13em;
  padding: 14px 13px 8px !important;
}
.nav-item {
  min-height: 50px;
  padding: 13px 14px;
  gap: 14px;
  border-radius: 12px;
  color: #514841;
  font-size: 15px;
  font-weight: 600;
}
.nav-item .icon {
  width: 23px;
  font-size: 20px;
  line-height: 1;
}
.nav-item:hover { background: #fff0e7; color: var(--red); }
.nav-item.active {
  background: #fbe7dc;
  color: var(--red);
  border-left-color: var(--red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 5px 14px rgba(183,40,36,.09);
}
.nav-item .nav-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: -5px -5px -5px auto;
  border: 1px solid #dcc7b5;
  border-radius: 10px;
  background: #fff8ee;
  color: #806b5b;
  cursor: grab;
  touch-action: none;
}
.nav-item .nav-grip::before {
  content: "";
  width: 19px;
  height: 19px;
  background: radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 0 / 7px 7px;
}
.nav-item .nav-grip:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.nav-item.nav-reordering { opacity: .7; background: #ffe4cd; }
.nav-item.nav-reordering .nav-grip { cursor: grabbing; }
.sidebar-footer {
  padding: 16px;
  background: #fff6ed;
  border-top: 1px solid #e9ddd1;
  color: #76685f;
}
.sidebar-user .info .name { color: var(--text); font-size: 14px; }
.sidebar-user .info .role { font-size: 12px; color: #8a7b70; }
.sidebar-user .avatar { background: var(--gold); color: #fffaf3; width: 40px; height: 40px; font-size: 16px; }

.topbar {
  height: 70px;
  background: rgba(255,253,249,.96);
  border-bottom-color: #e5d9ce;
}
.topbar-title { font-size: 25px; color: var(--text); }
.topbar-actions { gap: 15px; }
.menu-toggle { font-size: 26px; padding: 8px; }
.notification-bell { font-size: 22px; }
.notification-bell .badge-count { font-size: 12px; min-width: 20px; height: 20px; }

.btn {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
  border-radius: 11px;
}
.btn-sm { min-height: 40px; padding: 9px 15px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 14px 24px; font-size: 17px; }
.btn-primary { background: var(--red); box-shadow: 0 3px 0 #851b19; }
.btn-primary:hover { background: #98201d; }
.btn-secondary { background: #fffdf9; border-color: #dacabd; }
.form-control { min-height: 48px; padding: 12px 15px; font-size: 15px; }
.form-group label { font-size: 14px; }

.card, .stat-card, .product-card, .table-card { box-shadow: var(--shadow); }
.card-header { padding: 18px 22px; font-size: 17px; }
.card-body { padding: 22px; }
.stat-card { min-height: 132px; padding: 20px; }
.stat-card .stat-label { font-size: 12px; }
.stat-card .stat-value { font-size: 38px; }
.stat-card .stat-icon { font-size: 28px; }
.table-card { padding: 19px; }
.table-card .t-num { font-size: 40px; }
.table-card .t-name, .table-card .t-status { font-size: 13px; }
.table-card .t-total { font-size: 18px; }
.cat-btn, .tab-pill { font-size: 15px; min-height: 44px; }
.tab-pill { padding: 11px 8px; }
table.data-table { font-size: 15px; }
table.data-table th { font-size: 13px; padding: 14px 17px; }
table.data-table td { padding: 15px 17px; }
.badge { font-size: 12px; padding: 5px 11px; }

.empty-state { padding: 64px 20px; }
.empty-state .icon { font-size: 56px; }
.empty-state p { font-size: 17px; }

@media (max-width:768px) {
  .sidebar { width: min(88vw, 350px); }
  .sidebar-logo { padding: 16px 14px; }
  .sidebar-nav { padding: 13px 11px 20px; }
  .nav-item { min-height: 54px; font-size: 16px; padding: 14px 15px; }
  .nav-item .icon { font-size: 22px; width: 25px; }
  .sidebar-footer { padding: 14px; }
  .topbar { height: 64px; padding: 0 13px; }
  .topbar-title { font-size: 23px; }
  .page-content { padding: 20px 14px 34px; }
  .card-header { padding: 17px 16px; }
  .card-body { padding: 18px 16px; }
  .stats-grid { gap: 11px; }
  .stat-card { min-height: 116px; padding: 15px; }
  .stat-card .stat-value { font-size: 32px; }
  .stat-card .stat-label { font-size: 11px; }
  .products-grid { gap: 12px; }
  .product-card .p-name { font-size: 15px; }
  .product-card .p-desc { font-size: 13px; }
  .product-card .p-price { font-size: 24px; }
  .modal-body { padding: 22px 18px; }
  table.data-table th { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPOKADO / impacto máximo
   Camada final de acabamento: carvão profundo, tomate vivo e gema dourada.
   Mantém todos os contratos de markup e comportamento existentes.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --green-dark: #2a0d0b;
  --green-main: #c51f1d;
  --green-light: #ed5b2b;
  --green-pale: #fff0e4;
  --gold: #f4b51b;
  --gold-light: #fff2bd;
  --red: #c51f1d;
  --orange: #eb6a25;
  --blue: #24738b;
  --bg: #f3ece3;
  --white: #fffdf9;
  --text: #281916;
  --text-muted: #74645b;
  --border: #dfcec0;
  --line-strong: #d2bdae;
  --shadow: 0 14px 30px rgba(65,24,12,.12), 0 3px 8px rgba(65,24,12,.06);
}

body {
  background:
    radial-gradient(circle at 96% 0, rgba(244,181,27,.18), transparent 27rem),
    radial-gradient(circle at 0 100%, rgba(197,31,29,.07), transparent 30rem),
    var(--bg);
}

::selection { background: var(--gold); color: #35120d; }
::-webkit-scrollbar-thumb { background: #c8a28d; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.sidebar {
  background:
    radial-gradient(circle at 80% 0, rgba(244,181,27,.18), transparent 19rem),
    linear-gradient(180deg, #270b0a 0%, #3b1110 55%, #4b1510 100%);
  border-right: 1px solid rgba(244,181,27,.28);
  box-shadow: 12px 0 34px rgba(41,9,5,.24);
}
.sidebar-logo {
  background: rgba(24,6,5,.3);
  border-bottom-color: rgba(255,237,187,.16);
}
.sidebar-logo-text { color: #fff9ed; }
.sidebar-logo-text .brand { color: var(--gold); font-family:'Barlow Condensed',sans-serif; font-size:24px; letter-spacing:.08em; }
.sidebar-logo-text .sub { color: rgba(255,244,220,.62); }
.sidebar-nav { padding: 15px 10px 20px; }
.nav-group-toggle { color: #e5ad88 !important; border-top-color: rgba(255,237,187,.16); }
.nav-item {
  color: #f8e1d3;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-item:hover {
  background: rgba(244,181,27,.13);
  color: #ffd965;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(244,181,27,.24), rgba(197,31,29,.34));
  color: #ffe079;
  border-left-color: var(--gold);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 7px 16px rgba(20,2,2,.2);
}
.sidebar-footer { background: rgba(24,6,5,.22); border-top-color: rgba(255,237,187,.16); color:#e5ad88; }
.sidebar-user .info .name { color: #fff9ed; }
.sidebar-user .avatar { background: var(--gold); color: #35120d; }

.topbar {
  height: 72px;
  background: rgba(255,253,249,.92);
  border-bottom: 1px solid #e2cdbd;
  box-shadow: 0 5px 20px rgba(64,25,10,.08);
}
.topbar-title {
  color: #341310;
  font-size: 26px;
  font-family:'Barlow Condensed',sans-serif;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.page-content { padding: 30px 32px 46px; }

.btn {
  border-radius: 10px;
  min-height: 44px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(145deg, #df3326, #a91415);
  box-shadow: 0 4px 0 #74100e, 0 10px 20px rgba(169,20,21,.18);
}
.btn-primary:hover { background: linear-gradient(145deg, #ef4930, #c51f1d); box-shadow: 0 6px 0 #74100e, 0 14px 25px rgba(169,20,21,.25); }
.btn-gold { background: linear-gradient(145deg, #ffd34b, #efa90d); color:#351709; }
.btn-secondary { background: #fffdf9; border-color: #d4bdae; }
.btn-secondary:hover { background: #fff1cf; border-color: var(--gold); }
.btn:focus-visible, .nav-item:focus-visible, .cat-btn:focus-visible, .tab-pill:focus-visible,
.form-control:focus-visible { outline: 3px solid rgba(244,181,27,.7); outline-offset: 2px; }
.form-control { background:#fffdf9; border-color:#d4bdae; }
.form-control:focus { border-color:var(--red); box-shadow:0 0 0 4px rgba(197,31,29,.13); }

.card, .stat-card, .order-card, .product-card, .table-card {
  border-color: rgba(121,57,28,.18);
  box-shadow: 0 14px 30px rgba(65,24,12,.10), inset 0 1px rgba(255,255,255,.92);
}
.card-header { background: linear-gradient(100deg,#fffdf9,#fff5e5); border-bottom-color:#e4d2c5; }
.stat-card {
  background: linear-gradient(145deg,#fffefa 0%,#fff0d7 100%);
  border-top: 4px solid var(--red);
}
.stat-card.gold { border-top-color: var(--gold); }
.stat-card .stat-value { color:var(--red); text-shadow: 0 2px rgba(197,31,29,.08); }
.stat-card.gold .stat-value { color:#b47708; }
.stat-card.blue .stat-value { color:var(--blue); }
.stat-card.red .stat-value { color:var(--red); }
.stat-card:hover, .card:hover { transform: translateY(-2px); box-shadow:0 20px 38px rgba(65,24,12,.16), inset 0 1px rgba(255,255,255,.95); }

.dashboard-hero {
  background:
    radial-gradient(circle at 82% 35%, rgba(255,220,90,.62), transparent 17rem),
    linear-gradient(120deg,#8e1015 0%,#c51f1d 42%,#ed6525 76%,#f4b51b 100%);
  box-shadow: 0 11px 0 #74100e, 0 28px 50px rgba(98,20,10,.27);
}
.hero-kicker { color:#ffe17c; }
.service-channel.counter { background:linear-gradient(145deg,#d52b20,#801011); }
.service-channel.table { background:linear-gradient(145deg,#f5bd22,#b26b06); }
.service-channel.delivery { background:linear-gradient(145deg,#d65a25,#8a2816); }
.service-channel { box-shadow:0 7px 0 rgba(74,15,5,.34),0 16px 28px rgba(65,24,12,.16); }
.operations-panel { border-color:rgba(197,31,29,.18); box-shadow:0 18px 40px rgba(65,24,12,.13); }
.order-stage { border-color:rgba(121,57,28,.18); }

.table-card.ocupada { border-color:#c51f1d; background:linear-gradient(145deg,#fff0e9,#ffe2d8); }
.table-card.conta { border-color:#e27b24; background:linear-gradient(145deg,#fff7e3,#ffedc5); }
.table-card.livre { border-color:#b7861c; background:linear-gradient(145deg,#fffdf0,#fff3c7); }
.table-card .t-num { color:#3a1712; }
.cat-btn.active, .tab-pill.active { background:var(--red); color:#fff; border-color:var(--red); box-shadow:0 4px 0 #79110f; }
.tab-pills { background:#eadbce; }

.modal-backdrop { background:rgba(38,8,6,.74); backdrop-filter: blur(3px); }
.modal { border:1px solid rgba(244,181,27,.42); box-shadow:0 24px 70px rgba(32,5,3,.38); }
.toast-success { background:#2f7f4f; }
.toast-error { background:var(--red); }
.toast-warning { background:var(--orange); }

.login-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,218,94,.24), transparent 25rem),
    radial-gradient(circle at 88% 82%, rgba(255,141,40,.28), transparent 30rem),
    linear-gradient(135deg,#321716 0%,#762126 48%,#a84627 100%);
}
.login-card { border:1px solid rgba(255,255,255,.68); box-shadow:0 22px 58px rgba(41,12,10,.3); }

@media (max-width:768px) {
  .topbar { height:64px; }
  .topbar-title { font-size:23px; }
  .page-content { padding:20px 14px 34px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Operação de pedidos · controles de status em primeiro plano
   Última camada intencional: aumenta a leitura a distância no balcão sem
   alterar IDs, contratos de JS ou a ordem dos fluxos existentes.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --sidebar-w: 286px; }

.sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(circle at 88% 2%, rgba(244,181,27,.22), transparent 18rem),
    linear-gradient(180deg, #250908 0%, #3b100e 58%, #4b1510 100%);
  box-shadow: 16px 0 40px rgba(41,9,5,.27);
}
.sidebar-logo {
  min-height: 92px;
  padding: 17px 20px;
  gap: 14px;
}
.sidebar-logo .brand-mark {
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
  box-shadow: 0 7px 0 #8b1210, 0 16px 25px rgba(0,0,0,.28);
}
.sidebar-logo .brand-logo { border-radius: 16px; }
.sidebar-logo-text .brand { font-size: 26px; }
.sidebar-logo-text .sub { font-size: 11px; line-height: 1.35; }
.sidebar-nav { padding: 17px 12px 24px; }
.nav-group-toggle {
  min-height: 38px;
  padding: 10px 14px 7px;
  font-size: 11px;
  letter-spacing: .12em;
}
.nav-item {
  min-height: 56px;
  padding: 15px 16px;
  gap: 14px;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: .005em;
}
.nav-item .icon {
  width: 28px;
  font-size: 23px;
  line-height: 1;
}
.nav-item.active {
  background: linear-gradient(100deg, rgba(244,181,27,.27), rgba(197,31,29,.42));
  box-shadow: inset 4px 0 var(--gold), 0 8px 18px rgba(20,2,2,.25);
}
.sidebar-footer { padding: 19px 17px; }
.sidebar-footer .btn { min-height: 48px; font-size: 15px; }

.main-content { margin-left: var(--sidebar-w); }

/* The four existing onclick-backed filters read as a status control board. */
#section-comandas > div:first-child {
  align-items: stretch !important;
  gap: 16px;
  margin-bottom: 22px !important;
}
#section-comandas .tab-pills {
  flex: 1 1 620px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 9px;
  margin: 0;
  border: 1px solid rgba(121,57,28,.19);
  border-radius: 18px;
  background: linear-gradient(135deg, #ead9cc, #f5eadb);
  box-shadow: 0 10px 24px rgba(65,24,12,.10), inset 0 1px rgba(255,255,255,.75);
}
#section-comandas .tab-pill {
  min-height: 78px;
  padding: 16px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 13px;
  background: rgba(255,253,249,.72);
  color: #684d40;
  font: 800 17px/1.05 'Plus Jakarta Sans', sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
#section-comandas .tab-pill:hover {
  transform: translateY(-3px);
  color: var(--red);
  border-color: rgba(197,31,29,.4);
  box-shadow: 0 8px 15px rgba(65,24,12,.13);
}
#section-comandas .tab-pill.active {
  transform: translateY(-2px);
  color: #fff;
  border-color: #79110f;
  background: linear-gradient(145deg, #df3326, #9f1514);
  box-shadow: 0 6px 0 #79110f, 0 14px 22px rgba(159,21,20,.25);
}
#section-comandas > div:first-child > .btn {
  align-self: center;
  min-height: 58px;
  padding-inline: 22px;
  font-size: 16px;
}
#ordersContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 17px;
  align-items: start;
}
#ordersContainer:empty { display: block; }
#ordersContainer .order-card { margin-bottom: 0; border-top: 5px solid var(--gold); }
#ordersContainer .order-card:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
  :root { --sidebar-w: 286px; }
  .sidebar { width: min(90vw, 360px); }
  .main-content { margin-left: 0; }
  #section-comandas > div:first-child {
    flex-direction: column;
    gap: 13px;
  }
  #section-comandas .tab-pills {
    width: 100%;
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
  #section-comandas .tab-pill {
    min-height: 68px;
    font-size: 15px;
    padding: 13px 8px;
  }
  #section-comandas > div:first-child > .btn {
    width: 100%;
    justify-content: center;
  }
  #ordersContainer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 400px) {
  #section-comandas .tab-pill { min-height: 62px; font-size: 14px; }
  #section-comandas .tab-pills { gap: 6px; padding: 6px; }
}

/* Override final: mesas grandes e estados de alto contraste */
#tablesGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px}
.table-card{min-height:245px;padding:24px 20px;border-width:4px;border-style:solid;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
 .table-card.livre{color:#164c31;border-color:#278458;background:linear-gradient(145deg,#e6f5e9,#cae9d2)}
 .table-card.ocupada{color:#761d25;border-color:#c43b43;background:linear-gradient(145deg,#fff0ec,#f8d8d3)}
 .table-card.conta{color:#68440b;border-color:#c28a1b;background:linear-gradient(145deg,#fff5d9,#f9e5a8)}
 .table-card.reservada{color:#214b65;border-color:#4b829d;background:linear-gradient(145deg,#edf6fa,#d8eaf1)}
.table-card .t-num{color:inherit;font-size:64px;line-height:.9}
.table-card .t-name,.table-card .t-total,.table-card .table-assignee,.table-card>div[style*="font-size:12px"]{color:inherit!important;font-size:16px!important;font-weight:800}
.table-card .t-total{font-size:24px!important}
 .table-card .t-status .badge{padding:8px 15px;background:rgba(255,255,255,.88);color:inherit;border:1px solid currentColor;font-size:13px}
.table-card.assigned-elsewhere{opacity:1;filter:saturate(.82)}
.table-action-hint{color:inherit}
@media(max-width:900px){#tablesGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.table-card{min-height:210px;padding:18px 12px}.table-card .t-num{font-size:52px}}
@media(max-width:480px){#tablesGrid{grid-template-columns:1fr 1fr;gap:10px}.table-card{min-height:190px;border-radius:17px}.table-card .t-num{font-size:46px}}

.menu-day-heading{
  margin-bottom:18px;
  padding:22px 24px;
  border-radius:20px;
  color:#fff;
  background:linear-gradient(120deg,#8d1114,#d7261f 58%,#f29b18);
  box-shadow:0 9px 0 #6f0b0e,0 20px 34px rgba(111,11,14,.24);
}
.menu-day-heading span{font-size:11px;font-weight:900;letter-spacing:.18em;color:#ffe08a}
.menu-day-heading h2{margin:5px 0 3px;font:900 34px/1 'Barlow Condensed',sans-serif}
.menu-day-heading p{margin:0;color:#fff2dc;font-size:13px}
.motoboy-return-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.motoboy-return-actions .btn{min-height:48px}
.operational-request-alert{
  display:flex;
  flex-direction:column;
  gap:4px;
  border-left:5px solid var(--warning, #f59e0b);
  box-shadow:0 12px 32px rgba(0,0,0,.24);
}
.operational-request-alert strong{font-size:14px}
.operational-request-alert span{font-size:13px}
.espoka-admin-chat{display:grid;gap:8px;margin:13px 0;padding:12px;border-radius:13px;background:#fff8e4;border:1px solid #e7bd55}
.espoka-admin-chat>div{font-size:13px;line-height:1.45;color:#452317}
.espoka-admin-chat textarea{width:100%;padding:10px;border:1px solid #d8b15d;border-radius:9px;resize:vertical;font:inherit}
.espoka-ask-button{background:#8d1114!important;color:#fff!important;font-weight:900!important}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL SERVICE CONTRAST PASS
   Live-service palette: tomato red signal, charcoal structure, mustard
   checkpoints and warm cream surfaces. This is intentionally last so it
   wins over older theme experiments without touching markup or behavior.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --green-dark:#292321;
  --green-main:#c51f24;
  --green-light:#e05a3f;
  --green-pale:#ffe5d6;
  --gold:#e3a516;
  --gold-light:#fff0b8;
  --red:#c51f24;
  --orange:#d86622;
  --blue:#1f6f86;
  --bg:#f3eadf;
  --white:#fffaf2;
  --text:#292321;
  --text-muted:#665a53;
  --border:#d9c6b7;
  --shadow:0 10px 0 rgba(74,31,20,.06),0 16px 30px rgba(74,31,20,.12);
}

body {
  color:var(--text);
  background:
    linear-gradient(135deg,rgba(197,31,36,.045),transparent 34%),
    radial-gradient(circle at 95% 0,rgba(227,165,22,.18),transparent 25rem),
    var(--bg);
}
::selection { background:#c51f24; color:#fffaf2; }
::-webkit-scrollbar-thumb { background:#bda89a; }
::-webkit-scrollbar-thumb:hover { background:#c51f24; }

button,.btn,.nav-item,.cat-btn,.table-card,.product-card,
.notification-bell,.tab-pill,.service-channel,.hero-action,
.modal-close,.item-check,.wa-qty button {
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,
    box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}
:focus-visible {
  outline:3px solid #e3a516;
  outline-offset:3px;
}

.btn {
  border:1px solid transparent;
  box-shadow:0 3px 0 rgba(73,29,18,.2);
}
.btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 5px 0 rgba(73,29,18,.22); }
.btn:active:not(:disabled) { transform:translateY(1px); box-shadow:0 1px 0 rgba(73,29,18,.2); }
.btn-primary { background:#c51f24; color:#fff; }
.btn-primary:hover { background:#a9151b; }
.btn-secondary { background:#fffaf2; color:#392b25; border-color:#cdb6a5; }
.btn-secondary:hover { background:#fff0c8; color:#8e171b; border-color:#e3a516; }
.btn-danger { background:#a9151b; }
.btn-danger:hover { background:#7f1015; }
.btn-gold { background:#e3a516; color:#33200e; }
.btn-gold:hover { background:#c58a0e; color:#24150a; }
.btn:disabled { box-shadow:none; }

.form-control {
  color:#292321;
  background:#fffaf2;
  border:1.5px solid #cdb6a5;
}
.form-control:hover { border-color:#b48769; }
.form-control:focus { border-color:#c51f24; box-shadow:0 0 0 3px rgba(197,31,36,.16); }
.form-group label { color:#554840; }

.card,.stat-card,.product-card,.table-card {
  border-color:#d8c2b1;
  box-shadow:var(--shadow);
}
.card-header {
  color:#332722;
  background:linear-gradient(100deg,#fffaf2,#ffefd5);
  border-bottom-color:#decabd;
}
.card:hover { border-color:#c9a88d; }

.sidebar {
  background:
    linear-gradient(165deg,#241e1c 0%,#32211e 56%,#49191a 100%);
  border-right:2px solid #e3a516;
  box-shadow:8px 0 30px rgba(43,18,11,.22);
}
.sidebar-logo { background:rgba(0,0,0,.12); border-bottom-color:rgba(255,240,184,.2); }
.sidebar-logo-text { color:#fff8e9; }
.sidebar-logo-text .brand { color:#ffd05a; }
.sidebar-logo-text .sub { color:#e6cfc1; }
.nav-group-toggle { color:#e6b56e !important; }
.nav-item { color:#f6e4d7; }
.nav-item:hover { background:rgba(227,165,22,.16); color:#ffd56a; }
.nav-item.active {
  background:linear-gradient(90deg,rgba(227,165,22,.28),rgba(197,31,36,.42));
  color:#ffd86c;
  border-left-color:#e3a516;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
.sidebar-footer { border-top-color:rgba(255,240,184,.2); color:#e1b99e; }
.sidebar-user .info .name { color:#fff8e9; }
.sidebar-user .info .role { color:#e1b99e; }
.sidebar-user .avatar { background:#e3a516; color:#342017; }
.sidebar-footer .btn-secondary { background:#fff0c8; color:#40251a; border-color:#e3a516; }

.topbar {
  background:rgba(255,250,242,.96);
  border-bottom:2px solid #d7bca9;
  box-shadow:0 4px 16px rgba(76,35,21,.1);
}
.topbar-title { color:#3b211c; }
.menu-toggle { color:#c51f24; }
.app-back-button {
  display:none;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid #d5b9a7;
  border-radius:11px;
  background:#fff0c8;
  color:#8e171b;
  font-size:24px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 3px 0 rgba(73,29,18,.16);
}
.app-back-button:hover {
  background:#e3a516;
  color:#33200e;
  transform:translateY(-1px);
}
.online-dot { background:#269657; box-shadow:0 0 0 4px rgba(38,150,87,.16); }

.stat-card {
  background:linear-gradient(145deg,#fffaf2 0%,#ffe9cf 100%);
  border-top:4px solid #c51f24;
}
.stat-card.gold { border-top-color:#e3a516; }
.stat-card.blue { border-top-color:#1f6f86; }
.stat-card .stat-label { color:#5b4b42; }
.stat-card .stat-value { color:#a9151b; }
.stat-card.gold .stat-value { color:#996408; }

.service-channel {
  background:#fffaf2;
  border:1px solid #d8bba6;
  box-shadow:0 5px 0 rgba(90,41,20,.08),0 9px 20px rgba(90,41,20,.08);
}
.service-channel:hover { border-color:#c51f24; box-shadow:0 7px 0 rgba(90,41,20,.1),0 15px 26px rgba(90,41,20,.15); }
.service-channel em { color:#a9151b; }
.operations-panel { background:#fffaf2; border-color:#d6b6a1; box-shadow:var(--shadow); }
.order-stage { background:#fff2df; border-color:#d9bca7; }
.order-stage.stage-analysis { background:#fff0ec; border-color:#e8b8b2; }
.order-stage.stage-production { background:#fff5d9; border-color:#e3ca8b; }
.order-stage.stage-ready { background:#eaf5ed; border-color:#b8d9c1; }
.stage-header strong,.section-eyebrow { color:#c51f24; }

.cat-btn { background:#fffaf2; border-color:#cdb6a5; color:#4d3b32; }
.cat-btn:hover { background:#fff0c8; border-color:#e3a516; }
.cat-btn.active { background:#c51f24; border-color:#c51f24; color:#fff; box-shadow:0 3px 0 #7f1015; }
.badge-green { background:#ffe7c3; color:#80510b; }
.badge-red { background:#ffe0dc; color:#9e161c; }
.badge-orange { background:#ffe4ca; color:#a14a10; }
.badge-blue { background:#dceff1; color:#15576d; }
.badge-gold { background:#fff0b8; color:#75500a; }

.table-card:hover,.product-card:hover { border-color:#c51f24; }
.table-menu-link {
  color:#fff2bd;
  font-weight:900;
  text-decoration:underline;
  text-decoration-color:rgba(255,242,189,.7);
  text-underline-offset:3px;
  text-shadow:0 1px 3px rgba(25,8,4,.55);
}
.table-menu-link:hover {
  color:#fff;
  text-decoration-color:#fff;
}
.product-card .p-body { background:linear-gradient(#fffaf2,#ffefd7); }
.product-card .p-name { color:#33221d; }
.product-card .p-price { color:#b1161d; }

.kds-header,.customer-header { background:linear-gradient(105deg,#2b211f,#651719); }
.kds-card { border:1px solid #d7bdab; }
.kds-card-header.pendente { background:#ffe7c3; color:#70470b; }
.kds-card-header.cozinha { background:#ffdcae; color:#754209; }
.kds-card-header.pronta { background:#dceff1; color:#15576d; }
.kds-item .qty { color:#b1161d; }

.modal { background:#fffaf2; border:1px solid #d6b8a3; }
.modal-header { background:#ffefd8; border-bottom-color:#ddc5b4; }
.modal-footer { background:#fff5e8; border-top-color:#ddc5b4; }
.modal-close:hover { color:#c51f24; background:#ffe0d6; }
.loading-overlay { background:rgba(243,234,223,.9); }
.spinner { border-color:#ffdcae; border-top-color:#c51f24; }
table.data-table th { color:#604638; background:#ffe9c8; border-bottom-color:#d5bca9; }
table.data-table td { border-bottom-color:#ead9ca; }
table.data-table tr:hover td { background:#fff0d5; }

.store-hero,.menu-day-heading {
  background:linear-gradient(120deg,#811216 0%,#c51f24 54%,#e3a516 100%);
}
.store-hero { box-shadow:0 8px 0 #641014,0 18px 32px rgba(90,16,14,.22); }
.fiscal-step-pill,.fiscal-form-section,.fiscal-save-bar { border-color:#d6b8a3; background:#fffaf2; }
.fiscal-step-pill > span,.fiscal-section-number { background:#c51f24; }
.fiscal-guidance,.fiscal-security-note { background:#e5f1f0; border-color:#b8d7d6; color:#254e54; }
.fiscal-accountant-warning { background:#fff0c8; border-color:#e3c269; color:#76500a; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* EXPOKADO shift palette — solid status blocks, readable at a glance. */
:root {
  --green-dark:#075b35;
  --green-main:#0b7f43;
  --green-light:#38b76a;
  --green-pale:#d8f2df;
  --gold:#f4b900;
  --gold-light:#fff0a8;
  --red:#d92730;
  --orange:#b94d0d;
  --blue:#087f9f;
  --bg:#f4e9d4;
  --white:#fff8e9;
  --text:#2b2118;
  --text-muted:#66584a;
  --border:#d6b78d;
  --shadow:0 5px 0 rgba(83,47,16,.12),0 12px 24px rgba(83,47,16,.1);
}
body { background:var(--bg); color:var(--text); }

.btn,.cat-btn,.tab-pill,.service-channel,.hero-action,.nav-item,
.order-channel-option,.table-card,.product-card,.card,.stat-card,
.order-card,.car-order-card,.role-note {
  border-radius:7px;
}
.btn { font-weight:800; box-shadow:0 3px 0 rgba(57,36,16,.18); }
.btn-primary { background:#d92730; color:#fff; }
.btn-primary:hover:not(:disabled) { background:#b81924; }
.btn-gold { background:#f4b900; color:#352400; }
.btn-secondary { background:#f4b900; color:#352400; border:1px solid #c78d00; }
.btn-secondary:hover:not(:disabled) { background:#ffd340; color:#302000; border-color:#a97300; }
.btn-danger { background:#a9151b; color:#fff; }
.btn-danger:hover:not(:disabled) { background:#801018; }
.btn:disabled { opacity:.52; box-shadow:none; }

.badge,.alert-nav-badge,.offline-state-badge {
  border:0;
  border-radius:3px;
  font-weight:900;
}
.badge-green,.offline-state-badge.is-online { background:#0b7f43; color:#fff; }
.badge-red,.offline-state-badge.is-offline { background:#d92730; color:#fff; }
.badge-orange { background:#b94d0d; color:#fff; }
.badge-blue { background:#087f9f; color:#fff; }
.badge-gold,.offline-state-badge { background:#f4b900; color:#302000; }
.badge-gray { background:#5f5b55; color:#fff; }

.card,.order-card,.car-order-card,.product-card {
  background:#fff8e9;
  border:0;
  box-shadow:0 4px 0 rgba(89,53,20,.14),0 9px 18px rgba(89,53,20,.08);
}
.card-header { background:#f4b900; color:#302000; border-bottom:0; }
.modal { border:0; border-radius:8px; background:#fff8e9; }
.modal-header { background:#d92730; color:#fff; border:0; }
.modal-header h3 { color:#fff; }
.modal-footer { background:#f4dfb8; border:0; }
.modal-close { color:#fff; }
.modal-close:hover { background:#b81924; color:#fff; }
.form-control { border-radius:5px; background:#fffdf7; border:2px solid #bd9b6a; }
.form-control:focus { border-color:#087f9f; box-shadow:0 0 0 3px rgba(8,127,159,.18); }

/* Table status is encoded by the whole tile, not a thin outline. */
.table-card {
  border:0 !important;
  border-radius:6px !important;
  box-shadow:0 5px 0 rgba(49,30,12,.2),0 10px 18px rgba(49,30,12,.12) !important;
}
.table-card::before { display:none; }
.table-card.livre { background:#0b7f43 !important; color:#fff !important; }
.table-card.ocupada { background:#d92730 !important; color:#fff !important; }
.table-card.conta { background:#f4b900 !important; color:#332300 !important; }
.table-card.reservada { background:#087f9f !important; color:#fff !important; }
.table-card .t-num { color:inherit !important; text-shadow:none; }
.table-card .t-name,.table-card .t-total,.table-card .table-assignee,
.table-card>div[style*="font-size:12px"] { color:inherit !important; }
.table-card .t-total { font-weight:900; }
.table-card .t-status .badge {
  padding:5px 9px;
  border-radius:3px;
  background:rgba(35,25,12,.2);
  color:inherit;
  border:1px solid rgba(255,255,255,.58);
  box-shadow:none;
}
.table-card.conta .t-status .badge { border-color:rgba(51,35,0,.42); }
.table-card .table-action-hint {
  border:1px solid rgba(255,255,255,.65);
  border-radius:3px;
  background:rgba(24,18,10,.17);
  color:inherit;
}
.table-card.assigned-elsewhere { filter:saturate(.72); }

.stats-grid .stat-card {
  border:0;
  border-radius:6px;
  min-height:118px;
  color:#fff;
  background:#d92730;
  box-shadow:0 5px 0 rgba(49,30,12,.2),0 10px 20px rgba(49,30,12,.12);
}
.stats-grid .stat-card.gold { background:#f4b900; color:#332300; }
.stats-grid .stat-card.blue { background:#087f9f; color:#fff; }
.stats-grid .stat-card.red { background:#d92730; color:#fff; }
.stats-grid .stat-card:first-child { background:#0b7f43; color:#fff; }
.stats-grid .stat-card .stat-label,
.stats-grid .stat-card .stat-value,
.stats-grid .stat-card.gold .stat-value,
.stats-grid .stat-card.blue .stat-value,
.stats-grid .stat-card.red .stat-value { color:inherit; }
.stat-card::after { display:none; }
.stat-card .stat-value { text-shadow:none; }

.service-channel { border:0; border-radius:6px; color:#fff; }
.service-channel.counter { background:#d92730; }
.service-channel.table { background:#0b7f43; }
.service-channel.car { background:#087f9f; }
.service-channel.delivery { background:#b94d0d; }
.service-channel.admin-only { background:#f4b900; color:#332300; }
.service-channel em { color:inherit; }
.operations-panel { background:#fff8e9; border-color:#d6b78d; }
.order-stage { border:0; border-radius:6px; color:#30251b; }
.order-stage.stage-analysis { background:#d92730; color:#fff; }
.order-stage.stage-production { background:#f4b900; color:#332300; }
.order-stage.stage-ready { background:#0b7f43; color:#fff; }
.order-stage .stage-caption,.order-stage .stage-header strong,
.order-stage .stage-index { color:inherit; }
.board-order { border:0; border-radius:4px; background:#fff8e9; color:#2b2118; }

.product-card .p-body { background:#087f9f; color:#fff; }
.product-card .p-name,.product-card .p-desc,.product-card .p-time { color:#fff; }
.product-card .p-price { color:#fff0a8; }
.car-order-card { background:#087f9f; color:#fff; }
.car-order-head h3,.car-order-head small,.car-order-body span,.car-order-notes { color:#fff; }
.car-order-body > div { background:#075b73; color:#fff; }
.car-order-icon { background:#f4b900; color:#332300; border-radius:4px; }
.order-card-header { background:#087f9f; color:#fff; border:0; }
.order-total { background:#f4b900; color:#332300; }
.order-item-entry { border:0; border-radius:6px; background:#f4b900; color:#332300; box-shadow:none; }
.order-item-entry-title { color:#6c1518; }
.order-entry-field label,.order-entry-help { color:#4c3215; }
.order-entry-notes textarea { border:2px solid #bd8300; }
.order-detail-modal .order-item-entry-grid {
  grid-template-columns: minmax(0,2fr) minmax(90px,.7fr) minmax(0,2fr);
}
.order-detail-modal .order-entry-field { min-width:0; }
.order-detail-modal .order-entry-field label { font-size:16px; line-height:1.3; }
.order-detail-modal .order-entry-field .form-control { font-size:16px; min-height:48px; width:100%; max-width:100%; }
.order-detail-modal .order-entry-add {
  grid-column:1/-1;
  width:100%;
  min-width:0;
  justify-content:center;
  white-space:normal;
  font-size:18px;
  line-height:1.25;
  padding:14px;
}
.order-detail-modal .order-entry-help { font-size:15px; line-height:1.5; }
.order-detail-modal .order-item-row { font-size:16px; gap:10px; }
.order-detail-modal .order-item-row > div { min-width:0; overflow-wrap:anywhere; }
.order-detail-modal .item-notes,.order-detail-modal .item-status { font-size:14px; line-height:1.4; }
.order-detail-modal .order-total { font-size:18px; }
@media(max-width:600px) {
  .order-detail-modal .modal-body { padding:16px; }
  .order-detail-modal .order-item-entry { padding:14px; }
  .order-detail-modal .order-item-entry-title { font-size:24px; line-height:1.1; }
  .order-detail-modal .order-item-entry-grid { grid-template-columns:minmax(0,1fr) 95px; }
  .order-detail-modal .order-entry-notes { grid-column:1/-1; }
  .order-detail-modal .order-detail-actions .btn { width:100%; justify-content:center; min-height:48px; font-size:16px; white-space:normal; }
}
@media(max-width:420px) {
  .order-detail-modal .order-item-entry-grid { grid-template-columns:minmax(0,1fr); }
}
.kds-header,.customer-header { background:#d92730; }
.kds-card { border:0; border-radius:6px; }
.kds-card-header.pendente { background:#087f9f; color:#fff; }
.kds-card-header.cozinha { background:#f4b900; color:#332300; }
.kds-card-header.pronta { background:#0b7f43; color:#fff; }

@media(max-width:768px) {
  .stats-grid .stat-card { min-height:105px; }
}
@media(max-width:400px) {
  .table-card { min-width:0; }
}
