/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--c-surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy:disabled { opacity: .7; cursor: progress; }
.btn.primary { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.btn.primary:hover { background: var(--c-navy-3); }
.btn.accent { background: var(--c-accent); color: var(--c-accent-ink); border-color: #d9ad00; }
.btn.danger { background: var(--c-crit); color: #fff; border-color: var(--c-crit); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.seg { display: inline-flex; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font: inherit; font-weight: 550; color: var(--c-ink-2); cursor: pointer; }
.seg button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }

/* Cartões */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.card-head h3 { flex: 1; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }

/* KPIs */
.kpi { display: flex; gap: 12px; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eef2f8; color: var(--c-navy-3); flex: none; }
.kpi-label { font-size: 12px; color: var(--c-muted); font-weight: 550; }
.kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--c-muted); }
.kpi.ok .kpi-ico { background: #e3f5ea; color: var(--c-ok); }
.kpi.low .kpi-ico { background: #fdf3d6; color: #9a7300; }
.kpi.crit .kpi-ico { background: #fbe4e2; color: var(--c-crit); }
.kpi.info .kpi-ico { background: #e6effc; color: #234f9c; }
/* Celular: indicadores em 2 colunas (grade em layout.css), cartão compacto e sem ícone */
@media (max-width: 600px) { .kpi { padding: 10px 12px; } .kpi .kpi-ico { display: none; } .kpi-value { font-size: 20px; } }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eceff3; color: var(--c-ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.ok { background: #e3f5ea; color: #16733f; }
.badge.low { background: #fdf3d6; color: #8a6700; }
.badge.critical, .badge.crit { background: #fbe4e2; color: #a92d26; }
.badge.empty { background: #eceff3; color: #5d6672; }
.badge.blocked { background: #efe6f8; color: var(--c-blocked); }
.badge.info { background: #e6effc; color: #234f9c; }
.badge.plain::before { display: none; }

/* Tabelas */
.table-wrap { display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-line); border-radius: 9px; padding: 0 10px; background: var(--c-surface); max-width: 340px; color: var(--c-muted); }
.search input { border: 0; outline: 0; height: 34px; flex: 1; font: inherit; background: transparent; color: var(--c-ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--c-ink-2); background: var(--c-surface-2); padding: 9px 12px; border-bottom: 1px solid var(--c-line); white-space: nowrap; cursor: pointer; user-select: none; font-size: 12.5px; }
.tbl th.num { text-align: right; }
.tbl th.sorted { color: var(--c-ink); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #f7f9fc; }
.tbl td.empty { text-align: center; color: var(--c-muted); padding: 28px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
@media (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; border-bottom: 1px solid var(--c-line); padding: 6px 0; }
  .tbl td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--c-muted); font-size: 12px; text-align: left; }
  .tbl td.empty::before { content: none; }
}

/* Formulários */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form .field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--c-ink-2); }
.form .field.full { grid-column: 1 / -1; }
.form .field.check { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.form input, .form select, .form textarea, .input {
  font: inherit; font-weight: 400; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 10px; background: var(--c-surface); min-height: 36px; width: 100%;
}
.form input[readonly], .form select:disabled, .form textarea[readonly] { background: var(--c-surface-2); color: var(--c-ink-2); }
.form input[type=checkbox] { width: 18px; min-height: 18px; }
.form small { font-weight: 400; }
.req { color: var(--c-crit); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--c-muted); font-weight: 600; }
.filters select, .filters input { min-width: 140px; height: 34px; border: 1px solid var(--c-line); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--c-surface); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(10,18,30,.35); opacity: 0; transition: opacity .2s; z-index: 60; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: var(--c-surface); box-shadow: var(--shadow-lg); z-index: 61;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease;
}
.drawer.wide { width: min(760px, 100vw); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--c-line); }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-body { padding: 16px 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--c-line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10,18,30,.45); z-index: 80; padding: 16px; }
.modal { background: var(--c-surface); border-radius: var(--radius); padding: 20px; width: min(420px, 100%); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px; }

/* Toast */
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 90; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--c-navy); color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; border-left: 4px solid var(--c-blue); transition: opacity .3s, transform .3s; }
.toast-ok { border-left-color: var(--c-ok); }
.toast-error { border-left-color: var(--c-crit); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Gráficos */
.hbar { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr; gap: 10px; align-items: center; }
.hbar-label { font-size: 12.5px; color: var(--c-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-bars { display: flex; flex-direction: column; gap: 3px; }
.hbar-track { position: relative; height: 16px; background: #f0f2f5; border-radius: 4px; }
.hbar-fill { height: 100%; border-radius: 4px; min-width: 2px; }
.hbar-val { position: absolute; right: 6px; top: 0; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--c-ink-2); margin-bottom: 10px; }
.legend.wrap { flex-wrap: wrap; margin: 10px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend em { font-style: normal; }
.stk { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; }
.prog { height: 8px; background: #e9edf2; border-radius: 99px; overflow: hidden; min-width: 80px; }
.prog > div { height: 100%; background: var(--c-ok); border-radius: 99px; }

/* Estados vazios e avisos */
.empty-state { text-align: center; padding: 34px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ico { width: 54px; height: 54px; border-radius: 14px; background: #eef2f8; color: var(--c-navy-3); display: grid; place-items: center; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f4f7fb; border: 1px dashed #c7d2e0; color: var(--c-ink-2); font-size: 13px; }
.note.warn { background: #fff8e1; border-color: #f0d68a; color: #5e4a00; }
.note.err { background: #fdecea; border-color: #f2b8b3; color: #8a241e; }

/* Galpão 3D */
/* Altura = janela − cabeçalho − faixa de aviso (medidos em app.js; o cabeçalho cresce quando os botões quebram linha).
   dvh desconta a barra de endereço do navegador no celular. */
.wh-wrap { position: relative; height: calc(100vh - var(--topbar-h, 64px) - var(--banner-h, 0px)); height: calc(100dvh - var(--topbar-h, 64px) - var(--banner-h, 0px)); min-height: 420px; }
.wh-canvas { position: absolute; inset: 0; }
.wh-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.wh-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.wh-toolbar > * { pointer-events: auto; }
/* Barra inferior do 3D: legenda à esquerda, dica à direita; quebra de linha em vez de sobrepor. */
.wh-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.wh-bottom > * { pointer-events: auto; }
.wh-legend { background: rgba(255,255,255,.94); border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 12px; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow); }
.wh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wh-legend i { width: 11px; height: 11px; border-radius: 3px; }
.wh-hint { margin-left: auto; font-size: 12px; color: var(--c-ink-2); background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--c-line); }
.wh-search { display: flex; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px; padding: 0 8px; height: 38px; }
.wh-search input { border: 0; outline: 0; font: inherit; width: 110px; background: transparent; text-transform: uppercase; }
@media (max-width: 900px) { .wh-hint { display: none; } .wh-legend { gap: 8px; font-size: 11px; } }

/* Mapa 2D das posições */
.rackmap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rackside h4 { margin-bottom: 8px; font-size: 13px; }
.rackgrid { display: grid; grid-template-columns: repeat(var(--bays, 8), minmax(0, 1fr)); gap: 5px; }
.cell { border-radius: 7px; padding: 7px 4px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; cursor: pointer; border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.cell:hover { border-color: var(--c-navy); }
.cell.ok { background: var(--c-ok); }
.cell.low { background: var(--c-low); color: #3a2d00; }
.cell.critical { background: var(--c-crit); }
.cell.empty { background: var(--c-pos-empty); }
.cell.blocked { background: var(--c-blocked); }
.level-tag { font-size: 11px; color: var(--c-muted); margin: 6px 0 4px; }
@media (max-width: 760px) { .rackmap { grid-template-columns: 1fr; } }

/* Planejamento */
.plan-card { border-left: 4px solid var(--c-line); }
.plan-card.liberado { border-left-color: var(--c-ok); }
.plan-card.parcial { border-left-color: var(--c-low); }
.plan-card.bloqueado { border-left-color: var(--c-crit); }
.plan-card.sem-composicao { border-left-color: var(--c-empty); }
.bignum { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Reservado */
.reserved { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.reserved .card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.reserved .card .kpi-ico { margin-bottom: 4px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1f3350, var(--c-navy) 60%); padding: 20px; }
.login .card { max-width: 420px; padding: 28px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.booting .sidebar, .booting .main { visibility: hidden; }

/* Fluxo da ordem (Abastecimento → Montagem → Conferência → Expedição) */
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flow-step { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); position: relative; }
.flow-step b { font-size: 16px; font-variant-numeric: tabular-nums; }
.flow-step.on { border-color: var(--c-accent); box-shadow: inset 0 3px 0 var(--c-accent); }
@media (max-width: 640px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
#flStage { flex-wrap: wrap; }

/* Colunas verticais (indicadores) */
.vb-wrap { overflow-x: auto; }
.vbars { width: 100%; max-width: 900px; height: auto; display: block; } /* limita o crescimento do texto em telas largas */
@media (max-width: 600px) { .vbars { min-width: 480px; } } /* no celular rola na horizontal em vez de encolher o texto */
.vbars .vb-grid { stroke: var(--c-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vbars .vb-x, .vbars .vb-y { font-size: 10px; fill: var(--c-muted); }
.vbars .vb-goal { stroke: #9a7300; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.vbars .vb-goal-t { font-size: 10.5px; font-weight: 600; fill: #9a7300; }

/* Acesso por conta: botão no canto superior direito e janela de login */
.topbar-auth { display: flex; align-items: center; margin-left: 4px; flex: none; }
.auth-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-ink-2); background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: 99px; padding: 2px 4px 2px 10px; max-width: 320px; }
.auth-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip svg { color: var(--c-ok); flex: none; }
.auth-modal { width: min(400px, 100%); gap: 12px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; }
.auth-head h3 { font-size: 18px; }
.auth-sub { margin: -4px 0 0; }
.auth-form { gap: 12px; }
.auth-form .field { display: flex; flex-direction: column; gap: 5px; }
.auth-form .field > span { font-size: 12.5px; font-weight: 600; color: var(--c-ink-2); }
.auth-btn { justify-content: center; height: 42px; }
.auth-code { letter-spacing: .35em; font-size: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.auth-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.auth-links span { color: var(--c-muted); }
@media (max-width: 600px) { .auth-chip .hide-sm, .auth-chip .lbl { display: none; } .auth-chip { padding: 2px; } }

/* Kits / fichas técnicas */
.kit-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.kit-filters > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; max-width: 100%; }
.kit-filters .seg { flex-wrap: wrap; }
.kit-filter-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.kit-group { display: flex; flex-direction: column; gap: 12px; }
.kit-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 2px solid var(--c-accent); }
.kit-group-head h2 { font-size: 18px; }
.kit-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kit-card:hover, .kit-card:focus-visible { border-color: var(--c-navy-3); box-shadow: var(--shadow-lg); }
.kit-card h3 { font-size: 15px; }
.kit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kit-tipo { font-size: 11.5px; font-weight: 750; letter-spacing: .05em; color: var(--c-navy-3); background: #e6edf7; border-radius: 6px; padding: 2px 8px; }
.kit-card .kv { grid-template-columns: auto minmax(0, 1fr); font-size: 12.5px; }
.kit-card .kv dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.kit-pend { color: #8a6700; font-style: italic; }
.tbl td.row-actions { white-space: nowrap; }
.tbl td.row-actions .icon-btn { width: 32px; height: 32px; }
.tbl td.row-actions .btn { margin-left: 6px; }
.tbl tr.editing td { background: #f7f9fc; }
.input.sm, .tbl .input.sm { height: 32px; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.tbl input.input.sm.num { max-width: 90px; text-align: right; }
.tbl tr.editing select.input.sm { max-width: 170px; }
/* Produto intermediário (PI) */
.kit-tipo-pi { background: #efe6f8; color: var(--c-blocked); }
.kit-pi { border-style: dashed; border-color: #cdb8e6; }
.kit-pi-sub { font-size: 12px; font-weight: 600; color: var(--c-blocked); margin-left: 4px; }
.kit-pi-note { align-items: center; flex-wrap: wrap; }
.kit-pi-note > span { flex: 1; min-width: 220px; }
.kit-card .kv dd b { white-space: nowrap; }
/* Linha do tempo de recebimentos */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.tl-step { position: relative; }
.tl-dot { position: absolute; left: -24px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-blue); }
.tl-recebido .tl-dot { border-color: var(--c-ok); background: var(--c-ok); }
.tl-atrasado .tl-dot { border-color: var(--c-crit); }
.tl-parcial .tl-dot { border-color: var(--c-low); }
.tl-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tl-date { font-size: 17px; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tl-label { color: var(--c-muted); font-size: 13px; font-weight: 600; }
.tl-total { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.tl-total b { font-size: 18px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { background: #eef3fb; color: var(--c-ink); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; white-space: nowrap; }
.tl-chip b { font-variant-numeric: tabular-nums; }
.tl-acc { border-top: 1px dashed var(--c-line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tl-acc .tl-chip { background: var(--c-surface-2); color: var(--c-ink-2); }
.tl-details summary { cursor: pointer; font-size: 13px; color: var(--c-blue); font-weight: 600; }
.tl-lines { margin: 8px 0 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--c-ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--c-line); }
.tl-chip-kit { border: 1px solid #c9d7ef; font: inherit; font-size: 12.5px; cursor: pointer; background: #e3ecfa; }
.tl-chip-kit:hover { border-color: var(--c-blue); }
.disp-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.kit-filter-clear { justify-content: flex-end; align-self: flex-end; margin-left: auto; }

/* Estoque: card "Kits disponíveis para produção" (abre o painel com as fichas prontas) */
.ready-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-empty); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 14px; transition: border-color .15s, box-shadow .15s; }
.ready-card:hover { border-color: #c9d2dd; box-shadow: 0 4px 14px rgba(15, 27, 45, .08); }
.ready-card:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.ready-card.ok { border-left-color: var(--c-ok); }
.ready-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eef2f8; color: var(--c-navy-3); flex: none; }
.ready-card.ok .ready-ico { background: #e3f5ea; color: var(--c-ok); }
.ready-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ready-label { font-size: 12px; color: var(--c-muted); font-weight: 550; }
.ready-value { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ready-sub { font-size: 12.5px; color: var(--c-muted); }
.ready-go { font-size: 13px; font-weight: 600; color: var(--c-blue); white-space: nowrap; flex: none; }
.ready-h { margin: 6px 0 8px; font-size: 13px; color: var(--c-ink-2); }
@media (max-width: 600px) { .ready-ico { display: none; } .ready-value { font-size: 17px; } }

/* Materiais: atalho "Estoque Smart Go" e a tela da consulta */
.sg-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: var(--c-navy); color: #fff; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 14px; box-shadow: var(--shadow); transition: background .15s; }
.sg-link:hover { background: var(--c-navy-3); }
.sg-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.sg-link-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 194, 0, .16); color: var(--c-accent); flex: none; }
.sg-link-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.sg-link-txt b { font-size: 15px; }
.sg-link-txt span { font-size: 12.5px; color: #b9c3d1; }
.sg-link-go { font-size: 13px; font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.sg-loading { display: flex; align-items: center; gap: 10px; padding: 40px 8px; color: var(--c-muted); }
.sg-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-line); border-top-color: var(--c-blue); animation: sgspin .8s linear infinite; }
@keyframes sgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sg-spin { animation: none; } }
