/* ==========================================================================
   e-Santri — Tema "Modern Islami" (navy + emas, glassmorphism)
   ========================================================================== */
:root {
  /* Warna utama (brand): navy */
  --navy-900: #061229;
  --navy-800: #0A1C3D;
  --navy-700: #14305F;
  --navy-600: #1E4C8F;
  --navy-500: #2A65B5;
  --navy-300: #7FA5D8;
  --navy-100: #E4EDFA;
  /* Warna aksen keagamaan: emas */
  --gold-700: #A97C1B;
  --gold-600: #C99A2E;
  --gold-400: #E4C066;
  --gold-100: #FBF2DA;
  /* Hijau hanya untuk status positif (lunas / hadir / berhasil) */
  --hijau-700: #0F6B45;
  --hijau-600: #16915C;
  --hijau-500: #22A96F;
  --hijau-100: #DDF3E8;
  --ink: #0D1B33;
  --ink-soft: #46536E;
  --muted: #6C7B95;
  --line: rgba(16, 35, 74, .13);
  --card: rgba(255, 255, 255, .82);
  --card-solid: #ffffff;
  --danger: #C0392B;
  --danger-100: #FCEAE7;
  --blue: #2563EB;
  --blue-100: #E5EDFF;
  --purple: #7C3AED;
  --purple-100: #EFE7FD;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 2px 8px rgba(8, 20, 45, .06);
  --shadow: 0 10px 30px rgba(8, 20, 45, .10);
  --shadow-lg: 0 22px 48px rgba(8, 20, 45, .16);
  --sidebar-w: 258px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #F4F7FD;
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgba(42, 101, 181, .22), transparent 62%),
    radial-gradient(760px 480px at 100% 0%, rgba(228, 192, 102, .30), transparent 60%),
    radial-gradient(700px 520px at 50% 108%, rgba(20, 48, 95, .18), transparent 62%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%2314305F' stroke-opacity='0.075' stroke-width='1'%3E%3Cpath d='M42 4 80 42 42 80 4 42z'/%3E%3Cpath d='M42 20 64 42 42 64 20 42z'/%3E%3Ccircle cx='42' cy='42' r='6'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-500); }
h1, h2, h3, h4 { margin: 0 0 .4rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ------------------------------------------------------------- Kerangka */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(170deg, rgba(10, 28, 61, .97), rgba(6, 18, 41, .99));
  color: #EAF7F1;
  padding: 20px 16px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(160%);
  z-index: 40;
}
.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23E4C066' stroke-opacity='0.14'%3E%3Cpath d='M30 0 60 30 30 60 0 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 20px; position: relative; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
  color: #061229; box-shadow: 0 8px 20px rgba(201, 154, 46, .35);
}
.brand-name { font-weight: 700; font-size: 1.06rem; letter-spacing: .2px; }
.brand-sub { font-size: .72rem; color: rgba(234, 247, 241, .62); line-height: 1.3; }
.nav { display: flex; flex-direction: column; gap: 4px; position: relative; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 12px;
  color: rgba(234, 247, 241, .82); font-size: .9rem; font-weight: 500;
  transition: .16s ease; position: relative;
}
.nav-item svg { flex: 0 0 auto; opacity: .9; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.is-active {
  background: linear-gradient(100deg, rgba(42, 101, 181, .38), rgba(228, 192, 102, .20));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(228, 192, 102, .35);
}
.nav-item.is-active::before {
  content: ''; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--gold-400);
}
.nav-sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 12px 6px; }
.nav-badge { margin-left: auto; background: var(--gold-400); color: #061229; border-radius: 20px; font-size: .7rem; font-weight: 700; padding: 2px 7px; }
.nav-out { color: rgba(255, 170, 150, .9); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; margin: 14px 18px 0;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(170%);
  position: sticky; top: 10px; z-index: 30;
}
.topbar-title { flex: 1 1 auto; min-width: 0; }
.tb-name { font-weight: 650; font-size: 1rem; }
.tb-sub { font-size: .76rem; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7); color: var(--navy-700);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn:hover { background: #fff; }
.menu-btn { display: none; }
.notif-btn { text-decoration: none; }
.dot-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--gold-600); color: #fff; border-radius: 20px; font-size: .68rem;
  font-weight: 700; display: grid; place-items: center;
}
.content { padding: 22px 18px 30px; flex: 1 1 auto; min-width: 0; }
.footer {
  padding: 14px 22px 26px; font-size: .74rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tabbar { display: none; }
.overlay { display: none; }

/* --------------------------------------------------------------- Kartu */
.card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; backdrop-filter: blur(18px) saturate(170%);
}
.card-tight { padding: 14px 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-weight: 650; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card-title svg { color: var(--navy-600); }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 26px 0 12px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 1.42rem; font-weight: 720; }
.page-sub { color: var(--muted); font-size: .87rem; margin: 0; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- Stat */
.stat { padding: 18px; position: relative; overflow: hidden; }
.stat::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px;
  border-radius: 50%; opacity: .16; background: var(--navy-500);
}
.stat-green::after { background: var(--hijau-500); }
.stat-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.stat-value { font-size: 1.5rem; font-weight: 750; margin-top: 6px; letter-spacing: -.02em; }
.stat-sub { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.stat-gold::after { background: var(--gold-600); }
.stat-red::after { background: var(--danger); }
.stat-blue::after { background: var(--blue); }
.stat-purple::after { background: var(--purple); }

/* -------------------------------------------------------------- Badge */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 30px; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.badge-hijau { background: var(--hijau-100); color: var(--hijau-700); }
.badge-emas { background: var(--gold-100); color: var(--gold-700); }
.badge-merah { background: var(--danger-100); color: var(--danger); }
.badge-biru { background: var(--blue-100); color: var(--blue); }
.badge-ungu { background: var(--purple-100); color: var(--purple); }
.badge-netral { background: rgba(16, 35, 74, .08); color: var(--ink-soft); }

/* ------------------------------------------------------------- Tombol */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  font-size: .86rem; font-weight: 620; cursor: pointer; text-decoration: none;
  font-family: inherit; transition: .16s ease; line-height: 1.2;
}
.btn-primary { background: linear-gradient(120deg, var(--navy-700), var(--navy-500)); color: #fff; box-shadow: 0 8px 18px rgba(20, 48, 95, .30); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(20, 48, 95, .36); }
.btn-gold { background: linear-gradient(120deg, var(--gold-600), var(--gold-400)); color: #2A1D02; box-shadow: 0 8px 18px rgba(201, 154, 46, .3); }
.btn-gold:hover { color: #2A1D02; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .78); border-color: var(--line); color: var(--navy-700); }
.btn-ghost:hover { background: #fff; color: var(--navy-600); }
.btn-danger { background: var(--danger-100); color: var(--danger); border-color: rgba(192, 57, 43, .2); }
.btn-danger:hover { background: #f8d9d4; color: var(--danger); }
.btn-wa { background: #1FA855; color: #fff; box-shadow: 0 6px 16px rgba(31, 168, 85, .28); }
.btn-wa:hover { color: #fff; background: #178f47; }
.btn-sm { padding: 7px 12px; font-size: .79rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* -------------------------------------------------------------- Tabel */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 0; }
.table-wrap table.data { min-width: 560px; }
table.data th {
  text-align: left; padding: 11px 12px; background: rgba(16, 35, 74, .05);
  color: var(--ink-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid rgba(16, 35, 74, .08); vertical-align: middle; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .6); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data.compact td, table.data.compact th { padding: 8px 10px; }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --------------------------------------------------------------- Form */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .79rem; font-weight: 650; color: var(--ink-soft); }
.field .hint { font-size: .74rem; color: var(--muted); }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=month], input[type=email], select, textarea {
  font-family: inherit; font-size: .89rem; color: var(--ink);
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86); width: 100%; transition: .15s ease;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(42, 101, 181, .18); background: #fff; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.filter-bar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }

.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: inline-block; padding: 6px 10px; border-radius: 9px; font-size: .78rem; font-weight: 620;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .8); cursor: pointer; color: var(--ink-soft);
}
.seg input:checked + span { background: linear-gradient(120deg, var(--navy-700), var(--navy-500)); color: #fff; border-color: transparent; }
.seg.seg-alpa input:checked + span { background: var(--danger); }
.seg.seg-izin input:checked + span { background: var(--blue); }
.seg.seg-sakit input:checked + span { background: var(--purple); }
.seg.seg-terlambat input:checked + span { background: var(--gold-600); color: #2A1D02; }

.absen-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(16, 35, 74, .08); flex-wrap: wrap; }
.absen-row:last-child { border-bottom: 0; }
.absen-nama { flex: 1 1 190px; min-width: 160px; font-weight: 600; font-size: .9rem; }
.absen-meta { font-size: .74rem; color: var(--muted); font-weight: 400; }
.nilai-input { width: 92px !important; }

/* -------------------------------------------------------------- Alert */
.alert { border-radius: var(--radius-sm); padding: 12px 15px; font-size: .86rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--hijau-100); color: var(--hijau-700); border-color: rgba(15, 107, 69, .22); }
.alert-error { background: var(--danger-100); color: var(--danger); border-color: rgba(192, 57, 43, .2); }
.alert-warning { background: var(--gold-100); color: var(--gold-700); border-color: rgba(201, 154, 46, .28); }
.alert-info { background: var(--blue-100); color: var(--blue); border-color: rgba(37, 99, 235, .18); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------ Progress */
.progress { height: 9px; border-radius: 20px; background: rgba(16, 35, 74, .1); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--navy-600), var(--navy-300)); }
.progress-fill.gold { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }

/* -------------------------------------------------------------- Chart */
.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* -------------------------------------------------------------- List */
.list { display: flex; flex-direction: column; gap: 12px; }
.list-item { display: flex; gap: 13px; align-items: flex-start; padding: 13px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .7); }
.list-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); flex: 0 0 auto; }
.list-body { flex: 1 1 auto; min-width: 0; }
.list-title { font-weight: 640; font-size: .92rem; }
.list-meta { font-size: .76rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 8px 14px; font-size: .87rem; }
.kv dt { color: var(--muted); font-size: .8rem; }
.kv dd { margin: 0; font-weight: 550; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 8px 15px; border-radius: 30px; font-size: .84rem; font-weight: 620; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); color: var(--ink-soft); }
.pill.is-active { background: linear-gradient(120deg, var(--navy-700), var(--navy-500)); color: #fff; border-color: transparent; }
.pill.is-active:hover { color: #fff; }
.note { background: var(--gold-100); border: 1px dashed rgba(201, 154, 46, .45); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .83rem; color: var(--gold-700); }
.pesan-box { background: rgba(13, 27, 51, .04); border-left: 3px solid var(--navy-300); padding: 10px 13px; border-radius: 8px; font-size: .84rem; white-space: pre-wrap; }

/* -------------------------------------------------------------- Login */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 26px 18px;
  background:
    radial-gradient(900px 600px at 12% 0%, rgba(42, 101, 181, .40), transparent 60%),
    radial-gradient(800px 520px at 100% 100%, rgba(228, 192, 102, .3), transparent 58%),
    linear-gradient(160deg, #061229, #0A1C3D 55%, #14305F);
}
.auth-wrap::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='none' stroke='%23E4C066' stroke-opacity='0.22'%3E%3Cpath d='M45 3 87 45 45 87 3 45z'/%3E%3Cpath d='M45 24 66 45 45 66 24 45z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-shell { width: 100%; max-width: 940px; display: grid; gap: 22px; grid-template-columns: 1.05fr .95fr; position: relative; }
.auth-card {
  background: rgba(255, 255, 255, .93); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-lg); backdrop-filter: blur(20px) saturate(180%);
}
.auth-hero { color: #EAF7F1; padding: 10px 6px; }
.auth-hero h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 10px; }
.auth-hero p { color: rgba(234, 247, 241, .8); font-size: .93rem; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-features { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.auth-feature { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: rgba(234, 247, 241, .88); }
.auth-feature svg { color: var(--gold-400); flex: 0 0 auto; margin-top: 1px; }
.demo-box { margin-top: 20px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(228, 192, 102, .5); border-radius: 14px; padding: 14px; }
.demo-box h4 { color: var(--gold-400); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.demo-chip {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  border-radius: 10px; padding: 7px 11px; font-size: .76rem; cursor: pointer; font-family: inherit;
}
.demo-chip:hover { background: rgba(228, 192, 102, .26); }
.role-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.role-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px; font-size: .78rem; color: var(--ink-soft); background: rgba(255, 255, 255, .7); }
.role-card strong { display: block; color: var(--ink); font-size: .84rem; margin-bottom: 2px; }

/* ---------------------------------------------------------- Responsif */
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 560px; }
  .auth-hero { order: 2; }
}
@media (max-width: 900px) {
  :root { --radius: 14px; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; transform: translateX(-104%);
    transition: transform .25s ease; width: 272px; flex-basis: 272px;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .overlay { display: block; position: fixed; inset: 0; background: rgba(6, 18, 41, .55); z-index: 35; backdrop-filter: blur(2px); }
  .menu-btn { display: grid; }
  .topbar { margin: 10px 12px 0; padding: 11px 14px; top: 6px; }
  .content { padding: 16px 12px 96px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line);
    backdrop-filter: blur(18px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 22px rgba(8, 20, 45, .09);
  }
  .tab-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: .66rem; color: var(--muted); padding: 5px 2px; border-radius: 10px; font-weight: 600;
  }
  .tab-item:hover { color: var(--navy-600); }
  .footer { padding: 10px 14px 84px; font-size: .7rem; }
  .page-title { font-size: 1.2rem; }
  .kv { grid-template-columns: 104px 1fr; }
  .card { padding: 16px; }
}
@media (max-width: 560px) {
  .grid { gap: 14px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.26rem; }
  .page-head { align-items: flex-start; }
  .absen-row { gap: 8px; }
}
@media print {
  .sidebar, .topbar, .tabbar, .page-actions, .footer { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
