/* =========================================================
   Brinquedos Crocodius — Sistema de Propostas
   Base: tema do sistema de propostas da agência (menu de ícones, barra superior, cartões),
   nas cores da marca: verde #3DB54A · magenta #E8185D · azul #1F5BFF · amarelo #FFD21F · tinta #1B1B1F.
   Tipos: Baloo 2 (títulos e números) · Nunito Sans (texto) · IBM Plex Mono (códigos e datas).
   Assinatura visual: faixa de quatro cores (as cores do logotipo).
   ========================================================= */
:root {
  --marca: #1F5BFF;
  --marca-2: #1848D6;
  --marca-escuro: #10308F;
  --marca-claro: #E8EEFF;
  --rosa: #E8185D;
  --rosa-claro: #FDE7EF;
  --noite: #1B1B1F;
  --noite-2: #26262C;
  --noite-3: #34343C;
  --verde: #3DB54A;
  --verde-escuro: #1E7A2A;
  --verde-claro: #E6F6E8;
  --sol: #FFD21F;
  --sol-claro: #FFF9DB;
  --fundo: #F4F6F2;
  --grafite: #1B1B1F;
  --grafite-2: #141417;
  --papel: #FFFFFF;
  --tinta: #1B1B1F;
  --tinta-2: #454850;
  --muted: #5E626C;
  --linha: #E1E5E9;
  --linha-2: #ECEFF2;
  --pix: #1E7A2A;
  --pix-bg: #E6F6E8;
  --ok: #1E7A2A;
  --aviso: #8A5A00;
  --aviso-bg: #FFF4C2;
  --erro: #C4161C;
  --erro-bg: #FDECEC;
  --whats: #1F8F55;
  --r: 10px;
  --r-sm: 6px;
  --sombra: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --f-display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--f-body); color: var(--tinta); background: var(--fundo); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--marca); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; }
.sr-only, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }

/* ---------- Faixa de cores (assinatura da marca) ---------- */
.stripes { height: 8px; background: linear-gradient(90deg, var(--verde) 0 25%, var(--sol) 25% 50%, var(--rosa) 50% 75%, var(--marca) 75% 100%); }

/* ---------- Estrutura (tema Admin.io adaptado à marca) ---------- */
.app { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 100vh; }
.nav-min .app { grid-template-columns: 76px minmax(0, 1fr); }
.side {
  grid-row: 1 / span 3; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; scrollbar-width: none;
  display: flex; flex-direction: column; background: var(--grafite); color: #B5BAC2;
  box-shadow: 1px 0 3px rgba(0, 0, 0, .18);
}
.side::-webkit-scrollbar { display: none; }
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px 18px; background: var(--grafite-2); color: #fff; text-align: center; }
.side-brand:hover { text-decoration: none; }
.brand-circle { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.side-name { font-family: var(--f-display); font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: #E2E5EA; }
.wordmark { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: .95; letter-spacing: .03em; text-transform: uppercase; }
.wordmark small { display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; padding: 2px 4px 1px; margin-left: 2px; border-radius: 3px; background: var(--marca); color: #fff; vertical-align: 2px; }
.nav { display: flex; flex-direction: column; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px 16px; border-left: 3px solid transparent; color: #A3A8B1; font-size: 13px; text-align: center; transition: background .15s, color .15s; }
.nav a .ico { color: #DCE0E5; }
.nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .07); border-left-color: var(--verde); color: #fff; }
.nav .badge { position: absolute; top: 10px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #C62828; color: #fff; font: 700 11px/20px var(--f-body); text-align: center; }
.side-foot { margin-top: auto; padding: 8px 0 12px; }
.logout { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 14px 6px; border: 0; background: none; color: #A3A8B1; font-size: 13px; }
.logout:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-min .side-name, .nav-min .nav a span, .nav-min .logout span { display: none; }
.nav-min .brand-circle { width: 52px; height: 52px; }
.nav-min .brand-circle .brand-mark { width: 38px; height: 38px; }
.nav-min .nav .badge { left: calc(50% + 4px); }

.topbar { grid-column: 2; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 76px; padding-right: clamp(14px, 2.5vw, 32px); background: var(--papel); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .06); }
.topbar .square { display: grid; place-items: center; width: 56px; height: 44px; margin-right: 18px; border: 0; border-radius: 0 3px 3px 0; background: var(--marca); color: #fff; box-shadow: 0 2px 5px rgba(31, 91, 255, .35); }
.topbar .square:hover { background: var(--marca-2); }
.quick { display: flex; gap: 2px; }
.quick a { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--marca); transition: background .15s; }
.quick a:hover, .quick a.on { background: var(--marca-claro); text-decoration: none; }
.quick .dot { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #C62828; color: #fff; font: 700 10.5px/18px var(--f-body); text-align: center; }
.top-brand { display: none; align-items: center; gap: 8px; color: var(--tinta); }
.top-brand:hover { text-decoration: none; }
.hello { margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 28px; color: var(--muted); }
.hello:hover, .hello.on { background: var(--linha-2); text-decoration: none; }
.hello-text { text-align: right; font-size: 13.5px; line-height: 1.25; }
.hello-text strong { color: var(--tinta); font-weight: 600; }
.hello-text small { display: block; font-size: 11.5px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); color: #fff; font-weight: 700; flex: none; }
.crumbs { grid-column: 2; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 clamp(18px, 3vw, 40px); background: #E6E9EC; color: var(--muted); font-size: 13.5px; }
.crumbs a { color: var(--muted); display: inline-flex; }
.crumbs a:hover { color: var(--marca); }
.crumbs .sep { color: #B5BAC2; }
.crumbs .cur { color: var(--tinta-2); }
.scrim { display: none; }
.main { grid-column: 2; padding: 28px clamp(18px, 3vw, 40px) 80px; min-width: 0; max-width: 1520px; width: 100%; }

/* ---------- Cabeçalho de página ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.page-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: .92; letter-spacing: .01em; text-transform: uppercase; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.section-title { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid #D4D8DD; border-radius: 3px; background: var(--papel); color: var(--tinta);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; border-color: #CDD1D7; background: #F9FAFB; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--marca); border-color: var(--marca); color: #fff; box-shadow: 0 2px 5px rgba(31, 91, 255, .3); }
.btn.primary:hover { background: var(--marca-2); border-color: var(--marca-2); }
.btn.dark { background: var(--noite); border-color: var(--noite); color: #fff; }
.btn.pix { background: var(--pix); border-color: var(--pix); color: #fff; }
.btn.whats { background: var(--whats); border-color: var(--whats); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(27, 27, 31, .05); }
.btn.danger { color: var(--erro); }
.btn.danger:hover { background: var(--erro-bg); border-color: #F1C4BF; }
.btn.sm { height: 34px; padding: 0 11px; font-size: 12px; border-radius: 4px; }
.btn.lg { height: 54px; padding: 0 22px; font-size: 14.5px; border-radius: 4px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 42px; padding: 0; }
.btn.sm.icon-only { width: 34px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 4px; background: transparent; color: inherit; }
.icon-btn.accent { background: var(--marca); color: #fff; }

/* ---------- Cartões ---------- */
.card { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--r); box-shadow: var(--sombra); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--linha-2); }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 18px 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 13px; border: 1.5px solid var(--linha); border-radius: 4px;
  background: var(--papel); font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236F6762' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 13px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #D0D4DA; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 4px rgba(31, 91, 255, .12); }
.input.invalid { border-color: var(--erro); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.input.valid { border-color: var(--ok); }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 46px; margin-left: -1.5px; }
.input-affix { position: relative; }
.input-affix > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-affix .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; }
.c-9 { grid-column: span 9; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; user-select: none; }
.check input { width: 19px; height: 19px; accent-color: var(--marca); }
.seg { display: inline-flex; padding: 3px; background: var(--linha-2); border-radius: 4px; gap: 2px; }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; background: none; padding: 7px 12px; border-radius: 4px; font-weight: 600; font-size: 13.5px; color: var(--tinta-2); }
.seg button.on, .seg a.on { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg a:hover { text-decoration: none; }
.field-status { font-size: 12.5px; min-height: 18px; }
.field-status.ok { color: var(--ok); }
.field-status.erro { color: var(--erro); }

/* ---------- Alertas, pílulas, toasts ---------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-weight: 500; }
.alert.ok { background: var(--pix-bg); color: #0B5D50; }
.alert.erro { background: var(--erro-bg); color: var(--erro); }
.alert.aviso { background: var(--aviso-bg); color: #7A4A0C; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--linha-2); color: var(--tinta-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.aberta { background: #EBEFF5; color: #2F4A70; }
.pill.aprovada { background: var(--pix-bg); color: #0B6B5C; }
.pill.recusada, .pill.cancelada { background: var(--erro-bg); color: var(--erro); }
.pill.expirada { background: var(--aviso-bg); color: var(--aviso); }
.pill.rascunho { background: transparent; color: var(--muted); border: 1.5px dashed #CDD2D8; }
.pill.novo { background: var(--marca-claro); color: var(--marca); }
.pill.convertido { background: var(--pix-bg); color: #0B6B5C; }
.pill.perdido { background: var(--linha-2); color: var(--muted); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 12px 16px; border-radius: 4px; background: var(--noite); color: #fff; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: toast-in .25s ease-out; }
.toast.erro { background: var(--erro); }
.toast.ok .ico { color: #7FE0C9; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 11px 14px; text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--linha); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--linha-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #F9FAFB; }
.table .right { text-align: right; }
.table .strong { font-weight: 600; }
.row-link { color: var(--tinta); font-weight: 600; }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .ico { margin: 0 auto 12px; color: #B9BEC6; }
.empty strong { display: block; color: var(--tinta); font-size: 16px; margin-bottom: 4px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--linha-2); }

/* ---------- Filtros ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 240px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; border-bottom: 1px solid var(--linha); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--tinta); text-decoration: none; }
.tabs a.on { color: var(--marca); border-color: var(--marca); }
.tabs .count { font: 500 11.5px var(--f-mono); color: var(--muted); background: var(--linha-2); border-radius: 6px; padding: 1px 6px; }

/* ---------- Painel ---------- */
.kpis { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; padding: 18px 20px 20px; border-radius: var(--r); background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra); overflow: hidden; }
.kpi .label { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .value { display: block; margin-top: 10px; font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: .55em; font-weight: 700; margin-right: 3px; }
.kpi .sub { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.kpi.hero { background: var(--marca); border-color: var(--marca); color: #fff; padding-bottom: 30px; }
.kpi.hero .label, .kpi.hero .sub { color: rgba(255, 255, 255, .72); }
.kpi.hero .value { font-size: 46px; }
.kpi.hero .stripes { position: absolute; left: 0; right: 0; bottom: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.chart { padding: 8px 18px 14px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--marca); }
.chart .bar:hover { fill: var(--verde-escuro); }
.chart .grid line { stroke: var(--linha-2); }
.chart text { font-family: var(--f-mono); font-size: 10.5px; fill: var(--muted); }
.top-list { list-style: none; margin: 0; padding: 6px 22px 16px; }
.top-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--linha-2); }
.top-list li:last-child { border-bottom: 0; }
.top-list .meter { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--linha-2); overflow: hidden; }
.top-list .meter i { display: block; height: 100%; background: var(--verde); border-radius: 3px; }
.period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.period form { display: flex; gap: 6px; align-items: center; }
.period .input { height: 38px; width: 150px; font-size: 14px; }

/* ---------- Montador de proposta ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.builder-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step-title { display: flex; align-items: center; gap: 10px; }
.step-title h2 { font-family: var(--f-display); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.doc-switch { display: flex; gap: 10px; align-items: flex-start; }
.doc-switch .field { flex: 1; }
.client-found { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 4px; background: var(--pix-bg); color: #0B5D50; font-size: 13.5px; font-weight: 500; }
.client-search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--papel); border: 1px solid var(--linha); border-radius: 4px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .25); overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; border-bottom: 1px solid var(--linha-2); }
.suggest button:hover, .suggest button.on { background: #F4F6F8; }
.suggest small { display: block; color: var(--muted); }
.more-toggle { border: 0; background: none; color: var(--marca); font-weight: 600; padding: 4px 0; display: inline-flex; gap: 6px; align-items: center; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab { display: flex; align-items: center; gap: 8px; flex: none; height: 42px; padding: 0 14px; border-radius: 21px; border: 1.5px solid var(--linha); background: var(--papel); font-weight: 600; font-size: 14px; color: var(--tinta-2); }
.cat-tab:hover { border-color: #CDD2D8; }
.cat-tab.on { background: var(--noite); border-color: var(--noite); color: #fff; }
.cat-tab .ico { opacity: .85; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.prod-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1.5px solid var(--linha); border-radius: 4px; background: var(--papel); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.prod-card:hover { border-color: var(--verde); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(27, 27, 31, .35); }
.prod-card.on { border-color: var(--marca); box-shadow: 0 0 0 3px rgba(31, 91, 255, .15); }
.prod-card .thumb { aspect-ratio: 4 / 3; background: #F2F7F1; display: grid; place-items: center; overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .thumb.contain img { object-fit: contain; padding: 6px; }
.prod-card .meta { padding: 10px 12px 12px; }
.prod-card .meta strong { display: block; font-size: 14px; line-height: 1.25; }
.prod-card .meta small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.search-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.search-row .input-affix { flex: 1; }
.search-row .input-affix .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-row .input-affix .input { padding-left: 42px; }

.config-panel { margin-top: 16px; border: 1.5px solid var(--noite); border-radius: 4px; overflow: hidden; background: var(--papel); animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.config-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--noite); color: #fff; }
.config-head img { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; background: #F2F7F1; }
.config-head strong { display: block; font-size: 16px; }
.config-head small { color: #C5C9D0; }
.config-head .btn { margin-left: auto; color: #fff; }
.config-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.opt-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.opt-label .mono { font-size: 11px; color: var(--muted); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1.5px solid var(--linha); border-radius: 19px; background: var(--papel); font-weight: 600; font-size: 13.5px; }
.chip:hover { border-color: #CDD2D8; }
.chip.on { border-color: var(--marca); background: var(--marca-claro); color: var(--marca); }
.chip .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.chip small { color: var(--muted); font-weight: 500; }
.config-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--linha-2); background: #F9FAFB; }
.config-foot .field { width: 140px; }
.config-foot .price-preview { margin-left: auto; text-align: right; }
.config-foot .price-preview small { display: block; color: var(--muted); font-size: 12px; }
.config-foot .price-preview strong { font-family: var(--f-display); font-size: 28px; font-weight: 800; }
.stepper { display: flex; height: 46px; border: 1.5px solid var(--linha); border-radius: 4px; overflow: hidden; background: var(--papel); }
.stepper button { width: 40px; border: 0; background: #F3F5F7; font-size: 20px; font-weight: 600; color: var(--tinta-2); }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; font: 600 16px var(--f-body); font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }
.area-calc { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; border-radius: 4px; background: #F3F6F4; }
.area-calc .field { width: 120px; }
.area-calc .eq { font-family: var(--f-mono); color: var(--muted); padding-bottom: 12px; }

.items-table td { vertical-align: top; }
.items-table .desc { width: 100%; min-width: 220px; }
.items-table .code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }
.items-table textarea { width: 100%; border: 1.5px solid transparent; border-radius: 4px; padding: 6px 8px; margin: -7px -9px; resize: none; background: transparent; font-weight: 600; line-height: 1.35; overflow: hidden; }
.items-table textarea:hover { border-color: var(--linha); }
.items-table textarea:focus { outline: none; border-color: var(--marca); background: var(--papel); }
.items-table .qty, .items-table .price { width: 108px; height: 38px; padding: 0 9px; border: 1.5px solid var(--linha); border-radius: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.items-table .qty:focus, .items-table .price:focus { outline: none; border-color: var(--marca); }
.items-table .price.zero { border-color: #E9A39B; background: var(--erro-bg); }
.items-table .unit { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); text-align: right; }
.items-table .line-total { font-weight: 700; white-space: nowrap; padding-top: 22px; }
.items-table .tools { white-space: nowrap; padding-top: 16px; }
.items-empty { display: flex; align-items: center; gap: 14px; padding: 22px; color: var(--muted); }
.items-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--linha-2); }
.snippets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.snippets button { border: 1px dashed #CBD0D6; background: #F9FAFB; border-radius: 4px; padding: 5px 10px; font-size: 12.5px; color: var(--tinta-2); text-align: left; }
.snippets button:hover { border-color: var(--verde); background: #FFF; }

.summary { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary-card { background: var(--noite); color: #E8EAEE; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(27, 27, 31, .6); }
.summary-card .top { padding: 20px 20px 16px; }
.summary-card .line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: #C9CCD4; }
.summary-card .line b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-card .discount { display: flex; gap: 6px; margin: 8px 0 6px; }
.summary-card .discount .seg { background: rgba(255, 255, 255, .08); }
.summary-card .discount .seg button { color: #C9CCD4; padding: 7px 10px; }
.summary-card .discount .seg button.on { background: #fff; color: var(--noite); }
.summary-card .discount input { flex: 1; min-width: 0; height: 38px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 10px; text-align: right; font-variant-numeric: tabular-nums; }
.summary-card .discount input:focus { outline: none; border-color: var(--verde); }
.pix-total { padding: 18px 20px 20px; background: var(--marca); position: relative; }
.pix-total .label { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.pix-total .value { display: block; margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pix-total .stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.installments { padding: 14px 20px 18px; }
.installments .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.installments .head span { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9EA3AD; }
.installments .head select { height: 30px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); background: var(--noite-2); color: #fff; padding: 0 6px; font-size: 13px; }
.inst-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 13px; }
.inst-list div { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); color: #C9CCD4; font-variant-numeric: tabular-nums; }
.inst-list b { color: #fff; font-weight: 600; }
.inst-off { color: #9EA3AD; font-size: 13px; }
.summary .btn.lg { height: 56px; }
.summary .save-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.validity-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.validity-chips button { white-space: nowrap; border: 1px solid var(--linha); background: var(--papel); border-radius: 7px; padding: 3px 8px; font: 500 12px var(--f-mono); color: var(--tinta-2); }
.validity-chips button.on { border-color: var(--marca); color: var(--marca); background: var(--marca-claro); }
.mobile-bar { display: none; }

.items-table tr.flash td { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: #FFF4C2; } 100% { background: transparent; } }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; padding: 7px 10px; border-radius: 4px; background: var(--noite); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }

/* ---------- Visualização da proposta (interno) ---------- */
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.doc-toolbar .spacer { flex: 1; }
.status-strip { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 14px 18px; margin-bottom: 18px; border-radius: 4px; background: var(--papel); border: 1px solid var(--linha); }
.status-strip .item { display: flex; flex-direction: column; gap: 2px; }
.status-strip .item small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status-strip .item b { font-weight: 600; }
.doc-frame { background: #E5E8EC; border-radius: 4px; padding: clamp(10px, 3vw, 36px); }

/* ---------- Produtos ---------- */
.products-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-list { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.cat-list button { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border: 0; border-radius: 4px; background: none; text-align: left; font-weight: 600; color: var(--tinta-2); }
.cat-list button:hover { background: #F2F4F6; }
.cat-list button.on { background: var(--noite); color: #fff; }
.cat-list button .n { margin-left: auto; font: 500 11.5px var(--f-mono); opacity: .7; }
.cat-list .add-cat { color: var(--marca); margin-top: 6px; border-top: 1px solid var(--linha-2); border-radius: 0 0 9px 9px; padding-top: 12px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; border-radius: 4px; background: var(--papel); border: 1px solid var(--linha); overflow: hidden; box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(27, 27, 31, .45); }
.pcard.off { opacity: .6; }
.pcard .thumb { position: relative; aspect-ratio: 16 / 11; background: #F2F7F1; overflow: hidden; border: 0; padding: 0; width: 100%; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .thumb .tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(27, 27, 31, .78); color: #fff; font: 500 11px var(--f-mono); letter-spacing: .04em; }
.pcard .thumb .tag.off { background: var(--erro); }
.pcard .body { padding: 14px 16px 12px; flex: 1; }
.pcard h3 { font-size: 16px; font-weight: 700; }
.pcard .brand-line { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pcard .sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.pcard .sizes span { font: 500 11.5px var(--f-mono); padding: 3px 6px; border-radius: 5px; background: #EEF2F0; color: var(--tinta-2); }
.pcard .sizes span.zero { background: var(--erro-bg); color: var(--erro); }
.pcard .price-range { margin-top: 10px; font-weight: 700; }
.pcard .foot { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--linha-2); }
.pcard .foot .btn { flex: 1; }
.pcard.add { align-items: center; justify-content: center; min-height: 280px; border: 2px dashed #D2D7DC; background: transparent; box-shadow: none; color: var(--marca); font-weight: 700; gap: 10px; }
.pcard.add:hover { border-color: var(--marca); background: #fff; }
.price-table input { width: 120px; height: 36px; padding: 0 9px; border: 1.5px solid transparent; border-radius: 4px; background: #F3F5F7; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-table input.code-in { width: 130px; text-align: left; font: 500 13px var(--f-mono); }
.price-table input:hover { border-color: var(--linha); }
.price-table input:focus { outline: none; border-color: var(--marca); background: #fff; }
.price-table input.saved { border-color: var(--ok); background: var(--pix-bg); }
.price-table input.zero { background: var(--erro-bg); }
.price-table .group td { background: #F2F4F6; font-weight: 700; padding: 9px 14px; }

/* ---------- Diálogos ---------- */
.modal { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 4px; background: var(--papel); color: var(--tinta); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal.wide { width: min(1040px, calc(100vw - 24px)); }
.modal.narrow { width: min(460px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(27, 27, 31, .55); backdrop-filter: blur(3px); }
.modal[open] { display: flex; flex-direction: column; animation: rise .2s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--linha-2); }
.modal-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--linha-2); background: #F9FAFB; }
.modal-foot .left { margin-right: auto; }

/* ---------- Configurações ---------- */
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.rates-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rate-cell { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--linha); border-radius: 4px; background: #FAFBFC; }
.rate-cell label { font: 500 11.5px var(--f-mono); color: var(--muted); }
.rate-cell .input-affix span { left: auto; right: 10px; }
.rate-cell .input { height: 38px; padding: 0 26px 0 10px; text-align: right; font-weight: 600; }
.rate-cell .sim { font-size: 12px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.users-list .table td { padding: 11px 14px; }

/* =========================================================
   Login
   ========================================================= */
.auth-body { background: var(--noite); color: #F4F6F2; min-height: 100vh; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); min-height: 100vh; }
.auth-stage { position: relative; overflow: hidden; background: #26262C; }
.auth-stage .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.auth-stage .slide.on { opacity: 1; transform: scale(1); }
.auth-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 27, 31, .15) 0%, rgba(27, 27, 31, 0) 35%, rgba(27, 27, 31, .82) 100%), linear-gradient(90deg, rgba(27, 27, 31, 0) 70%, rgba(27, 27, 31, .45)); }
.auth-copy { position: absolute; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); bottom: clamp(28px, 6vh, 64px); z-index: 2; }
.auth-copy .kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sol); }
.auth-copy h2 { margin-top: 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6.2vw, 96px); line-height: .86; text-transform: uppercase; letter-spacing: .005em; color: #fff; max-width: 11ch; }
.auth-copy h2 em { font-style: normal; color: var(--sol); }
.auth-copy .caption { display: flex; gap: 18px; align-items: center; margin-top: 22px; font-family: var(--f-mono); font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.auth-copy .dots { display: flex; gap: 6px; }
.auth-copy .dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: background .4s; }
.auth-copy .dots i.on { background: var(--sol); }
.auth-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 4.5vw, 64px); background: var(--noite); }
.auth-panel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; --tick: rgba(255, 210, 31, .4);
  background:
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 8px) left top / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 40px) left top / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--sol) 0 1.5px, transparent 1.5px 80px) left top / 16px 100% no-repeat;
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.auth-brand .wordmark { font-size: 25px; color: #fff; }
.auth-brand .sys { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: #9EA3AD; margin-top: 6px; text-transform: uppercase; }
.auth h1 { font-family: var(--f-display); font-weight: 800; font-size: 54px; line-height: .9; text-transform: uppercase; color: #fff; }
.auth .lead { margin: 12px 0 28px; color: #B8BCC6; font-size: 16px; max-width: 38ch; }
.auth .lead-2l { max-width: none; font-size: clamp(14px, 1.05vw + 4px, 16px); }
.auth .lead-2l span { display: block; white-space: nowrap; }
.auth form { display: flex; flex-direction: column; gap: 18px; }
.auth .field > label { color: #D3D8DD; font-size: 14px; }
.auth .input { height: 62px; padding: 0 18px; font-size: 18px; border-radius: 13px; border: 1.5px solid #3E414A; background: #24242A; color: #fff; }
.auth .input::placeholder { color: #878C96; }
.auth .input:hover { border-color: #4A4D55; }
.auth .input:focus { border-color: var(--sol); box-shadow: 0 0 0 4px rgba(255, 210, 31, .14); }
.auth .pass-wrap { position: relative; }
.auth .pass-wrap .input { padding-right: 60px; }
.auth .pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 10px; background: none; color: #B8BCC6; display: grid; place-items: center; }
.auth .pass-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.captcha-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; }
.captcha-img { width: 160px; height: 62px; border-radius: 12px; background: #F4F6F2; object-fit: cover; }
.captcha-refresh { width: 46px; height: 62px; border: 1.5px solid #3E414A; border-radius: 12px; background: #24242A; color: #D3D8DD; display: grid; place-items: center; }
.captcha-refresh:hover { border-color: var(--sol); color: #fff; }
.auth .captcha .input { text-transform: uppercase; letter-spacing: .25em; font-family: var(--f-mono); font-weight: 500; }
.auth .captcha .input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--f-body, inherit); }
.auth .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth .check { color: #D3D8DD; }
.auth .check input { accent-color: var(--sol); }
.auth a { color: var(--sol); font-weight: 600; }
.auth .btn.primary { height: 62px; border-radius: 13px; font-size: 17px; background: var(--marca); border-color: var(--marca); }
.auth .btn.primary:hover { background: #1848D6; }
.auth .alert { margin: 0; }
.auth .alert.erro { background: rgba(180, 35, 24, .16); color: #FFC9C2; }
.auth .alert.ok { background: rgba(14, 124, 107, .2); color: #A7EBDC; }
.auth-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: 11.5px; color: #878C96; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi.hero { grid-column: span 3; }
  .builder { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1060px) {
  .dash-grid { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
  .products-layout { grid-template-columns: 1fr; }
  .cat-list { position: static; flex-direction: row; overflow-x: auto; }
  .cat-list button { flex: none; }
  .cat-list .add-cat { border-top: 0; margin-top: 0; padding-top: 10px; }
  .rates-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-stage { min-height: 38vh; }
  .auth-copy h2 { font-size: clamp(38px, 9vw, 64px); }
  .auth-panel::before { display: none; }
}
@media (max-width: 980px) {
  .app, .nav-min .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 150px; transform: translateX(-100%); transition: transform .25s ease; }
  .menu-open .side { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(27, 27, 31, .5); }
  .nav-min .nav a span, .nav-min .logout span { display: inline; }
  .nav-min .side-name { display: block; }
  .nav-min .brand-circle { width: 84px; height: 84px; }
  .nav-min .brand-circle .brand-mark { width: 58px; height: 58px; }
  .topbar, .crumbs, .main { grid-column: 1; }
  .topbar { height: 62px; gap: 4px; padding-right: 8px; }
  .topbar .square { width: 48px; height: 40px; margin-right: 4px; }
  .quick a:not(:first-child) { display: none; }
  .top-brand { display: flex; margin-right: auto; }
  .top-brand .wordmark { font-size: 16px; }
  .hello { margin-left: 0; padding: 4px; }
  .hello-text { display: none; }
  .crumbs { min-height: 40px; font-size: 12.5px; }
  .main { padding-top: 20px; }
  .editor-grid { grid-template-columns: 1fr; }
  .dropzone { aspect-ratio: 16 / 9; max-height: 220px; }
}
@media (max-width: 720px) {
  .period, .period form { width: 100%; flex-wrap: wrap; }
  .period .input { flex: 1 1 130px; width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi.hero { grid-column: span 2; }
  .kpi .value { font-size: 28px; }
  .kpi.hero .value { font-size: 38px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: span 12; }
  .form-grid > .c-3, .form-grid > .c-2 { grid-column: span 6; }
  .rates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-pad, .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .items-table thead { display: none; }
  .items-table tr { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--linha-2); }
  .items-table td { padding: 0; border: 0; }
  .items-table td.desc { grid-column: 1 / -1; }
  .items-table .line-total, .items-table .tools { padding-top: 6px; }
  .items-table textarea { margin: 0; }
  .summary-card .pix-total .value { font-size: 40px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--noite); color: #fff; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4); }
  .mobile-bar .t { flex: 1; }
  .mobile-bar small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: #9EA3AD; text-transform: uppercase; }
  .mobile-bar strong { font-family: var(--f-display); font-size: 26px; font-weight: 800; }
  .builder-page .main { padding-bottom: 110px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--linha-2); }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .table.responsive td::before { content: attr(data-th); font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .table.responsive td.primary-cell { display: block; text-align: left; margin-bottom: 4px; }
  .table.responsive td.primary-cell::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .auth-stage .slide { transform: none; }
}

/* Login no celular/tablet: tudo cabe na tela, sem rolar. A foto encolhe conforme a altura disponível. */
@media (max-width: 1060px) {
  .auth { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  .auth-stage { flex: 1 1 auto; min-height: 64px; max-height: 42vh; }
  .auth-copy { left: 20px; right: 20px; bottom: 14px; }
  .auth-copy .kicker { font-size: 10.5px; }
  .auth-copy h2 { margin-top: 6px; font-size: clamp(26px, 7.6vw, 44px); line-height: .9; max-width: 16ch; }
  .auth-copy .caption { display: none; }
  .auth-panel { flex: none; justify-content: flex-start; padding: 18px max(20px, calc((100% - 460px) / 2)) calc(14px + env(safe-area-inset-bottom)); }
  .auth-panel::before, .auth-brand { display: none; }
  .auth h1 { font-size: 34px; }
  .auth .lead { margin: 6px 0 14px; }
  .auth .lead-2l { font-size: min(15px, 3.85vw); }
  .auth form { gap: 11px; }
  .auth .field > label { font-size: 13px; }
  .auth .input { height: 50px; font-size: 16px; border-radius: 11px; }
  .auth .pass-toggle { width: 42px; height: 42px; }
  .auth .btn.primary { height: 52px; border-radius: 11px; }
  .auth .captcha > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .captcha-row { grid-template-columns: minmax(0, 150px) 42px minmax(96px, 1fr); gap: 8px; }
  .captcha-img { width: 100%; height: 50px; border-radius: 11px; object-fit: contain; }
  .captcha-refresh { width: 42px; height: 50px; border-radius: 11px; }
  .auth .row-between { font-size: 13.5px; gap: 6px 12px; }
  .auth-foot { margin-top: 12px; }
}
/* Telas baixas: a foto fica só com o nome da empresa e o formulário sobe. */
@media (max-width: 1060px) and (max-height: 639px) {
  .auth-copy h2, .auth-foot { display: none; }
  .auth-copy { bottom: 12px; }
  .auth-panel { padding-top: 12px; }
  .auth h1 { font-size: 30px; }
  .auth .lead { margin: 4px 0 10px; }
}
@media (max-width: 1060px) and (max-height: 520px) {
  .auth-stage { min-height: 44px; }
  .auth form { gap: 8px; }
  .auth .field { gap: 3px; }
  .auth .input, .captcha-refresh, .captcha-img { height: 44px; }
  .auth .btn.primary { height: 46px; }
}

/* Auditoria */
.audit-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 16px; }
.audit-user { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--linha-2); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.audit-user:hover { border-color: #CDD2D8; }
.audit-user.on { border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-claro); }
.audit-user.off { opacity: .65; }
.audit-user .avatar { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); color: #fff; font-weight: 700; }
.audit-user .who strong { display: block; line-height: 1.2; }
.audit-user .who small { color: var(--muted); font-size: 12px; }
.audit-user .nums { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.audit-user .nums b { color: var(--texto, #1E1A18); font-size: 14px; }
.audit-user .last { grid-column: 1 / -1; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--linha-2); font-size: 12px; color: var(--muted); line-height: 1.45; }
.audit-table .pill { margin-right: 6px; font-size: 11px; }
.audit-table tr.falhou td:first-child { box-shadow: inset 3px 0 0 var(--erro); }
.audit-det { max-width: 420px; }
.audit-det details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--marca); }
.audit-det ul { margin: 6px 0 4px; padding-left: 16px; font-size: 13px; }
.audit-det li { margin: 2px 0; overflow-wrap: anywhere; }
.audit-det s { color: var(--muted); }
.audit-det .add { color: #0B6B5C; list-style: none; margin-left: -14px; }
.audit-det .rem { color: var(--erro); list-style: none; margin-left: -14px; }
.audit-det .path { font-size: 11px; overflow-wrap: anywhere; }
.audit-det .erro { color: var(--erro); }
@media (max-width: 720px) {
  .audit-det { max-width: none; text-align: left; }
  .audit-table td.audit-det { display: block; }
}

/* Lead novo na tela (bip) */
.lead-pops { position: fixed; top: 78px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 24px)); }
.lead-pop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 14px 40px 14px 14px; border-radius: 16px; background: #26262C; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); animation: leadIn .35s cubic-bezier(.2, .9, .3, 1.2); border-left: 5px solid var(--sol, #FFD21F); }
.lead-pop .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); color: #fff; animation: leadRing 1s ease 2; }
.lead-pop .t small { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #FFD21F; }
.lead-pop .t strong { display: block; font-size: 17px; line-height: 1.25; }
.lead-pop .t span { display: block; font-size: 13.5px; color: #D3D8DD; }
.lead-pop .b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lead-pop .x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #B8BCC6; font-size: 22px; line-height: 1; cursor: pointer; }
.lead-pop .x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@keyframes leadIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes leadRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(5deg); } }
/* Faixa: instalar o app / ativar avisos */
.app-dica { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--marca-claro); color: var(--marca); border: 1px solid #E8D3D6; }
.app-dica .ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); color: #fff; }
.app-dica p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; }
.app-dica .x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--marca); font-size: 22px; cursor: pointer; }
.app-box .section-title { display: flex; align-items: center; gap: 8px; }
.app-box.ativo [data-push-status] { color: #0B6B5C; font-weight: 600; }
.app-box-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.app-box-help { margin: 14px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 720px) {
  .lead-pops { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); right: 12px; left: 12px; width: auto; }
  .app-dica { flex-wrap: wrap; }
  .app-dica p { flex-basis: calc(100% - 90px); }
  .app-dica .btn { margin-left: 50px; }
}

/* Usuário novo: como ele recebe a senha */
.modo-senha { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.modo-senha legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.modo-senha .modo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--linha-2); border-radius: 10px; cursor: pointer; }
.modo-senha .modo:has(input:checked) { border-color: var(--marca); background: var(--marca-claro); }
.modo-senha .modo input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--marca); flex: none; }
.modo-senha .modo b { display: block; font-size: 14px; }
.modo-senha .modo small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Janela "Instale o app" (primeiro acesso no aparelho) */
.ins-fundo { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 14, 12, 0); transition: background .25s ease; }
.ins-fundo.on { background: rgba(20, 14, 12, .55); }
.ins-folha { position: relative; width: 100%; max-width: 520px; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: #1E1A18; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); font-family: var(--f-body, system-ui), sans-serif; }
.ins-fundo.on .ins-folha { transform: none; }
.ins-folha::before { content: ''; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: #D8DCE1; }
.ins-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: #878C96; font-size: 26px; line-height: 1; cursor: pointer; }
.ins-topo { display: flex; gap: 14px; align-items: center; margin: 6px 26px 16px 0; }
.ins-topo img { flex: none; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.ins-topo h2 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: #1F5BFF; }
.ins-topo p { margin: 0; font-size: 14px; line-height: 1.4; color: #4F535C; }
.ins-passos { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ins-passos li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #F4F6F2; font-size: 14.5px; line-height: 1.35; }
.ins-passos .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #1F5BFF; color: #fff; font-weight: 700; font-size: 13px; }
.ins-passos .ic { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; color: #1F6FD1; }
.ins-passos .ic svg { flex: none; }
.ins-acoes { display: flex; flex-direction: column; gap: 6px; }
.ins-btn { height: 54px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(22, 163, 74, .4); }
.ins-btn:active { transform: translateY(1px); }
.ins-link { height: 40px; border: 0; background: none; color: #6E655F; font-size: 14.5px; cursor: pointer; }
.ins-fundo.ins-desktop { align-items: flex-end; justify-content: flex-end; padding: 20px; background: transparent !important; pointer-events: none; }
.ins-fundo.ins-desktop .ins-folha { pointer-events: auto; max-width: 400px; border-radius: 18px; transform: translateY(20px); opacity: 0; transition: transform .3s, opacity .3s; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.ins-fundo.ins-desktop.on .ins-folha { transform: none; opacity: 1; }
.ins-fundo.ins-desktop .ins-folha::before { display: none; }
@media (prefers-reduced-motion: reduce) { .ins-folha, .ins-fundo { transition: none; } }
/* Montador: grupos quebram linha no celular */
@media (max-width: 720px) {
  .cat-tabs { gap: 6px; }
  .cat-tab { height: 32px; padding: 0 11px; gap: 6px; font-size: 12.5px; border-radius: 16px; }
  .cat-tab .ico { display: none; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .search-row { margin-top: 10px; }
}
/* Entrega e recebimento */
.entrega-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid #CFE3D8; border-radius: 12px; background: #F1F8F4; font-size: 14px; }
.entrega-box .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.status-strip .entrega-item b.ok { color: #0E7C6B; display: inline-flex; align-items: center; gap: 4px; }
.pill.entrega { background: #FFF4DE; color: #8A5A0B; }
.pill.entrega.ok { background: #E3F3EC; color: #0E7C6B; }
/* Alarme de lead novo: tela cheia piscando */
.alarme { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: #1F5BFF; animation: alarmePisca .5s steps(2, jump-none) infinite; cursor: pointer; }
.alarme__box { width: min(440px, 100%); display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 22px; border-radius: 22px; background: #1B1B1F; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.alarme__sino { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #C0392B; animation: leadRing .6s ease infinite; }
.alarme__sino svg { width: 40px; height: 40px; }
.alarme__box small { font: 600 12px var(--f-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: #FFD21F; }
.alarme__box strong { font-size: 26px; line-height: 1.15; }
.alarme__box > span:not(.alarme__sino) { color: #C9CCD4; }
.alarme__b { display: grid; gap: 8px; width: 100%; margin-top: 10px; }
.alarme__b .btn { width: 100%; justify-content: center; }
@keyframes alarmePisca { 0% { background: #1F5BFF; } 100% { background: #C0392B; } }
@media (prefers-reduced-motion: reduce) { .alarme { animation: none; } }
.alarme-guia { margin-top: 12px; }
.alarme-guia summary { cursor: pointer; }
.alarme-guia ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
/* Agenda de entregas */
.seg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--marca); color: #fff; font-size: 11px; }
.seg-n.erro { background: var(--erro); }
.entregas-dia { margin: 0 0 20px; }
.entregas-dia h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 18px; }
.entregas-dia h2 span { font: 500 12px var(--f-mono, monospace); color: var(--muted); }
.entregas-lista { display: grid; gap: 10px; }
.ecard { display: grid; grid-template-columns: 96px minmax(0, 1fr); border: 1px solid var(--linha); border-left: 5px solid #C6CAD1; border-radius: 12px; background: var(--papel); overflow: hidden; break-inside: avoid; }
.ecard--agendada { border-left-color: var(--marca); }
.ecard--atrasada { border-left-color: var(--erro); }
.ecard--entregue { border-left-color: #D9A441; }
.ecard--recebido { border-left-color: #0E7C6B; opacity: .85; }
.ecard__hora { display: grid; align-content: start; gap: 2px; padding: 14px 10px; background: #F3F5F7; text-align: center; }
.ecard__hora b { font-size: 16px; }
.ecard__hora small { font-size: 11.5px; color: var(--muted); }
.ecard__corpo { display: grid; gap: 6px; padding: 12px 14px; min-width: 0; }
.ecard__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ecard__cliente { font-size: 16px; font-weight: 700; color: var(--tinta); }
.ecard__local, .ecard__fone { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; }
.ecard__local svg, .ecard__fone svg { flex: none; margin-top: 2px; color: var(--muted); }
.ecard__obs { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #FFF7EA; }
.ecard__itens { margin: 0; padding-left: 18px; font-size: 13px; color: var(--tinta-2); }
.ecard__rodape { font-size: 11.5px; color: var(--muted); }
.ecard__acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.agenda-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--papel); font-size: 14px; }
.agenda-box.pendente { border-color: #FFD21F; background: #FFF7EA; }
.agenda-box .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-local { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; }
.entregas-aviso { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0 22px 16px; font-size: 13px; font-weight: 600; }
.so-print { display: none; }
@media (max-width: 640px) {
  .ecard { grid-template-columns: 1fr; }
  .ecard__hora { grid-auto-flow: column; justify-content: start; gap: 8px; padding: 8px 14px; text-align: left; }
}
@media print {
  .side, .topbar, .scrim, .no-print, .app-dica, .push-dica, .lead-pops, .alarme { display: none !important; }
  .app-body, .main { background: #fff !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .so-print { display: block; margin: 0 0 12px; font-size: 20px; }
  .ecard { border-color: #999; }
  .ecard__hora { background: #F2F2F2; }
}
/* Roteiro do motorista: botões */
.entregas-dia h2 .btn { margin-left: auto; }
.acoes-mini { display: inline-flex; gap: 6px; }
/* Configurações: painel de leads (Criattus) */
.input.mono { font-family: var(--f-mono); font-size: 13px; }
.webhook-st p { margin: 0 0 6px; font-size: 14px; }
.webhook-st .muted { font-size: 13px; }
.webhook-st__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.txt-aviso { color: #9A5B13; font-weight: 600; }

/* =========================================================
   Crocodius: ajustes da marca e componentes da locação
   ========================================================= */
/* Títulos: Baloo 2 sem caixa alta (marca alegre, leitura fácil) */
.page-head h1, .section-title, .step-title h2, .modal-head h2, .auth h1, .auth-copy h2, .kpi .value, .pix-total .value, .mobile-bar strong { text-transform: none; letter-spacing: 0; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; }
.step-title h2 { font-size: 21px; }
.modal-head h2 { font-size: 23px; line-height: 1.1; }
.btn { border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
.btn.sm { border-radius: 7px; font-size: 13px; }
.btn.primary { box-shadow: 0 2px 6px rgba(31, 91, 255, .28); }
.btn.primary.blocked { background: #9DB4F5; border-color: #9DB4F5; box-shadow: none; }
.input, .select, .textarea { border-radius: 8px; }
.card, .kpi, .status-strip, .doc-frame, .modal { border-radius: var(--r); }
.alert { border-radius: 8px; }
.alert.info { background: var(--marca-claro); color: #10308F; align-items: flex-start; }
.alert.definir { background: var(--rosa-claro); color: #9D0E3D; }
.txt-rosa { color: var(--rosa); font-weight: 700; }
.txt-ok { color: var(--ok); font-weight: 700; }

/* Menu lateral com o logotipo */
.side { background: var(--noite); color: #B8BCC6; }
.side-brand { background: #141417; padding: 18px 8px 14px; }
.brand-circle { width: 96px; height: 96px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); overflow: hidden; }
.brand-logo, .brand-logo img { display: block; }
.brand-circle .brand-logo img { width: 78px; height: auto; }
.side-name { font-family: var(--f-display); font-size: 15px; text-transform: none; letter-spacing: .02em; color: var(--sol); }
.nav a { color: #A3A8B1; }
.nav a .ico { color: #DCE0E5; }
.nav a.on { border-left-color: var(--verde); }
.nav a.on .ico { color: var(--verde); }
.nav .badge, .quick .dot { background: var(--rosa); }
.nav-min .brand-circle { width: 56px; height: 56px; }
.nav-min .brand-circle .brand-logo img { width: 46px; }
.topbar .square { background: var(--verde); box-shadow: 0 2px 5px rgba(61, 181, 74, .35); }
.topbar .square:hover { background: var(--verde-escuro); }
.top-brand .brand-logo img { width: 40px; height: auto; }
.top-brand .wordmark { font-family: var(--f-display); text-transform: none; color: var(--tinta); }
.avatar { background: var(--verde); }
.crumbs { background: #E8ECEA; }
@media (max-width: 980px) { .nav-min .brand-circle { width: 96px; height: 96px; } .nav-min .brand-circle .brand-logo img { width: 78px; } }

/* Painel */
.kpi.hero { background: var(--noite); border-color: var(--noite); padding-bottom: 28px; }
.kpi.hero .value { color: #fff; }
.kpi .value { font-weight: 800; }
.top-list .meter i { background: var(--verde); }
.pendencias { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r); background: var(--sol-claro); border: 1.5px solid #F5DC6B; }
.pendencias strong { display: inline-flex; gap: 8px; align-items: center; color: #6B4A00; }
.pendencias ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; flex: 1 1 380px; }
.pendencias a { color: #6B4A00; text-decoration: underline; }

/* Pílulas e disponibilidade */
.pill.aberta { background: var(--marca-claro); color: #10308F; }
.pill.aprovada, .pill.convertido { background: var(--verde-claro); color: var(--verde-escuro); }
.pill.definir { background: var(--rosa-claro); color: #9D0E3D; }
.pill.definir::before { display: none; }
.disp { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.disp.livre { background: var(--verde-claro); color: var(--verde-escuro); }
.disp.reservado { background: #FDECEC; color: var(--erro); }
.disp.consultar { background: #EEF0F3; color: var(--muted); }
.disp.na-proposta { background: var(--marca-claro); color: #10308F; }
.disp.na-proposta .ico { width: 12px; height: 12px; }
.disp.definir { background: var(--rosa-claro); color: #9D0E3D; }
.disp.auto { background: #F2F4F6; color: var(--muted); font-weight: 600; }

/* Montador: evento, brinquedos e itens */
.chips-check { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1.5px solid var(--linha); border-radius: 19px; background: var(--papel); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); color: var(--verde-escuro); }
.chip-check input { accent-color: var(--verde); }
.cat-tab.on { background: var(--noite); border-color: var(--noite); }
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.prod-card { border-radius: 10px; }
.prod-card:hover { border-color: var(--verde); }
.prod-card.on { border-color: var(--marca); box-shadow: 0 0 0 3px rgba(31, 91, 255, .15); }
.prod-card .thumb { background: #F2F7F1; }
.prod-card .thumb img { object-fit: cover; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.adicionais { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--linha); }
.adicionais .label { margin-right: 4px; }
.adicionais [data-servicos] { display: contents; }
.items-table .row-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.items-table .price.definir { border-color: #F3A3BD; background: var(--rosa-claro); }
.items-table .price.definir::placeholder { color: var(--rosa); font-weight: 700; }
.items-table .qty { width: 76px; }
.summary-card { border-radius: var(--r); background: var(--noite); }
.summary-card .line { color: #C9CCD4; }
.summary-card .definir-line b { color: #FF8FB3; }
.pix-total { background: var(--verde-escuro); padding-bottom: 24px; }
.pix-total .value { font-size: 38px; }
.installments .head span, .inst-off { color: #9EA3AD; }
.send-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--rosa-claro); color: #9D0E3D; font-size: 13px; font-weight: 600; }

/* Conflitos de agenda */
.conflito { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--r); border: 1.5px solid; }
.conflito > .ico { flex: none; margin-top: 2px; }
.conflito ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 3px; }
.conflito small { display: block; opacity: .85; }
.conflito.hard { background: #FDECEC; border-color: #F1A9AB; color: #8E1014; }
.conflito.soft { background: var(--sol-claro); border-color: #F5DC6B; color: #5E4300; }
.conflito.info { background: #EEF0F3; border-color: var(--linha); color: var(--tinta-2); }
.conflito a { color: inherit; text-decoration: underline; font-weight: 700; }
.builder-main > [data-conflitos]:empty { display: none; }

/* Proposta (interno): montagem e recolhimento */
.agenda-box { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--verde); background: var(--verde-claro); }
.agenda-box.pendente { border-color: #F5DC6B; background: var(--sol-claro); }
.agenda-etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.etapa { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .7); }
.etapa small { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.etapa.feita strong { color: var(--verde-escuro); }
.etapa .btn { justify-self: start; margin-top: 4px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--marca); font-weight: 600; text-decoration: underline; font-size: inherit; }
.status-strip .lucro-sub { display: block; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .agenda-etapas { grid-template-columns: 1fr; } }

/* Agenda */
.ecard { border-radius: 12px; }
.ecard--montagem { border-left-color: var(--verde); }
.ecard--recolhimento { border-left-color: var(--marca); }
.ecard--feito { border-left-color: #B9BEC6; opacity: .78; }
.ecard--atrasada { border-left-color: var(--erro); }
.ecard__hora .tipo { font: 700 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ecard--montagem .ecard__hora .tipo { color: var(--verde-escuro); }
.ecard--recolhimento .ecard__hora .tipo { color: #10308F; }
.ecard__obs { background: var(--sol-claro); }
.ecard__itens small { color: var(--muted); }

/* Catálogo */
.price-table .input.mini, .regions-table .input.mini { height: 38px; font-size: 14px; }
.price-table input.mini { width: 110px; }
.price-table input.mini.right, .regions-table input.right { text-align: right; }
.price-table input.definir, .regions-table input.definir { border-color: #F3A3BD; background: var(--rosa-claro); }
.price-table input.definir::placeholder, .regions-table input.definir::placeholder { color: var(--rosa); font-weight: 700; }
.price-table input.salvando { opacity: .6; }
.price-table input.salvo { border-color: var(--verde); background: var(--verde-claro); }
.price-table tr.inativo td { opacity: .55; }
.item-line { display: flex; gap: 12px; align-items: center; }
.item-line .item-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #F2F7F1; flex: none; }
.regions-table input.mini { width: 100%; min-width: 120px; }
.foto-slot { display: flex; gap: 16px; align-items: flex-start; padding: 12px; border: 1.5px dashed var(--linha); border-radius: 10px; }
.foto-slot img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: #F2F7F1; flex: none; }
.foto-slot .field { flex: 1; }
.field.falta .input { border-color: #F5DC6B; background: var(--sol-claro); }
.integ { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.integ p { margin: 4px 0 0; font-size: 13.5px; }
.mono-soft { font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) { .integ { grid-template-columns: 1fr; } .foto-slot { flex-direction: column; } }

/* Login (sem fotos: confete com as cores da marca) */
.auth-body { background: var(--noite); color: #F4F6F2; }
.auth-stage { background: radial-gradient(circle at 30% 30%, #26262C 0, #1B1B1F 60%); }
.auth-stage::after { display: none; }
.confete { position: absolute; inset: 0; overflow: hidden; }
.confete i { position: absolute; width: 18px; height: 18px; border-radius: 50%; opacity: .9; }
.confete i:nth-child(4n+1) { background: var(--verde); }
.confete i:nth-child(4n+2) { background: var(--sol); }
.confete i:nth-child(4n+3) { background: var(--rosa); }
.confete i:nth-child(4n+4) { background: var(--marca); }
.confete i:nth-child(1) { left: 8%; top: 12%; width: 26px; height: 26px; }
.confete i:nth-child(2) { left: 22%; top: 70%; }
.confete i:nth-child(3) { left: 40%; top: 18%; width: 12px; height: 12px; }
.confete i:nth-child(4) { left: 62%; top: 9%; width: 30px; height: 30px; }
.confete i:nth-child(5) { left: 80%; top: 28%; width: 14px; height: 14px; }
.confete i:nth-child(6) { left: 12%; top: 44%; width: 10px; height: 10px; }
.confete i:nth-child(7) { left: 88%; top: 62%; width: 22px; height: 22px; }
.confete i:nth-child(8) { left: 52%; top: 52%; width: 9px; height: 9px; }
.confete i:nth-child(9) { left: 70%; top: 80%; width: 16px; height: 16px; }
.confete i:nth-child(10) { left: 33%; top: 88%; width: 24px; height: 24px; }
.auth-copy { top: 50%; bottom: auto; transform: translateY(-50%); display: grid; justify-items: start; gap: 6px; }
.auth-logo img { width: clamp(140px, 18vw, 220px); height: auto; padding: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.auth-copy .kicker { margin-top: 18px; color: var(--sol); text-transform: none; letter-spacing: .02em; font-size: 13px; }
.auth-copy h2 { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.02; max-width: 15ch; }
.auth-copy h2 em { color: var(--verde); }
.auth-panel { background: var(--noite); }
.auth-panel::before { width: 8px; background: linear-gradient(180deg, var(--verde) 0 25%, var(--sol) 25% 50%, var(--rosa) 50% 75%, var(--marca) 75% 100%); }
.auth-brand .brand-logo img { width: 64px; height: auto; border-radius: 50%; background: #fff; padding: 4px; }
.auth-brand .wordmark { font-family: var(--f-display); text-transform: none; }
.auth-brand .sys { color: #9EA3AD; }
.auth h1 { font-size: 46px; line-height: 1; }
.auth .lead { color: #B8BCC6; }
.auth .input { background: #24242A; border-color: #3E414A; }
.auth .input:focus { border-color: var(--verde); box-shadow: 0 0 0 4px rgba(61, 181, 74, .18); }
.auth .btn.primary { background: var(--verde); border-color: var(--verde); box-shadow: none; }
.auth .btn.primary:hover { background: var(--verde-escuro); }
.auth a { color: var(--sol); }
.auth .check input { accent-color: var(--verde); }
@media (max-width: 1060px) {
  .auth-stage { max-height: 34vh; }
  .auth-copy { top: auto; bottom: 14px; transform: none; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .auth-logo img { width: 84px; padding: 6px; }
  .auth-copy .kicker { margin-top: 0; }
  .auth-copy h2 { grid-column: 1 / -1; font-size: clamp(22px, 6vw, 34px); }
}
.etapa .lucro-sub .ico, .status-strip .lucro-sub .ico, .cell-sub .ico { display: inline-block; vertical-align: -2px; }
