/* ============================================================
   Gestão LeWash — app.css
   Design system do brandbook v1.0 · "Um cuidado silencioso."
   Paleta: creme-linho · azul-marinho · verde-mata · ouro discreto
   Tipos: Open Sans (corpo) + Open Sans semi-condensada (display), self-hosted
   ============================================================ */

/* ---- Fontes da marca (assets/fonts/) — sem CDN: funciona offline ----
   Display = a própria Open Sans variável instanciada em largura 87.5%
   (semi-condensada): títulos compactos e com presença, dígitos inequívocos
   em valores financeiros, e harmonia total com o corpo (mesma família). */
@font-face {
  font-family: 'Open Sans Display';
  src: url('fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 87.5%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Italic-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta principal (brandbook 25·40·25·10) */
  --navy:    #1C2541;   /* azul-marinho — "WASH", topbar, títulos */
  --navy-2:  #26325A;   /* hover sobre o navy */
  --forest:  #2C4A30;   /* verde-mata — primária, ação principal  */
  --forest-d:#233D27;
  --gold:    #C9A55F;   /* ouro discreto — acento (~10%)          */
  --gold-d:  #A9853F;   /* ouro p/ texto sobre fundo claro        */
  --ivory:   #EFE7D2;   /* creme-linho — fundo da página          */
  --ivory-d: #E2DAC2;   /* linho-200 — hairlines, fundos rasos    */
  --white:   #FDFBF4;   /* superfície dos cards (branco-linho)    */

  --text-on-dark:    #EFE7D2;
  --text-muted-dark: rgba(239,231,210,0.66);
  --text-on-light:   #2E2A21;   /* linho-800 — tinta quente        */
  --text-muted-light:#6B6657;   /* linho-600                        */
  --border-light:    #D9D0B6;
  --ink:             var(--navy); /* tinta de destaque (títulos, valores) — vira clara no dark */

  /* Semânticas — alerta deixa de "emprestar" o dourado da marca */
  --ok:        #2F6B3C;
  --ok-bg:     #DDEAD7;
  --warn:      #9A5B23;
  --warn-bg:   #F2E3C8;
  --danger:    #A8402F;
  --danger-bg: #F4DDD6;

  --link:      var(--forest); /* links de conteúdo — clareia no dark */

  /* Chave de tema — estado claro (sol ativo à esquerda) */
  --tt-knob-x:  0px;
  --tt-knob-bg: var(--gold);
  --tt-sun-c:   #FDFBF4;
  --tt-moon-c:  var(--text-muted-dark);

  --font-display: 'Open Sans Display', 'Open Sans', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(28,37,65,0.07);
  --shadow: 0 6px 22px rgba(28,37,65,0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.18s var(--ease);
}

/* ============================================================
   Modo escuro — remapeia só os tokens de superfície e tinta.
   A topbar e os botões navy continuam navy (a marca segue viva);
   o linho vira noite quente, mantendo o ar de "cuidado silencioso".
   ============================================================ */
:root[data-theme="dark"] {
  --ivory:    #14161F;   /* fundo da página — noite azulada        */
  --ivory-d:  #232733;   /* hairlines, fundos rasos, chips          */
  --white:    #1B1E2A;   /* superfície dos cards                    */
  --ink:      #EDE7D6;   /* títulos e valores (era navy)            */
  --text-on-light:   #E6E1D2;
  --text-muted-light:#9A9484;
  --border-light:    #333849;
  --gold-d:  #D4B978;    /* ouro um pouco mais luminoso p/ links     */
  --link:    #8FBE9A;    /* verde-sálvia claro — links legíveis      */
  /* Semânticas viram tinta clara sobre fundo translúcido escuro,
     em vez de pastel claro (que "destoava" e deixava texto ilegível) */
  --ok:        #7FC489;   --ok-bg:     rgba(47,107,60,0.24);
  --warn:      #E3A85E;   --warn-bg:   rgba(154,91,35,0.26);
  --danger:    #E8897A;   --danger-bg: rgba(168,64,47,0.26);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow:    0 6px 22px rgba(0,0,0,0.45);
  /* Chave de tema — estado escuro (lua ativa à direita) */
  --tt-knob-x:  26px;
  --tt-knob-bg: #7A8299;
  --tt-sun-c:   var(--text-muted-dark);
  --tt-moon-c:  #FDFBF4;
}
:root[data-theme="dark"] body { background: var(--ivory); }
/* Fundos translúcidos que usavam navy some no escuro → viram claros */
:root[data-theme="dark"] .badge.pendente,
:root[data-theme="dark"] .badge.agendado,
:root[data-theme="dark"] .badge.fin-semprazo { background: rgba(255,255,255,0.10); color: #B9C0D6; }
:root[data-theme="dark"] .cal-ev { background: rgba(255,255,255,0.07); }
:root[data-theme="dark"] .cal-ev.agendado { background: rgba(255,255,255,0.11); }
:root[data-theme="dark"] ::selection { background: rgba(201,165,95,0.30); }
/* Campos de formulário no escuro — o CSS base pinta inputs de #FFFEFA;
   usa background-color p/ não apagar a seta SVG do select. */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { background-color: var(--ivory-d); color: var(--text-on-light); border-color: var(--border-light); }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: var(--text-muted-light); }
:root[data-theme="dark"] .campo-afixo { background: var(--ivory-d); border-color: var(--border-light); }
/* Seta do select com traço claro (o padrão é navy, some no escuro) */
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23EDE7D6' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* Ícone da lupa em busca-bar/busca-rapida herda tinta clara automaticamente */
/* Badges com cores fixas (não usam token) — adaptadas ao escuro */
:root[data-theme="dark"] .badge.pendente_financeiro { background: rgba(168,64,47,0.26); color: #E8897A; }
:root[data-theme="dark"] .badge.em_andamento { background: rgba(201,165,95,0.20); color: var(--gold-d); }
/* Onde o vermelho é fundo sólido com texto branco, mantém sólido (não clareia) */
:root[data-theme="dark"] .btn-danger:hover:not(:disabled) { background: #8E3524; }
:root[data-theme="dark"] .cal-ev.pendente_financeiro { background: #8E3524; color: #fff; }

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ivory);
  color: var(--text-on-light);
  line-height: 1.55;
  min-height: 100dvh;
}
::selection { background: rgba(201,165,95,0.35); }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; font-weight: 600; }
.muted, small { color: var(--text-muted-light); }
.lw-mono { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-light); font-weight: 600; }

/* Foco visível para navegação por teclado — anel dourado discreto */
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,165,95,0.45); border-radius: 4px; }

/* Rolagem discreta, no tom do linho */
* { scrollbar-width: thin; scrollbar-color: var(--ivory-d) transparent; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--ivory-d); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Topbar ---- */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(201,165,95,0.34); box-shadow: 0 2px 18px rgba(28,37,65,0.24); }
.topbar-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; padding: 10px 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
/* ---- Menu (grupos com submenu) ---- */
.nav2 { display: flex; gap: 2px; flex: 1; min-width: 0; flex-wrap: wrap; }
.n2-item { position: relative; }
.n2-solo, .n2-trig {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; font: inherit; cursor: pointer;
  color: var(--text-muted-dark); padding: 10px 13px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color var(--transition);
}
.n2-solo:hover, .n2-trig:hover { color: var(--ivory); }
.n2-solo.on, .n2-trig.on { color: var(--gold); border-bottom-color: var(--gold); }
.n2-caret { width: 8px; height: 8px; flex-shrink: 0; opacity: .75; transition: transform var(--transition); }
.n2-item.n2-open .n2-caret { transform: rotate(180deg); }

/* position:fixed (não absolute) e coordenadas calculadas em JS (lwNav2Posicionar):
   assim o menu nunca fica cortado pela faixa rolável do celular, que precisa
   de overflow-x — overflow em qualquer eixo corta o que seria absolute. */
.n2-pop {
  position: fixed; z-index: 1000;
  min-width: 224px; background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 4px;
  display: none; flex-direction: column; gap: 1px;
}
.n2-item.n2-open .n2-pop { display: flex; }
.n2-pop a {
  padding: 8px 10px; border-radius: 6px; font-size: .9rem; font-weight: 600;
  color: var(--text-on-light); text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.n2-pop a:hover { background: var(--ivory-d); }
.n2-pop a.cur { color: var(--gold-d); }
.n2-sep { height: 1px; background: var(--ivory-d); margin: 4px 6px; }
.n2-grp {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: var(--text-muted-light); padding: 8px 10px 3px;
}
.user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.85rem; }
.user-linha { display: flex; align-items: center; gap: 12px; }
.user-nome { color: var(--ivory); }
.sair { color: var(--gold); font-weight: 600; }

.user-acoes { display: flex; align-items: center; gap: 10px; }

/* ---- Modo privado: esconde os valores de quem olha de lado ----
   O borrão vai no <span class="lw-val"> que o app.js põe em volta de cada
   "R$ ...", então cobre a tela inteira sem precisar marcar valor por valor. */
.priv-toggle { background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; line-height: 0;
  color: var(--text-muted-dark); border-radius: 8px;
  transition: color var(--transition), background var(--transition); }
.priv-toggle:hover { color: var(--ivory); background: rgba(255,255,255,0.10); }
.priv-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(201,165,95,0.5); }
.pv-ic { width: 19px; height: 19px; display: block; }
:root[data-privado="1"] .lw-val { filter: blur(7px); user-select: none; cursor: default; }
/* Enquanto o app.js não marcou os valores, borra os lugares conhecidos —
   é o que impede o número de aparecer por um instante ao abrir a página. */
:root[data-privado="1"].lw-cobrindo .stat .n,
:root[data-privado="1"].lw-cobrindo .rp-val,
:root[data-privado="1"].lw-cobrindo .dre-i-val,
:root[data-privado="1"].lw-cobrindo td.num,
:root[data-privado="1"].lw-cobrindo .os-valor,
:root[data-privado="1"].lw-cobrindo .rt .n,
:root[data-privado="1"].lw-cobrindo .itens-total .v,
:root[data-privado="1"].lw-cobrindo .serv-card .preco,
:root[data-privado="1"].lw-cobrindo .delta { filter: blur(7px); }
/* Impresso é ato deliberado: sai legível. */
@media print { .lw-val { filter: none !important; } }

/* ---- Chave de modo escuro (topo direito, abaixo de nome/Sair) ---- */
.theme-toggle { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: 0; }
.tt-track { position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 52px; height: 26px; padding: 0 6px; border-radius: 99px; background: rgba(0,0,0,0.26);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35); transition: background var(--transition); }
.tt-ic { position: relative; z-index: 2; width: 13px; height: 13px; display: block; transition: color var(--transition); }
/* Visual guiado por variáveis (--tt-*) que trocam junto com o tema. Mudança de
   custom property invalida na hora — o knob desliza no próprio clique, sem
   depender de re-casar seletor de descendente (que alguns motores não fazem). */
.tt-sun  { color: var(--tt-sun-c); }
.tt-moon { color: var(--tt-moon-c); }
.tt-knob { position: absolute; top: 3px; left: 3px; z-index: 1; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tt-knob-bg); box-shadow: 0 1px 3px rgba(0,0,0,0.45);
  transform: translateX(var(--tt-knob-x));
  transition: transform var(--transition), background var(--transition); }
.theme-toggle:focus-visible .tt-track { box-shadow: 0 0 0 3px rgba(201,165,95,0.5); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---- Cards ---- */
.card { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* Revisão de um envio (Aprovação): comprovante + formulário lado a lado só no
   desktop; empilha no celular para não transbordar da tela. min-width:0 nas
   colunas evita o "grid blowout" (selects/inputs esticando além do container). */
.envio-revisao { display: grid; gap: 18px; align-items: start; }
.envio-revisao > * { min-width: 0; }
@media (min-width: 720px) { .envio-revisao { grid-template-columns: 1fr 1.2fr; } }
.envio-foto { width: 100%; border-radius: 12px; border: 1px solid var(--ivory-d); display: block; }
/* No celular o comprovante é frequentemente uma foto/print alto: limita a
   altura do preview (toque amplia) para o formulário não ficar longe demais. */
@media (max-width: 719px) { .envio-foto { max-height: 300px; object-fit: contain; background: var(--ivory-d); } }

/* ---- Stat tiles ---- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.stat .n { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; }
.stat .l { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-light); margin-top: 7px; display: block; font-weight: 600; }
/* Cartão de resumo clicável (vira filtro da lista) */
a.stat-link { display: block; text-decoration: none; cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
a.stat-link:hover { box-shadow: var(--shadow); border-color: var(--gold); transform: translateY(-1px); }
a.stat-link.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,165,95,0.35), var(--shadow-sm); }
.stat.alert { background: var(--warn-bg); border-color: rgba(154,91,35,0.28); }
.stat.alert .n { color: var(--warn); }
/* Tiles clicáveis (dashboard): afordância de clique sem virar botão. */
a.stat, a.rt { text-decoration: none; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
a.stat:hover, a.rt:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--gold); }
/* Card ativo (filtro selecionado): borda dourada + anel discreto. */
a.stat.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,165,95,0.35), var(--shadow-sm); }

/* ---- Forms ---- */
label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted-light); letter-spacing: 0.02em; display: block; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--text-on-light);
  background: #FFFEFA; outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,165,95,0.20); }
textarea { min-height: 92px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C2541' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.row { display: grid; gap: 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; padding: 12px 22px;
  border: none; border-radius: var(--radius); transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition);
  white-space: nowrap; background: var(--ivory-d); color: var(--text-on-light); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Ação principal em verde-mata: o dourado volta a ser acento, não alarme */
.btn-primary { background: var(--forest); color: #F2ECDA; box-shadow: 0 2px 12px rgba(44,74,48,0.28); }
.btn-primary:hover:not(:disabled) { background: var(--forest-d); box-shadow: 0 4px 18px rgba(44,74,48,0.38); }
.btn-accent { background: var(--navy); color: var(--gold); }
.btn-accent:hover:not(:disabled) { background: var(--navy-2); }
.btn-wa { background: #25D366; color: #073e2e; }
.btn-wa:hover:not(:disabled) { background: #1fb855; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border-light); color: var(--text-on-light); }
.btn-ghost:hover:not(:disabled) { background: var(--ivory-d); }
.btn-danger { background: transparent; border: 1.5px solid rgba(168,64,47,0.5); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ---- Badges / chips — com ponto de status ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.pendente { background: rgba(28,37,65,0.08); color: #4A5370; }
.badge.agendado { background: rgba(28,37,65,0.08); color: #4A5370; }
.badge.em_andamento { background: rgba(201,165,95,0.22); color: #7A5E22; }
.badge.concluido { background: var(--ok-bg); color: var(--ok); }
.badge.cancelado { background: var(--danger-bg); color: var(--danger); }
.badge.pendente_financeiro { background: #F6D2CB; color: #A32A1B; }
.badge.refazer { background: rgba(201,165,95,0.18); color: var(--gold-d); border: 1px solid var(--gold); }
.badge.refazer::before { display: none; }
.badge.fin-paga { background: var(--ok-bg); color: var(--ok); }
.badge.fin-avencer { background: var(--warn-bg); color: var(--warn); }
.badge.fin-vencida { background: var(--danger-bg); color: var(--danger); }
.badge.fin-semprazo { background: rgba(28,37,65,0.08); color: #4A5370; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

/* Venda a prazo: bloco de data combinada dentro do card de Recebimento. */
.prazo-box { margin-top: 14px; padding: 12px 14px; background: var(--ivory); border: 1px dashed var(--ivory-d); border-radius: var(--radius); }
.prazo-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; }
.prazo-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.prazo-form input[type="date"] { width: auto; flex: 1 1 150px; min-width: 0; }

/* ---- Plano de pagamento (parcelamento) ---- */
.plano-box { margin-top: 14px; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--ivory-d); border-radius: var(--radius); }
.plano-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plano-head h3 { margin: 0; font-size: 0.98rem; }
.parc-list { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.parc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--ivory-d); border-left: 4px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; }
.parc-item.pago { border-left-color: var(--ok); }
.parc-idv { display: flex; align-items: baseline; gap: 10px; }
.parc-num { font-size: 0.78rem; color: var(--muted); }
.parc-val { font-weight: 700; }
.parc-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parc-venc { font-size: 0.82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.parc-rec > summary { list-style: none; cursor: pointer; display: inline-block; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; color: #fff; background: var(--navy); border-radius: var(--radius-sm); }
.parc-rec > summary::-webkit-details-marker { display: none; }
.parc-rec[open] > summary { background: var(--navy-2); }
.parc-rec-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.parc-rec-form select { width: auto; flex: 1 1 160px; min-width: 0; }
.parc-resumo { display: flex; gap: 18px; margin-top: 12px; font-size: 0.86rem; }
.plano-editor { margin-top: 14px; padding: 12px 14px; background: var(--ivory); border: 1px dashed var(--ivory-d); border-radius: var(--radius); }
.plano-presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.prow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.prow-ent { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.prow-val { flex: 1 1 120px; min-width: 0; margin: 0; }
.prow input[type="date"] { width: auto; flex: 1 1 150px; min-width: 0; }
.prow-del { border: none; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.parc-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---- Follow-up: nome clicável abre o painel com os itens ---- */
.fup-card { margin-bottom: 10px; }
.fup-row { cursor: pointer; }
.fup-row:hover { border-color: var(--gold); }
.fup-row:hover .fup-nome { color: var(--gold-d); }
.fup-nome { font-weight: 700; color: inherit; display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition); }
.fup-caret { display: inline-block; font-size: 0.7rem; color: var(--muted); transition: transform var(--transition); }
.fup-caret.aberto { transform: rotate(90deg); }
.fup-det { margin: -4px 0 0; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--ivory-d); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.fup-itens { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fup-itens th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--ivory-d); }
.fup-itens td { padding: 6px 8px; border-bottom: 1px solid var(--ivory-d); }
.fup-itens td.c, .fup-itens th.c { text-align: center; }
.fup-itens td.r, .fup-itens th.r { text-align: right; white-space: nowrap; }
.fup-tot { margin-top: 10px; margin-left: auto; max-width: 280px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.fup-tot > div { display: flex; justify-content: space-between; gap: 20px; }
.fup-tot .desc { color: var(--muted); }
.fup-tot .total { font-weight: 700; border-top: 1px solid var(--ivory-d); padding-top: 6px; margin-top: 2px; }
.badge.auto { background: var(--ok-bg); color: var(--ok); }
.badge.manual { background: var(--ivory-d); color: var(--muted); }
/* Chave envio automático/manual — 1 clique alterna. Segue o mesmo visual dos
   botões ghost ao lado (mesmo tamanho de fonte, borda, cor e raio); só o
   trilho deslizante indica o estado. */
.fup-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; padding: 7px 12px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-on-light);
  transition: background var(--transition), border-color var(--transition); }
.fup-toggle:hover { background: var(--ivory-d); }
.fup-sw { position: relative; flex: 0 0 auto; width: 32px; height: 18px; border-radius: 99px; background: var(--border-light); transition: background var(--transition); }
.fup-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: transform var(--transition); }
.fup-toggle.on .fup-sw { background: var(--ok); }
.fup-toggle.on .fup-knob { transform: translateX(14px); }
.fup-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,165,95,0.5); }
.fup-removidos > summary { cursor: pointer; font-weight: 600; }

/* ---- Tables — cabeçalho leve, leitura calma ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th { background: transparent; color: var(--text-muted-light); padding: 9px 14px; text-align: left; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid rgba(46,42,33,0.22); }
tbody tr { border-bottom: 1px solid var(--ivory-d); }
tbody tr:hover { background: rgba(201,165,95,0.07); }
tbody td { padding: 11px 14px; vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Lista de atendimentos (fila) ---- */
.fila { display: grid; gap: 12px; }
.os-item { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); border-left: 4px solid var(--border-light); padding: 14px 16px; box-shadow: var(--shadow-sm); color: inherit; transition: box-shadow var(--transition), border-color var(--transition); }
.os-item:hover { box-shadow: var(--shadow); }
.os-item.pendente { border-left-color: rgba(28,37,65,0.25); }
.os-item.em_andamento { border-left-color: var(--gold); }
.os-item.concluido { border-left-color: var(--forest); }
.os-item.pendente_financeiro { border-left-color: var(--danger); }
.os-hora { font-weight: 700; font-size: 0.82rem; color: var(--ink); min-width: 58px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.os-main { flex: 1; min-width: 0; }
.os-main .nome { font-weight: 600; font-size: 1rem; color: var(--ink); }
.os-main .srv { color: var(--text-muted-light); font-size: 0.84rem; }
.os-tec { color: var(--text-muted-light); font-size: 0.78rem; margin-top: 3px; }
.os-arrow { color: var(--text-muted-light); font-size: 1.2rem; }
/* Valor do atendimento: inline no desktop (com o separador " · " de sempre),
   vira linha própria no mobile — ver bloco max-width: 719px. */
.os-valor { font-weight: 700; color: var(--ink); white-space: nowrap; }
.os-valor::before { content: ' · '; font-weight: 400; color: var(--text-muted-light); }

/* ---- Fotos ---- */
.antes-depois { display: grid; gap: 16px; }
@media (min-width: 640px) { .antes-depois { grid-template-columns: 1fr 1fr; } }
.fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px,1fr)); gap: 10px; }
.foto-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--ivory-d); background: var(--ivory-d); }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-thumb .del { position: absolute; top: 4px; right: 4px; background: rgba(28,37,65,.72); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 14px; line-height: 1; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.video-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--ivory-d); background: #000; }
.video-item video { width: 100%; display: block; max-height: 280px; background: #000; }
.foto-uploader { display: block; border: 1.5px dashed var(--border-light); border-radius: var(--radius-sm); padding: 16px; text-align: center; color: var(--text-muted-light); cursor: pointer; font-size: 0.88rem; font-weight: 600; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.foto-uploader:hover { border-color: var(--gold); color: var(--gold-d); background: rgba(201,165,95,0.06); }
.coluna-foto h3 { margin-bottom: 8px; }

/* ---- Produtos / serviços / equipe ---- */
.prod-linha { display: grid; grid-template-columns: 1fr 96px 42px; gap: 8px; align-items: center; margin-bottom: 8px; }
.prod-linha .rm, .serv-linha .rm { background: transparent; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); color: var(--danger); cursor: pointer; height: 46px; }
.serv-linha { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-bottom: 8px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--border-light); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 0.9rem; cursor: pointer; user-select: none; transition: border-color var(--transition), background var(--transition); }
.check input { width: auto; margin: 0; accent-color: var(--forest); }

/* Filtro "Ver agenda de:" (técnicos no detalhe do dia) — chips bem mais
   compactos que o .check padrão, para caber vários nomes por linha mesmo
   no celular. Escopado a .tec-filtro para não afetar os outros checkboxes
   do site que reaproveitam .check/.check-grid.
   row-gap bem menor que column-gap: entre chips na mesma linha precisa de
   respiro pra não colar, mas entre uma linha e outra pode ser bem apertado. */
.tec-filtro { margin-top: 0; row-gap: 3px; column-gap: 6px; }
.tec-filtro .check { padding: 4px 10px; gap: 5px; font-size: 0.76rem; border-width: 1px; line-height: 1.15; }
.tec-filtro .check input { width: 13px; height: 13px; flex: none; }
.check:has(input:checked) { border-color: var(--gold); background: rgba(201,165,95,0.13); }

.servico-bloco { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); padding: 18px; margin-bottom: 16px; }
.servico-bloco .stitle { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.servico-num { background: var(--navy); color: var(--gold); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex: none; }
.subhead { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted-light); font-weight: 700; margin: 0 0 8px; }
.sec-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-light); font-weight: 700; margin: 6px 2px 12px; }

/* ---- Pendência — âmbar próprio, não o dourado da marca ---- */
.pend-box { background: var(--warn-bg); border: 1px solid rgba(154,91,35,0.3); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.pend-box h2, .pend-box h3 { color: var(--warn); }
.warn-text { color: var(--warn); font-size: 0.8rem; font-weight: 600; margin-top: 3px; }

/* ---- Misc ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.toolbar .field { flex: 1; min-width: 130px; }
.toolbar label { margin-top: 0; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; font-weight: 500; display: flex; gap: 10px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-left: 4px solid var(--ok); }
.flash.err { background: var(--danger-bg); color: var(--danger); border-left: 4px solid var(--danger); }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); font-weight: 400; }

/* ---- Centro de custo (DRE) ---- */
.rp-row.cc-cab { font-weight: 700; color: var(--navy); border-top: 1px solid var(--ivory-d); margin-top: 6px; padding-top: 10px; }
.rp-row.cc-cab:first-child { border-top: 0; margin-top: 0; }
.dre-det.cc-item > summary.rp-row .rp-lbl,
.rp-row.cc-item .rp-lbl { padding-left: 14px; }
.rp-row.cc-item .rp-lbl small { display: block; color: var(--text-muted-light); font-size: 0.76rem; }

/* ---- Conciliação bancária (aba Saldos) ---- */
.conc-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--ivory-d); }
.conc-linha .conc-txt { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 2px; }
.conc-linha .conc-txt strong { font-variant-numeric: tabular-nums; }
.conc-linha .conc-txt small { color: var(--text-muted-light); font-size: 0.8rem; }
.conc-linha .conc-acoes { display: flex; gap: 8px; align-items: center; }
.conc-linha .conc-acoes select { min-width: 150px; }
.conc-linha form { margin: 0; }
.conc-ent { color: var(--ok); }
.conc-sai { color: var(--danger); }
@media (max-width: 719px) {
  .conc-linha .conc-acoes { width: 100%; }
  .conc-linha .conc-acoes select { flex: 1; min-width: 0; }
}
/* ---- Endereços do cliente ---- */
.end-extra { margin-top: 8px; border-top: 1px solid var(--ivory-d); padding-top: 12px; }
.end-extra > summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--link); list-style: none; }
.end-extra > summary::-webkit-details-marker { display: none; }
.end-extra > summary::before { content: '▸ '; color: var(--text-muted-light); }
.end-extra[open] > summary::before { content: '▾ '; }
.end-extra-body { padding-top: 12px; }
.end-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--ivory-d); }
.end-linha:last-of-type { border-bottom: 0; }
.end-linha .end-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.end-linha .end-apelido { font-weight: 600; color: var(--navy); }
.end-linha .end-txt small { color: var(--text-muted-light); font-size: 0.8rem; }
.end-linha .end-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.end-linha form { margin: 0; }

.empty { text-align: center; color: var(--text-muted-light); padding: 40px 20px; }
.back { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-muted-light); display: inline-block; margin-bottom: 12px; font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--text-muted-light); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.totais { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ivory-d); }
.totais .linha { display: flex; justify-content: space-between; }
.totais .total { font-weight: 700; font-size: 1.15rem; color: var(--ink); }

/* ============================================================
   Gestão LeWash — additions
   ============================================================ */

/* ---- Login ---- */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy); }
.login-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 30px; width: 100%; max-width: 380px; }
.login-card .brand-logo { height: 38px; margin-bottom: 6px; }
.login-card .login-sub { color: var(--text-muted-light); font-size: 0.9rem; margin-bottom: 22px; }
.login-card .gold-sub { color: var(--gold-d); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; }

/* ---- Page head / hero ---- */
.hero { margin-bottom: 20px; }
.hero h1 { font-size: 1.65rem; letter-spacing: -0.02em; }
.hero p { color: var(--text-muted-light); margin-top: 2px; }

/* ---- Dashboard resumo (mini-tiles) ---- */
.resumo { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 720px) { .resumo { grid-template-columns: repeat(4,1fr); } }
.rt { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; text-align: center; display: block; }
.rt .n { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--ink); line-height: 1.05; }
.rt .l { font-size: 0.72rem; color: var(--text-muted-light); margin-top: 6px; display: block; font-weight: 600; }
.rt.warn { background: var(--warn-bg); border-color: rgba(154,91,35,0.28); }
.rt.warn .n { color: var(--warn); }

/* ---- Calendário ---- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-mes { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-transform: capitalize; min-width: 170px; text-align: center; }
/* minmax(0,1fr) trava o mínimo de cada coluna em 0 — sem isso, cada coluna
   herda o mínimo `auto` do maior evento que cair nela em qualquer linha do
   mês, e as 7 colunas ficam com larguras desiguais (visto em produção: uma a
   29px, outra a 253px). Vale em toda largura de tela; o bloco mobile abaixo
   só acrescenta o min-width para a rolagem horizontal. */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dow { font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted-light); font-weight: 700; text-align: center; padding: 4px 0; }
.cal-dia { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius-sm); min-height: 92px; padding: 6px; display: flex; flex-direction: column; gap: 3px; transition: box-shadow var(--transition), border-color var(--transition); }
.cal-dia.vazio { background: transparent; border-color: transparent; box-shadow: none; }
.cal-dia.hoje { outline: 2px solid var(--gold); outline-offset: -1px; }
.cal-dia.sel { outline: 2px solid var(--navy); outline-offset: -1px; box-shadow: var(--shadow); }
.cal-dia[data-dia]:hover { box-shadow: var(--shadow); border-color: var(--gold); }
/* Filtro de status ativo: dias com agendamento mas fora do filtro ficam
   discretos (o dia continua clicável — o atendimento existe, só não é deste
   status), guiando o olho pros dias que batem com a categoria escolhida. */
.cal-dia.sem-match { opacity: 0.4; }
.cal-dia.sem-match:hover { opacity: 0.7; }
.cal-dia .dnum { font-size: 0.78rem; font-weight: 600; color: var(--text-muted-light); }
.cal-dia.hoje .dnum { color: var(--gold-d); font-weight: 700; }
.cal-ev { font-size: 0.7rem; line-height: 1.25; padding: 2px 5px; border-radius: 4px; background: rgba(28,37,65,0.07); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; display: block; transition: transform var(--transition); }
.cal-ev.agendado { background: rgba(28,37,65,0.09); }
.cal-ev.em_andamento { background: rgba(201,165,95,0.24); color: #7A5E22; }
.cal-ev.concluido { background: var(--ok-bg); color: var(--ok); }
.cal-ev.cancelado { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; }
.cal-ev.pendente_financeiro { background: var(--danger); color: #fff; }
.cal-mais { font-size: 0.66rem; color: var(--text-muted-light); font-weight: 600; }
/* Legenda clicável abaixo do calendário: cada status filtra a grade (mesmo
   filtro dos cartões do topo). ".on" marca o filtro ativo no momento. */
.cal-legenda-row { display: flex; align-items: center; gap: 10px 14px; margin-top: 14px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted-light); }
.cal-legenda { display: inline-flex; text-decoration: none; border-radius: 99px; transition: transform var(--transition), opacity var(--transition); }
.cal-legenda:hover { transform: translateY(-1px); }
.cal-legenda.on .badge { outline: 2px solid var(--gold); outline-offset: 2px; }
.cal-legenda-row:has(.cal-legenda.on) .cal-legenda:not(.on) { opacity: 0.5; }
.cal-legenda-limpar { font-size: 0.76rem; font-weight: 600; color: var(--gold-d); text-decoration: none; }
.cal-legenda-limpar:hover { text-decoration: underline; }
/* Desktop/tablet: colunas já uniformes e com sobra de espaço — células mais
   respiradas, texto do evento mais legível e o mês em maior destaque. */
@media (min-width: 720px) {
  .cal-mes { font-size: 1.25rem; }
  .cal-dia { min-height: 112px; padding: 8px; gap: 4px; border-radius: var(--radius); }
  .cal-dia .dnum { font-size: 0.85rem; }
  .cal-ev { font-size: 0.74rem; padding: 3px 7px; }
  .cal-ev:hover { transform: translateX(1px); }
  .cal-mais { font-size: 0.7rem; }
}

/* ---- Itens de serviço (linhas dinâmicas) ---- */
.item-linha { display: grid; grid-template-columns: 1.3fr 1.4fr 58px 88px 62px 82px 92px 34px; gap: 7px; align-items: center; margin-bottom: 8px; }
.item-linha .i-sub { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: 0.9rem; text-align: right; }
.item-linha .i-sub-bruto { display: block; text-decoration: line-through; color: var(--text-muted-light); font-weight: 400; font-size: 0.76rem; }
.item-linha .i-descpct, .item-linha .i-descval { font-size: 0.85rem; }
.item-linha .rm { background: transparent; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); color: var(--danger); cursor: pointer; height: 46px; }
.item-linha .i-foto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.i-foto-rm { font-size: 0.8rem; color: var(--danger); font-weight: 600; }
.i-foto-thumb-img { height: 54px; width: 54px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--ivory-d); }
/* Serviço por m²: altura × largura calculam a área (viram a Qtd sozinhos). */
.i-dims { display: none; grid-column: 1 / -1; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--ivory); border-radius: var(--radius-sm); padding: 8px 10px; }
.i-dims input { width: 100px; flex: 0 0 auto; }
.i-dims-x { color: var(--text-muted-light); font-weight: 700; flex: none; }
.i-dims-eq { margin-left: auto; font-size: 0.82rem; color: var(--text-muted-light); white-space: nowrap; }
.i-dims-eq strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.item-head { display: none; }
@media (min-width: 720px) {
  .item-head { display: grid; grid-template-columns: 1.3fr 1.4fr 58px 88px 62px 82px 92px 34px; gap: 7px; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted-light); font-weight: 700; margin-bottom: 6px; }
}
@media (max-width: 719px) {
  .item-linha { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--ivory-d); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; }
  .item-linha .i-serv, .item-linha .i-desc { grid-column: 1 / -1; }
  .item-linha .i-sub { grid-column: 1 / 2; text-align: left; align-self: center; font-size: 1.05rem; }
  .item-linha .rm { grid-column: 2 / 3; justify-self: end; width: 46px; }
}
.itens-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ivory-d); }
.itens-total .v { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); }

/* ---- Fechamento do pedido (desconto no total + resumo) ---- */
.pedido-fechamento { margin-top: 16px; display: grid; gap: 14px; }

.desc-box { background: var(--ivory); border: 1px solid var(--ivory-d); border-radius: var(--radius); padding: 14px 16px; }
.desc-box-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.desc-box-titulo { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.desc-box-obs { font-size: 0.78rem; }
.desc-box-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo-afixo { display: flex; align-items: stretch; background: #FFFEFA; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; margin: 0; }
.campo-afixo > span { padding: 0 12px; color: var(--text-muted-light); font-weight: 700; font-size: 0.9rem; background: var(--ivory-d); display: flex; align-items: center; }
.campo-afixo input { border: none !important; border-radius: 0 !important; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; }

.resumo-pedido { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); padding: 4px 16px; }
.resumo-pedido:empty { display: none; }
.rp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 0.92rem; }
.rp-row + .rp-row { border-top: 1px solid var(--ivory); }
.rp-row .rp-lbl { color: var(--text-muted-light); }
.rp-row .rp-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.rp-row.desc .rp-lbl, .rp-row.desc .rp-val { color: var(--danger); }
.rp-row.total { border-top: 2px solid var(--ivory-d) !important; margin-top: 2px; }
.rp-row.total .rp-lbl { color: var(--ink); font-weight: 700; font-size: 1rem; }
.rp-row.total .rp-val { font-family: var(--font-display); color: var(--ink); font-weight: 800; font-size: 1.35rem; }
.rp-row.liquido .rp-val { color: var(--link); }
/* Cascata do resultado: linhas de subtotal no meio do caminho ("= faturamento
   líquido", "= resultado operacional"), com peso entre a linha comum e o total. */
.rp-row.sub { border-top: 2px solid var(--ivory-d) !important; }
.rp-row.sub .rp-lbl { color: var(--ink); font-weight: 700; }
.rp-row.sub .rp-val { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.rp-pct { font-size: 0.78rem; color: var(--text-muted-light); font-weight: 600; margin-left: 6px; }
.rp-row .rp-lbl small { display: block; font-size: 0.75rem; color: var(--text-muted-light); font-weight: 400; }
/* Chip da natureza da categoria (Configuração → Categorias) */
.nat-chip { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--ivory-d); color: var(--text-muted-light); }
.nat-chip.pessoal { background: var(--warn-bg); color: var(--warn); }
.nat-chip.investimento { background: rgba(201,165,95,0.20); color: var(--gold-d); }

/* ---- Linha do DRE que abre e mostra os lançamentos do total ----
   <details> nativo: o summary recebe .rp-row e vira a própria linha. Trocar o
   display do summary some com o triângulo padrão, então desenhamos a seta. */
.dre-det + .dre-det { border-top: 1px solid var(--ivory); }
.dre-det > summary { cursor: pointer; list-style: none; }
.dre-det > summary::-webkit-details-marker { display: none; }
.dre-det > summary .rp-lbl::before { content: '▸'; display: inline-block; width: 1.1em; font-size: 0.85em; color: var(--text-muted-light); }
.dre-det[open] > summary .rp-lbl::before { content: '▾'; }
.dre-det > summary:hover .rp-lbl, .dre-det > summary:focus-visible .rp-lbl { color: var(--ink); }
.dre-det[open] > summary .rp-lbl { color: var(--ink); font-weight: 600; }
.dre-itens { padding: 0 0 12px 1.1em; }
.dre-item { display: grid; grid-template-columns: 3.1em 1fr auto; gap: 10px; align-items: baseline;
  padding: 7px 6px; font-size: 0.86rem; color: inherit; text-decoration: none;
  border-radius: var(--radius-sm); transition: background var(--transition); }
.dre-item + .dre-item { border-top: 1px dashed var(--ivory-d); }
a.dre-item:hover { background: var(--ivory); }
.dre-i-data { color: var(--text-muted-light); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.dre-i-desc small { color: var(--text-muted-light); font-size: 0.76rem; margin-left: 4px; }
.dre-i-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dre-i-total { border-top: 1.5px solid var(--ivory-d) !important; font-weight: 700; color: var(--ink); }

/* Célula clicável da matriz do fluxo de caixa: sublinhado pontilhado discreto
   sinaliza que dá para abrir, sem transformar a tabela num campo de links. */
.fc-cel { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border-light);
  padding-bottom: 1px; transition: color var(--transition), border-color var(--transition); }
.fc-cel:hover { color: var(--link); border-bottom-color: var(--link); }
.fc-cel.on { color: var(--navy); background: var(--gold); border-radius: 4px; padding: 2px 6px;
  border-bottom: 0; font-weight: 700; }
:root[data-theme="dark"] .fc-cel.on { color: #14161F; }

/* ---- Selo de variação contra o mês anterior (nos cartões de indicador) ----
   Verde/terracota dizem se melhorou ou piorou no sentido daquele indicador —
   custo que sobe fica vermelho, faturamento que sobe fica verde. */
.delta { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text-muted-light); white-space: nowrap; }
.delta.pos { color: var(--ok); }
.delta.neg { color: var(--danger); }
.delta.flat { color: var(--text-muted-light); font-weight: 600; }
.delta .d-vs { color: var(--text-muted-light); font-weight: 400; }
.stat .delta { display: block; margin-top: 5px; white-space: normal; }
.rp-lbl .delta { display: block; margin-top: 3px; white-space: normal; }

/* ---- Barra de progresso da meta do mês ---- */
.meta-bar { height: 14px; border-radius: 99px; background: var(--ivory-d); overflow: hidden; }
.meta-bar-in { height: 100%; border-radius: 99px; background: var(--gold);
  transition: width 0.4s var(--ease); min-width: 3px; }
.meta-bar-in.ok { background: var(--ok); }

/* ---- Chat IA ---- */
.chat { display: flex; flex-direction: column; height: 60vh; min-height: 360px; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.chat-bolha { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; }
.chat-bolha.user { align-self: flex-end; background: var(--navy); color: var(--ivory); border-bottom-right-radius: 4px; }
.chat-bolha.ia { align-self: flex-start; background: var(--ivory-d); color: var(--text-on-light); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form input { flex: 1; }

/* ---- Pílulas de categoria / filtro ---- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--border-light); background: var(--white); font-weight: 600; font-size: 0.85rem; color: var(--text-muted-light); cursor: pointer; text-decoration: none; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.pill:hover { border-color: var(--gold); }
.pill.on { border-color: var(--gold); background: rgba(201,165,95,0.14); color: #7A5E22; }

/* ---- Serviço card (catálogo) ---- */
.serv-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .serv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .serv-grid { grid-template-columns: 1fr 1fr 1fr; } }
.serv-card { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--gold); }
.serv-card .nome { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.serv-card .preco { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.serv-card .meta { font-size: 0.78rem; color: var(--text-muted-light); }
.serv-card .acoes { display: flex; gap: 8px; margin-top: 6px; }

/* ---- Kanban (pipeline de orçamentos) ---- */
.kanban { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 720px) { .kanban { grid-template-columns: repeat(3,1fr); } }
.kb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kb-card { display: block; background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 11px 13px; margin-bottom: 8px; border-left: 3px solid var(--gold); color: inherit; transition: box-shadow var(--transition); }
.kb-card:hover { box-shadow: var(--shadow); }
.kb-nome { font-weight: 600; color: var(--ink); display: block; font-size: 0.92rem; }
.kb-meta { font-size: 0.78rem; color: var(--text-muted-light); }

/* ---- Foto do estofado (orçamento) ---- */
.orc-foto { max-width: 260px; border-radius: var(--radius); border: 1px solid var(--ivory-d); margin-top: 8px; display: block; }

/* ============================================================
   Mobile — usabilidade (telas até 719px)
   ============================================================ */
@media (max-width: 719px) {
  html { font-size: 15px; }
  .wrap { padding: 14px 12px 56px; }
  .card { padding: 15px; border-radius: var(--radius); margin-bottom: 14px; }
  h1, .hero h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }

  /* Topbar: marca e usuário na 1ª linha; menu em faixa única rolável */
  .topbar-in { padding: 0 12px; gap: 4px 10px; min-height: 52px; }
  .brand-logo { height: 26px; }
  .user { margin-left: auto; font-size: 0.8rem; gap: 10px; }
  .nav2 { order: 3; width: 100%; flex-basis: 100%; padding-bottom: 4px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav2::-webkit-scrollbar { display: none; }
  .n2-solo, .n2-trig { padding: 9px 12px; font-size: 0.88rem; border-bottom-width: 2px; }
  .n2-pop { min-width: 200px; }

  /* Tabelas mais compactas (continuam rolando na horizontal) */
  table { font-size: 0.86rem; }
  thead th, tbody td { padding: 9px 10px; }

  /* Botões com alvo de toque confortável */
  .btn { padding: 12px 18px; }
  .btn-sm { padding: 9px 14px; font-size: 0.85rem; }
  .fup-toggle { padding: 9px 12px; } /* acompanha a altura dos botões ao lado */
  /* Ações em célula de tabela: empilham e não estouram a linha */
  td > form { display: inline-block; }
  td .btn-sm, td form .btn-sm { margin: 2px 0; }

  /* Números um pouco menores para caber */
  .stat .n { font-size: 1.5rem; }
  .rt .n { font-size: 1.4rem; }
  .itens-total .v { font-size: 1.2rem; }

  /* Calendário mais enxuto */
  .cal { gap: 4px; }
  .cal .dow { font-size: 0.62rem; }
  .cal-dia { min-height: 58px; padding: 4px 4px 5px; }
  .cal-mes { min-width: 0; font-size: 1rem; }
  .cal-ev { font-size: 0.64rem; padding: 1px 4px; }
  /* O `1fr` das colunas é minmax(auto,1fr), e o piso `auto` era ditado pelo
     .cal-ev (white-space: nowrap) — 7 colunas assim esticavam a PÁGINA toda
     para ~974px. Com minmax(0,1fr) as colunas obedecem a faixa, e o mês rola
     na horizontal dentro dela: nenhum evento some e o corpo não arrasta. */
  .cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -3px; padding: 0 3px 4px;
    scrollbar-width: none; }
  .cal-wrap::-webkit-scrollbar { display: none; }
  .cal { min-width: 600px; }

  /* Tabelas com coluna de texto livre (Serviços/Descrição/Observação): com
     width:100% o navegador comprimia essa coluna a ~108px e a linha virava
     uma torre de 400px. Com largura mínima elas rolam dentro do .table-wrap,
     mantendo a coluna legível. Nada é escondido. */
  .t-wide { min-width: 560px; }

  /* Lista de atendimentos: em vez de espremer a coluna do meio (uma palavra
     por linha), o card quebra em duas faixas — hora + status em cima,
     cliente/serviços/valor em largura total embaixo. Nada some. */
  .os-item { flex-wrap: wrap; align-items: center; gap: 9px 10px; padding: 13px 14px; }
  .os-hora { order: 1; min-width: 0; font-size: 0.8rem; }
  .os-item > .badge, .os-arrow { order: 2; margin-left: auto; }
  .os-main { order: 3; flex: 1 0 100%; }
  .os-main .nome { font-size: 0.98rem; line-height: 1.35; }
  .os-main .srv { font-size: 0.8rem; line-height: 1.5; }
  /* Valor sai de dentro do texto corrido e ganha destaque próprio */
  .os-valor { display: block; margin-top: 5px; font-size: 0.92rem; }
  .os-valor::before { content: none; }

  /* Áreas de rolagem horizontal ganham um respiro */
  .table-wrap { margin: 0 -3px; }
}

/* ---- Autocomplete (busca de serviço / cliente) ---- */
.lw-ac {
  position: absolute;
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 4px;
}
.lw-ac-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text-on-light);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lw-ac-item.on,
.lw-ac-item:hover { background: var(--ivory-d); }

/* ============================================================
   Cabeçalho com ações · abas · barra de busca · modal
   ============================================================ */

/* ---- Cabeçalho da página com ações à direita ---- */
.page-head .hero { margin-bottom: 0; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Busca rápida discreta (ex.: cliente na agenda) — pílula pequena ao lado
   do botão de ação principal, não uma busca-bar de página inteira.
   Encolhe (flex+min-width:0) para caber ao lado do botão até no celular;
   o botão fica com flex:none para não perder o texto por baixo. */
.busca-rapida { display: inline-flex; align-items: center; gap: 6px; background: var(--white);
  border: 1px solid var(--ivory-d); border-radius: 999px; padding: 8px 12px;
  flex: 1 1 100px; min-width: 0; }
.busca-rapida .busca-ico { color: var(--text-muted-light); font-size: 0.82rem; flex: none; }
.busca-rapida input { border: none; box-shadow: none; background: transparent; padding: 0;
  width: 100%; min-width: 0; font-size: 0.85rem; }
.busca-rapida input:focus { border: none; box-shadow: none; }
.ph-actions > .btn { flex: none; }
.busca-rapida-x { color: var(--text-muted-light); text-decoration: none; font-size: 0.85rem;
  line-height: 1; padding: 2px; flex: none; }
.busca-rapida-x:hover { color: var(--ink); }

/* ---- Abas (segmented control) ---- */
.tabs { display: inline-flex; gap: 4px; background: var(--white); border: 1px solid var(--ivory-d);
  border-radius: var(--radius); padding: 5px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.tab { appearance: none; border: none; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem; color: var(--text-muted-light); padding: 9px 20px;
  border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--navy); color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
/* Variante com muitas abas (Configurações): quebra no desktop, rola no mobile */
.tabs--config { display: flex; flex-wrap: wrap; max-width: 100%; }
/* Variante para sub-abas (dentro de uma aba principal): mais discreta, sem sombra */
.tabs--sub { background: var(--ivory); border: none; box-shadow: none; padding: 4px; margin-bottom: 16px; }
.tabs--sub .tab { font-size: 0.85rem; padding: 7px 16px; }
.tabs--sub .tab.on { background: var(--gold); color: var(--navy); }

/* ---- Barra de busca (ícone + campo sem moldura, num card arredondado) ---- */
.busca-bar { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--ivory-d);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2px 14px; margin-bottom: 16px; }
.busca-bar .busca-ico { color: var(--text-muted-light); font-size: 0.95rem; flex: none; }
.busca-bar input { border: none; box-shadow: none; background: transparent; padding: 12px 0; }
.busca-bar input:focus { border: none; box-shadow: none; }

/* ---- Modal (novo cliente, importar) ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; background: rgba(28,37,65,0.55); overflow-y: auto; }
.modal.on { display: flex; }
.modal-box { background: var(--white); border: 1px solid var(--ivory-d); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); width: 100%; max-width: 640px; margin: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--ivory-d); position: sticky; top: 0; background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1; }
.modal-head h2 { margin: 0; }
.modal-x { appearance: none; border: none; background: transparent; cursor: pointer; font-size: 1.15rem; line-height: 1;
  color: var(--text-muted-light); padding: 6px 10px; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.modal-x:hover { background: var(--ivory-d); color: var(--ink); }
.modal-body { padding: 22px; }
.modal-body label:first-child { margin-top: 0; }

@media (max-width: 719px) {
  .tabs { display: flex; }
  .tab { flex: 1; text-align: center; padding: 9px 12px; }
  /* Muitas abas: rolam na horizontal em vez de espremer o texto (ou estourar
     a página). Vale para qualquer tira de abas — a dos Relatórios passou a
     estourar quando ganhou a quarta aba (Rentabilidade). */
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: 0 0 auto; }
  .modal { padding: 12px; }
  .modal-body { padding: 16px; }
}

/* ---- Barra flutuante de seleção em lote (Financeiro) ---- */
.fin-selbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 150;
  display: flex; align-items: center; gap: 16px; background: var(--navy); color: var(--text-on-dark);
  padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.fin-selbar[hidden] { display: none; }
.fin-selbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Boxes de previsão clicáveis (abre a lista de vendas do período) ---- */
.prev-card { cursor: pointer; transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.prev-card:hover { box-shadow: var(--shadow); border-color: var(--gold); transform: translateY(-1px); }
.prev-card.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,165,95,0.35), var(--shadow-sm); }
.prev-hint { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ivory-d);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--gold-d);
  display: flex; align-items: center; justify-content: space-between; }
.prev-hint-seta { transition: transform var(--transition); }
.prev-card.on .prev-hint-seta { transform: rotate(180deg); }
.prev-lista { scroll-margin-top: 80px; }

/* ---- Foto clicável (afordância p/ abrir no visualizador) ---- */
.foto-thumb { cursor: zoom-in; }
.foto-thumb img { transition: transform var(--transition); }
.foto-thumb:hover img { transform: scale(1.05); }

/* ---- Visualizador de fotos (lightbox) — navega sem sair do sistema ---- */
.lw-lb { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column;
  background: rgba(13,17,32,0.94); -webkit-print-color-adjust: exact; }
.lw-lb.on { display: flex; }
.lw-lb-bar { flex: none; display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 16px; gap: 12px; }
.lw-lb-count { margin-right: auto; color: var(--text-muted-dark); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.lw-lb-x { appearance: none; border: none; background: rgba(255,255,255,0.08); color: var(--ivory);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: background var(--transition); }
.lw-lb-x:hover { background: rgba(255,255,255,0.18); }
.lw-lb-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 0 8px; }
.lw-lb-img { max-width: min(92vw, 1100px); max-height: 100%; object-fit: contain; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); display: block; }
.lw-lb-nav { appearance: none; border: none; background: rgba(255,255,255,0.08); color: var(--ivory);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  flex: none; transition: background var(--transition), color var(--transition); }
.lw-lb-nav:hover { background: var(--gold); color: var(--navy); }
.lw-lb-prev { margin-right: 10px; }
.lw-lb-next { margin-left: 10px; }
.lw-lb.lw-lb-single .lw-lb-nav { visibility: hidden; }
.lw-lb-cap { flex: none; text-align: center; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lw-lb-cap-main { color: var(--ivory); font-weight: 700; font-size: 0.95rem; }
.lw-lb-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.12); color: var(--text-muted-dark); }
.lw-lb-tag--depois { background: rgba(44,74,48,0.32); color: #B9D9BB; }
.lw-lb-tag--antes { background: rgba(201,165,95,0.22); color: var(--gold); }
@media (max-width: 719px) {
  .lw-lb-main { padding: 0 4px; }
  .lw-lb-nav { width: 40px; height: 40px; font-size: 1.35rem; }
  .lw-lb-prev { margin-right: 4px; }
  .lw-lb-next { margin-left: 4px; }
  .lw-lb-img { max-width: 96vw; }
  .lw-lb-cap-main { font-size: 0.88rem; }
}

/* ---- Print (orçamento) ---- */
@media print {
  .topbar, .nav, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .lw-ac { display: none !important; }
}
