.select2-container--open {
  z-index: 9999999
}

/* ── Select2 Validation Feedback ── */
.select2-invalid .select2-selection {
  border-color: #ff3e1d !important;
  box-shadow: 0 0 0 0.15rem rgba(255, 62, 29, 0.12) !important;
}

.select2-invalid .select2-selection:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 62, 29, 0.25) !important;
}

.select2-feedback {
  display: none;
  font-size: 0.75rem;
  color: #ff3e1d;
  margin-top: 0.25rem;
}

.select2-feedback.show {
  display: block;
}

.swal2-small-toast {
  font-size: 0.8125rem;
}

#layout-menu {
  z-index: 100000 !important;
}

/* ── DataTable: compact, Sneat-aligned ── */
#dt-container {
  font-size: 0.8125rem;
  /* 13px */
}

#dt-container th {
  font-size: 0.75rem;
  /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #566a7f;
  white-space: nowrap;
}

table.dataTable td {
  padding: 0.4rem 0.75rem;
  vertical-align: middle;
}

table.dataTable thead th {
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #d9dee3;
}

/* ── ColReorder drag feedback ── */
table.dataTable th {
  cursor: grab;
  transition: background-color 0.15s ease;
}

table.dataTable th.DTCR_clonedColumn {
  background: rgba(105, 108, 255, 0.1);
  border: 1px dashed #696cff;
  cursor: grabbing;
  opacity: 0.8;
}

/* ── ColVis button placement ── */
.dt-buttons-colvis {
  display: inline-block;
  margin-right: 0.5rem;
}

.filter {
  font-size: 0.8125rem;
}

/* ── Compact Buttons ── */
.dt-buttons .btn,
.dt-buttons .dt-button {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

/* ── Header action buttons: consistent sizing ── */
.dt-action-buttons .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: 0.375rem;
  vertical-align: middle;
}

.dt-action-buttons .btn .bx {
  font-size: 1rem;
  vertical-align: middle;
  line-height: 1;
}

/* ── ColVis (Columns) button: proportional ── */
.dt-buttons-colvis .btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.dt-buttons-colvis .btn .bx {
  font-size: 0.875rem;
  vertical-align: middle;
  line-height: 1;
}

/* ── Row action icon buttons: consistent 28px squares ── */
.card-datatable .dropdown .btn-icon,
.card-datatable tbody .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* ── Pagination (no padding, original size) ── */
.dataTables_paginate .paginate_button {
  padding: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link {
  padding: 0 !important;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

/* ── Right-align dropdown action columns ── */
#dt-container td:last-child,
#dt-container th:last-child {
  text-align: right;
}

/* ── ColVis dropdown styling ── */
.dt-button-collection {
  padding: 0.25rem 0;
  min-width: 160px;
}

.dt-button-collection .dt-button {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
}

.dt-button-collection .dt-button:hover {
  background-color: rgba(105, 108, 255, 0.08);
}

.dt-button-collection .dt-button.active {
  background-color: rgba(105, 108, 255, 0.12);
  color: #696cff;
}

/* ── Search & Length ── */
.dataTables_filter {
  font-size: 0.8125rem;
}

.dataTables_filter input {
  padding: 0.3rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 0.25rem;
}

.dataTables_length {
  font-size: 0.8125rem;
}

.dataTables_length select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.dataTables_info {
  font-size: 0.75rem;
  color: #697a8d;
}

/* ── Menu & Misc ── */
a.menu-link>div {
  font-size: 0.8125rem;
}

h4 {
  font-size: medium;
}

.dropdown-item {
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════
   LOGIN PAGE — Premium Modern Redesign
   ═══════════════════════════════════════════════════ */

/* ── Left Brand Panel ── */
.login-brand-panel {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483, #2c2c54);
  background-size: 400% 400%;
  animation: loginGradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

@keyframes loginGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.login-brand-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 520px;
}

/* Decorative floating circles — glassmorphism */
.login-decor-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

.login-decor-circle-1 {
  width: 340px;
  height: 340px;
  top: -100px;
  left: -80px;
  animation: loginFloat 8s ease-in-out infinite;
}

.login-decor-circle-2 {
  width: 220px;
  height: 220px;
  bottom: 8%;
  right: -50px;
  animation: loginFloat 7s ease-in-out infinite 1.5s;
}

.login-decor-circle-3 {
  width: 140px;
  height: 140px;
  top: 38%;
  left: 62%;
  animation: loginFloat 9s ease-in-out infinite 3s;
}

/* Soft glow behind logo */
.login-decor-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 108, 255, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

@keyframes loginFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

/* ── Logo ── */
.login-brand-logo-wrap {
  display: inline-block;
  position: relative;
}

.login-brand-logo {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-brand-logo:hover {
  transform: scale(1.04);
}

/* ── Brand Subtitle ── */
.login-brand-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ── Feature Tags (pill badges) ── */
.login-feature-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.login-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;
}

.login-feature-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-feature-tag i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* AI Powered — special accent */
.login-feature-tag--ai {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.2));
  border-color: rgba(139, 92, 246, 0.35);
}

.login-feature-tag--ai:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.35));
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.login-feature-tag--ai i {
  color: #a78bfa;
}

/* WhatsApp Official API — special accent */
.login-feature-tag--wa {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 70, 0.15));
  border-color: rgba(37, 211, 102, 0.3);
}

.login-feature-tag--wa:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.35), rgba(18, 140, 70, 0.3));
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.login-feature-tag--wa i {
  color: #25d366;
}

/* ── Form Enhancements ── */
.login-btn-submit {
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(105, 108, 255, 0.35);
  background: linear-gradient(135deg, #696cff 0%, #7b7fff 100%);
  border: none;
}

.login-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 108, 255, 0.45);
  background: linear-gradient(135deg, #5f61e6 0%, #696cff 100%);
}

.login-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.3);
}

/* ── Divider ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9dee3, transparent);
}

.login-divider-text {
  font-size: 0.75rem;
  color: #a1acb8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Google OAuth Button ── */
.btn-google {
  background: #fff;
  border: 1.5px solid #e0e2e8;
  color: #3c4043;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.6rem 1rem;
  border-radius: 0.625rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-google:active {
  transform: translateY(0);
  background: #f1f3f4;
}

/* ── Input focus enhancement ── */
#formAuthentication .input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.1);
  border-radius: 0.375rem;
}

#formAuthentication .input-group-text {
  color: #697a8d;
  transition: color 0.25s ease;
}

#formAuthentication .input-group:focus-within .input-group-text {
  color: #696cff;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD — Academy-Style Layout
   ═══════════════════════════════════════════════════ */

/* ── Welcome Banner ── */
.dashboard-welcome-card {
  background: linear-gradient(135deg, #696cff 0%, #5f61e6 30%, #7367f0 70%, #8c82ff 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.dashboard-welcome-shape-1 {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-welcome-shape-2 {
  position: absolute;
  bottom: -40px;
  right: 80px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-welcome-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

/* ── Stat Badges in Banner ── */
.dashboard-stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  min-width: 100px;
  transition: background 0.2s ease;
}

.dashboard-stat-badge:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dashboard-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.dashboard-stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Alert Card ── */
.dashboard-alert-card {
  border-left: 3px solid #ff3e1d;
}

/* ── Table Styles ── */
#woTable th {
  padding: 0.625rem 1rem;
  border-bottom: 2px solid #d9dee3;
}

#woTable td {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   WEATHER FORECAST — Compact Swipeable Strip
   ═══════════════════════════════════════════════════ */

.weather-forecast-card {
  border-top: 2px solid #696cff;
}

.weather-forecast-compact .card-body {
  padding: 0.5rem 0.75rem;
}

/* Drag-to-scroll container */
.weather-drag-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.weather-drag-scroll::-webkit-scrollbar {
  display: none;
}

.weather-drag-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.weather-drag-scroll.dragging .weather-day-card {
  pointer-events: none;
}

#weatherForecastContainer {
  gap: 0.5rem;
}

.weather-day-card {
  flex: 0 0 auto;
  min-width: 100px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  text-align: center;
  border: 1px solid #e8eaf0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  scroll-snap-align: start;
}

.weather-day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(105, 108, 255, 0.1);
}

.weather-day-card.weather-today {
  background: linear-gradient(135deg, #696cff 0%, #7b7fff 100%);
  border-color: #696cff;
  color: #fff;
}

.weather-day-card.weather-today .weather-day-label {
  color: #fff;
  font-weight: 700;
}

.weather-day-card.weather-today .weather-day-date {
  color: rgba(255, 255, 255, 0.8);
}

.weather-day-card.weather-today .weather-condition {
  color: rgba(255, 255, 255, 0.9);
}

.weather-day-card.weather-today .weather-temp-min {
  color: rgba(255, 255, 255, 0.65);
}

.weather-day-card.weather-today .weather-temp-sep {
  color: rgba(255, 255, 255, 0.5);
}

.weather-day-card.weather-today .weather-detail {
  color: rgba(255, 255, 255, 0.8);
}

.weather-day-card.weather-today .weather-icon-wrap i {
  color: #FFD54F !important;
  filter: drop-shadow(0 0 4px rgba(255, 213, 79, 0.35));
}

.weather-day-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #566a7f;
  margin-bottom: 0;
}

.weather-day-date {
  font-size: 0.6rem;
  color: #a1acb8;
  margin-bottom: 0.2rem;
}

.weather-icon-wrap {
  margin: 0.15rem 0;
  line-height: 1;
}

.weather-icon-wrap i {
  font-size: 1.35rem !important;
}

.weather-condition {
  font-size: 0.6rem;
  color: #697a8d;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.weather-temp {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.weather-temp-max {
  color: #FF6B35;
}

.weather-temp-min {
  color: #90A4AE;
  font-weight: 500;
  font-size: 0.75rem;
}

.weather-temp-sep {
  color: #d0d4da;
  font-weight: 400;
  margin: 0 0.1rem;
  font-size: 0.75rem;
}

.weather-detail {
  font-size: 0.6rem;
  color: #697a8d;
  white-space: nowrap;
}