/* =====================================================================
   SAAP Executive Modern Theme — Refined, Clean, Luxury Gov/EdTech UI
   ===================================================================== */

:root {
  --saap-font: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  --bs-body-font-family: var(--saap-font);
  --saap-navy-950: #081020;
  --saap-navy-900: #0f172a;
  --saap-navy-800: #1e293b;
  --saap-indigo-600: #4f46e5;
  --saap-indigo-500: #6366f1;
  --saap-sky-500: #0ea5e9;
  --saap-emerald-500: #10b981;
  --saap-amber-500: #f59e0b;
  --saap-rose-500: #f43f5e;
  --saap-bg: #f4f7fb;
  --saap-surface: #ffffff;
  --saap-border: rgba(15, 23, 42, 0.08);
  --saap-text: #0f172a;
  --saap-muted: #64748b;
  --saap-radius-lg: 18px;
  --saap-radius-md: 12px;
  --saap-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --saap-shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.14);
  --saap-shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: var(--saap-font);
}

body {
  background-color: var(--saap-bg);
  color: var(--saap-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.92rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.font-display,
.modal-title,
.card-header,
.navbar-brand,
button,
input,
select,
textarea,
.form-control,
.form-select,
.input-group-text,
.table,
.alert,
.dropdown-menu,
.modal,
.btn,
.badge,
.form-label,
.nav-link,
.page-link {
  font-family: var(--saap-font);
}

h1, h2, h3, h4, h5, h6,
.font-display,
.modal-title,
.card-header,
.navbar-brand {
  letter-spacing: -0.01em;
}

.form-label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--saap-navy-800);
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==================== PAGE VISIBILITY ==================== */
.app-page {
  display: none;
  animation: saapFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-page.active {
  display: block;
}

#page-login.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#page-home.active {
  display: flex;
  flex-direction: column;
}

@keyframes saapFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== LUXURY BACKGROUNDS ==================== */
.bg-executive-dark {
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.25), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.14), transparent 50%),
    linear-gradient(155deg, #081020 0%, #0f1b33 50%, #162544 100%);
  color: #ffffff;
}

.home-hero-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.34), transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(14, 165, 233, 0.24), transparent 42%),
    linear-gradient(135deg, #0b1528 0%, #132242 58%, #1d3560 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4.5rem;
}

/* ==================== LOGIN CARD ==================== */
.login-shell {
  width: 100%;
  max-width: 440px;
  padding: 1rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.45);
  padding: 2.25rem 2rem;
  color: var(--saap-text);
}

.logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.logo-ring img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-ring-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--saap-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: var(--saap-shadow-sm);
}

.logo-ring-sm img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
}

/* ==================== USER PILL & TOPBAR ==================== */
.user-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sticky-header-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--saap-border);
  box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.1);
}

.nav-pill-btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  color: #334155;
  background: transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill-btn:hover {
  background: #f1f5f9;
  color: var(--saap-indigo-600);
}

.nav-pill-btn.active-nav {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.55);
}

/* ==================== HOME KPI CARDS & MODULE GRID ==================== */
.home-overlap-section {
  margin-top: -3.25rem;
  position: relative;
  z-index: 5;
}

.kpi-card {
  background: var(--saap-surface);
  border-radius: var(--saap-radius-lg);
  border: 1px solid var(--saap-border);
  box-shadow: var(--saap-shadow-md);
  padding: 1.25rem 1.35rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--saap-shadow-lg);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.kpi-value {
  font-family: var(--saap-font);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--saap-navy-900);
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--saap-muted);
  font-weight: 600;
}

.module-card {
  background: var(--saap-surface);
  border: 1px solid var(--saap-border);
  border-radius: var(--saap-radius-lg);
  padding: 1.45rem;
  text-align: left;
  width: 100%;
  height: 100%;
  box-shadow: var(--saap-shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--saap-text);
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--saap-radius-lg);
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--saap-shadow-lg);
  color: var(--saap-text);
}

.module-card:hover::after {
  border-color: rgba(79, 70, 229, 0.25);
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.module-title {
  font-family: var(--saap-font);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--saap-navy-900);
}

.module-desc {
  font-size: 0.87rem;
  color: var(--saap-muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.module-cta {
  font-size: 0.83rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==================== ELEVATED CARDS & SECTIONS ==================== */
.card-custom {
  background: var(--saap-surface);
  border-radius: var(--saap-radius-lg);
  border: 1px solid var(--saap-border);
  box-shadow: var(--saap-shadow-md);
}

.section-title {
  border-left: 4px solid var(--saap-indigo-600);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-family: var(--saap-font);
  font-weight: 600;
  color: var(--saap-navy-900);
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0) 100%);
  border-radius: 0 10px 10px 0;
}

/* ==================== FORMS & INPUTS ==================== */
.form-control {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.52rem 0.82rem;
  font-size: 0.94rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.52rem 2.45rem 0.52rem 0.85rem;
  font-size: 0.94rem;
  background-position: right 0.75rem center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-select-sm {
  padding: 0.32rem 2.1rem 0.32rem 0.65rem;
}

.owner-chips-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.1);
  color: #3730a3;
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.owner-chip button {
  border: none;
  background: transparent;
  color: #4338ca;
  padding: 0;
  line-height: 1;
  font-size: 0.85rem;
  cursor: pointer;
}

.owner-chip button:hover {
  color: #dc2626;
}

/* ==================== THAI BUDDHIST ERA (พ.ศ.) DATE INPUT ==================== */
.thai-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.thai-date-wrap input[type="date"].thai-date-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.thai-date-display {
  padding-right: 2.35rem !important;
  background-color: #ffffff;
  cursor: pointer;
}

.thai-date-display:disabled {
  background-color: #e9ecef !important;
  cursor: not-allowed;
}

.thai-date-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #4f46e5;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  cursor: pointer;
}

.thai-date-btn:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.1);
}

.thai-date-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.cut-budget-table .cut-input {
  width: 100%;
  min-width: 72px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.84rem;
  background-color: #ffffff;
  color: #0f172a;
}

.cut-budget-table .cut-input.c-item {
  min-width: 180px;
}

.cut-budget-table .thai-date-display {
  padding: 4px 28px 4px 8px !important;
  font-size: 0.84rem;
  min-width: 126px;
  text-align: center;
  font-weight: 600;
  color: #0f172a !important;
}

.cut-budget-table .thai-date-btn {
  right: 4px;
  font-size: 0.82rem;
}

.cut-budget-table tr.cut-row-saved td {
  background-color: #f8fafc;
}

.cut-budget-table tr.cut-row-saved .cut-input:disabled,
.cut-budget-table tr.cut-row-saved .thai-date-display:disabled {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  cursor: not-allowed;
}

.cut-budget-table tr.cut-row-editing td {
  background-color: rgba(245, 158, 11, 0.12) !important;
}

.cut-budget-table tr.cut-row-new td {
  background-color: rgba(14, 165, 233, 0.07) !important;
}

.cut-action-cell {
  white-space: nowrap;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--saap-indigo-500);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-group-text {
  border-radius: 10px;
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: #475569;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-executive {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.65);
  transition: all 0.2s ease;
}

.btn-executive:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ==================== TABLES ==================== */
.table-responsive {
  border-radius: 14px;
  border: 1px solid var(--saap-border);
}

.table {
  margin-bottom: 0;
}

.table thead th {
  font-family: var(--saap-font);
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.035);
}

.budget-input {
  text-align: right;
  font-weight: 700;
  color: #1d4ed8;
}

.budget-input[readonly] {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  cursor: not-allowed;
}

/* ==================== TABS & MODALS ==================== */
.nav-tabs {
  border-bottom: 1px solid #e2e8f0;
  gap: 6px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 12px 12px 0 0;
  color: #475569;
  padding: 0.7rem 1.2rem;
  font-family: var(--saap-font);
  font-size: 0.92rem;
  transition: all 0.16s ease;
}

.nav-tabs .nav-link:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--saap-indigo-600);
}

.nav-tabs .nav-link.active {
  background: #ffffff;
  color: var(--saap-indigo-600);
  border: 1px solid #e2e8f0;
  border-bottom-color: #ffffff;
  box-shadow: 0 -4px 12px -8px rgba(15, 23, 42, 0.12);
}

.modal-content {
  border-radius: 20px;
  border: 1px solid var(--saap-border);
  box-shadow: 0 28px 60px -16px rgba(15, 23, 42, 0.35);
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.modal-body {
  padding: 1.4rem 1.5rem;
}

.modal-footer {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ==================== IMAGES & PREVIEWS ==================== */
.img-preview-box {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  background-color: #f8fafc;
}

.logo-preview-box {
  max-height: 96px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 6px;
  background: #ffffff;
}

/* ==================== ACCORDION (PROJECT LIST) ==================== */
.accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid var(--saap-border) !important;
  box-shadow: var(--saap-shadow-sm);
}

.accordion-button {
  font-family: var(--saap-font);
  background-color: #ffffff;
}

.accordion-button:not(.collapsed) {
  background-color: #f8faff;
  color: var(--saap-navy-900);
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

/* ==================== FOOTER ==================== */
.custom-footer,
.footer-credit {
  background: linear-gradient(135deg, #0b1528 0%, #132242 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 16px 20px;
  font-size: 0.88rem;
  border-top: 2px solid rgba(99, 102, 241, 0.45);
  margin-top: auto;
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--saap-font);
  font-weight: 500;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.footer-credit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* ==================== SOFT BADGE HELPERS ==================== */
.bg-indigo-soft { background: rgba(79, 70, 229, 0.1); color: #4338ca; }
.bg-emerald-soft { background: rgba(16, 185, 129, 0.12); color: #047857; }
.bg-amber-soft { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.bg-sky-soft { background: rgba(14, 165, 233, 0.12); color: #0369a1; }
.bg-rose-soft { background: rgba(244, 63, 94, 0.12); color: #be123c; }
.bg-slate-soft { background: rgba(100, 116, 139, 0.12); color: #334155; }

/* ==================== SEARCHABLE OWNER PICKER ==================== */
.owner-picker-wrap {
  position: relative;
}

.owner-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.22);
  max-height: 230px;
  overflow-y: auto;
  display: none;
  padding: 4px;
}

.owner-search-dropdown.show {
  display: block;
}

.owner-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.14s ease;
  font-size: 0.9rem;
  color: var(--saap-navy-900);
}

.owner-search-item:hover,
.owner-search-item.active {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--saap-indigo-600);
}

.owner-search-item.is-selected {
  background-color: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.owner-search-empty {
  padding: 12px;
  text-align: center;
  color: var(--saap-muted);
  font-size: 0.88rem;
}

.owner-empty-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-family: var(--saap-font);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ==================== INLINE TABLE OWNER ASSIGN ==================== */
.inline-owner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
  min-height: 24px;
  align-items: center;
}

.inline-owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(79, 70, 229, 0.1);
  color: #3730a3;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.inline-owner-chip button {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.inline-owner-chip button:hover {
  color: #991b1b;
}

.inline-owner-search {
  font-size: 0.82rem !important;
  padding: 0.28rem 0.6rem !important;
  border-radius: 8px !important;
}

.owner-row-dirty {
  background-color: rgba(245, 158, 11, 0.09) !important;
}

.owner-floating-menu {
  position: fixed;
  z-index: 2000;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.28);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  padding: 4px;
}

.owner-floating-menu.show {
  display: block;
}

/* ==================== ROLES & PERMISSIONS MODAL ==================== */
.role-list-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  width: 100%;
}

.role-list-item:hover {
  border-color: var(--saap-indigo-500);
  background: rgba(79, 70, 229, 0.04);
}

.role-list-item.active {
  border-color: var(--saap-indigo-600);
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 4px 12px -6px rgba(79, 70, 229, 0.35);
}

.perm-group-row td {
  background: #f1f5f9 !important;
  color: var(--saap-navy-900);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 10px !important;
}

/* ==================== SWEETALERT2 EXECUTIVE THEME ==================== */
.swal2-container {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(8, 16, 32, 0.45) !important;
  padding: 1rem !important;
}

.swal2-popup {
  font-family: var(--saap-font) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 28px 64px -18px rgba(8, 16, 32, 0.38) !important;
  padding: 1.75rem 1.75rem 1.5rem !important;
  background: #ffffff !important;
  color: var(--saap-text) !important;
}

.swal2-title {
  font-family: var(--saap-font) !important;
  font-size: 1.24rem !important;
  font-weight: 600 !important;
  color: var(--saap-navy-900) !important;
  letter-spacing: -0.01em !important;
  padding-top: 0.35rem !important;
  line-height: 1.4 !important;
}

.swal2-html-container {
  font-family: var(--saap-font) !important;
  font-size: 0.94rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin-top: 0.55rem !important;
}

.swal2-icon {
  margin: 0.35rem auto 0.65rem !important;
  transform: scale(0.92);
}

.swal2-actions {
  gap: 10px !important;
  margin-top: 1.4rem !important;
}

.swal2-styled {
  font-family: var(--saap-font) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  border-radius: 11px !important;
  padding: 0.58rem 1.45rem !important;
  box-shadow: none !important;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-validation-message {
  font-family: var(--saap-font) !important;
}

.swal2-styled:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.65) !important;
}

.swal2-styled.swal2-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.swal2-styled.swal2-cancel:hover {
  background: #e2e8f0 !important;
}

.swal2-styled.swal2-deny {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
}

.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #4f46e5, #0ea5e9) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .kpi-value { font-size: 1.3rem; }
  .login-card { padding: 1.75rem 1.35rem; }
  .home-hero-band { padding-bottom: 3.75rem; }
}
