:root { --touch:44px; }
[hidden] { display:none !important; }
.overlay-open { overflow:hidden; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
button:disabled { opacity:.55; cursor:not-allowed; }
.full { width:100%; }
.space-top { margin-top:16px; }
.muted, .local-footnote { color:var(--muted); font-size:12px; line-height:1.6; }
.connection-status { padding:10px 5vw; font-size:10px; line-height:1.5; background:#eef2f7; color:#475569; overflow-wrap:anywhere; }
.connection-dot { display:inline-block; width:7px; height:7px; margin-right:5px; background:var(--success); border-radius:50%; }
.connection-dot.offline { background:var(--orange); }
.notice { padding:14px 16px; border-radius:13px; background:#fff4dc; color:#80590c; font-size:12px; line-height:1.6; }
.client-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; font-size:12px; color:var(--muted); }
.client-tools .category-tabs { width:auto; }
.product-visual .food-emoji { font-size:68px; }
.product-visual .product-tag { transform:none; filter:none; font-size:10px; max-width:70%; }
.favorite-button { position:absolute; top:12px; right:12px; width:44px; height:44px; border:0; border-radius:50%; background:white; font-size:25px; color:var(--navy); cursor:pointer; }
.favorite-button.selected { color:var(--orange); }
.product-visual.combo { background:linear-gradient(135deg,#ffe5b8,#fff5e7); }
.product-visual.combo .food-emoji { font-size:54px; }
.empty-state { grid-column:1/-1; padding:32px 20px; text-align:center; background:white; border-radius:18px; color:var(--muted); font-size:13px; }
.custom-food { background:var(--cream); padding:18px; border-radius:18px; font-size:64px; text-align:center; }
.choice-group { min-width:0; margin:20px 0; padding:0; border:0; }
.choice-group legend { font-size:14px; font-weight:800; margin-bottom:8px; }
.check-row { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:14px; min-height:48px; padding:10px 0; border-bottom:1px solid #eceff3; font-size:13px; cursor:pointer; }
.check-row input { width:20px; height:20px; accent-color:var(--blue); flex-shrink:0; }
.check-row span { flex:1; }
.check-row small { display:block; color:var(--muted); margin-top:3px; }
.custom-total { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 0; }
.custom-total input { max-width:100px; min-height:44px; }
.custom-total strong { font-size:25px; }
.field input,.field select,.field textarea { min-width:0; min-height:44px; }
.field small { font-size:10px; color:var(--muted); line-height:1.5; }
.item-options { font-size:10px !important; line-height:1.5; margin-top:5px !important; overflow-wrap:anywhere; }
.qty-control button { min-width:36px; min-height:36px; }
.qty-control .edit-line { width:auto; padding:0 8px; color:var(--blue); font-weight:700; font-size:10px; }
.cart-items { min-height:0; }
.cart-footer { flex-shrink:0; }
.cart-drawer:not(.open) { visibility:hidden; }
.modal-backdrop:not(.open) { visibility:hidden; }
.modal > .modal-close { position:sticky; top:0; float:right; margin:-8px -2px 0 10px; z-index:1100; }
.modal h2 { overflow-wrap:anywhere; }
.cart-item { grid-template-columns:44px minmax(0,1fr) auto; }
.cart-thumb { width:44px; height:44px; }
.address-list { display:grid; gap:12px; }
.address-card { padding:16px; border:1px solid #dfe5eb; border-radius:15px; font-size:13px; overflow-wrap:anywhere; }
.address-card p { margin:7px 0; }
.address-card small { font-size:10px; color:var(--muted); display:block; }
.address-card > button { margin-top:10px; }
.address-card.selectable { display:flex; align-items:flex-start; gap:12px; cursor:pointer; }
.address-card.selectable > input { margin-top:3px; accent-color:var(--blue); flex-shrink:0; }
.address-card.selectable > span { flex:1; }
.text-button { border:0; background:none; color:var(--blue); font-size:11px; font-weight:700; padding:10px; cursor:pointer; }
.address-map { width:100%; height:270px; border-radius:15px; background:#eef2f6; z-index:0; }
.delivery-pin { font-size:32px; line-height:40px; background:transparent; border:0; }
.address-map > p { padding:24px; }
.point-status { color:var(--success) !important; }
.tracking-section { padding-top:0; }
.tracking-card { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px; border-radius:18px; background:white; border:1px solid var(--line); margin-bottom:12px; }
.tracking-card h3 { margin:8px 0; }
.tracking-card p { color:var(--muted); font-size:13px; margin:0; }
.eta-display { background:#edf4fc; border-radius:12px; padding:14px; color:var(--blue) !important; font-weight:800; }
.order-timeline { list-style:none; padding:0; margin:22px 0; }
.order-timeline li { display:flex; align-items:center; gap:12px; position:relative; padding:9px 0; color:#94a3b8; }
.order-timeline li > span { width:32px; height:32px; display:grid; place-items:center; background:#f0f2f5; border-radius:50%; font-size:12px; font-weight:800; flex-shrink:0; }
.order-timeline .done { color:var(--navy); }
.order-timeline .done > span { color:white; background:var(--success); }
.order-timeline small { display:block; font-size:10px; margin-top:4px; color:var(--muted); }
.order-item-list { margin:16px 0; }
.order-item-list > p { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; padding:12px 0; margin:0; border-bottom:1px solid #eef0f2; font-size:12px; }
.order-item-list small { width:100%; line-height:1.6; }
.contact-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.contact-actions a { text-decoration:none; font-size:11px; min-height:44px; }
.delivery-route h3 { font-size:16px; line-height:1.5; margin:10px 0; }
.delivery-route p { color:var(--muted); font-size:12px; line-height:1.6; }
.ledger-row { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:18px 0; border-bottom:1px solid #edf0f4; font-size:13px; }
.ledger-row small { display:block; color:var(--muted); margin-top:5px; font-size:10px; }
.ledger-row > strong { color:var(--success); }
.incident-panel { border:1px solid #f2cf89; margin-bottom:20px; }
.incident-panel .address-card { margin-top:10px; }
.owner-banner { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 20px; margin-bottom:20px; border-radius:14px; background:#eaf1fa; color:var(--navy); font-size:13px; }
.owner-banner.attention { background:#fff1d9; color:#80590c; }
.owner-banner span { font-size:11px; line-height:1.5; }
.owner-line { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-bottom:1px solid #edf0f4; font-size:12px; }
.owner-line strong { text-align:right; flex-shrink:0; }
.owner-line small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.owner-lines { margin-top:18px; }
.owner-filters { display:flex; gap:8px; overflow-x:auto; margin-bottom:20px; padding-bottom:8px; }
.owner-filters button { flex:none; }
.owner-filters .active { background:var(--navy); color:white; }
.product-admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:24px 0 8px; }
.product-admin-toolbar h2 { margin:6px 0 0; font-size:26px; letter-spacing:-.8px; }
.product-category-stack { display:grid; gap:18px; }
.product-category { margin-top:0; padding:0; overflow:hidden; border:1px solid #e5eaf0; box-shadow:0 5px 18px rgba(6,30,58,.045); }
.product-category-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid #e9edf2; background:linear-gradient(100deg,#fff,#f8fafc); }
.product-category-title { display:flex; align-items:center; gap:14px; min-width:0; }
.product-category-title h2 { margin:0 0 4px; font-size:18px; letter-spacing:-.35px; }
.product-category-title p { margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.product-category-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:12px; color:var(--navy); background:#eef3f8; }
.product-category-icon .ui-icon { width:23px; height:23px; }
.product-category-count { flex:none; padding:7px 10px; border-radius:999px; background:#edf2f7; color:var(--blue); font-size:10px; font-weight:800; }
.product-category .table-wrap { padding:0 14px 8px; }
.product-category .data-table tr:last-child td { border-bottom:0; }
.empty-category { margin:0; padding:24px 22px; color:var(--muted); font-size:12px; }
.kitchen-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:start; }
.kitchen-column { min-width:0; padding:18px; }
.kitchen-column h2 { display:flex; justify-content:space-between; gap:10px; font-size:16px; }
.kitchen-card { padding:15px; border:1px solid #e6ebf0; border-radius:14px; margin:12px 0; background:white; min-width:0; }
.kitchen-card.overdue { border-color:#e9a17b; background:#fff8f3; }
.kitchen-card p { font-size:12px; line-height:1.5; margin:12px 0; }
.kitchen-card > small { color:var(--muted); font-size:10px; }
.owner-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.owner-actions button { min-height:40px; font-size:10px; }
.audit-row { display:flex; align-items:flex-start; gap:14px; padding:15px 0; border-bottom:1px solid #edf0f4; font-size:12px; }
.audit-row b { display:block; overflow-wrap:anywhere; }
.audit-row small { display:block; color:var(--muted); margin-top:5px; }
.dashboard-view.active { min-height:calc(100dvh - 120px); }
.sidebar { top:88px; }
.section { scroll-margin-top:85px; }
@media(max-width:1150px){.kitchen-board { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:720px){
  .owner-banner { align-items:flex-start; flex-direction:column; }
  .owner-line { align-items:flex-start; }
  .owner-line strong { max-width:48%; overflow-wrap:anywhere; }
  .kitchen-board { grid-template-columns:1fr; }
  .owner-actions button { flex:1; }
  .sidebar .side-link { flex-basis:76px; min-width:76px; }
  .sidebar .side-link span { flex:none; font-size:9px; line-height:1.3; max-width:72px; }
  .client-tools { align-items:flex-start; flex-direction:column; gap:12px; }
  .client-tools .category-tabs { width:100%; }
  .connection-status { padding:9px 14px; font-size:9px; }
  .sidebar { top:auto; }
  .address-card.selectable { flex-wrap:wrap; }
  .address-map { height:245px; }
  .field input,.field select,.field textarea { font-size:16px; }
  .custom-total strong { font-size:22px; }
  .tracking-card { align-items:flex-start; flex-direction:column; }
  .tracking-card button { width:100%; }
  .contact-actions { display:grid; grid-template-columns:1fr; }
  .delivery-actions button { width:100%; }
  .delivery-summary { grid-template-columns:1fr 1fr; gap:16px; }
  .delivery-summary > span:first-child { grid-column:1/-1; }
  .ledger-row > .status-chip { flex-basis:100%; white-space:normal; }
  .section { scroll-margin-top:70px; }
  .cart-drawer { max-height:100dvh; }
  .cart-footer .primary { font-size:13px; }
  .cart-item { grid-template-columns:minmax(0,1fr) auto; }
  .cart-thumb { display:none; }
}

/* Sistema visual de ícones — consistente, sóbrio e independente do dispositivo. */
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.ui-icon {
  width:20px;
  height:20px;
  display:inline-block;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
}
.header-location,
.floating-card b,
.category-tabs button,
.admin-access,
.primary,
.secondary,
.address-point,
.table-product,
.owner-banner b { display:inline-flex; align-items:center; gap:8px; }
.header-location .ui-icon { width:17px; height:17px; color:var(--gold); }
.cart-button,
.logout-button { display:grid; place-items:center; }
.cart-button .ui-icon { width:21px; height:21px; color:var(--navy); }
.logout-button .ui-icon { width:20px; height:20px; }
.admin-access .ui-icon { width:18px; height:18px; color:var(--gold); }
.floating-card b .ui-icon { width:15px; height:15px; }
.benefit-icon .ui-icon { width:35px; height:35px; color:var(--gold); }
.category-tabs .ui-icon { width:16px; height:16px; }
.primary .ui-icon,
.secondary .ui-icon { width:17px; height:17px; }

.sidebar { gap:8px; }
.sidebar .side-profile { flex:0 0 auto; background:var(--navy); }
.sidebar .side-brand { height:62px; display:flex; align-items:center; padding:0 8px 16px; overflow:visible; }
.sidebar .brand-mark { width:46px; height:46px; flex:0 0 46px; border-radius:13px; background-image:url("assets/emblema-claro.png"); background-size:cover; box-shadow:0 6px 18px rgba(0,0,0,.16); }
.side-link {
  position:relative;
  min-height:50px;
  padding:8px 10px;
  gap:11px;
  border:1px solid transparent;
  font-size:12px;
  font-weight:650;
  letter-spacing:-.1px;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.side-link > span:not(.nav-icon) { flex:1; }
.nav-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px !important;
  border-radius:10px;
  color:#aebdcd;
  background:rgba(255,255,255,.055);
  transition:background-color .18s ease,color .18s ease;
}
.nav-icon .ui-icon { width:18px; height:18px; }
.side-link:hover { border-color:rgba(255,255,255,.08); }
.side-link.active {
  color:#fff;
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.08);
  box-shadow:inset 3px 0 0 var(--gold);
}
.side-link.active .nav-icon { color:var(--navy); background:var(--gold); }
.side-link i { margin-left:auto; }

@media (min-width:721px) {
  .sidebar {
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.2) transparent;
  }
  .sidebar::-webkit-scrollbar { width:4px; }
  .sidebar::-webkit-scrollbar-thumb { border-radius:999px; background:rgba(255,255,255,.2); }
}

@media (min-width:721px) and (max-height:820px) {
  .sidebar { padding-top:14px; padding-bottom:14px; gap:4px; }
  .sidebar .side-brand { height:50px; padding-bottom:8px; margin-bottom:4px; }
  .sidebar .brand-mark { width:40px; height:40px; flex-basis:40px; }
  .sidebar .side-link { min-height:42px; padding-top:4px; padding-bottom:4px; }
  .sidebar .nav-icon { width:32px; height:32px; flex-basis:32px !important; }
  .sidebar .side-profile { display:none; }
}

@media (min-width:721px) and (max-height:720px) {
  .sidebar { gap:2px; padding-top:8px; padding-bottom:8px; }
  .sidebar .side-brand { display:none; }
  .sidebar .side-link { min-height:38px; padding-top:3px; padding-bottom:3px; }
  .sidebar .nav-icon { width:30px; height:30px; flex-basis:30px !important; }
  .sidebar .nav-icon .ui-icon { width:16px; height:16px; }
  .sidebar .side-profile { display:none; }
}

.product-visual { isolation:isolate; }
.product-visual::before {
  content:"";
  position:absolute;
  width:138px;
  height:138px;
  border-radius:50%;
  background:rgba(255,255,255,.42);
  box-shadow:inset 0 0 0 1px rgba(6,30,58,.04);
}
.product-visual .product-symbol {
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:1;
  color:var(--navy);
  transform:none;
  filter:none;
  font-size:inherit;
}
.product-symbol .product-icon { width:70px; height:70px; stroke-width:1.35; }
.product-visual.bebida .product-symbol { color:var(--blue); }
.product-visual.adicional .product-symbol { color:var(--orange); }
.product-visual.combo .product-symbol { color:#9f6f00; }
.favorite-button { display:grid; place-items:center; z-index:2; border:1px solid rgba(6,30,58,.08); box-shadow:0 6px 18px rgba(6,30,58,.08); }
.favorite-button .ui-icon { width:20px; height:20px; }
.favorite-button.selected .ui-icon { fill:var(--orange); stroke:var(--orange); }
.add-button { display:grid; place-items:center; transition:background-color .18s ease,transform .18s ease; }
.add-button:hover { background:var(--blue); transform:translateY(-1px); }
.add-button .ui-icon { width:19px; height:19px; }
.custom-food { display:grid; place-items:center; color:var(--navy); }
.custom-food .ui-icon { width:66px; height:66px; stroke-width:1.4; }
.cart-thumb { color:var(--navy); }
.cart-thumb .ui-icon { width:27px; height:27px; }
.cart-empty > span { width:64px; height:64px; margin:0 auto; display:grid; place-items:center; border-radius:20px; background:#f4f6f8; color:var(--navy); }
.cart-empty > span .ui-icon { width:29px; height:29px; }
.list-icon { color:var(--navy); }
.list-icon .ui-icon { width:19px; height:19px; }
.table-product .product-icon { width:20px; height:20px; color:var(--blue); }
.address-point .ui-icon { width:14px; height:14px; color:var(--success); }
.product-icon-preview { align-items:flex-start; justify-content:center; padding:8px 0; color:var(--navy); }
.product-icon-preview > span { font-size:9px; font-weight:800; color:var(--muted); }
.product-icon-preview .ui-icon { width:34px; height:34px; }
.delivery-pin { background:transparent; border:0; }
.delivery-pin span { width:42px; height:42px; display:grid; place-items:center; border-radius:14px 14px 14px 4px; transform:rotate(-45deg); background:var(--navy); color:var(--gold); box-shadow:0 8px 20px rgba(6,30,58,.24); }
.delivery-pin svg { width:23px; height:23px; transform:rotate(45deg); fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

@media (max-width:1050px) and (min-width:721px) {
  .dashboard-view.active { grid-template-columns:92px minmax(0,1fr); }
  .sidebar { padding:20px 13px; }
  .sidebar .side-brand { display:none; }
  .sidebar .side-link { padding:8px; overflow:visible; }
  .sidebar .side-link .nav-icon { display:grid; flex-basis:40px !important; width:40px; height:40px; }
  .sidebar .side-link > span:not(.nav-icon) { display:none; }
}

@media(max-width:720px){
  .header-location { display:none; }
  .sidebar .side-brand { display:none; }
  .sidebar { justify-content:flex-start; gap:3px; border-top:1px solid rgba(255,255,255,.11); box-shadow:0 -10px 30px rgba(6,30,58,.18); }
  .sidebar .side-profile { display:none; }
  .sidebar .side-link {
    flex:0 0 74px;
    min-width:74px;
    min-height:62px;
    padding:5px 4px;
    gap:4px;
    flex-direction:column;
    border-radius:11px;
    box-shadow:none;
  }
  .sidebar .side-link .nav-icon { display:grid; }
  .sidebar .side-link.active { box-shadow:inset 0 3px 0 var(--gold); }
  .sidebar .nav-icon { width:31px; height:31px; flex:0 0 31px !important; border-radius:9px; }
  .sidebar .nav-icon .ui-icon { width:17px; height:17px; }
  .sidebar .side-link > span:not(.nav-icon) { display:block; flex:none; max-width:68px; font-size:8px; line-height:1.15; }
  .sidebar .side-link i { position:absolute; top:4px; right:6px; margin:0; }
  .product-symbol .product-icon { width:63px; height:63px; }
  .product-admin-toolbar { align-items:flex-start; flex-direction:column; }
  .product-admin-toolbar .primary { width:100%; justify-content:center; }
  .product-category-head { align-items:flex-start; padding:17px; }
  .product-category-title { align-items:flex-start; }
  .product-category-title p { max-width:190px; }
  .product-category .table-wrap { padding:0 8px 6px; }
}

/* Mantém todos os atalhos dentro da barra em monitores e janelas com pouca altura. */
@media (min-width:721px) and (max-height:820px) {
  .sidebar { padding-top:12px; padding-bottom:12px; gap:3px; }
  .sidebar .side-brand,
  .sidebar .side-profile { display:none; }
  .sidebar .side-link { min-height:40px; padding:2px 8px; }
  .sidebar .side-link .nav-icon { width:30px; height:30px; flex-basis:30px !important; }
  .sidebar .side-link .nav-icon .ui-icon { width:16px; height:16px; }
}

@media (min-width:721px) and (max-height:720px) {
  .sidebar { padding-top:8px; padding-bottom:8px; gap:2px; }
  .sidebar .side-link { min-height:36px; padding-top:1px; padding-bottom:1px; }
  .sidebar .side-link .nav-icon { width:28px; height:28px; flex-basis:28px !important; }
}
