
/* DISTAK ERP v2.3 — Dashboard Executivo */
.executive-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;background:linear-gradient(135deg,var(--nav),#263348);color:#fff;border-radius:18px;padding:24px;margin-bottom:16px}
.executive-head h2{margin:4px 0 6px;font-size:28px}.executive-head p{margin:0;color:#dbe4f0}
.executive-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:var(--gold);font-weight:850}
.executive-period{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px 15px;min-width:160px}
.executive-period span{display:block;font-size:11px;color:#cbd5e1}.executive-period strong{display:block;margin-top:5px;font-size:13px}
.executive-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:12px}
.exec-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;min-width:0;box-shadow:0 8px 28px rgba(15,23,42,.035)}
.exec-stat span,.exec-stat small{display:block;color:var(--muted)}.exec-stat span{font-size:12px;font-weight:700}.exec-stat strong{display:block;font-size:21px;margin:7px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exec-stat small{font-size:11px}
.executive-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}
.executive-status-grid article{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.executive-status-grid span{font-size:12px;color:var(--muted);font-weight:700}.executive-status-grid strong{font-size:19px}
.dashboard-operation-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.dashboard-operation-strip article{background:linear-gradient(145deg,#fff,#f8fafc);border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:12px;padding:13px 15px}.dashboard-operation-strip span,.dashboard-operation-strip small{display:block;color:var(--muted);font-size:11px}.dashboard-operation-strip strong{display:block;font-size:19px;margin:6px 0 3px}
.executive-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,1fr);gap:16px;margin-bottom:16px}
.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-title h3{margin:0 0 4px}.panel-title p{margin:0;color:var(--muted);font-size:12px}
.chart-legend{display:flex;justify-content:flex-end;gap:15px;font-size:11px;color:var(--muted);margin-bottom:10px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:9px;height:9px;border-radius:3px}.legend-received{background:var(--gold)}.legend-cost{background:#64748b}
.finance-chart{min-height:250px}.finance-bars{height:215px;display:grid;grid-template-columns:repeat(6,1fr);align-items:end;gap:15px;border-bottom:1px solid var(--line);padding:14px 8px 0}
.finance-month{height:100%;display:grid;grid-template-rows:1fr auto;gap:8px;text-align:center}.finance-columns{height:100%;display:flex;justify-content:center;align-items:flex-end;gap:5px}
.finance-columns span{width:min(23px,38%);border-radius:6px 6px 0 0;min-height:3px;transition:.2s}.bar-received{background:var(--gold)}.bar-cost{background:#64748b}.finance-month small{color:var(--muted);text-transform:capitalize}
.status-chart{display:grid;gap:15px}.status-row>div:first-child,.category-row>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px}.status-row span,.category-row span{color:var(--muted);font-size:13px}.status-track,.category-track{height:9px;background:#eef2f7;border-radius:999px;overflow:hidden}.status-track span,.category-track span{display:block;height:100%;background:var(--gold);border-radius:999px}
.dashboard-table small{display:block;margin-top:4px;color:var(--muted)}.dashboard-alerts{display:grid;gap:9px}.dashboard-alert{display:flex;gap:10px;border:1px solid var(--line);border-radius:10px;padding:11px}.dashboard-alert p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.35}.alert-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex:0 0 auto}.dashboard-alert.danger .alert-dot{background:#dc2626}.dashboard-alert.warning .alert-dot{background:#f59e0b}.dashboard-alert.info .alert-dot{background:#2563eb}.dashboard-success{background:#ecfdf5;color:#166534;padding:18px;border-radius:10px;text-align:center}.dashboard-empty{color:var(--muted);text-align:center;padding:26px}
.cost-categories{display:grid;gap:14px}.movement-list{display:grid}.movement-list article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.movement-list article:last-child{border-bottom:0}.movement-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-weight:900}.movement-icon.income{background:#ecfdf5;color:#047857}.movement-icon.expense{background:#fff1f2;color:#be123c}.movement-list small{display:block;color:var(--muted);margin-top:3px}.positive{color:#047857}.negative{color:#be123c}
.dashboard-pipeline{display:grid;gap:14px}.dashboard-pipeline article>div:first-child{display:grid;grid-template-columns:1fr auto;gap:2px 12px}.dashboard-pipeline small{grid-column:1;color:var(--muted)}.pipeline-track{height:9px;margin-top:7px;background:#eef2f7;border-radius:999px;overflow:hidden}.pipeline-track span{display:block;height:100%;background:#94a3b8;border-radius:999px}.pipeline-track .pipeline-enviado{background:#3b82f6}.pipeline-track .pipeline-aprovado{background:#22c55e}.pipeline-track .pipeline-recusado{background:#ef4444}.dashboard-team{display:grid}.dashboard-team article{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.dashboard-team article:last-child{border-bottom:0}.team-avatar{width:34px;height:34px;border-radius:10px;background:var(--nav);color:#fff;display:grid;place-items:center;font-weight:850}.dashboard-team small{display:block;color:var(--muted);margin-top:2px}.team-hours{text-align:right}
@media(max-width:1250px){.executive-stats{grid-template-columns:repeat(3,1fr)}.executive-status-grid{grid-template-columns:repeat(3,1fr)}.dashboard-operation-strip{grid-template-columns:1fr 1fr}}
@media(max-width:950px){.executive-main-grid{grid-template-columns:1fr}.executive-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.executive-head{flex-direction:column}.executive-period{width:100%}.executive-stats,.executive-status-grid,.dashboard-operation-strip{grid-template-columns:1fr}.finance-bars{gap:6px}.executive-head h2{font-size:24px}}

/* Dashboard fiel à opção 5 */
.option5-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:22px 0 18px}.option5-dashboard-head h1{margin:0 0 5px;font-size:25px}.option5-dashboard-head p{margin:0;color:var(--muted)}.option5-head-actions{display:flex;gap:9px;align-items:center}.option5-head-actions>span{padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px}.option5-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.option5-kpis article{display:flex;justify-content:space-between;gap:12px;min-height:116px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;box-shadow:0 5px 18px #0f172a0a}.option5-kpis span,.option5-kpis strong,.option5-kpis small{display:block}.option5-kpis span{font-size:11px;color:#52627a;font-weight:700}.option5-kpis strong{font-size:22px;margin:9px 0 6px}.option5-kpis small{font-size:10px;color:#16a06a}.option5-kpis article>i{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-style:normal;font-size:20px}.option5-kpis .blue{background:#e7f0ff;color:#245da6}.option5-kpis .gold{background:#fff5dc;color:#bd8111}.option5-kpis .green{background:#e9f9ee;color:#168154}.option5-kpis .red{background:#fff0f0;color:#d23d3d}#view-dashboard>.executive-head,#view-dashboard>.executive-stats,#view-dashboard>.executive-status-grid,#view-dashboard>.dashboard-operation-strip{display:none}.executive-main-grid{grid-template-columns:minmax(0,1.35fr) minmax(310px,.75fr)}.finance-line-chart{display:block;width:100%;height:235px}.line-chart-labels{display:grid;grid-template-columns:repeat(6,1fr);padding:0 14px 0 25px;text-align:center;color:var(--muted);font-size:10px}.status-chart{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:22px}.donut-chart{width:168px;height:168px;border-radius:50%;display:grid;place-items:center}.donut-chart>div{width:98px;height:98px;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center}.donut-chart strong{font-size:28px}.donut-chart span{font-size:11px;color:var(--muted)}.donut-legend{display:grid;gap:12px}.donut-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px}.donut-legend i{width:9px;height:9px;border-radius:3px}.donut-legend span{font-size:11px;color:var(--muted)}.donut-legend strong{font-size:11px}.option5-work-table{min-width:920px}.work-identity{display:flex;align-items:center;gap:11px;min-width:240px}.work-identity img,.work-photo-fallback{width:48px;height:38px;border-radius:7px;object-fit:cover;flex:0 0 auto}.work-photo-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#dbe6f4,#afc1d8);color:#315b91;font-size:19px}.table-progress{display:flex;align-items:center;gap:8px;min-width:130px}.table-progress>span{height:6px;flex:1;background:#e8edf3;border-radius:99px;overflow:hidden}.table-progress i{display:block;height:100%;background:#22a06b;border-radius:99px}.table-progress strong{font-size:11px}.table-more{border:0;background:transparent;font-size:20px}.dashboard-table td{vertical-align:middle}
@media(max-width:1150px){.option5-kpis{grid-template-columns:repeat(2,1fr)}.status-chart{grid-template-columns:1fr}.donut-chart{margin:auto}.donut-legend{width:100%}}
@media(max-width:650px){.option5-dashboard-head{align-items:flex-start;display:grid;margin-top:14px}.option5-head-actions{display:none}.option5-kpis{grid-template-columns:1fr 1fr;gap:9px}.option5-kpis article{min-height:105px;padding:13px}.option5-kpis strong{font-size:18px}.option5-kpis article>i{width:35px;height:35px}.finance-line-chart{height:190px}.status-chart{grid-template-columns:135px 1fr}.donut-chart{width:130px;height:130px}.donut-chart>div{width:76px;height:76px}.donut-chart strong{font-size:22px}}
.obra-list-identity{display:flex;align-items:center;gap:10px;min-width:210px}.obra-list-identity img,.obra-list-identity>span{width:44px;height:36px;border-radius:7px;object-fit:cover;flex:0 0 auto}.obra-list-identity>span{display:grid;place-items:center;background:#dbe6f4;color:#315b91}
@media(max-width:950px){#view-dashboard{width:100%;max-width:100%;min-width:0;overflow:hidden}#view-dashboard>.executive-main-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;gap:14px}#view-dashboard>.executive-main-grid>.panel{width:100%;max-width:100%;min-width:0;margin:0;overflow:hidden}#view-dashboard .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}#view-dashboard .finance-line-chart{max-width:100%}.v3-activity-panel{width:100%;max-width:100%;min-width:0}}
@media(max-width:650px){#view-dashboard>.executive-main-grid{display:block}#view-dashboard>.executive-main-grid>.panel{margin-bottom:14px}#view-dashboard .status-chart{grid-template-columns:minmax(110px,135px) minmax(0,1fr);gap:12px}#view-dashboard .donut-legend>div{grid-template-columns:9px minmax(0,1fr) auto}.movement-list article{grid-template-columns:auto minmax(0,1fr) auto}.movement-list b{white-space:nowrap}.dashboard-team article{grid-template-columns:auto minmax(0,1fr) auto}.panel-title{min-width:0}.panel-title>div{min-width:0}}

/* v3.8 — acabamento executivo premium (direção A) */
.option5-kpis article{position:relative;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.option5-kpis article::after{content:"";position:absolute;inset:auto -22px -32px auto;width:95px;height:95px;border-radius:50%;background:currentColor;opacity:.025;pointer-events:none}.option5-kpis article:hover{border-color:#cfd8e6;box-shadow:0 12px 30px rgba(15,35,64,.075);transform:translateY(-2px)}.option5-kpis .kpi-line-icon{border:1px solid currentColor;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 5px 16px rgba(15,35,64,.06)}.kpi-line-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav i{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.055);font-family:"Segoe UI Symbol",system-ui,sans-serif;font-size:14px;line-height:1;color:#dbe7f5;transition:background .18s ease,color .18s ease,transform .18s ease}.nav:hover i,.nav.active i{background:rgba(225,173,56,.14);color:#f3c34e;transform:scale(1.05)}
.erp-icon-svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav .erp-icon-svg{width:16px;height:16px}.mobile-nav .erp-icon-svg{width:23px;height:23px;margin:auto}.mobile-nav .mobile-register .erp-icon-svg{width:34px;height:34px;stroke-width:1.7}.nav.active .erp-icon-svg{filter:drop-shadow(0 2px 5px rgba(225,173,56,.24))}
.executive-chart-panel,.executive-main-grid>.panel{border-color:#e1e7ef;box-shadow:0 9px 25px rgba(15,35,64,.035)}.premium-chart-legend{gap:18px}.premium-chart-legend span{padding:6px 9px;border:1px solid #e5eaf1;border-radius:999px;background:#fafbfd}.premium-chart-legend b{font-size:10px;color:#1e3150}.finance-line-chart{border-radius:12px;background:linear-gradient(180deg,rgba(247,249,252,.72),rgba(255,255,255,0))}.line-chart-labels{padding-left:72px;padding-right:20px;text-transform:capitalize;font-weight:650}.donut-shell{position:relative;display:grid;place-items:center}.donut-shell::before{content:"";position:absolute;width:142px;height:142px;border-radius:50%;background:radial-gradient(circle,rgba(49,91,145,.14),transparent 68%);filter:blur(8px)}.donut-chart{position:relative;box-shadow:0 13px 28px rgba(15,35,64,.14),inset 0 0 0 1px rgba(255,255,255,.5);transform:rotate(-1deg)}.donut-chart::after{content:"";position:absolute;inset:6px;border-radius:50%;border:1px solid rgba(255,255,255,.6);pointer-events:none}.donut-chart>div{position:relative;z-index:1;box-shadow:0 2px 12px rgba(15,35,64,.09)}.donut-chart span{max-width:70px;text-align:center;line-height:1.15}.donut-legend>div{padding:7px 9px;border-radius:9px;transition:background .18s ease}.donut-legend>div:hover{background:#f6f8fb}.donut-legend i{border-radius:50%;box-shadow:0 0 0 3px rgba(49,91,145,.06)}.donut-legend strong small{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:999px;background:#f0f3f7;color:#64748b;font-size:9px}
@media(max-width:650px){.option5-kpis article:hover{transform:none}.premium-chart-legend b{display:none}.premium-chart-legend span{padding:5px 7px}.line-chart-labels{padding-left:58px}.donut-shell::before{width:112px;height:112px}}
@media(prefers-reduced-motion:reduce){.option5-kpis article,.nav i{transition:none}.option5-kpis article:hover{transform:none}}
