/* Sprint 8 — Native Service Desk Operational Analytics */
.service-ops-head{align-items:flex-end}
.service-ops-period{display:grid;gap:4px;min-width:120px}
.service-ops-period span{font-size:.61rem;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.service-ops-period .input{min-height:42px}
.service-ops-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.service-ops-kpis .kpi-value{font-size:1.65rem}
.service-ops-kpis .kpi-value.bad{color:#d83f4f}
.service-ops-top-grid,.service-ops-middle-grid{align-items:start}
.service-ops-trend{
  display:flex;
  align-items:flex-end;
  gap:6px;
  min-height:145px;
  overflow-x:auto;
  padding:12px 3px 3px;
}
.service-ops-day{
  flex:1 0 24px;
  min-width:24px;
  display:grid;
  gap:5px;
  justify-items:center;
}
.service-ops-bars{
  height:98px;
  display:flex;
  align-items:flex-end;
  gap:2px;
}
.service-ops-bars span{
  display:block;
  width:8px;
  min-height:2px;
  border-radius:5px 5px 2px 2px;
}
.service-ops-bars .created{background:var(--green)}
.service-ops-bars .resolved{background:#2e6387}
.service-ops-day small{
  font-size:.52rem;
  color:var(--muted);
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}
.service-ops-day small.compact{display:none}
.service-ops-legend{
  display:flex;
  gap:14px;
  margin-top:9px;
  font-size:.62rem;
  color:var(--muted);
}
.service-ops-legend span{display:flex;align-items:center;gap:5px}
.service-ops-legend i{display:inline-block;width:9px;height:9px;border-radius:3px}
.service-ops-legend i.created{background:var(--green)}
.service-ops-legend i.resolved{background:#2e6387}
.service-ops-aging{display:grid;gap:13px;padding-top:8px}
.service-ops-aging-row{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) 42px;
  align-items:center;
  gap:10px;
}
.service-ops-aging-row>div:first-child{display:grid;gap:2px}
.service-ops-aging-row b{font-size:.68rem}
.service-ops-aging-row span{font-size:.57rem;color:var(--muted)}
.service-ops-aging-row strong{text-align:right;font-size:.68rem}
.service-ops-aging-track{
  height:9px;
  border-radius:999px;
  background:var(--panel-soft,rgba(45,210,121,.05));
  overflow:hidden;
}
.service-ops-aging-track i{display:block;height:100%;border-radius:inherit;background:var(--green)}
.service-ops-aging-track i.mid{background:#56a37e}
.service-ops-aging-track i.warn{background:#d8a21d}
.service-ops-aging-track i.bad{background:#df5965}
.service-ops-table-panel{min-width:0}
.service-ops-table{min-width:980px}
.service-ops-table td,.service-ops-table th{vertical-align:middle}
.service-ops-table td{font-size:.65rem}
.service-ops-table th{font-size:.58rem}
.service-ops-value{font-weight:900}
.service-ops-value.good{color:#0d7d4f}
.service-ops-value.warn{color:#b27800}
.service-ops-value.bad{color:#c93342}
.service-ops-value.muted{color:var(--muted)}
.service-ops-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.56rem;
  font-weight:900;
  white-space:nowrap;
}
.service-ops-pill.good{color:#0d6845;background:rgba(45,210,121,.07);border-color:rgba(13,104,69,.3)}
.service-ops-pill.warn{color:#8b5f00;background:rgba(221,166,23,.09);border-color:rgba(174,119,0,.35)}
.service-ops-pill.bad{color:#ad2432;background:rgba(225,64,82,.08);border-color:rgba(191,47,61,.35)}
.service-ops-pill.paused{color:#89660b;background:rgba(232,187,60,.08);border-color:rgba(155,116,16,.32)}
.service-ops-category-list{display:grid;gap:8px}
.service-ops-category-list article{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 42px;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid var(--line);
}
.service-ops-category-list article:last-child{border-bottom:0}
.service-ops-rank{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:9px;
  background:var(--panel-soft,rgba(45,210,121,.06));
  font-size:.62rem;
  font-weight:900;
}
.service-ops-category-list article>div{display:grid;gap:3px;min-width:0}
.service-ops-category-list b{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-ops-category-list small{font-size:.56rem;color:var(--muted)}
.service-ops-category-list strong{text-align:right;font-size:.75rem}
.service-ops-category-track{
  height:5px;
  border-radius:999px;
  background:var(--panel-soft,rgba(45,210,121,.045));
  overflow:hidden;
}
.service-ops-category-track i{display:block;height:100%;background:var(--green);border-radius:inherit}
.service-ops-automation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.service-ops-generated{font-size:.98rem!important;line-height:1.25}
@media(max-width:1280px){
  .service-ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .service-ops-head{align-items:flex-start}
  .service-ops-head .section-actions{width:100%;flex-wrap:wrap}
  .service-ops-period{min-width:140px}
  .service-ops-automation-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .service-ops-kpis{grid-template-columns:1fr}
  .service-ops-aging-row{grid-template-columns:90px minmax(0,1fr) 38px}
}

/* Sprint 9 — executive comparison & exports */
.service-ops-comparison{margin-top:14px}
.service-ops-compare-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.service-ops-compare-card{
  position:relative;
  display:grid;
  gap:4px;
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
}
.service-ops-compare-card:before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  border-radius:12px 0 0 12px;
  background:var(--line);
}
.service-ops-compare-card.good:before{background:#17825a}
.service-ops-compare-card.bad:before{background:#d83f4f}
.service-ops-compare-card.neutral:before{background:#769087}
.service-ops-compare-card span{
  font-size:.59rem;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.035em;
}
.service-ops-compare-card b{font-size:1rem}
.service-ops-compare-card small{font-size:.58rem;color:var(--muted)}
.service-ops-compare-card strong{font-size:.66rem}
.service-ops-compare-card.good strong{color:#0d7d4f}
.service-ops-compare-card.bad strong{color:#c93342}
.service-ops-compare-card.neutral strong{color:var(--muted)}
.service-ops-exec-dialog iframe{min-height:68vh}
@media(max-width:1280px){
  .service-ops-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .service-ops-compare-grid{grid-template-columns:1fr}
}

.service-ops-highlights{margin-top:14px}
.service-ops-highlight-list{display:grid;gap:8px}
.service-ops-highlight-list article{
  position:relative;
  display:grid;
  gap:3px;
  padding:10px 12px 10px 16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.service-ops-highlight-list article:before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;width:3px;
  border-radius:10px 0 0 10px;
  background:#769087;
}
.service-ops-highlight-list article.bad:before{background:#d83f4f}
.service-ops-highlight-list article.warn:before{background:#d8a21d}
.service-ops-highlight-list article.good:before{background:#17825a}
.service-ops-highlight-list article b{font-size:.7rem}
.service-ops-highlight-list article span{font-size:.6rem;color:var(--muted)}
