/* =====================================================================
   PORPROVKu — PORPROV KALSEL Kab. Hulu Sungai Utara
   Design system: navy/yellow/green sport identity, mobile-first.
   ===================================================================== */
:root {
  --navy-900: #052442;
  --navy-800: #072F5C;
  --navy-700: #0A4179;
  --navy-600: #0C528F;
  --blue: #1668B3;
  --blue-soft: #E9F2FB;
  --yellow: #FFC72C;
  --yellow-2: #F2B705;
  --green: #12A45E;
  --green-soft: #E6F7EF;
  --red: #DC4040;
  --red-soft: #FDECEC;
  --amber: #E08A00;
  --amber-soft: #FFF4E0;
  --ink: #0B1F33;
  --muted: #5C7288;
  --line: #E3EBF4;
  --bg: #F2F6FB;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 8px 24px rgba(7, 50, 96, .07);
  --shadow-lg: 0 18px 44px rgba(7, 50, 96, .14);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
svg.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ----------------------------- app shell ----------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 268px;
  display: flex;
  flex-direction: column;
  color: #DCE9F7;
  background:
    radial-gradient(900px 380px at 110% -10%, rgba(22, 104, 179, .55), transparent 60%),
    linear-gradient(180deg, #062A50 0%, #072F5C 60%, #052442 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; color: #fff; letter-spacing: .2px; }
.brand-text small { font-size: 10.5px; letter-spacing: .18em; color: var(--yellow); font-weight: 700; }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.side-scroll::-webkit-scrollbar { width: 6px; }
.side-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }
.side-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(220, 233, 247, .5); padding: 16px 10px 8px; font-weight: 700;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: #C8DAEE;
  transition: background .15s, color .15s;
}
.nav-link svg { opacity: .82; width: 19px; height: 19px; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--yellow); }
.nav-link.active svg { opacity: 1; color: var(--yellow); }
.nav-badge { margin-left: auto; background: var(--yellow); color: #052442; font-size: 11px; font-weight: 800; border-radius: 20px; padding: 1px 7px; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .14); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; }
.side-user .avatar { background: var(--yellow); color: #052442; }
.su-text { display: flex; flex-direction: column; min-width: 0; }
.su-text strong { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-text small { font-size: 11px; color: var(--yellow); }
.side-note { font-size: 11.5px; color: rgba(220, 233, 247, .65); margin-top: 10px; text-align: center; }

.main { flex: 1; min-width: 0; margin-left: 268px; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px;
  color: #fff;
  background:
    radial-gradient(700px 240px at 100% 0, rgba(22, 104, 179, .6), transparent 65%),
    linear-gradient(115deg, #062A50 0%, #0A4179 62%, #0C528F 100%);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 6px 20px rgba(5, 36, 66, .18);
}
.topbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.topbar-title { min-width: 0; }
.topbar-kicker { font-size: 9.5px; letter-spacing: .2em; color: var(--yellow); font-weight: 800; display: block; }
.topbar-title h1 { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { font-size: 11.5px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: #EAF3FC; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14); transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); }
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  background: var(--yellow); color: #052442; font-size: 10px; font-weight: 800;
  border-radius: 10px; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid #062A50;
}
.profile-btn { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.profile-btn:hover { background: rgba(255, 255, 255, .18); }
.pb-text { display: flex; flex-direction: column; line-height: 1.25; }
.pb-text strong { font-size: 12px; color: #fff; }
.pb-text small { font-size: 10.5px; color: var(--yellow); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); color: #fff; font-weight: 800; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .25); flex: 0 0 auto;
}
.avatar-sm { width: 26px; height: 26px; font-size: 10.5px; }

.content { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 28px 44px; }
.content-wide { max-width: 1400px; }

.footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 28px; }
.footer-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 34px; height: 34px; }
.footer-brand strong { font-size: 13px; color: var(--navy-800); }
.footer-brand p { font-size: 11.5px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--navy-700); }
.footer-copy { font-size: 11px; color: #8496A8; width: 100%; margin: 0; }

.bottomnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(7, 50, 96, .08);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; font-size: 10.5px; font-weight: 600; color: #7088A0; border-radius: 10px;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--navy-700); }
.bn-item.active svg { color: var(--navy-700); }
.bn-item.active span { color: var(--navy-700); }

/* ----------------------------- headings ----------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head-text { display: flex; gap: 12px; align-items: flex-start; }
.page-head-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #0A4179, #1668B3); color: #fff; box-shadow: var(--shadow); flex: 0 0 auto; }
.page-head-text h1 { font-size: 22px; font-weight: 800; letter-spacing: -.2px; color: var(--navy-900); }
.page-head-text p { font-size: 13px; color: var(--muted); max-width: 680px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------- cards ------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #EEF4FA; flex-wrap: wrap; }
.card-titlewrap { display: flex; align-items: center; gap: 10px; }
.card-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--navy-700); display: grid; place-items: center; }
.card-ico svg { width: 18px; height: 18px; }
.card-head h2 { font-size: 14.5px; font-weight: 700; color: var(--navy-900); }
.card-head p { font-size: 11.5px; color: var(--muted); }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid #EEF4FA; display: flex; justify-content: center; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

/* ----------------------------- home hero --------------------------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 22px; padding: 24px;
  background:
    radial-gradient(560px 300px at 88% -20%, rgba(255, 199, 44, .25), transparent 70%),
    linear-gradient(128deg, #052442 0%, #0A4179 52%, #0F62AE 100%);
  box-shadow: var(--shadow-lg);
}
.home-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.10' d='M0 64c180 34 340 34 520 0s340-34 520 0 280 30 400 22v54H0z'/%3E%3Cpath fill='%23FFC72C' fill-opacity='.18' d='M0 88c200 26 360 20 560-6s360-26 560 4 240 24 320 18v36H0z'/%3E%3C/svg%3E") bottom / cover no-repeat;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--yellow); text-transform: uppercase; }
.hero-title { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.6px; margin: 8px 0 8px; }
.hero-title span { color: var(--yellow); }
.hero-sub { font-size: 13px; color: rgba(255, 255, 255, .82); max-width: 470px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 13px; border-radius: 999px; background: var(--yellow); color: #052442; font-weight: 800; font-size: 12px; }
.hero-pill .dotlive { width: 7px; height: 7px; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .2); }
.hero-actions { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.hero-figure { justify-self: end; text-align: center; }
.hero-figure img { width: 100%; max-width: 210px; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stat b { display: block; font-size: 19px; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: 10.5px; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .06em; }

/* quick menu tiles */
.quick-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; border-radius: 14px; background: #FBFDFF; border: 1px solid #E8F0F8;
  font-size: 12px; font-weight: 700; color: var(--navy-900); text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quick-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(7, 50, 96, .10); border-color: #CFE1F2; }
.qt-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.qt-ico svg { width: 23px; height: 23px; }
.qt-ico.blue { background: linear-gradient(140deg, #1E6FBE, #0A4179); }
.qt-ico.gold { background: linear-gradient(140deg, #FFD24D, #E5A500); color: #3B2A00; }
.qt-ico.green { background: linear-gradient(140deg, #1CB86C, #0C7F4A); }
.qt-ico.red { background: linear-gradient(140deg, #E5564B, #B32A22); }
.qt-ico.violet { background: linear-gradient(140deg, #7C6BE0, #4A3AAE); }
.qt-ico.teal { background: linear-gradient(140deg, #18AAB2, #067C88); }
.qt-ico.slate { background: linear-gradient(140deg, #55708C, #2C4258); }

/* ----------------------------- stats ------------------------------- */
.stat-card {
  display: flex; align-items: center; gap: 12px; padding: 15px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.stat-ico svg { width: 22px; height: 22px; }
.tone-blue { background: var(--blue-soft); color: var(--navy-700); }
.tone-gold { background: #FFF6DC; color: #A97A00; }
.tone-green { background: var(--green-soft); color: #0B7A45; }
.tone-red { background: var(--red-soft); color: #B42F2F; }
.tone-violet { background: #F1EDFF; color: #5B46B8; }
.tone-slate { background: #EEF3F8; color: #35536F; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--navy-900); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-sub { font-size: 10.5px; color: #8CA0B3; }

/* ----------------------------- buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; cursor: pointer; background: #EAF1F8; color: var(--navy-800);
  transition: filter .15s, transform .1s, background .15s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #0A4179, #1668B3); color: #fff; box-shadow: 0 6px 14px rgba(10, 65, 121, .25); }
.btn-yellow { background: linear-gradient(135deg, #FFD24D, #F2B705); color: #3A2A00; box-shadow: 0 6px 14px rgba(242, 183, 5, .3); }
.btn-green { background: linear-gradient(135deg, #1CB86C, #0C7F4A); color: #fff; }
.btn-danger { background: var(--red-soft); color: #B42F2F; border-color: #F6CFCF; }
.btn-outline { background: #fff; border-color: #D7E4F1; color: var(--navy-800); }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ----------------------------- badges ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.badge-gray { background: #EFF4F9; color: #5A738B; }
.badge-blue { background: #E8F1FB; color: #155C9E; }
.badge-green { background: #E4F7ED; color: #0B7A45; }
.badge-amber { background: #FFF3DE; color: #A96A00; }
.badge-red { background: #FDEBEB; color: #B42F2F; }
.badge-yellow { background: #FFF6D9; color: #8A6400; }
.badge-navy { background: #E7EEF7; color: #0A4179; }
.badge-live { background: #FDECEC; color: #C0392B; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #C0392B; }

/* ----------------------------- tables ------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 10px 14px; background: #F7FAFD; border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6D8499; white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid #F1F6FA; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFCFF; }
td.num, th.num { text-align: right; }
td.center, th.center { text-align: center; }
.tbl-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ----------------------------- matches ----------------------------- */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match {
  display: block; padding: 14px 15px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.match:hover { border-color: #C9DEF2; box-shadow: 0 8px 20px rgba(7, 50, 96, .08); }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.match-cabor { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--navy-700); }
.match-cabor .ci { width: 24px; height: 24px; border-radius: 7px; background: var(--blue-soft); display: grid; place-items: center; }
.match-cabor .ci svg { width: 14px; height: 14px; }
.match-round { font-size: 10.5px; color: var(--muted); background: #F2F6FA; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.right { flex-direction: row-reverse; text-align: right; }
.team-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-name small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.crest {
  width: 26px; height: 30px; flex: 0 0 auto; border-radius: 5px 5px 8px 8px;
  display: grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.score-box { min-width: 62px; text-align: center; }
.score { font-size: 19px; font-weight: 800; letter-spacing: 1px; color: var(--navy-900); line-height: 1.2; }
.score.vs { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.score-time { font-size: 13px; font-weight: 800; color: var(--navy-700); }
.match-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.match-meta span { display: inline-flex; align-items: center; gap: 4px; }
.match-meta svg { width: 13px; height: 13px; }
.match-status { margin-left: auto; }

/* ----------------------------- quick / details --------------------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.divider { height: 1px; background: #EDF3F9; margin: 14px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 20px; background: #F0F5FA; font-size: 11.5px; font-weight: 600; color: #4C6680; }
.chip.active { background: var(--navy-700); color: #fff; }

.medal-chips { display: inline-flex; gap: 4px; }
.mc { min-width: 26px; height: 24px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.mc.gold { background: #FFF4CF; color: #9A6E00; }
.mc.silver { background: #EEF2F6; color: #566878; }
.mc.bronze { background: #FBEEE3; color: #9B5B29; }

/* ----------------------------- forms ------------------------------- */
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 700; color: #3B5872; }
.field-hint { font-size: 11px; color: #8CA0B3; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=tel], input[type=file], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #D7E4F1; background: #FDFEFF; color: var(--ink);
  font-family: inherit; font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: #7FB2E0; box-shadow: 0 0 0 3px rgba(22, 104, 179, .12); background: #fff; }
input::placeholder, textarea::placeholder { color: #A5B6C6; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3B5872; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--navy-700); }

/* ----------------------------- alerts ------------------------------ */
.alert { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert svg { width: 18px; height: 18px; margin-top: 1px; }
.alert-success { background: #E9F8F0; border-color: #BCE8D1; color: #0A6B3D; }
.alert-error { background: #FDECEC; border-color: #F6CFCF; color: #A82A2A; }
.alert-info { background: #EAF2FB; border-color: #CFE2F5; color: #14538F; }
.alert-warning { background: #FFF5E3; border-color: #F5DFB7; color: #8A5A00; }

/* ----------------------------- tabs -------------------------------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #EAF1F8; border-radius: 12px; max-width: 100%; overflow-x: auto; }
.tab { padding: 7px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #587390; white-space: nowrap; }
.tab.active { background: #fff; color: var(--navy-800); box-shadow: 0 2px 8px rgba(7, 50, 96, .1); }

/* ----------------------------- empty / misc ------------------------ */
.empty { padding: 34px 18px; text-align: center; color: #8CA0B3; }
.empty svg { width: 34px; height: 34px; opacity: .5; margin: 0 auto 8px; }
.empty p { font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #EEF4FA; font-size: 12px; flex-wrap: wrap; }
.pg { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 8px; background: #F0F5FA; font-weight: 700; color: var(--navy-700); }
.pg svg { width: 14px; height: 14px; }
.pg.disabled { opacity: .4; pointer-events: none; }
.pg-info { color: var(--muted); }

/* notification list */
.notif { display: flex; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #F1F6FA; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #F6FAFF; }
.notif-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--navy-700); display: grid; place-items: center; flex: 0 0 auto; }
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { font-size: 13px; display: block; }
.notif-body p { font-size: 12px; color: var(--muted); }
.notif-body time { font-size: 10.5px; color: #93A6B8; }

/* news / gallery */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-thumb { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, #0A4179, #1668B3); display: grid; place-items: center; color: rgba(255, 255, 255, .55); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb svg { width: 34px; height: 34px; }
.news-thumb .news-cat { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .94); color: var(--navy-800); font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.news-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body h3 { font-size: 14px; font-weight: 700; line-height: 1.35; }
.news-body p { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 10.5px; color: #93A6B8; margin-top: auto; display: flex; gap: 8px; align-items: center; }
.article-body { font-size: 14.5px; line-height: 1.8; color: #243B52; white-space: pre-line; }
.article-hero { aspect-ratio: 16/8; border-radius: 16px; background: linear-gradient(135deg, #0A4179, #1668B3); display: grid; place-items: center; color: rgba(255, 255, 255, .5); overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-item { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-item .gi-media { aspect-ratio: 4/3; background: linear-gradient(140deg, #0A4179, #1B7BC9); display: grid; place-items: center; color: rgba(255, 255, 255, .6); position: relative; }
.gallery-item .gi-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .gi-cap { padding: 10px 12px; font-size: 12px; }
.gallery-item .gi-cap strong { display: block; font-size: 12.5px; }
.play-pill { position: absolute; inset: 0; display: grid; place-items: center; }
.play-pill span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #B42F2F; display: grid; place-items: center; }

/* venue */
.venue-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.venue-media { aspect-ratio: 16/8; background: linear-gradient(140deg, #0A4179, #1B7BC9); display: grid; place-items: center; color: rgba(255, 255, 255, .55); position: relative; }
.venue-media img { width: 100%; height: 100%; object-fit: cover; }
.venue-body { padding: 14px; }
.venue-body h3 { font-size: 14.5px; font-weight: 700; }
.venue-body p { font-size: 12px; color: var(--muted); }

/* profile card */
.id-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 18px;
  background: radial-gradient(400px 200px at 100% 0, rgba(255, 199, 44, .22), transparent 65%), linear-gradient(130deg, #052442, #0A4179 60%, #1060AB);
  box-shadow: var(--shadow-lg);
}
.id-card .idc-head { display: flex; align-items: center; gap: 10px; }
.id-card .idc-head img { width: 32px; height: 32px; }
.id-card .idc-title { font-size: 9.5px; letter-spacing: .18em; color: var(--yellow); font-weight: 800; }
.id-card .idc-sub { font-size: 11px; color: rgba(255, 255, 255, .75); }
.id-card .idc-body { display: flex; gap: 14px; margin-top: 16px; align-items: center; }
.id-card .idc-photo { width: 64px; height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.id-card .idc-name { font-size: 16px; font-weight: 800; }
.id-card .idc-role { font-size: 11.5px; color: var(--yellow); font-weight: 700; }
.id-card .idc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 14px; font-size: 11px; }
.id-card .idc-meta span { color: rgba(255, 255, 255, .65); display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.id-card .idc-meta b { font-size: 12px; }
.id-card .idc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .25); font-size: 10px; color: rgba(255, 255, 255, .7); }

/* auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: #F4F8FC; }
.auth-side {
  position: relative; overflow: hidden; padding: 40px; color: #fff;
  background: radial-gradient(700px 400px at 90% 10%, rgba(22, 104, 179, .65), transparent 65%), linear-gradient(150deg, #052442 0%, #0A4179 55%, #0F62AE 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23FFC72C' fill-opacity='.18' d='M0 64c180 34 340 34 520 0s340-34 520 0 280 30 400 22v54H0z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.auth-brand img { width: 52px; height: 52px; }
.auth-brand strong { font-size: 22px; display: block; }
.auth-brand small { font-size: 10.5px; letter-spacing: .2em; color: var(--yellow); font-weight: 700; }
.auth-hero { position: relative; z-index: 2; max-width: 440px; }
.auth-hero h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.auth-hero h1 span { color: var(--yellow); }
.auth-hero p { font-size: 13.5px; color: rgba(255, 255, 255, .8); margin-top: 10px; }
.auth-feats { display: grid; gap: 10px; margin-top: 22px; }
.auth-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: rgba(255, 255, 255, .9); }
.auth-feat span.af-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: var(--yellow); flex: 0 0 auto; }
.auth-feat svg { width: 16px; height: 16px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 30px 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 26px; }
.auth-card h2 { font-size: 21px; font-weight: 800; color: var(--navy-900); }
.auth-card > p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.demo-box { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-box summary { font-size: 12px; font-weight: 700; color: var(--navy-700); cursor: pointer; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.demo-item { font-size: 10.5px; background: #F6FAFE; border: 1px solid #E6EFF8; border-radius: 8px; padding: 6px 8px; }
.demo-item b { display: block; font-size: 10px; color: var(--navy-700); }
.demo-item span { color: var(--muted); font-family: ui-monospace, monospace; }

/* misc: log timeline */
.timeline { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #E4EDF6; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.tl-item.done::before { background: var(--green); border-color: var(--green); }
.tl-item.now::before { background: var(--yellow); border-color: var(--yellow-2); box-shadow: 0 0 0 4px rgba(255, 199, 44, .25); }
.tl-title { font-size: 13px; font-weight: 700; }
.tl-desc { font-size: 11.5px; color: var(--muted); }

/* bracket */
.bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.bracket-col { min-width: 210px; display: flex; flex-direction: column; gap: 12px; }
.bracket-col > h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bracket-match { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12px; }
.bracket-match .bm-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.bracket-match .bm-row.win { font-weight: 800; color: var(--navy-800); }

/* print */
@media print {
  .sidebar, .topbar, .bottomnav, .footer, .page-head-actions, .no-print { display: none !important; }
  .main { margin: 0; }
  .content { max-width: none; padding: 0; }
  body { background: #fff; }
}

/* ----------------------------- responsive -------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .auth-side { display: none; }
  .auth-page { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .bottomnav { display: flex; }
  .topbar { padding: 10px 14px 10px 12px; }
  .topbar-mark { width: 34px; height: 34px; }
  .topbar-title h1 { font-size: 15.5px; }
  .topbar-title p { display: none; }
  .topbar-actions .icon-btn { width: 34px; height: 34px; }
  .profile-btn .pb-text { display: none; }
  .profile-btn { padding: 3px; background: transparent; border-color: transparent; }
  .content { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .footer { display: none; }
  .page-head { margin-bottom: 16px; }
  .page-head-text h1 { font-size: 19px; }
  .page-head-ico { width: 38px; height: 38px; border-radius: 11px; }
  .card-body { padding: 14px; }
  .card-head { padding: 13px 14px; }
  .home-hero { padding: 18px; border-radius: 18px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero-stat b { font-size: 16px; }
  .hero-stat span { font-size: 9px; }
  .quick-grid { gap: 8px; }
  .quick-tile { padding: 12px 4px; font-size: 11px; }
  .qt-ico { width: 38px; height: 38px; }
  .news-grid { grid-template-columns: 1fr; }
  .grid { gap: 16px; grid-template-columns: 1fr !important; }
  .stack { gap: 16px; }
  .grid-stats { gap: 12px; }
  .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .team-name { font-size: 12px; }
  .score { font-size: 17px; }
  .tbl-actions { justify-content: flex-start; }
  table { font-size: 12.5px; }
  th, td { padding: 9px 10px; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   ADMIN PANEL — dashboard analitik, tabel data, keamanan
   ===================================================================== */

/* ---------------------------- filter bar ------------------------------ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex: 1 1 140px; }
.filter-field label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6D8499; }
.filter-field input, .filter-field select { min-height: 38px; padding: 7px 10px; font-size: 13px; background: #FBFDFF; }
.filter-actions { display: flex; gap: 6px; align-items: center; }
.filter-quick { display: flex; gap: 6px; align-items: center; width: 100%; flex-wrap: wrap; }

/* ------------------------------- KPI ---------------------------------- */
.kpi-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.kpi-grid .stat-card { padding: 14px; }

.medal-strip {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px;
  background: linear-gradient(120deg, #052442, #0A4179 62%, #0F62AE);
  border-radius: 16px; padding: 14px 16px; color: #fff; box-shadow: var(--shadow);
}
.medal-tile { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-right: 1px solid rgba(255,255,255,.14); }
.medal-tile:last-of-type { border-right: 0; }
.medal-tile .mt-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.medal-tile.tone-gold .mt-ico { background: rgba(255,199,44,.22); color: #FFD24D; }
.medal-tile.tone-silver .mt-ico { background: rgba(255,255,255,.16); color: #E7EEF6; }
.medal-tile.tone-bronze .mt-ico { background: rgba(205,127,50,.24); color: #F0C69B; }
.medal-tile.tone-blue .mt-ico { background: rgba(62,150,219,.22); color: #9CCDF3; }
.medal-tile b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.medal-tile span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.medal-strip-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #052442; background: var(--yellow); padding: 8px 13px; border-radius: 10px; }
.medal-strip-link svg { width: 15px; height: 15px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
/* item grid tidak boleh melebar melebihi kolomnya (penyebab overflow di mobile) */
.grid > *, .dash-grid > *, .stack > *, .kpi-grid > *, .monitor-grid > *, .medal-strip > * { min-width: 0; }

/* ------------------------------ charts -------------------------------- */
.chart-wrap { width: 100%; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend-inline { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.chart-legend-inline i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-navy { background: var(--navy-700); } .dot-green { background: var(--green); }

.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut-svg { position: relative; flex: 0 0 auto; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 24px; font-weight: 800; color: var(--navy-900); line-height: 1; }
.donut-center span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.donut-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.donut-legend span { flex: 1; color: var(--muted); }
.donut-legend b { font-weight: 800; color: var(--navy-900); }

.progress-list { display: flex; flex-direction: column; gap: 10px; }
.pl-row .pl-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.pl-bar { height: 8px; background: #EDF3F9; border-radius: 20px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; border-radius: 20px; }

/* --------------------------- pending / notif --------------------------- */
.pending-list { display: flex; flex-direction: column; gap: 8px; }
.pending-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: #FBFDFF; border: 1px solid #E8F0F8; transition: border-color .15s, transform .15s;
}
.pending-item:hover { border-color: #C9DEF2; transform: translateX(2px); }
.pi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.pi-ico svg { width: 17px; height: 17px; }
.pi-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pi-text b { font-size: 12.5px; color: var(--ink); }
.pi-count { font-size: 14px; font-weight: 800; color: var(--navy-800); background: #EAF1F8; border-radius: 9px; padding: 3px 10px; }

.notif-mini { display: flex; flex-direction: column; gap: 8px; }
.notif-row { display: flex; gap: 9px; padding: 10px 11px; border-radius: 11px; background: #FBFDFF; border: 1px solid #EDF3F9; }
.notif-row.unread { background: #F2F8FF; border-color: #D8E9F9; }
.notif-row.warning { background: #FFFAF0; border-color: #F7E3BE; }
.notif-row.danger { background: #FEF3F3; border-color: #F6D3D3; }
.notif-row svg { width: 17px; height: 17px; color: var(--navy-700); flex: 0 0 auto; margin-top: 2px; }
.notif-row.warning svg { color: #A96A00; }
.notif-row.danger svg { color: #B42F2F; }
.notif-row b { font-size: 12.5px; display: block; text-transform: capitalize; }
.notif-row p { font-size: 11.5px; color: var(--muted); }
.notif-row time { font-size: 10px; color: #9AAEC0; }

.mini-table { font-size: 12.5px; }
.mini-table th { padding: 8px 10px; font-size: 10px; }
.mini-table td { padding: 8px 10px; }
.mini-progress { display: inline-block; width: 74%; height: 7px; background: #EDF3F9; border-radius: 20px; overflow: hidden; vertical-align: middle; }
.mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1668B3, #12A45E); border-radius: 20px; }

/* --------------------------- live indicator --------------------------- */
.live-badge, .live-indicator {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  background: #E9F8F0; color: #0B7A45; font-size: 11.5px; font-weight: 800;
}
.live-badge i, .live-indicator i {
  width: 7px; height: 7px; border-radius: 50%; background: #12A45E; animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,164,94,.5); } 50% { box-shadow: 0 0 0 5px rgba(18,164,94,0); } }
.monitor-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

/* ----------------------------- data table ---------------------------- */
.data-card { overflow: visible; }
.tbl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #EEF4FA; }
.tbl-search { position: relative; flex: 1 1 240px; max-width: 380px; }
.tbl-search input { padding-left: 36px; min-height: 38px; }
.tbl-search .search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #93A6B8; display: grid; }
.tbl-search .search-ico svg { width: 16px; height: 16px; }
.tbl-export { display: flex; gap: 6px; align-items: center; }
.tbl-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px 15px; background: #FAFCFF; border-bottom: 1px solid #EEF4FA; align-items: flex-end; }
.tbl-filter { display: flex; flex-direction: column; gap: 3px; }
.tbl-filter span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #7C92A6; }
.tbl-filter select { min-height: 34px; padding: 5px 9px; font-size: 12.5px; background: #fff; min-width: 132px; }
.data-table { font-size: 12.8px; }
.data-table th { white-space: nowrap; }
.data-table td { vertical-align: middle; }
.data-table .ta-center { text-align: center; }
.data-table .ta-right { text-align: right; }
.data-table th.ta-center a, .data-table th.ta-right a { justify-content: center; }
.sort-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.sort-link:hover { color: var(--navy-700); }
.sort-ico { opacity: .35; font-size: 9px; }
th.sorted .sort-ico { opacity: 1; color: var(--navy-700); }
th.sorted { color: var(--navy-800); }
.cell-link { color: inherit; }
.cell-link:hover b { color: var(--navy-700); text-decoration: underline; }
.data-table tr:hover .cell-link b { color: var(--navy-700); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 15px; background: #FFFBEB; border-top: 1px solid #F7E3BE; }
.bulk-info { font-size: 12.5px; color: #8A5A00; }
.bulk-info b { font-size: 14px; }
.tbl-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 15px; border-top: 1px solid #EEF4FA; }
.per-page label { font-size: 11.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.per-page select { min-height: 30px; padding: 3px 7px; font-size: 12px; width: auto; }
.pagination { padding: 0; border: 0; display: flex; align-items: center; gap: 10px; }
.inline-form { display: inline-flex; }
.diff { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; flex-wrap: wrap; }
.diff svg { width: 13px; height: 13px; color: #93A6B8; }
.diff-before { background: #F4F7FA; color: #6B8299; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.diff-after { background: #E9F8F0; color: #0B7A45; padding: 2px 7px; border-radius: 6px; font-weight: 700; }

/* ------------------------------ laporan ------------------------------ */
.report-card { transition: transform .15s, box-shadow .15s; }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.report-title { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 800; color: var(--navy-900); }
.report-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--navy-700); }
.report-link svg { width: 14px; height: 14px; }

/* ------------------------------ keamanan ----------------------------- */
.confirm-wrap { max-width: 460px; margin: 28px auto; }
.confirm-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.confirm-ico { width: 44px; height: 44px; border-radius: 12px; background: #FFF4E0; color: #A96A00; display: grid; place-items: center; flex: 0 0 auto; }
.confirm-head h2 { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.mfa-qr { display: grid; place-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.mfa-qr img { border-radius: 8px; }
.secret-box {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; letter-spacing: 2px;
  text-align: center; background: #F5F9FD; border: 1px dashed #C9DEF2; border-radius: 10px;
  padding: 10px; margin: 6px 0; word-break: break-all; color: var(--navy-800); font-weight: 700;
}

/* --------------------------- responsif ------------------------------- */
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-field { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-grid .stat-card { padding: 12px; gap: 9px; }
  .kpi-grid .stat-ico { width: 38px; height: 38px; }
  .kpi-grid .stat-value { font-size: 18px; }
  .kpi-grid .stat-sub { display: none; }
  .medal-strip { gap: 8px; padding: 12px; }
  .medal-tile { border-right: 0; padding: 2px 8px 2px 0; flex: 1 1 40%; }
  .medal-tile b { font-size: 17px; }
  .medal-strip-link { margin-left: 0; width: 100%; justify-content: center; }
  .tbl-toolbar { padding: 11px 12px; }
  .tbl-search { max-width: none; }
  .tbl-export { width: 100%; }
  .tbl-export .btn { flex: 1; }
  .tbl-filters { padding: 10px 12px; }
  .tbl-filter { flex: 1 1 calc(50% - 8px); }
  .tbl-filter select { width: 100%; min-width: 0; }
  .tbl-foot { padding: 10px 12px; }
  .tbl-foot .pagination { width: 100%; justify-content: space-between; }
  .donut-wrap { justify-content: center; }
  .monitor-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { font-size: 12px; }
  .confirm-wrap { margin: 12px auto; }
}
@media print {
  .filter-bar, .tbl-toolbar, .tbl-filters, .tbl-foot, .bulk-bar, .live-indicator, .live-badge { display: none !important; }
  .data-card { border: 0; box-shadow: none; }
  .data-table th { background: #F2F6FA !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* ------------------------------- drawer -------------------------------- */
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 36, 66, .48); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 320px);
  background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(5,36,66,.3); animation: slideIn .2s ease-out;
}
@keyframes slideIn { from { transform: translateX(-16px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 12px 24px; }
.drawer-user { display: flex; gap: 10px; align-items: center; background: #F5F9FD; border: 1px solid #E6EFF8; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.drawer-user .avatar { background: linear-gradient(135deg, #0A4179, #1668B3); }
.drawer-user b { display: block; font-size: 13px; }
.drawer-user small { font-size: 11px; color: var(--muted); }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #33506B; }
.drawer-link svg { width: 18px; height: 18px; color: #7B93A9; }
.drawer-link:hover, .drawer-link.active { background: #F0F6FC; color: var(--navy-800); font-weight: 700; }
.drawer-link:hover svg { color: var(--navy-700); }
.drawer-foot { padding: 14px 4px 0; border-top: 1px solid var(--line); margin-top: 14px; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .hide-sm { display: none; }
}
