/* ============ SIAKRES — Sistem Informasi Akreditasi RS ============ */
:root {
  --brand: #0d9488; --brand-d: #0f766e; --brand-l: #14b8a6;
  --accent: #6366f1;
  --bg: #f1f5f9; --bg-2: #e2e8f0;
  --card: #ffffff; --card-2: #f8fafc;
  --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #cbd5e1;
  --ok: #16a34a; --ok-bg: #dcfce7;
  --warn: #d97706; --warn-bg: #fef3c7;
  --low: #dc2626; --low-bg: #fee2e2;
  --info: #2563eb; --info-bg: #dbeafe;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.05);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.14);
  --radius: 14px; --radius-sm: 9px;
  --sidebar-w: 258px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f172a;
  --card: #121c2e; --card-2: #0f1a2b;
  --text: #e2e8f0; --muted: #94a3b8; --faint: #64748b;
  --line: #24344d; --line-2: #33456a;
  --ok-bg: #052e16; --warn-bg: #422006; --low-bg: #450a0a; --info-bg: #172554;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 44px rgba(0,0,0,.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--brand-l); color: #fff; }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: linear-gradient(180deg, #0b3d3a 0%, #072b29 100%);
  color: #cbeae6; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40;
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--brand-l), var(--brand-d)); color: #fff; font-size: 26px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13,148,136,.4); }
.brand-text strong { display: block; font-size: 17px; color: #fff; letter-spacing: .3px; }
.brand-text small { color: #7fcfc7; font-size: 11.5px; }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10.5px 14px; border-radius: 10px; color: #a7d4cf; font-weight: 500; margin-bottom: 3px; transition: .15s; font-size: 14px; }
.nav a i { width: 19px; height: 19px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(20,184,166,.22); color: #fff; box-shadow: inset 3px 0 0 var(--brand-l); }
.nav-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: #5fa39c; padding: 16px 14px 7px; }
.sidebar-foot { padding: 14px; }
.std-badge { font-size: 10.5px; color: #86c5be; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 9px 12px; border-radius: 9px; line-height: 1.4; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 12px 26px; }
.topbar-title h1 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.topbar-title .rs-name { font-size: 12px; color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--brand); border-color: var(--brand-l); }
.theme-btn i { width: 19px; height: 19px; }

.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); padding: 6px 10px 6px 6px; border-radius: 11px; cursor: pointer; color: var(--text); }
.user-btn:hover { border-color: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.user-info { text-align: left; line-height: 1.15; }
.user-info strong { font-size: 13.5px; display: block; }
.user-info small { color: var(--muted); font-size: 11.5px; }
.user-btn i { width: 15px; height: 15px; color: var(--faint); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s; }
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a, .dropdown button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; border: none; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-2); }
.dropdown i { width: 16px; height: 16px; color: var(--muted); }
.dropdown form { margin: 0; }

.content { flex: 1; padding: 26px; max-width: 1380px; width: 100%; margin: 0 auto; }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 20px; }

.hamburger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }

/* ---------------- Alerts ---------------- */
.alert { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: 11px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.alert i { width: 20px; height: 20px; flex: none; }
.alert span { flex: 1; }
.alert-x { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; opacity: .6; line-height: 1; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-error { background: var(--low-bg); color: var(--low); border-color: color-mix(in srgb, var(--low) 30%, transparent); }

/* ---------------- Cards & grid ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section-title { font-size: 16px; font-weight: 700; margin: 26px 0 14px; display: flex; align-items: center; gap: 9px; }
.section-title i { width: 18px; height: 18px; color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------------- Stat tiles ---------------- */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .ic i { width: 22px; height: 22px; }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 5px; }
.stat.tint-brand .ic { background: var(--ok-bg); color: var(--brand); }
.stat.tint-blue .ic { background: var(--info-bg); color: var(--info); }
.stat.tint-violet .ic { background: #ede9fe; color: #7c3aed; }
.stat.tint-amber .ic { background: var(--warn-bg); color: var(--warn); }
html[data-theme="dark"] .stat.tint-violet .ic { background: #2e1065; }

/* Big progress hero */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 26px 28px; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--bg-2) 0); }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--card); }
.ring .val { position: relative; text-align: center; }
.ring .val b { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.ring .val small { display: block; color: var(--muted); font-size: 11px; margin-top: -2px; }
.hero-info h2 { font-size: 20px; margin-bottom: 4px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.hero-metrics .m b { font-size: 21px; font-weight: 800; }
.hero-metrics .m span { color: var(--muted); font-size: 12.5px; }

/* ---------------- Progress bars ---------------- */
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .5s; }
.bar.ok > span { background: var(--ok); } .bar.warn > span { background: var(--warn); }
.bar.low > span { background: var(--low); } .bar.none > span { background: var(--line-2); }

/* ---------------- Bab cards (kelompok) ---------------- */
.kelompok-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.kelompok-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--brand-d); font-weight: 700; }
html[data-theme="dark"] .kelompok-head h2 { color: var(--brand-l); }
.kelompok-head .pill { font-size: 12px; color: var(--muted); }
.bab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bab-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: .18s; position: relative; overflow: hidden; }
.bab-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bab-c, var(--brand)); }
.bab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.bab-card .bc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bab-code { width: 52px; height: 40px; border-radius: 10px; background: var(--bab-c, var(--brand)); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: none; letter-spacing: .3px; }
.bab-card h3 { font-size: 14px; line-height: 1.35; font-weight: 650; }
.bab-card .bc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.bab-card .bc-meta b { color: var(--text); }
.mini-stat { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; }
.mini-stat div span { color: var(--faint); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; }
.mini-stat div b { font-size: 15px; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.low { background: var(--low-bg); color: var(--low); }
.badge.muted { background: var(--bg-2); color: var(--muted); }
.badge.none { background: var(--bg-2); color: var(--faint); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- Breadcrumb ---------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb i { width: 14px; height: 14px; }

/* ---------------- Standar / EP list ---------------- */
.std-block { margin-bottom: 16px; }
.std-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 15px 18px; display: flex; gap: 14px; align-items: flex-start; border-bottom: none; }
.std-head .sk { background: var(--brand); color: #fff; font-weight: 700; padding: 5px 11px; border-radius: 8px; font-size: 13px; flex: none; }
.std-head .st { flex: 1; }
.std-head .st b { font-size: 13px; color: var(--brand-d); }
html[data-theme="dark"] .std-head .st b { color: var(--brand-l); }
.std-head .st p { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.ep-list { border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.ep-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--card); border-top: 1px solid var(--line); transition: .12s; }
.ep-row:hover { background: var(--card-2); }
.ep-row .epk { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); color: var(--muted); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 13px; }
.ep-row .ept { flex: 1; font-size: 13.5px; }
.ep-row .ept small { color: var(--faint); }
.ep-row .epm { display: flex; align-items: center; gap: 10px; flex: none; }
.ep-row .dok-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.ep-row .dok-count i { width: 15px; height: 15px; }
.ep-row .dok-count.has { color: var(--brand); font-weight: 600; }
.chev { width: 17px; height: 17px; color: var(--faint); }

/* ---------------- EP detail ---------------- */
.ep-detail { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.uraian-box { background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; font-size: 15px; line-height: 1.65; }
.ep-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); margin-bottom: 10px; }
.doc-item:hover { border-color: var(--line-2); }
.fico { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; font-size: 11px; font-weight: 700; }
.fico.pdf { background: #e11d48; } .fico.word { background: #2563eb; } .fico.excel { background: #16a34a; }
.fico.ppt { background: #ea580c; } .fico.img { background: #7c3aed; } .fico.zip { background: #64748b; } .fico.file { background: #475569; }
.doc-item .di { flex: 1; min-width: 0; }
.doc-item .di b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item .di small { color: var(--muted); font-size: 11.5px; }
.doc-actions { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand-l); }
.icon-btn.danger:hover { color: var(--low); border-color: var(--low); }
.icon-btn i { width: 16px; height: 16px; }

/* Upload dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer; transition: .15s; background: var(--card-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.dropzone i { width: 34px; height: 34px; color: var(--brand); margin: 0 auto 8px; }
.dropzone b { display: block; font-size: 14px; }
.dropzone small { color: var(--muted); }
.file-preview { margin-top: 10px; font-size: 12.5px; }
.file-preview .fp { display: flex; align-items: center; gap: 7px; padding: 5px 0; color: var(--text); }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; transition: .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { resize: vertical; min-height: 74px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; background: var(--bg-2); color: var(--text); }
.btn:hover { filter: brightness(.97); }
.btn i { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,.28); }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--low); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Assessment radio pills */
.score-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.score-opt { position: relative; }
.score-opt input { position: absolute; opacity: 0; }
.score-opt label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; transition: .12s; text-align: center; }
.score-opt label small { font-weight: 400; font-size: 10.5px; color: var(--muted); }
.score-opt input:checked + label { border-color: var(--sc); background: var(--sc-bg); color: var(--sc); }
.score-opt input:checked + label small { color: var(--sc); }
.score-opt.tl { --sc: var(--ok); --sc-bg: var(--ok-bg); }
.score-opt.ts { --sc: var(--warn); --sc-bg: var(--warn-bg); }
.score-opt.tt { --sc: var(--low); --sc-bg: var(--low-bg); }
.score-opt.tdd { --sc: var(--muted); --sc-bg: var(--bg-2); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; padding: 12px 15px; background: var(--card-2); color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
table.tbl td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--card-2); }
.tbl-actions { display: flex; gap: 6px; }

/* ---------------- Login ---------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero { background: linear-gradient(150deg, #0b3d3a, #0d9488 120%); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); }
.login-hero::before { content: ""; position: absolute; right: 60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.05); }
.login-hero .lh-logo { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 36px; margin-bottom: 30px; }
.login-hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 14px; }
.login-hero p { color: #b9e4df; font-size: 15px; max-width: 400px; line-height: 1.6; }
.login-hero .feat { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.login-hero .feat div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.login-hero .feat i { width: 22px; height: 22px; background: rgba(255,255,255,.16); border-radius: 7px; padding: 3px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 28px; }
.input-ic { position: relative; }
.input-ic i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.input-ic input { padding-left: 42px; }
.login-err { background: var(--low-bg); color: var(--low); padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.login-err i { width: 18px; height: 18px; flex: none; }
.demo-hint { margin-top: 22px; padding: 13px 15px; background: var(--info-bg); color: var(--info); border-radius: 10px; font-size: 12.5px; line-height: 1.6; }

/* ---------------- Misc ---------------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { width: 46px; height: 46px; color: var(--faint); margin: 0 auto 12px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gap-wrap { flex-wrap: wrap; }
.right { margin-left: auto; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.toolbar .search input { padding-left: 40px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) { .ep-detail { grid-template-columns: 1fr; } .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .overlay.show { display: block; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
  .content { padding: 16px; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .user-info { display: none; }
  .topbar { padding: 10px 16px; }
  .topbar-title h1 { font-size: 16px; }
}

/* ---------------- Tambahan ---------------- */
.tc { text-align: center; }
.mini-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini-box span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.mini-box b { font-size: 18px; }
table.tbl tr.row-group td { background: var(--card-2); font-size: 12.5px; color: var(--brand-d); padding-top: 9px; padding-bottom: 9px; }
.sep { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; user-select: none; margin-top: 6px; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; margin-top: 6px; }
.err-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; background: var(--bg); color: var(--text); }
.err-code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -2px; }
.err-page h2 { font-size: 22px; margin: 8px 0 6px; }
.err-page p { max-width: 380px; }

/* ---------------- Cetak ---------------- */
@media print {
  .sidebar, .topbar, .no-print, .hamburger, .overlay { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  body, .app, .main, .content { background: #fff !important; }
  .card, .table-wrap { box-shadow: none !important; border: 1px solid #ddd !important; }
  a { color: inherit !important; text-decoration: none !important; }
}
