/* Multi Genius ERP – Modern UI Theme
   Built on AdminLTE 3 / Bootstrap 4.
   -------------------------------------------------------- */

/* ========== CSS VARIABLES ========== */
:root {
  --mg-primary: #4361ee;
  --mg-primary-dark: #3a56d4;
  --mg-primary-light: #eef0ff;
  --mg-secondary: #6c757d;
  --mg-success: #2ec4b6;
  --mg-info: #4cc9f0;
  --mg-warning: #f7b731;
  --mg-danger: #ef476f;
  --mg-dark: #1e293b;
  --mg-sidebar: #1e293b;
  --mg-sidebar-hover: #334155;
  --mg-sidebar-active: #4361ee;
  --mg-body-bg: #f1f5f9;
  --mg-card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --mg-card-shadow-hover: 0 4px 12px rgba(0,0,0,.08);
  --mg-radius: 10px;
  --mg-radius-sm: 6px;
  --mg-transition: .2s ease;
  --mg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========== BASE ========== */
body {
  font-family: var(--mg-font);
  background: var(--mg-body-bg);
  -webkit-font-smoothing: antialiased;
  font-size: .875rem;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

::selection { background: var(--mg-primary); color: #fff; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== LAYOUT ========== */
.content-wrapper {
  background: var(--mg-body-bg) !important;
}

/* ========== NAVBAR ========== */
.main-header.navbar {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  min-height: 56px;
}
.main-header .nav-link {
  color: #475569 !important;
  font-weight: 500;
  transition: color var(--mg-transition);
}
.main-header .nav-link:hover { color: var(--mg-primary) !important; }
.main-header .dropdown-toggle::after { margin-left: .4rem; }
.main-header .dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: var(--mg-radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  padding: .35rem 0;
}
.main-header .dropdown-item {
  font-size: .85rem;
  padding: .45rem 1rem;
  transition: background var(--mg-transition);
}
.main-header .dropdown-item:hover {
  background: var(--mg-primary-light);
  color: var(--mg-primary);
}
.main-header .dropdown-item i { width: 18px; text-align: center; }

/* ========== SIDEBAR ========== */
/* AdminLTE 3.2 leaves .sidebar at overflow-y: initial and expects OverlayScrollbars to be
   initialised on it - it never was, so the menu could not scroll to Administration. Native
   scrolling instead, with the nav flexed to fill whatever height the brand bar leaves over
   (AdminLTE hard-codes 3.5rem for it; our logo is taller). */
.main-sidebar {
  background: var(--mg-sidebar) !important;
  box-shadow: 2px 0 8px rgba(0,0,0,.12);
  transition: width .3s ease;
  display: flex;
  flex-direction: column;
}
.main-sidebar > .brand-link { flex: 0 0 auto; }
.main-sidebar > .sidebar {
  flex: 1 1 auto;
  height: auto;
  overflow-y: auto;
  scrollbar-width: thin;
}
.main-sidebar > .sidebar::-webkit-scrollbar { width: 6px; }
.main-sidebar > .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.main-sidebar .brand-link {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: .95rem 1rem;
  background: rgba(0,0,0,.15);
}
.brand-link .brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff !important;
}
.brand-link .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-right: .6rem;
}

/* Sidebar nav items */
.sidebar .nav-sidebar .nav-item > .nav-link {
  color: #94a3b8;
  border-radius: var(--mg-radius-sm);
  margin: 1px 8px;
  padding: .55rem .75rem;
  font-size: .84rem;
  font-weight: 500;
  transition: all var(--mg-transition);
}
.sidebar .nav-sidebar .nav-item > .nav-link:hover {
  background: var(--mg-sidebar-hover);
  color: #e2e8f0;
}
.sidebar .nav-sidebar .nav-item > .nav-link.active {
  background: var(--mg-sidebar-active) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(67,97,238,.35);
}
.sidebar .nav-sidebar .nav-link .nav-icon {
  font-size: .9rem;
  width: 22px;
  text-align: center;
  margin-right: .55rem;
}
.sidebar .nav-sidebar .nav-link p {
  font-size: .84rem;
}

/* Treeview children */
.nav-treeview { background: rgba(0,0,0,.12); border-radius: var(--mg-radius-sm); margin: 2px 8px; }
.nav-treeview .nav-link {
  padding: .4rem .75rem .4rem 2.2rem !important;
  font-size: .82rem !important;
  margin: 0 !important;
}
.nav-treeview .nav-link .nav-icon {
  font-size: .5rem !important;
}

/* Sidebar user panel (if added) */
.sidebar .user-panel { border-bottom: 1px solid rgba(255,255,255,.06); padding: .8rem 1rem; }

/* ========== BREADCRUMB ========== */
.content-header {
  padding: 12px 0 4px;
}
.content-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
}
.breadcrumb {
  background: transparent;
  margin-bottom: 0;
  font-size: .82rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.breadcrumb-item a { color: var(--mg-primary); }

/* ========== CARDS ========== */
.card {
  border: none;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-card-shadow);
  transition: box-shadow var(--mg-transition);
  margin-bottom: 1.25rem;
}
.card:hover {
  box-shadow: var(--mg-card-shadow-hover);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  border-radius: var(--mg-radius) var(--mg-radius) 0 0 !important;
  padding: .85rem 1.15rem;
}
.card-header .card-title {
  font-size: .9rem;
  font-weight: 600;
  color: #334155;
}
.card-outline .card-header { border-top: none; }
.card-outline.card-primary { border-top: 3px solid var(--mg-primary); }
.card-outline.card-info { border-top: 3px solid var(--mg-info); }
.card-outline.card-success { border-top: 3px solid var(--mg-success); }
.card-outline.card-warning { border-top: 3px solid var(--mg-warning); }
.card-outline.card-danger { border-top: 3px solid var(--mg-danger); }
.card-body { padding: 1.15rem; }

/* ========== DASHBOARD TILES ========== */
.small-box {
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-card-shadow);
  overflow: hidden;
  transition: all .25s ease;
  border: none;
  position: relative;
}
.small-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.small-box .inner { padding: 1rem 1.15rem .6rem; }
.small-box h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .15rem;
}
.small-box .inner p {
  font-size: .82rem;
  opacity: .9;
}
.small-box .icon {
  top: 12px;
  right: 12px;
  font-size: 3.5rem;
  opacity: .15;
}
.small-box .small-box-footer {
  background: rgba(0,0,0,.1);
  font-size: .78rem;
  padding: .4rem .75rem;
  font-weight: 500;
  transition: background var(--mg-transition);
}
.small-box .small-box-footer:hover { background: rgba(0,0,0,.18); }

/* Modern tile colors */
.small-box.bg-primary { background: linear-gradient(135deg, #4361ee, #3a56d4) !important; }
.small-box.bg-success { background: linear-gradient(135deg, #2ec4b6, #1fa89c) !important; }
.small-box.bg-info { background: linear-gradient(135deg, #4cc9f0, #38b6db) !important; }
.small-box.bg-warning { background: linear-gradient(135deg, #f7b731, #f0a922) !important; }
.small-box.bg-danger { background: linear-gradient(135deg, #ef476f, #d63d60) !important; }
.small-box.bg-secondary { background: linear-gradient(135deg, #64748b, #475569) !important; }

/* Info boxes */
.info-box {
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-card-shadow);
  border: none;
  min-height: auto;
  padding: .85rem;
}
.info-box .info-box-icon {
  border-radius: var(--mg-radius-sm);
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}
.info-box .info-box-text { font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; color: #64748b; font-weight: 600; }
.info-box .info-box-number { font-size: 1.35rem; font-weight: 700; color: #1e293b; }

/* ========== PIPELINE / CATEGORY BARS ========== */
.pipe-row { display: flex; align-items: center; margin-bottom: .5rem; padding: .2rem 0; }
.pipe-row.pipe-empty { opacity: .45; }
.pipe-label { flex: 0 0 42%; font-size: .82rem; padding-right: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #475569; font-weight: 500; }
.pipe-bar { flex: 1 1 auto; background: #f1f5f9; border-radius: 20px; height: 10px; overflow: hidden; }
.pipe-fill { height: 100%; border-radius: 20px; transition: width .5s ease; }
.pipe-count { flex: 0 0 2.5rem; text-align: right; font-weight: 700; font-size: .9rem; color: #334155; }
.pipe-count a { color: var(--mg-primary); font-weight: 700; }

/* Modern bar colors */
.pipe-fill.bg-primary { background: var(--mg-primary) !important; }
.pipe-fill.bg-success { background: var(--mg-success) !important; }
.pipe-fill.bg-info { background: var(--mg-info) !important; }
.pipe-fill.bg-warning { background: var(--mg-warning) !important; }
.pipe-fill.bg-danger { background: var(--mg-danger) !important; }

/* ========== TABLES ========== */
.table {
  font-size: .84rem;
}
.table thead th {
  border-top: none;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  padding: .65rem .75rem;
  white-space: nowrap;
}
.thead-light th { background: #f8fafc !important; }
.table td { vertical-align: middle; padding: .55rem .75rem; border-color: #f1f5f9; color: #334155; }
.card-body { overflow-x: auto; }
.table-hover tbody tr:hover {
  background-color: #f0f4ff !important;
}
.table-hover tbody tr {
  transition: background-color .15s ease;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--mg-radius-sm);
  border: 1px solid #e2e8f0;
  padding: .3rem .55rem;
  font-size: .84rem;
  transition: border-color var(--mg-transition), box-shadow var(--mg-transition);
}
/* The length menu is a .custom-select: its arrow is a background image sitting in the right-hand
   padding, so the shared rule above must not be allowed to take that padding away - "25" ends up
   printed under the arrow. Width is fixed too, or the box shrinks to fit "5" and jumps on change. */
.dataTables_wrapper .dataTables_length select {
  padding: .3rem 1.65rem .3rem .6rem;
  min-width: 4.75rem;
  height: auto;
  background-position: right .5rem center;
}
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,.12);
  outline: none;
}
.dataTables_wrapper .dataTables_info { font-size: .78rem; color: #64748b; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--mg-radius-sm) !important;
  margin: 0 2px;
  font-size: .82rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--mg-primary) !important;
  border-color: var(--mg-primary) !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
  background: var(--mg-primary-light) !important;
  border-color: var(--mg-primary-light) !important;
  color: var(--mg-primary) !important;
}

/* ========== BUTTONS ========== */
.btn {
  font-weight: 500;
  font-size: .84rem;
  border-radius: var(--mg-radius-sm);
  transition: all var(--mg-transition);
  letter-spacing: .01em;
}
.btn:focus { box-shadow: 0 0 0 3px rgba(67,97,238,.15); }
.btn-primary {
  background: var(--mg-primary);
  border-color: var(--mg-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--mg-primary-dark);
  border-color: var(--mg-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67,97,238,.25);
}
.btn-success { background: var(--mg-success); border-color: var(--mg-success); }
.btn-success:hover { background: #1fa89c; border-color: #1fa89c; }
.btn-info { background: var(--mg-info); border-color: var(--mg-info); }
.btn-warning { background: var(--mg-warning); border-color: var(--mg-warning); color: #1e293b; }
.btn-danger { background: var(--mg-danger); border-color: var(--mg-danger); }
.btn-default {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}
.btn-default:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
.btn-xs { padding: .2rem .5rem; font-size: .75rem; line-height: 1.4; border-radius: 4px; }
.btn-sm { padding: .3rem .7rem; font-size: .82rem; }

/* ========== FORMS ========== */
.form-control {
  border-radius: var(--mg-radius-sm);
  border: 1px solid #e2e8f0;
  font-size: .84rem;
  padding: .45rem .75rem;
  transition: border-color var(--mg-transition), box-shadow var(--mg-transition);
  color: #334155;
}
.form-control:focus {
  border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,.1);
}
.form-control::placeholder { color: #94a3b8; }
.form-group label { font-weight: 500; font-size: .84rem; color: #475569; margin-bottom: .3rem; }

/* Select2 theme */
.select2-container--bootstrap4 .select2-selection--single {
  border-radius: var(--mg-radius-sm) !important;
  border-color: #e2e8f0 !important;
  height: 36px !important;
}
.select2-container--bootstrap4 .select2-selection--single:focus {
  border-color: var(--mg-primary) !important;
}
.select2-container--bootstrap4 .select2-results__option--highlighted {
  background-color: var(--mg-primary) !important;
}
.select2-dropdown { border-color: #e2e8f0; border-radius: var(--mg-radius-sm); box-shadow: 0 8px 25px rgba(0,0,0,.1); }

/* ========== BADGES ========== */
.badge {
  font-weight: 600;
  font-size: .72rem;
  padding: .3em .6em;
  border-radius: 4px;
  letter-spacing: .02em;
}
.badge-status { font-size: .75rem; font-weight: 600; padding: .35em .6em; }
.badge-primary { background: var(--mg-primary); }
.badge-success { background: var(--mg-success); }
.badge-info { background: var(--mg-info); color: #1e293b; }
.badge-warning { background: var(--mg-warning); color: #1e293b; }
.badge-danger { background: var(--mg-danger); }

/* ========== MODALS ========== */
.modal-content {
  border: none;
  border-radius: var(--mg-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 1.25rem;
}
.modal-title { font-weight: 600; font-size: 1rem; color: #1e293b; }
.modal-body { padding: 1.25rem; }
.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: .85rem 1.25rem;
}
.modal-backdrop.show { opacity: .4; }

/* ========== ALERTS ========== */
.alert {
  border-radius: var(--mg-radius-sm);
  border: none;
  font-size: .84rem;
}
.alert-info { background: #e8f4fd; color: #1e6fa1; }
.alert-warning { background: #fef3cd; color: #856404; }
.alert-danger { background: #fde8ec; color: #a12145; }
.alert-success { background: #d4f5f0; color: #166b5f; }

/* ========== LOGIN PAGE ========== */
.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 400px;
  max-width: 94vw;
}
.login-box .card {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  border: none;
  overflow: hidden;
}
.login-box .card-header {
  background: #fff;
  border-bottom: none;
  padding: 2rem 2rem 1rem;
}
.login-box .card-header .h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mg-primary) !important;
  letter-spacing: -.02em;
}
.login-box .card-header .text-muted {
  font-size: .85rem;
  margin-top: .3rem;
  color: #64748b !important;
}
.login-box .card-body {
  padding: 1rem 2rem 2rem;
}
.login-box-msg {
  color: #64748b;
  font-size: .88rem;
  margin-bottom: 1.2rem;
}
.login-box .input-group {
  margin-bottom: 1rem;
}
.login-box .form-control {
  height: 44px;
  border-radius: var(--mg-radius-sm) 0 0 var(--mg-radius-sm);
  font-size: .9rem;
}
.login-box .input-group-text {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  border-radius: 0 var(--mg-radius-sm) var(--mg-radius-sm) 0;
}
.login-box .btn-primary {
  height: 44px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--mg-radius-sm);
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  border: none;
  box-shadow: 0 4px 12px rgba(67,97,238,.3);
  transition: all .25s ease;
}
.login-box .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(67,97,238,.4);
}

/* ========== FLOWCHART STEPPER ========== */
.stage-step {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  margin: 0 .25rem .3rem 0;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  transition: all var(--mg-transition);
}
.stage-step.visited {
  background: #d4f5f0;
  color: #166b5f;
  border-color: #a7ecdf;
}
.stage-step.visited i { color: var(--mg-success); margin-right: .3rem; }
.stage-step.current {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(67,97,238,.25);
  background: var(--mg-primary);
}

/* ========== FILTER BAR ========== */
.filter-bar { background: #fafbfc; border-bottom: 1px solid #f1f5f9; }
.filter-bar .filter { display: inline-flex; flex-direction: column; margin-right: .75rem; margin-bottom: .35rem; }
.filter-bar .filter > label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  margin-bottom: .15rem;
  font-weight: 600;
}
.filter-bar .form-control-sm { min-width: 150px; }

/* ========== SUBMISSIONS ========== */
.sub-name { font-weight: 600; color: #1e293b; }
.sub-meta { font-size: .8rem; color: #64748b; }
.empty-state { text-align: center; color: #64748b; padding: 3rem 1rem; }
.empty-state i { font-size: 2.5rem; margin-bottom: .8rem; opacity: .3; color: #94a3b8; }
.empty-state p { font-size: .85rem; max-width: 300px; margin: 0 auto; }

/* ========== INTEGRATIONS ========== */
.conn-row { display: flex; padding: .5rem 0; border-bottom: 1px solid #f1f5f9; font-size: .85rem; }
.conn-row:last-child { border-bottom: 0; }
.conn-row .k { flex: 0 0 34%; color: #64748b; font-weight: 500; }
.conn-row .v { flex: 1 1 auto; word-break: break-all; color: #334155; }

/* ========== TABS ========== */
.nav-tabs {
  border-bottom: 2px solid #f1f5f9;
}
.nav-tabs .nav-link {
  border: none;
  color: #64748b;
  font-weight: 500;
  font-size: .84rem;
  padding: .7rem 1rem;
  transition: color var(--mg-transition);
  position: relative;
}
.nav-tabs .nav-link:hover {
  color: var(--mg-primary);
  border: none;
}
.nav-tabs .nav-link.active {
  color: var(--mg-primary) !important;
  font-weight: 600;
  background: transparent;
  border: none;
}
.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mg-primary);
  border-radius: 2px 2px 0 0;
}

/* ========== PERMISSION MODULE CARDS ========== */
.perm-module .card-header { background: #f8fafc; border-radius: var(--mg-radius-sm) var(--mg-radius-sm) 0 0; }

/* ========== VALIDATION ========== */
.invalid-feedback.d-block { font-size: .78rem; }
.is-invalid { border-color: var(--mg-danger) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,71,111,.1) !important; }
.is-valid { border-color: var(--mg-success) !important; }

/* ========== KV TABLE (profile data) ========== */
.kv-table th { width: 38%; font-weight: 500; color: #64748b; font-size: .82rem; }
.kv-table td { color: #1e293b; }

/* ========== LOADING SPINNER ========== */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}
.page-loading .spinner-border { width: 2rem; height: 2rem; border-width: .2em; color: var(--mg-primary); }

/* ========== SKELETON LOADER ========== */
.skeleton-box {
  height: 18px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========== CANDIDATE LIST STAGE BADGES ========== */
#tblCandidates .stage-badge,
.stage-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ========== ADD BUTTON ========== */
.btn-add-candidate {
  transition: all .2s ease;
}
.btn-add-candidate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67,97,238,.2);
}

/* ========== FOOTER ========== */
.main-footer {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: .65rem 1rem;
  font-size: .78rem;
  color: #94a3b8;
}

/* ========== TOAST OVERRIDES ========== */
.swal2-popup.swal2-toast {
  border-radius: var(--mg-radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  font-family: var(--mg-font);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .content-header h1 { font-size: 1.15rem; }
  .small-box h3 { font-size: 1.4rem; }
  .filter-bar { padding: .5rem !important; }
  .filter-bar .filter { margin-right: .4rem; }
  .filter-bar .form-control-sm { min-width: 120px; }
  .card-body { padding: .85rem; }
  .pipe-label { flex: 0 0 36%; font-size: .78rem; }
}

@media (max-width: 576px) {
  .login-box { width: 100%; }
  .login-box .card-body { padding: 1rem 1.25rem 1.5rem; }
  .login-box .card-header { padding: 1.5rem 1.25rem .75rem; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeInUp .3s ease; }
.small-box { animation: fadeInUp .35s ease; }

/* ========== SweetAlert2 theme adjustments ========== */
.swal2-styled.swal2-confirm { border-radius: var(--mg-radius-sm) !important; background: var(--mg-primary) !important; }
.swal2-styled.swal2-cancel { border-radius: var(--mg-radius-sm) !important; }

/* ========== FORM BUILDER ========== */
.builder-head { border-top: 6px solid var(--mg-primary, #4361ee); }
.builder-title { font-size: 1.35rem; font-weight: 600; border: 0; border-bottom: 1px solid #e2e8f0; border-radius: 0; padding-left: 0; }
.builder-title:focus { box-shadow: none; border-bottom: 2px solid var(--mg-primary, #4361ee); }
.q-card { border-left: 4px solid transparent; animation: none; }
.q-card:focus-within { border-left-color: var(--mg-primary, #4361ee); }
.q-card.q-mapped { border-left-color: #93c5fd; }
.q-card.q-mapped:focus-within { border-left-color: var(--mg-primary, #4361ee); }
.q-card.q-section { background: #f8fafc; border-left-color: #64748b; }
.q-card.border-danger { border-left-color: #dc3545 !important; }
.q-card .q-num { min-width: 34px; justify-content: center; font-weight: 600; color: #64748b; }
.q-card .q-tools .btn { padding: .15rem .45rem; }
.builder-add { border: 1px dashed #cbd5e1; box-shadow: none; animation: none; }

/* ---------------------------------------------------------------------------
   Queue tabs: a worklist's states as tabs that carry their own counts, so the
   numbers are not repeated in a row of tiles above the very control that filters
   by them. Used by Companies > Hiring Requests.
   --------------------------------------------------------------------------- */
.mgq-tabs { gap: 4px; }
.mgq-tabs .nav-link { color: #475569; border: 1px solid transparent; border-radius: 8px; padding: .4rem .8rem;
  font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.mgq-tabs .nav-link:hover { background: #f1f5f9; }
.mgq-tabs .nav-link .badge { background: #e2e8f0; color: #475569; font-weight: 700; min-width: 20px; }
.mgq-tabs .nav-link.active { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.mgq-tabs .nav-link.active .badge { background: #4338ca; color: #fff; }
.mgq-tabs .nav-link.active.q-zero { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.mgq-tabs .nav-link.active.q-zero .badge { background: #cbd5e1; color: #475569; }

.mgq-meta { background: #fafbfc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .8125rem; color: #64748b; }
.mgq-meta .note { color: #94a3b8; }

/* One requested role, drawn the way the company added it on the public cart. */
.mgc-item { border: 1px solid #eef2f7; border-radius: 10px; padding: 11px 13px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start; }
.mgc-item .idx { width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; color: #4338ca;
  display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 600; flex: none; }
.mgc-item .body { flex: 1; min-width: 0; }
.mgc-item .ttl { font-weight: 600; color: #1e293b; }
.mgc-item .ttl .qty { background: #4338ca; color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 9px; margin-left: 7px; }
.mgc-item .meta { margin-top: 3px; color: #64748b; font-size: .8125rem; }
.mgc-item .meta span + span::before { content: "\00b7"; margin: 0 7px; color: #cbd5e1; }
.mgc-item .tail { flex: none; text-align: right; }
