/* ================= Nimbus Theme ================= */
:root {
  --bg: #F3F1FA;
  --card: #FFFFFF;
  --primary:#47b2e4;
  --primary-soft: #e4f4fc;
  --secondary: #DB2777;
  --secondary-soft: #FBE0EF;
  --accent: #C026D3;
  --accent-soft: #F5E4FB;
  --success: #8FD694;
  --success-soft: #EEFAEE;
  --warning: #FFD166;
  --warning-soft: #FFF8E8;
  --danger: #FF9AA2;
  --danger-soft: #FFEFF0;
  --text: #374151;
  --text-soft: #8A93A3;
  --gray: #E5E7EB;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.font-display {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Alert ---------- */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 320px;
  display: none;
}

/* ---------- Profile ---------- */
.profile-initial {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.profile-initial-large {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* ---------- Floating Button ---------- */
.floating-add-btn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
  z-index: 9999;
  transition: .3s;
}

.floating-add-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.1);
}

.floating-add-btn i {
  font-size: 26px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  background: #1C1633;
  border-right: 1px solid #2A2247;
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin-bottom: 34px;
  padding-left: 6px;
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(120deg, #47b2e4, #2c8fc9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-section-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B6488;
  font-weight: 600;
  margin: 8px 0 8px 14px;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #B4AECB;
  font-weight: 500;
  font-size: 14px;
  margin: 0 4px 3px;
  text-decoration: none;
  transition: all .18s ease;
}

.nav-link-item i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.nav-link-item.active i {
  background: rgba(255, 255, 255, 0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.nav-link-item.active {
  background: linear-gradient(90deg, #47b2e4, #2c8fc9);
  color: #fff;
  box-shadow: none;
}

.sidebar-footer {
  margin-top: auto;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.sidebar-footer p {
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 8px 0 12px;
}

/* ---------- Layout ---------- */
.main-content {
  margin-left: 250px;
  padding: 26px 32px 50px;
}

.pagetitle {
  margin-bottom: 12px;
}

.section {
  padding-top: 0;
}

#sidebar.sidebar {
  top: 80px !important;
  overflow-y: auto !important;
  width: 250px !important;
  left: 0 !important;
}

body.toggle-sidebar #sidebar.sidebar {
  left: -250px !important;
}

body.toggle-sidebar #main,
body.toggle-sidebar #footer {
  margin-left: 0 !important;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 280px !important;
  }
}

/* ---------- Header & Logo ---------- */
.header {
  height: 80px;
}

.header .logo img {
  max-height: 62px;
}

#main {
  margin-top: 80px;
}

.footer .copyright img,
.header .logo img {
  mix-blend-mode: multiply;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--gray);
  background: var(--card);
  border-radius: 14px;
  padding: 11px 16px 11px 42px;
  font-size: 13.5px;
  transition: all .2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
  transition: all .2s ease;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-2px);
}

.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--card);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--gray);
  border-radius: 14px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: all .2s ease;
}

.profile-chip:hover {
  border-color: var(--primary-soft);
  background: var(--primary-soft);
}

.profile-chip img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-chip .name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
}

.profile-chip .role {
  font-size: 11.5px;
  color: var(--text-soft);
}

/* ---------- Cards ---------- */
.card-soft {
  background: var(--card);
  border: 1px solid var(--gray);
  border-radius: 16px;
  padding: 16px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 2px rgba(23, 31, 46, .04);
  margin-top: 0;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -14px rgba(55, 65, 81, .18);
}

.stat-card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}

.stat-card .stat-value {
  font-size: 25px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 2px;
}

.stat-card .stat-label {
  color: var(--text-soft);
  font-size: 13px;
}

.card-soft.stat-card .section-title {
  color: var(--primary);
}

.trend-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.trend-up {
  background: var(--success-soft);
  color: #4c9a55;
}

.trend-down {
  background: var(--danger-soft);
  color: #d1636c;
}

.section-title {
  font-size: 16.5px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.section-sub {
  color: var(--text-soft);
  font-size: 12.5px;
}

.link-more {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.badge-soft {
  border-radius: 8px;
  font-weight: 600;
  font-size: 11.5px;
  padding: 5px 10px;
}

.badge-success {
  background: var(--success-soft);
  color: #4c9a55;
}

.badge-warning {
  background: var(--warning-soft);
  color: #b3860f;
}

.badge-danger {
  background: var(--danger-soft);
  color: #d1636c;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.progress-thin {
  height: 7px;
  border-radius: 20px;
  background: var(--gray);
}

.progress-thin .progress-bar {
  border-radius: 20px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.table-soft thead th {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: none;
  padding-bottom: 12px;
}

.table-soft tbody td {
  border: none;

  padding: 14px 8px;
  vertical-align: middle;
  font-size: 13.5px;
}

/* ---------- Buttons & Forms ---------- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-soft) !important;
}

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.form-check-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
}

/* ---------- Nav & Profile ---------- */
.nav-profile .dropdown-toggle {
  color: var(--text) !important;
}

.header-nav .nav-icon,
.header-nav a i {
  color: var(--text) !important;
}

.nav-tabs-bordered .nav-link.active {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-bottom-color: #fff !important;
}

/* ---------- Colors override ---------- */
.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--primary) !important;
}

.bg-primary,
.badge.bg-primary {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
}

/* ---------- Pagination ---------- */
.paginate_button.current,
.paginate_button.current:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.dataTables_wrapper .pagination .page-link {
  border: none !important;
  background: transparent !important;
  color: var(--text-soft);
}

.dataTables_wrapper .pagination .page-item.active .page-link {
  color: var(--primary) !important;
  font-weight: 600;
  background: transparent !important;
}

/* ---------- DataTables ---------- */
.dataTables_processing {
  display: none !important;
}

.dataTables_wrapper table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
}

.dataTables_wrapper table.dataTable thead th,
table.dataTable thead th,
.dataTable thead th,
#societyTable thead th {
  background: var(--primary-soft) !important;
  border: none !important;
  color: var(--primary) !important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 10px 12px;
}

table.dataTable thead tr,
.dataTable thead tr,
#societyTable thead tr {
  background: var(--primary-soft) !important;
}

.dataTables_wrapper table.dataTable thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.dataTables_wrapper table.dataTable thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.dataTables_wrapper table.dataTable tbody td {
  border: none !important;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
}

.dataTables_wrapper table.dataTable tbody td:first-child {
  font-weight: 500;
  color: var(--text);
}

.dataTables_wrapper table.dataTable .badge {
  background: transparent !important;
  color: var(--primary) !important;
  font-weight: 600;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.dataTables_wrapper table.dataTable .badge.bg-success,
.dataTables_wrapper table.dataTable .badge.badge-success {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  font-size: 12px;
  color: var(--text-soft);
}

/* ---------- Excel/PDF Buttons ---------- */
.dt-button.buttons-excel,
.buttons-excel {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.badge-active,
td:has(.active) {
  color: var(--primary) !important;
}

/* ---------- Welcome Banner ---------- */
.welcome-banner {
  background: linear-gradient(120deg, #47b2e4, #2c8fc9) !important;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.welcome-banner p {
  font-size: 13.5px;
  opacity: 0.9;
  margin-bottom: 0;
}

.welcome-banner .stat-pill {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
}

.welcome-banner .stat-pill .num {
  font-size: 20px;
  font-weight: 700;
}

.welcome-banner .stat-pill .label {
  font-size: 11px;
  opacity: 0.85;
}

.header-page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.welcome-banner .stat-pill .num {
  font-size: 20px;
  font-weight: 700;
}

.welcome-banner .stat-pill .label {
  font-size: 11px;
  opacity: 0.85;
}
.welcome-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 30%,  rgba(255,255,255,0.22) 0 22px, transparent 23px),
    radial-gradient(circle at 16% 75%, rgba(255,255,255,0.16) 0 14px, transparent 15px),
    radial-gradient(circle at 25% 15%, rgba(255,255,255,0.14) 0 12px, transparent 13px),
    radial-gradient(circle at 88% 25%, rgba(255,255,255,0.20) 0 30px, transparent 31px),
    radial-gradient(circle at 78% 78%, rgba(255,255,255,0.15) 0 18px, transparent 19px),
    radial-gradient(circle at 68% 12%, rgba(255,255,255,0.13) 0 13px, transparent 14px),
    radial-gradient(circle at 38% 55%, rgba(255,255,255,0.12) 0 10px, transparent 11px),
    radial-gradient(circle at 92% 55%, rgba(255,255,255,0.14) 0 16px, transparent 17px);
  pointer-events: none;
}

.welcome-banner > * {
  position: relative;
  z-index: 1;
}

/* ---- Bubble / Pill row (Good Morning banner) ---- */
.bubble-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble {
  display: inline-block;
  height: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.20);
  width: 48px;
}

.bubble.active {
  width: 72px;
  background: rgba(255, 255, 255, 0.75);
}

/* Remove green - change to purple */
.dt-button.buttons-excel,
.buttons-excel {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

table.dataTable thead th {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.badge-active,
td:has(.active) {
  color: var(--primary) !important;
}

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Remove green table header */
table.dataTable thead tr {
  background: var(--primary-soft) !important;
}

table.dataTable thead th {
  color: var(--primary) !important;
}

/* Remove green Active text */
.text-success {
  color: var(--primary) !important;
}

/* Green table header fix */
#societyTable thead tr,
.dataTable thead tr {
  background: var(--primary-soft) !important;
}

#societyTable thead th,
.dataTable thead th {
  color: var(--primary) !important;
  border-color: var(--primary-soft) !important;
}

/* Fix green table header */
table.dataTable thead tr {
  background-color: var(--primary-soft) !important;
}

table.dataTable thead th {
  color: var(--primary) !important;
}

/* Fix green Active text */
.text-success {
  color: var(--primary) !important;
}

.header-page-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary, #063638);
  flex: 1;
  text-align: center;
}

.floating-export-wrapper {
  position: fixed;
  right: 100px;
  bottom: 25px;
  /* width: 60px;
  height: 200px; */
  z-index: 99999;
}

/* =========================
  MAIN DOWNLOAD BUTTON
========================= */

.floating-excel-btn {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 60px;
  height: 60px;

  border: none;
  background: var(--primary);
  color: #fff;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 26px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);

  cursor: pointer;

  transition: .3s;
}

.floating-excel-btn:hover {
  color: #fff;
  transform: scale(1.1);
}


/* =========================
   EXCEL / PDF BUTTONS
========================= */

.floating-export-option {
  position: absolute;

  right: 5px;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);

  /* Hidden */
  opacity: 0;
  visibility: hidden;

  transform: translateY(20px) scale(.5);

  transition: all .25s ease;
}


/* Excel */
.excel-btn {
  bottom: 75px;
  background: #198754;
}


/* PDF */
.pdf-btn {
  bottom: 135px;
  background: #dc3545;
}

/* SHOW BUTTONS */
.floating-export-wrapper.active .floating-export-option {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}


/*  ICON  */
.floating-export-option i {
  font-size: 22px;
}

#exportMainIcon {
  transition: transform .3s ease;
}

/* Download -> rotate */
.floating-export-wrapper.active #exportMainIcon {
  transform: rotate(45deg);
}

.dataTables_wrapper .dt-buttons {
  display: none !important;
}

/* ---------- Dropdown Arrow & Smooth Rotate ---------- */
.setting-arrow-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.setting-arrow {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.todos-setting-toggle[aria-expanded="true"] .setting-arrow {
  transform: rotate(180deg);
}

/* ---------- Submenu List & Items ---------- */
.sidebar .nav-content {
  list-style: none !important;
  padding: 4px 0 6px 18px !important;
  margin: 0 !important;
}

.sidebar .nav-content li {
  list-style: none !important;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #B4AECB !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.nav-sub-item i {
  font-size: 14px;
  color: #8A93A3;
  transition: color 0.18s ease;
}

.nav-sub-item:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(3px);
}

.nav-sub-item:hover i {
  color: var(--secondary);
}

.nav-sub-item.active {
  color: #FFFFFF !important;
  background: rgba(124, 58, 237, 0.2);
  font-weight: 600;
}

.nav-sub-item.active i {
  color: var(--accent);
}

.nav-sub-item i.bi-circle-fill {
  font-size: 6px !important;
  margin-right: 4px;
}
/* =====================================================
   LIGHT-BLUE COLLAPSIBLE SIDEBAR
   ===================================================== */
:root {
  --sb-w: 250px;
  --sb-w-mini: 72px;
  --sb-bg: #EAF5FC;
  --sb-line: #D3E9F7;
  --sb-ink: #3A6884;
  --sb-ink-strong: #17557C;
  --sb-hover: #D9EEFA;
  --sb-active: #CDE8F8;
  --sb-brand: #47b2e4;
  --sb-brand-d: #2c8fc9;
  --sb-ease: cubic-bezier(.65, .05, .25, 1);
}

/* ---- Colors + item look (all screen sizes) ---- */
body #sidebar.sidebar {
  background: var(--sb-bg) !important;
  border-right: 1px solid var(--sb-line) !important;
  box-shadow: none !important;
  padding: 14px 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#sidebar .nav-link-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 12px !important;
  margin: 0 0 3px !important;
  border-radius: 12px;
  color: var(--sb-ink) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  background: transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#sidebar .nav-link-item i {
  width: 28px !important;
  height: 28px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--sb-ink);
  transition: background .2s ease, color .2s ease;
}

#sidebar .nav-link-item:hover {
  background: var(--sb-hover) !important;
  color: var(--sb-ink-strong) !important;
  transform: translateX(3px);
}

#sidebar .nav-link-item.active {
  background: var(--sb-active) !important;
  color: var(--sb-ink-strong) !important;
  box-shadow: none !important;
}

#sidebar .nav-link-item.active i {
  background: var(--sb-brand) !important;
  color: #fff !important;
}

#sidebar .nav-link-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sb-brand-d);
}

#sidebar .nav-link-item > span {
  transition: opacity .22s ease, transform .3s ease;
}

#sidebar .nav-section-label {
  color: #7FA6BF;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s ease;
}

/* ---- Submenus (Task, Stock ops, Settings...) ---- */
#sidebar .nav-content {
  margin-left: 26px !important;
  padding: 2px 0 4px 6px !important;
  border-left: 1.5px solid #C4E2F4;
}

#sidebar .nav-sub-item {
  color: var(--sb-ink) !important;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

#sidebar .nav-sub-item i {
  color: #8FB6CF;
}

#sidebar .nav-sub-item:hover {
  background: var(--sb-hover);
  color: var(--sb-ink-strong) !important;
}

#sidebar .nav-sub-item.active {
  color: var(--sb-brand-d) !important;
  background: transparent;
}

#sidebar .nav-sub-item.active i {
  color: var(--sb-brand-d);
}

/* ---- Tooltip (created by JS) ---- */
.sb-tip {
  position: fixed;
  z-index: 2000;
  background: #17557C;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  white-space: nowrap;
}

/* ---- Collapse to icon rail (desktop only) ---- */
@media (min-width: 1200px) {
  body #sidebar.sidebar {
    left: 0 !important;
    width: var(--sb-w) !important;
    transition: width .38s var(--sb-ease) !important;
  }

  body #main,
  body #footer {
    transition: margin-left .38s var(--sb-ease) !important;
  }

  body.toggle-sidebar #sidebar.sidebar {
    left: 0 !important;
    width: var(--sb-w-mini) !important;
  }

  body.toggle-sidebar #main,
  body.toggle-sidebar #footer {
    margin-left: calc(var(--sb-w-mini) + 30px) !important;
  }

  body.toggle-sidebar #sidebar .nav-link-item > span {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  body.toggle-sidebar #sidebar .nav-link-item:hover {
    transform: none;
  }

  body.toggle-sidebar #sidebar .nav-content {
    display: none !important;
  }

  body.toggle-sidebar #sidebar .nav-section-label {
    opacity: 0;
  }
}

/* stops the animation replaying on page load */
body.sb-no-anim #sidebar.sidebar,
body.sb-no-anim #main,
body.sb-no-anim #footer {
  transition: none !important;
}
/* =====================================================
   BLUE HEADER + MODULE LAUNCHER (mixed blue shades)
   ===================================================== */

/* ---- Top header ---- */
body .header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #D3E9F7;
}

body .header .toggle-sidebar-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: #E3F3FC;
  color: #2c8fc9;
  transition: background .2s ease;
}

body .header .toggle-sidebar-btn:hover {
  background: #CDE8F8;
}

body .header-page-title {
  color: #2c8fc9;
  background: #E3F3FC;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---- Module group box + header ---- */
body .erp-group-box {
  --gs: #2c8fc9;
  --gt: #DCEFFA;
  --gd: #17557C;
  border: 1px solid #D3E9F7;
  box-shadow: 0 2px 8px rgba(47, 127, 214, .06);
}

body .erp-group-box:hover {
  border-color: #B9DCF1;
  box-shadow: 0 6px 18px rgba(47, 127, 214, .12);
}

body .erp-gtone-0 { --gs: #2F7FD6; --gt: #DDEBFA; --gd: #1A5AA3; }
body .erp-gtone-1 { --gs: #2c8fc9; --gt: #DCEFFA; --gd: #17557C; }
body .erp-gtone-2 { --gs: #1FA0BC; --gt: #DAF3F8; --gd: #127489; }

body .erp-group-header {
  background: var(--gt);
  color: var(--gd);
}

body .erp-group-header:hover {
  background: var(--gt);
  filter: brightness(.96);
}

body .erp-header-left i {
  color: var(--gs);
}

body .erp-header-badge {
  background: #fff;
  color: var(--gd);
  border: 1px solid rgba(255, 255, 255, .6);
}

body .erp-header-chevron {
  color: var(--gd);
}

body .erp-group-body {
  background: #F7FBFE;
  border-top: 1px solid #D3E9F7;
}

/* ---- Module tiles + icons (4 rotating blue shades) ---- */
body .erp-module-tile {
  --s: #47b2e4;
  --t: #E3F3FC;
  --d: #2c8fc9;
  transition: background-color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}

body .erp-tone-0 { --s: #47b2e4; --t: #E3F3FC; --d: #2c8fc9; }
body .erp-tone-1 { --s: #2F7FD6; --t: #E0EDFB; --d: #1F64B0; }
body .erp-tone-2 { --s: #1FA8C4; --t: #DDF4F8; --d: #137C93; }
body .erp-tone-3 { --s: #6B8EE8; --t: #E7EDFC; --d: #4566C6; }

body .erp-module-tile:hover {
  background: #fff;
  border-color: #D3E9F7;
  box-shadow: 0 4px 14px rgba(47, 127, 214, .12);
  transform: translateY(-3px);
}

body .erp-icon-wrapper {
  border-radius: 16px;
  background: var(--t);
  color: var(--d);
  border: none;
  box-shadow: none;
}

body .erp-module-tile:hover .erp-icon-wrapper {
  background: var(--s);
  color: #fff;
  border-color: transparent;
}

body .erp-tile-label {
  color: #17557C;
}

body .erp-tile-code {
  color: var(--d);
  background: var(--t);
}

/* ---- Tooltip ---- */
body .tooltip-inner {
  background-color: #17557C !important;
  color: #fff !important;
  border: none;
  box-shadow: none;
}

body .bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #17557C !important;
}

/* ---- Superadmin metric cards + banner (purple/pink to blue) ---- */
body .sa-metric-card {
  border: 1px solid #D3E9F7;
  box-shadow: 0 2px 8px rgba(47, 127, 214, .05);
}

body .sa-metric-card:hover {
  border-color: #B9DCF1;
  box-shadow: 0 4px 14px rgba(47, 127, 214, .12);
}

body .sa-banner {
  box-shadow: 0 8px 24px rgba(47, 127, 214, .22);
}
/* =====================================================
   WATERCOLOR BLUE THEME (sidebar + header + modules)
   ===================================================== */

/* ---- Sidebar colors now come from these variables ---- */
:root {
  --sb-ink: #245F86;
  --sb-ink-strong: #023E8A;
  --sb-hover: rgba(255, 255, 255, .5);
  --sb-active: rgba(255, 255, 255, .82);
  --sb-brand: #0077B6;
  --sb-brand-d: #0077B6;
  --sb-line: #D3E6F5;
}

/* ---- Sidebar watercolor wash ---- */
body #sidebar.sidebar {
  background-color: #EEF5FD !important;
  background-image:
    radial-gradient(ellipse 150% 16% at 50% 92%, rgba(70, 160, 235, .40), transparent 72%),
    radial-gradient(ellipse 90% 7% at 28% 30%, rgba(255, 255, 255, .9), transparent 72%),
    radial-gradient(ellipse 120% 9% at 70% 52%, rgba(160, 205, 250, .45), transparent 72%),
    linear-gradient(180deg, #F6FAFE 0%, #E6F1FD 26%, #CFE6FC 46%, #B7DBFC 62%, #8FCDFC 82%, #A8DAFC 100%) !important;
  background-repeat: no-repeat !important;
  background-attachment: local !important;
  border-right: 1px solid #D3E6F5 !important;
}

/* frosted glass active item */
body #sidebar .nav-link-item.active {
  border: 1px solid rgba(255, 255, 255, .9);
}

/* ---- Top header ---- */
body .header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #D3E6F5;
}

body .header .toggle-sidebar-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: #E3F3FC;
  color: #0077B6;
  transition: background .2s ease;
}

body .header .toggle-sidebar-btn:hover {
  background: #CAF0F8;
}

body .header-page-title {
  color: #0077B6;
  background: #E3F3FC;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---- Module group box + watercolor header ---- */
body .erp-group-box {
  --gs: #0077B6;
  --ge: #8FCDFC;
  border: 1px solid #DCEAF5;
  box-shadow: 0 2px 8px rgba(2, 62, 138, .05);
}

body .erp-group-box:hover {
  border-color: #B9DCF1;
  box-shadow: 0 6px 18px rgba(2, 62, 138, .10);
}

body .erp-gtone-0 { --gs: #023E8A; --ge: #8FCDFC; }
body .erp-gtone-1 { --gs: #0077B6; --ge: #7FC3F2; }
body .erp-gtone-2 { --gs: #0096C7; --ge: #9ED8F5; }

body .erp-group-header {
  background:
    radial-gradient(ellipse 55% 160% at 100% 100%, rgba(70, 160, 235, .5), transparent 72%),
    linear-gradient(90deg, #F2F8FE 0%, #CFE6FC 45%, var(--ge)) !important;
  color: #023E8A;
  padding: 12px 16px;
}

body .erp-group-header:hover {
  filter: brightness(.97);
}

body .erp-header-left > i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--gs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

body .erp-header-badge {
  background: rgba(255, 255, 255, .75);
  color: #0B5A8F;
  border: none;
}

body .erp-header-chevron {
  color: #0B5A8F;
}

body .erp-group-body {
  background: #fff;
  border-top: 1px solid #DCEAF5;
}

/* ---- Module tiles + icon colors (palette blues) ---- */
body .erp-module-tile {
  --s: #0077B6;
  --t: #E0F2FA;
  --d: #0077B6;
  transition: background-color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}

body .erp-tone-0 { --s: #0077B6; --t: #E0F2FA; --d: #0077B6; }
body .erp-tone-1 { --s: #023E8A; --t: #E1E9F5; --d: #023E8A; }
body .erp-tone-2 { --s: #0096C7; --t: #DFF3F9; --d: #0096C7; }
body .erp-tone-3 { --s: #00B4D8; --t: #DCF5FA; --d: #0088A8; }

body .erp-module-tile:hover {
  background: #fff;
  border-color: #D3E9F7;
  box-shadow: 0 4px 14px rgba(2, 62, 138, .10);
  transform: translateY(-3px);
}

body .erp-icon-wrapper {
  border-radius: 16px;
  background: var(--t);
  color: var(--d);
  border: none;
  box-shadow: none;
}

body .erp-module-tile:hover .erp-icon-wrapper {
  background: var(--s);
  color: #fff;
  border-color: transparent;
}

body .erp-tile-label { color: #10466B; }
body .erp-tile-code  { color: var(--d); background: var(--t); }

/* ---- Card layout (only where the grid has class "erp-cards") ---- */
body .erp-launcher-grid.erp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body .erp-cards .erp-module-tile {
  width: auto;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid #E4EEF5;
  border-radius: 10px;
  background: #fff;
}

body .erp-cards .erp-module-tile:hover {
  border-color: var(--s);
  background: #F8FCFE;
  transform: translateY(-1px);
}

body .erp-cards .erp-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 19px;
  margin-bottom: 0;
  flex-shrink: 0;
}

body .erp-cards .erp-tile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body .erp-cards .erp-tile-label {
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

body .erp-cards .erp-tile-code {
  background: none;
  padding: 0;
  margin-top: 2px;
  font-size: 10.5px;
  color: #7A9BB0;
}

body .erp-tile-arrow { display: none; }

body .erp-cards .erp-tile-arrow {
  display: block;
  margin-left: auto;
  font-size: 14px;
  color: var(--s);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

body .erp-cards .erp-module-tile:hover .erp-tile-arrow {
  opacity: 1;
  transform: none;
}

@media (max-width: 575px) {
  body .erp-launcher-grid.erp-cards { grid-template-columns: 1fr; }
}

/* ---- Tooltip ---- */
body .tooltip-inner {
  background-color: #023E8A !important;
  color: #fff !important;
  border: none;
  box-shadow: none;
}

body .bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #023E8A !important;
}

/* ---- Superadmin metric cards + banner ---- */
body .sa-metric-card {
  border: 1px solid #DCEAF5;
  box-shadow: 0 2px 8px rgba(2, 62, 138, .05);
}

body .sa-metric-card:hover {
  border-color: #B9DCF1;
  box-shadow: 0 4px 14px rgba(2, 62, 138, .10);
}

body .sa-banner {
  box-shadow: 0 8px 24px rgba(2, 62, 138, .20);
}
/* ---- Menu (3-line) button ---- */

/* tablet / mobile: left of the logo in the header */
@media (max-width: 1199px) {
  body .header {
    padding-left: 10px;
  }

  body .header .toggle-sidebar-btn {
    order: -1;
    margin: 0 14px 0 0;
  }
}

/* desktop: quiet collapse icon under the logo (Option A) */
@media (min-width: 1200px) {
    body #header .toggle-sidebar-btn {
    position: fixed !important;
    top: 92px !important;
    left: 204px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 17px !important;
    border: 1px solid #D5E1EC !important;        /* soft grey-blue edge */
    border-radius: 9px !important;
    background: #FFFFFF !important;              /* clean white */
    box-shadow: 0 1px 3px rgba(60, 100, 140, .14) !important;
    color: #4A7396 !important;                   /* grey-blue icon */
    cursor: pointer;
    z-index: 1000;
    transition: left .38s cubic-bezier(.65, .05, .25, 1), background .2s ease, border-color .2s ease, color .2s ease;
  }

  body #header .toggle-sidebar-btn:hover {
    background: #F1F6FB !important;              /* faint grey-blue */
    border-color: #B7CCDF !important;
    color: #0077B6 !important;                   /* brand blue on hover */
  }
  body #header .toggle-sidebar-btn:focus-visible {
    outline: 2px solid #8FCDFC;
    outline-offset: 1px;
  }

  /* clearer icon than the 3 lines */
  body #header .toggle-sidebar-btn::before {
    content: "\f276" !important;     /* chevron-bar-left */
  }

  /* collapsed rail: centered in the 72px width */
  body.toggle-sidebar #header .toggle-sidebar-btn {
    left: 20px !important;
  }

  body.toggle-sidebar #header .toggle-sidebar-btn::before {
    content: "\f277" !important;     /* chevron-bar-right */
  }

  /* more space between the button and the first menu item */
  body #sidebar.sidebar {
    padding-top: 64px !important;
  }
}

/* ---- Shorter gap between sidebar and page content ---- */
@media (min-width: 1200px) {
  body #main,
  body #footer {
    margin-left: 250px !important;
  }

  body #main {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.toggle-sidebar #main,
  body.toggle-sidebar #footer {
    margin-left: 72px !important;
  }
}
/* ---- Square tile layout (class "erp-squares") ---- */
body .erp-launcher-grid.erp-squares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}

body .erp-squares .erp-module-tile {
  width: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid #E4EEF5;
  border-radius: 14px;
  background: #fff;
}

body .erp-squares .erp-module-tile:hover {
  border-color: var(--s);
  background: #F8FCFE;
  box-shadow: 0 6px 16px rgba(2, 62, 138, 0.12);
  transform: translateY(-2px);
}

body .erp-squares .erp-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 0;
  flex-shrink: 0;
}

body .erp-squares .erp-tile-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

body .erp-squares .erp-tile-label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

body .erp-squares .erp-tile-code {
  background: none;
  padding: 0;
  margin-top: 2px;
  font-size: 10px;
  color: #7A9BB0;
}

body .erp-squares .erp-tile-arrow { display: none; }

@media (max-width: 575px) {
  body .erp-launcher-grid.erp-squares {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  }
}
<link href="{{ asset('assets/css/module-tabs.css') }}?v=1" rel="stylesheet">
/* ---- remove light-grey row lines from all lists ---- */
table.dataTable.no-footer,
.dataTables_wrapper table.dataTable tbody td,
.dataTables_wrapper table.dataTable tbody th {
  border-bottom: 0 !important;
}

/* ===== Custom Sidebar Submenu Fix ===== */
#sidebar .nms-sub-content {
  list-style: none !important;
  padding: 4px 0 6px 18px !important;
  margin: 0 !important;
}

#sidebar .nms-sub-content li {
  list-style: none !important;
}

#sidebar .nms-sub-content.collapse:not(.show) {
  display: none !important;
}

#sidebar .nms-sub-content.collapse.show {
  display: block !important;
}