#businessIntelligencePage{padding:18px;min-height:100%;background:#f4f6f8;}
.bi-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(135deg,#fff,#f7faf8);box-shadow:0 3px 12px rgba(15,23,42,.05);}
.bi-kicker{font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#176b43;}.bi-hero h1{margin:4px 0 6px;font-size:28px}.bi-hero p{margin:0;color:#607086;max-width:760px}.bi-generated{font-size:12px;color:#607086;text-align:right;margin-top:8px}
.bi-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.bi-field{display:grid;gap:5px;min-width:170px}.bi-field label{font-size:10px;font-weight:900;text-transform:uppercase;color:#526275}.bi-field select,.bi-field input{height:40px;border:1px solid #d7dee7;border-radius:9px;padding:0 11px;background:#fff}.bi-custom-dates{display:flex;gap:10px}.bi-status{margin:10px 0;padding:10px 12px;border-radius:10px;background:#eaf3ff;color:#174a7c;font-size:12px}.bi-status.is-ready{background:#eaf8ef;color:#176b43}.bi-status.is-warning{background:#fff7e6;color:#8a5b00}.bi-status.is-error{background:#fff0f0;color:#a62b2b}
.bi-kpis{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px}.bi-kpi{padding:14px;border:1px solid #dde3ea;border-radius:12px;background:#fff}.bi-kpi small{display:block;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#617086}.bi-kpi b{display:block;margin-top:5px;font-size:21px;color:#111827}
.bi-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}.bi-card{border:1px solid #dde3ea;border-radius:14px;background:#fff;overflow:hidden}.bi-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px;border-bottom:1px solid #e5e9ef}.bi-card-head h2{margin:0;font-size:17px}.bi-card-head span{font-size:11px;color:#6b7789}.bi-table-wrap{overflow:auto}.bi-table{width:100%;border-collapse:collapse}.bi-table th,.bi-table td{padding:11px 14px;border-bottom:1px solid #edf0f4;text-align:left;font-size:12px}.bi-table th{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#68758a;background:#fafbfc}.bi-empty{text-align:center!important;color:#718096;padding:24px!important}
.bi-dictionary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:15px}.bi-dictionary>div{padding:11px;border:1px solid #e4e8ed;border-radius:10px;background:#fafbfc}.bi-dictionary strong,.bi-dictionary span,.bi-dictionary small{display:block}.bi-dictionary span{margin-top:4px;font-size:12px;color:#566579}.bi-dictionary small{margin-top:6px;font-size:10px;color:#7c8797;font-family:monospace}
@media(max-width:1200px){.bi-kpis{grid-template-columns:repeat(4,1fr)}}@media(max-width:760px){#businessIntelligencePage{padding:10px}.bi-hero{display:block}.bi-generated{text-align:left}.bi-kpis{grid-template-columns:repeat(2,1fr)}.bi-dictionary{grid-template-columns:1fr}.bi-custom-dates{width:100%;flex-wrap:wrap}}

/* Business Intelligence Phase C1.1: this tab is mounted at body level, so clear the fixed sidebar. */
#businessIntelligencePage.active {
  position: relative !important;
  margin-left: 250px !important;
  width: calc(100vw - 250px) !important;
  max-width: calc(100vw - 250px) !important;
  min-width: 0 !important;
  padding: 12px 18px 40px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#businessIntelligencePage.active > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body:has(#businessIntelligencePage.active) {
  overflow-x: hidden !important;
}

@media (max-width: 1000px) {
  #businessIntelligencePage.active {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px 28px !important;
  }
}


/* Business Intelligence Phase C2: trends, revenue breakdown, and record detail. */
.bi-trend-chart{display:flex;align-items:flex-end;gap:9px;height:230px;padding:22px 18px 16px;overflow-x:auto;background:linear-gradient(180deg,#fbfcfd,#fff)}
.bi-trend-column{display:grid;grid-template-rows:24px 1fr 28px 18px;align-items:end;min-width:64px;height:100%;padding:0;border:0;background:transparent;color:#526275;cursor:pointer;text-align:center}
.bi-trend-column i{display:block;width:34px;min-height:4px;margin:0 auto;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#a33b22,#6f2617);box-shadow:0 2px 8px rgba(111,38,23,.18)}
.bi-trend-column:hover i{filter:brightness(1.12)}.bi-trend-value{font-size:10px;font-weight:800;color:#293548}.bi-trend-column small{align-self:start;font-size:10px;white-space:nowrap}.bi-trend-column em{align-self:start;font-size:9px;font-style:normal;color:#8792a2}.bi-trend-empty{width:100%;align-self:center}
.bi-breakdown{display:grid;gap:14px;padding:18px}.bi-breakdown-row{display:grid;grid-template-columns:minmax(150px,220px) 1fr 58px;gap:12px;align-items:center}.bi-breakdown-row>div:first-child{display:flex;justify-content:space-between;gap:12px}.bi-breakdown-row span{font-weight:800}.bi-breakdown-track{height:12px;border-radius:999px;background:#edf1f5;overflow:hidden}.bi-breakdown-track i{display:block;height:100%;border-radius:inherit;background:#176b43}.bi-breakdown-row small{text-align:right;color:#68758a}
.bi-leader-row{cursor:pointer}.bi-leader-row:hover,.bi-leader-row:focus{background:#f1f7f4;outline:none}.bi-leader-row td:first-child strong::after{content:'  →';color:#176b43;opacity:0}.bi-leader-row:hover td:first-child strong::after,.bi-leader-row:focus td:first-child strong::after{opacity:1}
.bi-record-table td small{display:block;margin-top:3px;color:#7b8796}.bi-record-toggle{border:0;background:transparent;cursor:pointer;font-size:15px;color:#176b43}.bi-record-detail td{padding:0!important;background:#fafcfb}.bi-record-detail td>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px 8px}.bi-record-detail section{padding:10px;border:1px solid #e2e8e5;border-radius:9px;background:#fff}.bi-record-detail small{display:block;font-size:9px;text-transform:uppercase;font-weight:900;color:#6a778a}.bi-record-detail strong{display:block;margin-top:4px}.bi-record-detail p{margin:0;padding:10px 16px 14px;line-height:1.45;color:#2e3b4d}.bi-record-detail p small{margin-bottom:4px}
@media(max-width:760px){.bi-breakdown-row{grid-template-columns:1fr}.bi-breakdown-row small{text-align:left}.bi-record-detail td>div{grid-template-columns:repeat(2,1fr)}}

/* Business Intelligence Phase C3: customer and store performance explorer. */
.bi-performance-card{border-color:#d5e2dc}
.bi-performance-toolbar{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(220px,320px);gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid #e8edf1;background:#fbfcfc}
.bi-performance-toolbar input,.bi-performance-toolbar select{height:40px;border:1px solid #d7dee7;border-radius:9px;padding:0 11px;background:#fff;color:#1d2939}
.bi-segmented{display:inline-flex;border:1px solid #ccd7d1;border-radius:10px;overflow:hidden;background:#fff}
.bi-segmented button{height:38px;padding:0 16px;border:0;border-right:1px solid #dce4df;background:#fff;color:#455468;font-weight:800;cursor:pointer}
.bi-segmented button:last-child{border-right:0}.bi-segmented button.is-active{background:#176b43;color:#fff}
.bi-profitability-boundary{margin:12px 16px 0;padding:10px 12px;border:1px solid #f0d6a4;border-radius:9px;background:#fff8e8;color:#75510a;font-size:11px;line-height:1.45}
.bi-performance-table{min-width:1080px}.bi-performance-row{cursor:pointer}.bi-performance-row:hover,.bi-performance-row:focus{background:#f1f7f4;outline:none}.bi-performance-row td:first-child strong::after{content:'  →';color:#176b43;opacity:0}.bi-performance-row:hover td:first-child strong::after,.bi-performance-row:focus td:first-child strong::after{opacity:1}
.bi-performance-footer{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;color:#6a7788;font-size:11px;background:#fafbfc;border-top:1px solid #edf0f4}
@media(max-width:900px){.bi-performance-toolbar{grid-template-columns:1fr}.bi-segmented{width:max-content}.bi-performance-footer{display:grid}}

/* Business Intelligence Phase C4.1: executive hierarchy and progressive disclosure. */
.bi-executive-layout{gap:16px}
.bi-primary-workspace{border-color:#b8d5c7;box-shadow:0 8px 24px rgba(23,107,67,.08)}
.bi-primary-workspace .bi-card-head{padding:18px 18px 16px;background:linear-gradient(135deg,#f5fbf8,#fff)}
.bi-section-kicker{margin-bottom:4px;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#176b43}
.bi-technician-performance{border-color:#d8e2dd}
.bi-secondary-leaderboards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bi-metrics-details{overflow:hidden}
.bi-metrics-details>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 16px;cursor:pointer;list-style:none;background:#fff}
.bi-metrics-details>summary::-webkit-details-marker{display:none}
.bi-metrics-details>summary span:first-child{display:grid;gap:3px}
.bi-metrics-details>summary strong{font-size:15px;color:#1d2939}
.bi-metrics-details>summary small{font-size:11px;color:#6b7789}
.bi-details-action{font-size:11px;font-weight:800;color:#176b43}
.bi-metrics-details[open] .bi-details-action::after{content:' · Hide'}
.bi-metrics-details:not([open]) .bi-details-action::after{content:' →'}
.bi-metric-rule{padding-top:10px;padding-bottom:10px;background:#fafbfc}
.bi-metric-rule span{font-size:11px;color:#68758a}
@media(max-width:1000px){.bi-secondary-leaderboards{grid-template-columns:1fr}}
@media(max-width:760px){.bi-metrics-details>summary{align-items:flex-start}.bi-details-action{white-space:nowrap}}

/* Business Intelligence Phase C4.2: executive KPI hierarchy and context. */
.bi-kpi{
  display:flex;
  flex-direction:column;
  min-height:112px;
  padding:16px 15px 14px;
  box-sizing:border-box;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.bi-kpi:hover{
  border-color:#c8d8d0;
  box-shadow:0 6px 16px rgba(23,107,67,.07);
  transform:translateY(-1px);
}
.bi-kpi small{
  min-height:22px;
  line-height:1.25;
}
.bi-kpi b{
  margin-top:7px;
  font-size:23px;
  line-height:1.1;
  letter-spacing:-.02em;
}
.bi-kpi-context{
  display:block;
  margin-top:auto;
  padding-top:9px;
  font-size:10px;
  line-height:1.3;
  color:#748195;
}
@media(max-width:1200px){.bi-kpi{min-height:106px}}
@media(max-width:760px){.bi-kpi{min-height:102px;padding:14px 13px 12px}.bi-kpi b{font-size:21px}}

/* Business Intelligence Phase C4.3: performance explorer usability. */
.bi-primary-workspace .bi-table-wrap{
  position:relative;
  max-height:520px;
  overflow:auto;
  scrollbar-gutter:stable both-edges;
  border-top:1px solid #edf1ef;
  border-bottom:1px solid #edf1ef;
}
.bi-performance-table{
  min-width:1120px;
  table-layout:auto;
}
.bi-performance-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  padding-top:12px;
  padding-bottom:12px;
  background:#f6f9f7;
  box-shadow:0 1px 0 #dfe8e3;
}
.bi-performance-table th:first-child,
.bi-performance-table td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  min-width:220px;
  background:inherit;
  box-shadow:1px 0 0 #e6ece8;
}
.bi-performance-table thead th:first-child{z-index:5;background:#f6f9f7}
.bi-performance-row td{
  padding-top:15px;
  padding-bottom:15px;
  vertical-align:middle;
  transition:background .14s ease,color .14s ease;
}
.bi-performance-row td:first-child strong,
.bi-performance-row td:first-child small{display:block}
.bi-performance-row td:first-child small{
  margin-top:4px;
  font-size:9px;
  font-weight:700;
  color:#7a8797;
  opacity:0;
  transition:opacity .14s ease;
}
.bi-performance-row:hover td,
.bi-performance-row:focus td{background:#f3f8f5}
.bi-performance-row:hover td:first-child small,
.bi-performance-row:focus td:first-child small,
.bi-performance-row.is-selected td:first-child small{opacity:1}
.bi-performance-row.is-selected td{
  background:#e8f4ed;
  color:#173c2b;
  box-shadow:inset 0 1px 0 #c6dfd1,inset 0 -1px 0 #c6dfd1;
}
.bi-performance-row.is-selected td:first-child{
  box-shadow:inset 4px 0 0 #176b43,1px 0 0 #c6dfd1;
}
.bi-performance-row.is-selected td:first-child strong::after{
  content:'  ✓';
  opacity:1;
  color:#176b43;
}
.bi-performance-toolbar{
  position:sticky;
  top:0;
  z-index:6;
  padding:16px 18px;
}
.bi-performance-toolbar input:focus,
.bi-performance-toolbar select:focus,
.bi-segmented button:focus-visible{
  outline:3px solid rgba(23,107,67,.16);
  outline-offset:1px;
  border-color:#176b43;
}
.bi-segmented button{
  min-width:108px;
  transition:background .14s ease,color .14s ease;
}
.bi-segmented button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 rgba(255,255,255,.3)}
.bi-performance-empty strong,.bi-performance-empty span{display:block}
.bi-performance-empty strong{font-size:13px;color:#405066}
.bi-performance-empty span{margin-top:5px;font-size:11px;color:#7a8797}
.bi-performance-footer{
  position:sticky;
  bottom:0;
  z-index:3;
  min-height:38px;
  align-items:center;
}
@media(max-width:900px){
  .bi-primary-workspace .bi-table-wrap{max-height:440px}
  .bi-performance-toolbar{position:static}
}


/* Business Intelligence Phase C4.4 — Progressive Dashboard */
.bi-trend-chart.is-collecting{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:230px;
  height:auto;
  padding:28px;
  overflow:visible;
  background:linear-gradient(180deg,#fbfcfd,#f7faf8);
}
.bi-progressive-state{
  display:grid;
  grid-template-columns:52px minmax(0,520px);
  gap:18px;
  align-items:start;
  width:min(100%,620px);
  padding:24px;
  border:1px solid #dce7e1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 28px rgba(38,64,52,.06);
}
.bi-progressive-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:14px;
  background:#e8f4ed;
  color:#176b43;
  font-size:25px;
  font-weight:900;
}
.bi-progressive-copy strong,.bi-progressive-copy span,.bi-progressive-copy small{display:block}
.bi-progressive-copy strong{font-size:16px;color:#26352e}
.bi-progressive-copy span{margin-top:5px;font-size:12px;font-weight:700;color:#607064}
.bi-progressive-copy small{margin-top:9px;font-size:10px;color:#7b887f}
.bi-progressive-track{
  height:9px;
  margin-top:14px;
  overflow:hidden;
  border-radius:999px;
  background:#e9efeb;
}
.bi-progressive-track i{
  display:block;
  height:100%;
  min-width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#176b43,#44a06f);
  transition:width .25s ease;
}
@media(max-width:640px){
  .bi-trend-chart.is-collecting{padding:18px}
  .bi-progressive-state{grid-template-columns:1fr;padding:19px}
  .bi-progressive-icon{width:44px;height:44px}
}

/* Business Intelligence Phase C5.1 — Customer Detail Shell */
.bi-customer-detail{display:grid;gap:14px;margin-top:14px}
.bi-customer-detail[hidden],#biDashboardContent[hidden]{display:none!important}
.bi-customer-detail-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px}
.bi-customer-detail-toolbar>span{font-size:11px;font-weight:800;color:#6f7c8e}
.bi-customer-detail-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px;border:1px solid #cfe0d7;border-radius:14px;background:linear-gradient(135deg,#f3faf6,#fff);box-shadow:0 8px 22px rgba(23,107,67,.06)}
.bi-customer-detail-hero h2{margin:2px 0 4px;font-size:28px;color:#17261f}
.bi-customer-detail-hero p{margin:0;color:#637184}
.bi-customer-detail-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.bi-customer-detail-badges span{padding:7px 10px;border-radius:999px;background:#e8f4ed;color:#176b43;font-size:10px;font-weight:900}
.bi-customer-detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bi-customer-detail-kpis>div{display:grid;gap:7px;min-height:92px;padding:15px;border:1px solid #dbe4df;border-radius:12px;background:#fff}
.bi-customer-detail-kpis small{font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#667487}
.bi-customer-detail-kpis strong{font-size:22px;color:#17261f}
.bi-customer-detail-nav{display:flex;gap:6px;padding:6px;border:1px solid #dbe4df;border-radius:12px;background:#f7f9f8;overflow:auto}
.bi-customer-detail-nav button{min-width:108px;height:38px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:#4e5e70;font-weight:850;cursor:pointer}
.bi-customer-detail-nav button.is-active{background:#176b43;color:#fff;box-shadow:0 3px 10px rgba(23,107,67,.16)}
.bi-customer-detail-panel{min-height:180px;padding:20px;border:1px solid #dbe4df;border-radius:12px;background:#fff}
.bi-customer-shell-message{display:grid;gap:8px;place-content:center;min-height:140px;text-align:center}
.bi-customer-shell-message strong{font-size:18px;color:#24342c}
.bi-customer-shell-message span{max-width:720px;color:#68768a;line-height:1.5}
@media(max-width:900px){.bi-customer-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bi-customer-detail-hero{display:grid}.bi-customer-detail-badges{justify-content:flex-start}}
@media(max-width:560px){.bi-customer-detail-toolbar{align-items:flex-start;flex-direction:column}.bi-customer-detail-kpis{grid-template-columns:1fr}.bi-customer-detail-hero h2{font-size:24px}}


/* Business Intelligence Phase C5.2 — Customer Financial Summary */
.bi-customer-financial-summary{display:grid;gap:10px;padding:14px;border:1px solid #dbe4df;border-radius:14px;background:#f9fbfa}
.bi-customer-summary-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:0 2px}
.bi-customer-summary-heading h3{margin:2px 0 0;font-size:17px;color:#17261f}
.bi-customer-summary-heading>span{font-size:10px;font-weight:800;color:#6f7c8e}
.bi-customer-financial-summary .bi-customer-detail-kpis{grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}
.bi-customer-financial-summary .bi-customer-detail-kpis>div{min-height:104px;padding:13px}
.bi-customer-financial-summary .bi-customer-detail-kpis>div>span{font-size:9px;line-height:1.35;color:#748195}
.bi-customer-financial-summary .bi-customer-detail-kpis strong{font-size:20px}
@media(max-width:1250px){.bi-customer-financial-summary .bi-customer-detail-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.bi-customer-financial-summary .bi-customer-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bi-customer-summary-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.bi-customer-financial-summary .bi-customer-detail-kpis{grid-template-columns:1fr}}

/* Business Intelligence Phase C5.3 — Customer Store List */
.bi-customer-store-workspace{display:grid;gap:14px}
.bi-customer-store-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.bi-customer-store-heading>div{display:grid;gap:4px}.bi-customer-store-heading strong{font-size:18px;color:#20342a}.bi-customer-store-heading span,.bi-customer-store-heading small{font-size:10px;color:#718094}
.bi-customer-store-table-wrap{overflow:auto;border:1px solid #e0e7e3;border-radius:10px}
.bi-customer-store-table{width:100%;min-width:850px;border-collapse:collapse}
.bi-customer-store-table th{padding:10px 12px;background:#f5f8f6;text-align:left;font-size:9px;letter-spacing:.05em;text-transform:uppercase;color:#647386;position:sticky;top:0;z-index:1}
.bi-customer-store-table td{padding:13px 12px;border-top:1px solid #e8eeeb;font-size:11px;color:#27362f}.bi-customer-store-table td:first-child strong{display:block;font-size:12px}.bi-customer-store-table td:first-child small{display:block;margin-top:3px;color:#7a8798}
.bi-customer-store-row{cursor:pointer;transition:background .14s ease,box-shadow .14s ease}.bi-customer-store-row:hover,.bi-customer-store-row:focus{background:#f2faf5;outline:none;box-shadow:inset 3px 0 0 #176b43}.bi-store-open-label{font-weight:850;color:#176b43;white-space:nowrap}
@media(max-width:700px){.bi-customer-store-heading{align-items:flex-start;flex-direction:column}.bi-customer-store-table-wrap{margin:0 -6px}}

/* Business Intelligence Phase C5.4 — Customer Work Order Explorer */
.bi-customer-wo-workspace{display:grid;gap:14px}.bi-customer-wo-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.bi-customer-wo-heading>div{display:grid;gap:4px}.bi-customer-wo-heading strong{font-size:18px;color:#20342a}.bi-customer-wo-heading span,.bi-customer-wo-heading small{font-size:10px;color:#718094}
.bi-customer-wo-controls{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(145px,1fr));gap:10px}.bi-customer-wo-controls label{display:grid;gap:5px;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#647386}.bi-customer-wo-controls input,.bi-customer-wo-controls select{height:38px;padding:0 11px;border:1px solid #d6e0db;border-radius:8px;background:#fff;color:#22342b;font:inherit;text-transform:none;letter-spacing:0;font-size:11px;font-weight:650}
.bi-customer-wo-results{display:grid;border:1px solid #e0e7e3;border-radius:10px;overflow:hidden}.bi-customer-wo-record+ .bi-customer-wo-record{border-top:1px solid #e8eeeb}.bi-customer-wo-summary{width:100%;display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:14px;padding:13px 14px;border:0;background:#fff;text-align:left;cursor:pointer}.bi-customer-wo-summary:hover,.bi-customer-wo-summary:focus{background:#f2faf5;outline:none}.bi-customer-wo-summary span{display:grid;gap:3px}.bi-customer-wo-summary span:nth-child(2){text-align:right}.bi-customer-wo-summary strong{font-size:12px;color:#20342a}.bi-customer-wo-summary small{font-size:10px;color:#748195}.bi-customer-wo-summary i{font-style:normal;color:#176b43;font-weight:900}
.bi-customer-wo-detail{padding:14px;border-top:1px solid #e8eeeb;background:#f8faf9}.bi-customer-wo-detail[hidden]{display:none}.bi-customer-wo-financials{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.bi-customer-wo-financials section{display:grid;gap:4px;padding:10px;border:1px solid #e0e7e3;border-radius:8px;background:#fff}.bi-customer-wo-detail small{font-size:9px;font-weight:850;text-transform:uppercase;color:#748195}.bi-customer-wo-detail p{display:grid;gap:5px;margin:12px 0 0;line-height:1.5;color:#34453c}.bi-customer-wo-empty{display:grid;gap:5px;padding:28px;text-align:center;background:#fafcfb}.bi-customer-wo-empty span{font-size:11px;color:#718094}
@media(max-width:1050px){.bi-customer-wo-controls{grid-template-columns:1fr 1fr}.bi-customer-wo-financials{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.bi-customer-wo-heading{align-items:flex-start;flex-direction:column}.bi-customer-wo-controls{grid-template-columns:1fr}.bi-customer-wo-financials{grid-template-columns:1fr 1fr}}


/* Business Intelligence Phase C5.5 — Customer Timeline */
.bi-customer-timeline-workspace{display:grid;gap:16px}
.bi-customer-timeline-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.bi-customer-timeline-heading>div{display:grid;gap:4px}
.bi-customer-timeline-heading strong{font-size:18px;color:#20342a}
.bi-customer-timeline-heading span,.bi-customer-timeline-heading small{font-size:10px;color:#718094}
.bi-customer-timeline-list{display:grid;gap:18px}
.bi-customer-timeline-day{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px}
.bi-customer-timeline-day>header{display:grid;align-content:start;gap:4px;padding-top:2px}
.bi-customer-timeline-day>header span{font-size:12px;font-weight:900;color:#26372f}
.bi-customer-timeline-day>header small{font-size:10px;color:#7a8797}
.bi-customer-timeline-events{position:relative;display:grid;gap:10px;padding-left:22px}
.bi-customer-timeline-events:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:#dce7e1}
.bi-customer-timeline-event{position:relative;display:grid;grid-template-columns:1fr;gap:8px;padding:13px 14px;border:1px solid #dfe7e2;border-radius:11px;background:#fff}
.bi-customer-timeline-marker{position:absolute;left:-22px;top:18px;width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#176b43;box-shadow:0 0 0 1px #b7d1c2}
.bi-customer-timeline-main{display:grid;gap:9px}
.bi-customer-timeline-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.bi-customer-timeline-title>span{display:grid;gap:3px}.bi-customer-timeline-title>span:last-child{text-align:right}
.bi-customer-timeline-title strong{font-size:12px;color:#20342a}.bi-customer-timeline-title small{font-size:10px;color:#748195}
.bi-customer-timeline-mix{display:flex;flex-wrap:wrap;gap:7px}.bi-customer-timeline-mix span{padding:5px 8px;border-radius:999px;background:#f1f6f3;color:#53655b;font-size:9px;font-weight:800}
.bi-customer-timeline-main p{margin:0;padding-top:8px;border-top:1px solid #edf1ef;color:#46584e;font-size:11px;line-height:1.45}
@media(max-width:760px){.bi-customer-timeline-heading{align-items:flex-start;flex-direction:column}.bi-customer-timeline-day{grid-template-columns:1fr;gap:8px}.bi-customer-timeline-events{margin-left:4px}.bi-customer-timeline-title{display:grid}.bi-customer-timeline-title>span:last-child{text-align:left}}
