/* ==========================================================================
   WOW Lane Admin — global theme
   Loaded last from layout/head/head.php so it overrides the Vuexy template.
   ========================================================================== */

:root {
  --wl-primary: #2563eb;
  --wl-primary-600: #1d4ed8;
  --wl-primary-50: #eff5ff;
  --wl-primary-100: #dbe7fe;
  --wl-accent: #e5383b;
  --wl-accent-50: #fdecec;
  --wl-success: #16a34a;
  --wl-success-50: #e8f7ee;
  --wl-warning: #f59e0b;
  --wl-warning-50: #fef5e6;
  --wl-danger: #dc2626;
  --wl-danger-50: #fdeaea;
  --wl-info: #0891b2;
  --wl-info-50: #e4f6fa;

  --wl-bg: #f4f6fb;
  --wl-surface: #ffffff;
  --wl-surface-2: #f8fafc;
  --wl-border: #e5e9f2;
  --wl-border-strong: #d3d9e6;
  --wl-text: #0b1220;
  --wl-text-2: #1f2937;
  --wl-muted: #5b6474;

  --wl-radius-sm: 8px;
  --wl-radius: 12px;
  --wl-radius-lg: 16px;
  --wl-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --wl-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
  --wl-shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);

  --wl-font: "Plus Jakarta Sans", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bs-font-sans-serif: var(--wl-font);
  --bs-body-font-family: var(--wl-font);
  --bs-primary: var(--wl-primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--wl-primary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--wl-primary-600);
  --bs-body-bg: var(--wl-bg);
  --bs-body-color: var(--wl-text-2);
  --bs-heading-color: var(--wl-text);
  --bs-border-color: var(--wl-border);
}

/* ---------- Base ---------- */
html, body {
  font-family: var(--wl-font) !important;
  -webkit-font-smoothing: antialiased;
}
body {
  background: var(--wl-bg) !important;
  color: var(--wl-text-2);
  font-size: .9rem;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--wl-text);
  font-family: var(--wl-font);
  font-weight: 700;
  letter-spacing: -.01em;
}
a { color: var(--wl-primary); }
a:hover { color: var(--wl-primary-600); }
::selection { background: var(--wl-primary-100); }
.text-muted { color: var(--wl-muted) !important; }
.text-primary { color: var(--wl-primary) !important; }
.bg-primary { background-color: var(--wl-primary) !important; }

/* Thin, unobtrusive scrollbars */
* { scrollbar-width: thin; scrollbar-color: #c9d1e0 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #c9d1e0; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Sidebar ---------- */
.layout-menu.bg-menu-theme,
.bg-menu-theme {
  background: var(--wl-surface) !important;
  border-right: 1px solid var(--wl-border);
  box-shadow: none !important;
}
.layout-menu .app-brand.demo {
  height: 72px !important;
  padding: 0 1.25rem !important;
  border-bottom: 1px solid var(--wl-border);
  margin-bottom: .5rem;
}
.layout-menu .app-brand-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.wl-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.wl-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wl-brand-text strong {
  color: var(--wl-text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.wl-brand-text small {
  color: var(--wl-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.layout-menu-collapsed:not(.layout-menu-hover) .wl-brand-text { display: none; }

.menu-inner-shadow { display: none !important; }
.bg-menu-theme .menu-inner { padding: .25rem 0 1.5rem !important; }
.bg-menu-theme .menu-inner > .menu-item { margin: 2px .75rem !important; width: calc(100% - 1.5rem) !important; align-self: stretch; }
.wl-menu-header {
  list-style: none;
  padding: 1rem 1.5rem .4rem;
  color: var(--wl-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.layout-menu-collapsed:not(.layout-menu-hover) .wl-menu-header { visibility: hidden; }

.bg-menu-theme .menu-item { margin: 2px 0 !important; }
.bg-menu-theme .menu-link,
.bg-menu-theme .menu-horizontal-prev,
.bg-menu-theme .menu-horizontal-next {
  color: var(--wl-text-2) !important;
  border-radius: 10px !important;
  padding: .62rem .8rem !important;
  font-weight: 500;
  font-size: .875rem;
  margin: 0 !important;
  transition: background .15s ease, color .15s ease;
}
.bg-menu-theme .menu-link .menu-icon {
  color: var(--wl-muted);
  font-size: 1.05rem;
  width: 1.4rem;
  margin-right: .65rem;
  text-align: center;
  transition: color .15s ease;
}
.bg-menu-theme .menu-link:hover,
.bg-menu-theme .menu-item.open > .menu-link {
  background: var(--wl-primary-50) !important;
  color: var(--wl-primary) !important;
}
.bg-menu-theme .menu-link:hover .menu-icon,
.bg-menu-theme .menu-item.open > .menu-link .menu-icon,
.bg-menu-theme .menu-item.active > .menu-link .menu-icon { color: var(--wl-primary); }

/* Active leaf link: solid brand pill */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle),
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, var(--wl-primary) 0%, #3b82f6 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28) !important;
}
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon { color: #fff !important; }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle {
  background: var(--wl-primary-50) !important;
  color: var(--wl-primary) !important;
}
.bg-menu-theme .menu-inner > .menu-item.active:before,
.bg-menu-theme .menu-item.active:before { display: none !important; }

.bg-menu-theme .menu-sub { padding: 2px 0 2px 0 !important; }
.bg-menu-theme .menu-sub .menu-link { padding-left: 2.6rem !important; font-size: .84rem; }
.bg-menu-theme .menu-sub .menu-sub .menu-link { padding-left: 3.4rem !important; }
.bg-menu-theme .menu-sub > .menu-item > .menu-link:before {
  content: "" !important;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c3cbd9;
  left: 1.55rem !important;
  top: 50%;
  transform: translateY(-50%);
}
.bg-menu-theme .menu-sub .menu-sub > .menu-item > .menu-link:before { left: 2.35rem !important; }
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:before { background: #fff; }
.bg-menu-theme .menu-toggle::after { color: var(--wl-muted); right: .9rem !important; }

/* ---------- Top navbar ---------- */
.layout-navbar.navbar-detached,
.layout-navbar {
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--wl-border) !important;
  border-radius: var(--wl-radius) !important;
  box-shadow: var(--wl-shadow-sm) !important;
  min-height: 64px;
  padding: 0 1rem !important;
}
.wl-nav-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wl-nav-title .wl-hello {
  color: var(--wl-text);
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-nav-title .wl-date { color: var(--wl-muted); font-size: .76rem; font-weight: 500; }
.wl-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--wl-primary-50);
  color: var(--wl-primary) !important;
}
.wl-user-chip {
  display: flex; align-items: center; gap: .65rem;
  padding: .3rem .4rem .3rem .3rem;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wl-user-chip:hover { border-color: var(--wl-primary-100); box-shadow: 0 0 0 3px var(--wl-primary-50); }
.wl-user-chip .avatar { width: 36px; height: 36px; }
.wl-user-chip .avatar img { width: 36px; height: 36px; object-fit: cover; }
.wl-user-meta { line-height: 1.15; padding-right: .35rem; }
.wl-user-meta .name { display: block; color: var(--wl-text); font-weight: 600; font-size: .85rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-user-meta .role { display: block; color: var(--wl-muted); font-size: .72rem; }
.wl-avatar-initial {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wl-primary), #60a5fa);
  color: #fff; font-weight: 700; font-size: .9rem;
}

/* ---------- Page container ---------- */
.content-wrapper,
.content-fluid { background: transparent; }
.content-fluid { display: flex; flex-direction: column; min-height: calc(100vh - 80px); }
.content-fluid > .container-fluid { flex: 1 0 auto; padding-top: 1.25rem; }
.layout-page .container-fluid,
.layout-page .container-xxl:not(.navbar) {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Page title block used on every module page:
   <h6 class="py-3 mb-4"><span>Title</span><br><span class="text-muted">Home /</span> Item</h6> */
.layout-page h6.py-3.mb-4 {
  color: var(--wl-muted);
  font-size: .8rem;
  font-weight: 500;
  padding: .5rem 0 .25rem !important;
  margin-bottom: 1.25rem !important;
}
.layout-page h6.py-3.mb-4 > span:first-child {
  display: inline-block;
  color: var(--wl-text) !important;
  font-size: 1.45rem !important;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}
.layout-page h6.py-3.mb-4 .text-muted { color: var(--wl-muted) !important; }

/* ---------- Cards ---------- */
.card {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border) !important;
  border-radius: var(--wl-radius-lg) !important;
  box-shadow: var(--wl-shadow) !important;
}
.card.shadow { box-shadow: var(--wl-shadow) !important; }
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--wl-border);
  padding: 1rem 1.25rem;
}
.card-header .card-title, .card-title { color: var(--wl-text); font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-header + .card-body, .card-header + .card-body.pt-0 { padding-top: 1.25rem !important; }
.card h4, .card h5 { font-size: 1.05rem; margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px !important;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: .55rem 1.1rem;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 8px !important; }
.btn-primary {
  background: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--wl-primary-600) !important;
  border-color: var(--wl-primary-600) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .32) !important;
}
.btn-success { background: var(--wl-success) !important; border-color: var(--wl-success) !important; color: #fff !important; }
.btn-success:hover { background: #15803d !important; border-color: #15803d !important; }
.btn-danger { background: var(--wl-danger) !important; border-color: var(--wl-danger) !important; color: #fff !important; }
.btn-warning { background: var(--wl-warning) !important; border-color: var(--wl-warning) !important; color: #fff !important; }
.btn-info { background: var(--wl-info) !important; border-color: var(--wl-info) !important; color: #fff !important; }
.btn-secondary { background: #64748b !important; border-color: #64748b !important; color: #fff !important; }
.btn-outline-primary { color: var(--wl-primary) !important; border-color: var(--wl-primary) !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--wl-primary) !important; color: #fff !important; }
.btn-label-secondary, .btn-outline-secondary {
  background: var(--wl-surface-2) !important;
  color: var(--wl-text-2) !important;
  border: 1px solid var(--wl-border-strong) !important;
}
.btn-label-secondary:hover, .btn-outline-secondary:hover { background: #eef1f6 !important; color: var(--wl-text) !important; }
.btn-label-primary { background: var(--wl-primary-50) !important; color: var(--wl-primary) !important; border: 0 !important; }
.btn-label-danger { background: var(--wl-danger-50) !important; color: var(--wl-danger) !important; border: 0 !important; }
.btn-label-success { background: var(--wl-success-50) !important; color: var(--wl-success) !important; border: 0 !important; }

/* Legacy inline "Export to Excel" links */
a[href*="export_excel"]:not(.wl-export) {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  background: var(--wl-success) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: .55rem 1rem !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .22);
  margin: .25rem 0 1rem;
}
a[href*="export_excel"]:not(.wl-export)::before { content: "\f1c3"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
a[href*="export_excel"]:not(.wl-export):hover { background: #15803d !important; }

/* ---------- Forms ---------- */
.form-label, label {
  color: var(--wl-text);
  font-weight: 600;
  font-size: .8rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .4rem;
}
.form-check-label { font-weight: 500; }
.form-control,
.form-select,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.chosen-container .chosen-single,
.chosen-container-multi .chosen-choices,
.dataTables_wrapper input,
.dataTables_wrapper select {
  border: 1px solid var(--wl-border-strong) !important;
  border-radius: 10px !important;
  background-color: var(--wl-surface);
  color: var(--wl-text);
  font-size: .875rem;
  min-height: 42px;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control, .form-select { padding: .55rem .85rem; }
textarea.form-control { min-height: 90px; }
.form-control-sm, .form-select-sm { min-height: 34px; font-size: .8rem; }
.form-control::placeholder { color: #7a8494; }
.form-control:focus,
.form-select:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection,
.dataTables_wrapper input:focus,
.dataTables_wrapper select:focus {
  border-color: var(--wl-primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
  outline: 0;
}
.form-control:disabled, .form-control[readonly] { background-color: var(--wl-surface-2); }
.input-group .input-group-text { background: var(--wl-surface-2); color: var(--wl-muted); }
.input-group:focus-within .input-group-text,
.input-group-merge:focus-within .form-control,
.input-group-merge:focus-within .input-group-text { border-color: var(--wl-primary) !important; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > .input-group-text:last-child,
.input-group > .form-control:last-child { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group > .input-group-text:first-child { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.form-check-input:checked { background-color: var(--wl-primary); border-color: var(--wl-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px !important; padding-left: .85rem; color: var(--wl-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px !important; }
.select2-dropdown { border-color: var(--wl-border-strong) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--wl-shadow-lg); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--wl-primary) !important; }

/* ---------- Tables / DataTables ---------- */
.table {
  --bs-table-bg: transparent;
  color: var(--wl-text-2);
  margin-bottom: 0;
  font-size: .85rem;
}
.table > :not(caption) > * > * {
  padding: .8rem 1rem;
  border-bottom-color: var(--wl-border);
  vertical-align: middle;
}
.table thead th,
.table > thead > tr > th {
  background: var(--wl-surface-2) !important;
  color: var(--wl-muted) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--wl-border) !important;
  border-top: 0 !important;
  white-space: nowrap;
}
.table tbody tr { transition: background .12s ease; }
.card .table, .card table.dataTable { border: 0 !important; }
.table > thead, .table > tbody, .table > tfoot { border: 0 !important; }
.table > :not(caption) > tr { border-color: var(--wl-border) !important; border-left-width: 0 !important; border-right-width: 0 !important; }
.card .table-responsive, .card .card-datatable { border: 0 !important; }
.table-hover > tbody > tr:hover > *,
.table tbody tr:hover > * { background: #f7faff !important; }
.table-bordered > :not(caption) > * > * { border-color: var(--wl-border); }
.table td a .fa-solid, .table td a .fa-regular, .table td a i.ti {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--wl-surface-2);
  border: 1px solid var(--wl-border);
  padding: 0 !important;
  transition: background .15s ease, border-color .15s ease;
}
.table td a:hover .fa-solid, .table td a:hover .fa-regular, .table td a:hover i.ti { background: var(--wl-primary-50); border-color: var(--wl-primary-100); }

.card-datatable { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card-datatable.pt-1 { padding-top: 0 !important; }
.dataTables_wrapper { padding: 0; }
.dataTables_wrapper > .row:first-child,
.dataTables_wrapper .row:first-child {
  padding: 1rem 1.25rem .5rem;
  margin: 0;
  align-items: center;
}
.dataTables_wrapper > .row:last-child {
  padding: .9rem 1.25rem 1.1rem;
  margin: 0;
  align-items: center;
  border-top: 1px solid var(--wl-border);
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  color: var(--wl-muted);
  font-weight: 500;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.dataTables_wrapper .dataTables_filter input {
  min-width: 240px;
  padding: .45rem .85rem .45rem 2.2rem !important;
  margin-left: 0 !important;
  background: var(--wl-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center !important;
}
.dataTables_wrapper .dataTables_length select { min-width: 74px; padding-right: 2rem !important; }
.dataTables_wrapper .dataTables_info { color: var(--wl-muted); font-size: .8rem; padding-top: 0 !important; }
.dataTables_wrapper table.dataTable { margin: 0 !important; border-collapse: collapse !important; width: 100% !important; }
.page-link {
  border: 1px solid var(--wl-border) !important;
  color: var(--wl-text-2) !important;
  border-radius: 8px !important;
  margin: 0 2px;
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: .8rem;
  background: var(--wl-surface) !important;
}
.page-item.active .page-link {
  background: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
}
.page-item.disabled .page-link { opacity: .5; }
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after { opacity: .25; }

/* ---------- Status colour helpers for legacy inline spans ---------- */
td span[style*="color:green"], td span[style*="color: green"] {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  background: var(--wl-success-50); color: var(--wl-success) !important; font-weight: 600; font-size: .75rem;
}
td span[style*="color:red"], td span[style*="color: red"] {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  background: var(--wl-danger-50); color: var(--wl-danger) !important; font-weight: 600; font-size: .75rem;
}

/* ---------- Badges ---------- */
.badge { border-radius: 999px; font-weight: 600; padding: .38em .7em; letter-spacing: .01em; }
.bg-label-primary { background: var(--wl-primary-50) !important; color: var(--wl-primary) !important; }
.bg-label-success { background: var(--wl-success-50) !important; color: var(--wl-success) !important; }
.bg-label-danger { background: var(--wl-danger-50) !important; color: var(--wl-danger) !important; }
.bg-label-warning { background: var(--wl-warning-50) !important; color: #b45309 !important; }
.bg-label-info { background: var(--wl-info-50) !important; color: var(--wl-info) !important; }

/* ---------- Alerts (session messages) ---------- */
.alert {
  border-radius: var(--wl-radius) !important;
  border: 1px solid transparent;
  font-weight: 500;
  box-shadow: var(--wl-shadow-sm);
}
.alert-success { background: var(--wl-success-50) !important; color: #166534 !important; border-color: #bfe8cf !important; }
.alert-danger { background: var(--wl-danger-50) !important; color: #991b1b !important; border-color: #f6c6c6 !important; }
.alert-warning { background: var(--wl-warning-50) !important; color: #92400e !important; border-color: #f8deb0 !important; }
.alert-info { background: var(--wl-info-50) !important; color: #155e75 !important; border-color: #b9e6f0 !important; }

/* ---------- Modals ---------- */
.modal-backdrop.show { opacity: .45; background: #0f172a; }
.modal-content {
  border: 0 !important;
  border-radius: var(--wl-radius-lg) !important;
  box-shadow: var(--wl-shadow-lg) !important;
}
.modal-header {
  border-bottom: 1px solid var(--wl-border);
  padding: 1.1rem 1.4rem;
}
.modal-title { font-weight: 700; color: var(--wl-text); }
.modal-footer { border-top: 1px solid var(--wl-border); }
.modal-simple .modal-content { padding: 1.75rem !important; }
.modal-simple .modal-body { padding: 0; }
.modal-simple .modal-body > .text-center h3,
.modal .text-center h3 { font-size: 1.3rem; font-weight: 800; }
.modal .btn-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  background-color: var(--wl-surface-2) !important;
  opacity: 1;
  background-size: .65rem;
  box-shadow: none !important;
  transform: none !important;
}
.modal-simple .btn-close { top: 1rem !important; right: 1rem !important; position: absolute; }

/* ---------- Dropdowns / tabs / nav pills ---------- */
.dropdown-menu {
  border: 1px solid var(--wl-border) !important;
  border-radius: var(--wl-radius) !important;
  box-shadow: var(--wl-shadow-lg) !important;
  padding: .4rem;
}
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 500; color: var(--wl-text-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--wl-primary-50); color: var(--wl-primary); }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--wl-text-2); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  background: var(--wl-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.nav-tabs { border-bottom: 1px solid var(--wl-border); }
.nav-tabs .nav-link { border: 0; color: var(--wl-muted); font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--wl-primary); box-shadow: inset 0 -2px 0 var(--wl-primary); background: transparent; }

/* ---------- Footer ---------- */
.content-footer.footer {
  background: transparent !important;
  border-top: 1px solid var(--wl-border);
  margin-top: 2rem;
  color: var(--wl-muted);
  font-size: .78rem;
}
.content-footer .footer-container { padding-top: 1rem !important; padding-bottom: 1rem !important; gap: .5rem; }
.content-footer strong { color: var(--wl-text-2); }
.content-footer a { color: var(--wl-primary); font-weight: 600; }

/* ---------- Dashboard ---------- */
.wl-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--wl-radius-lg);
  padding: 1.6rem 1.75rem;
  color: #fff;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .25);
  margin-bottom: 1.5rem;
}
.wl-hero::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, .09);
}
.wl-hero h2 { color: #fff; font-size: 1.55rem; font-weight: 800; margin: 0 0 .3rem; }
.wl-hero p { color: rgba(255, 255, 255, .85); margin: 0; font-weight: 500; }
.wl-hero .wl-role {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.wl-chart-card { padding: 1.35rem !important; margin-top: 0 !important; }
/* Stretch to the row height only when the card sits in a grid column */
.row > [class*="col"] > .wl-chart-card, .wl-attn-col > .wl-chart-card { height: 100%; }
.wl-chart-card .wl-card-head {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.wl-chart-card .wl-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wl-primary-50); color: var(--wl-primary); font-size: 1.1rem;
}
.wl-chart-card .wl-card-icon.red { background: var(--wl-accent-50); color: var(--wl-accent); }
.wl-chart-card .wl-card-icon.green { background: var(--wl-success-50); color: var(--wl-success); }
.wl-chart-card .wl-card-head h4 { margin: 0; font-size: 1rem; }
.wl-chart-card .wl-card-head small { color: var(--wl-muted); display: block; font-size: .76rem; }
.wl-chart-card label { color: var(--wl-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.apexcharts-canvas text { font-family: var(--wl-font) !important; }
.apexcharts-tooltip { border-radius: 10px !important; box-shadow: var(--wl-shadow-lg) !important; border: 1px solid var(--wl-border) !important; }

/* ---------- Dashboard v2 ---------- */
.wl-hero-dash { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.wl-hero-dash .wl-hero-text { position: relative; z-index: 1; min-width: 0; }
.wl-hero-dash p strong { color: #fff; }
.wl-quick { position: relative; z-index: 1; display: flex; gap: .6rem; flex-wrap: wrap; }
.wl-quick-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  width: 92px; height: 78px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff !important;
  font-size: .76rem; font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.wl-quick-btn i { font-size: 1.35rem; }
.wl-quick-btn:hover { background: #fff; color: var(--wl-primary) !important; transform: translateY(-2px); }

.wl-kpi { padding: 1.15rem 1.25rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.wl-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 24, 40, .09) !important; }
.wl-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.wl-kpi-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.wl-kpi-icon.blue { background: var(--wl-primary-50); color: var(--wl-primary); }
.wl-kpi-icon.amber { background: var(--wl-warning-50); color: #d97706; }
.wl-kpi-icon.violet { background: #f1ecfe; color: #7c3aed; }
.wl-kpi-icon.red { background: var(--wl-accent-50); color: var(--wl-accent); }
.wl-kpi-value { color: var(--wl-text); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; word-break: break-word; }
.wl-kpi-label { color: var(--wl-text-2); font-weight: 600; font-size: .85rem; margin-top: .2rem; }
.wl-kpi-foot { color: var(--wl-muted); font-size: .75rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--wl-border); }
.wl-trend { display: inline-flex; align-items: center; gap: .2rem; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.wl-trend.up { background: var(--wl-success-50); color: var(--wl-success); }
.wl-trend.down { background: var(--wl-danger-50); color: var(--wl-danger); }

.wl-card-icon.violet { background: #f1ecfe; color: #7c3aed; }
.wl-card-head-split { justify-content: space-between; flex-wrap: wrap; }
.wl-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.wl-filters .form-select-sm { min-height: 36px; width: auto; min-width: 110px; font-size: .8rem; padding-top: .35rem; padding-bottom: .35rem; }
.wl-filters-row { margin: -.25rem 0 .5rem; }
.wl-filters-row .form-select-sm { flex: 1; }

.wl-pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.wl-pipe-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; font-size: .82rem; }
.wl-pipe-name { display: inline-flex; align-items: center; gap: .5rem; color: var(--wl-text-2); font-weight: 500; }
.wl-pipe-name i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.wl-pipe-count { color: var(--wl-text); font-weight: 700; }
.wl-pipe-bar { height: 6px; border-radius: 6px; background: #eef1f6; overflow: hidden; }
.wl-pipe-bar span { display: block; height: 100%; border-radius: 6px; min-width: 2px; }

.wl-chart-card.p-0 { padding: 0 !important; overflow: hidden; }
.wl-recent { margin-top: .25rem; }
.wl-recent > :not(caption) > * > * { border-left: 0 !important; border-right: 0 !important; }
.wl-recent th:first-child, .wl-recent td:first-child { padding-left: 1.5rem; }
.wl-recent th:last-child, .wl-recent td:last-child { padding-right: 1.5rem; }
.wl-recent tbody tr:last-child > * { border-bottom: 0; }
.wl-avatar-sm {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wl-primary-50); color: var(--wl-primary); font-weight: 700; font-size: .8rem;
}
.wl-status {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
}
.wl-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.wl-empty { text-align: center; padding: 2.5rem 1rem; color: var(--wl-muted); }
.wl-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #c3cbd9; }

@media (max-width: 767.98px) {
  .wl-quick { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .wl-quick-btn { width: auto; height: 68px; font-size: .7rem; }
  .wl-kpi { padding: 1rem; }
  .wl-kpi-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .wl-kpi-value { font-size: 1.35rem; }
  .wl-kpi-label { font-size: .78rem; }
  .wl-kpi-foot { font-size: .7rem; }
  .wl-card-head-split .wl-filters { width: 100%; }
  .wl-card-head-split .wl-filters .form-select-sm { flex: 1; }
  .wl-chart-card.p-0 .wl-card-head { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ---------- Sales & project screens ---------- */
.wl-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.wl-page-head h6.py-3 { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.wl-page-head .btn { white-space: nowrap; }

.wl-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.wl-kpi-mini {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--wl-surface); border: 1px solid var(--wl-border); border-radius: var(--wl-radius);
  padding: .85rem 1rem; box-shadow: var(--wl-shadow-sm); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  font: inherit; color: inherit;
}
.wl-kpi-mini:hover { border-color: var(--wl-primary-100); box-shadow: 0 0 0 3px var(--wl-primary-50); transform: translateY(-1px); }
.wl-kpi-mini .v { color: var(--wl-text); font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.wl-kpi-mini .l { color: var(--wl-text-2); font-size: .78rem; font-weight: 600; margin-top: .2rem; }
.wl-kpi-mini small { color: var(--wl-muted); font-size: .7rem; margin-top: .15rem; }
.wl-kpi-mini.warn .v { color: #d97706; }
.wl-kpi-mini.good .v { color: var(--wl-success); }
.wl-kpi-mini.bad .v { color: var(--wl-danger); }
div.wl-kpi-mini { cursor: default; }
div.wl-kpi-mini:hover { transform: none; box-shadow: var(--wl-shadow-sm); border-color: var(--wl-border); }

.wl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding: 1rem 1.25rem .25rem; }
.wl-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.wl-chip {
  border: 1px solid var(--wl-border-strong); background: var(--wl-surface); color: var(--wl-text-2);
  border-radius: 999px; padding: .32rem .8rem; font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.wl-chip:hover { border-color: var(--wl-primary); color: var(--wl-primary); }
.wl-chip.active { background: var(--wl-primary); border-color: var(--wl-primary); color: #fff; }
.wl-range { display: flex; align-items: center; gap: .4rem; }
.wl-range .form-control-sm { min-height: 34px; width: 150px; font-size: .8rem; }

.wl-cell-main { color: var(--wl-text); font-weight: 600; }
.wl-cell-sub { color: var(--wl-muted); font-size: .76rem; display: block; text-decoration: none; }
a.wl-cell-sub:hover { color: var(--wl-primary); }
.wl-req { max-width: 260px; }
.wl-req a { color: var(--wl-text-2); text-decoration: none; }
.wl-req a:hover { color: var(--wl-primary); text-decoration: underline; }
.wl-prewrap { white-space: pre-wrap; color: var(--wl-text); line-height: 1.6; }
.wl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.wl-due { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.wl-due.overdue { background: var(--wl-danger-50); color: var(--wl-danger); }
.wl-due.today { background: var(--wl-warning-50); color: #b45309; }
.wl-due.upcoming { background: var(--wl-primary-50); color: var(--wl-primary); }

a.wl-status { text-decoration: none; cursor: pointer; }
a.wl-status:hover { filter: brightness(.95); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.wl-status .ti { font-size: .7rem; }

.wl-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--wl-border); background: var(--wl-surface); color: var(--wl-text-2) !important;
  text-decoration: none; padding: 0; vertical-align: middle; transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.wl-icon-btn:hover { background: var(--wl-primary-50); border-color: var(--wl-primary-100); color: var(--wl-primary) !important; }
.wl-icon-btn .ti { font-size: 1rem; }
.wl-icon-btn .ti-brand-whatsapp { color: #16a34a; }
.table td .wl-icon-btn i.ti { width: auto; height: auto; border: 0; background: transparent; }

.wl-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; position: relative; }
.wl-timeline::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--wl-border); }
.wl-timeline li { position: relative; padding: 0 0 1.1rem .9rem; }
.wl-timeline li::before { content: ""; position: absolute; left: -1.08rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.wl-tl-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wl-tl-time { color: var(--wl-muted); font-size: .76rem; }
.wl-tl-body { margin-top: .4rem; color: var(--wl-text-2); font-size: .84rem; line-height: 1.7; }
.wl-tl-body .ti { color: var(--wl-muted); margin-right: .2rem; }

.wl-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; }
.wl-toast {
  display: flex; align-items: center; gap: .6rem; min-width: 240px; max-width: 360px;
  background: #0f172a; color: #fff; border-radius: 12px; padding: .75rem 1rem; font-weight: 600; font-size: .85rem;
  box-shadow: var(--wl-shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.wl-toast.show { opacity: 1; transform: none; }
.wl-toast.ok .ti { color: #4ade80; }
.wl-toast.error { background: #7f1d1d; }
.wl-toast.error .ti { color: #fecaca; }

/* Projects in progress table */
.wl-projects td, .wl-projects th { white-space: nowrap; }
.wl-projects .wl-proj-cost { min-width: 180px; }
@media (max-width: 767.98px) {
  .wl-projects thead { display: none; }
  .wl-projects, .wl-projects tbody, .wl-projects tr, .wl-projects td { display: block; width: 100%; }
  .wl-projects tr { padding: .9rem 1rem; border-bottom: 1px solid var(--wl-border); }
  .wl-projects tr:last-child { border-bottom: 0; }
  .wl-projects > :not(caption) > * > * { border: 0 !important; padding: .2rem 0 !important; }
  .wl-projects td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 1rem; white-space: normal; }
  .wl-projects td[data-label]::before { content: attr(data-label); color: var(--wl-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .wl-projects td.wl-proj-name { font-size: .95rem; padding-bottom: .4rem !important; }
  .wl-projects .wl-proj-cost > div { width: 60%; }
  .wl-projects td.wl-proj-open { padding-top: .6rem !important; }
  .wl-projects td.wl-proj-open .btn { width: 100%; }
}

/* Dashboard work lists */
.wl-chart-card .tab-content { padding: 0 !important; box-shadow: none !important; background: transparent !important; }
.wl-attn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 1.5rem; }
.wl-attn-col > .card { height: 100%; }
a.wl-kpi { color: inherit; display: block; }
.wl-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--wl-border); margin: 0 0 .5rem; padding: 0; list-style: none; flex-wrap: nowrap; overflow-x: auto; }
.wl-tabs button {
  border: 0; background: transparent; color: var(--wl-text-2); font-weight: 600; font-size: .82rem;
  padding: .5rem .75rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
}
.wl-tabs button span { background: var(--wl-surface-2); border: 1px solid var(--wl-border); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; color: var(--wl-text); }
.wl-tabs button span.bad { background: var(--wl-danger-50); border-color: #f6c6c6; color: var(--wl-danger); }
.wl-tabs button.active { color: var(--wl-primary); border-bottom-color: var(--wl-primary); }
.wl-agenda { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.wl-agenda-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .1rem; border-bottom: 1px solid var(--wl-border); }
.wl-agenda-item:last-child { border-bottom: 0; }
.wl-agenda-item > .wl-due { flex: 0 0 auto; min-width: 72px; justify-content: center; }
.wl-agenda-main { flex: 1 1 auto; min-width: 0; }
.wl-agenda-main .wl-cell-sub,
.wl-agenda-main > .wl-cell-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-agenda-main .wl-cell-sub a { color: var(--wl-primary); text-decoration: none; }
.wl-agenda-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .35rem; }
@media (max-width: 575.98px) {
  .wl-agenda-item { flex-wrap: wrap; }
  .wl-agenda-item > .wl-due { min-width: 0; }
  .wl-agenda-actions { width: 100%; justify-content: flex-end; }
}

/* Quotation wizard stepper */
.wl-stepper { margin: 0 0 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wl-stepper ol { list-style: none; margin: 0; padding: .25rem 0; display: flex; gap: .35rem; min-width: max-content; }
.wl-stepper li a {
  display: flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .45rem .8rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--wl-border);
  background: var(--wl-surface); color: var(--wl-text-2); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.wl-stepper .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--wl-surface-2); border: 1px solid var(--wl-border); font-size: .72rem; }
.wl-stepper li.done a { color: var(--wl-success); border-color: #bfe8cf; background: var(--wl-success-50); }
.wl-stepper li.done .n { background: var(--wl-success); color: #fff; border-color: var(--wl-success); }
.wl-stepper li.current a { color: #fff; background: var(--wl-primary); border-color: var(--wl-primary); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.wl-stepper li.current .n { background: #fff; color: var(--wl-primary); border-color: #fff; }
.wl-stepper li a:hover { border-color: var(--wl-primary); }

/* Money summary */
.wl-money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.wl-progress { height: 8px; border-radius: 8px; background: #eef1f6; overflow: hidden; }
.wl-progress span { display: block; height: 100%; border-radius: 8px; background: var(--wl-success); }
.wl-progress.warn span { background: #f59e0b; }
.wl-progress.bad span { background: var(--wl-danger); }
.wl-info-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .85rem; }
.wl-info-list dt { color: var(--wl-muted); font-weight: 500; }
.wl-info-list dd { margin: 0; color: var(--wl-text); font-weight: 600; word-break: break-word; }

.wl-pay-after { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.wl-pay-after span { color: var(--wl-text-2); font-weight: 600; font-size: .85rem; }
.wl-pay-after strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
  .wl-kpi-strip { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .wl-kpi-mini { padding: .7rem .8rem; }
  .wl-kpi-mini .v { font-size: 1.2rem; }
  .wl-toolbar { padding: .85rem 1rem .25rem; }
  .wl-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .wl-chip { white-space: nowrap; }
  .wl-range { width: 100%; }
  .wl-range .form-control-sm { flex: 1; width: auto; }
  .wl-page-head .btn { width: 100%; }
  .wl-toasts { left: 1rem; right: 1rem; }
  .wl-toast { max-width: none; }
}

/* ==========================================================================
   Login
   ========================================================================== */
body.wl-auth-body { background: var(--wl-surface) !important; }
.wl-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.wl-auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #fff;
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(229, 56, 59, .35), transparent 60%),
    linear-gradient(140deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}
.wl-auth-aside::before,
.wl-auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, .07);
}
.wl-auth-aside::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.wl-auth-aside::after { width: 300px; height: 300px; left: -120px; bottom: -110px; }
.wl-auth-aside > * { position: relative; z-index: 1; }
.wl-auth-logo-badge {
  display: inline-flex; align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: .55rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
}
.wl-auth-logo-badge img { height: 46px; width: auto; display: block; }
.wl-auth-aside h1 {
  color: #fff;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
  max-width: 30rem;
}
.wl-auth-aside p.lead { color: rgba(255, 255, 255, .85); font-size: 1rem; max-width: 30rem; margin-bottom: 2rem; }
.wl-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; max-width: 30rem; }
.wl-feature-list li {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: .8rem 1rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.wl-feature-list li i {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--wl-primary); font-size: 1.05rem;
}
.wl-feature-list li span small { display: block; font-weight: 500; color: rgba(255, 255, 255, .75); font-size: .78rem; }
.wl-auth-aside .wl-auth-foot { color: rgba(255, 255, 255, .7); font-size: .8rem; }

.wl-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(500px 300px at 100% 0%, var(--wl-primary-50), transparent 70%),
    var(--wl-surface);
}
.wl-auth-card { width: 100%; max-width: 420px; }
.wl-auth-card .wl-mobile-logo { display: none; margin-bottom: 1.75rem; }
.wl-auth-card .wl-mobile-logo img { height: 56px; width: auto; }
.wl-auth-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; letter-spacing: -.02em; }
.wl-auth-card .wl-sub { color: var(--wl-muted); margin-bottom: 2rem; }
.wl-auth-card .form-control { min-height: 48px; padding-left: 2.75rem; font-size: .92rem; }
.wl-field { position: relative; }
.wl-field > i.wl-field-icon {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  color: var(--wl-muted); font-size: 1.05rem; pointer-events: none; z-index: 2;
}
.wl-field .wl-eye {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--wl-muted);
  width: 36px; height: 36px; border-radius: 8px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
}
.wl-field .wl-eye:hover { background: var(--wl-surface-2); color: var(--wl-text); }
.wl-field input[type="password"], .wl-field input.wl-has-eye { padding-right: 3rem; }
.wl-auth-card .btn-primary { min-height: 50px; font-size: .95rem; }
.wl-auth-error {
  display: flex; align-items: center; gap: .6rem;
  background: var(--wl-danger-50);
  color: #991b1b;
  border: 1px solid #f6c6c6;
  border-radius: 12px;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 1.25rem;
}
.wl-auth-error:empty { display: none; }
.wl-auth-secure { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.75rem; color: var(--wl-muted); font-size: .78rem; }

/* ==========================================================================
   Splash loader
   ========================================================================== */
.wl-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: radial-gradient(600px 400px at 50% 40%, #eff5ff, #fff 70%);
  font-family: var(--wl-font);
}
.wl-splash img { width: 200px; height: auto; animation: wl-float 1.8s ease-in-out infinite; }
.wl-splash .wl-bar { width: 180px; height: 4px; border-radius: 4px; background: #e5e9f2; overflow: hidden; }
.wl-splash .wl-bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #e5383b); animation: wl-load 1.2s ease-in-out infinite; }
@keyframes wl-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.04); } }
@keyframes wl-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .wl-splash img, .wl-splash .wl-bar span { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .layout-menu { box-shadow: var(--wl-shadow-lg) !important; }
  .layout-navbar.navbar-detached { margin: .75rem .75rem 0 !important; width: auto !important; }
}

@media (max-width: 991.98px) {
  .wl-auth { grid-template-columns: 1fr; }
  .wl-auth-aside { display: none; }
  .wl-auth-card .wl-mobile-logo { display: block; }
  .wl-auth-main {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 4rem;
    background:
      radial-gradient(500px 280px at 50% 0%, var(--wl-primary-100), transparent 70%),
      var(--wl-surface);
  }
}

@media (max-width: 767.98px) {
  body { font-size: .875rem; }
  .layout-page .container-fluid,
  .layout-page .container-xxl:not(.navbar) {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .layout-navbar { min-height: 58px; padding: 0 .65rem !important; }
  .wl-user-meta { display: none; }
  .wl-user-chip { padding: .2rem; }
  .wl-nav-title .wl-hello { font-size: .9rem; max-width: 52vw; }

  .layout-page h6.py-3.mb-4 > span:first-child { font-size: 1.2rem !important; }
  .wl-hero { padding: 1.25rem; }
  .wl-hero h2 { font-size: 1.25rem; }

  .card-body, .card .card-body { padding: 1rem; }
  .card[style*="padding"] { padding: 1rem !important; }

  /* DataTables controls stack and fill the width */
  .dataTables_wrapper > .row:first-child > div,
  .dataTables_wrapper > .row:last-child > div { width: 100%; text-align: left !important; }
  .dataTables_wrapper > .row:first-child { padding: .85rem 1rem .25rem; gap: .5rem; }
  .dataTables_wrapper .dataTables_filter { margin-top: .5rem; }
  .dataTables_wrapper .dataTables_filter label { width: 100%; }
  .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100% !important; flex: 1; }
  .dataTables_wrapper > .row:last-child { padding: .75rem 1rem; }
  .dataTables_wrapper .dataTables_paginate { margin-top: .5rem; }
  .dataTables_wrapper .pagination { justify-content: center !important; flex-wrap: wrap; gap: 4px 0; }
  .table > :not(caption) > * > * { padding: .65rem .75rem; }
  .table-responsive, .card-datatable { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modals become bottom sheets */
  .modal-dialog { margin: 0; max-width: 100% !important; min-height: 100%; display: flex; align-items: flex-end; }
  .modal.fade .modal-dialog { transform: translateY(40px); }
  .modal.show .modal-dialog { transform: none; }
  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
    width: 100%;
  }
  .modal-simple .modal-content, .modal-content.p-3, .modal-content.p-md-5 { padding: 1.25rem !important; }
  .modal .row.g-3 > [class*="col-"] { width: 100%; }
  .modal .text-center .btn { width: 100%; margin: 0 0 .5rem 0 !important; }

  /* Buttons in toolbars wrap nicely */
  .d-flex.justify-content-end.gap-3 { flex-wrap: wrap; justify-content: stretch !important; }
  .d-flex.justify-content-end.gap-3 > .btn { flex: 1 1 auto; }

  .content-footer .footer-container { text-align: center; align-items: center !important; }

  /* Avoid iOS zoom-on-focus */
  .form-control, .form-select, .dataTables_wrapper input, .dataTables_wrapper select { font-size: 16px; }
}

@media (max-width: 575.98px) {
  .wl-auth-main { padding: 3rem 1.25rem 2rem; }
  .wl-auth-card h2 { font-size: 1.5rem; }
}
