/* Identidade Sandrão: preto, branco e amarelo. Aplicada após a base do sistema. */
:root{
  --primary:#f2c230;--accent:#f6cd4b;--bg:#090a0c;--surface:#131518;
  --surface-2:#1b1e22;--text:#faf9f4;--muted:#b9bdc2;
  --line:rgba(255,255,255,.13);--shadow:0 18px 52px rgba(0,0,0,.4);
  color-scheme:dark;
}
:root[data-theme="light"]{--bg:#f7f5ee;--surface:#fffefa;--surface-2:#f1eee5;--text:#202124;--muted:#555a5b;--line:rgba(35,32,24,.17);--shadow:0 18px 45px rgba(28,25,18,.09);color-scheme:light}
body{
  color:var(--text);
  background:radial-gradient(ellipse at 80% -10%,rgba(242,194,48,.08),transparent 32%),
             radial-gradient(ellipse at 8% 90%,rgba(255,255,255,.025),transparent 30%),var(--bg);
}
.topbar,.admin-header{background:rgba(9,10,12,.91);border-color:var(--line)}
.sidebar{background:#0d0f12}
.card,.panel,.cart-panel,.sidebar,.modal-card{background-color:var(--surface);border-color:var(--line)}
.card{background-image:linear-gradient(150deg,rgba(255,255,255,.028),transparent 55%)}
.btn:not(.secondary):not(.ghost):not(.danger):not(.success){
  color:#171407;background:linear-gradient(135deg,var(--accent),var(--primary));
  box-shadow:0 9px 26px rgba(242,194,48,.15);
}
.btn:not(.secondary):not(.ghost):not(.danger):not(.success):hover{filter:brightness(1.08)}
.chip.active,.add-round{background:var(--primary);color:#171407}
.eyebrow,.sandrao-stamp,.table-payment-hint{color:#f6cd4b}
.brand-copy strong,.menu-head h1,.admin-title h1{color:#faf9f4}
.hero-meta .badge,.badge,.source-chip{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.15);color:#e6e5dd}
.badge.success{color:#e9d794;background:rgba(242,194,48,.1);border-color:rgba(242,194,48,.28)}
.status-dot{background:var(--primary);box-shadow:0 0 0 4px rgba(242,194,48,.12)}
.nav-btn.active,.nav-btn:hover{background:rgba(242,194,48,.13);color:#fff}
.back-control,.payment-icon{color:#f5cb45;border-color:rgba(242,194,48,.3);background:rgba(242,194,48,.08)}
.menu-context{background:linear-gradient(115deg,#222018,#111316);border-color:rgba(242,194,48,.28)}
.order-status-pill,.bill-summary,.filter-banner{background:rgba(242,194,48,.12);color:#f5d980}
.customer-order-card,.product-card{border-color:rgba(255,255,255,.14);background-color:#16181b}
.table-card.busy{background:linear-gradient(135deg,rgba(242,194,48,.14),#17191c);border-color:rgba(242,194,48,.58)}
.product-card:hover,.type-card:hover{border-color:rgba(242,194,48,.55)}
.product-bottom .price,.source-chip{color:#f6ce52}
.login-float{border-color:rgba(242,194,48,.4);background:#14161a}
.site-home .hero-card{
  background:radial-gradient(circle at 76% 35%,rgba(242,194,48,.085),transparent 36%),
             linear-gradient(135deg,#1a1c1f 0%,#0d0e11 58%,#151719 100%);
  border-color:rgba(242,194,48,.23);box-shadow:0 22px 65px rgba(0,0,0,.38);
}
.site-home .hero .eyebrow{color:#f8d96b}
.site-home .hero h1{color:#fffdf6}
.site-home .hero p{color:#cbd0d1}
.site-home .hero .sandrao-stamp{color:#f6cf54}
.site-home .hero-actions .btn.ghost{background:rgba(255,255,255,.035);border-color:rgba(242,194,48,.5);color:#fff8de}
.site-home .hero-aside{border-color:rgba(242,194,48,.21);background:linear-gradient(150deg,rgba(255,255,255,.025),rgba(242,194,48,.045))}
.site-home .hero-showcase{
  background:radial-gradient(circle at 50% 48%,rgba(242,194,48,.13),transparent 45%),
             repeating-linear-gradient(140deg,transparent 0 35px,rgba(255,255,255,.025) 35px 36px),#111316;
  border-color:rgba(242,194,48,.43);
}
.site-home .hero-showcase:before,.site-home .hero-showcase:after{border-color:rgba(242,194,48,.24)}
.site-home .showcase-label{color:#f2cd54}
.site-home .showcase-caption{color:#e5e5df}
.site-home .mode-summary .badge{background:rgba(242,194,48,.09);border-color:rgba(242,194,48,.26);color:#f6e7b5}
.site-home .type-card{
  background:linear-gradient(145deg,#1b1d20,#121417 78%);
  border-color:rgba(255,255,255,.17);transition:transform .38s cubic-bezier(.2,.7,.2,1),border-color .38s,box-shadow .38s;
}
.site-home .type-card:before{background:linear-gradient(90deg,transparent,#f2c230,transparent)}
.site-home .type-card:hover{transform:translateY(-4px);border-color:rgba(242,194,48,.6);box-shadow:0 16px 36px rgba(0,0,0,.32)}
.site-home .type-icon{background:rgba(242,194,48,.12);border-color:rgba(242,194,48,.4);color:#f8d657}
.site-home .type-card p{color:#c5c9c9}
.site-home .type-card .badge{background:rgba(242,194,48,.1);border-color:rgba(242,194,48,.2);color:#f6d975}
.site-home .sandrao-footer nav a,.site-home .sandrao-footer nav button{color:#f3d368}
.site-home .sandrao-footer nav a:hover,.site-home .sandrao-footer nav button:hover{color:#fff}
.site-home .hero-actions .btn:focus-visible,.chip:focus-visible,.btn:focus-visible,.type-card:focus-visible{outline:2px solid #ffe075;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){
  .site-home .hero-card:before{content:"";position:absolute;top:0;left:-35%;height:2px;width:35%;z-index:3;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,221,98,.65),transparent);animation:sandrao-lightline 9s ease-in-out infinite}
  .site-home .hero-showcase:after{animation:sandrao-orbit 11s ease-in-out infinite}
  .site-home .showcase-logo{animation:sandrao-breathe 7.5s ease-in-out infinite}
  .site-home .type-icon{transition:transform .38s ease,background .38s ease}
  .site-home .type-card:hover .type-icon{transform:translateY(-2px) rotate(-4deg);background:rgba(242,194,48,.2)}
  .site-home .hero-actions .btn{transition:transform .32s ease,filter .32s ease,box-shadow .32s ease}
  .site-home .hero-actions .btn:hover{transform:translateY(-2px)}
}
@keyframes sandrao-lightline{0%,12%{left:-35%;opacity:0}20%{opacity:.7}52%{left:100%;opacity:.5}58%,100%{left:100%;opacity:0}}
@keyframes sandrao-orbit{0%,100%{transform:translate(0,0);opacity:.48}50%{transform:translate(-12px,10px);opacity:.82}}
@keyframes sandrao-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:980px){.site-home .hero-aside{border-top-color:rgba(242,194,48,.23)}}
@media(prefers-reduced-motion:reduce){
  .site-home .hero-card:before{animation:none;display:none}
  .site-home .hero-showcase:after,.site-home .showcase-logo,.site-home .hero-content{animation:none}
  .site-home .type-card,.site-home .type-icon,.site-home .hero-actions .btn{transition:none}
  .site-home .type-card:hover,.site-home .type-card:hover .type-icon,.site-home .hero-actions .btn:hover{transform:none}
}

:root.table-browse-only .cart-panel,:root.table-browse-only #mobileCart,:root.table-browse-only #ordersTracker,:root.table-browse-only .menu-context button,:root.table-browse-only .menu-extras{display:none!important}
:root.table-browse-only .menu-layout{grid-template-columns:minmax(0,1fr)!important}
:root.table-browse-only .product-card{cursor:pointer}
:root.table-browse-only .menu-context{padding:20px 24px}
:root[data-theme="light"]{--bg:#f5f3eb;--surface:#fff;--surface-2:#f7f4ec;--text:#20201e;--muted:#62625e;--line:rgba(20,20,20,.16);color-scheme:light}
:root[data-theme="light"] body{background:var(--bg);color:var(--text)}
:root[data-theme="light"] .card,:root[data-theme="light"] .panel,:root[data-theme="light"] .cart-panel{background:#fff;color:var(--text)}
/* Cores editadas no painel passam a compor os elementos visíveis. */
:root .eyebrow,:root .sandrao-stamp,:root .table-payment-hint,:root .site-home .showcase-label,:root .product-bottom .price{color:var(--accent)}
:root .site-home .type-card:hover,:root .site-home .hero-showcase,:root .table-card.busy{border-color:color-mix(in srgb,var(--primary) 55%,transparent)}
:root .site-home .type-card:before{background:linear-gradient(90deg,transparent,var(--primary),transparent)}
:root .site-home .type-icon,:root .site-home .type-card .badge,:root .nav-btn.active,:root .nav-btn:hover{background:color-mix(in srgb,var(--primary) 14%,transparent)}
:root .site-home .type-icon{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 45%,transparent)}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .topbar,:root[data-theme="light"] .admin-header{background:#252525;color:#fff}
:root[data-theme="light"] .menu-context,:root[data-theme="light"] .bill-summary,:root[data-theme="light"] .filter-banner{background:#fff;color:#292722}
:root[data-theme="light"] .menu-head h1,:root[data-theme="light"] .admin-title h1,:root[data-theme="light"] .brand-copy strong{color:var(--text)}
:root[data-theme="light"] .topbar .brand-copy strong,:root[data-theme="light"] .admin-header .admin-title h1{color:#fff}
:root[data-theme="light"] body{background:var(--bg);color:var(--text)}
:root[data-theme="light"] .card,:root[data-theme="light"] .panel,:root[data-theme="light"] .modal-card,:root[data-theme="light"] .product-card,:root[data-theme="light"] .customer-order-card{background-color:var(--surface);color:var(--text);border-color:var(--line)}
:root[data-theme="light"] .product-card,:root[data-theme="light"] .table-order-item,:root[data-theme="light"] .store-card{background-color:var(--surface-2);color:var(--text)}
:root[data-theme="light"] .menu-context span:last-child,:root[data-theme="light"] .product-desc,:root[data-theme="light"] .order-meta{color:var(--muted)}
:root[data-theme="light"] .topbar .brand-copy strong{color:#fff}

/* Acesso da equipe: duas entradas claras no mesmo formulário. */
.team-role-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0 10px}
.team-role{display:grid;gap:5px;min-width:0;text-align:left;padding:15px;border-radius:13px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);transition:border-color .2s,background .2s}
.team-role strong{font-size:.98rem}.team-role small{font-size:.76rem;color:var(--muted);line-height:1.35}
.team-role.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 13%,var(--surface))}
.team-role.active strong{color:var(--accent)}
.team-role:focus-visible,.table-switch-panel select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.operation-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.live-table-count{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));white-space:nowrap}

/* Cardápio da mesa: consulta sem carrinho, com a mesa à vista. */
.table-seat-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:13px;margin-top:15px;padding:16px 20px;border:1px solid color-mix(in srgb,var(--primary) 40%,var(--line));border-radius:16px;background:linear-gradient(115deg,color-mix(in srgb,var(--primary) 13%,var(--surface)),var(--surface));box-shadow:0 12px 30px rgba(0,0,0,.14)}
.table-seat-toolbar[hidden],.table-seat-toolbar [hidden]{display:none!important}
.table-seat-toolbar>div:first-child{display:grid;gap:4px}
.table-seat-overline{font-size:.69rem;font-weight:900;letter-spacing:.13em;color:var(--accent)}
.table-seat-toolbar strong{font-size:1.3rem;line-height:1.1}
.table-seat-toolbar #tableSeatMessage{font-size:.84rem;color:var(--muted);line-height:1.45}
.table-seat-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}
.table-seat-status{display:inline-flex;align-items:center;align-self:center;gap:8px;padding:7px 11px;border-radius:999px;background:color-mix(in srgb,var(--primary) 16%,var(--surface));color:var(--text);font-size:.78rem;font-weight:800;white-space:nowrap}
.table-seat-status:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--primary)}
.table-switch-panel{grid-column:1/-1;display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding-top:13px;border-top:1px solid var(--line)}
.table-switch-panel label{width:100%;font-size:.78rem;font-weight:800}
.table-switch-panel select{min-width:150px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface-2);color:var(--text)}
:root.table-browse-only .menu-layout{padding-top:28px}
.table-orders-panel{margin-top:16px;padding:19px 21px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.table-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.table-orders-heading h2{font-size:clamp(1.35rem,3vw,1.75rem);margin:4px 0}
.table-orders-heading p{color:var(--muted);font-size:.84rem;margin:0}
.table-bill{display:grid;text-align:right;gap:4px;white-space:nowrap}.table-bill span{color:var(--muted);font-size:.75rem}.table-bill strong{font-size:1.22rem;color:var(--accent)}
.table-orders-list{display:grid;gap:9px;margin-top:14px}.table-orders-list>p{margin:2px 0;font-size:.88rem}
.table-order-item{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.table-order-item>div{display:grid;gap:6px}.table-order-item>div:last-child{text-align:right}.table-order-item span:not(.order-status-pill){color:var(--muted);font-size:.8rem;line-height:1.45}
.category-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:1px 0 15px}
.category-heading h2{font-size:clamp(1.45rem,3vw,2rem);margin:0}.category-heading span{color:var(--muted);font-size:.8rem}
:root.table-browse-only .menu-head{margin-bottom:16px}
:root.table-browse-only .menu-head h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.02}
:root.table-browse-only .menu-context{margin-top:18px}
:root.table-browse-only .category-scroll{position:sticky;top:70px;z-index:10;padding:12px 0 16px;background:var(--bg)}
:root.table-browse-only .chip{border-color:color-mix(in srgb,var(--primary) 20%,var(--line));color:var(--text)}
:root.table-browse-only .chip.active{color:#171407;background:var(--primary);border-color:var(--primary)}
:root.table-browse-only .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
:root.table-browse-only .product-card{min-height:180px;border:1px solid var(--line);background:var(--surface);cursor:pointer}
:root.table-browse-only .product-card:hover{border-color:color-mix(in srgb,var(--primary) 65%,var(--line))}
:root.table-browse-only .product-card img{min-height:180px;object-fit:cover;background:var(--surface-2)}
:root.table-browse-only .product-body{gap:5px;padding:18px}
:root.table-browse-only .product-title{font-size:1.13rem;line-height:1.23}
:root.table-browse-only .product-desc{font-size:.84rem;line-height:1.45;-webkit-line-clamp:3}
:root.table-browse-only .product-bottom{padding-top:12px;margin-top:auto;border-top:1px solid var(--line)}
:root.table-browse-only .product-bottom .price{font-size:1.12rem;color:var(--accent)}
:root.table-browse-only .product-card .add-round,:root.table-browse-only #pmAddButton,:root.table-browse-only #pmNoteGroup,:root.table-browse-only #pmQuantity{display:none!important}
:root.table-seat-pending .product-grid,:root.table-seat-pending .category-scroll{visibility:hidden}
@media(max-width:900px){:root.table-browse-only .product-grid{grid-template-columns:1fr 1fr}:root.table-browse-only .product-card{grid-template-columns:105px 1fr}:root.table-browse-only .product-card img{min-height:170px}}
@media(max-width:670px){.operation-actions{width:100%}.table-seat-toolbar{grid-template-columns:1fr;padding:17px}.table-seat-actions{justify-content:start}.table-seat-actions .btn{width:auto}.table-orders-panel{padding:16px}.table-orders-heading{align-items:flex-start}.table-order-item{gap:10px}:root.table-browse-only .menu-layout{padding-top:20px}:root.table-browse-only .product-grid{grid-template-columns:1fr}:root.table-browse-only .product-card{grid-template-columns:116px minmax(0,1fr);min-height:156px}:root.table-browse-only .product-card img{min-height:156px}:root.table-browse-only .product-body{padding:13px}:root.table-browse-only .product-title{font-size:1.02rem}:root.table-browse-only .product-desc{font-size:.79rem}:root.table-browse-only .category-scroll{top:63px}}
@media(max-width:370px){.team-role-tabs{grid-template-columns:1fr}:root.table-browse-only .product-card{grid-template-columns:96px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.team-role{transition:none}}

[hidden]{display:none!important}

.table-availability{margin:12px 0 0;color:var(--accent);font-size:.8rem;line-height:1.5}
