.kpi{display:flex;flex-direction:column;min-height:200px}.kpi>.panelTitle{flex-shrink:0}.dashboardTools{display:flex;gap:6px;padding:6px 10px;justify-content:space-between;flex-shrink:0}.dashboardTools select{max-width:60%}.dashboardTools button,.dashboardBody button,.dashboardDetail button{cursor:pointer;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#244669;padding:4px 8px}.dashboardBody{overflow:auto;min-height:0;flex:1;padding:0 10px 8px}.dashboardStatus{font-size:calc(10px * var(--quantum-font-scale,1.05));color:#64748b;padding:0 10px 5px;flex-shrink:0}.dashboardError{color:#a32929}.dashboardValue{display:flex;justify-content:space-between;gap:8px;padding:5px 6px;border-bottom:1px solid #e5eaf0;font-size:calc(11px * var(--quantum-font-scale,1.05))}.dashboardValue strong{white-space:nowrap;font-variant-numeric:tabular-nums}.dashboardTableWrap{overflow:auto}.dashboardTableWrap table{min-width:310px;width:100%}.dashboardTableWrap th{position:sticky;top:0;background:#eef3f8}.dashboardTableWrap td{padding:4px;white-space:nowrap;font-variant-numeric:tabular-nums}.dashboardReminderCards{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dashboardReminderCards button{display:flex;flex-direction:column;align-items:start;gap:4px;border-left:3px solid #4e7ce5}.dashboardReminderCards strong{font-size:calc(24px * var(--quantum-font-scale,1.05))}.dashboardReminderCards small{font-size:calc(10px * var(--quantum-font-scale,1.05))}.dashboardNews{padding:8px 0;border-bottom:1px solid #dbe3ed}.dashboardNews a{font-weight:600;color:#1c53b8}.dashboardNews p{font-size:calc(11px * var(--quantum-font-scale,1.05));margin:4px 0}.dashboardNews small{color:#68788e}.dashboardBar{margin:8px 0;font-size:calc(10px * var(--quantum-font-scale,1.05))}.dashboardBar>span{display:block}.dashboardBar>div{background:#326ce5;color:white;min-width:45px;padding:3px;white-space:nowrap;box-sizing:border-box}.dashboardDetail{width:min(1100px,92vw);max-height:85vh;border:1px solid #aabbd0;border-radius:8px;color:#243c56}.dashboardDetail::backdrop{background:#10243966}.dashboardDetail h2{font-size:calc(18px * var(--quantum-font-scale,1.05))}.dashboardDetail>button{float:right}.dashboardDetail .dashboardTableWrap{max-height:65vh}
.dashboardDetailGrid{height:60vh;min-height:260px}
.dashboardBody .kpiNote{margin:8px 0;line-height:17px}.dashboardBody .miniTable{margin-top:8px}
.dashboardBody.dashboardMenuList{margin:0 8px 8px;padding:0;border:1px solid #a5a5a5;background:#fff;scrollbar-color:#999 #e7e7e7;scrollbar-width:thin}
.dashboardBody .dashboardMenuRow{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;width:100%;height:34px;min-height:34px;padding:0;border:0;border-radius:0;background:#fff;color:#152c46;text-align:left;opacity:1;overflow:hidden}
.dashboardMenuRow>.dashboardMenuIcon{display:block;justify-self:center;width:34px;height:34px;min-width:34px;max-width:34px;object-fit:contain}
.dashboardMenuRow>.dashboardShortcutIcon{width:28px;height:28px;min-width:28px;max-width:28px}
.dashboardMenuRow>.dashboardMenuLabel{display:block;min-width:0;padding:0 8px 0 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:calc(11px * var(--quantum-font-scale,1.05));line-height:18px;color:#152c46}
.dashboardBody .dashboardMenuRow.isSelected{background:#ccc}
.dashboardBody .dashboardMenuRow:hover:not(:disabled){background:#e6edf5}
.dashboardBody .dashboardMenuRow:disabled{opacity:1;color:#152c46;cursor:not-allowed}
.figureTone-green{--figure-ink:#166744;--figure-soft:#edf8f0;--figure-line:#cde8d6}
.figureTone-teal{--figure-ink:#146b70;--figure-soft:#edf8f8;--figure-line:#cee9e8}
.figureTone-amber{--figure-ink:#936019;--figure-soft:#fff8e9;--figure-line:#f1e1bc}
.figureTone-blue{--figure-ink:#285d9d;--figure-soft:#eef5ff;--figure-line:#d6e4f5}
.figureTone-violet{--figure-ink:#70529d;--figure-soft:#f6f1fc;--figure-line:#e3d8f2}
.figureTone-rose{--figure-ink:#ad3b50;--figure-soft:#fff0f2;--figure-line:#f2d6dc}
.dashboardFigureGroup{margin:3px 0 10px;border:1px solid var(--figure-line);border-radius:7px;overflow:hidden;background:#fff}
.dashboardFigureHeading{margin:0;padding:6px 9px;background:var(--figure-soft);border-bottom:1px solid var(--figure-line);color:var(--figure-ink);font-size:calc(10px * var(--quantum-font-scale,1.05));font-weight:600;letter-spacing:.15px}
.dashboardFigureRow{display:grid;grid-template-columns:28px minmax(0,1fr) max-content;align-items:center;gap:7px;min-height:36px;padding:4px 8px;border-bottom:1px solid #edf0f5}
.dashboardFigureRow:last-child{border-bottom:0}
.dashboardFigureIcon{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:var(--figure-soft)}
.dashboardFigureIcon>img{display:block;width:22px;height:22px;object-fit:contain}
.dashboardFigureLabel{min-width:0;color:#354a62;font-size:calc(11px * var(--quantum-font-scale,1.05));line-height:15px;overflow-wrap:anywhere}
.dashboardFigureAmount{color:var(--figure-ink);font-size:calc(11px * var(--quantum-font-scale,1.05));font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboardFigureRow.isNegative>.dashboardFigureAmount{color:#b52f46}

.dashboardNewsTitle{margin:0;color:#1c53b8;font-size:calc(12px * var(--quantum-font-scale,1.05));font-weight:700;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.dashboardNewsImage{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:5px;margin-bottom:8px;background:#eef3f8}

.dashboardRankingChart{display:grid;gap:12px}.dashboardRankingLabel{display:flex;justify-content:space-between;gap:12px}.dashboardRankingLabel span{min-width:0;overflow-wrap:anywhere}.dashboardRankingLabel strong{white-space:nowrap;font-variant-numeric:tabular-nums}.dashboardRankingTrack{height:10px;background:#e8eef5;border-radius:4px;overflow:hidden;margin:5px 0}.dashboardRankingFill{height:100%;background:#4d85cf;border-radius:4px}.dashboardRankingRow small{color:#63748a}.kpi[data-widget="representatives"] .dashboardRankingFill{background:#d76a30}.kpi[data-widget="top-customers"] .dashboardRankingFill{background:#679d77}

/* Pending orders: ERP summary boxes and shared, persistent compact grid. */
.dashboardOrders{display:flex;flex-direction:column;gap:6px;overflow:hidden}.dashboardOrdersSummary{margin:2px 0;color:#64748b;font-size:11px}.dashboardOrderTotals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;flex:none}.dashboardOrderTotal{display:flex;flex-direction:column;gap:3px;min-width:0;padding:7px 8px;background:#f7f9fb;border-top:2px solid var(--order-tone);border-radius:3px}.dashboardOrderTotal span,.dashboardOrderTotal small{font-size:10px;color:#64748b;overflow-wrap:anywhere}.dashboardOrderTotal strong{font-size:16px;font-weight:500;color:var(--order-tone);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.orderTone-blue{--order-tone:#2563eb}.orderTone-teal{--order-tone:#0d9488}.orderTone-amber{--order-tone:#d97706}.dashboardOrdersGrid{flex:1;min-height:100px;height:auto}.dashboardOrdersGrid .qgridTable tbody tr:nth-child(even){background:#f7f9fb}.dashboardOrdersGrid .qgridTable td.dashboardOrderPending{color:#d97706}.dashboardOrdersGrid .qgridTable td.dashboardOrderStock{color:#0d9488}.dashboardOrdersGrid .qgridTable td.dashboardOrderShortage{color:#b91c1c}.dashboardOrdersLimit{flex:none;margin:0;color:#64748b;font-size:10px;line-height:1.4}.dashboardOrders>button{align-self:flex-end;flex:none}

.dashboardOrdersGrid .qgridTable th button{border:0;border-radius:0;background:transparent;color:#64748b;padding:0}.dashboardOrdersGrid .qgridTable th.qgridSelectionCell:empty::after{content:"No"}

.dashboardProductionTotals{display:flex;gap:4px;overflow-x:auto;margin-bottom:4px}.dashboardProductionTotals button{flex:1;min-width:64px;display:flex;flex-direction:column;gap:2px;padding:4px}.dashboardProductionTotals button[aria-pressed=true]{background:#e0f2fe;border-color:#0284c7}
