/* CoverGrid CSS extraction: cards, forms, buttons, tables, reports, admin components. */
/* Source: inline-style-1 */
/* Coverage report */
  .report-teacher-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:12px;overflow:hidden;}
  .report-teacher-header{display:grid;grid-template-columns:1fr auto auto auto auto;gap:16px;align-items:center;padding:14px 18px;cursor:pointer;transition:background 0.15s;}
  .report-teacher-header:hover{background:var(--cream);}
  .report-teacher-name{font-weight:600;font-size:14px;color:var(--navy);}
  .report-teacher-meta{font-size:11px;color:var(--text-light);margin-top:2px;}
  .report-count{font-size:22px;font-weight:700;color:var(--blue);min-width:32px;text-align:right;}
  .report-count-label{font-size:10px;color:var(--text-light);text-transform:uppercase;letter-spacing:0.06em;text-align:right;}
  .report-last{font-size:12px;color:var(--text-mid);min-width:90px;text-align:right;}
  .report-chevron{color:var(--text-light);font-size:12px;transition:transform 0.2s;min-width:16px;text-align:center;}
  .report-chevron.open{transform:rotate(180deg);}
  .report-detail{display:none;border-top:1px solid var(--border);}
  .report-detail.open{display:block;}
  .report-detail table{font-size:12px;}
  .report-detail thead th{background:var(--cream);color:var(--text-mid);font-size:10px;}
  .report-detail tbody tr:hover{background:#f7f4ef;}
  .report-zero{color:var(--text-light);font-style:italic;padding:12px 18px;font-size:13px;}


/* Source: inline-style-1 */
/* ── TEACHER EDITOR ───────────────────────────────────────────────────────── */
.tt-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.tt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.btn-danger{background:#c0392b;color:#fff;border:none;height:32px;padding:0 12px;border-radius:8px;font-weight:700;cursor:pointer;font-family:inherit;}
.btn-danger:hover{background:#a93226;}
.btn-secondary-soft{background:#eef4ff;color:#1f5ea8;border:1px solid #d9e7ff;height:32px;padding:0 12px;border-radius:8px;font-weight:700;cursor:pointer;font-family:inherit;}
.btn-secondary-soft:hover{background:#e2eeff;}
.teacher-editor-backdrop{position:fixed;inset:0;background:rgba(9,20,42,.58);display:none;align-items:center;justify-content:center;z-index:21000;padding:24px;}
.teacher-editor-modal{background:#fff;border-radius:18px;max-width:960px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 24px 80px rgba(0,0,0,.24);padding:22px;}
.teacher-editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.teacher-period-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:10px;}
.teacher-period-card{border:1px solid var(--border);border-radius:14px;padding:12px;background:#fff;}
.teacher-editor-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px;}
.teacher-small-note{font-size:12px;color:var(--text-light);}
@media(max-width:800px){.teacher-editor-grid,.teacher-period-grid{grid-template-columns:1fr;}}


.school-switcher-wrap{display:none;align-items:center;gap:8px;flex-wrap:wrap;}
.school-switcher-label{font-size:12px;color:rgba(255,255,255,0.9);font-weight:600;}
.school-switcher-select{background:rgba(255,255,255,0.12);color:#fff;border:1px solid rgba(255,255,255,0.22);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;min-width:180px;outline:none;}
.school-switcher-select option{color:#111;background:#fff;}
.superadmin-badge{background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.22);color:#fff;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:700;letter-spacing:.02em;}

.school-context-display{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;background:rgba(17,181,194,0.18);border:1px solid rgba(17,181,194,0.34);color:#fff;font-size:12px;font-weight:800;letter-spacing:.01em;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.school-context-display .school-context-role{opacity:.72;font-weight:700;}
.school-context-crest{width:20px;height:20px;object-fit:contain;border-radius:5px;background:#fff;padding:1px;flex-shrink:0;}
.school-context-display.board-view{background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.28);}
@media(max-width:900px){.school-context-display{max-width:100%;width:100%;justify-content:center;}}


/* Source: inline-style-1 */
/* Cards / surfaces */
.card,
.metric,
.command-card,
.report-teacher-card,
.table-wrap{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:0 8px 24px rgba(13,43,77,0.05);
}
.card{padding:20px 24px}
.metric{padding:16px 18px}
.card-title{
  color:var(--navy-2);
  font-size:15px;
  font-weight:700;
  margin-bottom:16px;
}
.metric-val,
.command-value{
  letter-spacing:-0.03em;
}
.metric-val{font-size:30px;font-weight:800;color:var(--navy)}
.metric-val.blue{color:var(--blue)!important}
.metric-val.teal,
.metric-val.gold{color:var(--accent)!important}
.metric-label,
.command-kicker,
.field label{
  color:var(--text-light);
  font-weight:700;
}


/* Source: inline-style-1 */
/* Forms */
select,input[type=text],input[type=date],input[type=email],textarea{
  background:#f8fbfe !important;
  border:1px solid rgba(13,43,77,0.10) !important;
  border-radius:12px !important;
  color:var(--text-dark) !important;
}
select:focus,input:focus,textarea:focus{
  border-color:var(--blue) !important;
  box-shadow:0 0 0 3px rgba(43,91,140,0.12) !important;
  background:#fff !important;
}
.search-wrap input{
  background:#fff !important;
  border-radius:12px !important;
  height:40px;
}
.search-icon{color:var(--text-light)}


/* Source: inline-style-1 */
/* ── REPORTS V2 TABBED UI ───────────────────────────────────────────────── */
.reports-header-row{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;}
.report-date-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);}
.report-export-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.report-range-label{font-size:12px;color:var(--text-light);font-weight:700;padding:0 4px 8px;}
.reports-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);}
.reports-tab{height:40px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--text-mid);font-size:13px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:all .16s ease;box-shadow:0 2px 8px rgba(13,43,77,0.04);}
.reports-tab span{width:24px;height:24px;border-radius:8px;background:#eef6fb;color:var(--blue);display:inline-flex;align-items:center;justify-content:center;font-size:12px;}
.reports-tab:hover{border-color:rgba(17,181,194,.45);color:var(--navy);transform:translateY(-1px);}
.reports-tab.active{background:linear-gradient(180deg,var(--blue) 0%,var(--navy-2) 100%);border-color:var(--navy-2);color:#fff;box-shadow:0 10px 22px rgba(43,91,140,.18);}
.reports-tab.active span{background:rgba(255,255,255,.18);color:#fff;}
.reports-pane{display:none;}
.reports-pane.active{display:block;}
.risk-issue{display:inline-block;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;background:#fdecea;color:#c0392b;border:1px solid #f4b9b3;}
.risk-pending{background:#fff4e4;color:#9a5a08;border-color:#efc27f;}
.workload-flag{display:inline-block;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;background:#eef2f6;color:#6B7280;}
.workload-flag.high{background:#fff4e4;color:#9a5a08;border:1px solid #efc27f;}
.workload-flag.low{background:#e8f6fb;color:#1E3A5F;border:1px solid #b9dfef;}
.workload-flag.ok{background:#eaf7f2;color:#22724d;border:1px solid #8ad0ae;}
.workload-list-controls{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#f8fbfe;
  margin:0 0 12px;
}
.workload-list-controls span{
  color:var(--text-mid);
  font-size:12px;
  line-height:1.4;
}

.executive-score-card{background:linear-gradient(135deg,#ffffff 0%,#f7fbfe 100%);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(13,43,77,0.05);}
.executive-score-value{font-size:42px;font-weight:900;letter-spacing:-0.04em;line-height:1;color:var(--navy);}
.executive-score-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-light);font-weight:800;margin-top:8px;}
.executive-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px;}
.executive-insight{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px 16px;font-size:13px;color:var(--text-mid);}
.executive-insight strong{display:block;color:var(--navy);margin-bottom:4px;font-size:14px;}
.health-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 10px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
.health-healthy{background:#eaf7f2;color:#22724d;border:1px solid #8ad0ae;}
.health-watch{background:#fff4e4;color:#9a5a08;border:1px solid #efc27f;}
.health-critical{background:#fdecea;color:#c0392b;border:1px solid #efb4ac;}
.risk-score-bar{height:7px;border-radius:999px;background:#e9eef5;overflow:hidden;min-width:120px;}
.risk-score-fill{height:7px;border-radius:999px;background:linear-gradient(90deg,#c0392b,#ef9f27,#11B5C2);}
@media(max-width:900px){.executive-insights{grid-template-columns:1fr}.executive-score-card{padding:16px}}
@media(max-width:760px){.reports-header-row{display:block}.report-export-toolbar{margin-top:12px}.reports-tab{flex:1;justify-content:center}.report-date-toolbar .field{min-width:100%!important}}


/* Source: inline-style-1 */
/* ── EXECUTIVE BOARD REPORT POLISH ───────────────────────────────────────── */
.executive-board-report{
  background:linear-gradient(135deg,#0D2B4D 0%,#1E3A5F 58%,#155b72 100%);
  color:#fff;border-radius:22px;padding:24px;margin-bottom:18px;
  box-shadow:0 18px 42px rgba(13,43,77,.22);overflow:hidden;position:relative;
}
.executive-board-report:after{content:'';position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:rgba(17,181,194,.18);}
.executive-board-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;position:relative;z-index:1;flex-wrap:wrap;}
.executive-board-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.72);font-weight:900;margin-bottom:7px;}
.executive-board-title{font-size:26px;line-height:1.1;font-weight:900;letter-spacing:-.035em;margin:0;}
.executive-board-subtitle{font-size:13px;color:rgba(255,255,255,.78);margin-top:8px;max-width:760px;line-height:1.5;}
.executive-board-score{min-width:170px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.20);border-radius:18px;padding:16px;text-align:center;backdrop-filter:blur(8px);}
.executive-board-score .score{font-size:48px;font-weight:950;letter-spacing:-.055em;line-height:.95;}
.executive-board-score .score-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.72);font-weight:900;margin-top:8px;}
.executive-board-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px;position:relative;z-index:1;}
.executive-board-mini{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:14px;}
.executive-board-mini .mini-value{font-size:26px;font-weight:900;letter-spacing:-.04em;line-height:1;color:#fff;}
.executive-board-mini .mini-label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.72);font-weight:900;margin-top:6px;}
.executive-board-mini .mini-note{font-size:11px;color:rgba(255,255,255,.70);margin-top:5px;}
.executive-action-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px;}
.executive-action-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px 18px;box-shadow:0 8px 24px rgba(13,43,77,.05);}
.executive-action-card .tag{display:inline-flex;border-radius:999px;padding:3px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px;}
.executive-action-card.critical .tag{background:#fdecea;color:#c0392b;border:1px solid #efb4ac;}
.executive-action-card.watch .tag{background:#fff4e4;color:#9a5a08;border:1px solid #efc27f;}
.executive-action-card.healthy .tag{background:#eaf7f2;color:#22724d;border:1px solid #8ad0ae;}
.executive-action-card strong{display:block;color:var(--navy);font-size:14px;margin-bottom:5px;}
.executive-action-card p{font-size:12px;color:var(--text-mid);line-height:1.5;margin:0;}
.executive-superadmin-only{font-size:12px;color:var(--text-light);font-weight:700;}
@media(max-width:900px){.executive-board-grid,.executive-action-strip{grid-template-columns:1fr 1fr}.executive-board-title{font-size:22px}}
@media(max-width:620px){.executive-board-grid,.executive-action-strip{grid-template-columns:1fr}.executive-board-score{width:100%}}


/* Source: inline-style-1 */
/* ── BOARD DASHBOARD EXECUTIVE REPORT ─────────────────────────────────────── */
.board-report{
  display:grid;
  gap:18px;
}
.board-hero{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);
  color:#fff;
  border-radius:20px;
  padding:26px;
  box-shadow:0 18px 50px rgba(13,43,77,.18);
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.board-hero h2{
  margin:0 0 6px;
  color:#fff;
  font-size:26px;
}
.board-hero p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:13px;
}
.board-actions{
  display:flex;
  gap:8px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.board-btn{
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.board-btn:hover{background:rgba(255,255,255,.2);}
.board-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.board-kpi{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 24px rgba(13,43,77,.08);
}
.board-kpi .label{
  color:var(--text-light);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}
.board-kpi .value{
  margin-top:8px;
  font-size:30px;
  font-weight:900;
  color:var(--navy);
}
.board-kpi .hint{
  margin-top:4px;
  font-size:12px;
  color:var(--text-mid);
}
.board-kpi.danger .value{color:#b42318;}
.board-kpi.warn .value{color:#b76b00;}
.board-kpi.good .value{color:#22724d;}

.board-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.board-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 24px rgba(13,43,77,.08);
}
.board-card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  color:var(--navy);
  font-weight:900;
}
.board-summary-list{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}
.board-summary-list li{
  padding:12px 14px;
  border-radius:14px;
  background:var(--cream);
  border:1px solid var(--border);
  color:var(--text-mid);
  font-size:13px;
  line-height:1.45;
}
.risk-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.risk-stable{background:#eaf7f2;color:#22724d;border:1px solid #8ad0ae;}
.risk-watch{background:#fff4e4;color:#9a5a08;border:1px solid #efc27f;}
.risk-critical{background:#fdecec;color:#b42318;border:1px solid #f2aaa4;}
.board-risk-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 8px;
}
.board-risk-table th{
  text-align:left;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:var(--text-light);
  padding:0 10px 4px;
}
.board-risk-table td{
  background:var(--cream);
  padding:12px 10px;
  font-size:13px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.board-risk-table td:first-child{
  border-left:1px solid var(--border);
  border-radius:12px 0 0 12px;
  font-weight:800;
  color:var(--navy);
}
.board-risk-table td:last-child{
  border-right:1px solid var(--border);
  border-radius:0 12px 12px 0;
}
.risk-bar-wrap{
  height:9px;
  border-radius:999px;
  background:#e8eef5;
  overflow:hidden;
  min-width:110px;
}
.risk-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#22724d,#efb04d,#b42318);
}
.board-chart{
  display:grid;
  gap:11px;
}
.chart-row{
  display:grid;
  grid-template-columns:120px 1fr 42px;
  gap:10px;
  align-items:center;
  font-size:12px;
}
.chart-name{
  color:var(--text-mid);
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chart-track{
  height:12px;
  background:#e8eef5;
  border-radius:999px;
  overflow:hidden;
}
.chart-fill{
  height:100%;
  border-radius:999px;
  background:var(--accent);
}
.chart-fill.danger{background:#b42318;}
.chart-fill.warn{background:#efb04d;}
.chart-fill.good{background:#22724d;}
.chart-val{
  text-align:right;
  color:var(--navy);
  font-weight:900;
}
.board-footnote{
  font-size:11px;
  color:var(--text-light);
  margin-top:8px;
}
@media(max-width:1000px){
  .board-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .board-grid{grid-template-columns:1fr;}
}
@media(max-width:600px){
  .board-kpis{grid-template-columns:1fr;}
  .chart-row{grid-template-columns:1fr;}
  .chart-val{text-align:left;}
}


/* Source: inline-style-1 */
/* ── SUPERADMIN SCHOOL ONBOARDING ─────────────────────────────────────────── */
.school-onboard-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.school-onboard-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:12px;
}
.school-onboard-note{
  background:var(--cream);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:12px 14px;
  color:var(--text-mid);
  font-size:12px;
  line-height:1.45;
  margin-top:12px;
}
@media(max-width:800px){
  .school-onboard-grid{grid-template-columns:1fr;}
}


/* Source: inline-style-1 */
/* ── BOARD ROLE LOCK + PRINT-READY EXECUTIVE REPORT ───────────────────────── */
.board-report-header{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px 26px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  box-shadow:0 8px 24px rgba(13,43,77,.08);
}
.board-report-kicker{
  font-size:11px;
  color:var(--text-light);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:8px;
}
.board-report-header h2{
  color:var(--navy);
  font-size:28px;
  margin:0 0 6px;
}
.board-report-header p{
  color:var(--text-mid);
  margin:0;
  font-size:13px;
}
.board-report-meta{
  display:grid;
  gap:5px;
  align-content:start;
  justify-items:end;
  font-size:12px;
  color:var(--text-mid);
}
.board-report-meta strong{
  color:var(--navy);
  font-size:14px;
}
.board-screen-only{justify-content:flex-end;}
.board-print-footer{
  display:none;
  color:var(--text-light);
  font-size:10px;
  text-align:center;
  margin-top:18px;
  border-top:1px solid var(--border);
  padding-top:10px;
}
@media print{
  @page{size:letter landscape;margin:.45in;}
  body{background:#fff!important;color:#111!important;}
  .app-header,
  .tabs-bar,
  .saas-header,
  .board-screen-only,
  .teacher-total-toggle,
  #firebase-auth-overlay,
  #print-sheet{
    display:none!important;
  }
  .main{max-width:none!important;margin:0!important;padding:0!important;}
  .panel{display:none!important;}
  #tab-board{display:block!important;}
  .board-report{gap:10px!important;}
  .board-report-header,
  .board-kpi,
  .board-card{
    box-shadow:none!important;
    break-inside:avoid;
  }
  .board-report-header{
    border:2px solid #0b2f55!important;
    border-radius:0!important;
    padding:14px 16px!important;
  }
  .board-report-header h2{font-size:22px!important;}
  .board-kpis{grid-template-columns:repeat(5,1fr)!important;gap:8px!important;}
  .board-kpi{padding:10px!important;border-radius:0!important;}
  .board-kpi .value{font-size:22px!important;}
  .board-grid{grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .board-card{border-radius:0!important;padding:12px!important;}
  .board-risk-table{border-spacing:0!important;border-collapse:collapse!important;}
  .board-risk-table th{background:#0b2f55!important;color:#fff!important;padding:7px!important;}
  .board-risk-table td{background:#fff!important;border:1px solid #d8dde6!important;padding:7px!important;}
  .risk-badge{border-radius:4px!important;height:auto!important;min-width:60px!important;padding:3px 6px!important;}
  .chart-track,.risk-bar-wrap{border:1px solid #ccd6e0!important;background:#f2f5f8!important;}
  .board-print-footer{display:block!important;}
}


/* Source: inline-style-1 */
/* ── COVERGRID V1.2.1 DATA + ENGINE HARDENING ─────────────────────────────── */
.confidence-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;border:1px solid var(--border);white-space:nowrap;}
.confidence-high{background:#eaf7f2;color:#22724d;border-color:#8ad0ae;}
.confidence-medium{background:#fff4e4;color:#9a5a08;border-color:#efc27f;}
.confidence-low{background:#fdecec;color:#b42318;border-color:#f2aaa4;}
.import-rule-note{margin-top:8px;padding:9px 11px;border-radius:12px;background:#e8f6fb;border:1px solid #a7c6e6;color:#1E3A5F;font-size:12px;line-height:1.45;font-weight:700;}


/* Source: inline-style-1 */
/* ── COVERGRID REPORT PRINT OUTPUT FIX v1.4.9 ────────────────────────────── */
#print-sheet{display:none;}
@media print{
  body *{visibility:hidden!important;}
  #print-sheet, #print-sheet *{visibility:visible!important;}
  #print-sheet{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    padding:16px!important;
    background:#fff!important;
    color:#111!important;
  }
  #print-sheet table{
    width:100%!important;
    border-collapse:collapse!important;
    font-size:11px!important;
  }
  #print-sheet th,#print-sheet td{
    border:1px solid #333!important;
    padding:5px 7px!important;
    text-align:left!important;
    vertical-align:top!important;
  }
  #print-sheet th{
    background:#eee!important;
    color:#111!important;
    font-weight:700!important;
  }
}


/* Source: inline-style-1 */
/* ── ROSTER REPLACE + IMPORT BUTTON v1.5.7 ──────────────────────────────── */
.btn-danger.btn-sm,button.btn-danger{background:linear-gradient(180deg,#d45544 0%,#ba3f31 100%)!important;color:#fff!important;border:none!important;}
.btn-danger.btn-sm:hover,button.btn-danger:hover{filter:brightness(1.04);}


/* Source: inline-style-1 */
/* ── REPORT PRESETS + GENERATE REPORT WIZARD ─────────────────────────────── */
.report-preset-shell{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
}
.report-preset-title-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.report-preset-title{
  font-weight:900;
  color:var(--navy);
  font-size:15px;
}
.report-preset-sub{
  color:var(--text-mid);
  font-size:12px;
  line-height:1.45;
  margin-top:3px;
}
.report-preset-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.report-preset-card{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  cursor:pointer;
  text-align:left;
  box-shadow:0 4px 14px rgba(13,43,77,.04);
  transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.report-preset-card:hover{
  transform:translateY(-1px);
  border-color:rgba(17,181,194,.46);
  box-shadow:0 10px 22px rgba(13,43,77,.08);
}
.report-preset-card strong{
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--navy);
  font-size:13px;
}
.report-preset-card span{
  display:block;
  color:var(--text-mid);
  font-size:11px;
  line-height:1.4;
  margin-top:5px;
}
.report-wizard{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(17,181,194,.26);
  background:linear-gradient(180deg,rgba(17,181,194,.06),rgba(255,255,255,.72));
  border-radius:16px;
}
.report-wizard-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.report-wizard-title{
  font-weight:900;
  color:var(--navy);
}
.report-wizard-sub{
  color:var(--text-mid);
  font-size:12px;
  margin-top:3px;
}
.report-wizard-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr auto;
  gap:10px;
  align-items:end;
}
.report-wizard-help{
  margin-top:10px;
  color:var(--text-mid);
  font-size:12px;
  line-height:1.45;
}
.report-wizard-alert{
  font-size:12px;
  color:var(--text-mid);
  font-weight:800;
}
@media(max-width:1000px){
  .report-preset-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .report-wizard-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:620px){
  .report-preset-grid,
  .report-wizard-grid{
    grid-template-columns:1fr;
  }
}


/* Source: inline-style-1 */
/* ── ONE-CLICK PDF / PRINT FORMATTING ─────────────────────────────────────── */
@media print{
  @page{
    size:letter landscape;
    margin:0.35in;
  }
  html, body{
    background:#fff !important;
    color:#102744 !important;
    font-size:10.5px !important;
  }
  body *{
    visibility:hidden !important;
  }
  #print-sheet,
  #print-sheet *{
    visibility:visible !important;
  }
  #print-sheet{
    display:block !important;
    position:absolute !important;
    inset:0 auto auto 0 !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
    color:#102744 !important;
    font-family:'Segoe UI',Arial,sans-serif !important;
  }
  .cg-print-report{
    width:100%;
  }
  .cg-print-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    border-bottom:3px solid #0D2B4D;
    padding-bottom:10px;
    margin-bottom:12px;
  }
  .cg-print-brand{
    font-size:13px;
    font-weight:900;
    color:#0D2B4D;
    letter-spacing:.02em;
    text-transform:uppercase;
  }
  .cg-print-title{
    font-size:21px;
    line-height:1.1;
    margin:3px 0 5px;
    color:#0D2B4D;
    font-weight:950;
  }
  .cg-print-subtitle{
    color:#47627d;
    font-size:11px;
    line-height:1.35;
  }
  .cg-print-meta{
    text-align:right;
    font-size:10px;
    color:#47627d;
    line-height:1.45;
    min-width:220px;
  }
  .cg-print-meta strong{
    display:block;
    color:#0D2B4D;
    font-size:12px;
  }
  .cg-print-section-label{
    display:inline-block;
    margin:6px 0 8px;
    padding:4px 8px;
    border-radius:999px;
    background:#e8f6fb;
    color:#1E3A5F;
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
  }
  .cg-print-body h3{
    color:#0D2B4D;
    font-size:13px;
    margin:12px 0 6px;
    page-break-after:avoid;
  }
  .cg-print-body p{
    margin:4px 0 8px;
    color:#263b52;
    line-height:1.4;
  }
  .cg-print-body table{
    width:100%;
    border-collapse:collapse;
    margin:6px 0 12px;
    page-break-inside:auto;
    font-size:9.7px;
  }
  .cg-print-body thead{
    display:table-header-group;
  }
  .cg-print-body tr{
    page-break-inside:avoid;
    page-break-after:auto;
  }
  .cg-print-body th{
    background:#0D2B4D !important;
    color:#fff !important;
    font-weight:900;
    text-align:left;
    padding:6px 7px;
    border:1px solid #0D2B4D;
  }
  .cg-print-body td{
    border:1px solid #cbd7e3;
    padding:5px 7px;
    vertical-align:top;
  }
  .cg-print-body tbody tr:nth-child(even) td{
    background:#f5f8fc !important;
  }
  .cg-print-footer{
    border-top:1px solid #cbd7e3;
    margin-top:14px;
    padding-top:7px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:#6b7280;
    font-size:9px;
  }
  .cg-print-badge{
    display:inline-block;
    padding:2px 6px;
    border-radius:999px;
    background:#f5f8fc;
    border:1px solid #cbd7e3;
    color:#0D2B4D;
    font-weight:800;
  }
}


/* Source: inline-style-1 */
/* ── EXECUTIVE SUMMARY NARRATIVE BLOCK ───────────────────────────────────── */
.executive-narrative-card{
  background:linear-gradient(135deg,#ffffff 0%,#f7fbfe 100%);
  border:1px solid rgba(13,43,77,.12);
  border-left:4px solid var(--teal);
  border-radius:16px;
  padding:18px 20px;
  margin-bottom:20px;
  box-shadow:0 8px 24px rgba(13,43,77,.05);
}
.executive-narrative-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.executive-narrative-title{
  color:var(--navy);
  font-size:16px;
  font-weight:950;
  display:flex;
  align-items:center;
  gap:8px;
}
.executive-narrative-copy{
  color:var(--text-dark);
  font-size:14px;
  line-height:1.68;
  max-width:980px;
}
.executive-narrative-copy strong{
  color:var(--navy);
}
.executive-narrative-bullets{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.executive-narrative-bullet{
  border:1px solid var(--border);
  background:#fff;
  border-radius:13px;
  padding:12px;
  color:var(--text-mid);
  font-size:12px;
  line-height:1.45;
}
.executive-narrative-bullet strong{
  display:block;
  color:var(--navy);
  font-size:12px;
  margin-bottom:3px;
}
.executive-copy-btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--navy);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.executive-copy-btn:hover{
  border-color:rgba(17,181,194,.46);
  color:var(--teal-dark,#0096b4);
}
@media(max-width:900px){
  .executive-narrative-bullets{
    grid-template-columns:1fr;
  }
}


/* Source: inline-style-1 */
/* ── EXECUTIVE REPORTING CHARTS ───────────────────────────────────────────── */
.executive-chart-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  margin:0 0 20px;
}
.executive-chart-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 8px 24px rgba(13,43,77,.06);
  overflow:hidden;
}
.executive-chart-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  color:var(--navy);
  font-size:14px;
  font-weight:950;
  margin-bottom:12px;
}
.executive-chart-title span{
  color:var(--text-light);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.exec-trend-bars{
  height:210px;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(34px,1fr);
  gap:9px;
  align-items:end;
  padding:10px 4px 0;
  border-bottom:1px solid rgba(13,43,77,.12);
}
.exec-trend-col{
  display:grid;
  grid-template-rows:1fr auto;
  gap:8px;
  height:100%;
  min-width:0;
}
.exec-trend-bar-wrap{
  height:100%;
  display:flex;
  align-items:end;
  justify-content:center;
}
.exec-trend-bar{
  width:100%;
  max-width:38px;
  min-height:6px;
  border-radius:10px 10px 0 0;
  background:linear-gradient(180deg,var(--accent),#2B5B8C);
  box-shadow:0 8px 18px rgba(17,181,194,.18);
}
.exec-trend-label{
  color:var(--text-light);
  font-size:10px;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.exec-chart-empty{
  border:1px dashed rgba(13,43,77,.18);
  border-radius:14px;
  padding:28px;
  color:var(--text-mid);
  background:#f8fbfe;
  font-size:13px;
  text-align:center;
}
.exec-donut-wrap{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:16px;
  align-items:center;
}
.exec-donut{
  width:132px;
  height:132px;
  border-radius:50%;
  background:conic-gradient(#22724d 0 var(--accepted,0deg), #ef9f27 var(--accepted,0deg) calc(var(--accepted,0deg) + var(--pending,0deg)), #c0392b calc(var(--accepted,0deg) + var(--pending,0deg)) 360deg);
  box-shadow:inset 0 0 0 20px #fff, 0 10px 28px rgba(13,43,77,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:auto;
}
.exec-donut-center{
  color:var(--navy);
  font-size:25px;
  font-weight:950;
  letter-spacing:-.04em;
}
.exec-legend{
  display:grid;
  gap:9px;
}
.exec-legend-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:9px;
  align-items:center;
  color:var(--text-mid);
  font-size:12px;
  font-weight:800;
}
.exec-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}
.exec-dot.green{background:#22724d;}
.exec-dot.gold{background:#ef9f27;}
.exec-dot.red{background:#c0392b;}
.exec-workload-list{
  display:grid;
  gap:10px;
}
.exec-workload-row{
  display:grid;
  grid-template-columns:minmax(120px,180px) 1fr 44px;
  gap:10px;
  align-items:center;
  font-size:12px;
}
.exec-workload-name{
  color:var(--text-mid);
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.exec-workload-track{
  height:11px;
  background:#e8eef5;
  border-radius:999px;
  overflow:hidden;
}
.exec-workload-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),#2B5B8C);
}
.exec-workload-val{
  color:var(--navy);
  font-weight:950;
  text-align:right;
}
@media(max-width:1000px){
  .executive-chart-grid{grid-template-columns:1fr;}
}
@media(max-width:620px){
  .exec-donut-wrap{grid-template-columns:1fr;}
  .exec-workload-row{grid-template-columns:1fr;}
  .exec-workload-val{text-align:left;}
}


/* Source: cg-notify-decline-css */

.cg-decline-alert{
  margin:10px 18px;
  padding:12px 14px;
  border:1px solid #f0b7b7;
  background:#fff5f5;
  color:#7f1d1d;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  box-shadow:0 2px 10px rgba(127,29,29,.08);
}
.cg-decline-alert strong{
  font-weight:800;
}
.cg-decline-alert-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.cg-decline-alert a,
.cg-decline-alert button{
  border:1px solid #dc2626;
  background:#fff;
  color:#991b1b;
  border-radius:8px;
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
  cursor:pointer;
}
.cg-decline-alert button{
  border-color:#e5e7eb;
  color:#334155;
}



/* Source: cg-quick-reports-row-css */

.quick-reports-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 16px !important;
  margin-bottom:14px !important;
}
.quick-reports-label{
  color:var(--text-light);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-right:4px;
}
.quick-reports-row .btn{
  height:34px !important;
}
.quick-reports-row .btn.active,
.quick-reports-row .btn-primary{
  background:linear-gradient(180deg, var(--blue) 0%, var(--navy-2) 100%) !important;
  color:#fff !important;
  border-color:var(--navy-2) !important;
}



/* Source: cg-setup-wizard-functional-css */

#tab-setup .onboard-step.is-complete{
  border-color:rgba(34,114,77,.32);
  background:#f4fbf8;
}
#tab-setup .onboard-step.is-complete strong::after{
  content:" ✓";
  color:#22724d;
}
#tab-setup .onboard-step.is-active{
  border-color:rgba(17,181,194,.55);
  box-shadow:0 10px 24px rgba(17,181,194,.10);
}
#setup-save-status.saved{
  background:#eaf7f2 !important;
  border-color:#8ad0ae !important;
  color:#22724d !important;
}
#setup-save-status.warn{
  background:#fff4e4 !important;
  border-color:#efc27f !important;
  color:#9a5a08 !important;
}



/* Source: cg-monthly-matrix-dashboard-css */
/* ── MONTHLY MATRIX DASHBOARD — UI-FRIENDLY LOCK ───────────────────────────
   Polished layout for Reports > Monthly Matrix. Uses strong selectors so the
   matrix remains card-based even when broader report/table CSS changes. */
#cg-monthly-matrix-dashboard.cg-monthly-matrix-dashboard{
  display:block !important;
  width:100% !important;
  margin:18px 0 22px !important;
  padding:20px 22px 22px !important;
  border:1px solid rgba(13,43,77,.12) !important;
  border-left:5px solid var(--accent) !important;
  border-radius:20px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbfe 100%) !important;
  box-shadow:0 14px 34px rgba(13,43,77,.08) !important;
  overflow:visible !important;
}
#cg-monthly-matrix-dashboard .cg-mm-head{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:16px !important;
  align-items:start !important;
  margin:0 0 16px !important;
  padding-bottom:14px !important;
  border-bottom:1px solid rgba(13,43,77,.10) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-title{
  color:var(--navy) !important;
  font-size:20px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  letter-spacing:-.035em !important;
}
#cg-monthly-matrix-dashboard .cg-mm-sub{
  color:var(--text-mid) !important;
  font-size:13px !important;
  line-height:1.5 !important;
  margin:5px 0 0 !important;
  max-width:960px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-actions{
  display:flex !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  justify-content:flex-end !important;
  align-items:center !important;
}
#cg-monthly-matrix-dashboard .cg-mm-actions .btn,
#cg-monthly-matrix-dashboard .cg-mm-actions button{
  height:32px !important;
  padding:0 12px !important;
  font-size:11px !important;
  border-radius:999px !important;
  white-space:nowrap !important;
}
#cg-monthly-matrix-dashboard .cg-mm-actions .btn-primary{
  background:linear-gradient(180deg,var(--blue) 0%,var(--navy-2) 100%) !important;
  color:#fff !important;
  border-color:var(--navy-2) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-kpis{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(126px,1fr)) !important;
  gap:12px !important;
  margin:14px 0 16px !important;
  align-items:stretch !important;
}
#cg-monthly-matrix-dashboard .cg-mm-kpi{
  display:block !important;
  min-height:94px !important;
  background:#fff !important;
  border:1px solid rgba(13,43,77,.12) !important;
  border-radius:16px !important;
  padding:15px 14px 13px 16px !important;
  box-shadow:0 8px 22px rgba(13,43,77,.06) !important;
  position:relative !important;
  overflow:hidden !important;
}
#cg-monthly-matrix-dashboard .cg-mm-kpi:before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:5px !important;
  height:100% !important;
  background:var(--accent) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-kpi.accepted:before{background:#22724d !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.pending:before{background:#ef9f27 !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.declined:before{background:#c0392b !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.reassign:before{background:#2B5B8C !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.uncovered:before{background:#f97316 !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi .val{
  display:block !important;
  color:var(--navy) !important;
  font-size:31px !important;
  font-weight:950 !important;
  line-height:1 !important;
  letter-spacing:-.055em !important;
}
#cg-monthly-matrix-dashboard .cg-mm-kpi.pending .val{color:#9a5a08 !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.accepted .val{color:#22724d !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.declined .val{color:#c0392b !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.reassign .val{color:#1E3A5F !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi.uncovered .val{color:#c2410c !important;}
#cg-monthly-matrix-dashboard .cg-mm-kpi .label{
  display:block !important;
  color:var(--text-light) !important;
  font-size:10px !important;
  line-height:1.25 !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  margin-top:9px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-warning{
  display:none !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  background:#fff4e4 !important;
  border:1px solid #efc27f !important;
  color:#9a5a08 !important;
  border-radius:16px !important;
  padding:12px 14px !important;
  font-size:12px !important;
  font-weight:900 !important;
  margin:0 0 14px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-warning.active{display:flex !important;}
#cg-monthly-matrix-dashboard .cg-mm-warning .btn{
  height:30px !important;
  border-radius:999px !important;
  font-size:11px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-filters{
  display:grid !important;
  grid-template-columns:150px minmax(210px,1.15fr) minmax(220px,1.15fr) 150px 120px minmax(152px,auto) !important;
  gap:10px !important;
  align-items:end !important;
  padding:14px !important;
  margin:0 0 16px !important;
  background:#f8fbfe !important;
  border:1px solid rgba(13,43,77,.11) !important;
  border-radius:18px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72) !important;
}
#cg-monthly-matrix-dashboard .field{margin-bottom:0 !important;}
#cg-monthly-matrix-dashboard .field label{
  color:var(--text-light) !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.09em !important;
  margin:0 0 5px !important;
}
#cg-monthly-matrix-dashboard input,
#cg-monthly-matrix-dashboard select{
  height:38px !important;
  min-height:38px !important;
  border-radius:12px !important;
  background:#fff !important;
  border:1px solid rgba(13,43,77,.13) !important;
  font-size:12px !important;
  color:var(--text-dark) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-toggle{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-height:38px !important;
  padding:0 12px !important;
  border:1px solid rgba(13,43,77,.13) !important;
  background:#fff !important;
  border-radius:12px !important;
  color:var(--text-mid) !important;
  font-size:12px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#cg-monthly-matrix-dashboard .cg-mm-toggle input{
  width:16px !important;
  height:16px !important;
  min-height:16px !important;
  accent-color:var(--accent) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-grid-wrap{
  width:100% !important;
  max-height:560px !important;
  overflow:auto !important;
  border:1px solid rgba(13,43,77,.12) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(13,43,77,.05) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-table{
  width:100% !important;
  min-width:1040px !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  font-size:12px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
  background:var(--navy) !important;
  color:rgba(255,255,255,.9) !important;
  padding:10px 11px !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.075em !important;
  white-space:nowrap !important;
}
#cg-monthly-matrix-dashboard .cg-mm-table tbody td{
  padding:11px !important;
  border-bottom:1px solid rgba(13,43,77,.09) !important;
  vertical-align:top !important;
  color:var(--text-dark) !important;
  background:#fff !important;
}
#cg-monthly-matrix-dashboard .cg-mm-table tbody tr{cursor:pointer !important;}
#cg-monthly-matrix-dashboard .cg-mm-table tbody tr:hover td{background:#eef9fc !important;}
#cg-monthly-matrix-dashboard .cg-mm-row-pending td{background:rgba(255,244,228,.50) !important;}
#cg-monthly-matrix-dashboard .cg-mm-row-declined td{background:rgba(253,236,236,.50) !important;}
#cg-monthly-matrix-dashboard .cg-mm-row-reassign td{background:rgba(232,246,251,.50) !important;}
#cg-monthly-matrix-dashboard .cg-mm-row-uncovered td{background:rgba(255,240,230,.58) !important;}
#cg-monthly-matrix-dashboard .cg-mm-date{
  font-weight:950 !important;
  color:var(--navy) !important;
  white-space:nowrap !important;
}
#cg-monthly-matrix-dashboard .cg-mm-muted{
  color:var(--text-light) !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
#cg-monthly-matrix-dashboard .cg-mm-cover-cell strong,
#cg-monthly-matrix-dashboard .cg-mm-absent-cell strong{color:var(--navy) !important;}
#cg-monthly-matrix-dashboard .cg-mm-status{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  padding:4px 9px !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.05em !important;
  white-space:nowrap !important;
  border:1px solid var(--border) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-status.pending{background:#fff4e4 !important;color:#9a5a08 !important;border-color:#efc27f !important;}
#cg-monthly-matrix-dashboard .cg-mm-status.accepted{background:#eaf7f2 !important;color:#22724d !important;border-color:#8ad0ae !important;}
#cg-monthly-matrix-dashboard .cg-mm-status.declined{background:#fdecec !important;color:#b42318 !important;border-color:#f2aaa4 !important;}
#cg-monthly-matrix-dashboard .cg-mm-status.reassign{background:#e8f6fb !important;color:#1E3A5F !important;border-color:#a7c6e6 !important;}
#cg-monthly-matrix-dashboard .cg-mm-status.uncovered{background:#fff0e6 !important;color:#c2410c !important;border-color:#fdba74 !important;}
#cg-monthly-matrix-dashboard .cg-mm-status.cancelled{background:#eef2f6 !important;color:#6B7280 !important;border-color:#cbd5e1 !important;}
#cg-monthly-matrix-dashboard .cg-mm-empty{
  display:block !important;
  margin:0 !important;
  padding:24px !important;
  text-align:center !important;
  color:var(--text-mid) !important;
  border:1px dashed rgba(13,43,77,.18) !important;
  border-radius:16px !important;
  background:#f8fbfe !important;
  font-size:13px !important;
  line-height:1.55 !important;
}
#cg-monthly-matrix-dashboard .cg-mm-empty strong{
  display:block !important;
  color:var(--navy) !important;
  font-size:14px !important;
  margin-bottom:4px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(320px,.85fr) !important;
  gap:16px !important;
  margin-top:16px !important;
  align-items:start !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-card{
  display:block !important;
  border:1px solid rgba(13,43,77,.12) !important;
  border-radius:18px !important;
  background:#fff !important;
  padding:16px !important;
  box-shadow:0 8px 22px rgba(13,43,77,.05) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-title{
  color:var(--navy) !important;
  font-size:14px !important;
  font-weight:950 !important;
  margin:0 0 12px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-list{display:grid !important;gap:9px !important;}
#cg-monthly-matrix-dashboard .cg-mm-workload-row{
  display:grid !important;
  grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) 38px !important;
  gap:10px !important;
  align-items:center !important;
  font-size:12px !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-name{
  color:var(--text-mid) !important;
  font-weight:850 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-track{
  height:10px !important;
  border-radius:999px !important;
  background:#e8eef5 !important;
  overflow:hidden !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-fill{
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,var(--accent),#2B5B8C) !important;
}
#cg-monthly-matrix-dashboard .cg-mm-workload-row.high .cg-mm-workload-fill{background:#ef9f27 !important;}
#cg-monthly-matrix-dashboard .cg-mm-workload-row.none .cg-mm-workload-fill{background:#cbd5e1 !important;}
#cg-monthly-matrix-dashboard .cg-mm-workload-val{
  color:var(--navy) !important;
  font-weight:950 !important;
  text-align:right !important;
}
#cg-monthly-matrix-dashboard .cg-mm-detail-list{
  display:grid !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
#cg-monthly-matrix-dashboard .cg-mm-detail-list li{
  background:#f8fbfe !important;
  border:1px solid rgba(13,43,77,.10) !important;
  border-radius:13px !important;
  padding:11px 12px !important;
  color:var(--text-mid) !important;
  font-size:12px !important;
  line-height:1.48 !important;
}
.cg-mm-modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:22000;
  background:rgba(9,20,42,.62);
  align-items:center;
  justify-content:center;
  padding:22px;
}
.cg-mm-modal-backdrop.active{display:flex;}
.cg-mm-modal{
  background:#fff;
  border-radius:18px;
  width:min(720px,100%);
  max-height:90vh;
  overflow:auto;
  box-shadow:0 24px 80px rgba(0,0,0,.24);
  padding:20px;
}
.cg-mm-modal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px;}
.cg-mm-modal-title{color:var(--navy);font-size:17px;font-weight:950;}
.cg-mm-modal-close{border:1px solid var(--border);background:#fff;border-radius:10px;width:34px;height:34px;font-size:18px;cursor:pointer;color:var(--text-mid);}
.cg-mm-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.cg-mm-modal-field{background:#f8fbfe;border:1px solid var(--border);border-radius:12px;padding:10px;font-size:12px;color:var(--text-mid);}
.cg-mm-modal-field strong{display:block;color:var(--navy);font-size:11px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:4px;}
.cg-mm-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);}
@media(max-width:1250px){
  #cg-monthly-matrix-dashboard .cg-mm-kpis{grid-template-columns:repeat(3,minmax(160px,1fr)) !important;}
  #cg-monthly-matrix-dashboard .cg-mm-filters{grid-template-columns:1fr 1fr 1fr !important;}
  #cg-monthly-matrix-dashboard .cg-mm-workload{grid-template-columns:1fr !important;}
}
@media(max-width:760px){
  #cg-monthly-matrix-dashboard{padding:16px !important;border-radius:18px !important;}
  #cg-monthly-matrix-dashboard .cg-mm-head{grid-template-columns:1fr !important;}
  #cg-monthly-matrix-dashboard .cg-mm-actions{justify-content:flex-start !important;}
  #cg-monthly-matrix-dashboard .cg-mm-kpis,
  #cg-monthly-matrix-dashboard .cg-mm-filters,
  .cg-mm-modal-grid{grid-template-columns:1fr !important;}
  #cg-monthly-matrix-dashboard .cg-mm-workload-row{grid-template-columns:1fr !important;}
  #cg-monthly-matrix-dashboard .cg-mm-workload-val{text-align:left !important;}
}
@media print{
  #cg-monthly-matrix-dashboard{display:none !important;}
}


/* Source: covergrid-v2-top-side-toggle-css */
/* ── COVERGRID v2 TOP/SIDE MENU TOGGLE ─────────────────────────────────────
   Sidebar remains the v2 default. Top Menu is an optional desktop layout.
   Existing app IDs, navigation, Firebase, reports, and coverage logic unchanged.
──────────────────────────────────────────────────────────────────────────── */
body.cg-v2-saas .nav-layout-toggle{
  display:inline-flex !important;
}

@media (min-width:901px){
  body.cg-v2-saas.cg-v2-top-menu{
    padding-left:0 !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header{
    position:sticky !important;
    left:auto !important;
    right:auto !important;
    top:0 !important;
    bottom:auto !important;
    width:100% !important;
    height:auto !important;
    min-height:86px !important;
    padding:12px 20px !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) auto !important;
    grid-template-rows:auto !important;
    align-items:center !important;
    gap:16px !important;
    overflow:visible !important;
    background:linear-gradient(135deg,#0D2B4D 0%,#1E3A5F 100%) !important;
    border-right:0 !important;
    border-bottom:1px solid rgba(255,255,255,.12) !important;
    box-shadow:0 6px 22px rgba(13,43,77,.16) !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__brand{
    width:auto !important;
    min-width:0 !important;
    justify-content:flex-start !important;
    gap:10px !important;
    padding:0 !important;
    border-bottom:0 !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__logo{
    width:auto !important;
    height:58px !important;
    max-width:210px !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .mobile-menu-toggle{
    display:none !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav{
    width:auto !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:6px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    scrollbar-width:none;
  }
  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav::-webkit-scrollbar{display:none;}

  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav .nav-link{
    width:auto !important;
    height:42px !important;
    flex:0 0 auto !important;
    justify-content:center !important;
    padding:0 12px !important;
    border-radius:13px !important;
    background:transparent !important;
    border:1px solid transparent !important;
    color:rgba(255,255,255,.84) !important;
    box-shadow:none !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav .nav-link:hover{
    color:#fff !important;
    background:rgba(255,255,255,.10) !important;
    border-color:rgba(255,255,255,.10) !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav .nav-link.active{
    background:rgba(17,181,194,.22) !important;
    border-color:rgba(17,181,194,.38) !important;
    color:#fff !important;
    box-shadow:inset 0 0 0 1px rgba(17,181,194,.18) !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__nav .nav-link.active:after{
    display:none !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .nav-ico{
    width:28px !important;
    height:28px !important;
    border-radius:10px !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .saas-header__actions{
    width:auto !important;
    min-width:0 !important;
    margin-top:0 !important;
    padding-top:0 !important;
    border-top:0 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    white-space:nowrap !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .school-context-display,
  body.cg-v2-saas.cg-v2-top-menu .saas-pill,
  body.cg-v2-saas.cg-v2-top-menu .saas-date,
  body.cg-v2-saas.cg-v2-top-menu .saas-btn,
  body.cg-v2-saas.cg-v2-top-menu #school-switcher-wrap{
    width:auto !important;
    max-width:220px !important;
    justify-content:center !important;
    text-align:center !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .nav-layout-toggle{
    display:inline-flex !important;
    border-color:rgba(17,181,194,.36) !important;
    background:rgba(17,181,194,.16) !important;
  }

  body.cg-v2-saas.cg-v2-top-menu .main{
    width:100% !important;
    max-width:1360px !important;
    margin:0 auto !important;
    padding:24px 26px 42px !important;
  }

  body.cg-v2-saas.cg-v2-top-menu #reassignBanner{
    left:0 !important;
    width:100% !important;
  }
}

@media (max-width:900px){
  body.cg-v2-saas .nav-layout-toggle{
    display:none !important;
  }
}


/* Source: cg-notify-decline-css */

.cg-decline-alert{
  margin:10px 18px;
  padding:12px 14px;
  border:1px solid #f0b7b7;
  background:#fff5f5;
  color:#7f1d1d;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  box-shadow:0 2px 10px rgba(127,29,29,.08);
}
.cg-decline-alert strong{
  font-weight:800;
}
.cg-decline-alert-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.cg-decline-alert a,
.cg-decline-alert button{
  border:1px solid #dc2626;
  background:#fff;
  color:#991b1b;
  border-radius:8px;
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
  cursor:pointer;
}
.cg-decline-alert button{
  border-color:#e5e7eb;
  color:#334155;
}



/* Source: cg-quick-reports-row-css */

.quick-reports-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 16px !important;
  margin-bottom:14px !important;
}
.quick-reports-label{
  color:var(--text-light);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-right:4px;
}
.quick-reports-row .btn{
  height:34px !important;
}
.quick-reports-row .btn.active,
.quick-reports-row .btn-primary{
  background:linear-gradient(180deg, var(--blue) 0%, var(--navy-2) 100%) !important;
  color:#fff !important;
  border-color:var(--navy-2) !important;
}

/* ── COVERGRID UI UPDATES 1–5: COMPACT DASHBOARD CARDS ────────────────────
   Scoped to Today/dashboard cards so global admin/report cards are not reduced. */
body.cg-v2-saas .today-dashboard-grid .card,
body.cg-v2-saas .today-status-cards-compact .card,
body.cg-v2-saas .today-compact-status-card{
  padding:13px 15px !important;
}
