/* =====================================================================
   Allook UI — implementação do catálogo visual (catalogo-ui-allook-oticas.html)
   Tokens: SYS-01/02/03, BRAND-03 · Componentes: BTN, TAB, MENU, USER, LIST, TABLE, CARD, FILTER, FORM, FEED, NAV, DIALOG
   Servido pela casca (Shell.php). Módulos usam só estas classes e as variáveis --allook-*.
   ===================================================================== */

:root{
  --allook-mint:#54C0A7; --allook-mint-dark:#27896F; --allook-mint-soft:#DDF5EF; --allook-mint-hover:#46AE96;
  --allook-charcoal:#343438; --allook-charcoal-2:#3F3F44; --allook-black:#1B1B1D;
  --allook-text:#1B1B1D; --allook-text-2:#61656B; --allook-text-3:#92969C;
  --allook-canvas:#F5F6F7; --allook-surface:#FFFFFF; --allook-surface-soft:#FAFBFB;
  --allook-border:#E1E4E6; --allook-border-strong:#C8CDD1;
  --allook-success:#27896F; --allook-success-bg:#DDF5EF;
  --allook-info:#27896F; --allook-info-bg:#DDF5EF;
  --allook-warning:#9A5A19; --allook-warning-bg:#FFF0DC;
  --allook-danger:#B94343; --allook-danger-bg:#F8E6E6;
  --allook-orange:#E45A1B; --allook-lime:#D9E70D; --allook-purple:#5B3399; --allook-cyan:#7DD1DC; /* só campanhas */
  --allook-radius-sm:8px; --allook-radius-md:12px; --allook-radius-lg:18px; --allook-radius-pill:999px;
  --allook-shadow-1:0 1px 2px rgba(36,39,45,.06),0 5px 14px rgba(36,39,45,.05);
  --allook-shadow-2:0 14px 36px rgba(36,39,45,.12);
  --allook-shadow-btn:0 5px 13px rgba(16,46,36,.16);
  --allook-font-ui:"Avenir Next",Montserrat,Poppins,Inter,"Segoe UI Variable","Segoe UI",sans-serif;
  --allook-font-mono:"Cascadia Code","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --allook-side-w:230px; --allook-top-h:58px;

  /* aliases legados dos módulos (mapeados para a paleta oficial) */
  --ink:var(--allook-text); --ink-soft:var(--allook-text-2); --ink-faint:var(--allook-text-3);
  --bg:var(--allook-canvas); --surface:var(--allook-surface); --surface-2:var(--allook-surface-soft);
  --line:var(--allook-border); --line-strong:var(--allook-border-strong);
  --accent:var(--allook-mint); --accent-ink:var(--allook-mint-dark); --accent-soft:var(--allook-mint-soft);
  --danger:var(--allook-danger); --danger-soft:var(--allook-danger-bg); --warn:var(--allook-warning); --warn-soft:var(--allook-warning-bg);
  --caution:var(--allook-warning); --caution-soft:var(--allook-warning-bg);
  --good:var(--allook-success); --good-soft:var(--allook-success-bg); --great:var(--allook-mint-dark); --great-soft:var(--allook-mint-soft);
  --font-display:var(--allook-font-ui); --font-body:var(--allook-font-ui); --font-mono:var(--allook-font-mono);
  --radius:var(--allook-radius-md); --shadow:var(--allook-shadow-1);
}

/* ---------- base (SYS-03) ---------- */
*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{background:var(--allook-canvas);color:var(--allook-text);font-family:var(--allook-font-ui);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;}
button,input,select,textarea{font:inherit;color:inherit;}
h1,h2,h3,h4{font-weight:600;letter-spacing:0;margin:0;color:var(--allook-text);}
h1{font-size:22px;line-height:1.2;} h2{font-size:18px;line-height:1.25;} h3{font-size:15px;line-height:1.3;} h4{font-size:14px;}
a{color:var(--allook-mint-dark);}
.mono,code,.ui-mono{font-family:var(--allook-font-mono);font-size:.92em;}
.ui-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-3px;}
.text-2{color:var(--allook-text-2);} .text-3{color:var(--allook-text-3);} .muted{color:var(--allook-text-3);}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}

/* ---------- botões (BTN-01..04) ---------- */
.btn,button.primary,button.ghost,button.danger,.btn-outline,.btn-primary,.btn-danger,.btn-ghost,.icon-btn{font-family:var(--allook-font-ui);font-weight:600;font-size:14px;line-height:1.25;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,color .15s,border-color .15s;text-decoration:none;}
.btn,button.primary,button.ghost,button.danger,.btn-outline,.btn-primary,.btn-danger,.btn-ghost{min-height:44px;padding:10px 18px;border:1px solid transparent;}
.btn .ui-icon{width:20px;height:20px;}
.btn-primary,button.primary{background:var(--allook-mint);color:var(--allook-black);border-color:var(--allook-mint);box-shadow:var(--allook-shadow-btn);}
.btn-primary:hover,button.primary:hover{background:var(--allook-mint-hover);border-color:var(--allook-mint-hover);}
.btn-outline,button.ghost{background:var(--allook-surface);color:var(--allook-mint-dark);border-color:var(--allook-border-strong);}
.btn-outline:hover,button.ghost:hover{border-color:var(--allook-mint);background:var(--allook-mint-soft);}
.btn-ghost{background:transparent;color:var(--allook-mint-dark);border-color:transparent;}
.btn-ghost:hover{background:var(--allook-mint-soft);}
.btn-danger,button.danger{background:var(--allook-surface);color:var(--allook-danger);border-color:var(--allook-border-strong);}
.btn-danger:hover,button.danger:hover{background:var(--allook-danger-bg);border-color:var(--allook-danger);}
.btn-danger.solid{background:var(--allook-danger);color:#fff;border-color:var(--allook-danger);}
.btn-sm{min-height:36px;padding:6px 14px;font-size:13px;}
.btn:disabled,button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;}
.icon-btn{width:44px;height:44px;border:none;background:transparent;color:var(--allook-text-2);padding:0;}
.icon-btn:hover{background:var(--allook-mint-soft);color:var(--allook-mint-dark);}
.icon-btn .ui-icon{width:20px;height:20px;}
.icon-btn.sm{width:36px;height:36px;}
.segmented{display:inline-flex;gap:5px;padding:5px;border:1px solid var(--allook-border);border-radius:var(--allook-radius-pill);background:var(--allook-surface-soft);max-width:100%;}
.segmented button{border:0;background:transparent;color:var(--allook-text-2);padding:9px 17px;border-radius:var(--allook-radius-pill);font-weight:600;white-space:nowrap;min-height:40px;cursor:pointer;}
.segmented .active{background:var(--allook-mint);color:var(--allook-black);}

/* ---------- abas do módulo (TAB-01) ---------- */
.mod-tabs-wrap{position:sticky;top:var(--allook-top-h);z-index:30;background:var(--allook-canvas);padding:12px 22px 4px;display:flex;align-items:center;justify-content:center;gap:12px;}
.mod-tabs-wrap .mod-tabs-side{position:absolute;right:22px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--allook-text-3);white-space:nowrap;}
.mod-tabs{display:inline-flex;flex-wrap:nowrap;gap:5px;max-width:100%;background:var(--allook-surface-soft);border:1px solid var(--allook-border);border-radius:var(--allook-radius-pill);padding:5px;
  overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;}
.mod-tabs::-webkit-scrollbar{display:none;}
.mod-tabs .tab-btn{flex:0 0 auto;scroll-snap-align:start;border:none;background:transparent;border-radius:var(--allook-radius-pill);padding:9px 17px;min-height:40px;font-family:var(--allook-font-ui);font-weight:600;font-size:13px;color:var(--allook-text-2);cursor:pointer;white-space:nowrap;}
.mod-tabs .tab-btn.active{background:var(--allook-mint);color:var(--allook-black);}
.mod-tabs .tab-btn:not(.active):hover{color:var(--allook-text);}

/* ---------- casca: sidebar MENU-04, topo USER-01, drawer MENU-06 ---------- */
.sh-layout{display:flex;min-height:100vh;}
.sh-side{width:var(--allook-side-w);flex:none;background:var(--allook-charcoal);color:#fff;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;}
.sh-brand{padding:18px 18px 16px;border-bottom:1px solid rgba(255,255,255,.1);}
.sh-brand img{display:block;width:100%;max-width:170px;margin:0 auto;background:transparent;border:0;border-radius:0;}
.sh-brand-sub{display:none;}
.sh-nav{padding:10px 10px 16px;flex:1;}
.sh-group{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.55);padding:16px 10px 6px;font-weight:600;}
.sh-item{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:13px;margin:2px 0;min-height:44px;}
.sh-item.sh-toggle{width:100%;border:none;background:transparent;font:inherit;text-align:left;cursor:pointer;}
.sh-item.sh-toggle span:last-child{margin-left:auto;flex:none;display:flex;transition:transform .15s;}
.sh-item.sh-toggle[aria-expanded="true"] span:last-child{transform:rotate(90deg);}
.sh-subgroup{overflow:hidden;}
.sh-item:hover{background:var(--allook-charcoal-2);}
.sh-item.ativo{background:var(--allook-mint);color:var(--allook-black);font-weight:600;}
.sh-item.sh-home{margin-top:6px;}
.sh-item.sh-sub{padding-left:38px;font-size:12.5px;color:rgba(255,255,255,.75);min-height:40px;}
.sh-item.sh-sub.ativo{color:var(--allook-black);}
.sh-ic{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none;}
.sh-ic .ui-icon{width:20px;height:20px;}
.sh-foot{padding:12px 16px;border-top:1px solid rgba(255,255,255,.1);font-size:11px;color:rgba(255,255,255,.6);}
.sh-drawer-user{display:none;}
.sh-main{flex:1;min-width:0;display:flex;flex-direction:column;}
.sh-top{position:sticky;top:0;z-index:40;background:var(--allook-surface);border-bottom:1px solid var(--allook-border);display:flex;align-items:center;gap:14px;padding:0 22px;height:var(--allook-top-h);}
.sh-burger{display:none;width:44px;height:44px;border:none;background:transparent;color:var(--allook-text);border-radius:10px;cursor:pointer;align-items:center;justify-content:center;}
.sh-burger .ui-icon{width:24px;height:24px;}
.sh-title{flex:1;min-width:0;}
.sh-title h1{font-size:17px;line-height:1.15;}
.sh-title p{margin:1px 0 0;font-size:12px;color:var(--allook-text-2);}
.sh-user{display:flex;align-items:center;gap:12px;}
.sh-user-txt{text-align:right;line-height:1.2;}
.sh-user-txt b{display:block;font-size:13px;font-weight:600;}
.sh-user-txt span{font-size:11px;color:var(--allook-text-3);}
.sh-avatar{width:36px;height:36px;border-radius:50%;background:var(--allook-charcoal);color:#fff;display:grid;place-items:center;font-weight:700;font-size:12px;}
.sh-logout{display:inline-flex;align-items:center;gap:6px;color:var(--allook-text-2);text-decoration:none;font-size:13px;font-weight:600;padding:0 12px;min-height:40px;border-radius:10px;}
.sh-logout:hover{background:var(--allook-mint-soft);color:var(--allook-mint-dark);}
.sh-content{flex:1;min-width:0;}
.sh-backdrop{display:none;}
@media (max-width:899px){
  .sh-side{position:fixed;left:0;top:0;bottom:0;width:min(88vw,320px);transform:translateX(-100%);transition:transform .22s ease;z-index:100;box-shadow:var(--allook-shadow-2);padding-bottom:env(safe-area-inset-bottom);}
  .sh-side.open{transform:none;}
  .sh-backdrop{position:fixed;inset:0;background:rgba(27,27,29,.45);z-index:99;}
  .sh-backdrop.open{display:block;}
  .sh-burger{display:inline-flex;}
  .sh-user-txt{display:none;}
  .sh-logout span{display:none;}
  .sh-drawer-user{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.1);color:#fff;}
  .sh-drawer-user small{display:block;color:rgba(255,255,255,.65);font-size:11px;}
  .sh-item{min-height:48px;}
  .sh-top{padding:0 12px;gap:8px;}
  .mod-tabs-wrap{padding:10px 12px 4px;justify-content:flex-start;}
  .mod-tabs-wrap .mod-tabs-side{display:none;}
}

/* ---------- cards / painéis (CARD-01/02) ---------- */
.card,.panel{background:var(--allook-surface);border:1px solid var(--allook-border);border-radius:var(--allook-radius-md);box-shadow:var(--allook-shadow-1);}
.card-pad,.panel-pad{padding:18px 20px;}
.kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.kpi .card{padding:16px;} .kpi b{font-size:22px;display:block;} .kpi small{color:var(--allook-text-2);}
@media (max-width:759px){.kpi{grid-template-columns:1fr 1fr;}}

/* ---------- listas e tabelas (LIST-01, TABLE-01/02/03) ---------- */
/* Barra de ferramentas da tabela: busca + filtros à esquerda, ação primária (+ Novo) à direita (TABLE-01) */
.table-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--allook-border);}
.table-toolbar .search{flex:1 1 220px;min-width:180px;max-width:360px;}
.table-toolbar .chips{flex:2 1 auto;}
.table-toolbar .spacer{flex:1;}
.table-toolbar .btn{flex:none;white-space:nowrap;}
@media (max-width:759px){.table-toolbar{padding:12px;}.table-toolbar .search{max-width:none;flex-basis:100%;}.table-toolbar .btn{flex-basis:100%;justify-content:center;}}
.table-wrap,.table-scroll{width:100%;overflow-x:auto;}
table.ui-table,.ui-table,table.pro-table,.pro-table{width:100%;border-collapse:collapse;background:var(--allook-surface);}
.ui-table th,.pro-table th{background:var(--allook-surface-soft);color:var(--allook-text-2);text-transform:uppercase;font-size:11px;letter-spacing:.045em;font-weight:600;text-align:left;padding:12px 14px;border-bottom:1px solid var(--allook-border);}
.ui-table td,.pro-table td{padding:12px 14px;border-bottom:1px solid var(--allook-border);font-size:13.5px;vertical-align:middle;}
.ui-table tr:last-child td,.pro-table tr:last-child td{border-bottom:0;}
.ui-table tr.clickable{cursor:pointer;} .ui-table tr.clickable:hover td{background:var(--allook-surface-soft);}
.ui-table td b{font-weight:600;} .ui-table td small{display:block;color:var(--allook-text-2);margin-top:2px;}
.list-row{display:flex;gap:12px;align-items:center;padding:14px;border-bottom:1px solid var(--allook-border);}
.list-row:last-child{border:0;}
/* TABLE-03: contêiner de dados + tabela editável no desktop / cartões-formulário no celular */
.data-shell{width:100%;background:var(--allook-surface);border:1px solid var(--allook-border);border-radius:var(--allook-radius-lg);overflow:hidden;box-shadow:var(--allook-shadow-1);}
.data-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--allook-surface-soft);border-bottom:1px solid var(--allook-border);flex-wrap:wrap;}
.data-tabs{display:flex;gap:5px;flex-wrap:wrap;align-items:center;}
.data-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:var(--allook-radius-pill);white-space:nowrap;font-size:12.5px;color:var(--allook-text-2);cursor:pointer;}
.data-tabs button.active{background:#fff;border:1px solid var(--allook-border);font-weight:700;color:var(--allook-text);}
.data-search{border:1px solid var(--allook-border);background:#fff;border-radius:8px;padding:9px 12px;min-width:210px;font:inherit;font-size:13.5px;color:var(--allook-text);}
.data-search:focus{outline:none;border-color:var(--allook-mint);box-shadow:0 0 0 3px var(--allook-mint-soft);}
.desktop-table{display:block;}
.mobile-records{display:none;padding:10px;background:var(--allook-canvas);}
.record-card{background:var(--allook-surface);border:1px solid var(--allook-border);border-radius:var(--allook-radius-md);padding:14px;margin-bottom:10px;}
.record-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;}
.record-top b{font-size:14px;}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;font-size:12.5px;}
.record-grid small{display:block;color:var(--allook-text-3);text-transform:uppercase;font-size:10.5px;letter-spacing:.04em;margin-bottom:1px;}
.record-actions{display:flex;gap:8px;margin-top:10px;}
.record-actions .btn{flex:1;}
@media (max-width:759px){.desktop-table{display:none;}.mobile-records,.table-mobile-example{display:block;}}
/* TABLE-01/03 no mobile: cabeçalho oculto, linha vira card, cada célula mostra o rótulo (data-label) */
@media (max-width:759px){
  .ui-table.cards thead{display:none;}
  .ui-table.cards,.ui-table.cards tbody,.ui-table.cards tr,.ui-table.cards td{display:block;width:100%;}
  .ui-table.cards tr{border:1px solid var(--allook-border);border-radius:var(--allook-radius-md);margin:0 0 10px;padding:6px 0;background:var(--allook-surface);}
  .ui-table.cards td{border:0;padding:8px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center;}
  .ui-table.cards td[data-label]::before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:var(--allook-text-2);font-weight:600;flex:none;}
  .ui-table.cards td.td-actions{justify-content:flex-end;}
}

/* ---------- status e badges (TABLE-04) ---------- */
.status,.badge,.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:var(--allook-radius-pill);font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1.2;background:var(--allook-surface-soft);color:var(--allook-text-2);border:1px solid var(--allook-border);}
.status .ui-icon{width:12px;height:12px;}
.status.ok,.badge.ok{background:var(--allook-success-bg);color:var(--allook-success);border-color:transparent;}
.status.info,.badge.info,.tag.admin{background:var(--allook-mint-soft);color:var(--allook-mint-dark);border-color:transparent;}
.status.wait,.badge.wait{background:var(--allook-warning-bg);color:var(--allook-warning);border-color:transparent;}
.status.no,.badge.no{background:var(--allook-danger-bg);color:var(--allook-danger);border-color:transparent;}

/* ---------- filtros (FILTER-01/02) ---------- */
.search{display:flex;align-items:center;gap:8px;background:var(--allook-surface);border:1px solid var(--allook-border);border-radius:10px;padding:0 14px;min-height:44px;max-width:380px;color:var(--allook-text-2);}
.search input{border:none;outline:none;font:inherit;flex:1;min-width:0;background:transparent;color:var(--allook-text);}
.chips{display:flex;gap:6px;flex-wrap:wrap;}
.chip{border:1px solid var(--allook-border-strong);background:var(--allook-surface);border-radius:var(--allook-radius-pill);padding:8px 13px;color:var(--allook-text-2);cursor:pointer;min-height:36px;}
.filterbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;width:100%;}
/* FILTER-01: campo de busca solto na barra de filtros, sem card/borda externa envolvendo o grupo.
   Reprodução literal do catálogo (cores próprias, não os tokens --allook-*). */
.filter-field{background:#fff;border:1px solid #b9c5cb;border-radius:10px;padding:10px 12px;color:#445468;min-width:220px;flex:1 1 220px;font:400 14px/1.3 var(--allook-font-ui);min-height:44px;}
.filter-field::placeholder{color:#7c8a9a;opacity:1;}
.filter-field:focus{outline:none;border-color:#27896F;box-shadow:0 0 0 3px var(--allook-mint-soft);}
.filter-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--allook-mint);background:var(--allook-mint-soft);color:var(--allook-mint-dark);border-radius:var(--allook-radius-pill);padding:6px 8px 6px 13px;font-size:12.5px;font-weight:600;cursor:pointer;}
.filter-chip .ui-icon{width:14px;height:14px;}
.filter-chip:hover{background:var(--allook-mint);color:var(--allook-black);}

/* ---------- TABLE-05: tabela com filtros organizados (usado junto com TABLE-01/TABLE-03) ----------
   Reprodução literal do catálogo — cores e medidas fixas, não usar tokens --allook-* aqui para
   garantir fidelidade exata (regra obrigatória do catálogo: não improvisar cores/espaçamentos). */
.table-filter-demo{width:100%;border:1px solid #E0E3E5;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(27,27,29,.06);}
.table-filter-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,320px);gap:14px;align-items:center;padding:14px;border-bottom:1px solid #E0E3E5;}
.table-filter-controls{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;}
.table-filter-controls::-webkit-scrollbar{display:none;}
.table-filter-btn{flex:0 0 auto;min-height:40px;padding:0 13px;border:1px solid #CDD3D6;border-radius:10px;background:#fff;color:#343438;font:500 13px/1 var(--allook-font-ui);cursor:pointer;scroll-snap-align:start;}
.table-filter-btn:hover{background:#DDF5EF;border-color:#A5DED0;color:#174F42;}
.table-filter-btn.applied{background:#27896F;border-color:#27896F;color:#fff;font-weight:600;}
.table-filter-search{min-height:42px;width:100%;border:1px solid #CDD3D6;border-radius:10px;padding:0 12px;color:#1B1B1D;background:#fff;font:400 14px/1 var(--allook-font-ui);}
.table-filter-search::placeholder{color:#73797D;opacity:1;}
.table-filter-search:focus{outline:none;border-color:#27896F;}
.table-filter-applied{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;background:#F5F6F7;border-bottom:1px solid #E0E3E5;}
.table-filter-applied strong{font-size:12px;color:#53585C;flex:0 0 auto;}
.filter-chip-strong{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 10px;border:1px solid #76CDB8;border-radius:999px;background:#DDF5EF;color:#174F42;font-size:12px;font-weight:600;cursor:pointer;}
.table-result-note{padding:8px 14px;color:#656B70;font-size:12px;border-bottom:1px solid #E0E3E5;}
/* Corpo de dados do TABLE-05 (usar com grid-template-columns definido por quem chama, conforme as colunas da tabela real) */
.table-example-head{display:grid;gap:12px;padding:11px 14px;background:#FAFAF9;color:#5B6266;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;}
.table-example-head span{cursor:default;}
.table-example-head span.sortable{cursor:pointer;user-select:none;}
.table-example-head span.sortable:hover{color:#27896F;}
.table-example-head .arrow{opacity:.6;font-size:9px;margin-left:3px;}
.table-example-row{display:grid;gap:12px;align-items:center;min-height:62px;padding:10px 14px;border-top:1px solid #E0E3E5;font-size:13px;color:#1B1B1D;}
.table-example-row:hover{background:#FAFAF9;}
.table-example-row b{font-weight:600;}
.table-example-row small{display:block;color:#656B70;margin-top:3px;font-size:11px;}
.table-mobile-example{display:none;padding:10px;background:#F5F6F7;}
.table-mobile-card{border:1px solid #E0E3E5;border-radius:12px;background:#fff;padding:13px;display:grid;gap:10px;margin-bottom:10px;}
.table-mobile-card:last-child{margin-bottom:0;}
.table-mobile-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.table-mobile-pairs{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px;}
.table-mobile-pairs small{display:block;color:#656B70;font-size:11px;}
@media (max-width:760px){
  .table-example-head,.table-example-row{display:none;}
  .table-mobile-example{display:block;}
}
@media (max-width:760px){
  .table-filter-main{grid-template-columns:1fr;padding:12px;}
  .table-filter-controls{margin:0 -12px;padding:0 12px;}
  .table-filter-search{width:100%;}
  .table-filter-applied{padding:9px 12px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;}
  .table-filter-applied strong{flex:0 0 auto;}
}
.chip.active{background:var(--allook-mint-soft);color:var(--allook-mint-dark);border-color:var(--allook-mint);}

/* ---------- formulários (FORM-01/02/04) ---------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.field label,.field-stack label{font-size:12px;font-weight:600;color:var(--allook-text-2);}
.field input,.field select,.field textarea,.ui-input{font:inherit;font-size:14px;min-height:44px;padding:9px 12px;border:1px solid var(--allook-border-strong);border-radius:10px;background:var(--allook-surface);color:var(--allook-text);width:100%;}
.field input:focus,.field select:focus,.field textarea:focus,.ui-input:focus,.search:focus-within{outline:none;border-color:var(--allook-mint);box-shadow:0 0 0 3px var(--allook-mint-soft);}
.field .sub,.helper{font-size:12px;color:var(--allook-text-3);}
.field .error-text{font-size:12px;color:var(--allook-danger);}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media (max-width:759px){.field-row{grid-template-columns:1fr;}}
.check{display:flex;align-items:center;gap:10px;font-size:14px;margin:6px 0 12px;cursor:pointer;min-height:44px;}
.check input,input[type=checkbox]{accent-color:var(--allook-mint-dark);width:18px;height:18px;}
.inline-input{width:100%;font:inherit;font-size:13.5px;min-height:36px;padding:6px 9px;border:1px solid var(--allook-border);border-radius:8px;background:var(--allook-surface);}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;}
.msg{font-size:12.5px;min-height:18px;margin-top:8px;}
.msg.err{color:var(--allook-danger);} .msg.ok{color:var(--allook-success);}
details.accordion{border:1px solid var(--allook-border);border-radius:var(--allook-radius-md);background:var(--allook-surface);}
details.accordion summary{cursor:pointer;padding:12px 16px;font-weight:600;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;}
details.accordion[open] summary{border-bottom:1px solid var(--allook-border);}
details.accordion .accordion-body{padding:14px 16px;}

/* ---------- feedback (FEED-01/02/03/04) ---------- */
.alert,.feed{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--allook-radius-md);border:1px solid var(--allook-border);background:var(--allook-surface);font-size:13.5px;}
.alert .ui-icon,.feed .ui-icon{width:20px;height:20px;margin-top:1px;}
.alert b{display:block;font-weight:600;} .alert .alert-body{flex:1;min-width:0;}
.alert.info{background:var(--allook-info-bg);border-color:transparent;color:var(--allook-info);}
.alert.ok{background:var(--allook-success-bg);border-color:transparent;color:var(--allook-success);}
.alert.wait{background:var(--allook-warning-bg);border-color:transparent;color:var(--allook-warning);}
.alert.no{background:var(--allook-danger-bg);border-color:transparent;color:var(--allook-danger);}
.alert .alert-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--allook-charcoal);color:#fff;border-radius:12px;box-shadow:var(--allook-shadow-2);z-index:300;font-size:13.5px;}
.skeleton{background:linear-gradient(90deg,var(--allook-border) 25%,var(--allook-surface-soft) 50%,var(--allook-border) 75%);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:8px;min-height:14px;}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}
.empty{text-align:center;padding:36px 20px;color:var(--allook-text-2);}
.empty-icon{width:58px;height:58px;border-radius:18px;background:var(--allook-mint-soft);color:var(--allook-mint-dark);display:grid;place-items:center;margin:0 auto 12px;}
.empty-icon .ui-icon{width:28px;height:28px;}
.empty h4{margin:0 0 4px;color:var(--allook-text);}

/* ---------- paginação (NAV-01) ---------- */
.pagination{display:flex;gap:6px;flex-wrap:wrap;}
.pagination button{width:40px;height:40px;border:1px solid var(--allook-border);background:var(--allook-surface);border-radius:9px;cursor:pointer;}
.pagination .active{background:var(--allook-mint);color:var(--allook-black);border-color:var(--allook-mint);}

/* ---------- diálogo (DIALOG-01) e bottom sheet (DIALOG-02) ---------- */
.overlay,.modal-backdrop{position:fixed;inset:0;background:rgba(27,27,29,.45);z-index:200;display:none;}
.overlay.open,.modal-backdrop.open{display:block;}
.modal,.modal-box{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:520px;max-width:94vw;max-height:92vh;overflow:auto;background:var(--allook-surface);border-radius:var(--allook-radius-lg);box-shadow:var(--allook-shadow-2);z-index:201;display:none;}
.modal.open,.modal-box.open{display:block;}
.modal-head{padding:20px 22px 6px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.modal-head h3{font-size:16px;} .modal-head .sub{font-size:12px;color:var(--allook-text-2);margin-top:2px;}
.modal-body{padding:10px 22px 4px;}
.modal-actions{display:flex;gap:8px;padding:16px 22px 22px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.close-x{width:40px;height:40px;border:none;background:transparent;cursor:pointer;color:var(--allook-text-2);border-radius:10px;display:grid;place-items:center;padding:0;}
.close-x:hover{background:var(--allook-mint-soft);color:var(--allook-mint-dark);}
@media (max-width:759px){
  .modal,.modal-box{top:auto;bottom:0;left:0;right:0;transform:none;width:100%;max-width:100%;max-height:92vh;border-radius:var(--allook-radius-lg) var(--allook-radius-lg) 0 0;padding-bottom:env(safe-area-inset-bottom);}
  .modal-actions{flex-direction:column-reverse;align-items:stretch;}
  .modal-actions .btn,.modal-actions button{width:100%;}
}

/* ---------- página padrão de módulo ---------- */
.page{max-width:1360px;margin:0 auto;padding:0 22px 80px;}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:8px 0 14px;flex-wrap:wrap;}
.page-head h2{font-size:20px;} .page-head p{margin:4px 0 0;color:var(--allook-text-2);font-size:13px;max-width:760px;}
.grid-2{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start;}
@media (max-width:999px){.grid-2{grid-template-columns:1fr;}}
@media (max-width:759px){.page{padding:0 12px 60px;}.page-head{margin:6px 0 12px;}}
