.behaviour-dashboard{--bd-green:#39765b;--bd-red:#b84d41;--bd-muted:#617168;--bd-line:#dfe7e1;color:var(--ink,#233e32);min-width:0}.bd-toolbar,.bd-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.bd-toolbar{padding:8px 0 22px}.bd-toolbar h2{font-size:24px;margin:0 0 6px}.bd-toolbar p{font-size:13px;color:var(--bd-muted);margin:0}.bd-toolbar>div:last-child{display:flex;gap:8px}.bd-filters{border-top:1px solid var(--bd-line);border-bottom:1px solid var(--bd-line);padding:18px 0}.bd-date-fields{display:flex;align-items:end;gap:16px;margin-bottom:16px}.behaviour-dashboard label{font-size:12px;font-weight:600}.bd-date-fields label,.bd-section-heading label{display:grid;gap:5px}.behaviour-dashboard input[type=date],.behaviour-dashboard select{font:inherit;color:inherit;background:#fff;border:1px solid #c9d5cd;border-radius:7px;padding:8px 10px;min-height:37px;max-width:100%;box-sizing:border-box}.bd-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px}.bd-filter{position:relative;border-bottom:1px solid var(--bd-line)}.bd-filter summary{display:flex;justify-content:space-between;gap:8px;align-items:center;cursor:pointer;list-style:none;padding:11px 2px;font-size:12px}.bd-filter summary::-webkit-details-marker{display:none}.bd-filter summary:after{content:'⌄';color:var(--bd-muted)}.bd-filter summary strong{color:var(--bd-muted);font-size:11px;font-weight:500;margin-left:auto}.bd-filter[open] summary{color:var(--bd-green)}.bd-filter-options{position:absolute;top:100%;left:0;min-width:100%;width:max-content;max-width:min(340px,80vw);max-height:245px;overflow:auto;z-index:8;background:#fff;border:1px solid var(--bd-line);border-radius:8px;box-shadow:0 8px 25px #233e3218;padding:8px;box-sizing:border-box}.bd-filter-options label{display:flex;gap:8px;align-items:center;padding:8px;font-weight:500;cursor:pointer;overflow-wrap:anywhere}.bd-filter-options input{accent-color:var(--bd-green);width:16px;height:16px;flex-shrink:0}.bd-filter-note{font-size:11px;color:var(--bd-muted);line-height:1.5;margin:10px 0 0}.bd-status{font-size:12px;color:var(--bd-muted);min-height:18px;margin:15px 0}.bd-status[role=alert]{color:#a13d30}.bd-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;padding:6px 0 26px;border-bottom:1px solid var(--bd-line)}.bd-summary>div{display:grid;gap:7px;align-content:start}.bd-summary span{font-size:12px;font-weight:600;color:var(--bd-muted)}.bd-summary strong{font-size:30px;letter-spacing:-1px;line-height:1.2}.bd-summary small{font-size:10px;line-height:1.5;color:var(--bd-muted)}.bd-charts{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.bd-chart{padding:24px 0;border-bottom:1px solid var(--bd-line);min-width:0}.bd-trend{grid-column:1/-1}.bd-section-heading h2,.bd-insights h2{font-size:17px;margin:0;font-weight:650}.bd-section-heading>span,.bd-muted{color:var(--bd-muted);font-size:12px;font-weight:400;line-height:1.5}.bd-chart>p{margin:9px 0 18px}.bd-legend{display:flex;gap:20px;margin:18px 0 0;font-size:11px;color:var(--bd-muted)}.bd-legend span{display:flex;align-items:center;gap:6px}.bd-legend i{width:18px;height:3px;border-radius:2px}.bd-trend svg{width:100%;height:auto;max-height:255px;overflow:visible;display:block}.bd-trend svg text{font-family:inherit;font-size:11px;fill:var(--bd-muted)}.bd-bars{display:grid;gap:15px}.bd-bar{display:grid;grid-template-columns:95px 1fr 40px;align-items:center;gap:10px;padding:0;background:none;border:0;color:inherit;font:inherit;font-size:12px;cursor:pointer;text-align:left}.bd-bar:disabled{cursor:default}.bd-bar strong{text-align:right;font-size:13px}.bd-bar-track{height:10px;background:#eff3ef;border-radius:3px;overflow:hidden}.bd-bar-track i{display:block;height:100%;background:var(--bd-green);border-radius:3px}.bd-insights{padding:24px 0;border-bottom:1px solid var(--bd-line)}.bd-insights ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 30px;margin:18px 0 0;padding:0;list-style:none}.bd-insights li{font-size:13px;line-height:1.6;border-left:2px solid #b5cdbd;padding-left:12px}.bd-breakdown,.bd-comparison{padding:26px 0;border-bottom:1px solid var(--bd-line);min-width:0}.bd-breakdown .bd-section-heading,.bd-comparison .bd-section-heading{margin-bottom:18px}.bd-section-heading p{margin:7px 0 0}.bd-comparison-controls{display:flex;align-items:end;gap:10px;flex-shrink:0}.bd-table-scroll{width:100%;overflow:auto;max-height:540px;isolation:isolate}.behaviour-dashboard table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;text-align:left}.behaviour-dashboard th,.behaviour-dashboard td{padding:12px 14px;border-bottom:1px solid #e8ede9}.behaviour-dashboard thead th{position:sticky;top:0;z-index:1;background:#f5f7f4;color:var(--bd-muted);font-size:11px;font-weight:600}.behaviour-dashboard tbody th{font-weight:600;max-width:230px;overflow:hidden;text-overflow:ellipsis}.behaviour-dashboard td{font-variant-numeric:tabular-nums}.bd-negative{color:#a34237}.bd-table-bar{display:block;background:linear-gradient(to right,#b84d4116 var(--bar),transparent var(--bar));padding:4px 6px;min-width:70px}.bd-matrix caption{text-align:left;color:var(--bd-muted);font-size:11px;padding:0 0 12px}.bd-matrix td{background:rgba(184,77,65,var(--cell-alpha,0));border:2px solid #fff;min-width:100px}.bd-matrix td strong{font-size:17px;font-weight:650}.bd-matrix td small{display:block;margin-top:5px;color:#4f6255;font-size:10px}.bd-meters{margin:24px 0}.bd-meters>summary{cursor:pointer;font-size:15px;font-weight:650}.bd-empty{padding:26px 0;color:var(--bd-muted);font-size:13px}.behaviour-dashboard [aria-busy=true]{opacity:.55}.behaviour-dashboard :focus-visible{outline:2px solid #39765b;outline-offset:3px}@media(max-width:1150px){.bd-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.bd-comparison .bd-section-heading{align-items:start;flex-direction:column}.bd-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.bd-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-charts{grid-template-columns:1fr}.bd-trend{grid-column:auto}.bd-insights ul{grid-template-columns:1fr}.bd-toolbar{align-items:start;flex-direction:column}.bd-date-fields{gap:8px;flex-wrap:wrap}.bd-date-fields label{flex:1 1 120px;min-width:0}.bd-comparison-controls{flex-wrap:wrap;max-width:100%}.bd-comparison-controls label{min-width:0;flex:1 1 100px}.bd-summary strong{font-size:26px}.bd-section-heading{align-items:start;gap:12px}.bd-section-heading label{max-width:50%}}@media(max-width:430px){.bd-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-date-fields label{flex-basis:105px}.bd-filter-options{max-width:75vw}.bd-filter:nth-child(even) .bd-filter-options{left:auto;right:0}.bd-section-heading label{max-width:55%}}
/* Inline disclosures keep filter choices reachable without covering the next row. */
.bd-filter-grid{align-items:start}.bd-filter-options{position:static;width:100%;max-width:100%;min-width:0;box-shadow:none;margin-bottom:8px}.behaviour-dashboard input,.behaviour-dashboard select,.behaviour-dashboard summary,.behaviour-dashboard button{scroll-margin-top:110px}
.behaviour-dashboard select,.behaviour-dashboard input[type=date]{min-width:0;width:100%}.bd-date-fields label,.bd-comparison-controls label{min-width:0}
@media(max-width:600px){.bd-date-fields,.bd-comparison-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.bd-date-fields label,.bd-comparison-controls label{width:100%;max-width:none}.bd-date-fields label:last-child,.bd-comparison-controls label:last-child{grid-column:1/-1;max-width:220px}}
