/* ============================================================
   BCA SOFTWARE - MAIN STYLESHEET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: #c9d6e3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOP NAVBAR
============================================================ */
.top-navbar {
  background: linear-gradient(135deg, #1a3a8f 0%, #1e4db7 60%, #2860d4 100%);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  position: sticky;
  top: 0;
  z-index: 1050;
  flex-shrink: 0;
}
.navbar-logo-box {
  width: 120px;
  min-width: 120px;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 3px solid #e8a000;
  text-decoration: none;
}
.navbar-logo-box .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.navbar-hamburger {
  color: #fff;
  font-size: 20px;
  padding: 0 14px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity .2s;
}
.navbar-hamburger:hover { opacity: 1; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link-item {
  color: #dce8ff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background .2s, color .2s;
  text-decoration: none;
  height: 60px;
  border-bottom: 3px solid transparent;
}
.nav-link-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-link-item.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-bottom: 3px solid #f90;
}
.nav-link-item .fa-caret-down { font-size: 11px; opacity: 0.8; }

/* Navbar Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  z-index: 9999;
  border-top: 3px solid #f90;
  overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.nav-dropdown-menu a:hover { background: #f0f5ff; color: #1a3a8f; }
.nav-dropdown-menu a i { width: 16px; color: #1a3a8f; font-size: 12px; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
}
.nav-icon-btn {
  color: #dce8ff;
  font-size: 17px;
  padding: 6px 9px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #1e4db7;
}
.admin-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
  margin-left: 6px;
}
.admin-btn:hover { background: rgba(255,255,255,0.15); }
.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.5);
}
.admin-name { color: #fff; font-size: 13px; font-weight: 700; }
.admin-name .fa-caret-down { font-size: 11px; margin-left: 3px; }

/* ============================================================
   BODY LAYOUT
============================================================ */
.body-wrap { display: flex; flex: 1; min-height: 0; }

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
  width: 210px;
  min-width: 210px;
  background: linear-gradient(180deg, #1a3a8f 0%, #162f7a 50%, #122568 100%);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  overflow-y: auto;
  flex-shrink: 0;
  transition: width .3s;
}
.sidebar.collapsed { width: 0; min-width: 0; overflow: hidden; }

.sidebar-header {
  background: linear-gradient(90deg, #e87e00, #f5a000);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.sidebar-menu { padding: 4px 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  color: #b8d0ff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .2s;
  text-decoration: none;
  user-select: none;
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); color: #fff; border-left-color: #f90; }
.sidebar-item.active { background: rgba(255,255,255,0.13); color: #fff; border-left-color: #f90; }
.sidebar-item-left { display: flex; align-items: center; gap: 9px; }
.sidebar-item i.main-icon { width: 16px; text-align: center; font-size: 12px; opacity: 0.85; }
.sidebar-item .chevron { font-size: 10px; opacity: 0.7; transition: transform .25s; }
.sidebar-item.open .chevron { transform: rotate(-90deg); }

/* Submenu */
.sidebar-submenu {
  display: none;
  background: rgba(0,0,0,0.15);
  border-left: 3px solid rgba(255,255,255,0.1);
  margin-left: 0;
}
.sidebar-submenu.open { display: block; }
.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 36px;
  color: #90b0e8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.sidebar-subitem:hover { color: #fff; background: rgba(255,255,255,0.08); border-left-color: #f90; }
.sidebar-subitem.active { color: #fff; background: rgba(255,255,255,0.1); border-left-color: #f90; }
.sidebar-subitem i { width: 14px; font-size: 11px; }

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: auto; min-width: 0; }
.content-panel {
  flex: 1;
  margin: 10px;
  background: rgba(255,255,255,0.82);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 16px 18px 22px;
  backdrop-filter: blur(4px);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eef8;
}
.page-title { font-size: 19px; font-weight: 800; color: #1a3a8f; }
.page-title span { font-size: 13px; font-weight: 600; color: #888; margin-left: 6px; }
.breadcrumb-bar {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.breadcrumb-bar a { color: #1a3a8f; text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: underline; }

/* ============================================================
   SEARCH / FILTER BOX
============================================================ */
.filter-box {
  background: #f5f8ff;
  border: 1px solid #dde6f8;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.filter-box-title { font-size: 13px; font-weight: 800; color: #1a3a8f; margin-bottom: 12px; }
.form-label-sm { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 3px; display: block; }
.form-control-sm-custom {
  height: 36px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  padding: 0 10px;
  width: 100%;
}
.form-control-sm-custom:focus { outline: none; border-color: #1a3a8f; box-shadow: 0 0 0 2px rgba(26,58,143,0.12); }

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, #1a3a8f, #2860d4);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(26,58,143,0.3);
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(26,58,143,0.4); color: #fff; }

.btn-orange-custom {
  background: linear-gradient(135deg, #e87e00, #f5a000);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(232,126,0,0.3);
}
.btn-orange-custom:hover { transform: translateY(-1px); color: #fff; }

.btn-green-custom {
  background: linear-gradient(135deg, #1a7a32, #27ae60);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all .2s;
}
.btn-green-custom:hover { transform: translateY(-1px); color: #fff; }

.btn-danger-custom {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all .2s;
}
.btn-sm-edit {
  background: linear-gradient(135deg, #1a6db5, #2980b9);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.btn-sm-delete {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.btn-sm-view {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   DATA TABLE
============================================================ */
.data-table-wrap { overflow-x: auto; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fff;
}
.data-table thead th {
  background: linear-gradient(135deg, #1a3a8f, #2860d4);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.data-table tbody tr { border-bottom: 1px solid #eef0f5; transition: background .15s; }
.data-table tbody tr:hover { background: #f0f5ff; }
.data-table tbody td { padding: 9px 12px; color: #333; vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: #f8faff; }
.data-table tbody tr:nth-child(even):hover { background: #eef3ff; }

/* Status badges */
.badge-active { background: #d4f5e2; color: #1a7a32; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-inactive { background: #fde8e8; color: #c0392b; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-pending { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-approved { background: #d4f5e2; color: #1a7a32; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-rejected { background: #fde8e8; color: #c0392b; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* ============================================================
   STAT SUMMARY CARDS (top of pages)
============================================================ */
.summary-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.summary-card {
  flex: 1;
  min-width: 150px;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.summary-card-info .label { font-size: 11px; font-weight: 700; opacity: 0.85; letter-spacing: 0.4px; }
.summary-card-info .value { font-size: 22px; font-weight: 800; line-height: 1; }
.sc-blue   { background: linear-gradient(135deg, #1a6db5, #2980b9); }
.sc-green  { background: linear-gradient(135deg, #1a7a32, #27ae60); }
.sc-purple { background: linear-gradient(135deg, #6a0dad, #8e44ad); }
.sc-orange { background: linear-gradient(135deg, #c45e00, #e87e00); }
.sc-red    { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.sc-teal   { background: linear-gradient(135deg, #0d6b8a, #1abc9c); }

/* ============================================================
   FORM CARD
============================================================ */
.form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.09);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.form-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a3a8f;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8eef8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-group-custom { margin-bottom: 14px; }
.form-group-custom label { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 4px; display: block; }
.form-group-custom input,
.form-group-custom select,
.form-group-custom textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  color: #333;
  transition: border-color .2s;
}
.form-group-custom input:focus,
.form-group-custom select:focus,
.form-group-custom textarea:focus {
  outline: none;
  border-color: #1a3a8f;
  box-shadow: 0 0 0 2px rgba(26,58,143,0.12);
}
.form-group-custom textarea { min-height: 80px; resize: vertical; }

/* ============================================================
   DASHBOARD CARDS
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card {
  border-radius: 10px;
  padding: 14px 12px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.card-purple  { background: linear-gradient(135deg, #6a0dad, #8e44ad); }
.card-red     { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.card-blue    { background: linear-gradient(135deg, #1a6db5, #2980b9); }
.card-green   { background: linear-gradient(135deg, #1a7a32, #27ae60); }
.card-orange  { background: linear-gradient(135deg, #c45e00, #e87e00); }
.card-teal    { background: linear-gradient(135deg, #0d6b8a, #1abc9c); }
.card-green2  { background: linear-gradient(135deg, #1e6b28, #2ecc71); }
.card-top { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.card-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.card-info { flex: 1; }
.card-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.5px; opacity: 0.92; margin-bottom: 2px; }
.card-count { font-size: 22px; font-weight: 800; line-height: 1; }
.card-view { font-size: 12px; font-weight: 600; opacity: 0.85; display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.card-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.card-toggle {
  width: 30px;
  height: 14px;
  background: rgba(255,255,255,0.3);
  border-radius: 7px;
  position: relative;
  cursor: pointer;
}
.card-toggle::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.card-add-btn {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 12px;
  transition: background .2s;
  border: none;
  text-decoration: none;
}
.card-add-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }
.card-total .card-count { font-size: 28px; margin-top: 4px; }

/* Bottom bars */
.bottom-bars-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all .2s;
  text-decoration: none;
}
.bar-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,0.25); }
.bar-green  { background: linear-gradient(90deg, #1a7a32, #27ae60); }
.bar-orange { background: linear-gradient(90deg, #c45e00, #e87e00); }
.bar-red    { background: linear-gradient(90deg, #a50000, #d32f2f); }

/* Search box (dashboard) */
.search-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.search-box-title { font-size: 14px; font-weight: 800; color: #1a3a8f; margin-bottom: 12px; }
.search-label { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 4px; display: block; }
.search-control {
  height: 38px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #fff;
  padding: 0 10px;
  width: 100%;
  appearance: none;
}
.search-control:focus { outline: none; border-color: #1a3a8f; }
.input-group-date { position: relative; display: flex; align-items: center; }
.input-group-date .date-icon { position: absolute; left: 10px; color: #666; font-size: 13px; z-index: 1; pointer-events: none; }
.input-group-date .search-control { padding-left: 30px; }
.select-wrapper { position: relative; }
.select-wrapper .fa-chevron-down { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #888; font-size: 11px; pointer-events: none; }
.btn-search-orange {
  background: linear-gradient(135deg, #f5a000, #e87e00);
  color: #fff;
  border: none;
  border-radius: 6px;
  height: 38px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.btn-search-orange:hover { transform: translateY(-1px); }
.header-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}

/* ============================================================
   CHART PLACEHOLDER
============================================================ */
.chart-placeholder {
  background: #f5f8ff;
  border: 2px dashed #c0d0f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8099cc;
  font-weight: 700;
  font-size: 14px;
  gap: 8px;
  min-height: 180px;
}
.chart-placeholder i { font-size: 36px; opacity: 0.5; }

/* ============================================================
   ALERT / INFO BOXES
============================================================ */
.info-box {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.info-box-blue { background: #e8f0ff; color: #1a3a8f; border-left: 4px solid #1a3a8f; }
.info-box-green { background: #e6f9ee; color: #1a7a32; border-left: 4px solid #1a7a32; }
.info-box-orange { background: #fff3e0; color: #c45e00; border-left: 4px solid #e87e00; }

/* ============================================================
   FOOTER
============================================================ */
.app-footer {
  background: linear-gradient(90deg, #0d2060, #1a3a8f);
  color: #a8c0ff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
.footer-copyright { display: flex; align-items: center; gap: 8px; }
.footer-copyright i { font-size: 14px; color: #7090d0; }
.footer-copyright strong { color: #fff; }
.footer-weather { display: flex; align-items: center; gap: 10px; color: #dce8ff; }
.footer-weather i { color: #f5d020; font-size: 16px; }
.footer-sep { color: #5070a0; }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sidebar { width: 180px; min-width: 180px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-bars-row { grid-template-columns: 1fr; }
  .nav-links-wrap { display: none; }
  .summary-cards { flex-wrap: wrap; }
}
@media (max-width: 576px) {
  .sidebar { width: 0; min-width: 0; overflow: hidden; position: fixed; height: 100vh; z-index: 999; }
  .sidebar.mobile-open { width: 210px; min-width: 210px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   DATATABLE OVERRIDES – BCA Theme
============================================================ */

/* ── Top bar (length + buttons + search) ── */
.dt-top-bar {
  margin-bottom: 10px;
  padding: 10px 12px 6px;
  background: #f5f8ff;
  border-radius: 8px 8px 0 0;
  border: 1px solid #dde6f8;
  border-bottom: none;
}
.dt-bottom-bar {
  padding: 8px 12px;
  background: #f5f8ff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #dde6f8;
  border-top: none;
}

/* ── Search box ── */
div.dt-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
div.dt-search input {
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  color: #333 !important;
  height: 34px;
  min-width: 200px;
  outline: none;
  transition: border-color .2s;
}
div.dt-search input:focus {
  border-color: #1a3a8f !important;
  box-shadow: 0 0 0 2px rgba(26,58,143,0.12) !important;
}

/* ── Length select ── */
div.dt-length select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #333;
  height: 34px;
  outline: none;
}
div.dt-length label {
  font-size: 12.5px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* ── Export Buttons ── */
.dt-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.dt-buttons button.dt-button {
  border: none;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  height: 34px;
}
.dt-buttons button.dt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}
/* Excel – green */
button.btn-dt-excel,
button.btn-dt-excel:hover {
  background: linear-gradient(135deg, #1a7a32, #27ae60) !important;
  color: #fff !important;
}
/* PDF – red */
button.btn-dt-pdf,
button.btn-dt-pdf:hover {
  background: linear-gradient(135deg, #a50000, #e74c3c) !important;
  color: #fff !important;
}
/* CSV – teal */
button.btn-dt-csv,
button.btn-dt-csv:hover {
  background: linear-gradient(135deg, #0d6b8a, #1abc9c) !important;
  color: #fff !important;
}
/* Print – blue */
button.btn-dt-print,
button.btn-dt-print:hover {
  background: linear-gradient(135deg, #1a3a8f, #2860d4) !important;
  color: #fff !important;
}

/* ── Info text ── */
div.dt-info {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  padding-top: 2px;
}

/* ── Pagination ── */
.pagination {
  justify-content: flex-end;
  margin: 0;
  gap: 3px;
}
.page-item .page-link {
  border-radius: 6px !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a3a8f;
  border: 1px solid #d0dcf0;
  padding: 4px 10px;
  min-width: 34px;
  text-align: center;
  transition: all .15s;
}
.page-item.active .page-link {
  background: linear-gradient(135deg, #1a3a8f, #2860d4) !important;
  border-color: #1a3a8f !important;
  color: #fff !important;
}
.page-item:not(.disabled) .page-link:hover {
  background: #e8f0ff;
  color: #1a3a8f;
}
.page-item.disabled .page-link { color: #bbb; }

/* ── Table header stays themed ── */
.data-table thead th {
  background: linear-gradient(135deg, #1a3a8f, #2860d4) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  white-space: nowrap;
  border: none !important;
  padding: 10px 12px !important;
}
/* Sort arrows coloured white */
.data-table thead th.dt-orderable-asc span.dt-column-order::before,
.data-table thead th.dt-orderable-desc span.dt-column-order::after,
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::after {
  color: rgba(255,255,255,0.7) !important;
  opacity: 1 !important;
}
table.dataTable thead .sorting_asc::before  { color: #fff !important; }
table.dataTable thead .sorting_desc::after  { color: #fff !important; }

/* ── Striped rows ── */
table.dataTable tbody tr:nth-child(even)       { background: #f8faff; }
table.dataTable tbody tr:nth-child(even):hover { background: #eef3ff; }
table.dataTable tbody tr:hover                 { background: #f0f5ff !important; }
table.dataTable tbody td {
  font-size: 12.5px;
  vertical-align: middle;
  padding: 9px 12px !important;
  border-color: #eef0f5 !important;
}

/* ── Responsive: hide overflow button ── */
td.dtr-control { cursor: pointer; }
span.dtr-title  { font-weight: 700; color: #1a3a8f; }

/* ── Remove double border from wrapping div ── */
.data-table-wrap { overflow: visible !important; }
.dataTables_wrapper { overflow-x: auto; }

/* ── Print window styling ── */
@media print {
  .top-navbar, .sidebar, .app-footer,
  .dt-top-bar, .dt-bottom-bar,
  .btn-primary-custom, .btn-orange-custom { display: none !important; }
  .content-panel { margin: 0; box-shadow: none; }
  .data-table thead th { background: #1a3a8f !important; color: #fff !important; -webkit-print-color-adjust: exact; }
}
