/* ==========================================================================
   Universities Directory (/universities) & University Admission Plan (/stats/reports)
   Scoped with .uv-* and .ur-* to avoid Bootstrap / MDB conflicts
   ========================================================================== */

:root {
  --uv-bg: #f1f5f9;
  --uv-card: #ffffff;
  --uv-ink: #0f172a;
  --uv-muted: #64748b;
  --uv-line: #e2e8f0;
  --uv-brand: #1e3a8a;
  --uv-brand2: #2563eb;
  --uv-brand-soft: #eff6ff;
  --uv-orange: #ef7f1a;
  --uv-orange-soft: #fff7ed;
  --uv-green: #059669;
  --uv-green-soft: #ecfdf5;
  --uv-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.05);
  --uv-shadow-hover: 0 8px 24px rgba(30, 58, 138, 0.12);
}

/* ---------- Shared Hero Banner (inside layout.hbs .main) ---------- */
.uv-hero-wrap {
  margin-top: -40px;
  padding-bottom: 34px;
}

.uv-hero {
  padding-top: 24px;
}

.uv-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 14px;
}

.uv-breadcrumbs a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 500;
}

.uv-breadcrumbs a:hover {
  color: #fde68a;
  text-decoration: underline;
}

.uv-breadcrumbs .uv-bc-sep {
  opacity: 0.55;
}

.uv-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.uv-hero-main {
  flex: 1 1 520px;
  min-width: 0;
}

.uv-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.uv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uv-hero-badge--accent {
  background: rgba(239, 127, 26, 0.24);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.uv-hero-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.uv-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 720px;
}

.uv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.uv-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.uv-hero-btn--primary {
  background: var(--uv-orange);
  color: #ffffff !important;
  border: 1px solid var(--uv-orange);
}

.uv-hero-btn--primary:hover {
  background: #d96d0f;
  border-color: #d96d0f;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.uv-hero-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.uv-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

.uv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.uv-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.uv-hero-meta-item i {
  color: #fbbf24;
  font-size: 13px;
  flex-shrink: 0;
}

.uv-hero-meta-item a {
  color: #fde68a;
  text-decoration: none;
  font-weight: 500;
}

.uv-hero-meta-item a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* ---------- Page Body Container ---------- */
.uv-page {
  background: var(--uv-bg);
  padding: 26px 0 64px;
  min-height: calc(100vh - 360px);
}

/* ---------- Shared Search & Filter Panel ---------- */
.uv-panel {
  background: var(--uv-card);
  border: 1px solid var(--uv-line);
  border-radius: 16px;
  box-shadow: var(--uv-shadow);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.uv-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.uv-search-box {
  position: relative;
  flex: 1 1 320px;
  min-width: 220px;
}

.uv-search-box .uv-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--uv-muted);
  font-size: 14px;
  pointer-events: none;
}

.uv-search-input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 40px;
  border: 1px solid var(--uv-line);
  border-radius: 11px;
  font-size: 14px;
  color: var(--uv-ink);
  background: #f8fafc;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.uv-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--uv-brand2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.uv-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.uv-search-clear.is-visible {
  display: inline-flex;
}

.uv-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.uv-count-pill {
  font-size: 13px;
  color: var(--uv-muted);
  font-weight: 500;
  white-space: nowrap;
  padding: 0 4px;
}

.uv-count-pill strong {
  color: var(--uv-brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uv-reset-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--uv-line);
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.uv-reset-btn:hover {
  border-color: var(--uv-brand2);
  color: var(--uv-brand2);
  background: var(--uv-brand-soft);
}

/* ---------- Region & Voucher Chips (/universities) ---------- */
.uv-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.uv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--uv-line);
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.uv-chip:hover {
  border-color: #93c5fd;
  background: var(--uv-brand-soft);
  color: var(--uv-brand);
}

.uv-chip.is-active {
  background: var(--uv-brand);
  border-color: var(--uv-brand);
  color: #ffffff;
  font-weight: 600;
}

.uv-chip .uv-chip-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.uv-chip.is-active .uv-chip-cnt {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.uv-chip--voucher {
  margin-left: auto;
  border-color: #fed7aa;
  background: var(--uv-orange-soft);
  color: #c2410c;
}

.uv-chip--voucher:hover {
  border-color: var(--uv-orange);
  background: #ffedd5;
  color: #9a3412;
}

.uv-chip--voucher.is-active {
  background: var(--uv-orange);
  border-color: var(--uv-orange);
  color: #ffffff;
}

/* ---------- Universities Grid & Cards ---------- */
.uv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.uv-card {
  background: var(--uv-card);
  border: 1px solid var(--uv-line);
  border-radius: 16px;
  box-shadow: var(--uv-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.uv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--uv-shadow-hover);
  border-color: #cbd5e1;
}

.uv-card[hidden] {
  display: none !important;
}

.uv-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.uv-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--uv-brand-soft);
  color: var(--uv-brand);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uv-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.uv-voucher-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--uv-orange-soft);
  color: #c2410c;
  border: 1px solid #fed7aa;
  margin-left: auto;
}

.uv-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
}

.uv-card-title a {
  color: var(--uv-brand);
  text-decoration: none;
}

.uv-card-title a:hover {
  color: var(--uv-brand2);
  text-decoration: underline;
}

.uv-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.uv-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.uv-meta-row i {
  width: 15px;
  margin-top: 3px;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
}

.uv-meta-label {
  color: var(--uv-muted);
  margin-right: 4px;
}

.uv-meta-link {
  color: var(--uv-brand2);
  text-decoration: none;
  word-break: break-word;
}

.uv-meta-link:hover {
  text-decoration: underline;
}

.uv-plan-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

.uv-plan-strip strong {
  color: var(--uv-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uv-plan-strip .uv-dot {
  color: #cbd5e1;
}

.uv-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.uv-btn-primary {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--uv-brand2);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.uv-btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

.uv-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--uv-line);
  color: #334155 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.uv-btn-secondary:hover {
  background: var(--uv-brand-soft);
  border-color: #93c5fd;
  color: var(--uv-brand) !important;
}

/* ---------- Empty State ---------- */
.uv-empty {
  background: var(--uv-card);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 44px 24px;
  text-align: center;
  margin-top: 12px;
}

.uv-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--uv-brand-soft);
  color: var(--uv-brand2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.uv-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--uv-brand);
}

.uv-empty p {
  margin: 0 auto 18px;
  max-width: 480px;
  font-size: 14px;
  color: var(--uv-muted);
  line-height: 1.5;
}

.uv-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   University Detailed Plan Page (/stats/reports?id_university=...)
   ========================================================================== */

/* KPI Grid */
.ur-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.ur-kpi {
  background: var(--uv-card);
  border: 1px solid var(--uv-line);
  border-top: 3px solid var(--kpi-accent, var(--uv-brand2));
  border-radius: 14px;
  box-shadow: var(--uv-shadow);
  padding: 16px 18px;
}

.ur-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uv-muted);
  margin-bottom: 8px;
}

.ur-kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--uv-brand);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ur-kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--uv-muted);
  line-height: 1.35;
}

/* Mode Tabs (All vs Voucher) */
.ur-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ur-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.ur-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ur-tab:hover {
  color: var(--uv-brand) !important;
}

.ur-tab.is-active {
  background: #ffffff;
  color: var(--uv-brand) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.ur-tab-cnt {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.ur-tab.is-active .ur-tab-cnt {
  background: var(--uv-brand-soft);
  color: var(--uv-brand2);
}

.ur-tab--voucher.is-active .ur-tab-cnt {
  background: var(--uv-orange-soft);
  color: #c2410c;
}

.ur-tree-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Filters Row */
.ur-filters-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.ur-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ur-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uv-muted);
  margin: 0;
}

.ur-select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--uv-line);
  background: #f8fafc
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  appearance: none;
  font-size: 13px;
  color: var(--uv-ink);
  cursor: pointer;
  font-family: inherit;
}

.ur-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--uv-brand2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.ur-filters-grid .uv-search-box {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

.ur-filters-grid .uv-search-input {
  height: 40px;
}

/* Faculty Accordion Cards */
.ur-faculties {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ur-faculty {
  background: var(--uv-card);
  border: 1px solid var(--uv-line);
  border-radius: 16px;
  box-shadow: var(--uv-shadow);
  overflow: hidden;
  scroll-margin-top: 20px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ur-faculty.is-highlight {
  border-color: var(--uv-orange);
  box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.25);
}

.ur-faculty[hidden] {
  display: none !important;
}

.ur-faculty-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--uv-line);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.ur-faculty-head:hover {
  background: #f1f5f9;
}

.ur-faculty.is-collapsed .ur-faculty-head {
  border-bottom-color: transparent;
}

.ur-faculty-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 300px;
}

.ur-faculty-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--uv-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ur-faculty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--uv-brand);
  line-height: 1.3;
}

.ur-faculty-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ur-fac-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--uv-line);
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ur-fac-stat strong {
  color: var(--uv-ink);
}

.ur-fac-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--uv-brand2) !important;
  background: var(--uv-brand-soft);
  text-decoration: none !important;
}

.ur-fac-contact-link:hover {
  background: #dbeafe;
  color: var(--uv-brand) !important;
}

.ur-chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.2s ease, background 0.15s ease;
}

.ur-faculty.is-collapsed .ur-chevron {
  transform: rotate(-90deg);
}

.ur-faculty-body {
  display: block;
}

.ur-faculty.is-collapsed .ur-faculty-body {
  display: none;
}

/* Plan Table */
.ur-table-wrap {
  overflow-x: auto;
}

.ur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.ur-table thead th {
  background: #ffffff;
  color: var(--uv-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--uv-line);
  white-space: nowrap;
}

.ur-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: var(--uv-ink);
}

.ur-table tbody tr:last-child td {
  border-bottom: none;
}

.ur-table tbody tr:hover {
  background: #f8fafc;
}

.ur-table tbody tr[hidden] {
  display: none !important;
}

.ur-cipher {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ur-spec-title {
  font-weight: 600;
  color: var(--uv-ink);
  line-height: 1.38;
}

.ur-spec-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.38;
}

.ur-spec-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.ur-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.ur-tag--learning {
  background: #f1f5f9;
  color: #475569;
}

.ur-tag--voucher {
  background: var(--uv-orange-soft);
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.ur-tag--dvi {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ur-note-dvi {
  margin-top: 6px;
  font-size: 12px;
  color: #1d4ed8;
  line-height: 1.35;
}

.ur-note-desc {
  margin-top: 5px;
  font-size: 12px;
  color: #b45309;
  line-height: 1.35;
}

/* Payment Badges */
.ur-bk {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ur-bk--budget {
  background: var(--uv-green-soft);
  color: #047857;
}

.ur-bk--contract {
  background: var(--uv-brand-soft);
  color: #1d4ed8;
}

.ur-bk--voucher {
  background: var(--uv-orange-soft);
  color: #c2410c;
}

.ur-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ur-smeta {
  font-weight: 600;
  color: var(--uv-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ur-smeta-muted {
  color: #94a3b8;
  font-weight: 500;
}

.ur-ratio {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--uv-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ORT Threshold Chips */
.ur-ball-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ur-ball-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.ur-ball-chip strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ur-ball-chip--main {
  background: #eef2ff;
  color: #1e3a8a;
  border: 1px solid #c7d2fe;
}

.ur-ball-chip--req {
  background: #fef3c7;
  color: #92400e;
}

.ur-ball-note {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--uv-muted);
}

/* Action Buttons inside Table */
.ur-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 118px;
}

.ur-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ur-action-btn--rank {
  background: var(--uv-brand2);
  color: #ffffff !important;
  border: 1px solid var(--uv-brand2);
}

.ur-action-btn--rank:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

.ur-action-btn--rank-empty {
  background: #f8fafc;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.ur-action-btn--rank-empty:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.ur-action-btn--contact {
  background: var(--uv-orange-soft);
  color: #c2410c !important;
  border: 1px solid #fed7aa;
}

.ur-action-btn--contact:hover {
  background: var(--uv-orange);
  border-color: var(--uv-orange);
  color: #ffffff !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .uv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ur-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ur-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ur-table thead {
    display: none;
  }

  .ur-table,
  .ur-table tbody,
  .ur-table tr,
  .ur-table td {
    display: block;
    width: 100%;
  }

  .ur-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--uv-line);
  }

  .ur-table tbody td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .ur-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--uv-muted);
    flex-shrink: 0;
    padding-top: 2px;
  }

  .ur-table tbody td.ur-td-spec {
    flex-direction: column;
    gap: 4px;
  }

  .ur-table tbody td.ur-td-ball {
    flex-direction: column;
    gap: 6px;
  }

  .ur-table tbody td.ur-td-actions::before {
    display: none;
  }

  .ur-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 6px;
  }

  .ur-action-btn {
    flex: 1 1 130px;
  }
}

@media (max-width: 680px) {
  .uv-hero-title {
    font-size: 22px;
  }

  .uv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .uv-card,
  .ur-kpi-card,
  .cm-member-card {
    min-width: 0;
  }

  .uv-chip--voucher {
    margin-left: 0;
  }

  .ur-filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ur-faculty-head {
    padding: 13px 15px;
  }

  .uv-panel {
    padding: 14px 15px;
  }
}


/* ==========================================================================
   Admissions Committee Contacts (/stats/committee)
   Scoped with .cm-*
   ========================================================================== */

.cm-faculties {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cm-faculty-card {
  background: var(--uv-card);
  border: 1px solid var(--uv-line);
  border-radius: 16px;
  box-shadow: var(--uv-shadow);
  overflow: hidden;
}

.cm-faculty-card[hidden] {
  display: none;
}

.cm-faculty-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--uv-line);
}

.cm-faculty-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 280px;
}

.cm-faculty-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--uv-brand-soft);
  color: var(--uv-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cm-faculty-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--uv-ink);
  line-height: 1.3;
}

.cm-faculty-count {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--uv-muted);
}

.cm-faculty-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--uv-brand) !important;
  background: var(--uv-brand-soft);
  border: 1px solid #dbeafe;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.cm-faculty-link:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.cm-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  padding: 18px 20px;
}

.cm-member-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--uv-line);
  background: #ffffff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.cm-member-card[hidden] {
  display: none;
}

.cm-member-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--uv-shadow-hover);
  transform: translateY(-1px);
}

.cm-member-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--uv-brand), var(--uv-brand2));
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-member-info {
  min-width: 0;
  flex: 1;
}

.cm-member-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--uv-ink);
  line-height: 1.35;
  word-break: break-word;
}

.cm-member-role {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--uv-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cm-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: var(--uv-ink) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.14s ease, border-color 0.14s ease;
  min-width: 0;
}

.cm-contact-item[href]:hover {
  background: var(--uv-brand-soft);
  border-color: #dbeafe;
  color: var(--uv-brand) !important;
}

.cm-contact-item--wa[href]:hover {
  background: var(--uv-green-soft);
  border-color: #a7f3d0;
  color: #047857 !important;
}

.cm-contact-item--tg[href]:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1 !important;
}

.cm-contact-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cm-contact-ico--phone {
  background: #eff6ff;
  color: #1d4ed8;
}

.cm-contact-ico--mobile {
  background: #eef2ff;
  color: #4338ca;
}

.cm-contact-ico--wa {
  background: #ecfdf5;
  color: #059669;
}

.cm-contact-ico--tg {
  background: #e0f2fe;
  color: #0284c7;
}

.cm-contact-ico--mail {
  background: #fff7ed;
  color: #ea580c;
}

.cm-contact-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--uv-line);
  margin-top: auto;
}

.cm-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid var(--uv-line);
  background: #f8fafc;
  color: var(--uv-ink) !important;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
  max-width: 100%;
}

.cm-social-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.cm-social-btn:hover {
  transform: translateY(-1px);
}

.cm-social-btn--ig:hover {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d !important;
}

.cm-social-btn--fb:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
}

.cm-social-btn--web:hover {
  background: var(--uv-brand-soft);
  border-color: #bfdbfe;
  color: var(--uv-brand) !important;
}

.cm-no-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--uv-muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .cm-faculty-head {
    padding: 14px 15px;
  }

  .cm-members-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 15px;
  }
}
