/* ==========================================================================
   Work Technik — Attendance & Payroll — Design System v2
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand: #4f46e5;
  --brand-2: #8b5cf6;
  --brand-dark: #1e1b4b;
  --brand-light: #eef0fe;
  --brand-glow: rgba(79, 70, 229, .35);

  /* Sidebar gradient */
  --sb-from: #0b0f1f;
  --sb-to: #1e1b4b;

  /* Neutrals */
  --ink: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --bg: #f2f3f9;
  --surface: #ffffff;
  --border: #e7e8f1;

  /* Semantic */
  --success: #16a34a;
  --success-bg: #e7f8ed;
  --danger: #dc2626;
  --danger-bg: #fdeaea;
  --warning: #d97706;
  --warning-bg: #fef3e2;
  --info: #0891b2;
  --info-bg: #e3f6fa;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, .07);
  --shadow-lg: 0 12px 32px rgba(30, 27, 75, .12);
  --shadow-glow: 0 8px 24px var(--brand-glow);

  --radius-sm: 9px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.01em;
  color: var(--ink);
}

::selection { background: var(--brand); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7c9dc; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a7a9c4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Top loading progress bar
   ========================================================================== */
#wt-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 8px var(--brand-glow);
  z-index: 3000; transition: width .3s var(--ease), opacity .3s var(--ease);
  border-radius: 0 3px 3px 0;
}

/* ==========================================================================
   Navbar / Topbar
   ========================================================================== */
.app-navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(17,24,39,.02);
  height: 62px;
  position: sticky; top: 0; z-index: 1030;
}
.app-navbar .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: -.01em;
}
.app-navbar .navbar-brand small { color: var(--muted) !important; font-weight: 500; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-glow);
}

/* Colorful stat icon variants (Jobie-style playful palette) */
.stat-card .icon.chip-blue    { background: #e7effe; color: #2563eb; }
.stat-card .icon.chip-orange  { background: #fef1e6; color: #ea8a2c; }
.stat-card .icon.chip-pink    { background: #fbe9f3; color: #d6337a; }
.stat-card .icon.chip-teal    { background: #e2f7f5; color: #0e9488; }
.stat-card .icon.chip-purple  { background: #f0ecfd; color: #7c3aed; }
.stat-card .icon.chip-green   { background: var(--success-bg); color: var(--success); }
.stat-card .icon.chip-amber   { background: var(--warning-bg); color: var(--warning); }

/* Dashboard hero greeting banner */
.hero-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-2) 130%);
  color: #fff; padding: 28px 32px; position: relative; overflow: hidden;
  margin-bottom: 22px; box-shadow: var(--shadow-lg);
}
.hero-banner::before, .hero-banner::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .35;
}
.hero-banner::before { width: 220px; height: 220px; background: #22d3ee; top: -80px; right: 10%; }
.hero-banner::after { width: 180px; height: 180px; background: var(--brand-2); bottom: -90px; right: -30px; }
.hero-banner .eyebrow { color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; position: relative; z-index: 1; }
.hero-banner h3 { color: #fff; position: relative; z-index: 1; margin: 4px 0 4px; }
.hero-banner p { color: rgba(255,255,255,.78); position: relative; z-index: 1; margin: 0; font-size: 13.5px; }

/* Pill-style quick action buttons */
.btn-pill { border-radius: 30px; padding: 9px 18px; }
.quick-actions .btn i { margin-right: 4px; }
.sidebar-toggle-btn {
  display: none;
  border: none; background: transparent; color: var(--ink);
  font-size: 20px; padding: 4px 8px; border-radius: 8px;
}
.sidebar-toggle-btn:hover { background: var(--brand-light); }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 30px;
  background: var(--bg); border: 1px solid var(--border);
  max-width: 220px; height: 42px;
}
.user-chip .name, .user-chip .role {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.user-chip .name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.user-chip .role { font-size: 11px; color: var(--muted); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: all .18s var(--ease);
}
.icon-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.impersonate-badge {
  background: var(--warning-bg); color: #92400e; border: 1px solid #fde3ad;
  padding: 5px 12px; border-radius: 30px; font-weight: 600; font-size: 12px;
}
.impersonate-badge a { color: #92400e; text-decoration: underline; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  width: 258px;
  min-height: calc(100vh - 62px);
  background: linear-gradient(190deg, var(--sb-from) 0%, var(--sb-to) 100%) !important;
  padding: 18px 14px 24px;
  position: sticky; top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  transition: margin-left .25s var(--ease);
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .txt { color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 14px; line-height: 1.15; }
.sidebar-brand .txt small { display: block; color: rgba(255,255,255,.45); font-weight: 500; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }

.sidebar .nav-section-label {
  color: rgba(255,255,255,.32);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 16px 12px 6px;
}
.sidebar .nav-link {
  color: rgba(255,255,255,.68);
  border-radius: 10px; font-size: 14px; font-weight: 500;
  padding: 9px 12px; display: flex; align-items: center; gap: 11px;
  position: relative; transition: all .18s var(--ease);
  margin-bottom: 2px;
}
.sidebar .nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.45);
}
.sidebar .nav-link.active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; background: #fff; border-radius: 0 4px 4px 0; opacity: .9;
}
.sidebar-backdrop { display: none; }

@media (max-width: 991px) {
  .sidebar { position: fixed; left: 0; top: 62px; z-index: 1040; margin-left: -280px; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-flex; }
  .sidebar-backdrop.is-open {
    display: block; position: fixed; inset: 62px 0 0 0; background: rgba(15,15,30,.45);
    z-index: 1035; backdrop-filter: blur(2px);
  }
}

/* ==========================================================================
   Main content + animated entrance
   ========================================================================== */
.main-content { flex: 1; padding: 28px 30px 60px; min-width: 0; animation: wtFadeUp .45s var(--ease); }
.main-content h4 { font-weight: 700; }

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

/* ==========================================================================
   Cards & stat cards
   ========================================================================== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  animation: wtFadeUp .5s var(--ease) both;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0; transition: opacity .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card:hover::after { opacity: 1; }
.stat-card .icon {
  font-size: 20px; width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); opacity: 1;
}
.stat-card .icon.text-success { background: var(--success-bg); color: var(--success) !important; }
.stat-card .icon.text-danger { background: var(--danger-bg); color: var(--danger) !important; }
.stat-card .icon.text-warning { background: var(--warning-bg); color: var(--warning) !important; }
.stat-card .icon.text-primary { background: var(--brand-light); color: var(--brand) !important; }
.stat-card h3 { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 26px; margin: 2px 0 0; }
.stat-card h4 { font-family: 'Plus Jakarta Sans'; font-weight: 800; }

.card:hover { box-shadow: var(--shadow-md); }
.card-header { background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  border-radius: 10px; font-weight: 600; font-size: 13.6px;
  padding: 8px 16px; transition: all .18s var(--ease);
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none; box-shadow: 0 3px 10px rgba(79,70,229,.28);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  box-shadow: 0 6px 18px rgba(79,70,229,.4); transform: translateY(-1px);
}
.btn-outline-primary { border: 1.5px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.25); }
.btn-outline-secondary { border: 1.5px solid var(--border); color: var(--muted); }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline-danger:hover, .btn-danger { box-shadow: 0 3px 10px rgba(220,38,38,.25); }
.btn-outline-success:hover, .btn-success { box-shadow: 0 3px 10px rgba(22,163,74,.25); }
.btn-outline-light { border-color: rgba(0,0,0,.12); color: var(--ink); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }

/* Loading state for buttons: <button data-loading-text="..."> handled via JS adding .is-loading */
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: wtSpin .6s linear infinite;
}
.btn-outline-primary.is-loading::after, .btn-outline-secondary.is-loading::after { border-color: rgba(79,70,229,.3); border-top-color: var(--brand); }
@keyframes wtSpin { to { transform: rotate(360deg); } }

/* Ripple */
.btn .wt-ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.5); animation: wtRipple .55s var(--ease);
  pointer-events: none;
}
@keyframes wtRipple { to { transform: scale(2.6); opacity: 0; } }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-responsive { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.table { margin-bottom: 0; }
.table thead { background: var(--brand-light); }
.table thead th {
  font-weight: 700; color: var(--brand-dark); border-bottom-width: 1px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  padding: 12px 14px; white-space: nowrap;
}
.table tbody td { padding: 11px 14px; vertical-align: middle; font-size: 13.5px; border-color: var(--border); }
.table tbody tr { transition: background .12s var(--ease); }
.table-striped tbody tr:nth-of-type(odd) { background-color: #fafaff; }
.table tbody tr:hover { background: var(--brand-light) !important; }
.table-sm td, .table-sm th { padding: 8px 12px; }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge { font-weight: 600; font-size: 11px; padding: 5px 10px; border-radius: 30px; letter-spacing: .01em; }
.badge.bg-primary { background: var(--brand-light) !important; color: var(--brand) !important; }
.badge.bg-success { background: var(--success-bg) !important; color: var(--success) !important; }
.badge.bg-danger { background: var(--danger-bg) !important; color: var(--danger) !important; }
.badge.bg-warning { background: var(--warning-bg) !important; color: #92400e !important; }
.badge.bg-info { background: var(--info-bg) !important; color: var(--info) !important; }
.badge.bg-secondary { background: #eef0f4 !important; color: var(--muted) !important; }
.badge.bg-dark { background: var(--ink) !important; color: #fff !important; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 13px; font-size: 13.8px; transition: all .16s var(--ease);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light);
}
.form-label { font-weight: 600; font-size: 12.5px; color: var(--ink); margin-bottom: 6px; }
.input-group-text { background: var(--bg); border-color: var(--border); }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-header .modal-title { font-family: 'Plus Jakarta Sans'; font-weight: 700; }
.modal-footer { border-top: 1px solid var(--border); }

/* ==========================================================================
   Alerts / flash
   ========================================================================== */
.alert { border: none; border-radius: 12px; font-weight: 500; border-left: 4px solid transparent; animation: wtFadeUp .3s var(--ease); }
.alert-success { background: var(--success-bg); color: #166534; border-left-color: var(--success); }
.alert-danger { background: var(--danger-bg); color: #991b1b; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: #92400e; border-left-color: var(--warning); }
.alert-info { background: var(--info-bg); color: #155e75; border-left-color: var(--info); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination .page-link { border-radius: 8px; margin: 0 2px; border: 1px solid var(--border); color: var(--ink); font-weight: 500; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-glow); }

/* ==========================================================================
   Skeleton loaders
   ========================================================================== */
.wt-skeleton {
  background: linear-gradient(90deg, #eceef5 25%, #f6f7fb 37%, #eceef5 63%);
  background-size: 400% 100%;
  animation: wtShimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes wtShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ==========================================================================
   Empty state
   ========================================================================== */
.wt-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.wt-empty i { font-size: 40px; color: var(--muted-2); margin-bottom: 12px; display: block; }

/* ==========================================================================
   Login page
   ========================================================================== */
.login-shell {
  min-height: 100vh; display: flex; background: var(--surface);
}
.login-aside {
  flex: 1.05; position: relative; overflow: hidden; display: none;
  background: linear-gradient(160deg, var(--sb-from) 0%, var(--brand-dark) 55%, var(--brand) 130%);
  color: #fff; padding: 60px;
  flex-direction: column; justify-content: space-between;
}
.login-aside .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
  animation: wtFloat 9s ease-in-out infinite;
}
.login-aside .blob.b1 { width: 320px; height: 320px; background: var(--brand-2); top: -80px; right: -60px; }
.login-aside .blob.b2 { width: 260px; height: 260px; background: #22d3ee; bottom: -60px; left: -40px; animation-delay: 2s; }
@keyframes wtFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-24px) scale(1.06); } }
.login-aside .content { position: relative; z-index: 1; }
.login-aside h2 { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 30px; max-width: 380px; color: #fff; }
.login-aside p { color: rgba(255,255,255,.7); max-width: 360px; }
.login-feature { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 13.5px; }
.login-feature i { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }

.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { width: 100%; max-width: 380px; border: none; box-shadow: none; animation: wtFadeUp .5s var(--ease); }
.login-card .card-body { padding: 0 !important; }
.login-logo { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 19px; box-shadow: var(--shadow-glow); margin-bottom: 18px; }

@media (min-width: 992px) { .login-aside { display: flex; } }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .no-print { display: none !important; }
  .sidebar, .app-navbar, #wt-progress { display: none !important; }
  body { background: #fff; }
  .main-content { animation: none; padding: 0; }
}

/* ==========================================================================
   Responsive portal layout
   ========================================================================== */
body { overflow-x: hidden; }
.app-layout { width: 100%; min-width: 0; }
.page-heading-row { gap: 12px; }
.responsive-actions { flex-wrap: wrap; }
.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

@media (max-width: 991.98px) {
  .app-navbar { height: 60px; }
  .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
  }
  .sidebar-backdrop.is-open { inset: 60px 0 0 0; }
  body.sidebar-open { overflow: hidden; }
  .main-content { width: 100%; padding: 22px 20px 48px; }
  .hero-banner { padding: 24px; }
  .table-responsive .table { min-width: 760px; }
}

@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .app-navbar { padding-left: 10px !important; padding-right: 10px !important; }
  .app-navbar .navbar-brand { font-size: 14px; max-width: 205px; line-height: 1.1; }
  .app-navbar .navbar-brand small { font-size: 10px !important; }
  .app-navbar > .d-flex:last-child { gap: 6px !important; }
  .icon-btn { width: 33px; height: 33px; border-radius: 9px; }
  .user-chip { padding: 3px; width: 36px; height: 36px; justify-content: center; }
  .user-chip .avatar { width: 28px; height: 28px; }

  .main-content { padding: 18px 12px 42px; }
  .main-content h4 { font-size: 20px; }
  .main-content > .d-flex.justify-content-between,
  .page-heading-row {
    flex-wrap: wrap;
    align-items: flex-start !important;
  }
  .page-heading-row > * { max-width: 100%; }

  .responsive-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .responsive-actions .btn { width: 100%; white-space: normal; }

  .card, .stat-card { border-radius: 13px; }
  .stat-card:hover { transform: none; }
  .hero-banner { padding: 21px 18px; border-radius: 18px; }
  .hero-banner h3 { font-size: 22px; }
  .hero-banner .quick-actions .btn { width: 100%; }

  .form-control, .form-select { min-height: 44px; font-size: 16px; }
  textarea.form-control { min-height: 96px; }
  .input-group .btn { min-width: 44px; }
  .btn:not(.btn-sm) { min-height: 42px; }

  .table-responsive { border-radius: 12px; }
  .table-responsive .table { min-width: 720px; }
  .table thead th { padding: 11px 12px; font-size: 10.5px; }
  .table tbody td { padding: 10px 12px; font-size: 13px; }

  .modal-dialog { margin: 12px; }
  .modal-content { border-radius: 16px; }
  .login-main { padding: 22px 16px; align-items: center; }
  .login-card { max-width: 430px; }
  .login-shell { min-height: 100dvh; }
}

@media (max-width: 575.98px) {
  .app-navbar .navbar-brand { max-width: 170px; }
  .app-navbar .navbar-brand small { display: none; }
  .brand-mark { width: 31px; height: 31px; font-size: 13px; }
  .sidebar { width: min(88vw, 300px); margin-left: -100vw; }
  .main-content { padding-left: 10px; padding-right: 10px; }
  .responsive-actions { grid-template-columns: 1fr; }
  .responsive-actions .btn { min-height: 42px; }
  .quick-actions { width: 100%; }
  .quick-actions .btn { width: 100%; }
  .hero-banner { padding: 18px 16px; }
  .hero-banner h3 { font-size: 20px; }
  .stat-card.p-4 { padding: 18px !important; }
  .card.p-4 { padding: 18px !important; }
  .alert { font-size: 13px; padding: 12px; }
}

@media print {
  .no-print { display: none !important; }
  .sidebar, .app-navbar, .sidebar-backdrop, #wt-progress { display: none !important; }
  body { background: #fff; overflow: visible; }
  .app-layout { display: block !important; }
  .main-content { animation: none; padding: 0 !important; width: 100%; }
  .table-responsive { overflow: visible; border: 0; box-shadow: none; }
  .table-responsive .table { min-width: 0; }
}
