body[data-page="service_dashboard.php"] .content{
  max-width:min(1720px, calc(100vw - 32px));
}

body[data-page="service_dashboard.php"] .service-page,
body[data-page="service_dashboard.php"] .service-panel{
  width:100%;
  min-width:0;
}

body[data-page="service_dashboard.php"] #serviceKpis,
body[data-page="service_dashboard.php"] #serviceAlertsSection,
body[data-page="service_dashboard.php"] .service-workflow-strip{
  display:none !important;
}

.service-page{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.service-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.service-hero-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.service-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
.service-kpi-card{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 16px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.service-kpi-label{
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.02em;
}
.service-kpi-value{
  margin-top:8px;
  font-size:1.9rem;
  line-height:1;
  font-weight:800;
  color:#0f172a;
}
.service-panel{
  width:100%;
  padding:14px 14px 16px;
}
.service-dashboard-controls{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}
.service-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.service-filter-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
body[data-page="service_dashboard.php"] .service-dashboard-controls > .service-filter-group{
  width:min(100%, 980px);
}
body[data-page="service_dashboard.php"] .service-dashboard-controls .btn-tab{
  min-height:42px;
  padding:.62rem 1.02rem;
  border-radius:999px;
}
body[data-page="service_dashboard.php"] .service-toolbar .service-filter-group{
  flex:1 1 760px;
}
.service-dashboard-search-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-top:34px;
}
.service-toolbar-right{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:flex-end;
  gap:12px;
}
body[data-page="service_dashboard.php"] .service-toolbar-right{
  flex:0 1 420px;
}
.service-search-wrap{
  min-width:260px;
}
body[data-page="service_dashboard.php"] .service-search-wrap{
  flex:0 1 420px;
  max-width:420px;
}
.service-toggle-wrap{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.9);
}
.service-legend-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
body[data-page="service_dashboard.php"] .service-legend-row{
  display:none;
}
.service-bulk-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 14px;
  padding:14px;
  border:1px solid rgba(20,184,166,.24);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(240,253,250,.92), rgba(255,255,255,.98));
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.service-bulk-title{
  font-weight:900;
  color:#0f172a;
}
.service-bulk-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}
.service-bulk-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:220px;
}
.service-bulk-field--days{
  min-width:120px;
  max-width:150px;
}
.service-bulk-check{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.9);
  font-weight:800;
  color:#0f172a;
}
.service-bulk-check input{
  width:16px;
  height:16px;
  accent-color:#14b8a6;
}
.service-assignment-groups-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 14px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.service-assignment-groups{
  display:grid;
  gap:8px;
}
.service-assignment-group{
  display:grid;
  grid-template-columns:minmax(210px,1fr) auto auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e5edf6;
  border-radius:12px;
  background:#f8fafc;
}
.service-assignment-group-main{
  display:grid;
  gap:2px;
}
.service-assignment-group-metrics,
.service-assignment-group-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.service-select-col{
  width:34px;
  min-width:34px;
  text-align:center;
}
.service-row-select-wrap,
.service-table-select-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.service-row-select,
.service-table-select-all input{
  width:16px;
  height:16px;
  accent-color:#14b8a6;
}
.service-bulk-page .service-panel{
  margin-bottom:16px;
}
.service-bulk-page-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.service-bulk-page-search{
  display:grid;
  gap:6px;
  width:min(560px, 100%);
}
.service-search-hit{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border-color:rgba(16,185,129,.28) !important;
}
.service-search-empty{
  background:#fef2f2 !important;
  color:#b91c1c !important;
  border-color:rgba(239,68,68,.28) !important;
}
.service-bulk-owner-table tbody tr{
  cursor:pointer;
}
.service-bulk-owner-table tbody tr:hover,
.service-bulk-owner-row.is-active{
  background:#f0fdfa;
}
.service-bulk-page-controls{
  margin:12px 0;
  padding:12px;
  border:1px solid #e5edf6;
  border-radius:14px;
  background:#f8fafc;
}
.service-bulk-page-status{
  margin:4px 0 12px;
}
.service-bulk-case-table .service-actions{
  flex-wrap:wrap;
}
.service-scope-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.service-table-wrap{
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable both-edges;
}
body[data-page="service_dashboard.php"] .service-table-wrap{
  margin:0 -2px;
  padding:0 2px 2px;
}
.service-table{
  width:100%;
}
body[data-page="service_dashboard.php"] .service-table{
  min-width:0;
  table-layout:auto;
}
.service-table td,
.service-table th{
  vertical-align:top;
}
.service-sort-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:inherit;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.service-sort-btn:hover,
.service-sort-btn:focus-visible{
  color:#4f46e5;
  outline:none;
}
.service-sort-arrow{
  display:inline-flex;
  min-width:12px;
  justify-content:center;
  color:#94a3b8;
  font-size:.82rem;
}
.service-sort-arrow.is-active{
  color:#4f46e5;
}
body[data-page="service_dashboard.php"] .service-table th,
body[data-page="service_dashboard.php"] .service-table td{
  padding:9px 6px;
  font-size:.88rem;
}
body[data-page="service_dashboard.php"] .service-table th.service-select-col,
body[data-page="service_dashboard.php"] .service-table td.service-select-col{
  padding-left:4px;
  padding-right:4px;
}
.service-customer-cell{
  min-width:180px;
}
body[data-page="service_dashboard.php"] .service-customer-cell{
  min-width:132px;
}
.service-customer-name{
  font-weight:700;
  color:#0f172a;
  word-break:break-word;
}
.service-customer-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.service-open-case-pill{
  min-height:28px;
  padding:.36rem .72rem;
}
.service-reopen-case-pill{
  background:#16a34a;
  border-color:#16a34a;
}
.service-inline-field{
  display:block;
  min-width:200px;
}
body[data-page="service_dashboard.php"] .service-inline-field{
  min-width:132px;
}
.service-follow-up-field{
  min-width:148px;
}
body[data-page="service_dashboard.php"] .service-follow-up-field{
  min-width:132px;
}
.service-actions{
  display:flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
  flex-wrap:wrap;
}
body[data-page="service_dashboard.php"] .service-actions{
  gap:6px;
  flex-wrap:nowrap;
}
body[data-page="service_dashboard.php"] .service-actions .btn{
  white-space:nowrap;
  padding:.42rem .55rem;
  font-size:.78rem;
}
.service-priority-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:.24rem .55rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  font-size:.72rem;
  font-weight:800;
  line-height:1;
}
.service-priority-chip--normal{ background:#f8fafc; color:#475569; }
.service-priority-chip--watch{ background:#fff3d6; color:#9a6700; border-color:#f4d58d; }
.service-priority-chip--high{ background:#ffe6db; color:#9a3412; border-color:#f5c6b0; }
.service-priority-chip--critical{ background:#f8d1d1; color:#991b1b; border-color:#e8aaaa; }
.service-empty{
  padding:14px 2px 2px;
}
.service-case-page .grid{
  align-items:start;
}
.service-case-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.service-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 18px;
  margin-top:10px;
}
.service-summary-value{
  font-weight:700;
  color:#0f172a;
  margin-top:4px;
  word-break:break-word;
}
.service-command-card{
  border-color:rgba(20,184,166,.22);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,253,250,.72));
}
.service-command-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,520px);
  gap:18px;
  align-items:start;
}
.service-resolution-controls{
  display:grid;
  grid-template-columns:minmax(150px,180px) minmax(0,1fr);
  gap:10px;
  align-items:end;
}
.service-resolution-controls label{
  grid-column:1/-1;
}
.service-command-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.service-case-closed-badge{
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}
.service-workbench-card{
  padding:16px;
}
.service-context-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.service-context-strip > div,
.service-workbench-panel{
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  padding:14px;
}
.service-workbench-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.service-workbench-panel{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.service-workbench-panel--wide{
  grid-column:1/-1;
}
.service-workbench-step{
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#0f766e;
  background:#ccfbf1;
  border:1px solid #99f6e4;
}
.service-workbench-note-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.service-case-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.service-case-form,
.service-note-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.service-case-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.service-notes-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}
.service-note-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.95);
  padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.service-note-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.service-note-author{
  font-weight:800;
  color:#0f172a;
}
.service-note-body{
  white-space:pre-wrap;
  line-height:1.5;
  color:#0f172a;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media (max-width: 1280px){
  .service-kpis{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px){
  .service-summary-grid{ grid-template-columns:1fr; }
  .service-context-strip{ grid-template-columns:1fr 1fr; }
  .service-command-layout{ grid-template-columns:1fr; }
  .service-resolution-controls{ grid-template-columns:1fr; }
  .service-command-actions{ justify-content:flex-start; }
}
@media (max-width: 800px){
  .service-hero,
  .service-toolbar,
  .service-legend-row,
  .service-dashboard-search-row{
    flex-direction:column;
    align-items:stretch;
  }
  .service-toolbar-right{ justify-content:flex-start; }
  .service-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="service_dashboard.php"] .content{
    max-width:100%;
  }
  body[data-page="service_dashboard.php"] .service-toolbar .service-filter-group,
  body[data-page="service_dashboard.php"] .service-toolbar-right{
    flex:1 1 auto;
  }
  body[data-page="service_dashboard.php"] .service-actions{
    flex-wrap:wrap;
  }
  .service-assignment-group{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  body[data-page="service_dashboard.php"] .service-search-wrap{
    max-width:none;
  }
  .service-scope-badges{
    justify-content:flex-start;
  }
}
@media (max-width: 560px){
  .service-kpis{ grid-template-columns:1fr; }
  .service-context-strip{ grid-template-columns:1fr; }
}
.service-case-grid{
  align-items:start;
}
.service-form-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.service-form-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.service-task-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.service-tasks-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}
.service-task-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.service-task-card--completed{
  background:rgba(248,250,252,.96);
}
.service-task-card--cancelled{
  background:rgba(248,250,252,.86);
  border-style:dashed;
}
.service-task-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.service-task-title{
  font-weight:800;
  color:#0f172a;
}
.service-task-body{
  margin-top:10px;
  white-space:pre-wrap;
  color:#0f172a;
  line-height:1.5;
}
.service-task-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.service-task-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:10px;
}
.service-task-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:end;
  gap:10px;
  margin-top:12px;
}
.service-task-actions .btn{
  width:100%;
}
.service-task-due-input{
  max-width:100%;
}
.service-task-assignee-input,
.service-task-priority-input{
  max-width:100%;
}
.service-task-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:.28rem .65rem;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  border:1px solid rgba(148,163,184,.24);
}
.service-task-status--open{
  background:#eef2ff;
  color:#3730a3;
}
.service-task-status--today{
  background:#fff7ed;
  color:#c2410c;
}
.service-task-status--overdue{
  background:#fef2f2;
  color:#b91c1c;
}
.service-task-status--completed{
  background:#ecfdf5;
  color:#047857;
}
.service-task-status--cancelled{
  background:#f8fafc;
  color:#475569;
}
.service-task-filters{
  margin-top:8px;
}
@media (max-width: 900px){
  .service-form-grid-2,
  .service-form-grid-3,
  .service-task-actions{ grid-template-columns:1fr; }
}
.service-alerts{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.service-workflow-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.service-workflow-step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.service-workflow-index{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#0f766e;
  background:#ccfbf1;
  border:1px solid #99f6e4;
}
.service-workflow-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:3px;
}
.service-alert-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.service-alert-card{
  appearance:none;
  border:1px solid rgba(248,113,113,.18);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(254,242,242,.96));
  padding:14px 16px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.service-alert-card--active{
  border-color:#ef4444;
  box-shadow:0 14px 30px rgba(239,68,68,.16);
}
.service-filter-group--alerts .btn-tab{
  border-color:rgba(239,68,68,.2);
}
.service-flag-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.service-flag-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.22rem .5rem;
  font-size:.7rem;
  font-weight:800;
  border:1px solid rgba(148,163,184,.2);
}
.service-flag-pill--danger{
  background:#fef2f2;
  color:#b91c1c;
  border-color:#fecaca;
}
.service-flag-pill--warning{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}
.service-flag-pill--info{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.service-flag-row--tasks{
  margin-top:6px;
}
.service-analytics-grid{
  display:grid;
  align-items:start;
  gap:16px;
  margin-bottom:16px;
}
.service-analytics-top-grid{
  grid-template-columns:minmax(720px, 2fr) minmax(360px, .9fr);
}
.service-analytics-two-grid{
  grid-template-columns:repeat(2,minmax(420px,1fr));
}
.service-analytics-three-grid{
  grid-template-columns:repeat(3,minmax(280px,1fr));
}
.service-analytics-priority-grid{
  margin-top:4px;
}
body[data-page="service_analytics.php"] .content{
  max-width:min(1720px, calc(100vw - 32px));
}
body[data-page="service_analytics.php"] .service-kpis{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.service-kpi-card--ops{
  min-height:112px;
}
.service-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.service-analytics-command{
  border-color:rgba(20,184,166,.22);
  box-shadow:0 18px 38px rgba(15,23,42,.07);
}
.service-distribution-command,
.service-insight-card{
  border-color:rgba(148,163,184,.22);
  box-shadow:0 18px 38px rgba(15,23,42,.06);
}
.service-insight-card{
  min-height:100%;
}
.service-owner-workload-table td,
.service-unassigned-table td{
  vertical-align:middle;
}
.service-owner-row--unassigned{
  background:linear-gradient(90deg, rgba(254,242,242,.9), rgba(255,255,255,.96));
}
.service-strong{
  font-weight:900;
  color:#0f172a;
}
.service-count-pill,
.service-score-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  padding:.25rem .55rem;
  border-radius:999px;
  font-weight:900;
  font-size:.78rem;
}
.service-count-pill{
  color:#0f766e;
  background:#ccfbf1;
  border:1px solid #99f6e4;
}
.service-score-pill--normal{
  color:#334155;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
}
.service-score-pill--warning{
  color:#c2410c;
  background:#ffedd5;
  border:1px solid #fed7aa;
}
.service-score-pill--danger{
  color:#b91c1c;
  background:#fee2e2;
  border:1px solid #fecaca;
}
.service-pulse-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.service-pulse-card{
  min-height:126px;
  padding:14px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}
.service-pulse-card--warning{
  border-color:#fed7aa;
  background:linear-gradient(180deg, rgba(255,247,237,.98), rgba(255,255,255,.94));
}
.service-pulse-card--danger{
  border-color:#fecaca;
  background:linear-gradient(180deg, rgba(254,242,242,.98), rgba(255,255,255,.94));
}
.service-pulse-label{
  color:#64748b;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.service-pulse-value{
  margin:8px 0 4px;
  color:#0f172a;
  font-size:2rem;
  line-height:1;
  font-weight:900;
}
.service-distribution-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.service-distribution-board{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.75fr);
  gap:0;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(248,250,252,.88), rgba(255,255,255,.98));
}
.service-distribution-column{
  min-width:0;
  padding:16px;
}
.service-distribution-column + .service-distribution-column{
  border-left:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.62);
}
.service-distribution-title{
  margin-bottom:12px;
  color:#0f172a;
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.service-dist-row{
  display:grid;
  grid-template-columns:minmax(170px, 1.4fr) minmax(140px, 2fr) 56px;
  gap:10px;
  align-items:center;
}
.service-dist-row--card{
  grid-template-columns:minmax(0,1fr) auto;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px;
  background:rgba(255,255,255,.92);
}
.service-distribution-list--executive .service-dist-row--card{
  border-color:rgba(226,232,240,.95);
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.service-dist-label{
  font-weight:700;
  color:#0f172a;
}
.service-dist-bar-wrap{
  position:relative;
  height:10px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
}
.service-dist-bar{
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  min-width:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#8b5cf6,#ec4899);
}
.service-dist-value{
  text-align:right;
  font-weight:800;
  color:#0f172a;
}
@media (max-width: 1100px){
  .service-alert-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .service-workflow-strip{ grid-template-columns:1fr; }
}
@media (max-width: 800px){
  .service-dist-row{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .service-alert-grid{ grid-template-columns:1fr; }
}


.service-analytics-summary-grid{
  margin-top:2px;
}
.service-metric-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.service-metric-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:12px;
  background:rgba(248,250,252,.86);
}
.service-metric-row--warning{
  border-color:#fed7aa;
  background:#fff7ed;
}
.service-metric-row--danger{
  border-color:#fecaca;
  background:#fef2f2;
}
.service-metric-label{
  font-weight:700;
  color:#334155;
}
.service-metric-help{
  margin-top:2px;
  color:#64748b;
  font-size:.76rem;
}
.service-metric-value{
  font-weight:800;
  color:#0f172a;
  text-align:right;
}
@media (max-width: 1280px){
  .service-analytics-top-grid,
  .service-analytics-two-grid,
  .service-analytics-three-grid,
  .service-distribution-board{ grid-template-columns:1fr; }
  .service-distribution-column + .service-distribution-column{
    border-left:0;
    border-top:1px solid rgba(148,163,184,.18);
  }
  body[data-page="service_analytics.php"] .service-kpis{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px){
  body[data-page="service_analytics.php"] .service-kpis,
  .service-pulse-grid{ grid-template-columns:1fr; }
}
.service-inline-checkbox{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#4b5563;
}
.service-inline-checkbox input{
  width:16px;
  height:16px;
}
.service-inline-checkbox--table{
  min-width:138px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.92);
}
body[data-page="service_dashboard.php"] .service-inline-checkbox--table{
  min-width:112px;
  padding:7px 8px;
  gap:6px;
}
.service-assigned-row{
  box-shadow:inset 4px 0 0 rgba(167,139,250,.9);
}
.service-assigned-row td{
  background:linear-gradient(180deg, rgba(245,243,255,.85), rgba(255,255,255,.96));
}
.service-reply-required-row td{
  background-image:linear-gradient(180deg, rgba(237,233,254,.58), rgba(255,255,255,.98));
}
.service-closed-row{
  box-shadow:inset 4px 0 0 rgba(34,197,94,.9);
}
.service-closed-row td{
  background:linear-gradient(180deg, rgba(220,252,231,.9), rgba(240,253,244,.96)) !important;
}
.service-assigned-badge,
.service-reply-required-badge,
.service-flag-pill--lavender{
  background:#ede9fe;
  color:#5b21b6;
  border:1px solid #c4b5fd;
}
.service-flag-pill--lavender{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
}

.service-assignment-card{
  scroll-margin-top:96px;
}
.service-card-highlight{
  box-shadow:0 0 0 3px rgba(99,102,241,.14), 0 16px 34px rgba(79,70,229,.12);
  border-color:rgba(129,140,248,.55);
  transition:box-shadow .18s ease, border-color .18s ease;
}
