/* ============================================================
   InApp Admin Theme — Exact Color Match
   Bootstrap 5 + Font Awesome 6 + Poppins
   Primary: #E66239  Sidebar: #ffffff  Page bg: #f5f5f5
   ============================================================ */

:root {
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 60px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e5e5;
  --sidebar-text: #404040;
  --sidebar-hover-bg: rgba(230, 98, 57, 0.095);
  --sidebar-hover-color: #E66239;
  --sidebar-active-bg: rgba(230, 98, 57, 0.095);
  --sidebar-active-color: #E66239;
  --topbar-height: 60px;
  --topbar-bg: #ffffff;
  --page-bg: #f5f5f5;
  --primary: #E66239;
  --primary-hover: #d45528;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--page-bg);
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #404040;
  margin: 0;
  overflow-x: hidden;
}

/* ── SIDEBAR ─────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  transition: transform 0.25s ease, width 0.25s ease;
  display: flex;
  flex-direction: column;
}

#sidebar::-webkit-scrollbar {
  width: 4px;
}
#sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--sidebar-border);
  text-decoration: none;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.sidebar-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.sidebar-brand-name {
  color: #262626;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.sidebar-brand-sub {
  color: #a3a3a3;
  font-size: 10.5px;
  margin-top: 1px;
  white-space: nowrap;
}

/* Section labels */
.sidebar-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a3a3a3;
  padding: 16px 22px 4px;
}

/* Nav list */
.sidebar-nav {
  padding: 10px 0 20px;
  list-style: none;
  margin: 0;
  flex: 1;
}

.sidebar-nav .nav-item {
  margin: 1px 12px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sidebar-nav .nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-hover-color);
}
.sidebar-nav .nav-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-color);
  font-weight: 500;
}
.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 17px;
  flex-shrink: 0;
}
.nav-label {
  line-height: 1.2;
  overflow: hidden;
}
.nav-label small {
  display: block;
  font-size: 10px;
  color: #a3a3a3;
  font-weight: 400;
}
.sidebar-nav .nav-link.active .nav-label small {
  color: rgba(230, 98, 57, 0.7);
}

/* ── SIDEBAR OVERLAY (mobile) ────────────────────── */
#sidebarOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  z-index: 1039;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
}
#sidebarOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── MAIN CONTENT ────────────────────────────────── */
#mainContent {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

#sidebarToggle {
  background: none;
  border: none;
  color: #737373;
  font-size: 18px;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
#sidebarToggle:hover {
  background: #f5f5f5;
  color: #262626;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* User dropdown in topbar */
.user-dd .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.user-dd .dropdown-toggle:hover {
  background: #f5f5f5;
}
.user-dd .dropdown-toggle::after {
  display: none;
}
.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e5e5;
}
.user-name-topbar {
  font-size: 13px;
  font-weight: 600;
  color: #262626;
}
.user-dd .dropdown-menu {
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  padding: 6px;
}
.user-dd .dropdown-item {
  border-radius: 7px;
  font-size: 13px;
  padding: 8px 12px;
}
.user-dd .dropdown-item:hover {
  background: #f5f5f5;
}

/* ── PAGE CONTENT ────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 24px;
}

/* ── STAT / SUMMARY CARDS ────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.bg-primary-soft  { background: rgba(230, 98, 57, 0.12);  color: #E66239; }
.stat-icon.bg-success-soft  { background: rgba(0, 201, 81, 0.12);   color: #00C951; }
.stat-icon.bg-warning-soft  { background: rgba(240, 177, 0, 0.12);  color: #F0B100; }
.stat-icon.bg-danger-soft   { background: rgba(251, 44, 54, 0.12);  color: #FB2C36; }
.stat-icon.bg-info-soft     { background: rgba(0, 184, 219, 0.12);  color: #00B8DB; }
.stat-icon.bg-orange-soft   { background: rgba(230, 98, 57, 0.12);  color: #E66239; }
.stat-icon.bg-teal-soft     { background: rgba(0, 184, 219, 0.12);  color: #00B8DB; }
.stat-icon.bg-pink-soft     { background: rgba(251, 44, 54, 0.12);  color: #FB2C36; }

.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #262626;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: #737373;
  margin-top: 5px;
  font-weight: 500;
}

/* ── GENERIC CARD ────────────────────────────────── */
.card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 12px 12px 0 0 !important;
  padding: 14px 20px;
  font-weight: 600;
  color: #262626;
  font-size: 14px;
}
.card-body {
  padding: 20px;
}
.card-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-radius: 0 0 12px 12px !important;
  padding: 12px 20px;
}

/* ── BOX TYPICAL (legacy compat) ─────────────────── */
.box-typical {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
.box-typical-header,
.box-typical .panel-heading {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 600;
  color: #262626;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.box-typical .panel-body,
.box-typical-body {
  padding: 20px;
}
.panel-title {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
  border-bottom: none;
  padding-bottom: 0 !important;
  margin: 0;
}
.box-typical-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── TABLE ───────────────────────────────────────── */
.table {
  margin-bottom: 0;
  font-size: 13.5px;
  color: #404040;
}
.table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.table thead th {
  background: #f5f5f5;
  border-bottom: 2px solid #e5e5e5;
  border-top: none;
  color: #525252;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 11px 16px;
  white-space: nowrap;
}
.table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
  border-color: #f0f0f0;
  color: #404040;
}
.table tbody tr {
  transition: background 0.1s;
}
.table tbody tr:hover > td {
  background: rgba(230, 98, 57, 0.035);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: var(--card-shadow);
}
/* Wrap any #datatable or .table inside box-typical-body with card look */
.box-typical-body .table,
.box-typical-body > .table-responsive > .table {
  margin-bottom: 0;
}
.box-typical-body {
  padding: 0;
}
.box-typical-body .table:first-child thead th:first-child { border-radius: 0; }
/* DataTables toolbar area — zero extra padding (toolbar row handles its own) */
.box-typical-body .dataTables_wrapper {
  padding: 0;
}
/* .hidden compatibility */
.hidden { display: none !important; }

/* ── FORMS ───────────────────────────────────────── */
.form-control,
.form-select {
  border-color: #d4d4d4;
  border-radius: 8px;
  font-size: 13.5px;
  padding: 8px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus,
.form-select:focus {
  border-color: #E66239;
  box-shadow: 0 0 0 3px rgba(230, 98, 57, 0.14);
}
.form-label {
  font-weight: 500;
  color: #404040;
  font-size: 13px;
  margin-bottom: 5px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.required {
  color: #ef4444 !important;
  margin: 0 2px;
  display: inline-block;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 16px;
}
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-primary {
  background: #E66239;
  border-color: #E66239;
}
.btn-primary:hover, .btn-primary:focus {
  background: #d45528;
  border-color: #d45528;
}
.btn-outline-primary {
  color: #E66239;
  border-color: #E66239;
}
.btn-outline-primary:hover {
  background: #E66239;
  border-color: #E66239;
}

/* ── BADGES ──────────────────────────────────────── */
.badge {
  border-radius: 6px;
  font-weight: 500;
  font-size: 11px;
}

/* ── PAGINATION ──────────────────────────────────── */
.page-link {
  color: #E66239;
  border-radius: 6px !important;
  margin: 0 2px;
  padding: 5px 11px;
  font-size: 13px;
  border-color: #e5e5e5;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-link:hover,
.page-link:focus {
  color: #fff;
  background: #E66239;
  border-color: #E66239;
  box-shadow: none;
}
.page-item.active .page-link {
  background: #E66239;
  border-color: #E66239;
  color: #fff;
  font-weight: 600;
}
.page-item.disabled .page-link {
  color: #bbb;
  background: #f5f5f5;
  border-color: #eee;
}
.pagination {
  margin: 0;
  gap: 2px;
}

/* ── SECTION HEADER ──────────────────────────────── */
.section-header {
  padding-bottom: 20px;
}

/* ── DATATABLES OVERRIDES ────────────────────────── */
div.dataTables_wrapper {
  padding: 0;
}
/* Toolbar row: export buttons + length left, search right */
.dt-toolbar {
  background: #fafafa !important;
  border-bottom: 1px solid #efefef !important;
}
.dt-footer {
  background: #fafafa !important;
  border-top: 1px solid #efefef !important;
  font-size: 12.5px;
  min-height: 52px;
}
/* Length label inline */
div.dataTables_wrapper div.dataTables_length {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
div.dataTables_wrapper div.dataTables_length label {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
/* Filter label inline */
div.dataTables_wrapper div.dataTables_filter {
  display: flex;
  align-items: center;
  padding: 0;
}
div.dataTables_wrapper div.dataTables_filter label {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
/* Search input — pill with icon */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d4d4d4;
  border-radius: 20px;
  padding: 5px 14px 5px 34px;
  font-size: 13px;
  min-width: 190px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 11px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: #E66239;
  box-shadow: 0 0 0 3px rgba(230, 98, 57, 0.12);
}
/* Length select */
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  padding: 4px 26px 4px 8px;
  font-size: 13px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: #E66239;
  box-shadow: 0 0 0 3px rgba(230, 98, 57, 0.12);
}
/* Info text */
div.dataTables_wrapper div.dataTables_info {
  color: #737373;
  font-size: 12.5px;
  padding: 0;
}
div.dataTables_wrapper div.dataTables_paginate {
  padding: 0;
}
/* Export buttons — minimal flat style */
.dt-buttons {
  display: inline-flex;
  gap: 4px;
  padding: 0;
}
.dt-buttons .btn,
div.dataTables_wrapper .dt-buttons button.btn {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  color: #555;
  border: 1px solid #d4d4d4;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.5;
}
.dt-buttons .btn:hover,
div.dataTables_wrapper .dt-buttons button.btn:hover {
  background: #E66239;
  border-color: #E66239;
  color: #fff;
}
.dt-buttons .btn:focus,
div.dataTables_wrapper .dt-buttons button.btn:focus {
  box-shadow: 0 0 0 3px rgba(230, 98, 57, 0.18);
}

/* ── SELECT2 OVERRIDES ───────────────────────────── */
.select2-container--bootstrap-5 .select2-selection {
  border-color: #d4d4d4;
  border-radius: 8px;
  min-height: 38px;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: #E66239;
  box-shadow: 0 0 0 3px rgba(230, 98, 57, 0.14);
}

/* ── WAIT OVERLAY ────────────────────────────────── */
.wait-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.wait-overlay.active {
  display: flex;
}
.wait {
  background: #fff;
  color: #374151;
  border-radius: 12px;
  padding: 20px 32px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── ALERT / NOTIFICATION ────────────────────────── */
.alert {
  border-radius: 10px;
  border: none;
  font-size: 13.5px;
}

/* ── MODALS ──────────────────────────────────────── */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.modal-header {
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 20px;
}
.modal-footer {
  border-top: 1px solid #e5e5e5;
  border-radius: 0 0 12px 12px;
  padding: 12px 20px;
}

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9ca3af;
}
.breadcrumb-item a {
  color: #E66239;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: #6b7280;
}

/* ── SUMMERNOTE OVERRIDES ────────────────────────── */
.note-editor.note-frame {
  border-color: #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
.note-editor.note-frame .note-toolbar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

/* ── STEP FORM (obd-step-form) ───────────────────── */
.obd-step-form > ul {
  list-style: none;
  width: 100%;
  border-bottom: 3px solid #e5e7eb;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
}
.obd-step-form > ul > li {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  padding: 0.7rem 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.obd-step-form > ul > li > h3 {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
}
.obd-step-form > ul > li > span {
  font-size: 0.8rem;
}
.obd-step-form > ul > li.active {
  background: rgba(230, 98, 57, 0.08);
  color: #E66239;
  border-bottom: 3px solid #E66239;
  margin-bottom: -3px;
}
.obd-step-form > ul > li.active-green {
  background: #dcfce7;
  color: #16a34a;
  border-bottom: 3px solid #16a34a;
  margin-bottom: -3px;
}
.obd-step-form > ul > li.active-gray {
  color: #9ca3af;
  border-bottom: 3px solid #9ca3af;
  margin-bottom: -3px;
}
.obd-step-form .obd-content {
  margin-top: 1.5rem;
}

/* ── PAGINATION (custom) ─────────────────────────── */
.obd-pagination {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0 0;
}
.obd-pagination li {
  list-style: none;
  border-right: 1px solid #d1d5db;
}
.obd-pagination li:last-child {
  border-right: none;
}
.obd-pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  color: #374151;
  background: #fff;
  font-size: 13px;
  transition: background 0.15s;
}
.obd-pagination li a:hover {
  background: rgba(230, 98, 57, 0.08);
  color: #E66239;
}
.obd-pagination li.active a {
  background: #E66239;
  color: #fff;
}
.obd-pagination li.disabled a {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ── MISC UTILITIES ──────────────────────────────── */
.font-16 { font-size: 16px; }
.font-18 { font-size: 18px; }
.font-20 { font-size: 20px; }
.error { border: 1px solid #ef4444 !important; background: rgba(239, 68, 68, 0.05) !important; }
.inline { display: inline-block; }
.text-muted { color: #9ca3af !important; }

/* Service list table */
.service-list tr td { white-space: nowrap; }
.service-list tr td:nth-child(1),
.service-list tr td:nth-child(2) { white-space: normal; }
.service-list .service_name { font-size: 16px; font-weight: 600; color: #111827; }
.service-list .ministry { font-size: 13px; color: #16a34a; margin-top: 5px; font-weight: 600; }
.service-list .office_origin_unit { font-size: 13px; color: #1d4ed8; margin-top: 4px; font-weight: 600; }

/* Employee table */
.employee-name { font-size: 14px; color: #E66239; font-weight: 700; }
.employee-mobile { font-size: 13px; color: #22c55e; font-weight: 600; }
.employee-email { font-size: 13px; color: #374151; }
.unit-name { font-weight: 600; font-size: 13.5px; }
.employee-designation { font-size: 13px; }

/* Modal widths */
.modal-w-600 { max-width: 600px !important; }
.modal-w-800 { max-width: 800px !important; }
.modal-w-900 { max-width: 900px !important; }
.modal-w-1000 { max-width: 1000px !important; }

/* Office admin block */
.office-admin {
  background: #f9fafb;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
}
.office-service-assign {
  padding: 12px;
  margin-bottom: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Image max in union request */
#union-request-details img { max-width: 120px; margin: auto; }
#union-request-details .label { width: 180px; text-align: left; padding: 7px; }

/* Sync */
#service-sync { margin-top: 80px; }
#synchronization { margin-top: 60px; display: none; }
#sync-success { display: none; margin-top: 100px; }
#sync-success i {
  background: #22c55e;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 0 0;
}

/* Decision action */
.decision-action i { margin-right: 8px; }

/* ── LOGIN PAGE ──────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 0;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
}
.login-logo {
  text-align: center;
  margin-bottom: 6px;
}
.login-logo img {
  height: 52px;
  width: auto;
}
.login-card h4 {
  font-size: 21px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 4px;
  text-align: center;
}
.login-card .sub {
  text-align: center;
  color: #737373;
  font-size: 13px;
  margin-bottom: 28px;
}
.login-card .btn-sign {
  width: 100%;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  background: #E66239;
  border-color: #E66239;
  color: #fff;
  border-radius: 8px;
  transition: background 0.2s;
}
.login-card .btn-sign:hover {
  background: #d45528;
  border-color: #d45528;
}
.login-footer-text {
  text-align: center;
  color: #a3a3a3;
  font-size: 12px;
  margin-top: 20px;
  width: 100%;
  flex-shrink: 0;
}

/* ── DESKTOP SIDEBAR COLLAPSE ────────────────────── */
#sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}
#mainContent.full {
  margin-left: var(--sidebar-collapsed-width);
}
#sidebar.collapsed .sidebar-brand {
  justify-content: center;
  padding: 0 10px;
}
#sidebar.collapsed .sidebar-brand-name,
#sidebar.collapsed .sidebar-brand-sub {
  display: none;
}
#sidebar.collapsed .sidebar-section {
  visibility: hidden;
  height: 6px;
  padding: 0;
  margin: 0;
}
#sidebar.collapsed .sidebar-nav .nav-item {
  margin: 2px 0;
}
#sidebar.collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding: 10px 18px;
  margin: 0;
  border-radius: 0;
  position: relative;
}
#sidebar.collapsed .sidebar-nav .nav-link .nav-label {
  display: none;
}
#sidebar.collapsed .sidebar-nav .nav-link i {
  width: auto;
  font-size: 17px;
}
/* Tooltip on collapsed icons */
#sidebar.collapsed .sidebar-nav .nav-link::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #262626;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 9999;
}
#sidebar.collapsed .sidebar-nav .nav-link:hover::after {
  opacity: 1;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991.98px) {
  #sidebar {
    left: -240px;
    transform: none;
    width: var(--sidebar-width) !important;
    transition: left 0.3s ease;
  }
  #sidebar.sidebar-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  /* Restore full sidebar content on mobile regardless of desktop-collapsed state */
  #sidebar.collapsed .sidebar-brand-name,
  #sidebar.collapsed .sidebar-brand-sub {
    display: block !important;
  }
  #sidebar.collapsed .sidebar-section {
    visibility: visible !important;
    height: auto !important;
    padding: 16px 22px 4px !important;
    margin: 0 !important;
  }
  #sidebar.collapsed .sidebar-nav .nav-item {
    margin: 1px 12px !important;
  }
  #sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: flex-start !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
  #sidebar.collapsed .sidebar-nav .nav-link .nav-label {
    display: block !important;
  }
  #sidebar.collapsed .sidebar-brand {
    justify-content: flex-start !important;
    padding: 0 17px !important;
  }
  #sidebar.collapsed .sidebar-nav .nav-link::after {
    display: none;
  }
  #sidebarOverlay {
    display: block;
    pointer-events: none;
  }
  #sidebarOverlay.active {
    pointer-events: auto;
  }
  #mainContent {
    margin-left: 0 !important;
  }
  .page-content {
    padding: 16px;
  }
  .topbar-title {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .stat-value { font-size: 22px; }
  .stat-icon  { width: 44px; height: 44px; font-size: 18px; }
  .login-card { padding: 28px 20px; }
  .page-content { padding: 12px; }
  .row.g-3 > * { padding-left: 8px; padding-right: 8px; }
}
.hidden { display: none !important; }