/* Black, gold and warm neutrals from the existing Opti-Risk identity. */
.crm-sidebar{max-height:calc(100dvh - 180px);overflow-y:auto;scrollbar-width:thin}
.crm-sidebar button{font-size:13px}
.dash-heading,.dash-register-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.dash-heading h3,.dash-register-heading h3{font-size:clamp(25px,3vw,34px);line-height:1.15;letter-spacing:-.035em;margin:5px 0 10px;color:#191915}
.dash-heading p,.dash-register-heading p{font-size:13px;line-height:1.7;color:#716a5d;margin:0;max-width:650px}
.dash-heading .eyebrow,.dash-register-heading .eyebrow{font-size:10px;color:#80601a;letter-spacing:.15em}
.dash-heading>div:last-child{display:flex;align-items:flex-end;flex-direction:column;gap:9px;flex-shrink:0}
.dash-updated{font-size:10px;color:#716a5d}
.dash-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px}
.dash-quick-actions button{display:flex;align-items:center;gap:7px;border:1px solid #d9d1bd;background:#fff;border-radius:7px;padding:10px 13px;color:#343025;font:inherit;font-size:12px;cursor:pointer;min-height:42px}
.dash-quick-actions button:first-child{background:#000;color:#eec65d;border-color:#000}
.dash-quick-actions strong{border-radius:4px;background:#f1ebda;padding:3px 7px}
.dash-metric-section{margin-bottom:26px}
.dash-metric-section h4,.dash-charts-section h4,.dash-attention h4,.dash-recent h4{font-size:17px;font-weight:600;letter-spacing:-.015em;margin:0 0 14px;color:#282720}
.dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dash-metrics.six{grid-template-columns:repeat(3,minmax(0,1fr))}
.dash-metric{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:left;padding:18px 18px 14px;border:1px solid #e4decf;border-radius:10px;background:#fff;box-shadow:0 3px 10px #39331f03;cursor:pointer;font:inherit;transition:transform .15s,border-color .15s,box-shadow .15s}
.dash-metric:hover{transform:translateY(-2px);border-color:#b49a58;box-shadow:0 5px 14px #39331f09}
.dash-metric.attention{border-color:#d1b363;background:#fff9e8}
.dash-metric-label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.45;color:#5e594b;min-height:34px}
.dash-metric-label svg{flex:none;color:#957225;width:17px;height:17px}
.dash-metric strong{font-size:clamp(23px,2.2vw,31px);font-weight:650;letter-spacing:-.035em;line-height:1.25;color:#191915;margin:13px 0 15px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.dash-metric-hint{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;color:#7b725e;font-size:10px;line-height:1.4}
.dash-metric-hint svg{width:14px;height:14px;flex:none}
.dash-rules{border:1px solid #e2dccd;border-radius:8px;padding:14px 17px;font-size:12px;margin:0 0 30px;background:#f9f7f1;line-height:1.75;color:#655d4b}
.dash-rules summary,.dash-chart-values summary{cursor:pointer;color:#665021;font-weight:500}
.dash-rules p{margin:12px 0 0;font-size:12px}
.dash-attention{background:#fff;border:1px solid #e4decf;border-radius:10px;padding:22px;margin:0 0 32px}
.dash-attention .crm-toolbar{margin-bottom:9px}
.dash-attention h4{margin:0}
.dash-due-list{display:grid;gap:0}
.dash-due-list>button{display:grid;grid-template-columns:32px minmax(0,1fr) auto 18px;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #eee8dc;background:transparent;padding:14px 0;font:inherit;font-size:12px;cursor:pointer;color:#2e2d25}
.dash-due-list>button:last-child{border:0}
.dash-due-list>button:hover{background:#faf8f2}
.dash-due-list small{display:block;font-size:10px;color:#7b725e;margin-top:4px}
.dash-due-icon{display:grid;place-items:center;width:32px;height:32px;background:#f7f1df;border-radius:7px;color:#8a6722}
.dash-due-date{font-size:10px;color:#716a5d;white-space:nowrap}
.dash-due-date.late{color:#885b16;font-weight:650}
.dash-charts-section>.crm-toolbar{align-items:center;gap:14px}
.dash-charts-section>.crm-toolbar>div{flex:1}
.dash-charts-section>.crm-toolbar h4{margin:0}
.dash-charts-section>.crm-toolbar p{margin:4px 0 0}
.dash-year{display:flex;align-items:center;gap:9px;font-size:11px;color:#655d4b}
.dash-year select{border:1px solid #d7cfbd;border-radius:6px;background:#fff;padding:8px 11px;font:inherit;color:#191915;font-size:14px}
.dash-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dash-chart-card{border:1px solid #e4decf;border-radius:10px;background:#fff;padding:22px;min-width:0;display:flex;flex-direction:column}
.dash-chart-heading{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;min-height:67px;margin-bottom:12px}
.dash-chart-heading h4{font-size:14px;line-height:1.5;letter-spacing:-.01em;margin:0 0 3px}
.dash-chart-heading p{font-size:10px;line-height:1.5;color:#7b725e;margin:0}
.dash-chart-link{border:1px solid #e6dfcf;background:#fff;border-radius:6px;width:32px;height:32px;display:grid;place-items:center;color:#8a6722;cursor:pointer;flex:none}
.dash-line-chart{display:block;width:100%;height:auto;overflow:visible;margin:auto 0 9px}
.dash-line-chart [tabindex]:focus{outline:2px solid #765915;outline-offset:3px}
.dash-chart-empty{font-size:11px;color:#7b725e;background:#f7f5ef;border-radius:5px;padding:8px 10px;margin:0 0 10px}
.dash-chart-values{font-size:10px;margin-top:10px}
.dash-chart-values table{width:100%;border-collapse:collapse;margin-top:9px;font-size:11px}
.dash-chart-values th,.dash-chart-values td{padding:7px 8px;text-align:left;border-bottom:1px solid #e9e4d9}
.dash-chart-values th{font-weight:500}
.dash-legend{display:flex;gap:18px;font-size:10px;color:#655d4b;justify-content:center;margin:8px 0}
.dash-legend span{display:flex;gap:6px;align-items:center}
.dash-legend i,.dash-donut-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;flex:none}
.dash-bars{display:grid;gap:14px;margin-bottom:8px}
.dash-bar-row{display:grid;grid-template-columns:minmax(0,1fr) 26px;gap:7px;text-align:left;padding:0;background:none;border:0;font:inherit;font-size:11px;color:#4b4639;cursor:pointer}
.dash-bar-row strong{text-align:right;font-size:12px;font-weight:600;color:#191915}
.dash-bar-row i{grid-column:1/-1;height:6px;background:#f2eee5;border-radius:5px;overflow:hidden}
.dash-bar-row b{display:block;height:6px;background:#c39a3c;border-radius:5px}
.dash-bar-row:hover span{text-decoration:underline}
.dash-donut{display:flex;gap:16px;align-items:center;margin:auto 0}
.dash-donut svg{width:48%;max-width:180px;flex:none}
.dash-donut-legend{display:flex;flex-direction:column;gap:12px;flex:1;min-width:0}
.dash-donut-legend button{display:flex;align-items:center;gap:7px;justify-content:flex-start;background:none;border:0;padding:0;font:inherit;font-size:10px;color:#655d4b;cursor:pointer;text-align:left}
.dash-donut-legend strong{font-weight:600;font-size:12px;margin-left:auto;color:#191915}
.dash-recent{margin:30px 0 20px}
.dash-recent .crm-toolbar{margin-bottom:12px}
.dash-recent h4{margin:0;font-size:16px}
.dash-recent p{font-size:12px;line-height:1.6;margin:12px 0}
.dash-recent small{color:#7b725e}
.dash-configuration{margin-top:22px}
.dash-register-heading .button{font-size:11px;white-space:nowrap;padding:12px 16px;flex:none}
.dash-register-filters{display:flex;align-items:flex-start;gap:15px;margin-bottom:12px}
.dash-register-filters label{flex:1;margin:0}
.dash-register-filters label:first-child{flex:2}
.dash-filter-context{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;background:#fff5d7;border:1px solid #e5d097;border-radius:6px;padding:10px 14px;margin-bottom:14px;color:#665021}
.dash-register-result{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 16px}
.dash-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #e4decf;border-radius:9px;background:#fff;scrollbar-width:thin}
.dash-register-table{width:100%;border-collapse:collapse;font-size:12px;min-width:700px}
.dash-register-table th,.dash-register-table td{padding:15px 14px;text-align:left;border-bottom:1px solid #eae5da;vertical-align:top}
.dash-register-table thead th{background:#faf8f2;font-size:10px;letter-spacing:.035em;font-weight:550;color:#786e57}
.dash-register-table tbody th{min-width:180px;max-width:260px;font-weight:450}
.dash-register-table tbody tr:last-child>*{border:0}
.dash-register-table small{display:block;font-size:10px;line-height:1.6;margin-top:5px;color:#7b725e;font-weight:400}
.dash-record-title{font:inherit;font-weight:550;line-height:1.6;padding:0;border:0;background:none;color:#292820;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.dash-record-title:hover{color:#80601a;text-decoration:underline}
.dash-row-actions{display:flex;flex-wrap:wrap;gap:7px}
.dash-row-actions button{white-space:nowrap;font-size:10px}
.dash-amount{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:550}
.crm-status.finished{background:#e8e4d9;color:#3b3a30}
.dash-client-total{display:grid;place-items:center;border-radius:9px;min-width:62px;height:62px;background:#000;color:#eec65d;font-size:28px}
@media(max-width:1100px){.dash-metric{padding:15px 13px}.dash-metric-label{font-size:10px}.dash-chart-card{padding:18px}.dash-donut{gap:10px}}
@media(max-width:950px){.crm-sidebar{max-height:none;overflow-y:visible;overflow-x:auto}.crm-sidebar button{font-size:12px}.dash-heading h3{font-size:32px}.dash-metric strong{font-size:29px}}
@media(max-width:700px){.dash-metrics,.dash-metrics.six{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dash-charts{grid-template-columns:minmax(0,1fr)}.dash-chart-heading{min-height:0;margin-bottom:20px}.dash-metric-label{font-size:11px;min-height:32px}.dash-register-filters{flex-wrap:wrap;gap:10px}.dash-register-filters label:first-child{flex:1 1 100%}.dash-register-filters label{flex:1 1 40%}.dash-heading,.dash-register-heading{flex-wrap:wrap;gap:15px}.dash-heading>div:last-child{flex-direction:row;align-items:center;width:100%;justify-content:space-between}.dash-register-heading .button{width:100%;justify-content:center}.dash-quick-actions button{flex:1 1 44%;justify-content:center}.dash-due-list>button{grid-template-columns:28px minmax(0,1fr) 18px;gap:9px}.dash-due-date{grid-column:2;grid-row:2;margin-top:-5px;white-space:normal}.dash-due-list>button>svg{grid-column:3;grid-row:1}.dash-attention{padding:18px}.dash-year{font-size:10px}.dash-chart-link{width:42px;height:42px}.dash-donut-legend button{min-height:40px;font-size:12px}.dash-donut svg{max-width:170px}.dash-bars{gap:17px}.dash-bar-row{min-height:44px;font-size:12px}.dash-row-actions button{min-height:40px}.dash-filter-context{flex-wrap:wrap}.dash-register-table{min-width:680px}.dash-register-table th,.dash-register-table td{padding:14px 12px}}
@media(max-width:400px){.dash-metric{padding:14px 12px}.dash-metric strong{font-size:24px}.dash-metric-hint{font-size:9px}.dash-metric-label{font-size:10px}.dash-quick-actions button{font-size:10px;padding:10px 8px}.dash-donut{flex-direction:column}.dash-donut svg{width:150px}.dash-donut-legend{width:100%;flex-direction:row;flex-wrap:wrap;gap:7px}.dash-donut-legend button{flex:1 1 45%;font-size:10px}}
@media(prefers-reduced-motion:reduce){.dash-metric{transition:none}.dash-metric:hover{transform:none}}

.dash-company-summary>h3{font-size:24px;margin:0 0 12px}.dash-company-summary>p{font-size:13px;line-height:1.7}.dash-company-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.dash-company-links>button{display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;min-height:56px;padding:14px 16px;border:1px solid #e4decf;border-radius:7px;background:#f9f7f1;font:inherit;font-size:12px;color:#4b4639;cursor:pointer}.dash-company-links strong{color:#765915;margin-left:auto;font-size:18px}.dash-company-links svg{width:16px;flex:none}@media(max-width:500px){.dash-company-links{grid-template-columns:1fr}}

@media(max-width:700px){.dash-chart-values,.dash-chart-values table{font-size:12px}.dash-chart-values summary{min-height:40px;padding-top:9px}.dash-register-table .dash-record-title{min-height:40px}}
