/* ============================================================================
   IMRAN IDREES GROUP OF COMPANIES (IIGOC)
   ENTERPRISE RESOURCE PLANNING (ERP) SYSTEM SUITE
   Professional Corporate Theme (Strictly Zero Emojis, High Contrast)
   ============================================================================ */

:root {
  --erp-navy-dark: #082e43;
  --erp-navy-deep: #0b1f2d;
  --erp-navy-accent: #0f3d59;
  
  --erp-blue-primary: #0284c7;
  --erp-blue-hover: #0369a1;
  --erp-royal-blue: #2563eb;
  --erp-royal-hover: #1d4ed8;

  --erp-orange-accent: #ed640b;
  --erp-orange-hover: #d45305;

  --erp-bg-canvas: #f8fafc;
  --erp-bg-card: #ffffff;
  --erp-border-light: #e2e8f0;
  --erp-border-subtle: #cbd5e1;

  --erp-ink-primary: #0f172a;
  --erp-ink-secondary: #475569;
  --erp-ink-muted: #64748b;

  --erp-green-bg: #f0fdf4;
  --erp-green-text: #15803d;
  --erp-green-border: #bbf7d0;

  --erp-purple-bg: #faf5ff;
  --erp-purple-text: #7e22ce;
  --erp-purple-border: #e9d5ff;

  --erp-orange-bg: #fff7ed;
  --erp-orange-text: #c2410c;
  --erp-orange-border: #fed7aa;

  --erp-blue-bg: #eff6ff;
  --erp-blue-text: #1d4ed8;
  --erp-blue-border: #bfdbfe;

  --erp-teal-bg: #f0fdfa;
  --erp-teal-text: #0f766e;
  --erp-teal-border: #99f6e4;

  --erp-red-bg: #fef2f2;
  --erp-red-text: #b91c1c;
  --erp-red-border: #fecaca;

  --erp-radius-sm: 6px;
  --erp-radius-md: 10px;
  --erp-radius-lg: 14px;
  --erp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --erp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --erp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  
  --erp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--erp-font-sans);
  background-color: var(--erp-bg-canvas);
  color: var(--erp-ink-primary);
  line-height: 1.5;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.erp-app-container {
  display: flex;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */
.erp-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--erp-navy-dark) 0%, var(--erp-navy-deep) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.erp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-brand-badge {
  background: var(--erp-orange-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--erp-radius-sm);
  letter-spacing: 0.8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.erp-brand-text {
  display: flex;
  flex-direction: column;
}

.erp-brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  line-height: 1.2;
}

.erp-brand-sub {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.erp-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.erp-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--erp-radius-md);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.erp-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.erp-nav-item.active {
  background: var(--erp-royal-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.erp-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.erp-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.erp-nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.erp-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-footer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.erp-user-info {
  display: flex;
  flex-direction: column;
}

.erp-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.erp-user-role {
  font-size: 10px;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   MAIN CONTENT AREA
   -------------------------------------------------------------------------- */
.erp-main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s ease;
}

/* Desktop Collapsed Sidebar State */
.sidebar-collapsed .erp-sidebar {
  transform: translateX(-100%);
}
.sidebar-collapsed .erp-main-wrapper {
  margin-left: 0;
}

/* Topbar */
.erp-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--erp-border-light);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
  gap: 12px;
}

.erp-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.erp-menu-toggle {
  display: none; /* hidden on desktop, visible on mobile */
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--erp-border-subtle);
  border-radius: var(--erp-radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--erp-ink-secondary);
  transition: all 0.15s ease;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.erp-menu-toggle:hover {
  background: #f1f5f9;
  color: var(--erp-royal-blue);
  border-color: #94a3b8;
}

/* Desktop Expand Sidebar Button (>): shown only when sidebar is collapsed on desktop */
.erp-desktop-expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--erp-border-subtle);
  border-radius: var(--erp-radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--erp-ink-secondary);
  transition: all 0.15s ease;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.erp-desktop-expand-btn:hover {
  background: #f1f5f9;
  color: var(--erp-royal-blue);
  border-color: #94a3b8;
}

@media (min-width: 901px) {
  .sidebar-collapsed .erp-desktop-expand-btn {
    display: flex;
  }
}

/* Professional Sidebar Collapse Chevron Button (<) */
.erp-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.erp-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #38bdf8;
  border-color: #38bdf8;
  transform: scale(1.05);
}

/* Sidebar Backdrop Overlay for Mobile */
.erp-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.erp-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.erp-breadcrumb-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--erp-ink-primary);
  letter-spacing: -0.2px;
}

.erp-breadcrumb-sub {
  font-size: 12px;
  color: var(--erp-ink-muted);
}

.erp-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.erp-icon-btn {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--erp-ink-secondary);
  position: relative;
  transition: all 0.15s ease;
}

.erp-icon-btn:hover {
  background: #f8fafc;
  color: var(--erp-royal-blue);
  border-color: #cbd5e1;
}

.erp-icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #ffffff;
}

.erp-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: var(--erp-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.erp-top-user:hover {
  background: #f1f5f9;
  border-color: var(--erp-border-light);
}

/* Page Body */
.erp-content-body {
  padding: 20px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   UNIFIED SUBTABS RIBBON
   -------------------------------------------------------------------------- */
.erp-subtabs-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
  border-bottom: 1px solid var(--erp-border-light);
  scrollbar-width: thin;
}

.erp-subtabs-ribbon::-webkit-scrollbar {
  height: 4px;
}
.erp-subtabs-ribbon::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.erp-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--erp-ink-secondary);
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.erp-subtab-btn:hover {
  background: #f1f5f9;
  color: var(--erp-royal-blue);
  border-color: #cbd5e1;
}

.erp-subtab-btn.active {
  background: var(--erp-royal-blue);
  color: #ffffff;
  border-color: var(--erp-royal-blue);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------------------------------
   KPI METRIC CARDS GRID
   -------------------------------------------------------------------------- */
.erp-kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.erp-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.erp-kpi-card {
  background: var(--erp-bg-card);
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--erp-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.erp-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--erp-shadow-md);
}

.erp-kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--erp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.erp-kpi-icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.erp-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.erp-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--erp-ink-muted);
  text-transform: capitalize;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--erp-ink-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* KPI Color themes */
.erp-kpi-blue .erp-kpi-icon-box { background: var(--erp-blue-bg); color: var(--erp-blue-text); }
.erp-kpi-green .erp-kpi-icon-box { background: var(--erp-green-bg); color: var(--erp-green-text); }
.erp-kpi-purple .erp-kpi-icon-box { background: var(--erp-purple-bg); color: var(--erp-purple-text); }
.erp-kpi-orange .erp-kpi-icon-box { background: var(--erp-orange-bg); color: var(--erp-orange-text); }
.erp-kpi-teal .erp-kpi-icon-box { background: var(--erp-teal-bg); color: var(--erp-teal-text); }
.erp-kpi-red .erp-kpi-icon-box { background: var(--erp-red-bg); color: var(--erp-red-text); }

/* --------------------------------------------------------------------------
   COLLEGES OVERVIEW CARDS GRID (Group Dashboard)
   -------------------------------------------------------------------------- */
.erp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--erp-ink-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-colleges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.erp-college-card {
  background: var(--erp-bg-card);
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--erp-shadow-sm);
  transition: all 0.2s ease;
}

.erp-college-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--erp-shadow-lg);
  border-color: #cbd5e1;
}

/* Executive Campus Card Banner Headers (Zero broken images, Fortune-500 enterprise look) */
.erp-college-banner-header {
  min-height: 108px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.erp-college-banner-header::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.erp-college-banner-header::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: 20%;
  width: 140px;
  height: 64px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.college-chs .erp-college-banner-header {
  background: linear-gradient(135deg, #881337 0%, #b91c1c 55%, #e11d48 100%);
}

.college-coe .erp-college-banner-header {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #ea580c 100%);
}

.college-cbm .erp-college-banner-header {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%);
}

.college-cah .erp-college-banner-header {
  background: linear-gradient(135deg, #3b0764 0%, #6d28d9 55%, #7c3aed 100%);
}

.college-cst .erp-college-banner-header {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 55%, #0284c7 100%);
}

.erp-banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.erp-banner-crest {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.erp-banner-node-status {
  font-size: 9.5px;
  font-weight: 700;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 2.5px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.erp-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.erp-banner-sector {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.erp-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.erp-banner-tag {
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.erp-college-banner {
  height: 105px;
  width: 100%;
  object-fit: cover;
  background-color: #cbd5e1;
  display: block;
}

.erp-college-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.erp-college-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.erp-college-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.erp-college-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--erp-ink-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.erp-college-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px 0;
  border-top: 1px dashed var(--erp-border-light);
  border-bottom: 1px dashed var(--erp-border-light);
}

.erp-college-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.erp-college-stat-row .label {
  color: var(--erp-ink-muted);
}

.erp-college-stat-row .val {
  font-weight: 700;
  color: var(--erp-ink-primary);
}

.erp-college-btn {
  width: 100%;
  padding: 7px 12px;
  border: none;
  border-radius: var(--erp-radius-md);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  margin-top: auto;
}

.erp-college-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* College card color variants */
.college-cst .erp-college-icon-sm { background: var(--erp-blue-bg); color: var(--erp-blue-text); }
.college-cst .erp-college-btn { background: #0284c7; }

.college-cbm .erp-college-icon-sm { background: var(--erp-green-bg); color: var(--erp-green-text); }
.college-cbm .erp-college-btn { background: #16a34a; }

.college-cah .erp-college-icon-sm { background: var(--erp-purple-bg); color: var(--erp-purple-text); }
.college-cah .erp-college-btn { background: #7c3aed; }

.college-chs .erp-college-icon-sm { background: var(--erp-red-bg); color: var(--erp-red-text); }
.college-chs .erp-college-btn { background: #dc2626; }

.college-coe .erp-college-icon-sm { background: var(--erp-orange-bg); color: var(--erp-orange-text); }
.college-coe .erp-college-btn { background: #ea580c; }

.erp-college-dean {
  font-size: 11px;
  color: var(--erp-ink-muted);
  margin-top: -6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.erp-college-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  padding-top: 6px;
}

.erp-college-quick-links a {
  color: var(--erp-ink-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.erp-college-quick-links a:hover {
  color: var(--erp-brand-primary);
  text-decoration: underline;
}

.erp-college-quick-links .sep {
  color: var(--erp-border-medium);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   COLLEGE DASHBOARD: 3-COLUMN WORKSPACE
   -------------------------------------------------------------------------- */
.erp-college-workspace {
  display: grid;
  grid-template-columns: 290px 1fr 270px;
  gap: 18px;
}

.erp-panel-card {
  background: var(--erp-bg-card);
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  padding: 16px;
  box-shadow: var(--erp-shadow-sm);
  display: flex;
  flex-direction: column;
}

.erp-panel-head {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--erp-ink-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--erp-border-light);
  padding-bottom: 8px;
}

/* Column 1: Recent Activities Feed */
.erp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erp-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.erp-activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.erp-activity-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.erp-activity-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.erp-activity-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--erp-ink-primary);
  line-height: 1.3;
}

.erp-activity-time {
  font-size: 10.5px;
  color: var(--erp-ink-muted);
  margin-top: 2px;
}

.act-blue { background: var(--erp-blue-bg); color: var(--erp-blue-text); }
.act-green { background: var(--erp-green-bg); color: var(--erp-green-text); }
.act-purple { background: var(--erp-purple-bg); color: var(--erp-purple-text); }
.act-orange { background: var(--erp-orange-bg); color: var(--erp-orange-text); }
.act-red { background: var(--erp-red-bg); color: var(--erp-red-text); }

/* Column 2: Quick Access Grid (6 Module Cards) */
.erp-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.erp-quick-card {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.erp-quick-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--erp-shadow-md);
}

.erp-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--erp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.erp-quick-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.erp-quick-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--erp-ink-primary);
  margin-bottom: 4px;
}

.erp-quick-desc {
  font-size: 11px;
  color: var(--erp-ink-muted);
  line-height: 1.3;
}

/* Column 3: Switch College Panel */
.erp-switch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-switch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--erp-radius-md);
  border: 1px solid var(--erp-border-light);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--erp-ink-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.erp-switch-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.erp-switch-btn.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--erp-royal-blue);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.erp-switch-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   TOOLBARS, FILTERS, DATA TABLES & BADGES
   -------------------------------------------------------------------------- */
.erp-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.erp-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.erp-input-search {
  padding: 8px 12px;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  font-size: 12.5px;
  background: #ffffff;
  min-width: 240px;
}

.erp-select-filter {
  padding: 8px 12px;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  font-size: 12.5px;
  background: #ffffff;
  color: var(--erp-ink-primary);
}

.erp-btn-primary {
  padding: 8px 16px;
  background: var(--erp-royal-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--erp-radius-md);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.erp-btn-primary:hover {
  background: var(--erp-royal-hover);
  transform: translateY(-1px);
}

.erp-btn-secondary {
  padding: 8px 14px;
  background: #ffffff;
  color: var(--erp-ink-primary);
  border: 1px solid var(--erp-border-subtle);
  border-radius: var(--erp-radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.erp-btn-secondary:hover {
  background: #f8fafc;
}

.erp-table-card {
  background: var(--erp-bg-card);
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  overflow: hidden;
  box-shadow: var(--erp-shadow-sm);
}

.erp-table-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--erp-border-light);
  flex-wrap: wrap;
  gap: 10px;
}

.erp-table-scroll {
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.erp-table th {
  background: #f8fafc;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--erp-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--erp-border-light);
}

.erp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--erp-border-light);
  color: var(--erp-ink-primary);
  vertical-align: middle;
}

.erp-table tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.erp-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.erp-badge.confirmed, .erp-badge.active, .erp-badge.posted { background: var(--erp-green-bg); color: var(--erp-green-text); }
.erp-badge.pending, .erp-badge.probation, .erp-badge.draft { background: var(--erp-orange-bg); color: var(--erp-orange-text); }
.erp-badge.rejected, .erp-badge.exited, .erp-badge.cancelled { background: var(--erp-red-bg); color: var(--erp-red-text); }

.erp-btn-sm {
  padding: 4px 10px;
  border-radius: var(--erp-radius-sm);
  border: 1px solid var(--erp-border-subtle);
  background: #ffffff;
  color: var(--erp-royal-blue);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-btn-sm:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* --------------------------------------------------------------------------
   LAUNCHPAD GRID FOR ACCOUNTS & QUICK WORKFLOWS
   -------------------------------------------------------------------------- */
.erp-launchpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.erp-launch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.erp-launch-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--erp-shadow-sm);
}

.erp-launch-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--erp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.erp-launch-text {
  display: flex;
  flex-direction: column;
}

.erp-launch-text strong {
  font-size: 12.5px;
  color: var(--erp-ink-primary);
}

.erp-launch-text small {
  font-size: 11px;
  color: var(--erp-ink-muted);
}

/* --------------------------------------------------------------------------
   STUDENT SIDE: STUDENT PORTAL VIEW
   -------------------------------------------------------------------------- */
.erp-student-hero {
  background: linear-gradient(135deg, rgba(8, 46, 67, 0.9) 0%, rgba(15, 61, 89, 0.85) 100%), url('../admissions/uploads/login-bg/6a0c3d09cded0_1779186953.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--erp-radius-lg);
  padding: 28px 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--erp-shadow-md);
  margin-bottom: 20px;
}

.erp-student-hero-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.erp-student-hero-sub {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.erp-student-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.erp-student-tile {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--erp-shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-student-tile:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--erp-shadow-md);
}

.erp-student-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--erp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.erp-student-tile-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.erp-student-tile-text {
  display: flex;
  flex-direction: column;
}

.erp-student-tile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--erp-ink-primary);
}

.erp-student-tile-desc {
  font-size: 11px;
  color: var(--erp-ink-muted);
}

/* --------------------------------------------------------------------------
   MODALS & OVERLAYS
   -------------------------------------------------------------------------- */
.erp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.erp-modal-overlay.open {
  display: flex;
}

.erp-modal-box {
  background: #ffffff;
  border-radius: var(--erp-radius-lg);
  width: min(650px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--erp-shadow-lg);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: auto;
}

.erp-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--erp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-modal-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.erp-modal-close {
  background: none;
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  color: #64748b;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.erp-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.erp-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS & GRID
   -------------------------------------------------------------------------- */
.erp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.erp-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.erp-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-form-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--erp-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.erp-form-input, .erp-form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--erp-border-subtle);
  border-radius: var(--erp-radius-md);
  font-size: 13px;
  background: #ffffff;
  color: var(--erp-ink-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.erp-form-input:focus, .erp-form-select:focus {
  border-color: var(--erp-royal-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   CHART OF ACCOUNTS (COA) HIERARCHICAL TREE STYLES
   -------------------------------------------------------------------------- */
.erp-coa-container {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  overflow: hidden;
  box-shadow: var(--erp-shadow-sm);
}

.erp-coa-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--erp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-coa-list {
  display: flex;
  flex-direction: column;
}

.erp-coa-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  transition: background 0.1s ease;
}

.erp-coa-node:hover {
  background: #f8fafc;
}

.erp-coa-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erp-coa-badge-code {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
}

.erp-coa-level-1 {
  background: #f8fafc;
  font-weight: 800;
  border-left: 4px solid var(--erp-navy-dark);
}

.erp-coa-level-1 .erp-coa-badge-code {
  background: var(--erp-navy-dark);
  color: #ffffff;
}

.erp-coa-level-2 {
  padding-left: 36px;
  font-weight: 700;
  border-left: 4px solid var(--erp-royal-blue);
}

.erp-coa-level-2 .erp-coa-badge-code {
  background: #dbeafe;
  color: #1e40af;
}

.erp-coa-level-3 {
  padding-left: 60px;
  font-weight: 600;
  border-left: 4px solid #94a3b8;
}

.erp-coa-level-4 {
  padding-left: 84px;
  font-weight: 500;
  border-left: 4px solid #cbd5e1;
}

.erp-coa-highlight {
  background: #fffbeb !important;
  border-left: 4px solid #f59e0b !important;
}

.erp-coa-highlight .erp-coa-badge-code {
  background: #fef3c7;
  color: #b45309;
}

/* --------------------------------------------------------------------------
   ORGANOGRAM TREE STYLES
   -------------------------------------------------------------------------- */
.erp-org-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 10px;
}

.erp-org-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.erp-org-card {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  padding: 14px 18px;
  box-shadow: var(--erp-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  position: relative;
}

.erp-org-card.root {
  border-top: 4px solid var(--erp-orange-accent);
}

.erp-org-card.exec {
  border-top: 4px solid var(--erp-royal-blue);
}

.erp-org-card.dept {
  border-top: 4px solid #16a34a;
}

.erp-org-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--erp-navy-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.erp-org-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--erp-ink-primary);
}

.erp-org-role {
  font-size: 11px;
  color: var(--erp-ink-muted);
}

.erp-org-inst {
  font-size: 10.5px;
  color: var(--erp-royal-blue);
  font-weight: 600;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   PAYMENT CHANNEL & VERIFICATION BADGES
   -------------------------------------------------------------------------- */
.erp-badge-bank {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.erp-badge-cash {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.erp-badge-verified {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.erp-badge-unverified {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   ORGANOGRAM OFFICIAL CHART VIEWER & CONTROLS
   -------------------------------------------------------------------------- */
.erp-org-viewer-card {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  overflow: hidden;
  box-shadow: var(--erp-shadow-sm);
  display: flex;
  flex-direction: column;
}

.erp-org-viewer-header {
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--erp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.erp-org-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.erp-org-pill-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--erp-border-subtle);
  background: #ffffff;
  color: var(--erp-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-org-pill-btn:hover {
  background: #f8fafc;
  color: var(--erp-ink-primary);
}

.erp-org-pill-btn.active {
  background: var(--erp-navy-dark);
  color: #ffffff;
  border-color: var(--erp-navy-dark);
  box-shadow: 0 2px 4px rgba(8, 46, 67, 0.2);
}

.erp-org-canvas-box {
  background: #0f172a;
  min-height: 540px;
  position: relative;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.erp-org-canvas-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.erp-org-floating-tools {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.erp-org-tool-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.erp-org-tool-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.erp-upload-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: var(--erp-radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-upload-dropzone:hover {
  border-color: var(--erp-royal-blue);
  background: #eff6ff;
}

.erp-payslip-modal-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  font-family: inherit;
}

.erp-payslip-header {
  border-bottom: 2px solid #082e43;
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   ACCOUNTS WORKSPACE SYSTEM (Exact Match to hrms/accounts/)
   -------------------------------------------------------------------------- */
.acc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  padding: 12px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.acc-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.acc-selector-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--erp-ink-secondary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.acc-selector-select {
  padding: 7px 12px;
  border: 1px solid var(--erp-border-subtle);
  border-radius: var(--erp-radius-md);
  font-size: 12.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--erp-ink-primary);
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
}

.acc-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.acc-kpi-card {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  padding: 14px 18px;
  box-shadow: var(--erp-shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.acc-kpi-card.blue { border-top: 4px solid var(--erp-royal-blue); }
.acc-kpi-card.orange { border-top: 4px solid var(--erp-orange-accent); }
.acc-kpi-card.purple { border-top: 4px solid #7c3aed; }
.acc-kpi-card.green { border-top: 4px solid #16a34a; }

.acc-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.acc-kpi-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--erp-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.acc-kpi-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}

.acc-kpi-badge.ok { background: #dcfce7; color: #166534; }
.acc-kpi-badge.warn { background: #ffedd5; color: #9a3412; }

.acc-kpi-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--erp-ink-primary);
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}

.acc-kpi-meta {
  font-size: 11px;
  color: var(--erp-ink-muted);
}

.acc-action-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.acc-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acc-coa-search-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acc-coa-search-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acc-tree-btn {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  margin-right: 8px;
  vertical-align: middle;
}

.acc-tree-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.acc-indent-0 { padding-left: 14px !important; }
.acc-indent-1 { padding-left: 36px !important; }
.acc-indent-2 { padding-left: 58px !important; }
.acc-indent-3 { padding-left: 80px !important; }

/* --------------------------------------------------------------------------
   PROFESSIONAL VECTOR EXECUTIVE ORGANOGRAM
   -------------------------------------------------------------------------- */
.erp-org-tree-wrapper {
  background: #f8fafc;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-lg);
  padding: 30px 20px;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.erp-org-tier-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.erp-org-node-card {
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.erp-org-node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #38bdf8;
}

.erp-org-node-card:active {
  transform: translateY(-1px);
}

.erp-org-node-card .erp-org-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 8px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.erp-org-node-card:hover .erp-org-click-hint {
  opacity: 1;
  background: #e0f2fe;
}

.erp-org-node-card.board { border-top: 4px solid var(--erp-orange-accent); }
.erp-org-node-card.principal { border-top: 4px solid var(--erp-royal-blue); }
.erp-org-node-card.governance { border-top: 4px solid #7c3aed; }
.erp-org-node-card.academic { border-top: 4px solid #16a34a; }
.erp-org-node-card.hospital { border-top: 4px solid #0f766e; }

.erp-org-node-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.erp-org-node-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--erp-ink-primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.erp-org-node-hod {
  font-size: 11.5px;
  color: var(--erp-royal-blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.erp-org-node-desc {
  font-size: 10.5px;
  color: var(--erp-ink-muted);
}

.erp-connector-v {
  width: 2px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .erp-kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .erp-colleges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .erp-college-workspace {
    grid-template-columns: 1fr;
  }
  .erp-launchpad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .erp-menu-toggle {
    display: flex !important;
  }
  .erp-desktop-expand-btn {
    display: none !important;
  }
  .erp-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.45);
    z-index: 1001;
  }
  .erp-sidebar.open {
    transform: translateX(0);
  }
  .erp-sidebar-close {
    display: flex;
  }
  .erp-main-wrapper {
    margin-left: 0 !important;
  }
  .erp-topbar {
    padding: 10px 16px;
    gap: 10px;
  }
  .erp-topbar-left {
    gap: 10px;
  }
  .erp-breadcrumb-title {
    font-size: 16px;
  }
  .erp-breadcrumb-sub {
    font-size: 11.5px;
  }
  .erp-topbar-right {
    gap: 8px;
    flex-wrap: wrap;
  }
  .erp-role-switch-container {
    max-width: 100%;
    margin-right: 0 !important;
  }
  #erp-role-select {
    max-width: 170px;
    text-overflow: ellipsis;
  }
  .erp-kpi-grid-5, .erp-kpi-grid-4, .acc-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .erp-colleges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-student-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .erp-sidebar {
    width: 280px;
    max-width: 86vw;
  }
  .erp-kpi-grid-5, .erp-kpi-grid-4, .acc-kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .erp-colleges-grid {
    grid-template-columns: 1fr;
  }
  .erp-quick-grid {
    grid-template-columns: 1fr;
  }
  .erp-student-tiles-grid {
    grid-template-columns: 1fr;
  }
  .erp-launchpad-grid {
    grid-template-columns: 1fr;
  }
  .erp-topbar {
    padding: 8px 12px;
  }
  .erp-topbar-left {
    gap: 8px;
  }
  .erp-breadcrumb-title {
    font-size: 14.5px;
  }
  .erp-breadcrumb-sub {
    display: none;
  }
  .erp-topbar-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
  }
  .erp-role-switch-container {
    flex: 1;
    min-width: 0;
  }
  #erp-role-select {
    width: 100%;
    max-width: 100%;
  }
  .erp-top-user .erp-user-info {
    display: none;
  }
  .erp-content-body {
    padding: 12px 10px;
  }
  .erp-toolbar-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .erp-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .erp-input-search, .erp-select-filter {
    width: 100% !important;
    min-width: 100% !important;
  }
  .acc-top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .acc-selector-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }
  .acc-selector-select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .acc-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px dashed var(--erp-border-light);
  }
  .acc-action-ribbon {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .acc-action-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .acc-action-btns button,
  .acc-action-btns a,
  .acc-action-btns .erp-btn-primary,
  .acc-action-btns .erp-btn-secondary {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .acc-coa-search-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .acc-coa-search-group input {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }
  .acc-coa-search-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .acc-coa-search-btns button {
    flex: 1;
    text-align: center;
  }
  .erp-modal-overlay {
    padding: 8px !important;
  }
  .erp-modal-box {
    width: 100% !important;
    max-width: calc(100vw - 16px) !important;
    margin: 0 auto !important;
    max-height: 94vh !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  .erp-modal-box.wide {
    width: 100% !important;
    max-width: calc(100vw - 16px) !important;
  }
  .erp-modal-head {
    padding: 12px 14px !important;
  }
  .erp-modal-head h3 {
    font-size: 14px !important;
  }
  .erp-modal-body {
    padding: 14px 12px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .erp-form-grid,
  .erp-form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* --------------------------------------------------------------------------
   COA SUB-HEAD ASSISTANT & PRESET PILLS (Exact Match to hrms/accounts)
   -------------------------------------------------------------------------- */
.preset-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #0369a1;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  line-height: 1.3;
}
.preset-pill-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}
.preset-pill-btn.preset-added {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
  cursor: default;
  font-weight: 500;
  transform: none;
  box-shadow: none;
}

.erp-modal-box.wide {
  width: min(1050px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.erp-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.acc-voucher-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .erp-form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .acc-voucher-info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .acc-voucher-info-grid {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   DOUBLE-ENTRY VOUCHER WORKSPACE & BALANCED LEDGER TABLE
   -------------------------------------------------------------------------- */
.erp-voucher-lines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.erp-voucher-lines-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.erp-voucher-lines-table td {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}
.erp-voucher-lines-table input,
.erp-voucher-lines-table select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  background: #ffffff;
}
.erp-voucher-lines-table .line-rm-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.erp-voucher-lines-table .line-rm-btn:hover {
  background: #dc2626;
  color: #ffffff;
}
.erp-voucher-balance-summary {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.erp-voucher-balance-summary .balanced {
  color: #16a34a;
}
.erp-voucher-balance-summary .unbalanced {
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   HRMS EMPLOYEE PROFILE & FORM STYLING (Matching hrms/ Module 1)
   -------------------------------------------------------------------------- */
.erp-form-section-header {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  padding: 6px 12px;
  border-radius: 4px;
  margin: 12px 0 10px 0;
}

.erp-profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.erp-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #082e43;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.erp-profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.erp-profile-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
}

.erp-profile-box h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.erp-profile-field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.erp-profile-field-row:last-child {
  border-bottom: none;
}

.erp-profile-label {
  color: #64748b;
  font-weight: 500;
}

.erp-profile-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

/* Document & Certificate Attachment Cards */
.erp-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.erp-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.erp-doc-card:hover {
  border-color: #0284c7;
}

.erp-doc-icon {
  width: 36px;
  height: 36px;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.erp-doc-info {
  flex: 1;
  min-width: 0;
}

.erp-doc-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-doc-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Official Letterhead Paper Container */
.erp-letter-paper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.8;
  color: #0f172a;
}

.erp-letter-header {
  border-bottom: 2px solid #082e43;
  padding-bottom: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.erp-letter-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #082e43;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

.erp-letter-header .sub {
  font-size: 12px;
  color: #64748b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-top: 4px;
}

.erp-letter-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 20px;
  color: #334155;
}

.erp-letter-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  margin: 16px 0 20px 0;
  letter-spacing: 0.5px;
}

.erp-letter-body {
  font-size: 13.5px;
  text-align: justify;
  margin-bottom: 30px;
  white-space: pre-line;
}

.erp-letter-signatures {
  display: flex;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

/* --------------------------------------------------------------------------
   ACCOUNTING SUBTABS, PILLS & DATE PRESETS (Matching Screenshot 1 & 2)
   -------------------------------------------------------------------------- */
.acc-subtabs-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.acc-subtab-pill {
  padding: 6px 16px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.acc-subtab-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.acc-subtab-pill.active {
  background: #082e43;
  color: #ffffff;
  border-color: #082e43;
  box-shadow: 0 1px 3px rgba(8, 46, 67, 0.2);
}

.acc-compliance-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.acc-compliance-card h4 {
  margin: 0 0 4px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.acc-compliance-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.date-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.date-presets-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.date-preset-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.date-preset-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 3-Part Bank Challan Component */
.challan-print-wrap {
  background: #ffffff;
  padding: 12px;
}

.challan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #ffffff;
}

.challan-part {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 11.5px;
  line-height: 1.35;
  color: #1e293b;
  position: relative;
}

.challan-part:not(:last-child) {
  border-right: 1.5px dashed #94a3b8;
}

.challan-header {
  text-align: center;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.challan-header .inst-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.challan-header .copy-type {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.challan-bank-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 10.5px;
  margin-bottom: 8px;
  text-align: center;
}

.challan-meta-table {
  width: 100%;
  margin-bottom: 8px;
  font-size: 11px;
}

.challan-meta-table td {
  padding: 2px 4px;
  border: none;
}

.challan-meta-table td.lbl {
  font-weight: 600;
  color: #475569;
  width: 38%;
}

.challan-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 11px;
}

.challan-breakdown-table th, 
.challan-breakdown-table td {
  border: 1px solid #cbd5e1;
  padding: 3px 6px;
}

.challan-breakdown-table th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: left;
}

.challan-breakdown-table tr.total-row td {
  font-weight: 800;
  background: #f8fafc;
  border-top: 1.5px solid #0f172a;
}

.challan-words {
  font-size: 10px;
  font-style: italic;
  color: #475569;
  margin-bottom: 8px;
  padding: 4px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 3px;
}

.challan-footer-notes {
  font-size: 9.5px;
  color: #64748b;
  margin-bottom: 14px;
}

.challan-sign-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 4px;
}

.challan-sign-box {
  width: 46%;
  border-top: 1px solid #475569;
  text-align: center;
  font-size: 9.5px;
  color: #475569;
  padding-top: 2px;
}

.challan-stamp-box {
  height: 48px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #94a3b8;
}

@media print {
  .challan-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    page-break-inside: avoid;
  }
  .challan-part {
    border: 1px solid #000000 !important;
    page-break-inside: avoid;
  }
}

/* ============================================================================
   EMPLOYEE PHOTO & CANDIDATE POOL STYLES
   ============================================================================ */
.erp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.erp-photo-upload-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  margin-bottom: 14px;
}

.erp-photo-preview-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.erp-rec-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--erp-border-light);
  border-radius: var(--erp-radius-md);
  margin-bottom: 14px;
}

.erp-rec-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.erp-rec-kpi-btn {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.erp-rec-kpi-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--erp-shadow-md);
}

.erp-org-roster-table th,
.erp-org-roster-table td {
  padding: 8px 12px;
}

/* Historical Accounts Mapper & Bulk Import UI */
.erp-import-step-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--erp-radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.erp-import-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.erp-import-step-item.active {
  color: #0369a1;
}

.erp-import-step-item.completed {
  color: #15803d;
}

.erp-import-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.erp-import-step-item.active .erp-import-step-num {
  background: #0284c7;
  color: #ffffff;
}

.erp-import-step-item.completed .erp-import-step-num {
  background: #16a34a;
  color: #ffffff;
}

.erp-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--erp-radius-md);
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.erp-balance-banner.balanced {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.erp-balance-banner.unbalanced {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.erp-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.erp-mapping-table th {
  background: #f8fafc;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: #475569;
}

.erp-mapping-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.erp-org-dept-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  border: 1px solid #bae6fd;
}




/* ==========================================================================
   OFFICIAL INTERACTIVE GOVERNANCE TREE (10-PILLAR / 8-PILLAR ARCHITECTURE)
   ========================================================================== */
.tree-canvas {
    min-width: 1380px;
    padding: 10px 0;
}
.tree-node-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.15s ease;
    user-select: none;
    cursor: pointer;
}
.tree-node-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.node-bod { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; font-size: 14.5px; padding: 12px 32px; }
.node-tier1 { background: #e0f2fe; border-color: #0284c7; color: #0369a1; min-width: 105px; font-size: 11px; }
.node-principal { background: #bae6fd; border-color: #0284c7; color: #0369a1; font-size: 12.5px; font-weight: 800; min-width: 125px; }
.node-admin { background: #fce7f3; border-color: #db2777; color: #9d174d; font-size: 11.5px; font-weight: 800; }
.node-academics { background: #e0f2fe; border-color: #0284c7; color: #0369a1; font-size: 11.5px; font-weight: 800; }
.node-clinical { background: #fef9c3; border-color: #ca8a04; color: #854d0e; font-size: 11.5px; font-weight: 800; }
.node-oric { background: #f1f5f9; border-color: #64748b; color: #334155; font-size: 11.5px; font-weight: 800; }
.node-student { background: #dcfce7; border-color: #16a34a; color: #14532d; font-size: 11.5px; font-weight: 800; }

.node-sub-mkt { background: #fef3c7; border-color: #d97706; color: #92400e; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-admin { background: #fdf2f8; border-color: #f472b6; color: #9d174d; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-acad { background: #f0f9ff; border-color: #38bdf8; color: #0369a1; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-clin { background: #fefce8; border-color: #eab308; color: #854d0e; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-it { background: #ffedd5; border-color: #f97316; color: #9a3412; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-fin { background: #dcfce7; border-color: #22c55e; color: #166534; font-size: 10.5px; width: 100%; box-sizing: border-box; }
.node-sub-hosp { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; font-size: 10.5px; width: 100%; box-sizing: border-box; }

.tree-line-v { width: 2px; height: 18px; background: #64748b; margin: 0 auto; }
.tree-line-h { height: 2px; background: #64748b; margin: 0 auto; width: 93%; }
.tier1-grid-10 {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}
.tier1-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}
.core-nursing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    margin-top: 4px;
}
.tier1-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.principal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 2px dashed #94a3b8;
}
.column-sublist {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: 6px;
}
