/* CollegeSystem additions on top of Verge's styles (epm.min.css, rail.css, template style.css).
   Only what Verge has no class for: the text logo, filter chips, initials avatar, profile header, timeline. */

/* text logo in the top bar and sign-in panel (Verge shows a picture logo in the same place) */
.cs-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cs-logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-600, #25A194); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.cs-logo__text { font-weight: 700; font-size: 16px; color: var(--text-primary-light, #1f2937); line-height: 1.1; }
.cs-logo__text small { display: block; font-weight: 500; font-size: 10.5px; color: var(--text-secondary-light, #64748b); }
.lx-mark .cs-logo__mark { width: 34px; height: 34px; }

/* filter chips with counts (All 38 · Open 34 ...) as on Verge's list screens */
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--neutral-200, #e5e7eb); background: var(--white, #fff); color: var(--text-primary-light, #1f2937); font-size: 13px; text-decoration: none; }
.cs-chip b { font-weight: 600; color: var(--text-secondary-light, #64748b); }
.cs-chip:hover { border-color: var(--primary-600, #25A194); color: var(--primary-600, #25A194); }
.cs-chip.is-on { background: color-mix(in srgb, var(--primary-600, #25A194) 12%, transparent); border-color: var(--primary-600, #25A194); color: var(--primary-600, #25A194); font-weight: 600; }
.cs-chip.is-on b { color: inherit; }

/* initials avatar */
.cs-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; letter-spacing: .02em; }

/* profile header card (student / employee) */
.cs-profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cs-profile__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--text-secondary-light, #64748b); }
.cs-profile__meta b { color: var(--text-primary-light, #1f2937); font-weight: 600; }

/* small key figures inside cards */
.cs-figure { font-size: 22px; font-weight: 700; color: var(--text-primary-light, #1f2937); line-height: 1.1; }
.cs-kpis.cs-k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-kpis.cs-k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cs-kpis > a { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px #e6ebea; color: inherit; text-decoration: none; }
.cs-kpis > a:hover { box-shadow: 0 0 0 1px var(--primary-600, #25A194); }
.cs-kpis > a small { display: block; font-size: 12px; color: #6b7280; } .cs-kpis > a b { display: block; font-size: 20px; } .cs-kpis > a span { display: block; font-size: 11.5px; color: #6b7280; }
[data-theme=dark] .cs-kpis > a { background: var(--neutral-50, #1b2431); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
@media (max-width: 991px) { .cs-kpis, .cs-kpis.cs-k4, .cs-kpis.cs-k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* progress steps (application status) */
.cs-steps { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.cs-steps li { flex: 1; min-width: 120px; padding: 10px 8px 0 0; border-top: 3px solid var(--neutral-200, #e5e7eb); font-size: 12.5px; color: var(--text-secondary-light, #64748b); font-weight: 500; }
.cs-steps li.done { border-top-color: var(--primary-600, #25A194); color: var(--text-primary-light, #1f2937); }
.cs-steps li.now { border-top-color: #f59e0b; color: var(--text-primary-light, #1f2937); font-weight: 700; }

/* history list (as Verge's .mm-events) */
.cs-events { list-style: none; margin: 0; padding: 0; }
.cs-events li { padding: 8px 0; border-bottom: 1px dashed var(--neutral-200, #e5e7eb); }
.cs-events li:last-child { border-bottom: 0; }

/* document preview frames */
.cs-doc-preview { width: 100%; height: 320px; border: 1px solid var(--neutral-200, #e5e7eb); border-radius: 8px; background: #fff; }
img.cs-doc-preview { object-fit: contain; height: 220px; }

/* sandbox banner */
.cs-sandbox { background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px); color: #78350f; font-weight: 700; text-align: center; padding: 6px; border-radius: 8px; }

/* table cells with two lines */
.epm-table td .cs-sub { display: block; font-size: 12px; color: var(--text-secondary-light, #64748b); }
.text-end.cs-num { font-variant-numeric: tabular-nums; }

/* print */
@media print { .sidebar, .navbar-header, .cs-no-print, .d-print-none { display: none !important; } .dashboard-main { margin: 0 !important; } }

/* ---------------------------------------------------------------- weekly timetable grid */
.cs-week { border: 1px solid var(--neutral-200, #e5e7eb); border-radius: 12px; overflow: hidden; background: var(--white, #fff); }
.cs-week__head, .cs-week__body { display: grid; grid-template-columns: 64px repeat(auto-fit, minmax(0, 1fr)); }
.cs-week__head { grid-template-columns: 64px repeat(var(--cs-days, 5), minmax(0, 1fr)); background: var(--neutral-50, #f9fafb); border-bottom: 1px solid var(--neutral-200, #e5e7eb); font-weight: 600; font-size: 13px; }
.cs-week__head > div { padding: 10px 8px; text-align: center; }
.cs-week__body { grid-template-columns: 64px repeat(var(--cs-days, 5), minmax(0, 1fr)); }
.cs-week__times > div { height: var(--cs-hour); font-size: 11px; color: var(--text-secondary-light, #6b7280); text-align: right; padding: 2px 8px 0 0; border-top: 1px solid var(--neutral-100, #f3f4f6); }
.cs-week__day { position: relative; border-left: 1px solid var(--neutral-200, #e5e7eb); }
.cs-week__slot { height: var(--cs-hour); border-top: 1px solid var(--neutral-100, #f3f4f6); }
.cs-week__slot.is-break { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(148, 163, 184, .12) 6px 12px); }
.cs-week__slot.is-over { background: rgba(13, 148, 136, .15); outline: 2px dashed rgba(13, 148, 136, .6); outline-offset: -2px; }
.cs-week__item { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 6px; font-size: 11.5px; line-height: 1.25; overflow: hidden;
  background: hsl(var(--cs-hue) 70% 94%); border-left: 4px solid hsl(var(--cs-hue) 55% 42%); color: hsl(var(--cs-hue) 45% 22%); }
.cs-week__item b { font-size: 12px; }
.cs-week__item span { display: block; }
.cs-week__who { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-week__item[draggable="true"], .cs-week__item.is-edit { cursor: pointer; }
.cs-week__item[draggable="true"]:active { cursor: grabbing; }
.cs-week__item.is-flagged { box-shadow: 0 0 0 2px #dc2626 inset; }
.cs-week__flag { position: absolute; top: 3px; right: 4px; color: #dc2626; }
[data-theme="dark"] .cs-week { background: transparent; }
[data-theme="dark"] .cs-week__item { background: hsl(var(--cs-hue) 35% 22%); color: hsl(var(--cs-hue) 60% 88%); }
@media print { .cs-week__item { break-inside: avoid; } }

/* Executive BI: single-series column chart (bars from a shared baseline, value above, label below) and the bar
   colour for Verge's .epr-bar tracks. One hue = one measure; targets are shown as a dashed line. */
.cs-cols { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 18px 4px 0; border-bottom: 1px solid var(--neutral-200, #e5e7eb); }
.cs-cols__c { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.cs-cols__c > i { display: block; width: min(56px, 70%); border-radius: 4px 4px 0 0; background: var(--primary-600, #25A194); min-height: 2px; }
.cs-cols__c > b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 4px; color: var(--text-primary-light, #1f2937); }
.cs-cols__c:hover > i { filter: brightness(.9); }
.cs-cols__x { display: flex; gap: 10px; padding: 6px 4px 0; }
.cs-cols__x > span { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: var(--text-secondary-light, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-cols__target { position: absolute; left: 0; right: 0; border-top: 1px dashed #94a3b8; pointer-events: none; z-index: 1; }
.cs-cols__target > span { position: absolute; left: 0; top: -17px; font-size: 11px; color: var(--text-secondary-light, #64748b); background: var(--white, #fff); padding: 0 4px; }
.epr-bar__t > span.cs-bar { background: var(--primary-600, #25A194); }
.cs-score td .epm-badge i { margin-right: 4px; }
.epr-bars.cs-wide .epr-bar { grid-template-columns: minmax(6rem, 9rem) 1fr 8rem; }
