.mdd-overlay{z-index:1000;padding:var(--space-4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0000008c;place-items:center;display:grid;position:fixed;inset:0}.mdd-dialog{width:min(880px,100%);max-height:min(860px, calc(100dvh - 2 * var(--space-4)));border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-modal);color:var(--text);flex-direction:column;display:flex;overflow:hidden}.mdd-head{justify-content:space-between;align-items:flex-start;gap:var(--space-4);padding:var(--space-4) var(--card-pad);border-bottom:1px solid var(--line);display:flex}.mdd-head-text{min-width:0}.mdd-head h2{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:18px;overflow:hidden}.mdd-period{margin:var(--space-1) 0 0;color:var(--muted);font-size:13px}.mdd-close{flex:none}.mdd-tabs{gap:var(--space-1);padding:var(--space-2) var(--card-pad) 0;border-bottom:1px solid var(--line);display:flex;overflow-x:auto}.mdd-tab{min-height:var(--control-h-md);padding:0 var(--space-3);color:var(--muted);font-size:var(--control-fs);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none}.mdd-tab:hover{color:var(--text)}.mdd-tab.active{border-bottom-color:var(--accent);color:var(--text);font-weight:600}.mdd-body{gap:var(--space-6);min-height:0;padding:var(--space-4) var(--card-pad) var(--space-6);overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.mdd-headline{align-items:baseline;gap:var(--space-2) var(--space-4);flex-wrap:wrap;display:flex}.mdd-headline-value{font-size:28px;font-weight:700;line-height:1.1}.mdd-headline-unit{font-family:var(--font-sans);font-size:18px;font-weight:600}.mdd-comparison{color:var(--muted);font-size:13px}.mdd-comparison.good{color:var(--green-text)}.mdd-comparison.bad{color:var(--red-text)}.mdd-value.is-credit{color:var(--green-text)}.mdd-section{gap:var(--space-3);flex-direction:column;display:flex}.mdd-section h3{margin:0;font-size:15px;font-weight:600}.mdd-section h3 small{color:var(--muted);font-size:13px;font-weight:400}.mdd-section-head{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);flex-wrap:wrap;display:flex}.mdd-buckets{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-soft);padding:2px;display:inline-flex}.mdd-bucket{min-height:calc(var(--control-h-sm) - 6px);padding:0 var(--space-3);border-radius:calc(var(--radius-md) - 2px);color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;font-size:13px}.mdd-bucket.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-card)}.mdd-chart{height:240px}.mdd-note{color:var(--muted);margin:0;font-size:13px;line-height:1.45}.mdd-inline-action{align-self:flex-start}.mdd-rows{margin:0}.mdd-rows-item{justify-content:space-between;align-items:baseline;gap:var(--space-4);padding:var(--space-2) 0;border-bottom:1px solid var(--line);display:flex}.mdd-rows-item:last-child{border-bottom:0}.mdd-rows-item dt{overflow-wrap:anywhere;min-width:0}.mdd-rows-item dt small{color:var(--muted);margin-top:2px;font-size:12px;display:block}.mdd-rows-item dd{flex:none;margin:0}.mdd-rows-item.is-strong dt,.mdd-rows-item.is-strong dd{font-weight:700}.mdd-waterfall{flex-direction:column;gap:2px;display:flex}.mdd-waterfall-row{align-items:center;gap:var(--space-3);grid-template-columns:minmax(120px,190px) 1fr minmax(96px,auto);min-height:28px;display:grid}.mdd-waterfall-row.is-level{font-weight:600}.mdd-waterfall-label{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.mdd-waterfall-track{height:14px;position:relative}.mdd-waterfall-bar{border-radius:3px;position:absolute;top:0;bottom:0}.mdd-waterfall-bar.is-minus{background:color-mix(in srgb, var(--red) 70%, transparent)}.mdd-waterfall-bar.is-plus{background:color-mix(in srgb, var(--green) 70%, transparent)}.mdd-waterfall-bar.is-level-plus{background:var(--accent)}.mdd-waterfall-bar.is-level-minus{background:var(--red)}.mdd-waterfall-value{text-align:right;font-size:13px}.mdd-ranking-group+.mdd-ranking-group{margin-top:var(--space-2)}.mdd-ranking-caption{margin:0 0 var(--space-1);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px}.mdd-ranking{margin:0;padding:0;list-style:none}.mdd-ranking-row{justify-content:space-between;align-items:center;gap:var(--space-4);width:100%;min-height:var(--control-h);padding:var(--space-1) var(--space-2);border-radius:var(--radius-md);color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;display:flex}.mdd-ranking-row:hover,.mdd-ranking-row:focus-visible{background:var(--surface-hover)}.mdd-ranking-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.mdd-ranking-name small{color:var(--muted);font-size:12px;display:block}.mdd-ranking-value{flex:none}.mdd-ranking-value.is-plus{color:var(--green-text)}.mdd-ranking-value.is-minus{color:var(--red-text)}.mdd-foot{padding:var(--space-3) var(--card-pad);border-top:1px solid var(--line);background:var(--surface-soft);justify-content:flex-end;display:flex}.mdd-tile{height:100%;position:relative}.mdd-open{z-index:1;border-radius:var(--radius-lg);cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.mdd-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mdd-tile:hover .metric-card{border-color:var(--line-strong)}.mdd-tile .help-tip{z-index:2;position:relative}@media (max-width:820px){.mdd-overlay{place-items:end stretch;padding:0}.mdd-dialog{width:100%;max-height:calc(100dvh - var(--space-8));border-radius:var(--radius-lg) var(--radius-lg) 0 0;border-bottom:0}.mdd-chart{height:200px}.mdd-waterfall-row{gap:var(--space-2);grid-template-columns:minmax(112px,44%) 1fr auto}.mdd-bucket{min-height:calc(var(--control-h) - 6px)}}
.dashboard-widget-groups{--dwg-number:22px;--dwg-padding:10px;--dwg-card-height:128px;margin-bottom:0;container-type:inline-size}.dwg-toolbar,.dwg-options,.dwg-group-actions,.dwg-widget-tools{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.dwg-toolbar{margin-bottom:var(--space-6);justify-content:space-between}.dwg-options{gap:var(--space-1);padding:var(--space-1);border-radius:var(--radius-md);background:var(--surface-2)}.dashboard-widget-groups button:not(:where(.dwg-card-slot *)),.dashboard-widget-groups select:not(:where(.dwg-card-slot *)),.dwg-group-name{min-height:var(--control-h-sm);padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-size:var(--control-fs-sm)}.dashboard-widget-groups button:not(:where(.dwg-card-slot *)){justify-content:center;align-items:center;gap:var(--space-2);cursor:pointer;display:inline-flex}.dashboard-widget-groups button:disabled:not(:where(.dwg-card-slot *)),.dashboard-widget-groups select:disabled:not(:where(.dwg-card-slot *)){opacity:.4;cursor:default}.dashboard-widget-groups button:not(:disabled):not(:where(.dwg-card-slot *)):hover{background:var(--surface-hover)}.dashboard-widget-groups .dwg-options button{color:var(--muted);background:0 0;border-color:#0000}.dashboard-widget-groups .dwg-options button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-strong)}.dashboard-widget-groups .dwg-create{background:var(--accent-fill);color:var(--on-accent)}.dashboard-widget-groups .dwg-create:not(:disabled):hover{background:var(--accent-fill-hover)}.dwg-group{background:0 0;border:0;align-self:start;min-width:0;margin:0;padding:0}.dwg-group-head{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3);flex-wrap:wrap;display:flex}.dwg-group-head h3,.dwg-group-head h4{font:600 13px/1.4 var(--font-head);overflow-wrap:anywhere;margin:0}.dwg-group-name{width:min(100%,360px);max-width:100%;font-weight:600}.dwg-subgroup .dwg-parent-label{color:var(--accent-strong)}.dwg-subgroup .dwg-group-head h4{color:var(--muted);font-size:14px}.dwg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.dwg-tile{flex-direction:column;min-width:0;display:flex}.dwg-card-slot{height:var(--dwg-card-height);min-width:0;container-type:inline-size}.dwg-help,.dwg-notice,.dwg-save-error{color:var(--muted);margin:var(--space-2) 0;font-size:13px}.dwg-notice:empty{display:none}.dwg-notice button{margin-left:var(--space-3)}.dwg-save-error{color:var(--red-text)}.dwg-empty{padding:var(--space-6);color:var(--muted);border:1px dashed var(--line-strong);border-radius:var(--radius-md);grid-column:1/-1;font-size:13px}.dwg-widget-tools{padding:var(--space-2);border:1px solid var(--line-strong);border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:var(--surface-2);gap:var(--space-1);border-bottom:0}.dwg-widget-tools button{padding:var(--space-1);min-width:var(--control-h-sm)}.dwg-widget-tools select{width:100%;min-width:0}.dwg-add-widget{min-width:0;max-width:260px}.dwg-drag{cursor:grab;width:var(--control-h-sm);min-height:var(--control-h-sm);color:var(--muted);place-items:center;display:grid}.dwg-drag:active{cursor:grabbing}.dwg-drag.is-pinned{cursor:default;opacity:.4}.dwg-editing .dwg-card-slot .metric-card{border-top-left-radius:0;border-top-right-radius:0}.dashboard-widget-groups .metric-card{padding:var(--dwg-padding);min-height:var(--dwg-card-height);background:var(--surface);border:1px solid var(--line);height:100%;box-shadow:var(--shadow-card);border-radius:var(--radius-lg);display:block;position:relative;overflow:visible}.dashboard-widget-groups .metric-card[data-comparison-tone=good]{background:color-mix(in srgb, var(--green) 9%, var(--surface));border-color:color-mix(in srgb, var(--green) 22%, var(--line))}.dashboard-widget-groups .metric-card[data-comparison-tone=bad]{background:color-mix(in srgb, var(--red) 8%, var(--surface));border-color:color-mix(in srgb, var(--red) 22%, var(--line))}.dashboard-widget-groups .metric-icon{top:var(--dwg-padding);left:var(--dwg-padding);background:0 0;border-radius:0;width:16px;height:16px;position:absolute}.dashboard-widget-groups .metric-card>.metric-body>.metric-title-row{align-items:flex-start;min-height:28px;margin:0;padding-left:22px}.dashboard-widget-groups .metric-card .metric-title-text{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1;font-size:12px;line-height:14px;display:-webkit-box;overflow:hidden}.dashboard-widget-groups .metric-card strong{font:600 clamp(19px, 10.5cqi, var(--dwg-number))/1.2 var(--font-num);letter-spacing:-.025em;white-space:nowrap;color:var(--text);flex-wrap:wrap;align-items:baseline;gap:2px 6px;margin:0;display:flex}.dashboard-widget-groups .metric-card strong>.metric-animated-value{font:inherit;color:inherit;white-space:nowrap;overflow-wrap:normal;max-width:100%}.dashboard-widget-groups .metric-card .metric-secondary{font:700 11px/14px var(--font-num);color:var(--muted);letter-spacing:normal;white-space:nowrap;overflow-wrap:normal;margin:0}.dashboard-widget-groups .metric-secondary .metric-animated-value{font:inherit}.dashboard-widget-groups .metric-card .metric-detail{white-space:normal;color:var(--muted);margin:0;font-size:11px;line-height:13px;display:block}.dashboard-widget-groups .metric-comparison-row{white-space:normal;flex-wrap:wrap;align-content:start;gap:4px;margin:0;overflow:visible}.dashboard-widget-groups .metric-card .metric-comparison-row .metric-comparison-value{color:var(--muted);font-size:11px;line-height:13px;overflow:visible}.dashboard-widget-groups .metric-card .metric-comparison-row .metric-comparison-delta{white-space:normal;overflow-wrap:anywhere;background:0 0;padding:0;line-height:13px;display:block;font-size:11px!important}.dashboard-widget-groups .metric-comparison-delta.good{color:var(--green-text)}.dashboard-widget-groups .metric-comparison-delta.bad{color:var(--red-text)}.dashboard-widget-groups .metric-comparison-delta.neutral{color:var(--muted)}.dashboard-widget-groups .dwg-card-slot:has(button[aria-haspopup=dialog]) .metric-detail{padding-right:28px}.dashboard-widget-groups .metric-card .help-tip-btn{background:0 0;border:0;width:20px;min-height:20px;padding:0}@media (pointer:coarse){.dwg-widget-tools button,.dwg-group-actions button,.dwg-group-actions select{min-height:var(--control-h-lg);min-width:var(--control-h-lg)}}.dwg-board{width:100%;margin:0;position:relative}.dwg-board>.dwg-group{position:absolute}.dwg-board>.dwg-group>.dwg-grid{grid-template-columns:repeat(var(--dwg-columns,2), minmax(0, 1fr))}.dashboard-widget-groups+.dashboard-rgl{margin-top:-6px}.dashboard-widget-groups>.dwg-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));width:100%;margin:0}.dwg-group-head{gap:6px;min-height:26px;margin-bottom:8px}.dwg-group-head h3,.dwg-group-head h4{flex:1;min-width:0}.dashboard-widget-groups:not(.dwg-editing) .dwg-group-head{height:30px}.dwg-group-head h3,.dwg-group-head h4{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-weight:700;line-height:15px;display:-webkit-box;overflow:hidden}.dwg-parent-label{color:var(--muted);overflow-wrap:anywhere;margin:0 0 6px;font-size:11px}.dashboard-widget-groups .dwg-group-drag{cursor:grab;background:0 0;border:0;flex:none;width:22px;min-width:22px;min-height:24px;padding:0}.dashboard-widget-groups .dwg-group-drag:active{cursor:grabbing}.dwg-group-dragging{opacity:.45}.dwg-group-drop{outline:2px solid var(--accent);outline-offset:-2px}.dwg-editing .dwg-group-name{flex:1;width:100%;min-width:0}.dwg-group-actions{gap:4px;width:100%}.dwg-group-actions .dwg-add-widget{flex:1;max-width:none}.dwg-widget-tools{align-content:start;min-height:80px;padding:4px}.dashboard-widget-groups .dwg-card-slot .metric-card .metric-body{grid-template-rows:28px 42px 26px;gap:4px;min-width:0;display:grid}.dashboard-widget-groups .metric-value-row{align-items:start;min-width:0}.dashboard-widget-groups .metric-card .metric-icon{background:0 0}.dashboard-widget-groups .metric-card .metric-icon svg{width:16px;height:16px}.dashboard-widget-groups .metric-card .metric-detail,.dashboard-widget-groups .metric-card .metric-comparison-value.empty{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.dashboard-widget-groups .metric-comparison-value:has(+.metric-comparison-delta){clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden!important}@container (max-width:440px){.dwg-grid{grid-template-columns:minmax(0,1fr)}}
