/* Dashboard gerencial Nolasco Nexus - mantém IDs e dados do ERP atual. */
#dashboard.dashboard-modern{--nx-blue:#237cff;--nx-ink:#142441;--nx-muted:#687991;--nx-border:#e3ebf5;--nx-shadow:0 6px 24px rgba(28,69,126,.055);padding:6px 2px 28px;color:var(--nx-ink)}
#dashboard .dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}
#dashboard .dash-kpi{position:relative;display:flex;align-items:center;gap:16px;min-height:134px;padding:23px 18px;border:1px solid var(--nx-border);border-radius:18px;background:white;box-shadow:var(--nx-shadow);overflow:hidden}
#dashboard .dash-kpi:before{display:none}
#dashboard .dash-kpi .dash-kpi-icon{display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;border-radius:16px;color:#fff;font-size:29px;font-weight:800;background:#2280ff;box-shadow:0 6px 16px #237cff25}
#dashboard .dash-kpi.green .dash-kpi-icon{background:#28b477;box-shadow:0 6px 16px #28b47725}
#dashboard .dash-kpi.purple .dash-kpi-icon{background:#9650f3;box-shadow:0 6px 16px #9650f325}
#dashboard .dash-kpi.orange .dash-kpi-icon{background:#ffad31;box-shadow:0 6px 16px #ffad3125}
#dashboard .dash-kpi>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px}
#dashboard .dash-kpi small{font-size:14px;font-weight:700;color:#455571}
#dashboard .dash-kpi b{color:#152747;font-size:clamp(21px,1.85vw,31px);font-weight:850;letter-spacing:-.7px;white-space:nowrap}
#dashboard .dash-kpi em{font-size:12px;color:#6c819d;font-style:normal;font-weight:600}
#dashboard .dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:18px;margin-bottom:20px}
#dashboard .dash-card{background:#fff;border:1px solid var(--nx-border);border-radius:18px;box-shadow:var(--nx-shadow);padding:21px 22px;overflow:hidden}
#dashboard .dash-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
#dashboard .dash-card-head h2{margin:0;color:#142441;font-size:20px;font-weight:800}
#dashboard .dash-card-head p{margin:6px 0 0;color:var(--nx-muted);font-size:13px}
#dashboard .dash-link{font-weight:750;color:#237cff;background:transparent;border:0;cursor:pointer}
#dashboard .dash-summary-list{display:grid;gap:0}
#dashboard .dash-summary-list>div{padding:16px 1px;border-bottom:1px solid #eef2f7;display:flex;justify-content:space-between;gap:10px;align-items:center}
#dashboard .dash-summary-list span{color:#51617a;font-size:13px}
#dashboard .dash-summary-list b{color:#162b4d;font-weight:800;font-size:15px}
#dashboard .dash-quick-grid button{border:1px solid #e3ebf5;border-radius:12px;background:#f6f9ff;color:#213e68;cursor:pointer}
#dashboard .dashboard-recent-sales{overflow:auto;max-width:100%}
#dashboard .dashboard-recent-sales th{background:#f4f8fe;color:#536781;white-space:nowrap;font-size:12px}
#dashboard .dashboard-recent-sales td{border-bottom:1px solid #edf2f8;font-size:13px}
#dashboard .dash-goals-card{margin-top:0}
#dashboard [hidden]{display:none!important}
@media(max-width:1150px){#dashboard .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .dashboard-main-grid{grid-template-columns:1fr}}
@media(max-width:640px){#dashboard .dashboard-kpis{grid-template-columns:1fr;gap:10px}#dashboard .dash-kpi{min-height:102px;padding:15px}#dashboard .dash-card{padding:15px}#dashboard .dash-kpi .dash-kpi-icon{width:56px;height:56px;flex-basis:56px}}

/* 0.1.287 — painel inicial no layout novo (nxp-*) */
#dashboard{--nxp-ink:#14233f;--nxp-muted:#6a7b93;--nxp-line:#e6edf6;--nxp-card:#fff;--nxp-bg-soft:#f5f8fd;--nxp-shadow:0 6px 22px rgba(28,69,126,.06)}
#dashboard .nxp-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 16px}
#dashboard .nxp-title h2{margin:0;font-size:22px;font-weight:800;color:var(--nxp-ink)}
#dashboard .nxp-title p{margin:4px 0 0;font-size:12.5px;color:var(--nxp-muted)}
#dashboard .nxp-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#dashboard .nxp-filters label{font-size:12px;font-weight:700;color:#4f6280}
#dashboard .nxp-filters select,#dashboard .nxp-card-head select{min-height:38px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;padding:6px 30px 6px 12px;font:inherit;font-size:13px;color:#1b2f52}
#dashboard .nxp-filters button{min-height:38px;border:0;border-radius:10px;background:#237cff;color:#fff;font-weight:750;padding:7px 14px;cursor:pointer}
#dashboard .nxp-filters button:disabled{opacity:.6;cursor:progress}

#dashboard .nxp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
#dashboard .nxp-kpi{display:flex;align-items:center;gap:18px;min-height:128px;padding:20px 22px;background:var(--nxp-card);border:1px solid var(--nxp-line);border-radius:18px;box-shadow:var(--nxp-shadow);min-width:0}
#dashboard .nxp-kpi-icon{flex:0 0 66px;width:66px;height:66px;border-radius:16px;display:grid;place-items:center;color:#fff}
#dashboard .nxp-kpi-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#dashboard .nxp-kpi-icon.green{background:linear-gradient(145deg,#3cc77f,#22a463);box-shadow:0 8px 18px #22a46330}
#dashboard .nxp-kpi-icon.blue{background:linear-gradient(145deg,#3b95ff,#1f6ff0);box-shadow:0 8px 18px #1f6ff030}
#dashboard .nxp-kpi-icon.orange{background:linear-gradient(145deg,#ffbd45,#f79a12);box-shadow:0 8px 18px #f79a1230}
#dashboard .nxp-kpi-icon.purple{background:linear-gradient(145deg,#a865ff,#8240ea);box-shadow:0 8px 18px #8240ea30}
#dashboard .nxp-kpi>div{display:flex;flex-direction:column;gap:5px;min-width:0}
#dashboard .nxp-kpi small{font-size:14px;font-weight:650;color:#3f4f6b}
#dashboard .nxp-hint{font-size:11px;font-weight:600;color:#8a9ab0}
#dashboard .nxp-kpi b{font-size:clamp(18px,1.55vw,30px);font-weight:850;letter-spacing:-.6px;color:var(--nxp-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashboard .nxp-var{font-style:normal;font-size:13px;font-weight:800;min-height:17px}
#dashboard .nxp-var span{font-weight:600;color:#8a9ab0;font-size:11.5px;margin-left:3px}
#dashboard .nxp-var.up{color:#1fa463}
#dashboard .nxp-var.down{color:#e04848}
#dashboard .nxp-var.neutral{color:#8a9ab0;font-weight:600;font-size:12px}

#dashboard .nxp-row{display:grid;gap:18px;margin-bottom:18px}
#dashboard .nxp-row-2{grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr)}
#dashboard .nxp-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
#dashboard .nxp-card{background:var(--nxp-card);border:1px solid var(--nxp-line);border-radius:18px;box-shadow:var(--nxp-shadow);padding:20px 22px;min-width:0}
#dashboard .nxp-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:38px}
#dashboard .nxp-card-head h3{margin:0;font-size:19px;font-weight:800;color:var(--nxp-ink)}
#dashboard .nxp-link{border:0;background:none;color:#237cff;font-weight:700;font-size:13px;cursor:pointer;padding:4px}
#dashboard .nxp-link:hover{text-decoration:underline}
#dashboard .nxp-empty{margin:24px 0;color:var(--nxp-muted);font-size:13px;text-align:center}

#dashboard .nxp-chart{display:flex;gap:10px;height:250px}
#dashboard .nxp-axis{display:flex;flex-direction:column;justify-content:space-between;height:210px;font-size:11.5px;color:#73849b;text-align:right;min-width:46px}
#dashboard .nxp-axis span{line-height:0}
#dashboard .nxp-plot{position:relative;flex:1;min-width:0}
#dashboard .nxp-grid{position:absolute;inset:0 0 40px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
#dashboard .nxp-grid i{display:block;border-top:1px solid #edf2f8}
#dashboard .nxp-grid i:last-child{border-top-color:#d9e2ee}
#dashboard .nxp-bars{position:relative;height:100%;display:flex;gap:6px;align-items:stretch}
#dashboard .nxp-bar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}
#dashboard .nxp-bar-track{height:210px;width:100%;display:flex;align-items:flex-end;justify-content:center}
#dashboard .nxp-bar-track span{display:block;width:min(42px,72%);background:linear-gradient(180deg,#3d9bff,#1f74f5);border-radius:5px 5px 0 0;transition:height .35s ease}
#dashboard .nxp-bar-track span.neg{background:#f2a3a3}
#dashboard .nxp-bar:hover .nxp-bar-track span{filter:brightness(1.08)}
#dashboard .nxp-bar small{margin-top:10px;font-size:11.5px;color:#5f7089;white-space:nowrap}
#dashboard .nxp-bar small.soft{visibility:hidden}

#dashboard .nxp-pay{display:flex;align-items:center;gap:26px;min-height:240px}
#dashboard .nxp-donut{flex:0 0 190px;width:190px;height:190px;border-radius:50%;display:grid;place-items:center}
#dashboard .nxp-donut>div{width:118px;height:118px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;padding:6px}
#dashboard .nxp-donut small{font-size:11px;color:#7a8aa0;font-weight:600}
#dashboard .nxp-donut b{font-size:13px;color:var(--nxp-ink);font-weight:800}
#dashboard .nxp-legend{flex:1;min-width:0;display:grid;gap:14px}
#dashboard .nxp-legend>div{display:flex;align-items:center;gap:10px;font-size:14px;color:#2f405d}
#dashboard .nxp-legend i{width:11px;height:11px;border-radius:50%;flex:0 0 11px}
#dashboard .nxp-legend span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashboard .nxp-legend strong{font-weight:700;color:#24385a}

#dashboard .nxp-list{display:flex;flex-direction:column}
#dashboard .nxp-prod{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #eef2f7}
#dashboard .nxp-prod:last-child{border-bottom:0}
#dashboard .nxp-thumb{position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:12px;background:var(--nxp-bg-soft);border:1px solid #edf1f7;display:grid;place-items:center;overflow:hidden}
#dashboard .nxp-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:1}
#dashboard .nxp-thumb i{font-style:normal;color:#a8b6c9;font-size:18px}
#dashboard .nxp-prod-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#dashboard .nxp-prod-info b{font-size:14px;font-weight:650;color:#1d2f4f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashboard .nxp-prod-info small{font-size:12.5px;color:#7a8aa0}
#dashboard .nxp-prod strong{font-size:15px;font-weight:750;color:#1c3256;white-space:nowrap}

#dashboard .nxp-stock{display:flex;align-items:center;gap:16px;padding:14px 16px;margin-bottom:12px;border:1px solid #edf1f7;border-radius:14px}
#dashboard .nxp-stock:last-child{margin-bottom:0}
#dashboard .nxp-stock-icon svg{width:30px;height:30px;fill:none;stroke:#1f3a63;stroke-width:1.7;stroke-linejoin:round}
#dashboard .nxp-stock-body{flex:1;min-width:0}
#dashboard .nxp-stock-top{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:#1d2f4f;margin-bottom:10px}
#dashboard .nxp-stock-top b{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashboard .nxp-stock-top span{white-space:nowrap;color:#2c3f5f}
#dashboard .nxp-stock-bar{height:12px;border-radius:99px;background:#eef2f8;overflow:hidden}
#dashboard .nxp-stock-bar i{display:block;height:100%;border-radius:99px}

#dashboard .nxp-alerts{display:flex;flex-direction:column;gap:10px}
#dashboard .nxp-alert{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;border-radius:12px;border:1px solid transparent;font:inherit;cursor:pointer;transition:filter .15s}
#dashboard .nxp-alert:hover:not(:disabled){filter:brightness(.97)}
#dashboard .nxp-alert:disabled{cursor:default}
#dashboard .nxp-alert>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
#dashboard .nxp-alert b{font-size:14px;font-weight:650;color:#3a2a1c}
#dashboard .nxp-alert small{font-size:12.5px;color:#5d6b80}
#dashboard .nxp-alert-icon{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:14px}
#dashboard .nxp-alert.red{background:#fdecec;border-color:#f9d6d6}#dashboard .nxp-alert.red .nxp-alert-icon{background:#ec5b5b}#dashboard .nxp-alert.red b{color:#8e2d2d}
#dashboard .nxp-alert.orange{background:#fff4e5;border-color:#fde3bf}#dashboard .nxp-alert.orange .nxp-alert-icon{background:#f7a13a}#dashboard .nxp-alert.orange b{color:#7c4a0e}
#dashboard .nxp-alert.blue{background:#eef5ff;border-color:#d7e7fd}#dashboard .nxp-alert.blue .nxp-alert-icon{background:#3d8ef7}#dashboard .nxp-alert.blue b{color:#1d4580}
#dashboard .nxp-alert.green{background:#fff4e5;border-color:#fde3bf}#dashboard .nxp-alert.green .nxp-alert-icon{background:#f7a13a}#dashboard .nxp-alert.green b{color:#7c4a0e}
#dashboard .nxp-alert.ok{background:#f1f9f4;border-color:#dcefe3}#dashboard .nxp-alert.ok .nxp-alert-icon{background:#2fb070}#dashboard .nxp-alert.ok b{color:#1d5a3a}

@media(max-width:1250px){#dashboard .nxp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .nxp-row-2,#dashboard .nxp-row-3{grid-template-columns:1fr}}
@media(max-width:640px){#dashboard .nxp-kpis{grid-template-columns:1fr;gap:10px}#dashboard .nxp-kpi{min-height:96px;padding:14px}#dashboard .nxp-kpi-icon{flex-basis:52px;width:52px;height:52px}#dashboard .nxp-card{padding:15px}#dashboard .nxp-pay{flex-direction:column;align-items:stretch}#dashboard .nxp-donut{margin:auto}#dashboard .nxp-bar small{font-size:9px}#dashboard .nxp-axis{min-width:34px;font-size:10px}#dashboard .nxp-bars{gap:2px}}
