/* Sales Dashboard r7 — Steinhaus navy/gold, labeled state colors, responsive lanes. */
.sd-dashboard { --sd-ink:#173248; --sd-muted:#66778a; --sd-line:#dce5ed; --sd-gold:#b18445; padding:26px !important; }
.sd-dashboard .mbs-heading { margin-bottom:12px; }
.sd-dashboard h1 { letter-spacing:-.035em; }
.sd-dashboard button:focus-visible,.sd-dashboard input:focus-visible,.sd-dashboard select:focus-visible,.sd-dashboard summary:focus-visible { outline:3px solid #3d7cad; outline-offset:3px; }
.sd-freshness { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-size:11px; color:var(--sd-muted); margin:0 0 24px; }
.sd-live-dot { width:7px; height:7px; border-radius:50%; background:#34705e; flex:0 0 auto; }
.sd-live-dot.loading { background:#aa7a38; }
.sd-freshness .sd-stale { color:#86602b; }
.sd-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; padding:16px; border:1px solid var(--sd-line); border-radius:14px; background:#f8fafc; margin-bottom:20px; }
.sd-filters label { display:flex; flex-direction:column; gap:7px; font-size:11px; font-weight:650; color:#52677c; min-width:160px; margin:0; }
.sd-filters input,.sd-filters select { min-height:42px; border:1px solid #d5dfe8; border-radius:9px; padding:9px 11px; background:#fff; color:var(--sd-ink); font:inherit; font-size:12px; width:100%; }
.sd-filters input[type=search] { -webkit-appearance:none; appearance:none; }
.sd-filters .sd-search { flex:1; min-width:220px; }
.sd-filters select:disabled { color:#647384; background:#eef2f5; }
.sd-segment { display:inline-flex; gap:3px; border:1px solid #d9e1e9; background:#fff; padding:4px; border-radius:10px; flex-shrink:0; }
.sd-segment button { border:0; background:transparent; color:#607083; border-radius:7px; padding:8px 12px; cursor:pointer; font:inherit; font-size:11px; font-weight:650; white-space:nowrap; }
.sd-segment button.active { background:var(--sd-ink); color:#fff; }
.sd-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:28px; }
.sd-stat { position:relative; text-align:left; border:1px solid var(--sd-line); border-radius:12px; padding:17px 20px; background:#fff; color:var(--sd-ink); cursor:pointer; overflow:hidden; font:inherit; }
.sd-stat::before { content:''; width:4px; position:absolute; left:0; top:17px; bottom:17px; border-radius:0 4px 4px 0; background:#3f708e; }
.sd-stat-attention::before { background:#ba8841; }.sd-stat-due::before { background:#ba6554; }.sd-stat-delivered::before { background:#4a8372; }
.sd-stat-label { display:block; font-size:12px; font-weight:650; margin-bottom:7px; }.sd-stat strong { display:block; font-size:30px; letter-spacing:-.04em; line-height:1.2; }.sd-stat small { display:block; font-size:10px; color:var(--sd-muted); margin-top:8px; line-height:1.4; }
.sd-stat:hover { background:#f9fbfd; border-color:#b7c8d6; }
.sd-section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0 0 15px; }
.sd-section-heading h2 { display:flex; align-items:center; gap:9px; margin:0; font-size:17px; font-weight:700; letter-spacing:-.02em; color:var(--sd-ink); }
.sd-section-heading h2 span { display:inline-flex; align-items:center; justify-content:center; min-width:25px; padding:3px 7px; font-size:11px; border:1px solid #dce4eb; border-radius:7px; color:#6a7a88; background:#fff; }
.sd-section-heading p { font-size:11px; color:var(--sd-muted); margin:6px 0 0; line-height:1.5; }
.sd-secondary-actions { display:flex; flex-wrap:wrap; gap:8px; }.sd-secondary-actions .btn { font-size:11px; padding:9px 12px; }.sd-secondary-actions b { margin-left:7px; color:#8a652e; }
.sd-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.sd-lane { min-width:0; background:#f4f7fa; border:1px solid #e0e7ed; border-top:3px solid #7893a7; border-radius:11px; overflow:hidden; }
.sd-lane-drawings { border-top-color:#a99777; }.sd-lane-release { border-top-color:#b99457; }.sd-lane-production { border-top-color:#658caf; }.sd-lane-shipping { border-top-color:#788bb0; }.sd-lane-delivered { border-top-color:#629281; }
.sd-lane>header { display:flex; align-items:center; gap:8px; padding:13px 12px; min-height:56px; }
.sd-lane h2 { font-size:12px; font-weight:700; margin:0; color:var(--sd-ink); line-height:1.4; }
.sd-lane-icon { width:23px; height:23px; color:#6c8294; flex-shrink:0; }.sd-lane-icon svg { width:100%; height:100%; }
.sd-lane-count { margin-left:auto; background:#e6edf3; color:#496174; border-radius:6px; padding:3px 6px; font-size:10px; font-weight:700; }
.sd-lane-content { display:grid; gap:10px; padding:0 9px 10px; max-height:560px; overflow-y:auto; scrollbar-width:thin; }
.sd-lane-empty { color:#7d8d9b; font-size:11px; text-align:center; border:1px dashed #d4dfe7; border-radius:8px; padding:23px 10px; margin:0; background:#f9fbfc; }
.sd-project { min-width:0; background:#fff; padding:14px; border:1px solid #dde6ed; border-radius:9px; box-shadow:0 2px 3px #17324804; }
.sd-record-type { display:block; color:#81909c; font-size:9px; font-weight:650; letter-spacing:.025em; margin-bottom:5px; }
.sd-project h3 { margin:0; line-height:1.35; }.sd-name-button { border:0; background:none; color:var(--sd-ink); font:inherit; font-size:14px; font-weight:750; padding:0; text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.sd-name-button:hover { text-decoration:underline; text-underline-offset:3px; }
.sd-project-ref { font-size:10px; margin:6px 0 10px; color:#8593a0; overflow-wrap:anywhere; }
.sd-project-owner { display:flex; gap:7px; align-items:center; font-size:11px; color:#586e80; margin-bottom:10px; }
.sd-avatar { display:flex; flex:0 0 23px; width:23px; height:23px; align-items:center; justify-content:center; border-radius:50%; background:#edf2f6; color:#476073; font-size:8px; font-weight:700; }
.sd-badge { display:inline-block; padding:3px 6px; font-size:9px; font-weight:650; border-radius:5px; line-height:1.4; background:#eef3f7; color:#516b80; max-width:100%; overflow-wrap:anywhere; }
.sd-badge.stage { background:#f0f4f7; color:#455f73; }.sd-badge.attention { background:#fff3dd; color:#885c1c; }.sd-badge.late { background:#fbece8; color:#9c4330; }.sd-badge.scheduled { background:#eaf3ee; color:#3b705e; }
.sd-badges { display:flex; gap:4px; flex-wrap:wrap; }
.sd-project-next { margin-top:10px; border-top:1px solid #edf1f5; padding-top:10px; }.sd-project-next p { font-size:11px; line-height:1.55; color:#657586; margin:6px 0 10px; overflow-wrap:anywhere; }.sd-project-next b { color:#50677b; font-weight:650; }
.sd-restriction { display:block; color:#8b533a; font-size:10px; margin-bottom:9px; }
.sd-project-footer { display:flex; gap:8px; align-items:center; justify-content:space-between; border-top:1px solid #edf1f5; padding-top:11px; }.sd-project-footer strong { font-size:14px; color:var(--sd-ink); }.sd-project-footer .sd-record-type { font-size:8px; margin-bottom:3px; }
.sd-open { background:none; border:0; color:#315f7f; padding:4px 0; font:inherit; font-weight:650; font-size:10px; text-align:left; cursor:pointer; }.sd-open:hover { text-decoration:underline; text-underline-offset:3px; }
.sd-reminders { margin-top:27px; padding:20px; border:1px solid #e0e7ed; border-radius:12px; background:#fafbfc; }
.sd-reminder-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.sd-reminder { background:#fff; border:1px solid #dee6ed; border-radius:9px; padding:13px; min-width:0; }.sd-reminder.overdue { border-left:3px solid #c77c65; }
.sd-reminder h3 { margin:10px 0 5px; font-size:12px; line-height:1.5; overflow-wrap:anywhere; color:var(--sd-ink); }.sd-reminder p { font-size:11px; margin:5px 0; color:#637589; overflow-wrap:anywhere; }.sd-reminder small { display:block; color:#7a8795; font-size:10px; line-height:1.5; }.sd-reminder .sd-open { margin-top:8px; display:block; }
.sd-empty-inline,.sd-link-note { font-size:11px; color:#6d7b89; line-height:1.6; margin:5px 0; }.sd-link-note { border-top:1px solid #e2e8ef; margin:14px 0 0; padding-top:11px; }
.sd-method { margin-top:20px; color:#778696; font-size:11px; line-height:1.7; }.sd-method summary { cursor:pointer; color:#526b80; font-weight:650; }.sd-method p { max-width:1100px; }
.sd-list { display:grid; gap:10px; }.sd-project-row { display:grid; grid-template-columns:minmax(150px,1.2fr) minmax(110px,.7fr) minmax(100px,.7fr) minmax(180px,1.5fr) minmax(110px,.7fr); gap:16px; align-items:center; }.sd-project-row .sd-project-owner { margin:0; }.sd-project-row .sd-project-ref { margin-bottom:0; }.sd-project-row .sd-project-next { border:0; padding:0; margin:0; }.sd-project-row .sd-project-next p { margin-bottom:0; }.sd-project-row .sd-project-footer { border:0; margin:0; padding:0; align-items:flex-end; flex-direction:column; }
@media(min-width:1750px) { .sd-board { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:1200px) { .sd-reminder-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.sd-project-row { grid-template-columns:minmax(160px,1fr) minmax(110px,.7fr) minmax(140px,1fr); }.sd-project-row .sd-project-next { grid-column:1/3; }.sd-project-row .sd-project-footer { grid-column:3; } }
@media(max-width:950px) { .sd-board { grid-template-columns:repeat(2,minmax(0,1fr)); }.sd-stats { gap:9px; }.sd-stat { padding:14px; }.sd-stat small { font-size:9px; } }
@media(max-width:650px) { .sd-dashboard { padding:15px !important; }.sd-dashboard .mbs-heading h1 { font-size:25px; }.sd-filters { padding:11px; gap:11px; }.sd-filters label { flex:1 1 130px; min-width:0; }.sd-filters .sd-search { flex-basis:100%; min-width:0; }.sd-view-toggle { margin-left:auto; }.sd-stats { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:20px; }.sd-stat strong { font-size:27px; }.sd-stat-label { font-size:11px; }.sd-board { grid-template-columns:1fr; }.sd-lane-content { max-height:480px; }.sd-reminders { padding:13px; }.sd-reminder-grid { grid-template-columns:1fr; }.sd-project-row { display:block; }.sd-project-row .sd-project-owner { margin:10px 0; }.sd-project-row .sd-project-next { padding-top:10px; }.sd-project-row .sd-project-footer { flex-direction:row; align-items:center; border-top:1px solid #edf1f5; padding-top:11px; }.sd-section-heading h2 { font-size:15px; }.sd-freshness { font-size:10px; gap:6px 11px; } }
@media(prefers-reduced-motion:reduce) { .sd-dashboard * { scroll-behavior:auto !important; } }

/* r7: aligned layout control, selected summary state and a separate metrics surface. */
.sd-filters input,.sd-filters select { height:42px; box-sizing:border-box; margin:0; }
.sd-layout { display:flex; flex-direction:column; gap:7px; font-size:11px; font-weight:650; color:#52677c; }
.sd-view-toggle { height:42px; box-sizing:border-box; align-items:stretch; }
.sd-view-toggle button { padding:0 12px; min-height:0; line-height:1; }
.sd-stat-selected { border-color:#6b8ba3; background:#f0f5f9; box-shadow:inset 0 0 0 1px #6b8ba3; }
.sd-metrics { padding:26px !important; }
.sd-metrics .mbs-heading { margin-bottom:14px; }
.sd-metrics-note { font-size:11px; line-height:1.6; color:#66778a; margin:0 0 20px; }
#sdMetricsContent>.card { padding:0; margin:0; max-width:none; border:0; box-shadow:none; }
.sd-metrics button:focus-visible { outline:3px solid #3d7cad; outline-offset:3px; }
@media(max-width:650px) { .sd-layout { margin-left:auto; }.sd-metrics { padding:15px !important; }.sd-metrics h1 { font-size:25px; }.sd-metrics .sh-inline-actions { width:100%; } }
#root .sd-filters label { margin:0; }
#root .sd-layout { font-weight:500; color:#6e7f8f; }
