[hidden]{display:none!important}
:root{--bg:#f3f4f2;--ink:#1b1e1c;--green:#111412;--line:#dde0dd;--paper:#fff;--accent:#d4a72c;--muted:#6f756f;--gold:#d4a72c;--danger:#b64e3d;--ok:#4d9e59}
*{box-sizing:border-box}html,body{margin:0;max-width:100%;overflow-x:hidden}body{font-family:Arial,sans-serif;background:var(--bg);color:var(--ink);min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}
.login-view{min-height:100dvh;display:grid;place-items:center;padding:20px}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:2px}.login-brand>strong{font-size:15px;line-height:1.15;max-width:230px}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 20px 60px #0002}.brand{display:grid;place-items:center;width:64px;height:64px;border-radius:15px;background:var(--green);color:#fff;font-weight:900;overflow:hidden;flex:none}.brand img{width:100%;height:100%;object-fit:contain;background:#fff;padding:3px}.login-card small,.page-head small{display:block;color:#65806f;font-weight:900;letter-spacing:.12em;margin-top:18px}.login-card h1{margin:6px 0}.login-card p{color:var(--muted)}.login-card input{width:100%;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:10px}.login-card button,#sendBtn{width:100%;margin-top:12px;padding:13px;border:0;border-radius:10px;background:var(--green);color:#fff;font-weight:900}.login-card span{display:block;min-height:18px;margin-top:10px;color:#a53b2e;font-size:12px}
header{position:sticky;top:0;z-index:12;height:68px;padding:0 18px;background:var(--green);color:#fff;display:flex;justify-content:space-between;align-items:center}.header-identity{display:flex;align-items:center;gap:10px;min-width:0}.header-logo{width:40px;height:40px;border-radius:10px;background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--green);font-weight:900;flex:none}.header-logo img{width:100%;height:100%;object-fit:contain;padding:2px;background:#fff}.header-identity>div{min-width:0}.header-identity strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}header small{display:block;opacity:.72}header button{border:1px solid #ffffff4d;background:transparent;color:#fff;border-radius:8px;padding:8px 10px}main{max-width:1180px;margin:auto;padding:22px}.page-head{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:16px}.page-head h1{margin:4px 0;font-size:34px}.page-head p{margin:0;color:var(--muted)}.page-head button,#refreshBtn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px}.tables{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.table{min-height:120px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.table.occupied{background:#fff0dc;border-color:#e4a34d}.table span,.table small{color:#737a73;font-size:11px;text-transform:uppercase}.table strong{font-size:32px}
.order-layout{display:grid;grid-template-columns:1.5fr .75fr;gap:14px}.cats{display:flex;gap:8px;overflow:auto;margin-bottom:12px;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cats button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px}.cats button.active{background:var(--green);color:#fff}.products{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.product{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}.product img{width:72px;height:72px;object-fit:cover;border-radius:9px;background:#eee}.product h3{margin:0 0 4px;font-size:14px}.product p{margin:0 0 8px;color:#747974;font-size:11px}.product footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.product footer button{border:0;background:var(--accent);border-radius:8px;padding:8px 10px;font-weight:900}.cart{position:sticky;top:84px;align-self:start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}.cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cart h2{margin:0}.cart-close{display:none;border:0;background:#eee;width:38px;height:38px;border-radius:50%;font-size:24px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.cart-line small{display:block;color:#777}.qty{display:flex;align-items:center;gap:7px}.qty button{width:32px;height:32px;border:1px solid var(--line);background:#fff;border-radius:7px}.cart textarea{width:100%;min-height:70px;margin-top:10px;padding:9px;border:1px solid var(--line);border-radius:8px}.cart-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.cart-total strong{font-size:22px}.mobile-cart-bar,.cart-backdrop{display:none}
.modal{position:fixed;inset:0;background:#0007;display:grid;place-items:center;padding:18px;z-index:30}.modal-card{position:relative;width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:18px}.close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;font-size:22px}.option-group{margin:14px 0}.option-group h4{margin:0 0 8px}.option-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;margin-top:7px}.option-row>span{min-width:0;line-height:1.25}.option-qty{display:flex;align-items:center;gap:10px;flex:none}.option-qty button{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:22px;line-height:1}.option-qty b{min-width:18px;text-align:center}.variant-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.variant-grid label{padding:9px;border:1px solid var(--line);border-radius:8px}.modal-add{width:100%;padding:13px;background:var(--green);color:#fff;border:0;border-radius:9px;font-weight:900;margin-top:12px}
@media(max-width:850px){
  body{padding-bottom:82px}.cart-open{overflow:hidden}.waiter-shell{width:100%}header{height:58px;padding:8px 12px}header small{font-size:11px}header strong{font-size:14px}header button{padding:8px 12px}main{padding:12px}.page-head{margin:0 0 10px;align-items:stretch;flex-direction:column;gap:8px}.page-head small{margin-top:4px;font-size:10px}.page-head h1{font-size:28px;line-height:1;margin:3px 0}.page-head p{font-size:13px}.page-head>button,#refreshBtn{width:100%;min-height:42px}.tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.table{min-height:96px;padding:12px}.table strong{font-size:28px}.order-layout{display:block}.order-layout>div{min-width:0}.cats{position:sticky;top:58px;z-index:10;margin:0 -12px 10px;padding:8px 12px;background:var(--bg);border-top:1px solid #e8e1d6;border-bottom:1px solid #e8e1d6}.cats button{padding:8px 12px;font-size:13px}.products{grid-template-columns:1fr;gap:8px}.product{grid-template-columns:64px minmax(0,1fr);gap:9px;padding:8px;border-radius:10px}.product img{width:64px;height:64px;border-radius:8px}.product h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product p{font-size:10px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:6px}.product footer strong{font-size:14px}.product footer button{padding:8px 12px;min-width:84px}.cart{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:50;width:100%;max-height:78dvh;border-radius:20px 20px 0 0;padding:14px 14px max(14px,env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .2s ease;overflow:auto;box-shadow:0 -20px 60px #0004}.cart.open{transform:translateY(0)}.cart-close{display:block}.cart-backdrop{position:fixed;inset:0;z-index:45;background:#0007}.cart-backdrop:not([hidden]){display:block}.mobile-cart-bar{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:40;height:58px;border:0;border-radius:14px;background:var(--green);color:#fff;box-shadow:0 10px 35px #0004;padding:0 14px;align-items:center;justify-content:space-between;gap:8px}.mobile-cart-bar:not([hidden]){display:flex}.mobile-cart-bar span{font-size:12px}.mobile-cart-bar span b{font-size:15px}.mobile-cart-bar strong{font-size:15px}.mobile-cart-bar em{font-style:normal;font-weight:900;font-size:13px}.modal{align-items:end;padding:0}.modal-card{width:100%;max-width:none;max-height:86dvh;border-radius:20px 20px 0 0;padding:18px 14px max(16px,env(safe-area-inset-bottom))}.variant-grid{grid-template-columns:1fr}.option-row{padding:9px}.option-qty button{width:42px;height:42px}.modal-add{position:sticky;bottom:0;min-height:50px}
}
@media(max-width:390px){.product{grid-template-columns:58px minmax(0,1fr)}.product img{width:58px;height:58px}.product footer button{min-width:76px;padding:7px 9px}.cats button{font-size:12px}}


/* ============================================================
   GARÇOM PRO — shell operacional
   ============================================================ */
body{padding-bottom:96px;background:var(--bg)}
.login-card{border-radius:22px;border-color:#e2e3df;box-shadow:0 22px 70px rgba(18,22,19,.12)}
.login-card button,#sendBtn,.modal-add{background:#111412;color:#fff}
.brand{background:#111412}
.waiter-header{height:70px;background:#101311;border-bottom:1px solid rgba(212,167,44,.28)}
.header-logo{color:#101311}
.header-identity small{font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.turno-chip{display:inline-block;margin-top:3px;font-size:9px;color:rgba(255,255,255,.56)}
.header-logout{display:flex;align-items:center;gap:7px}
.waiter-main{max-width:1240px;padding:24px 22px 36px}
.page-head small{color:#9a7416}.page-head h1{font-family:Georgia,'Times New Roman',serif;font-size:32px}
.page-head button,#refreshBtn,#refreshComandasBtn,#refreshTurnoBtn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.back-btn{align-self:flex-start}
.mini-summary{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.mini-summary span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;color:#656b66;font-size:10px;font-weight:800}
.mini-summary b{color:#1d211e}
.table{position:relative;min-height:132px;border-radius:16px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.table:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(22,28,23,.07)}
.table.occupied{background:#fffaf0;border-color:rgba(212,167,44,.55)}
.table .table-owner{display:block;margin-top:3px;color:#8a7440;font-size:10px;text-transform:none}
.table .table-pending{position:absolute;right:10px;top:10px;min-width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#b64e3d;color:#fff;font-size:10px;font-weight:900}
.table .table-ready{background:#4d9e59}
.cats button.active{background:#111412}
.product footer button{background:#d4a72c;color:#201a08}
.catalog-search-inline{height:42px;display:flex;align-items:center;gap:9px;margin:0 0 10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:0 12px}
.catalog-search-inline i{color:#8a8f8b;font-size:12px}
.catalog-search-inline input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}

/* navegação inferior */
.waiter-bottom-nav{
  position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);
  z-index:38;width:min(650px,calc(100% - 24px));height:68px;
  display:grid;grid-template-columns:repeat(4,1fr);
  background:#101311;border:1px solid rgba(212,167,44,.28);border-radius:18px;
  padding:5px;box-shadow:0 16px 44px rgba(0,0,0,.28)
}
.waiter-bottom-nav button{position:relative;border:0;background:transparent;color:rgba(255,255,255,.52);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:800}
.waiter-bottom-nav button i{font-size:16px}
.waiter-bottom-nav button.active{background:rgba(212,167,44,.13);color:#f0cf67}
.waiter-bottom-nav button b{position:absolute;top:5px;right:calc(50% - 22px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#b64e3d;color:#fff;font-size:9px;display:grid;place-items:center}

/* busca universal */
.universal-search-panel{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(190px,.6fr);gap:10px;margin-bottom:9px}
.universal-search-box{height:52px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 15px;box-shadow:0 5px 16px rgba(20,25,21,.035)}
.universal-search-box i{color:#9b7720}
.universal-search-box input{width:100%;border:0;outline:0;background:transparent;font-size:15px;color:var(--ink)}
.search-table-picker{display:flex;flex-direction:column;justify-content:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px 12px}
.search-table-picker span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#7d827e;font-weight:850}
.search-table-picker select{border:0;outline:0;background:transparent;font-weight:800;color:var(--ink)}
.search-hint{padding:10px 12px;margin-bottom:10px;border:1px dashed #d7d2c4;background:#faf8f2;border-radius:10px;color:#747974;font-size:11px}
.search-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.search-result-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
.search-result-card img{width:64px;height:64px;object-fit:cover;border-radius:10px;background:#eee}
.search-result-card h3{margin:0;font-size:14px}.search-result-card p{margin:3px 0 7px;color:#777d78;font-size:10.5px;line-height:1.35}
.search-match-tags{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 7px}
.search-match-tags span{padding:3px 6px;border-radius:999px;background:#f5efdb;color:#775b12;font-size:9px;font-weight:800}
.search-result-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.search-result-footer button{border:0;background:#d4a72c;color:#211b09;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:900}
.search-empty{grid-column:1/-1;padding:38px 18px;text-align:center;border:1px dashed var(--line);border-radius:14px;background:#fff;color:#7b807c}

/* comandas */
.comandas-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:11px}
.comanda-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;box-shadow:0 4px 16px rgba(20,25,21,.035)}
.comanda-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.comanda-card h3{margin:0;font-size:19px}.comanda-card .amount{font-family:Georgia,serif;font-size:19px;font-weight:700}
.comanda-card-meta{display:grid;gap:5px;margin:10px 0;color:#737974;font-size:11px}
.comanda-card-meta span{display:flex;align-items:center;gap:7px}
.comanda-card-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.comanda-card-status small{font-size:10px;color:#777}
.comanda-card button{border:0;border-radius:8px;padding:9px 11px;background:#111412;color:#fff;font-size:11px;font-weight:850}
.comanda-card.can-close button{background:#d4a72c;color:#211b09}
.comandas-empty{grid-column:1/-1;padding:42px 18px;text-align:center;background:#fff;border:1px dashed var(--line);border-radius:14px;color:#747974}

/* modal de comanda */
.comanda-modal-card{width:min(650px,100%)}
.comanda-modal-head{padding-right:42px}
.comanda-modal-head small{font-size:9px;color:#96731a;font-weight:900;letter-spacing:.1em}
.comanda-modal-head h2{margin:3px 0 2px;font-size:27px}.comanda-modal-head p{margin:0;color:#757a76;font-size:11px}
.comanda-total-strip{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0;padding:12px;border-radius:10px;background:#f6f3e9}
.comanda-total-strip strong{font-size:21px}
.comanda-rounds{display:grid;gap:9px}
.comanda-round{border:1px solid var(--line);border-radius:12px;padding:11px}
.comanda-round-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.comanda-round-head b{font-size:12px}.comanda-round-head small{display:block;color:#7d827e;font-size:9px;margin-top:2px}
.order-status-pill{padding:4px 7px;border-radius:999px;background:#eceeed;color:#676d68;font-size:9px;font-weight:900;text-transform:uppercase}
.order-status-pill.pronto{background:#e4f3e4;color:#367340}.order-status-pill.entregue_mesa,.order-status-pill.finalizado{background:#eef0e9;color:#59604f}
.order-status-pill.novo,.order-status-pill.em_preparo{background:#fff1d5;color:#8b6715}
.comanda-item{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #eef0ed;font-size:11px}
.comanda-item:first-of-type{border-top:0}.comanda-item small{display:block;color:#7d827e;margin-top:2px}
.comanda-ready-action{width:100%;margin-top:8px;border:0;border-radius:8px;padding:9px;background:#4d9e59;color:#fff;font-weight:850;font-size:11px}
.comanda-close-zone{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.comanda-close-btn{width:100%;border:0;border-radius:10px;padding:12px;background:#d4a72c;color:#221b08;font-weight:900}
.comanda-close-btn:disabled{background:#e4e5e2;color:#969a96;cursor:not-allowed}
.comanda-close-help{margin:7px 0 0;color:#777d78;font-size:10px;text-align:center}

/* meu turno */
.shift-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#111412;color:#fff;border-radius:17px;padding:16px 17px;margin-bottom:12px}
.shift-hero small{display:block;color:#d9bd63;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.shift-hero h2{margin:4px 0 0;font-family:Georgia,serif;font-size:25px}.shift-hero span{font-size:11px;color:rgba(255,255,255,.58)}
.shift-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}
.shift-metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px}
.shift-metric span{display:block;color:#7b817c;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.shift-metric strong{display:block;margin-top:4px;font-family:Georgia,serif;font-size:21px}
.shift-metric small{display:block;margin-top:3px;color:#929692;font-size:9px}
.shift-products{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}
.shift-products h3{margin:0 0 10px;font-size:14px}
.shift-product-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:8px 0;border-top:1px solid #eef0ed;font-size:11px}
.shift-product-row:first-of-type{border-top:0}.shift-product-row span{color:#7a807b}

/* toast */
.waiter-toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:80;max-width:min(420px,calc(100% - 28px));background:#111412;color:#fff;border:1px solid rgba(212,167,44,.32);border-radius:11px;padding:10px 13px;box-shadow:0 12px 35px #0004;font-size:11px;font-weight:750}

@media(max-width:850px){
  body{padding-bottom:90px}
  .waiter-main{padding:12px 12px 24px}
  .mobile-cart-bar{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 76px)}
  .waiter-bottom-nav{left:0;right:0;bottom:0;transform:none;width:100%;height:72px;border-radius:16px 16px 0 0;border-left:0;border-right:0;border-bottom:0;padding:4px 6px max(5px,env(safe-area-inset-bottom));}
  .waiter-toast{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 148px)}
  .universal-search-panel{grid-template-columns:1fr}
  .search-results,.comandas-list{grid-template-columns:1fr}
  .shift-metrics{grid-template-columns:1fr 1fr}
  .header-logout span{display:none}
  .header-logout{width:38px;height:38px;justify-content:center;padding:0}
  .tables{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
  .shift-metrics{grid-template-columns:1fr 1fr}
  .shift-metric strong{font-size:18px}
  .search-result-card{grid-template-columns:58px minmax(0,1fr)}
  .search-result-card img{width:58px;height:58px}
}


/* ============================================================
   MOBILE — modais acima da navegação e ações sempre visíveis
   ============================================================ */
.modal{z-index:100}

@media(max-width:850px){
  body.modal-open{overflow:hidden}

  body.modal-open .waiter-bottom-nav,
  body.modal-open .mobile-cart-bar{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }

  .waiter-bottom-nav,
  .mobile-cart-bar{
    transition:opacity .16s ease,visibility .16s ease;
  }

  .modal{
    z-index:100;
    align-items:end;
    padding:0;
  }

  .modal-card{
    width:100%;
    max-width:none;
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top)));
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border-radius:20px 20px 0 0;
    padding:18px 14px calc(20px + env(safe-area-inset-bottom));
    box-sizing:border-box;
  }

  .modal-card .close{
    z-index:8;
  }

  .modal-add{
    position:sticky;
    bottom:0;
    z-index:6;
    width:100%;
    min-height:54px;
    margin-top:14px;
    padding:13px 14px;
    white-space:normal;
    line-height:1.2;
    box-shadow:0 -10px 18px rgba(255,255,255,.96);
  }

  .comanda-close-zone{
    position:sticky;
    bottom:0;
    z-index:6;
    margin-top:16px;
    padding:14px 0 calc(4px + env(safe-area-inset-bottom));
    background:#fff;
    box-shadow:0 -12px 20px rgba(255,255,255,.96);
  }

  .comanda-close-btn{
    min-height:56px;
    padding:12px 14px;
    white-space:normal;
    line-height:1.2;
    font-size:14px;
  }

  .comanda-modal-card{
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top)));
  }
}


/* impressão de pré-conta pelo garçom */
.comanda-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 2px;border-bottom:1px solid #eceeea;font-size:11px}
.comanda-summary-line strong{font-size:12px}
.comanda-client-actions{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.comanda-print-btn{width:100%;min-height:48px;border:0;border-radius:10px;background:#111412;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px}
.comanda-client-actions p{margin:7px 4px 0;color:#777d78;font-size:9px;text-align:center;line-height:1.35}
@media(max-width:850px){
  .comanda-client-actions{position:sticky;bottom:0;z-index:6;background:#fff;padding:13px 0 calc(4px + env(safe-area-inset-bottom));box-shadow:0 -12px 20px rgba(255,255,255,.96)}
  .comanda-print-btn{min-height:54px;font-size:13px}
}


/* nome do cliente na mesa */
.table-client{
  display:block;
  margin-top:4px;
  color:#8a6410;
  font-size:10px;
  font-style:normal;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.client-name-btn{
  margin-top:8px;
  border:1px solid rgba(212,167,44,.42);
  background:#fffaf0;
  color:#6f5312;
  border-radius:999px;
  padding:7px 10px;
  font-size:10px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
}
.client-name-btn i{font-size:10px}
@media(max-width:850px){
  .client-name-btn{min-height:36px;font-size:11px}
}


/* edicao de itens da comanda */
.comanda-item-editable{align-items:flex-start}
.comanda-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.comanda-edit-item-btn{
  border:1px solid #d9dcd8;
  background:#fff;
  color:#454a46;
  border-radius:7px;
  padding:5px 8px;
  font-size:9px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:5px
}
.comanda-edit-item-btn:active{transform:translateY(1px)}
.edit-order-kicker{display:block;color:#96731a;font-size:9px;font-weight:900;letter-spacing:.1em;margin-bottom:4px}
.edit-order-qty{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbf9}
.edit-order-qty>span{font-weight:900;font-size:11px}
.edit-order-qty>div{display:flex;align-items:center;gap:10px}
.edit-order-qty button{width:34px;height:34px;border:1px solid #d8dbd7;background:#fff;border-radius:8px;font-size:18px;font-weight:900}
.edit-order-qty b{min-width:24px;text-align:center;font-size:15px}
.edit-order-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:16px}
.edit-order-actions .modal-add{position:static;margin:0;box-shadow:none}
.edit-order-remove{
  border:1px solid #e4c5c1;
  background:#fff5f3;
  color:#9a3d31;
  border-radius:10px;
  min-height:48px;
  padding:10px 12px;
  font-weight:900
}
@media(max-width:850px){
  .comanda-edit-item-btn{font-size:10px;padding:6px 9px}
  .edit-order-actions{
    position:sticky;
    bottom:0;
    z-index:7;
    background:#fff;
    padding:12px 0 calc(4px + env(safe-area-inset-bottom));
    margin-top:14px;
    box-shadow:0 -12px 20px rgba(255,255,255,.96)
  }
  .edit-order-save,.edit-order-remove{min-height:54px}
}


/* historico visual da comanda */
.comanda-audit{margin-top:14px;padding:12px;border:1px solid #eadfd8;border-radius:12px;background:#fffaf7}
.comanda-audit-title{display:flex;align-items:flex-start;gap:9px;margin-bottom:9px;color:#704b37}
.comanda-audit-title>i{margin-top:2px}
.comanda-audit-title b{display:block;font-size:11px}
.comanda-audit-title small{display:block;margin-top:2px;color:#8b7d75;font-size:9px;line-height:1.35}
.comanda-audit-list{display:grid;gap:8px}
.comanda-audit-entry{border:1px solid #e7ded8;border-radius:10px;padding:9px;background:#fff}
.comanda-audit-entry.removed{border-color:#efc9c3;background:#fff8f7}
.comanda-audit-entry.changed{border-color:#e7d59e;background:#fffdf5}
.comanda-audit-entry-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.comanda-audit-entry-head>span{font-size:8px;font-weight:1000;letter-spacing:.08em;border-radius:999px;padding:4px 7px;background:#ececec}
.comanda-audit-entry.removed .comanda-audit-entry-head>span{background:#ffe4e0;color:#9d3328}
.comanda-audit-entry.changed .comanda-audit-entry-head>span{background:#fff0bd;color:#7c5b00}
.comanda-audit-entry-head small{font-size:8px;color:#858585;text-align:right}
.comanda-audit-before{font-size:10px;color:#9a4a40}
.comanda-audit-change{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.comanda-audit-change>div{min-width:0}
.comanda-audit-change span{display:block;font-size:8px;color:#8b8b8b;text-transform:uppercase;font-weight:900;margin-bottom:2px}
.comanda-audit-change del,.comanda-audit-change b{display:block;font-size:10px;line-height:1.35}
.comanda-audit-change del{color:#a25a50}
.comanda-audit-change b{color:#384438}
.comanda-audit-change>i{font-size:10px;color:#a38a45}
@media(max-width:520px){
  .comanda-audit-change{grid-template-columns:1fr}
  .comanda-audit-change>i{transform:rotate(90deg);justify-self:center}
  .comanda-audit-entry-head{align-items:flex-start;flex-direction:column}
  .comanda-audit-entry-head small{text-align:left}
}


/* PWA — instalação do app do garçom */
.login-card .install-app-btn{
  width:100%;
  min-height:52px;
  margin:0 0 16px;
  border:1px solid #b78a1e!important;
  border-radius:12px;
  background:linear-gradient(135deg,#fff1a8 0%,#e6bd45 48%,#c99520 100%)!important;
  color:#17140b!important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 15px;
  font:900 12px inherit;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(117,83,8,.18),inset 0 1px 0 rgba(255,255,255,.7);
}
.login-card .install-app-btn[hidden]{display:none!important}
.login-card .install-app-btn:hover{
  border-color:#8d6712!important;
  background:linear-gradient(135deg,#fff5bf 0%,#edc956 48%,#d6a629 100%)!important;
  transform:translateY(-1px);
}
.login-card .install-app-btn:active{transform:translateY(0)}
.login-card .install-app-btn i{
  width:25px;
  height:25px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(23,20,11,.10);
  color:#17140b;
  font-size:12px;
}
.login-card .install-app-btn span{
  display:inline!important;
  min-height:0!important;
  margin:0!important;
  color:inherit!important;
  font-size:inherit!important;
}
@media(max-width:600px){
  .login-card .install-app-btn{min-height:54px;font-size:13px}
}
@media(display-mode:standalone){
  .login-card .install-app-btn{display:none!important}
  body{overscroll-behavior-y:none}
}
