/*
  Arquivo: ag-home-view.css
  Origem: public/index.html
  Bloco original: <style id="home-view-inline-style">
  Função: estilos visuais da Home/Tela inicial, incluindo KPIs, ações rápidas, recentes, meta e pedido em aberto.
  Observação: extração passiva; não altera lógica JS da Home, cálculos, histórico, pedido, Kanban ou persistência.
*/

/* ===== home-view-inline-style ===== */
.home-view{display:none;flex:1;overflow-y:auto;padding:20px;background:var(--bg)}
.home-view.active{display:block}
.hv{max-width:980px;margin:0 auto;display:grid;gap:16px}

/* HEADER */
.hv-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hv-greeting{font-size:22px;font-weight:800;letter-spacing:-.04em}
.hv-date{font-size:12px;color:var(--muted);margin-top:2px}

/* KPIs DO DIA */
.hv-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hv-kpi{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px 16px}
.hv-kpi-label{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--faint)}
.hv-kpi-val{font-size:22px;font-weight:800;letter-spacing:-.04em;margin-top:4px;font-variant-numeric:tabular-nums}
.hv-kpi-val.green{color:var(--green)}
.hv-kpi-val.accent{color:var(--accent)}
.hv-kpi-sub{font-size:11px;color:var(--muted);margin-top:2px}

/* ALERTAS */
.hv-alert{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;font-size:12px;font-weight:600;background:rgba(249,115,22,.08);border:1px solid rgba(249,115,22,.22);color:var(--accent)}
.hv-alert svg{flex:none;width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* AÇÕES RÁPIDAS */
.hv-section-title{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--faint);margin-bottom:8px}
.hv-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.hv-action{
  display:flex;align-items:center;gap:12px;padding:14px 16px;
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  cursor:pointer;transition:all .15s;font-size:13px;font-weight:700;color:var(--text);
  text-align:left;
}
.hv-action:hover{border-color:var(--border2);background:var(--surface2);transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.hv-action-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none}
.hv-action-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hv-action-sub{font-size:11px;color:var(--muted);font-weight:500;margin-top:2px}

/* ÚLTIMOS PEDIDOS */
.hv-recentes{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.hv-recente-row{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--border);transition:background .12s}
.hv-recente-row:last-child{border-bottom:none}
.hv-recente-row:hover{background:var(--surface2)}
.hv-recente-dot{width:8px;height:8px;border-radius:999px;background:var(--accent);flex:none}
.hv-recente-nome{font-size:13px;font-weight:700;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-recente-prod{font-size:11px;color:var(--muted)}
.hv-recente-val{font-size:13px;font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.hv-recente-empty{padding:20px;text-align:center;color:var(--faint);font-size:12px}
.hv-filter-note{margin:-2px 0 8px;font-size:11px;color:var(--muted);line-height:1.45}
.hv-filter-note strong{color:var(--text)}

/* META */
.hv-meta{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px}
.hv-meta-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.hv-meta-label{font-size:12px;color:var(--muted)}
.hv-meta-val{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.hv-progress{height:10px;background:var(--surface2);border-radius:999px;overflow:hidden;border:1px solid var(--border)}
.hv-progress-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#34a853,#0f9d58);transition:width .6s ease}
.hv-meta-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;color:var(--muted)}

/* PEDIDO EM ABERTO */
.hv-pedido-aberto{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.hv-pedido-info{display:grid;gap:3px}
.hv-pedido-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--faint)}
.hv-pedido-val{font-size:18px;font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums}
.hv-pedido-sub{font-size:11px;color:var(--muted)}
.hv-pedido-btn{padding:9px 16px;border-radius:10px;background:var(--accent-dim);border:1px solid var(--accent-border);color:var(--accent);font-size:12px;font-weight:800;cursor:pointer;transition:all .15s;white-space:nowrap}
.hv-pedido-btn:hover{background:var(--accent);color:#fff}

@media(max-width:760px){.hv-kpis{grid-template-columns:1fr}.hv-actions{grid-template-columns:1fr}}
