/* Dashboard-only presentation. No record editor, transaction list, or payment controls affected. */
#dashboardView .dashboard-widget-toolbar { margin-bottom:12px; min-height:40px; }
#dashboardView .dashboard-widget-toolbar h2 { margin:0; font-size:19px; }
#dashboardView .dashboard-compact-tools { display:flex; align-items:center; gap:8px; }
#dashboardView .dashboard-widget-button { min-height:36px; padding:7px 11px; }
#dashboardView .stats { gap:10px; margin-bottom:12px; }
#dashboardView .stat { padding:12px 14px; min-height:100px; }
#dashboardView .stat-top { margin:0 0 5px; }
#dashboardView .stat strong { margin:0 0 3px; font-size:25px; line-height:1.2; }
#dashboardView .stat .eyebrow { font-size:10px; }
#dashboardView .stat small { margin:0; font-size:11px; }
#dashboardView .dashboard-work-grid { gap:12px; margin:12px 0; align-items:start; }
#dashboardView .dashboard-work-grid>.hidden { display:none!important; }
#dashboardView .dashboard-work-grid:has(>.hidden) { grid-template-columns:1fr; }
#dashboardView .dashboard-work-grid :is(.panel,.user-task-panel) { margin:0; padding:14px; min-width:0; }
#dashboardView :is(.panel-heading,.user-task-heading) { margin:0 0 10px; gap:10px; align-items:center; }
#dashboardView :is(.panel-heading h3,.user-task-heading h2) { margin:0; font-size:15px; }
#dashboardView .user-task-heading p { margin:4px 0 0; font-size:11px; }
#dashboardView .user-task-row { padding:9px 0; gap:9px; }
#dashboardView .user-task-row strong { font-size:13px; }
#dashboardView .user-task-row span { font-size:11px; }
#dashboardView .user-task-meta small { display:none; }
#dashboardView .attention-job { padding:9px 0; }
#dashboardView .attention-job strong { font-size:13px; }
#dashboardView .dashboard-receivables { display:block; margin:0 0 12px; padding:14px; }
#dashboardView .dashboard-receivables>.panel-heading { flex-wrap:wrap; }
#dashboardView .dashboard-receivables>.panel-heading small { color:var(--muted); font-size:11px; }
#dashboardView .dashboard-receivable-totals { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
#dashboardView .dashboard-receivable-total {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:42px; padding:8px 12px;
  border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); cursor:pointer;
}
#dashboardView .dashboard-receivable-total span { font-size:12px; }
#dashboardView .dashboard-receivable-total strong { font-size:17px; }
#dashboardView .dashboard-receivable-total small { font-size:11px; color:var(--muted); }
#dashboardView .dashboard-receivable-total.past-due-panel { border-color:#e7c2bd; color:#9e3529; }
#dashboardView .invoice-aging-row { min-height:44px; padding:8px 0; }
#dashboardView .invoice-aging-row strong,#dashboardView .invoice-aging-row>div>strong { font-size:13px; }
#dashboardView .invoice-aging-row span { font-size:11px; }
#dashboardView .dashboard-reports-menu { position:relative; }
#dashboardView .dashboard-reports-menu>summary,#dashboardView .dashboard-pipeline>summary {
  cursor:pointer; font-size:13px; font-weight:700;
}
#dashboardView .dashboard-reports-menu>summary {
  min-height:36px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; background:white; white-space:nowrap;
}
#dashboardView .dashboard-reports-menu>.dashboard-report-actions {
  position:absolute; top:calc(100% + 6px); right:0; z-index:20; display:grid; gap:6px;
  grid-template-columns:minmax(0,1fr); grid-auto-flow:row;
  width:min(300px,calc(100vw - 48px)); padding:10px; border:1px solid var(--line);
  border-radius:10px; background:white; box-shadow:0 10px 28px rgba(15,35,55,.15);
}
#dashboardView .dashboard-reports-menu:not([open])>.dashboard-report-actions { display:none; }
#dashboardView .dashboard-reports-menu>.dashboard-report-actions button {
  min-width:0; width:100%; min-height:42px; padding:9px 12px; text-align:left; white-space:normal;
}
#dashboardView .dashboard-report-actions small { display:none; }
#dashboardView .dashboard-pipeline { padding:12px 14px; margin:0 0 12px; }
#dashboardView .dashboard-pipeline[open]>summary { margin-bottom:12px; }
#dashboardView .dashboard-goal-disclosure { border:1px solid var(--line); border-radius:10px; background:white; }
#dashboardView .dashboard-goal-disclosure>summary {
  display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-height:56px; padding:10px 14px;
  cursor:pointer; font-size:13px; font-weight:700; list-style:none;
}
#dashboardView .dashboard-goal-disclosure>summary::after { content:'⌄'; margin-left:auto; }
#dashboardView .dashboard-goal-disclosure>summary::-webkit-details-marker { display:none; }
#dashboardView .dashboard-goal-disclosure>summary small { color:var(--muted); font-weight:500; font-size:12px; }
#dashboardView .dashboard-goal-track { width:clamp(100px,20vw,240px); height:7px; border-radius:8px; background:#e8eeeb; }
#dashboardView .dashboard-goal-track>span { display:block; height:100%; border-radius:inherit; background:var(--green); }
#dashboardView .dashboard-goal-disclosure>.sales-dashboard-panel { margin:0; border:0; padding:14px; box-shadow:none; }
#dashboardView .dashboard-goal-disclosure:not([open])>.sales-dashboard-panel { display:none; }
#dashboardView summary:focus-visible,#dashboardView .dashboard-receivable-total:focus-visible {
  outline:3px solid #1565c0; outline-offset:3px;
}
@media(max-width:900px) {
  #dashboardView .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #dashboardView .dashboard-work-grid { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  #dashboardView .dashboard-widget-toolbar { position:relative; align-items:center; flex-direction:row; gap:8px; }
  #dashboardView .dashboard-reports-menu { position:static; }
  #dashboardView .dashboard-reports-menu>.dashboard-report-actions { left:12px; right:12px; width:auto; }
  #dashboardView .stat { min-height:95px; padding:10px; }
  #dashboardView .stat strong { font-size:22px; }
  #dashboardView .dashboard-work-grid :is(.panel,.user-task-panel) { padding:12px; }
  #dashboardView .dashboard-goal-disclosure>summary { gap:8px; }
  #dashboardView .dashboard-goal-track { flex:1 1 90px; }
  #dashboardView .dashboard-receivable-total { width:100%; }
  #dashboardView .user-task-row { grid-template-columns:28px minmax(0,1fr); }
  #dashboardView .user-task-meta { grid-column:2; text-align:left; }
}
