/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. Imports & Typography Reset
   2. Base Layout & Headers
   3. Sidebar Navigation (Deep Purple Theme)
   4. Buttons & Controls
   5. Form Inputs & Selects (Compact UI)
   6. DataTables & Tables
   7. Cards & Containers
   8. Dropdowns & Navigation Links
   9. Standalone Popup Window Overrides
   10. Custom Widgets (Calendar, Timeline, Todo)
   11. Responsive Layouts & Mobile Off-Canvas (Media Queries)
   12. Chosen Select Complete Styling (.select-chosen)
   13. Search Applicants & Compact UI Component Styles
   ========================================================================== */


/* ==========================================================================
   0. BRAND TOKENS (EIU Purple / Green)
   ========================================================================== */
:root {
  --eiu-purple: #43267E;
  --eiu-purple-deep: #2A1857;
  --eiu-purple-black: #170C30;
  --eiu-purple-soft: #EEE9F8;
  --eiu-purple-soft-border: #D9CDF0;
  --eiu-green: #6E9A33;
  --eiu-green-light: #9DCB49;
  --eiu-orange: #E64A23;
  --eiu-ink: #2C2438;
  --eiu-border: #E1DCEA;
  --eiu-table-border: #DCD2ED;
  --eiu-green-pastel: #EDF3E3;
  --eiu-surface-soft: #F8F6FB;
}

/* ==========================================================================
   1. IMPORTS & TYPOGRAPHY RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

body,
h1, h2, h3, h4, h5, h6,
.page-header,
.form-control,
button,
.btn,
.btn-pill,
.accordion-header-btn,
.btn-advanced-toggle,
.table,
.dropdown a,
.topnav a {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

code, kbd, pre, samp {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  background-color: #ffffff;
  font-size: 0.8rem !important; /* ~14px base size */
  color: var(--eiu-ink);
}

html, body {
  height: 100%;
  margin: 0;
}

/* Headings */
h1, h2 {
  font-size: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--eiu-border);
}

h1 { font-weight: 600; }
h2 { font-weight: 500; }
h3 { font-size: 1.8rem; font-weight: 500; }
h4 { font-size: 1.4rem; font-weight: 500; }

h5 {
  font-size: 1rem;
  letter-spacing: .1rem;
  font-weight: 600;
  text-transform: uppercase;
}

h6 {
  font-size: 0.75rem !important; /* was 0.8rem */
  letter-spacing: .1rem;
  font-weight: 500;
  text-transform: uppercase;
}

p {
  color: #7c7c7c;
  font-size: 1rem;
}

.text-white p,
.card-inverse p { color: #ffffff; }
.card-inverse p { font-size: .9rem; }
.text-muted { color: #a0a0a0 !important; }

code { background-color: var(--eiu-surface-soft); }

/* Links — not button-links: `a:visited` (0,1,1) used to beat `.btn-success` etc. (0,1,0), so a button
   whose page you had already opened turned its white icon purple */
a, a:not(.btn):visited {
  color: var(--eiu-purple);
}

a:hover, a:focus, a:active {
  color: var(--eiu-purple-deep);
  text-decoration: none;
}


/* ==========================================================================
   2. BASE LAYOUT & HEADERS
   ========================================================================== */
.page-header {
  margin-top: 0rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid var(--eiu-border);
  height: auto;
}

.page-header h1 {
  display: inline;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Header Dropdown Arrows Fix */
.page-header .dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-header .dropdown-toggle::after {
  margin-left: 0.35rem !important;
  vertical-align: middle !important;
  border-top-width: 0.3em !important;
  border-right-width: 0.25em !important;
  border-left-width: 0.25em !important;
}

/* Breadcrumbs */
.breadcrumb {
   margin-bottom: 1rem !important;
  font-size: 0.825rem;
    background-color: var(--eiu-purple-soft) !important;
  border: 1px solid var(--eiu-purple-soft-border) !important;
  border-radius: 6px !important;
  padding: 0.45rem 0.8rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.breadcrumb-item a {
  color: var(--eiu-purple) !important;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 500;
}

/* Layout Utilities */
.no-border { border: none; }
.no-padding { padding: 0; }
.no-left-margin { margin-left: 0; }
.clear { clear: both; }
.circle { border-radius: 499rem; }

.justify-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--eiu-border);
  margin: 2rem auto;
}


/* ==========================================================================
   3. TOP NAVBAR (DEEP PURPLE THEME)
   ========================================================================== */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: linear-gradient(90deg, var(--eiu-purple-deep) 0%, var(--eiu-purple-black) 100%) !important;
  border-bottom: 3px solid var(--eiu-orange);
  padding: 0 1rem !important;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Brand / Logo */
.topnav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 !important;
  margin-right: 1.25rem;
}

.topnav .navbar-brand .logo-img {
  height: auto;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  padding-bottom:15px;
}

.topnav .navbar-brand .brand-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav .navbar-toggler {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Navigation List */
.topnav .topnav-nav {
  align-items: stretch;
  flex-wrap: wrap;
}

.topnav .topnav-nav .nav-item {
  display: flex;
  align-items: stretch;
}

.topnav .nav-link,
.topnav .topnav-nav > .nav-item > a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  padding: 0.55rem 0.85rem !important;
  margin: 0.1rem 0.1rem;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.topnav .nav-link em {
  font-size: 0.9rem !important;
  margin-right: 0.5rem;
  opacity: 0.85;
}

/* Hover / Active States */
.topnav .nav-link:hover,
.topnav .nav-item.dropdown.show > .nav-link {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.topnav .nav-link.active,
.topnav .nav-item.active > .nav-link {
  background-color: var(--eiu-green) !important; /* Bold green active pill */
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(110, 154, 51, 0.35);
}

/* Dropdown caret cleanup for icon-only utility toggles */
.topnav .dropdown-toggle-noarrow::after { display: none !important; }

/* Split label + caret: label navigates to the section index, caret opens the submenu */
.topnav .topnav-dropdown-group .nav-link:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-right: 0;
  padding-right: 0.6rem !important;
}

.topnav .topnav-dropdown-group .nav-link.topnav-caret {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin-left: 1px;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.topnav .topnav-dropdown-group .nav-link.topnav-caret em {
  margin-right: 0;
  font-size: 0.65rem !important;
  opacity: 0.75;
}

/* Submenu Dropdowns */
.topnav .dropdown-menu {
  margin-top: 0.35rem;
  border-radius: 8px;
}

.topnav .dropdown-item {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
}

/* Utility Icons (Gmail, Notifications, Profile) */
.topnav .topnav-utility {
  align-items: stretch;
}

.topnav .topnav-icon-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.7rem !important;
  border-radius: 8px !important;
  position: relative;
}

.topnav .topnav-icon-link:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.topnav .topnav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.6rem;
  padding: 0.15em 0.4em;
}


/* ==========================================================================
   4. BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  border-radius: 499rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
  font-size: .75rem;
  padding: 0.25rem 0.60rem !important;
  cursor: pointer;
}

/* Dropdown buttons (row cogs, tools/export menus): a rounded square instead of a pill, each keeping its own
   colour - the same shape as .btn-soft. A split button (a .btn followed by its toggle in one .btn-group) stays
   joined: the toggle's left corners stay square. */
.btn.dropdown-toggle,
.btn[data-toggle="dropdown"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
  padding: 0.3rem 0.55rem !important;
  border-radius: 8px !important;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.btn.dropdown-toggle::after,
.btn[data-toggle="dropdown"]::after { margin-left: 0.35rem; }
.btn.btn-xs.dropdown-toggle,
.btn.btn-sm.dropdown-toggle,
.btn.btn-xs[data-toggle="dropdown"],
.btn.btn-sm[data-toggle="dropdown"] {
  min-width: 28px;
  min-height: 26px;
  padding: 0.2rem 0.45rem !important;
}
.btn-group > .btn + .btn.dropdown-toggle,
.btn-group > .btn + .btn[data-toggle="dropdown"] {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.btn-group > .btn:has(+ .btn.dropdown-toggle),
.btn-group > .btn:has(+ .btn[data-toggle="dropdown"]) {
  border-radius: 8px 0 0 8px !important;
}

.btn:focus {
  outline: none;
  box-shadow: none;
}

.btn-sm { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
.btn-xs { font-size: 0.7rem; padding: 0.35rem 0.65rem; }

.btn-md { font-size: .75rem; padding: .6rem 1.15rem; }
.btn-lg { font-size: .8rem; padding: .9rem 1.5rem; }

.btn-circle {
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1rem;
  padding: 0;
  border-radius: 50%;
}

.btn-margins button.btn { margin: 0 4px 6px 0 !important; }

/* Primary Buttons */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle,
.card-primary,
.page-item.active .page-link,
.list-group-item.active {
  background-color: var(--eiu-purple-deep) !important;
  border-color: var(--eiu-purple-black) !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #ffffff !important;
  background-color: var(--eiu-purple);
  border-color: var(--eiu-purple);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--eiu-purple-deep) !important;
  border-color: var(--eiu-purple-deep) !important;
  box-shadow: 0 4px 14px rgba(42, 24, 87, 0.35) !important;
}

/* Secondary & Outline Buttons */
.btn-outline-primary,
.btn-outline-primary:visited {
  color: var(--eiu-purple) !important;
  border-color: var(--eiu-purple) !important;
  background: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--eiu-purple) !important;
  border-color: var(--eiu-purple) !important;
  color: #ffffff !important;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled,
.btn-link,
.page-link,
.text-primary {
  color: var(--eiu-purple) !important;
}

.btn-link:focus,
.btn-link:hover,
.page-link:focus,
.page-link:hover,
a.text-primary:focus,
a.text-primary:hover {
  color: var(--eiu-purple-deep) !important;
}

.btn-secondary, .btn-default {
  background-color: #ffffff;
  color: var(--eiu-ink);
  border-color: var(--eiu-border);
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active,
.btn-default:hover, .btn-default:focus, .btn-default:active {
  color: var(--eiu-ink) !important;
  background-color: var(--eiu-surface-soft) !important;
  border-color: var(--eiu-border) !important;
}

/* Special Button Variants */
.btn-subtle {
  border: none;
  background: var(--eiu-purple-deep);
  color: #ffffff;
  -webkit-appearance: none;
  cursor: pointer;
}

.btn-subtle:hover, .btn-subtle:focus, .btn-subtle:active {
  color: #ffffff;
  background-color: var(--eiu-purple);
  outline: none;
}

.btn-stripped {
  border: none;
  background: none !important;
  color: var(--eiu-ink) !important;
  -webkit-appearance: none;
  cursor: pointer;
}

.btn-stripped:hover, .btn-stripped:focus, .btn-stripped:active {
  color: var(--eiu-purple);
  background-color: transparent;
  outline: none;
}

/* .btn-violet / .btn-inverse: used across the payments pages (Change Payment
   Plan, voucher reference popovers) but were never defined anywhere, so they
   rendered as unstyled default buttons. Deep purple keeps it visually
   distinct from .btn-primary's lighter purple. */
.btn-violet,
.btn-violet:disabled {
  color: #ffffff !important;
  background-color: var(--eiu-purple-deep);
  border-color: var(--eiu-purple-black);
}

.btn-violet:hover,
.btn-violet:focus,
.btn-violet:active {
  color: #ffffff !important;
  background-color: var(--eiu-purple-black) !important;
  border-color: var(--eiu-purple-black) !important;
}

.btn-inverse {
  color: #ffffff !important;
  background-color: var(--eiu-ink);
  border-color: var(--eiu-ink);
}

.btn-inverse:hover,
.btn-inverse:focus,
.btn-inverse:active {
  color: #ffffff !important;
  background-color: var(--eiu-purple-black) !important;
  border-color: var(--eiu-purple-black) !important;
}


/* ==========================================================================
   5. FORM INPUTS & SELECTS (COMPACT UI)
   ========================================================================== */
label,
.form-control-label,
.col-form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4b4457;
  margin-bottom: 0.3rem;
}

.form-group { margin-bottom: 1rem; }

.form-control {
  border: 1px solid var(--eiu-border);
  background-color: #ffffff;
  box-shadow: none;
  border-radius: 6px;
  color: var(--eiu-ink);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::placeholder { color: #a7a0b5; opacity: 1; }

input.form-control,
.custom-select,
.custom-select.form-control,
.form-control {
  height: 36px !important; /* unified with .chzn-single */
  padding: 0 0.75rem !important;
  font-size: 0.85rem !important;
  font-family: 'Manrope', sans-serif !important;
  }

textarea.form-control {
  height: auto !important;
  min-height: 90px;
  padding: 0.6rem 0.75rem !important;
  line-height: 1.4;
}

.bootstrap-table input.form-control { height: 36px; }
.input-group-btn .btn { height: 36px !important; }

.input-group-text {
  font-size: 0.8rem;
  color: var(--eiu-purple-deep);
  background-color: var(--eiu-purple-soft);
  border: 1px solid var(--eiu-purple-soft-border);
  font-weight: 600;
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--eiu-surface-soft);
  color: #7c7c7c;
}

.form-control:hover:not(:disabled):not(:focus) {
  border-color: #c9bfe0;
}

.form-control:focus {
  outline: 0;
  background-color: #ffffff;
  color: var(--eiu-ink);
  border-color: var(--eiu-purple) !important;
  box-shadow: 0 0 0 0.2rem rgba(67,38,126,0.15) !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc3545 !important;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.invalid-feedback { font-size: 0.75rem; }

.help-block {
  font-size: .9rem;
  color: #7c7c7c;
}

/* Fieldsets used by legacy .formular-style forms */
fieldset {
  border: 1px solid var(--eiu-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

legend {
  width: auto;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eiu-purple-deep);
}

/* Custom Checkboxes and Radios */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-color: var(--eiu-purple) !important;
  border-radius: 4px;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-color: var(--eiu-purple) !important;
  border-radius: 499px;
}

.custom-control-input:checked ~ .custom-control-indicator,
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator {
  background-color: var(--eiu-purple) !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(67,38,126,0.15) !important;
}


/* ==========================================================================
   6. DATATABLES & TABLES
   ========================================================================== */
table, td, tr, th, thead {
  border-color: var(--eiu-table-border) !important;
}

/* Rounded, contained table surface */
 
.table-responsive .table { margin-bottom: 0; }
.table-responsive .table th:first-child,
.table-responsive .table td:first-child { padding-left: 1rem !important; }
.table-responsive .table th:last-child,
.table-responsive .table td:last-child { padding-right: 1rem !important; }

.table th,
.table td {
  padding: 0.55rem 0.7rem !important;
  font-size: 0.8rem !important;
  vertical-align: middle !important;
  border-top-width: 1px !important;
}

.table-bordered th,
.table-bordered td {
  border-width: 1px !important;
}

/* Header row — a light, quiet band: muted purple uppercase labels on a near-white lavender, one
   hairline under it (was a solid deep-purple bar with white text, then a heavier lavender; the
   user found both too heavy). */
.table thead th {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6A5A8C !important;
  background-color: #F7F5FC !important;
  border-color: #E6E0F2 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #DDD5EE !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  white-space: nowrap;
}

.table thead th a,
.table thead th .fa { color: #6A5A8C !important; }

.table th {
  font-weight: 600 !important;
}

/* Data grids (any .table with a header row): rows separated by a hairline, no vertical rules —
   the modern list look. Key/value tables (no <thead>, e.g. the application forms) keep their
   full cell grid. */
.table:has(> thead) > thead > tr > th,
.table:has(> thead) > tbody > tr > th,
.table:has(> thead) > tbody > tr > td,
.table:has(> thead) > tfoot > tr > td {
  border-left-width: 0 !important;
  border-right-width: 0 !important;
}
.table:has(> thead) > tbody > tr > th,
.table:has(> thead) > tbody > tr > td {
  border-top-width: 0 !important;
  border-bottom: 1px solid #EFEBF5 !important;
}
.table:has(> thead) > tbody > tr:last-child > th,
.table:has(> thead) > tbody > tr:last-child > td { border-bottom-width: 0 !important; }
.table.table-bordered:has(> thead) { border: 1px solid var(--eiu-border) !important; }

/* Row striping & hover — a whisper of zebra, a lavender hover with a purple edge on the left */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #FCFBFE !important;
}

.table-hover tbody tr {
  transition: background-color 0.12s ease-in-out;
}

.table-hover tbody tr:hover,
.table-hover > tbody > tr:hover > td {
  background-color: #F4F0FB !important;
}
.table-hover > tbody > tr:hover > td:first-child {
  box-shadow: inset 3px 0 0 var(--eiu-purple);
}

/* the row "actions" cog in a grid: the same white icon chip as .btn-soft instead of a solid dark pill */
.table td .btn.btn-primary.dropdown-toggle {
  background-color: #ffffff !important;
  border: 1px solid var(--eiu-border) !important;
  border-radius: 8px !important;
  color: var(--eiu-purple) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
}
.table td .btn.btn-primary.dropdown-toggle:hover,
.table td .btn.btn-primary.dropdown-toggle:focus,
.table td .show > .btn.btn-primary.dropdown-toggle {
  background-color: #F7F5FC !important;
  border-color: var(--eiu-purple-soft-border) !important;
  color: var(--eiu-purple) !important;
}

/* --------------------------------------------------------------------------
   FLEX GRID COLUMNS + WIDE TABLES
   Bootstrap's .col-md-* is a flex item with flex-shrink:0, but its default
   min-width is "auto" - the browser still lets a wide un-wrapped descendant
   (a many-column table, even one sitting inside .table-responsive) inflate
   the column's intrinsic minimum size. When that pushes the column's real
   width past its flex-basis, the whole .row wraps onto a new line instead of
   letting .table-responsive scroll internally - a sidebar column (col-md-2)
   with a wide-table column (col-md-10) next to it ends up stacked instead of
   side by side. min-width:0 tells the column to trust its own basis/max-width
   and let .table-responsive own the overflow, which is what it's there for.
   -------------------------------------------------------------------------- */
.row > [class*="col-"] {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   ORPHANED GRID COLUMNS — left-margin alignment
   Bootstrap's grid is a pair: .row carries -15px side margins and .col-* carries
   +15px side padding, and they cancel. Plenty of admin pages use a column
   WITHOUT a .row around it (admin/students/payments/* uses a bare .col-md-10;
   roomsReservation/index.php closes its .row before a second .col-md-12). The
   padding then has nothing to cancel it, so that card sits 15px right of the
   page footer, which is a direct child of main.main-content at offset 0.

   Measured across admin/: 14 non-popup pages, ~39 cards.

   Zero the padding by default and restore it only for real grid children.
   .row > … is (0,2,0) and beats the (0,1,1) base, so genuine grids are
   unaffected. Scoped to div so table cells using .col-narrow / .col-wrap keep
   their padding.
   -------------------------------------------------------------------------- */
div[class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}
.row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}
.form-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

/* A .card dropped straight into a .row (no column between) inherits the row's
   -15px and hangs left of everything else; give it the column's gutter back. */
.row > div.card {
  margin-left: 0.9375rem;
  margin-right: 0.9375rem;
}

/* --------------------------------------------------------------------------
   COMPACT DATA TABLES  (.table-compact)
   Wide admin grids - blockages, rosters, transcripts, curriculum - were forced
   into a horizontal scrollbar by two rules above: `.table thead th` is
   `white-space: nowrap`, so a header like "BLOCKED ON REGISTRATION" alone
   claims ~200px, and every cell carries 0.55rem/0.8rem padding+font.
   `.table-compact` lets headers wrap onto two or three short lines and tightens
   the cells, so the same column count fits inside the card unscrolled.
   Add it next to `.table` on any grid that would otherwise overflow.
   -------------------------------------------------------------------------- */
.table-compact th,
.table-compact td {
  padding: 0.3rem 0.4rem !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
}

.table-compact thead th {
  font-size: 0.62rem !important;
  letter-spacing: 0.02em;
  white-space: normal !important;   /* the whole point: let long headers wrap */
  vertical-align: bottom !important;
  padding: 0.35rem 0.4rem !important;
}

/* the generic .table-responsive gutter rules are too wide at this density */
.table-responsive .table-compact th:first-child,
.table-responsive .table-compact td:first-child { padding-left: 0.5rem !important; }
.table-responsive .table-compact th:last-child,
.table-responsive .table-compact td:last-child  { padding-right: 0.5rem !important; }

/* opt-in column helpers */
.table-compact .col-narrow  { width: 1%; white-space: nowrap; }
.table-compact .col-wrap    { white-space: normal; word-break: break-word; min-width: 90px; }
.table-compact .col-date    { width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }

.table-compact td .btn-xs,
.table-compact td .btn-sm { padding: 0.15rem 0.4rem; font-size: 0.62rem; }
.table-compact .badge { font-size: 0.6rem; font-weight: 600; }

/* stack of yes/no flags rendered as small pills inside one cell */
.flag-stack { display: flex; flex-wrap: wrap; gap: 2px; }
.flag-stack .badge { font-weight: 600; }

/* secondary detail stacked under a cell's main value (section/credits under a
   course, room under a schedule) - folds a narrow column into its neighbour */
.table-compact .cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  color: #6c757d;
}

/* --------------------------------------------------------------------------
   LEGACY ROW CLASSES  (.admintable_*)
   The old theme's stylesheet is gone, so total / emphasis rows across the
   curriculum, roster and transcript grids have been rendering as plain rows.
   Kept deliberately low-specificity: any page that still defines its own
   tr.admintable_* rule in a <style> block wins over these.
   -------------------------------------------------------------------------- */
.admintable_light  { background-color: #f8f9fa !important; }
.admintable_gray   { background-color: #f1f3f5 !important; }
.admintable_medium { background-color: #eef0f6 !important; font-weight: 600; }
.admintable_dark   { background-color: #e6e9f2 !important; font-weight: 600; color: #2A1857; }
.admintable_name,
.admintable_stdname { background-color: #f1f3f5 !important; font-weight: 600; }
.admintable_last   { background-color: transparent !important; }

/* --------------------------------------------------------------------------
   TRANSCRIPT GRIDS  (.transcript-grid / .transcript-card)
   Emitted row-by-row by common/functions/displayTranscriptStatus.func.php.
   -------------------------------------------------------------------------- */
.transcript-grid { font-size: 0.74rem; }

.transcript-grid th,
.transcript-grid td { padding: 0.28rem 0.45rem !important; vertical-align: middle !important; }

.transcript-grid tfoot .tr-headfoot th {
  background-color: #f1f3f5 !important;
  color: #6c757d !important;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.transcript-grid tfoot .tr-total th,
.transcript-grid tfoot .tr-total td {
  background-color: #f8f9fa !important;
  font-weight: 600;
  color: #2A1857;
}

.transcript-grid tbody th,
.transcript-grid > tbody > tr > th {
  background-color: #f1f3f5;
  color: #6c757d;
  font-weight: 600;
}

.transcript-card .card-header small { display: block; font-size: 0.68rem; }

/* the per-semester cards are emitted straight into this row */
.row.equal-height { display: flex; flex-wrap: wrap; }
.row.equal-height > [class*="col-"] { display: flex; }
.row.equal-height > [class*="col-"] > .card { width: 100%; }

/* #curriculum-flex holds one card per course type (Core, GER, Electives, ...).
   One block per row, full width: side by side, the 8-column tables (plus the
   per-semester roster history in Register) were squeezed and cut off. */
#curriculum-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
/* Grid items default to min-width:auto, so a curriculum table wider than its
   track refused to shrink and overflowed into the next column (course rows
   printed on top of the neighbouring block). min-width:0 lets the item shrink. */
#curriculum-flex > * { min-width: 0; }
#curriculum-flex .table-container { margin-bottom: 0 !important; }
/* No sideways scrolling inside a block: cells wrap instead, and the wide
   letter-spaced buttons (SET AS EXTRA / SET AS NORMAL / SET ELECTIVE) wrap too. */
#curriculum-flex .table-responsive { overflow-x: visible; }
#curriculum-flex .curriculum-grid { width: 100%; table-layout: auto; }
#curriculum-flex .curriculum-grid td,
#curriculum-flex .curriculum-grid th { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
#curriculum-flex .curriculum-grid .btn {
  white-space: normal;
  letter-spacing: normal;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
}
/* Curriculum "Set as Extra" / "Set as Normal" toggles: soft amber vs soft green
   so the two actions are told apart at a glance. */
.btn.btn-set-extra {
  color: #9A5B00;
  background-color: #FFF6E5;
  border-color: #E8C27A;
}
.btn.btn-set-extra:hover,
.btn.btn-set-extra:focus {
  color: #7A4700;
  background-color: #FCEACB;
  border-color: #D9A548;
}
.btn.btn-set-normal {
  color: #1E7A4F;
  background-color: #EAF7F0;
  border-color: #9BD3B5;
}
.btn.btn-set-normal:hover,
.btn.btn-set-normal:focus {
  color: #155E3C;
  background-color: #D6F0E2;
  border-color: #6FBF95;
}

/* --------------------------------------------------------------------------
   CURRICULUM / PROGRAM-OF-STUDY GRIDS  (.curriculum-grid)
   Rendered row-by-row by common/functions/displayCurriculumStatus.func.php, so
   the group headers live in <tbody> and never pick up the <thead> styling.
   These rules give them the same reading order as the LOMT report tables:
   a solid type band, a light column-caption row, then dense data rows.
   -------------------------------------------------------------------------- */
.curriculum-grid { font-size: 0.76rem; }

.curriculum-grid th,
.curriculum-grid td {
  padding: 0.3rem 0.5rem !important;
  vertical-align: middle !important;
}

.curriculum-grid .cur-type th {
  background-color: var(--eiu-purple-deep, #2A1857) !important;
  color: #ffffff !important;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-color: var(--eiu-purple-deep, #2A1857) !important;
}

.curriculum-grid .cur-head th {
  background-color: #f1f3f5 !important;
  color: #6c757d !important;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: normal;
}

.curriculum-grid .cur-total td {
  background-color: #f8f9fa !important;
  font-weight: 600;
}

/* the per-course roster breakdown nested in the last column */
.curriculum-grid .cur-rosters {
  width: 100%;
  margin: 0;
  font-size: 0.68rem;
}
.curriculum-grid .cur-rosters td {
  padding: 0.1rem 0.3rem !important;
  border: 0 !important;
  background: transparent !important;
}

.dataTables_info, .dataTables_paginate {
  margin-top: 1rem !important;
}

.dataTables_info {
  font-size: 0.75rem;
  color: #7c7c7c;
}

.page-item .page-link {
  outline: none !important;
  color: var(--eiu-purple) !important;
  border-color: var(--eiu-table-border) !important;
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 0.78rem;
}

.page-item.active .page-link {
  color: #ffffff !important;
  background-color: var(--eiu-purple) !important;
  border-color: var(--eiu-purple) !important;
}

.page-item.disabled .page-link { color: #c3bcd4 !important; }

.dataTables_wrapper { padding: 0; }

/* DataTables Mobile/Single Line Controls */
.dataTables_wrapper .row:first-child {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0.75rem !important;
}

.dataTables_wrapper .row:first-child > div {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dataTables_wrapper .dataTables_length {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.dataTables_wrapper .dataTables_length select {
  width: 4.5rem !important;
  margin: 0 0.4rem !important;
}

.dataTables_wrapper .dataTables_filter {
  text-align: right !important;
  margin-bottom: 0 !important;
}

.dataTables_wrapper .dataTables_filter label {
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_filter input {
  width: 130px !important;
  margin-left: 0.5rem !important;
}

/* Show-entries + Search: small rounded fields with a purple focus ring */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: 0.75rem !important;
  font-weight: 600;
  color: #6b6480;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  height: 32px !important;
  padding: 0 0.6rem !important;
  border: 1px solid var(--eiu-border) !important;
  border-radius: 8px !important;
  background-color: #ffffff;
  font-size: 0.8rem !important;
  box-shadow: none !important;
}
.dataTables_wrapper .dataTables_length select { padding-right: 1.6rem !important; } /* room for the arrow */
.dataTables_wrapper .dataTables_filter input { width: 180px !important; }
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--eiu-purple) !important;
  box-shadow: 0 0 0 0.2rem rgba(67, 38, 126, 0.12) !important;
  outline: 0;
}


/* ==========================================================================
   7. CARDS & CONTAINERS
   ========================================================================== */
.card {
  background-color: #ffffff !important;
  border: 1px solid var(--eiu-border) !important;
  /* border-radius: 8px !important; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 0.6rem !important; /* was 1rem */
  transition: box-shadow 0.2s ease-in-out;
}

.card-block,
.card-body {
  padding: 0.5rem !important; /* was 0.75rem */
}

.card h1 {
  border: none;
  margin: 0;
  padding-bottom: .5rem;
}

.card-title {
  padding-bottom: .15rem;
  margin-bottom: 0.5rem !important;
}

.card-subtitle {
  margin-top: -.75rem;
  padding-bottom: .5rem;
}

.card-title-btn-container {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  list-style: none;
}

.card-footer {
  background: var(--eiu-surface-soft);
  border-top: 1px solid var(--eiu-border);
  margin: -1rem !important;
  margin-top: 1rem !important;
}

/* ...but only where a .card-footer is (wrongly) nested inside a padded body and
   has to pull back out of it. A footer that is a real child of .card must sit
   flush inside the card: the -1rem sides made the Submit bar bleed 16px past the
   card's own border on both sides, and the +1rem top left an orphan gap above
   its border-top. (0,2,0) beats the bare .card-footer rule above. */
.card > .card-footer {
  margin: 0 !important;
}

.card-header { padding: 0.4rem 0.75rem !important; }
.bg-default .card-header {
  background: var(--eiu-surface-soft);
  border-bottom: 1px solid var(--eiu-border);
}

.card-header-tabs .nav-link:hover,
.card-header-pills .nav-link:hover {
  background-color: #ffffff;
  border-color: var(--eiu-border);
}

.card-header-tabs .nav-link:hover { border-bottom: 1px solid #ffffff; }

.card-header-tabs .active {
  background: #ffffff !important;
  border-color: var(--eiu-border) !important;
  border-bottom-color: #ffffff !important;
  color: var(--eiu-ink) !important;
}

.card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-warning, .card.bg-danger {
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.jumbotron {
  padding: 2rem 2rem;
  background-color: var(--eiu-surface-soft);
}

.alert { color: #06001a; }
.alert a { color: #ffffff !important; }


/* ==========================================================================
   8. DROPDOWNS & NAVIGATION LINKS
   ========================================================================== */
.dropdown a { color: var(--eiu-ink); }

select[multiple].form-control,
select[multiple].form-control-sm {
  height: auto !important;
}

/* Dropdown menus (every Bootstrap .dropdown-menu in admin: the gear "tools"
   menus, row Actions menus, filter menus). A neutral floating card; each row
   has dark text and a small tinted icon tile. Every group between dividers
   gets its own tone (blue, teal, green, amber, rose, violet, slate), so a long
   menu reads as sections without a wall of purple. It covers both markups in use:
     BS3 style  <li><a><i class="fa"></i> Text</a></li> + <li class="divider">
     BS4 style  <a class="dropdown-item"> / <button class="dropdown-item"> + .dropdown-divider
   The top navigation menus keep nav.css (loaded after this file) and the opt-in
   .ums-tools-panel keeps its own, more specific rules below. */
.dropdown-menu {
  --dd-tone: #2f6fd6;
  min-width: 220px;
  width: auto;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e7e5ec;
  border-radius: 12px;
  box-shadow: 0 16px 36px -12px rgba(22, 20, 36, .22), 0 4px 10px -4px rgba(22, 20, 36, .08);
  font-size: 13px;
  z-index: 9999 !important;
  scrollbar-width: thin;
  scrollbar-color: #d6d3de transparent;
}
.dropdown-menu::-webkit-scrollbar { width: 8px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #d6d3de; border: 2px solid #ffffff; border-radius: 8px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }

.dropdown-menu.show {
  /* position: absolute !important;
  transform: none !important;
  top: 100% !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;
  will-change: auto !important; */
  display: block;
  animation: umsMenuIn .14s ease-out;
}
@keyframes umsMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
}
/* Popper positions with transform; animating translate there would fight it */
.dropdown-menu.show[x-placement] { animation-name: umsMenuFade; }
@keyframes umsMenuFade { from { opacity: 0; } }

.dropdown-menu > li { list-style: none; }

/* one tone per group: each divider moves the rows after it to the next colour
   (the longer selector wins, so the deepest group's tone applies) */
.dropdown-menu > :is(.divider, .dropdown-divider) ~ * { --dd-tone: #138a8a; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #5f8f2a; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #c47f00; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #c0396b; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #6b4fb3; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #56627a; }
.dropdown-menu > :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ :is(.divider, .dropdown-divider) ~ * { --dd-tone: #2f6fd6; }

/* the rows — :visited too: a:not(.btn):visited (0,2,1) at the top of this file
   painted every href="#" row purple */
.dropdown-menu li > a,
.dropdown-menu li > a:visited,
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  clear: both;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2a2633;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
/* the icon: a small tile in the group's tone, so every label starts on the same line */
.dropdown-menu li > a > .fa:first-child,
.dropdown-menu .dropdown-item > .fa:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0 !important;
  border-radius: 7px;
  background: color-mix(in srgb, var(--dd-tone) 11%, transparent);
  color: var(--dd-tone);
  font-size: 13px;
  transition: background-color .12s;
}
.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: color-mix(in srgb, var(--dd-tone) 7%, #ffffff) !important;
  color: #16131c !important;
  text-decoration: none;
  outline: 0;
}
.dropdown-menu li > a:hover > .fa:first-child,
.dropdown-menu li > a:focus > .fa:first-child,
.dropdown-menu .dropdown-item:hover > .fa:first-child,
.dropdown-menu .dropdown-item:focus > .fa:first-child { background: color-mix(in srgb, var(--dd-tone) 20%, transparent); }
.dropdown-menu li > a:focus-visible,
.dropdown-menu .dropdown-item:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dd-tone) 45%, transparent); }

/* destructive rows (delete, rollback, inactivate): red, with a red wash on hover */
.dropdown-menu li > a.text-danger,
.dropdown-menu .dropdown-item.text-danger,
.dropdown-menu li.text-danger > a { --dd-tone: #dc3545; color: #c82333 !important; }
.dropdown-menu li > a.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu li.text-danger > a:hover {
  background-color: #fdeff1 !important;
  color: #a71d2a !important;
}

/* disabled rows */
.dropdown-menu .dropdown-item.disabled,
.dropdown-menu .dropdown-item:disabled,
.dropdown-menu li.disabled > a {
  --dd-tone: #a7a3b0;
  color: #a7a3b0 !important;
  background: transparent !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* group separators + headings */
.dropdown-menu .divider,
.dropdown-menu .dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  padding: 0;
  overflow: hidden;
  background: #eeedf2;
  border: 0;
}
.dropdown-menu .dropdown-header {
  padding: 8px 8px 4px;
  color: #8a8597;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dropdown-menu .dropdown-item-text { padding: 6px 8px; color: #6f6b78; font-size: 12px; }

/* the top bar's own menus (profile, notifications) keep plain inline icons */
.topnav .dropdown-menu .dropdown-item > .fa:first-child {
  display: inline-block;
  flex: none;
  width: auto;
  height: auto;
  margin-right: .25rem !important;
  background: none;
  color: inherit;
  font-size: inherit;
}

/* Per-row Actions menus (gear-icon dropdowns in results tables across
   Admission, Timeline, Diplomas, Exam Dates, etc.): always render in full,
   never with an internal scrollbar — a short table (e.g. one result row)
   opens the toggle near the table's top edge, and the inherited
   max-height/overflow-y:auto made a long action list scroll internally
   instead of the menu just opening above it (see the dropup JS in
   footer.php, which forces the "above" placement for these menus). */
table .dropdown-menu,
.dropdown-menu-actions {
  max-height: none !important;
  overflow-y: visible !important;
}

/* Allow dropdown menus to display completely outside cards and tables */
.card,
.card-body,
.table-responsive {
  overflow: visible !important;
}

/* Tools panel - a long Actions menu shown as headed groups side by side (2 or 3 columns) instead of one
   tall list, like the faculty portal's class Actions menu. Opt-in: <ul class="dropdown-menu ums-tools-panel">
   with <li class="dropdown-header" data-tone="green">Title</li> starting each group. footer.php rebuilds the
   list into .ums-tools-grid > .ums-tools-group the first time the menu opens (dividers and empty groups
   dropped, li.ums-tools-danger items moved to a red strip under the columns) and picks .ums-cols-1/2/3 from
   the number of tools. It never scrolls inside - the page scrolls to it. The items stay the pages' own
   <a> / <button class="dropdown-item"> / <span class="dropdown-item-text">, so their links and onclicks are
   untouched; the first <i class="fa"> of each becomes the icon chip. */
.dropdown-menu.ums-tools-panel {
  max-height: none !important;
  overflow: visible !important;
  width: min(580px, calc(100vw - 16px));
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(23, 12, 48, .28), 0 4px 10px -4px rgba(23, 12, 48, .12);
}
.dropdown-menu.ums-tools-panel.ums-cols-3 { width: min(840px, calc(100vw - 16px)); }
.dropdown-menu.ums-tools-panel.ums-cols-1 { width: auto; min-width: 260px; max-width: calc(100vw - 16px); }
.ums-tools-panel .ums-tools-grid { display: block; columns: 2; column-gap: 12px; column-rule: 1px solid var(--eiu-border); }
.ums-tools-panel.ums-cols-3 .ums-tools-grid { columns: 3; }
.ums-tools-panel.ums-cols-1 .ums-tools-grid { columns: 1; }
.ums-tools-group { break-inside: avoid; padding-bottom: 8px; --ums-tone: var(--eiu-purple); }
.ums-tools-group.tone-purple { --ums-tone: var(--eiu-purple); }
.ums-tools-group.tone-green { --ums-tone: var(--eiu-green); }
.ums-tools-group.tone-blue { --ums-tone: #2f6fd6; }
.ums-tools-group.tone-amber { --ums-tone: #c98a00; }
.ums-tools-group.tone-teal { --ums-tone: #138a8a; }
.ums-tools-group.tone-crimson { --ums-tone: #a8234f; }
.ums-tools-heading {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #6f6579;
}
.ums-tools-heading::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ums-tone); }
.ums-tools-panel .ums-tools-list { list-style: none; margin: 0; padding: 0; }
.ums-tools-panel .ums-tools-list > li > a,
.ums-tools-panel .ums-tools-list > li > button,
.ums-tools-panel .ums-tools-list > li > span {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 5px 10px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-size: 13px; font-weight: 500; line-height: 1.3;
  text-align: left; white-space: normal; text-decoration: none;
  color: var(--eiu-ink);
  cursor: pointer;
}
.ums-tools-panel .ums-tools-list > li > a:hover,
.ums-tools-panel .ums-tools-list > li > a:focus,
.ums-tools-panel .ums-tools-list > li > button:hover,
.ums-tools-panel .ums-tools-list > li > button:focus {
  background: color-mix(in srgb, var(--ums-tone) 9%, transparent) !important;
  color: var(--eiu-purple-black) !important;
}
.ums-tools-panel .ums-tools-list > li > a:focus-visible,
.ums-tools-panel .ums-tools-list > li > button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ums-tone) 55%, transparent);
  outline-offset: -2px;
}
.ums-tools-panel .ums-tools-list > li > * > i.fa:first-child {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px;
  margin: 0 !important;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ums-tone) !important;
  background: color-mix(in srgb, var(--ums-tone) 12%, transparent);
  transition: background-color .15s;
}
.ums-tools-panel .ums-tools-list > li > a:hover > i.fa:first-child,
.ums-tools-panel .ums-tools-list > li > a:focus > i.fa:first-child,
.ums-tools-panel .ums-tools-list > li > button:hover > i.fa:first-child,
.ums-tools-panel .ums-tools-list > li > button:focus > i.fa:first-child {
  background: color-mix(in srgb, var(--ums-tone) 22%, transparent);
}
/* info rows (e.g. the admission menu's "RV: ...") are not clickable */
.ums-tools-panel .ums-tools-list > li > span { cursor: default; font-size: 12px; color: #6f6579; }
/* delete / rollback: a red strip under the columns */
.ums-tools-panel .ums-tools-danger-zone {
  display: block;
  margin-top: 4px; padding-top: 8px;
  border-top: 1px solid var(--eiu-border);
  --ums-tone: #dc3545;
}
.ums-tools-panel .ums-tools-danger-zone .ums-tools-list { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.ums-tools-panel .ums-tools-danger-zone .ums-tools-list > li { flex: 1 1 220px; }
.ums-tools-panel .ums-tools-danger-zone .ums-tools-list > li > a,
.ums-tools-panel .ums-tools-danger-zone .ums-tools-list > li > button { color: #c82333 !important; }
@media (max-width: 991.98px) {
  .dropdown-menu.ums-tools-panel.ums-cols-3 { width: min(580px, calc(100vw - 16px)); }
  .ums-tools-panel.ums-cols-3 .ums-tools-grid { columns: 2; }
}
@media (max-width: 575.98px) {
  .dropdown-menu.ums-tools-panel { width: calc(100vw - 16px); min-width: 0; }
  .ums-tools-panel .ums-tools-grid,
  .ums-tools-panel.ums-cols-3 .ums-tools-grid { columns: 1; }
}

/* Pills & Badges Primary Fill */
.nav-pills .nav-item.show .nav-link,
.nav-pills .nav-link.active,
.dropdown-item.active,
.dropdown-item:active,
.badge-primary,
.progress-bar,
.bg-primary {
  background-color: var(--eiu-purple) !important;
  background-image: none;
}

.nav-pills .nav-link.active,
.badge-primary[href]:focus,
.badge-primary[href]:hover,
a.bg-primary:focus,
a.bg-primary:hover {
  background-color: var(--eiu-purple-deep) !important;
}


/* ==========================================================================
   9. STANDALONE POPUP WINDOW OVERRIDES
   ========================================================================== */
body.popup-window {
  padding: 12px;
  background-color: #f4f5f7;
}

body.popup-window #page-content,
body.popup-window #page-content + footer {
  margin: 0px !important;
}

/* --------------------------------------------------------------------------
   POPUP GUTTER — content vs footer alignment
   body.popup-window already supplies the 12px gutter above. Popup pages then
   wrap their content in `<div class="container-fluid px-2">` (15 + 8 = 23px)
   but `include footer.php` AFTER closing that wrapper, so the footer card sits
   23px to the left of every content card on the same page. Measured across
   admin/: 1,002 top-level cards on popup pages were off the footer's baseline.

   Zeroing the wrapper's side padding puts content and footer both on the body's
   12px gutter. Scoped to popups and to a direct child, so normal pages (which
   lay out inside main.main-content, where content and footer already agree) are
   untouched. (0,2,1) beats the .px-2 / .px-3 utilities' (0,1,0) even though
   those carry !important, since specificity is compared first.
   -------------------------------------------------------------------------- */
body.popup-window > .container,
body.popup-window > .container-fluid,
body.popup-window > form > .container-fluid,
body.popup-window > #page-content,
body.popup-window > #page-content > .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* The footer card is a sibling of that wrapper, not a child, so it never
   inherited any of this - pin it to the same line (0, i.e. body's padding). */
body.popup-window .footer-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Sleek Grayish-Purple Floating Breadcrumb Card */
body.popup-window .breadcrumb-nav .breadcrumb {
  background-color: var(--eiu-purple-soft) !important;
  border: 1px solid var(--eiu-purple-soft-border) !important;
  border-radius: 6px !important;
  padding: 0.45rem 0.8rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.popup-window .breadcrumb-item a {
  color: var(--eiu-purple) !important; /* Dark Indigo Accent */
  font-weight: 600;
  text-decoration: none;
}

body.popup-window .breadcrumb-item a:hover {
  color: var(--eiu-purple-deep) !important;
  text-decoration: underline;
}

body.popup-window .breadcrumb-item.active {
  color: #655d78 !important;
  font-weight: 500;
}

body.popup-window .breadcrumb-item + .breadcrumb-item::before {
  color: #9d93b4 !important;
}


/* ==========================================================================
   9b. LEGACY .form-box PANELS
   Pre-card markup still used across HR and older admin pages. The old
   main.css / themes.css that used to style these no longer ship, so give
   them the EIU card look here — no markup changes needed.
   ========================================================================== */
.form-box {
  background: #ffffff;
  border: 1px solid var(--eiu-border, #e3e0ec);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  margin-bottom: 1rem;
  /* no overflow:hidden -- it clipped Chosen dropdowns at the card edge;
     the first header rounds its own top corners instead */
}
.form-box > .form-box-header:first-child { border-radius: 7px 7px 0 0; }
.form-box-header {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--eiu-purple-deep, #2A1857);
  background: #f8f6fb;
  border-bottom: 1px solid var(--eiu-border, #e3e0ec);
}
.form-box-header .btn { font-weight: 600; }
.form-box-content { padding: 0.9rem; }
.form-box-content > .form-group:last-child { margin-bottom: 0; }
.form-box-content .form-actions {
  border-top: 1px solid var(--eiu-border, #e3e0ec);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}
.form-box-content .table:last-child { margin-bottom: 0; }

/* ==========================================================================
   9c. LEGACY .switch TOGGLE CONTROLS
   Referenced across appMajorsManagement course-editing tables (curriculumTransferForm,
   etc.) as <label class="switch switch-success"><input class="regular-checkbox
   big-checkbox" type="checkbox"><span></span></label>. The plugin CSS that used to
   style these never shipped, so the checkbox rendered as a bare native tick with a
   dead empty <span>. No markup changes needed — just give it a real toggle look.
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
/* Any checkbox inside a .switch, not just ones tagged regular-checkbox/big-checkbox.
   The graduation screens write <label class="switch"><input type="checkbox"><span>
   with no extra classes, so the native tick stayed visible next to the pill and the
   pill itself was not clickable. Matching on the input type covers both spellings. */
.switch input[type="checkbox"],
.switch input.regular-checkbox.big-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch span {
  position: absolute;
  inset: 0;
  background: #d7d3e0;
  border-radius: 22px;
  transition: background-color .15s ease;
}
.switch span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.switch.switch-success input:checked + span { background: #28a745; }
.switch.switch-success input:checked + span::before { transform: translateX(20px); }

/* Legacy label/value wrapper used throughout the appMajorsManagement request-detail
   tables (<div id="whiteBox">Label</div> / <div id="whiteBox">value</div>). Never had
   CSS of its own, so cells sat flush against each other with no breathing room. */
#whiteBox { padding: 2px 6px; }

/* --------------------------------------------------------------------------
   LEGACY PETITION SECTION TABLES
   common/functions/getPetitionDetails.func.php builds its Petition Details /
   Answer / Communication / Documents sections as nested tables keyed on
   #maintableOrangeRow, #mainTable-a, #mainTablefirstRow, #infoTable and
   .tableInfo. None of those ever had any CSS, so the sections rendered as bare
   unstyled tables while the rest of the page was on cards. The markup is shared
   by 7 pages (petitionView, myPetitionRedirections, myPetitionAnswer,
   myPetitionForward, myPetitionRedirect, petitionAnswer,
   studentPetitionHistoryDetails), so give the ids the card look here instead of
   restructuring the generated HTML. Note the generator emits these ids more than
   once per page - invalid HTML, but an #id selector still styles every match.
   -------------------------------------------------------------------------- */
/* Section header: the same shape as a .card-header (white ground, dark
   uppercase title, one hairline under it) rather than the solid purple bar it
   used to be, so these sections read as cards like the rest of the admin. */
#maintableOrangeRow {
  background-color: #ffffff;
  color: var(--eiu-ink, #2c2438);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--eiu-border, #e3e0ec);
  border-radius: 6px 6px 0 0;
}
#maintableOrangeRow strong { margin-left: 0 !important; font-weight: 700; }

/* Each section body is wrapped in <td bgcolor="#EAEAEB"> (only this generator
   uses that value). The grey block behind the table is what made the sections
   read as panels; clear it so the table itself is the card body. */
td[bgcolor="#EAEAEB"] {
  background-color: #ffffff !important;
  padding: 0 !important;
}
/* The generator also insets each section's table with an inline
   <div style="margin-left:15px"> that the header above it does not have, so the
   table sat 15px to the right of its own header and the "card" edges did not line
   up. Zero it so header and table share one left edge. */
td[bgcolor="#EAEAEB"] > div { margin-left: 0 !important; }

/* the empty spacer row above each section header */
#mainTablefirstRow { display: none; }

#mainTable-a {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--eiu-border, #e3e0ec);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin-bottom: 0.75rem;
}
#mainTable-a > thead > tr > th,
#mainTable-a > tr > th {
  background: #f6f4fb;
  color: var(--eiu-purple-deep, #2A1857);
  font-weight: 700;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--eiu-border, #e3e0ec);
  white-space: nowrap;
}
#mainTable-a > tbody > tr > td,
#mainTable-a > tr > td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #f0eef5;
  vertical-align: top;
}
#mainTable-a > tbody > tr:last-child > td { border-bottom: 0; }
#mainTable-a > tbody > tr:hover > td { background: #faf9fd; }
#mainTable-a:not([class]) { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }

/* the read-only label/value block at the top of a petition */
#infoTable, .tableInfo { width: 100%; border-collapse: collapse; }
#infoTable td, .tableInfo td { padding: 0.25rem 0.5rem; font-size: 0.78rem; vertical-align: top; }

/* --------------------------------------------------------------------------
   GRADE APPROVAL TIMELINE  (.Timeline)
   tasks/gradeManagement/gradeApproval/approvalTimeline.php and
   pendingGradeApprovalTask.php lay the approval history out as a horizontal
   timeline: a line with a dot per event, cards alternating above (.event1) and
   below (.event2) it. None of these class names had any CSS left in the admin
   stylesheets, so both pages rendered as a tall column of unstyled text with
   bare dots. Rebuilt here rather than in the pages, since two files share it.

   Each event is a half-height flex column anchored to the centre line -
   .event1 bottom-aligned in the top half, .event2 top-aligned in the bottom
   half - so the dot always lands on the line however tall the card grows. The
   source order inside an event is bubble, author, dot; `order` puts the author
   above the card for .event1 and below it for .event2.
   -------------------------------------------------------------------------- */
.Timeline {
  display: flex;
  align-items: stretch;
  min-height: 320px;
  padding: 0.5rem 0;
  overflow-x: auto;
  overflow-y: visible;
}

.Timeline > svg,
.Timeline .now { flex: 0 0 auto; align-self: center; }

.Timeline svg { overflow: visible; height: 22px; }
/* the connector lines are drawn at y=0, i.e. the top edge of their 22px svg;
   drop them to the middle so they meet the dots. */
.Timeline svg line {
  stroke: var(--eiu-timeline-line, #004165);
  stroke-width: 2;
  transform: translateY(11px);
}

/* the open ring that caps each end of the line */
.Timeline .now {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--eiu-timeline-line, #004165);
  background: #ffffff;
}

.Timeline .event1,
.Timeline .event2 {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 150px;
}
.Timeline .event1 { align-self: flex-start; justify-content: flex-end; }
.Timeline .event2 { align-self: flex-end;   justify-content: flex-start; }

/* the dot: pull it half its own height over the line so it sits centred on it */
.Timeline .event1 > svg { order: 3; margin-bottom: -11px; }
.Timeline .event2 > svg { order: 1; margin-top: -11px; }

.Timeline .event1 .eventAuthor  { order: 1; }
.Timeline .event1 .event1Bubble { order: 2; }
.Timeline .event1 .time         { order: 4; }

.Timeline .event2 .event2Bubble { order: 2; }
.Timeline .event2 .event2Author { order: 3; }
.Timeline .event2 .time2        { order: 4; }

.Timeline .event1Bubble,
.Timeline .event2Bubble {
  position: relative;
  width: 190px;
  margin: 6px 0;
  padding: 0.5rem 0.6rem;
  background: var(--eiu-surface-soft, #f5f4f8);
  border: 1px solid var(--eiu-border, #e3e0ec);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  white-space: normal;
}

/* the pointer from the card towards the line */
.Timeline .event1Bubble::after,
.Timeline .event2Bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
}
.Timeline .event1Bubble::after { top: 100%; border-top-color: var(--eiu-surface-soft, #f5f4f8); }
.Timeline .event2Bubble::after { bottom: 100%; border-bottom-color: var(--eiu-surface-soft, #f5f4f8); }

.Timeline .eventTime { display: flex; align-items: flex-start; }
.Timeline .DayDigit {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 6px;
  color: var(--eiu-ink, #2c2438);
}
.Timeline .Day {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--eiu-ink, #2c2438);
}
.Timeline .MonthYear { font-size: 0.7rem; font-weight: 400; color: #9a9aa3; }

.Timeline .eventTitle {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c0392b;
}

.Timeline .eventAuthor,
.Timeline .event2Author {
  font-size: 0.7rem;
  color: #9a9aa3;
  text-align: center;
  white-space: nowrap;
}

/* placeholders the generator emits with a single space in them */
.Timeline .time,
.Timeline .time2 { display: none; }

/* Utility classes for common styling patterns */
.nowrap { white-space: nowrap; }

/* Card-based form layout (admission newApplicationForm, hr candidate forms).
   A plain two-column layout table: label cell + Bootstrap-styled control. */
.table-form { width: 100%; border-collapse: collapse; }
.table-form > tbody > tr > td,
.table-form > tr > td { padding: 0.3rem 0.5rem; vertical-align: middle; font-size: 0.8rem; }
.table-form .titleTD {
  font-weight: 600;
  color: var(--eiu-ink, #2c2438);
  white-space: nowrap;
  width: 1%;
}
.table-form hr { margin: 0.4rem 0; border-top: 1px solid var(--eiu-border, #e3e0ec); }

/* Shared helpers the card pages rely on (added with the admin/metadata restyle). */
.extra-small { font-size: 0.72rem; }                      /* popup breadcrumbs */
.card-body.p-0 { padding: 0 !important; }
/* ...but keep DataTables' control rows (Show entries / Search on top, info / pager
   below) off the card edges when the table itself sits flush in a p-0 card body. */
.card-body.p-0 .dataTables_wrapper > .row:first-child {
  padding: 0.6rem 0.75rem 0.5rem !important; margin-left: 0 !important; margin-right: 0 !important;
}
.card-body.p-0 .dataTables_wrapper > .row:last-child {
  padding: 0 0.75rem 0.6rem !important; margin-left: 0 !important; margin-right: 0 !important;
}                  /* beat the global .card-body padding !important */
.badge-default { color: #fff; background-color: #6c757d; } /* BS3 label-default still emitted by PHP helpers */
.compact-form textarea.form-control-sm { height: auto; }   /* don't collapse small textareas to one line */
.compact-form .form-check-label { font-size: 0.8rem; font-weight: 400; color: inherit; }
.table-form .titleTD label { font-size: inherit; font-weight: inherit; color: inherit; margin-bottom: 0; }
/* Tooltips are display-only. Without this, a tip drawn over its trigger (e.g. a
   row-action button at the right edge of a table) takes the mouse, the button gets
   mouseleave, the tip hides, the mouse re-enters, and the tip flickers in a loop. */
.tooltip { pointer-events: none; }
.form-control.input-sm {                                   /* BS3 input-sm on BS4 */
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}
.candidate-doc form.formular { border: 0; padding: 0; max-width: 1180px; margin: 0 auto; }
.candidate-doc .chosen-container { min-width: 180px; }

/* ==========================================================================
   PRINTABLE DOCUMENT PAGES (admission printApplication, hr candidate print /
   consider). Shared so these pages carry no embedded <style> of their own.
   ========================================================================== */
.print-container { max-width: 1000px; margin: 0 auto; }
.header-logo-img { height: 120px; width: auto; object-fit: contain; }
.style-header { letter-spacing: 0.5px; font-size: 0.95rem; }
.doc-page { background-color: #f8f9fa; font-size: 0.95rem; color: #212529; }
.doc-page .table-sm th,
.doc-page .table-sm td { padding: 0.45rem 0.6rem; vertical-align: middle; }
.doc-page .table-sm th { white-space: nowrap; }
.photo-box {
  width: 140px; height: 160px;
  border: 2px dashed #2A1857; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background-color: #f1f3f5; overflow: hidden;
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }

@media print {
  body, .doc-page { background-color: #fff !important; }
  .no-print { display: none !important; }
  .print-container { max-width: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .card { border: 1px solid #dee2e6 !important; box-shadow: none !important; margin-bottom: 0.8rem !important; }
}

/* Teaching-profile cell returned to a previous approval level */
.cell-returned { background: #ff9e00; }

/* ==========================================================================
   9c. LEGACY .sectionTable FORMS (HR candidate edit / consider / print)
   The old candidate forms lay every section out as a <table class="sectionTable">
   with a <td class="sectionTitle"> banner row and <td class="titleTD"> labels,
   styled by a since-removed green theme. Give that markup the EIU card look
   here so the pages need no structural changes. Scoped to .candidate-doc
   (the wrapper the 4 hr/candidates pages now add) so it can't touch the
   admission/students .formular pages.
   ========================================================================== */
.candidate-doc form.formular {
  border: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 1180px;
  margin: 0 auto !important;
}
.candidate-doc .sectionTable,
.candidate-doc .sectionTable1,
.candidate-doc .sectionTable2 {
  width: 100% !important;
  background: #ffffff;
  border: 1px solid var(--eiu-border, #e3e0ec) !important;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  margin-bottom: 1rem;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
}
/* stacked experience / publication pairs keep one continuous card */
.candidate-doc .sectionTable1 { margin-bottom: 0; border-bottom: 0 !important; border-radius: 8px 8px 0 0; }
.candidate-doc .sectionTable2 { border-top: 0 !important; border-radius: 0 0 8px 8px; }

.candidate-doc .sectionTable td.sectionTitle,
.candidate-doc .sectionTitle {
  background: var(--eiu-surface-soft, #f8f6fb) !important;
  color: var(--eiu-purple-deep, #2A1857) !important;
  font-weight: 700;
  font-size: 0.9rem !important;
  text-align: left;
  padding: 0.55rem 0.9rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--eiu-border, #e3e0ec) !important;
}
.candidate-doc .sectionTable td {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8rem;
  vertical-align: middle;
  border: 0 !important;
  border-top: 1px solid var(--eiu-table-border, #dcd2ed) !important;
}
.candidate-doc .sectionTable tr:first-child td,
.candidate-doc .sectionTable tr td.sectionTitle { border-top: 0 !important; }

.candidate-doc .titleTD {
  font-weight: 600 !important;
  color: var(--eiu-ink, #2c2438) !important;
  background: #fcfbfe;
}
.candidate-doc .formular .text-input,
.candidate-doc .formular input[type="text"],
.candidate-doc .formular input[type="date"],
.candidate-doc .formular input[type="email"],
.candidate-doc .formular input[type="number"],
.candidate-doc .formular select,
.candidate-doc .formular textarea {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 180px;
  color: #495057;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--eiu-border, #ced4da);
  border-radius: 4px;
  font-size: 0.8rem;
  background: #fff;
  box-shadow: none;
}
.candidate-doc .formular textarea { min-height: 60px; vertical-align: top; }
.candidate-doc .formular .submit,
.candidate-doc .formular input.submit,
.candidate-doc .formular .submits,
.candidate-doc .formular .butt {
  cursor: pointer;
  padding: 0.35rem 1rem !important;
  border-radius: 4px !important;
  border: 0 !important;
  background: var(--eiu-purple, #43267E);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  width: auto !important;
  box-shadow: none !important;
}
/* keep the green / red intent on the Consider / Reject actions (they set an inline bg) */

@media print {
  .candidate-doc .sectionTable,
  .candidate-doc .sectionTable1,
  .candidate-doc .sectionTable2 {
    box-shadow: none !important;
    border: 1px solid #999 !important;
  }
  .candidate-doc .sectionTitle { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  nav.breadcrumb-nav { display: none !important; }
}


/* ==========================================================================
   10. CUSTOM WIDGETS (CALENDAR, TIMELINE, TODO, THEME SWITCHER)
   ========================================================================== */
/* User Profile Header */
.profile-photo { border-radius: 499rem; float: left; }

.username {
  float: left;
  text-align: left;
  margin: 0 0 0 1rem;
}

.username h1, .username h2, .username h3, .username h4 {
  margin-bottom: 0;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.user-dropdown .dropdown-toggle::after { margin-top: 1rem; margin-left: 1rem; }
.user-progress { margin-top: 1rem; }
.user-progress .profile-photo { max-height: 75px; max-width: 75px !important; }

/* Progress Bars */
.progress-custom {
  margin-top: .25rem;
  background-color: var(--eiu-surface-soft);
  padding: 0;
  height: 6px;
}

.progress-label {
  text-align: center !important;
  color: var(--eiu-purple);
  font-size: .75rem;
  margin-top: -.25rem;
}

.progress-bar { height: 6px; }

/* Calendar & Datepicker */
#calendar, .datepicker-inline { width: 100%; text-align: center; }
#calendar table { width: 100%; }

.datepicker-switch { font-size: 16px; height: 46px !important; }
.datepicker table tr td.old, .datepicker table tr td.new { color: var(--eiu-border); }
.datepicker table tr td { padding: 2px 2px !important; cursor: pointer; border-radius: .3rem; }

#calendar th {
  text-align: center !important;
  cursor: pointer;
  border-radius: .3rem;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active:focus,
.datepicker table tr td.active:hover:focus,
.datepicker table tr td.active.disabled:focus,
.datepicker table tr td.active.disabled:hover:focus,
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled:hover.active {
  color: #ffffff;
  background-color: var(--eiu-purple);
  text-shadow: none;
  border-color: #285e8e;
}

.datepicker table tr td span:hover,
.datepicker thead tr:first-child th:hover,
.datepicker tfoot tr th:hover,
.datepicker table tr td.day:hover,
.datepicker table tr td.day.focused {
  background-color: var(--eiu-surface-soft);
}

/* Timeline Widget */
.panel-heading .glyphicon { margin-right: 10px; }

.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
}

.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 2px;
  background-color: var(--eiu-border);
  left: 25px;
  margin-right: -1.5px;
}

.timeline > li { margin-bottom: 20px; position: relative; }
.timeline > li:before, .timeline > li:after { content: " "; display: table; }
.timeline > li:after { clear: both; }

.timeline > li > .timeline-panel {
  width: calc( 100% - 65px );
  float: right;
  border: 1px solid var(--eiu-border);
  border-radius: .3rem;
  padding: 10px 20px;
  position: relative;
  box-shadow: none;
}

.timeline > li > .timeline-panel:before {
  position: absolute;
  top: 26px;
  left: -11px;
  display: inline-block;
  border-top: 11px solid transparent;
  border-right: 11px solid var(--eiu-border);
  border-left: 0 solid var(--eiu-border);
  border-bottom: 11px solid transparent;
  content: " ";
}

.timeline > li > .timeline-panel:after {
  position: absolute;
  top: 27px;
  left: -10px;
  display: inline-block;
  border-top: 10px solid transparent;
  border-right: 10px solid #ffffff;
  border-left: 0 solid #ffffff;
  border-bottom: 10px solid transparent;
  content: " ";
}

.timeline > li > .timeline-badge {
  color: var(--eiu-ink);
  width: 46px;
  height: 46px;
  line-height: 2.8rem;
  font-size: 1.4rem;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 0px;
  margin-right: -25px;
  margin-left: 3px;
  border: 1px solid var(--eiu-border);
  background-color: #ffffff;
  z-index: 100;
  border-radius: 499rem;
}

.timeline-badge.primary { background-color: var(--eiu-purple) !important; color: #ffffff !important; border: none !important; }
.timeline-badge.success { background-color: #8ad919 !important; }
.timeline-badge.warning { background-color: #ffb53e !important; }
.timeline-badge.danger { background-color: #f9243f !important; }
.timeline-badge.info { background-color: #30a5ff !important; }

/* Articles */
.article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--eiu-border);
  margin-bottom: 1rem;
}

.article:first-child { padding: 0 0 10px 0; }
.article:last-child { padding: 0 0 10px 0; border: none; margin-bottom: 0; }
.article h4 a { margin-bottom: 10px; }

.article .date {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 auto;
  display: block;
}

.article .date .text-muted {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
}

/* Todo List Widget */
.todo-list-item {
  list-style: none;
  padding: 0.5rem 1rem .15rem 1.25rem;
  border-radius: .3rem;
}

.todo-list-item .fa { margin: 0 .25rem 0 0; color: var(--eiu-ink); }
.todo-list-item .fa:hover { color: var(--eiu-purple); }

.todo-list-item input[type=checkbox] {
  margin: 0 0.5rem 0 0 !important;
  border: 1px solid var(--eiu-ink);
}

.todo-list {
  padding: 0;
  margin: -15px;
  background: #ffffff;
  color: var(--eiu-ink);
}

#btn-todo { border-top-left-radius: 0; border-bottom-left-radius: 0; }
input[type=checkbox]:checked + label { color: #a0a0a0; }
.todo-list-item:hover, a.todo-list-item:focus { text-decoration: none; }
.todo-list-item .trash .fa:hover { color: #ef4040; }

.todo-list-footer { margin: -20px; margin-top: 2rem; }
.todo-list-footer .btn { border-radius: .3rem; }

/* Font Awesome Icon List Grid */
ul.font-awesome-list { list-style: none; margin: 0; padding: 0; }

ul.font-awesome-list li {
  border: 1px solid var(--eiu-border);
  float: left;
  width: 20%;
  height: auto;
  text-align: center;
}

ul.font-awesome-list li i {
  display: block;
  font-size: 32px;
  margin: 20px auto;
}

ul.font-awesome-list li span.icon-name,
ul.font-awesome-list li .glyphicon-class {
  color: var(--eiu-purple);
  font-size: .8rem;
  white-space: nowrap;
  font-weight: bold;
}

ul.font-awesome-list li span.icon-value {
  display: block;
  color: #7c7c7c;
  font-size: .7rem;
  margin-bottom: 15px;
}

/* Theme Switcher */
.theme-switcher {
  list-style: none;
  text-align: center;
  margin: 1rem auto 3rem auto;
  display: block;
  width: 280px;
}

.theme-switcher li { float: left; text-transform: uppercase; color: #ffffff; }
.theme-switcher li span { margin-right: 10px; }

.theme-switcher li a.theme-btn {
  color: #ffffff;
  background: none;
  display: inline-block;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0 6px;
  text-indent: -499rem;
  border-radius: 499rem;
  opacity: .8;
}

.theme-switcher li a.theme-btn:hover { opacity: 1; }
.theme-switcher li a.theme-btn-default { background: var(--eiu-purple) !important; }
.theme-switcher li a.theme-btn-teal { background: #3dbb9c !important; }
.theme-switcher li a.theme-btn-ruby { background: #f54b63 !important; }
.theme-switcher li a.theme-btn-nightfall { background: #32343c !important; }
.theme-switcher li a.theme-btn-organic { background: #918278 !important; }

/* Chart Filters */
.chart, .easypiechart {
  filter: hue-rotate(0deg) saturate(100%);
}

/* Login & Error Pages */
.login-page, .error-page { background: var(--eiu-surface-soft); }
.login-page .login-panel .btn { display: block; width: 100%; }
.error-page h1 { font-size: 4rem; }


/* ==========================================================================
   11. RESPONSIVE LAYOUTS & MOBILE OFF-CANVAS (MEDIA QUERIES)
   ========================================================================== */

/* Font Awesome Grid Breakdown */
@media screen and (max-width: 1180px) { ul.font-awesome-list li { width: 25%; } }
@media screen and (max-width: 1024px) { ul.font-awesome-list li { width: 33.3%; } }

/* All Screens: Top Navbar Pushes Content Down */
#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Navbar (fixed) + Main Content stacked */
}

main.main-content,
.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
  width: 100%;
  margin-left: 0;
  padding-top: 84px !important; /* Clear the fixed 68px navbar + spacing */
}

/* Push footer section to the bottom */
.main-content > section:last-of-type,
.main-content > footer,
.footer-section {
  margin-top: auto !important;
}

@media (max-width: 768px) {
  .dropdown-menu {
    max-width: calc(100vw - 0.75rem);
    min-width: 290px;
  }

  .dropdown-menu .dropdown-item {
    white-space: normal;
    word-break: break-word;
  }
}

/* Mobile / Collapsed Navbar View (< 992px, matches navbar-expand-lg) */
@media (max-width: 991.98px) {
  .theme-switcher { display: none; }

  ul.font-awesome-list li { width: 50%; }

  main.main-content,
  .main-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .topnav {
    height: auto;
    min-height: 68px;
    padding: 0.5rem 1rem !important;
  }

  /* The desktop logo is a large 150x250 wordmark — shrink it down (keeping
     aspect ratio via width:auto) so it doesn't dominate a phone-width bar. */
  .topnav .navbar-brand .logo-img {
    height: auto;
    width: auto;
   }

  .topnav .navbar-brand .brand-text {
    font-size: 0.8rem;
  }

  main.main-content,
  .main-content {
    padding-top: 78px !important;
  }

  /* Collapsed menu drops down as a solid panel below the brand bar */
  .topnav .navbar-collapse {
    background: var(--eiu-purple-black);
    margin: 0 -1rem;
    padding: 0.5rem 1rem 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .topnav .topnav-nav .nav-item,
  .topnav .topnav-utility .nav-item {
    width: 100%;
  }

  .topnav .topnav-nav .nav-link,
  .topnav .topnav-utility .nav-link {
    width: 100%;
  }

  /* Split label + caret row: label flexes to fill, caret stays a fixed tap target on the right */
  .topnav .topnav-dropdown-group {
    flex-wrap: nowrap;
  }

  .topnav .topnav-dropdown-group .nav-link:first-child {
    flex: 1 1 auto;
    width: auto;
  }

  .topnav .topnav-dropdown-group .nav-link.topnav-caret {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
  }

  .topnav .dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    padding-left: 0.75rem;
  }

  .topnav .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
  }

  .topnav .dropdown-item:hover,
  .topnav .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  .topnav .topnav-utility {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    flex-direction: row;
  }
}

/* Narrow desktop / small laptop range (just above the navbar-expand-lg
   breakpoint, e.g. ~1163px): the brand, 5 top-level links, their dropdown
   carets and the 3 utility icons are tight in this range, so trim the
   link padding/font and cap the logo further to keep everything on one
   row instead of wrapping and getting hidden behind the page content. */
@media (min-width: 992px) and (max-width: 1300px) {
  .topnav .navbar-brand {
    margin-right: 0.75rem;
  }

  .topnav .navbar-brand .logo-img {
      height: auto;
    width: auto;
  }

  .topnav .nav-link,
  .topnav .topnav-nav > .nav-item > a {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  .topnav .nav-link em {
    margin-right: 0.35rem;
  }

  .topnav .topnav-icon-link {
    padding: 0.5rem 0.55rem !important;
  }
}

/* Progressive font shrink for narrower phones — a tablet-width phone (e.g.
   iPad Mini portrait, ~768px) still has room for the sizes above, but a
   typical phone (< 576px) and a small/older phone (< 375px) need text to
   step down further so nav items, headings and table cells stay readable
   instead of wrapping or overflowing. */
@media (max-width: 575.98px) {
  body { font-size: 0.75rem !important; }

  .topnav .navbar-brand .logo-img {     height: auto;
    width: auto; }
  .topnav .navbar-brand .brand-text { font-size: 0.72rem; }

  .topnav .nav-link,
  .topnav .topnav-nav > .nav-item > a {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.7rem !important;
  }

  h1, h2 { font-size: 1.9rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.2rem; }

  .table th, .table td { font-size: 0.72rem !important; padding: 0.4rem 0.55rem !important; }
}

@media (max-width: 374.98px) {
  body { font-size: 0.7rem !important; }

  .topnav .navbar-brand .logo-img {     height: auto;
    width: auto; }
  .topnav .navbar-brand .brand-text { font-size: 0.66rem; }

  .topnav .nav-link,
  .topnav .topnav-nav > .nav-item > a {
    font-size: 0.7rem !important;
    padding: 0.45rem 0.6rem !important;
  }

  h1, h2 { font-size: 1.6rem; }

  .table th, .table td { font-size: 0.68rem !important; padding: 0.35rem 0.45rem !important; }
}

/* Allow horizontal scroll on mobile while keeping the container clean */
.table-responsive,
.tablecontainer {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}



/* ==========================================================================
   12. CHOSEN SELECT COMPLETE STYLING (.select-chosen)
   ========================================================================== */
/* Hide native select element */

 /* Single Select Input Box — REPLACES Section 12 entirely */
.chzn-container-single .chzn-single {
  height: 36px !important;
  line-height: 34px !important;
  padding: 0 0.75rem !important;
  border: 1px solid var(--eiu-border) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--eiu-ink) !important;
  font-family: 'Manrope', sans-serif !important;
  box-shadow: none !important;
  width: 100% !important;
}

.chzn-container {
  width: 100% !important;
  font-size: 0.85rem !important;
}

.chzn-container-active .chzn-single,
.chzn-container-active .chzn-single-with-drop {
  border-color: var(--eiu-purple) !important;
  box-shadow: 0 0 0 0.2rem rgba(67,38,126,0.15) !important;
  background-image: none !important;
}

.chzn-container .chzn-drop {
  border: 1px solid var(--eiu-purple) !important;
  border-top: 0 !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
/* Chosen 0.9.8 fixes the list width to the select's width at page load, so a
   select inside a hidden section (collapsed filters, tab, popup) opens a 0px-wide
   list. The container is already forced to 100% above; make the list and its
   search box follow it. */
.chzn-container .chzn-drop {
  width: 100% !important;
  box-sizing: border-box;
}
.chzn-container .chzn-search input {
  width: 100% !important;
  box-sizing: border-box;
}

.chzn-container .chzn-results li.highlighted {
  background-color: var(--eiu-purple) !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* ==========================================================================
   13. SEARCH APPLICANTS & COMPACT UI COMPONENT STYLES
   ========================================================================== */

/* Advanced Filters Toggle */
.advanced-toggle-row {
  margin: 0.4rem 0 0.7rem;
}

.btn-advanced-toggle {
  background: none;
  border: none;
  color: var(--eiu-purple);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.btn-advanced-toggle:hover,
.btn-advanced-toggle:focus {
  color: var(--eiu-purple-deep);
  outline: none;
}

.btn-advanced-toggle .fa-chevron-down {
  font-size: 0.65rem;
  transition: transform 0.2s ease-in-out;
}

.btn-advanced-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Compact Form Spacing */
.compact-form .form-group {
  margin-bottom: 0.2rem !important;
}

.compact-form label {
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
  font-weight: 600;
  color: #475569;
}

.compact-form .form-control-sm {
  height: calc(1.3em + 0.35rem + 2px); /* was 1.4em + 0.4rem */
  padding: 0.15rem 0.35rem;
  font-size: 0.75rem;
}

/* Dashboard filter cards (admin/dashboard/*): the modern Chosen build from
   plugins.js (.chosen-*) is drawn to match the theme's 36px .form-control
   (border, radius, font) so selects, inputs and dates line up on one baseline.
   The old .chzn-* build is already unified with .form-control in section 12. */
.dashboard-page .compact-form .chosen-container { display: block; width: 100% !important; font-size: 0.85rem; font-family: 'Manrope', sans-serif; }
.dashboard-page .compact-form .chosen-container-single .chosen-single {
  height: 36px; line-height: 34px; padding: 0 2rem 0 0.75rem;
  border: 1px solid var(--eiu-border); border-radius: 6px;
  background: #ffffff; box-shadow: none; color: var(--eiu-ink); text-align: left;
}
.dashboard-page .compact-form .chosen-container-single .chosen-single span { margin-right: 0; text-align: left; }
.dashboard-page .compact-form .chosen-container-single .chosen-single div b { margin-top: 11px; }
.dashboard-page .compact-form .chosen-container-multi .chosen-choices {
  display: flex; flex-wrap: wrap; align-items: center;
  min-height: 36px; padding: 2px 0.5rem;
  border: 1px solid var(--eiu-border); border-radius: 6px;
  background: #ffffff; box-shadow: none;
}
.dashboard-page .compact-form .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  height: 30px; margin: 0; padding: 0 0.25rem; font-size: 0.85rem; color: var(--eiu-ink);
}
/* With nothing picked, the placeholder ("All Majors") keeps the width Chosen
   measured while the select was hidden and shows as a single letter. */
.dashboard-page .compact-form .chosen-container-multi .chosen-choices li.search-field:only-child,
.dashboard-page .compact-form .chosen-container-multi .chosen-choices li.search-field:only-child input[type="text"] { width: 100% !important; }
.dashboard-page .compact-form .chosen-container-multi .chosen-choices li.search-choice {
  margin: 2px 4px 2px 0; padding: 3px 20px 3px 8px;
  border: 1px solid var(--eiu-border); border-radius: 4px; background: #f4f1fa; color: var(--eiu-ink);
  font-size: 0.78rem; line-height: 1.2;
}
.dashboard-page .compact-form .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 5px; }
.dashboard-page .compact-form .chosen-container-active .chosen-single,
.dashboard-page .compact-form .chosen-container-active .chosen-choices {
  border-color: var(--eiu-purple); box-shadow: 0 0 0 0.2rem rgba(67, 38, 126, 0.15);
}
.dashboard-page .compact-form .chosen-container .chosen-drop { border-color: var(--eiu-purple); border-radius: 0 0 6px 6px; }
.dashboard-page .compact-form .chosen-container .chosen-results li { font-size: 0.85rem; padding: 5px 8px; }
.dashboard-page .compact-form .chosen-container .chosen-results li.highlighted { background: var(--eiu-purple); color: #ffffff; }
.dashboard-page .compact-form .chzn-container-single .chzn-single span { text-align: left; }

/* Custom Pill Buttons */
.btn-pill {
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  padding: 0.35rem 0.9rem;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-pill-purple {
  background-color: var(--eiu-purple);
  color: #ffffff !important;
  border: 1px solid var(--eiu-purple);
}

.btn-pill-purple:hover {
  background-color: var(--eiu-purple-deep);
  border-color: var(--eiu-purple-deep);
}

.btn-pill-cyan {
  background-color: #11a8be;
  color: #ffffff !important;
  border: 1px solid #11a8be;
}

.btn-pill-cyan:hover {
  background-color: #0d8293;
  border-color: #0d8293;
}

.btn-pill-outline {
  background-color: #ffffff;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.btn-pill-outline:hover {
  background-color: #f1f5f9;
  color: #0f172a !important;
}

/* Soft Input Group Prepended Labels */
.input-group-text-soft {
  background-color: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid #cbd5e1;
}

/* Accordion Toggle Header Button */
.accordion-header-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  color: var(--eiu-purple);
  font-weight: 700;
  font-size: 0.85rem;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.accordion-header-btn:hover {
  color: var(--eiu-purple-deep);
}

.accordion-header-btn:focus,
.accordion-header-btn:active {
  outline: none;
  box-shadow: none;
  text-decoration: none;
}



/* ==========================================================================
   COMPACT CONTROLS IN ORIGINAL CONTAINER (REPORTS BAR)
   ========================================================================== */

/* Outer card, card-header, and card-body retain standard/original padding. */

/* Slim Input Group Prepended Labels (e.g., Campus:, Semester:) */
#collapseReports .input-group-text-soft {
  background-color: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.7rem !important;
  padding: 0.1rem 0.45rem !important;
  border: 1px solid #cbd5e1;
  height: 26px !important;
  line-height: 24px !important;
}

/* Slim Input Fields & Dropdowns */
#collapseReports .input-group-sm > .form-control,
#collapseReports .input-group-sm > select,
#collapseReports .input-group-sm > .input-group-prepend > .input-group-text,
#collapseReports .input-group-sm > .input-group-append > .btn {
  height: 26px !important;
  font-size: 0.72rem !important;
  padding: 0.1rem 0.35rem !important;
}

/* Slim Export Button */
#collapseReports .input-group-sm .btn-success {
  height: 26px !important;
  padding: 0 0.6rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



/* ==========================================================================
   14. MANAGED APPLICATION FILES MODULE STYLES
   ========================================================================== */

/* Outer Card Container Header */
.card-header-purple {
  background: var(--eiu-purple-deep)  !important;
  color: #ffffff !important;
  padding: 0.6rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Application Summary Table */
.table-info-custom th {
  width: 15%;
  background-color: #f8f9fa !important;
  color: var(--eiu-purple-deep) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.table-info-custom td {
  font-size: 0.8rem !important;
}

/* Application Files Data Table */
.table-files th {
  background-color: var(--eiu-purple-deep) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  text-align: center !important;
  border-color: var(--eiu-purple-deep) !important;
}

.table-files td {
  font-size: 0.8rem !important;
  vertical-align: middle !important;
  text-align: center !important;
}

/* File Action Column Widths */
.col-file-num { width: 5%; }
.col-file-type { width: 20%; }
.col-file-name { width: 25%; }
.col-file-status { width: 15%; }
.col-file-action { width: 10%; }
.col-file-download { width: 15%; }

/* Soft brand badge — for tags/levels that aren't a status */
.badge-soft-purple {
  background-color: var(--eiu-purple-soft) !important;
  color: var(--eiu-purple-deep) !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 4px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

/* Status Badges */
.badge-active {
  background-color: #28a745 !important;
  color: #ffffff !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

.badge-confirmed {
  background-color: var(--eiu-purple) !important;
  color: #ffffff !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

/* Underline tabs in a card header - <ul class="nav card-tabs"> with data-toggle="tab" links
   (Students search, Admission search/reports, Programs > Campuses). */
/* Real tabs, no underline: the selected tab is a highlighted lavender tab with rounded top corners
   that sits on the header's bottom rule; the others are plain text that tint on hover. */
.card-header:has(> .card-tabs){ border-bottom:1px solid var(--eiu-purple-soft-border, #D9CDF0) !important; }
.card-header .card-tabs{ margin-bottom:-1px; padding-top:.45rem; gap:.3rem; }
.card-header .card-tabs .nav-link{ padding:.5rem 1rem; margin:0; border:1px solid transparent; border-bottom:0; border-radius:.6rem .6rem 0 0;
                                   color:#6b7280; font-weight:600; font-size:.88rem; transition:background-color .12s ease, color .12s ease; }
.card-header .card-tabs .nav-link:hover{ color:var(--eiu-purple, #43267E); background:var(--eiu-surface-soft, #F8F6FB); }
.card-header .card-tabs .nav-link.active{ color:var(--eiu-purple, #43267E); background:var(--eiu-purple-soft, #EEE9F8);
                                          border-color:var(--eiu-purple-soft-border, #D9CDF0); font-weight:700; }

/* ==========================================================================
   STUDENT APPLICATION ROWS  (admin/students/studentInfo.php + studentInfoView.php)
   One row-card per application instead of the old 13-column table: small
   label-over-value fields, the application being viewed tinted with a purple
   left edge, the switch button in front and the tools menus at the end.
   #regAppForm itself is the white card (inline style in studentInfo.php).
   ========================================================================== */
#regAppForm.app-strips{ display:block; background:#fff; border:1px solid var(--eiu-border); border-radius:.55rem; box-shadow:0 1px 3px rgba(16,24,40,.06); overflow:hidden; margin-bottom:.75rem; }
.app-strips-head{ display:flex; align-items:center; gap:.5rem; padding:.55rem .85rem; background:var(--eiu-surface-soft); border-bottom:1px solid var(--eiu-border);
                  font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--eiu-purple); }
.app-strips-count{ margin-left:auto; min-width:22px; padding:.05rem .45rem; border-radius:999px; background:var(--eiu-purple-soft); color:var(--eiu-purple);
                   font-size:.7rem; text-align:center; letter-spacing:0; }
.app-strip{ display:flex; align-items:center; gap:.9rem; padding:.7rem .85rem .7rem .7rem; border-left:4px solid transparent; transition:background-color .12s ease; }
.app-strip + .app-strip{ border-top:1px solid #f0edf6; }
.app-strip:hover{ background:#fbfaff; }
.app-strip.is-current{ background:#F7F4FD; border-left-color:var(--eiu-purple); }
.app-strip-lead{ flex:0 0 auto; }
.app-strip-current,
.app-strip-switch{ width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; padding:0; border-radius:50%; font-size:.85rem; }
.app-strip-current{ background:var(--eiu-purple); color:#fff; }
.app-strip-switch{ border:1px solid var(--eiu-purple-soft-border); background:#fff; color:var(--eiu-purple); cursor:pointer; transition:all .12s ease; }
.app-strip-switch:hover,
.app-strip-switch:focus{ background:var(--eiu-purple); border-color:var(--eiu-purple); color:#fff; outline:0; }
.app-strip-fields{ flex:1 1 auto; min-width:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:.5rem 1rem; }
.app-field{ min-width:0; }
.app-field-label{ display:block; margin-bottom:1px; font-size:.6rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:#8a8398; line-height:1.3; }
.app-field-value{ display:block; font-size:.8rem; font-weight:600; color:var(--eiu-ink); line-height:1.35; overflow-wrap:anywhere; }
.app-field-value.is-muted{ color:#a19bab; font-weight:500; font-style:italic; }
.app-pill{ display:inline-block; padding:.08rem .55rem; border-radius:999px; background:#eef0f3; color:#475569; font-size:.7rem; font-weight:700; line-height:1.5; }
.app-pill.tone-green { background:var(--eiu-green-pastel); color:#4d6e22; }
.app-pill.tone-blue  { background:#e8f0fd; color:#1d4ed8; }
.app-pill.tone-purple{ background:var(--eiu-purple-soft); color:var(--eiu-purple); }
.app-pill.tone-red   { background:#fdecef; color:#be123c; }
.app-strip-actions{ flex:0 0 auto; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.app-strip-actions .btn-group{ display:inline-flex; }

/* ==========================================================================
   SOFT BUTTONS — tool / menu buttons on light surfaces: a lavender (or pale
   green) chip that fills with the brand colour on hover or while its menu is
   open. Used by the student page (application rows, Switch Semester).
   ========================================================================== */
/* icon-only: a white chip with a light border, only the icon carries the colour (purple, or green for
   export / open); a light tint on hover or while its menu is open. Give each one a title= for the name. */
.btn.btn-soft,
.btn.btn-soft-green,
.btn.btn-soft:visited,
.btn.btn-soft-green:visited{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:32px; height:30px;
  padding:0 .55rem !important;
  border-radius:8px;
  background:#ffffff;
  border:1px solid var(--eiu-border);
  font-size:.85rem; line-height:1;
  letter-spacing:0;
  box-shadow:0 1px 2px rgba(16,24,40,.05) !important;
  transition:background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn.btn-soft,
.btn.btn-soft:visited{ color:var(--eiu-purple) !important; }
.btn.btn-soft:hover,
.btn.btn-soft:focus,
.show > .btn.btn-soft{ background:#F7F5FC; border-color:var(--eiu-purple-soft-border); color:var(--eiu-purple) !important; }
.btn.btn-soft-green,
.btn.btn-soft-green:visited{ color:#5A7F29 !important; }
.btn.btn-soft-green:hover,
.btn.btn-soft-green:focus,
.show > .btn.btn-soft-green{ background:var(--eiu-green-pastel); border-color:#D3E3BC; color:#4D6E22 !important; }
.btn.btn-soft.dropdown-toggle::after,
.btn.btn-soft-green.dropdown-toggle::after{ margin-left:.35rem; border-top-width:.28em; border-right-width:.28em; border-left-width:.28em; opacity:.6; }
.btn.btn-soft.btn-xs,
.btn.btn-soft-green.btn-xs{ min-width:28px; height:26px; font-size:.78rem; }

/* ==========================================================================
   HUB PAGES — admin/includes/hubStats.inc.php (Programs / HR / QA index)
   A light canvas holding: a header with a pulsing "Live" marker; a "Modules"
   heading over the module cards (ONE card style on all three pages: soft
   round icon, title, description, a numbers pill and Open); and a side column
   with "Active share" bars. The user removed the stat cards along the top and
   the quick actions. Colours per item come from --c / --soft (the muted
   Dashboards palette).
   ========================================================================== */
.hub-canvas{ margin:0 0 1rem; padding:1.1rem 1.1rem 1.2rem; background:#F5F4F9; border:1px solid #ECE9F3; border-radius:16px; }

/* header */
.hub-head{ display:flex; align-items:center; flex-wrap:wrap; gap:.85rem; margin:0 0 1rem; }
.hub-head-icon{ width:44px; height:44px; flex:0 0 44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
                background:#fff; border:1px solid var(--eiu-border); color:var(--eiu-purple); font-size:19px; box-shadow:0 1px 2px rgba(16,24,40,.05); }
.hub-head-text{ min-width:0; }
.hub-head-title{ font-size:1.15rem; font-weight:800; line-height:1.2; color:#1f2937; }
.hub-head-sub{ margin-top:2px; font-size:.78rem; color:#6b7280; }
.hub-live{ margin-left:auto; display:inline-flex; align-items:center; gap:.45rem; padding:.3rem .75rem; border-radius:999px;
           background:#fff; border:1px solid var(--eiu-border); font-size:.72rem; font-weight:600; color:#4b5563; white-space:nowrap; }
.hub-live-dot{ width:8px; height:8px; border-radius:50%; background:#22c55e; animation:hubPulse 2s ease-out infinite; }
@keyframes hubPulse{ 0%{ box-shadow:0 0 0 0 rgba(34,197,94,.5); } 70%{ box-shadow:0 0 0 7px rgba(34,197,94,0); } 100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); } }

/* progress bars (Active share): the fill grows from 0 when the page opens */
.hub-bar{ display:block; height:6px; margin-top:.8rem; border-radius:999px; background:#ECEAF2; overflow:hidden; }
.hub-bar > span{ display:block; height:100%; width:var(--pct, 0); border-radius:inherit; background:var(--c); animation:hubGrow 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hubGrow{ from{ width:0; } }

/* body (renderHubBody): ONE grid - row 1 the two headings, row 2 the cards and the Active share panel, which
   stretches to the cards' height so its top and bottom line up with the first and last card */
.hub-layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; grid-template-rows:auto auto; column-gap:16px; align-items:stretch; }
.hub-layout > .hub-section-head{ grid-column:1; grid-row:1; }
.hub-layout > .hub-aside-head{ grid-column:2; grid-row:1; }
.hub-layout > .hub-mods{ grid-column:1; grid-row:2; }
.hub-layout > .hub-aside{ grid-column:2; grid-row:2; }
.hub-section-head{ display:flex; align-items:center; justify-content:space-between; min-height:18px; margin:0 .15rem .65rem; }
.hub-section-label{ font-size:.7rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#4b5563; }
.hub-section-count{ font-size:.72rem; color:#6b7280; }

/* module cards (renderHubModules): two per row */
.hub-mods{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.hub-mod,
.hub-mod:visited{ display:flex; gap:1rem; padding:1.1rem 1.15rem 1rem; background:#fff; color:#1f2937; text-decoration:none;
                  border:1px solid var(--eiu-border); border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.04);
                  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hub-mod:hover,
.hub-mod:focus{ transform:translateY(-2px); border-color:var(--c); box-shadow:0 12px 22px -16px rgba(16,24,40,.4); color:#1f2937; text-decoration:none; outline:0; }
.hub-mod:focus-visible{ box-shadow:0 0 0 2px var(--c); }
.hub-mod-icon{ width:52px; height:52px; flex:0 0 52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
               background:var(--soft); color:var(--c); font-size:21px; transition:background-color .15s ease, color .15s ease; }
.hub-mod:hover .hub-mod-icon,
.hub-mod:focus .hub-mod-icon{ background:var(--c); color:#fff; }
.hub-mod-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.hub-mod-title{ display:flex; align-items:center; gap:.5rem; font-size:.98rem; font-weight:800; line-height:1.25; }
.hub-mod-tag{ padding:.05rem .5rem; border-radius:999px; background:var(--soft); color:var(--c); font-size:.62rem; font-weight:700; }
.hub-mod-desc{ flex:1 1 auto; margin-top:.3rem; font-size:.78rem; line-height:1.5; color:#6b7280; }
.hub-mod-foot{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:.8rem; }

.hub-pill{ display:inline-block; padding:.14rem .6rem; border-radius:999px; background:#F1F2F5; color:#374151; font-size:.68rem; font-weight:700; white-space:nowrap; }
.hub-open{ font-size:.72rem; font-weight:700; color:var(--c); white-space:nowrap; }
.hub-open .fa{ margin-left:.3rem; transition:transform .15s ease; }
a:hover .hub-open .fa{ transform:translateX(3px); }

/* Active share panel: fills the row height, one bar per module card, spread evenly top to bottom */
.hub-aside{ display:flex; min-width:0; }
.hub-side-card{ flex:1 1 auto; display:flex; flex-direction:column; padding:1rem 1.05rem; background:#fff; border:1px solid var(--eiu-border);
                border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.hub-side-sub{ font-size:.72rem; color:#6b7280; }
.hub-shares{ flex:1 1 auto; display:flex; flex-direction:column; justify-content:space-around; gap:.7rem; margin-top:.6rem; }
.hub-share-row{ display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; font-size:.75rem; }
.hub-share-name{ font-weight:700; color:#1f2937; }
.hub-share-val{ color:#6b7280; white-space:nowrap; }
.hub-share .hub-bar{ height:8px; margin-top:.35rem; }

@media (max-width:1199.98px){
  .hub-layout{ grid-template-columns:minmax(0,1fr); }
  .hub-layout > .hub-aside-head{ grid-column:1; grid-row:3; margin-top:1rem; }
  .hub-layout > .hub-aside{ grid-column:1; grid-row:4; }
}
@media (max-width:767.98px){
  .hub-mods{ grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce){
  .hub-live-dot, .hub-bar > span{ animation:none; }
  .hub-mod, .hub-mod-icon{ transition:none; }
}

/* Switch Semester (studentDetails.php): a labelled picker instead of the old BS3 input-group-addon */
.sem-switch{ display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .75rem; width:100%; }
.sem-switch-label{ margin:0; font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#6A5A8C; white-space:nowrap; }
.sem-switch-label .fa{ margin-right:.3rem; color:var(--eiu-purple); }
.sem-switch .sem-switch-select{ flex:1 1 260px; max-width:380px; height:34px !important; border:1px solid var(--eiu-border) !important; border-radius:8px !important;
                                font-weight:600; color:var(--eiu-ink); }
.sem-switch .sem-switch-select:focus{ border-color:var(--eiu-purple) !important; box-shadow:0 0 0 .2rem rgba(67,38,126,.12) !important; }
@media (max-width: 575.98px){
  .app-strip{ flex-wrap:wrap; }
  .app-strip-actions{ margin-left:auto; }
}

/* Chosen result lists scroll on their own: the wheel no longer spills over to the page at the list's end,
   and in small popup windows the list is capped to the visible height so it scrolls inside the window */
.chosen-container .chosen-results{ overscroll-behavior:contain; }
.popup-window .chosen-container .chosen-results{ max-height:min(240px, 42vh); }
