/* =========================================================
   Dental Clinic — tema utama
   Semua warna diambil dari CSS variable yang ditulis server
   (lihat tema_css() di lib.php). Jangan menulis warna aksen
   tetap di sini agar tema dapat diganti dari Pengaturan.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --radius: 18px;
    --radius-kecil: 12px;
    --radius-besar: 26px;
    --sisi-lebar: 264px;
    --tooth: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3.2c2.2 0 3.6 1 5 1 1.7 0 3 1.2 3 3.2 0 2.2-1 3.4-1.6 5.6-.5 1.9-.3 3.3-.9 5.6-.4 1.7-1 3.2-2.2 3.2-1 0-1.3-1.2-1.6-2.9-.3-1.7-.6-3.3-1.7-3.3s-1.4 1.6-1.7 3.3c-.3 1.7-.6 2.9-1.6 2.9-1.2 0-1.8-1.5-2.2-3.2-.6-2.3-.4-3.7-.9-5.6C5 10.8 4 9.6 4 7.4 4 5.4 5.3 4.2 7 4.2c1.4 0 2.8-1 5-1z'/></svg>");
}

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.app {
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.01em;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 10px; }
small { font-size: 12.5px; }

svg { width: 20px; height: 20px; flex: none; }

/* ---------------- ornamen latar ---------------- */
.latar-ornamen {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.latar-ornamen .gigi {
    position: absolute;
    display: block;
    width: 190px;
    height: 190px;
    background: var(--accent);
    -webkit-mask: var(--tooth) center / contain no-repeat;
    mask: var(--tooth) center / contain no-repeat;
    opacity: .045;
    transform: rotate(-12deg);
}
html[data-mode="gelap"] .latar-ornamen .gigi { opacity: .09; }
.gigi-1 { top: -40px; right: 6%; width: 260px; height: 260px; transform: rotate(14deg); }
.gigi-2 { top: 32%; left: -70px; width: 230px; height: 230px; transform: rotate(-24deg); }
.gigi-3 { bottom: -60px; right: 12%; width: 300px; height: 300px; transform: rotate(8deg); }
.gigi-4 { top: 12%; left: 38%; width: 130px; height: 130px; opacity: .03; }
.gigi-5 { bottom: 18%; left: 22%; width: 160px; height: 160px; transform: rotate(20deg); opacity: .035; }
.gigi-6 { top: 58%; right: 3%; width: 120px; height: 120px; transform: rotate(-8deg); opacity: .03; }
.bulatan {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}
.bulatan-1 { width: 420px; height: 420px; top: -140px; left: 18%; background: var(--glow-1); }
.bulatan-2 { width: 380px; height: 380px; bottom: -160px; right: 4%; background: var(--glow-2); }
.bulatan-3 { width: 300px; height: 300px; top: 42%; left: -120px; background: var(--glow-3); }

/* ---------------- sidebar ---------------- */
.sisi {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sisi-lebar);
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 40px rgba(15, 40, 45, .04);
}
.sisi-merek {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    position: relative;
}
.sisi-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface);
    padding: 3px;
    box-shadow: var(--shadow-kecil);
}
.sisi-lambang {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), .35);
}
.sisi-lambang svg { width: 24px; height: 24px; }
.sisi-teks { min-width: 0; }
.sisi-teks strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sisi-teks small { color: var(--muted); display: block; font-size: 11.5px; line-height: 1.3; }
.sisi-tutup { display: none; }

.navigasi {
    flex: 1;
    overflow-y: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}
.nav-grup {
    margin: 16px 10px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--muted);
}
.nav-grup:first-child { margin-top: 4px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9.5px 12px;
    border-radius: 12px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 13.6px;
    position: relative;
    transition: background .16s ease, color .16s ease, transform .16s ease;
    white-space: nowrap;
}
.nav-item svg { width: 19px; height: 19px; color: var(--muted); transition: color .16s ease; }
.nav-item:hover { background: var(--accent-soft-2); color: var(--ink); }
.nav-item.is-aktif {
    background: linear-gradient(120deg, var(--accent-soft), var(--accent-soft-2));
    color: var(--accent-dark);
    font-weight: 650;
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .16);
}
.nav-item.is-aktif svg { color: var(--accent); }
.nav-item.is-aktif::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.sisi-kaki { border-top: 1px solid var(--line); padding-top: 12px; }
.pengguna-kotak {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.pengguna-kotak strong { display: block; font-size: 13px; line-height: 1.2; }
.pengguna-kotak small { color: var(--muted); font-size: 11.5px; }
.pengguna-kotak .keluar {
    margin-left: auto;
    color: var(--muted);
    padding: 6px;
    border-radius: 9px;
}
.pengguna-kotak .keluar:hover { color: #dc2626; background: rgba(220, 38, 38, .09); }
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    flex: none;
}
.versi { text-align: center; color: var(--muted); font-size: 10.5px; margin: 10px 0 0; }

/* ---------------- area utama ---------------- */
.utama {
    margin-left: var(--sisi-lebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.atas {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 26px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line);
}
.judul-halaman { min-width: 0; }
.judul-halaman h1 { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.judul-halaman p { color: var(--muted); font-size: 12.5px; margin: 1px 0 0; }
.atas-aksi { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cari-atas {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: var(--shadow-kecil);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.cari-atas:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.cari-atas svg { width: 17px; height: 17px; color: var(--muted); }
.cari-atas input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    width: 230px;
    font: inherit;
    font-size: 13px;
}
.tombol-ikon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.tombol-ikon:hover { background: var(--accent-soft); color: var(--accent-dark); }
.tombol-ikon svg { width: 19px; height: 19px; }
.sisi-buka { display: none; }
.hanya-gelap { display: none; }
html[data-mode="gelap"] .hanya-gelap { display: inline-flex; }
html[data-mode="gelap"] .hanya-terang { display: none; }
.profil-atas { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.profil-atas strong { display: block; font-size: 13px; line-height: 1.2; }
.profil-atas small { color: var(--muted); font-size: 11.5px; }

.isi {
    flex: 1;
    padding: 26px 26px 40px;
    max-width: 1500px;
    width: 100%;
}
.kaki {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 26px 22px;
    color: var(--muted);
    font-size: 11.5px;
    border-top: 1px solid var(--line);
}

/* ---------------- notifikasi ---------------- */
.notifikasi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-kecil);
    margin-bottom: 18px;
    font-weight: 500;
}
.notifikasi p { margin: 0; flex: 1; font-size: 13.5px; }
.notifikasi > span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
}
.notifikasi > span svg { width: 17px; height: 17px; }
.notifikasi button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.notif-sukses { border-color: rgba(16, 185, 129, .32); background: rgba(16, 185, 129, .07); }
.notif-sukses > span { background: rgba(16, 185, 129, .16); color: #047857; }
.notif-error { border-color: rgba(239, 68, 68, .32); background: rgba(239, 68, 68, .07); }
.notif-error > span { background: rgba(239, 68, 68, .15); color: #b91c1c; }
.notif-info > span { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------------- kartu & blok ---------------- */
.kartu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-kecil);
    margin-bottom: 20px;
}
.kartu-kepala {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.kartu-kepala h2 { font-size: 15.5px; font-weight: 750; }
.kartu-ikon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.kartu-ikon svg { width: 18px; height: 18px; }
.kartu-kepala .kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kartu-hint { color: var(--muted); font-size: 12.8px; margin: -6px 0 14px; }
.kartu-kaki { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-rapat { gap: 12px; }

/* ---------------- statistik ---------------- */
.stat {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-kecil);
}
.stat-ikon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 12px;
}
.stat-ikon svg { width: 19px; height: 19px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat-nilai { font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat-kecil { font-size: 11.5px; color: var(--muted); }
.stat::after {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--accent-soft-2);
}

/* ---------------- tombol ---------------- */
.tombol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9.5px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    background: var(--accent-soft);
    color: var(--accent-dark);
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
    text-decoration: none;
    white-space: nowrap;
}
.tombol svg { width: 17px; height: 17px; }
.tombol:hover { transform: translateY(-1px); color: var(--accent-dark); }
.tombol-utama {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), .30);
}
.tombol-utama:hover { color: #fff; box-shadow: 0 14px 28px rgba(var(--accent-rgb), .38); }
.tombol-garis { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.tombol-garis:hover { background: var(--accent-soft-2); border-color: var(--accent); color: var(--accent-dark); }
.tombol-bahaya { background: rgba(239, 68, 68, .10); color: #b91c1c; }
.tombol-bahaya:hover { background: rgba(239, 68, 68, .18); color: #991b1b; }
.tombol-halus { background: transparent; color: var(--muted); padding: 7px 10px; }
.tombol-halus:hover { background: var(--accent-soft-2); color: var(--accent-dark); }
.tombol-kecil { padding: 6.5px 11px; font-size: 12.5px; border-radius: 10px; }
.tombol-kecil svg { width: 15px; height: 15px; }
.tombol-blok { width: 100%; }
.tombol[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.tombol-bundar { border-radius: 999px; }

.tautan { color: var(--accent-dark); font-weight: 600; }
.tautan:hover { text-decoration: underline; }

/* ---------------- form ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.lebar-penuh { grid-column: 1 / -1; }
.kolom { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kolom > label, .label { font-size: 12.6px; font-weight: 600; color: var(--ink-2); }
.wajib { color: #dc2626; }
.kolom input[type="text"],
.kolom input[type="password"],
.kolom input[type="number"],
.kolom input[type="email"],
.kolom input[type="search"],
.kolom input[type="tel"],
.kolom input[type="time"],
.kolom input[type="file"],
.kolom select,
.kolom textarea,
.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.kolom textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
.kolom input:focus, .kolom select:focus, .kolom textarea:focus, .input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .13);
}
.kolom input[readonly] { background: var(--surface-3); color: var(--ink-2); }
.kolom input::placeholder, .kolom textarea::placeholder { color: var(--muted); opacity: .8; }
.kolom .bantuan { font-size: 11.5px; color: var(--muted); }
.kolom-sempit { max-width: 190px; }
.form-aksi { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.form-aksi .kanan { margin-left: auto; }
.baris-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.saklar { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 500; }
.saklar input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .16s ease; flex: none; }
.saklar input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .16s ease; }
.saklar input:checked { background: var(--accent); }
.saklar input:checked::after { transform: translateX(17px); }

.pilihan-kartu { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pilihan-kartu label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    background: var(--surface);
    transition: border-color .15s ease, background .15s ease;
}
.pilihan-kartu label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft-2); font-weight: 600; }

/* ---------------- tabel ---------------- */
.tabel-wrap { overflow-x: auto; border-radius: var(--radius-kecil); border: 1px solid var(--line); }
.tabel { width: 100%; border-collapse: collapse; font-size: 13.2px; min-width: 520px; }
.tabel thead th {
    text-align: left;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11.6px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.tabel tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover { background: var(--surface-2); }
.tabel .rata-kanan, .rata-kanan { text-align: right; }
.tabel .rata-tengah, .rata-tengah { text-align: center; }
.tabel tfoot td { padding: 12px 13px; font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.tabel-kecil { font-size: 12.4px; }
.tabel-kecil thead th, .tabel-kecil tbody td { padding: 8px 10px; }

.pil {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
    background: var(--surface-3);
    color: var(--ink-2);
}
.pil-final { background: rgba(16, 185, 129, .13); color: #047857; }
.pil-draf { background: rgba(245, 158, 11, .16); color: #b45309; }
.pil-batal { background: rgba(239, 68, 68, .13); color: #b91c1c; }
.pil-terbit { background: rgba(var(--accent-rgb), .13); color: var(--accent-dark); }
.pil-diterima { background: rgba(59, 130, 246, .14); color: #1d4ed8; }
.pil-abu { background: var(--surface-3); color: var(--muted); }

.kosong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 34px 16px;
    color: var(--muted);
}
.kosong svg { width: 34px; height: 34px; color: var(--line-2); }
.kosong p { margin: 0; font-size: 13px; }

/* ---------------- beranda ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-besar);
    padding: 30px 32px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(var(--accent-rgb), .22), transparent 60%),
        linear-gradient(130deg, var(--surface) 0%, var(--surface-2) 60%, var(--accent-soft-2) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}
.hero::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 240px;
    height: 240px;
    background: var(--accent);
    opacity: .10;
    -webkit-mask: var(--tooth) center / contain no-repeat;
    mask: var(--tooth) center / contain no-repeat;
    transform: rotate(12deg);
}
.hero h2 { font-size: clamp(20px, 2.3vw, 27px); font-weight: 800; letter-spacing: -.02em; }
.hero p { color: var(--ink-2); max-width: 620px; margin: 8px 0 0; }
.hero .label-kecil { color: var(--accent-dark); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.cari-besar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    max-width: 720px;
    box-shadow: var(--shadow-kecil);
}
.cari-besar svg { width: 20px; height: 20px; color: var(--muted); }
.cari-besar input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    padding: 10px 0;
    color: var(--ink);
    min-width: 0;
}
.cari-besar .tombol { border-radius: 12px; }

.pasien-kartu {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pasien-kartu:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-kecil); }
.pasien-kartu .avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
.pasien-kartu strong { display: block; font-size: 14.5px; }
.pasien-kartu small { color: var(--muted); display: block; font-size: 12px; }
.pasien-kartu .kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.daftar-pasien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.ringkas-pasien { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ringkas-item {
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.ringkas-item span { display: block; color: var(--muted); font-size: 11.5px; }
.ringkas-item strong { font-size: 13.5px; }

/* ---------------- langkah / tab ---------------- */
.langkah {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.langkah a, .langkah button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px 9px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: 12.8px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.langkah .n {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
}
.langkah a.is-aktif, .langkah button.is-aktif {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), .16);
}
.langkah .is-aktif .n { background: var(--accent); color: #fff; }
.langkah-panel { display: none; }
.langkah-panel.is-aktif { display: block; animation: muncul .22s ease; }
@keyframes muncul { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tab {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.tab a, .tab button {
    padding: 10px 15px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.2px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab a.is-aktif, .tab button.is-aktif { color: var(--accent-dark); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-aktif { display: block; }

/* ---------------- kunjungan / baris dinamis ---------------- */
.baris-tindakan, .baris-obat {
    display: grid;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    margin-bottom: 10px;
}
.baris-tindakan { grid-template-columns: 2.2fr 1fr 0.7fr 1.5fr auto; }
.baris-obat { grid-template-columns: 2.2fr 0.7fr 1.6fr auto; }
.baris-tindakan .kolom label, .baris-obat .kolom label { font-size: 11px; }
.baris-hapus {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
    color: #b91c1c;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.baris-hapus:hover { background: rgba(239, 68, 68, .16); }
.baris-hapus svg { width: 16px; height: 16px; }

.total-baris {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--accent-soft-2);
    border: 1px dashed rgba(var(--accent-rgb), .35);
    margin-top: 8px;
}
.total-baris div span { display: block; color: var(--muted); font-size: 11.5px; }
.total-baris div strong { font-size: 15px; }
.total-baris .besar strong { font-size: 20px; color: var(--accent-dark); }

.gigi-pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.gigi-tombol {
    padding: 7px 4px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    color: var(--ink-2);
    text-align: center;
}
.gigi-tombol:hover { border-color: var(--accent); color: var(--accent-dark); }
.gigi-tombol.is-pilih { background: var(--accent); border-color: var(--accent); color: #fff; }

/* odontogram */
.odonto { display: flex; flex-direction: column; gap: 10px; }
.odonto-baris { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.odonto-gigi {
    aspect-ratio: 1;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 650;
    color: var(--muted);
}
.odonto-gigi.is-riwayat { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.odonto-gigi.is-baru { background: var(--accent); border-color: var(--accent); color: #fff; }
.odonto-label { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------------- surat / dokumen ---------------- */
.surat-kertas {
    background: #fff;
    color: #14262b;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 18mm 18mm 16mm;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(10, 40, 45, .18);
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11pt;
    line-height: 1.55;
    position: relative;
}
.surat-kertas.surat-a5 { width: 148mm; min-height: 210mm; padding: 14mm; }
.surat-kop { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #0f766e; padding-bottom: 10px; margin-bottom: 16px; }
.surat-kop img { max-height: 22mm; max-width: 40mm; object-fit: contain; }
.surat-kop-teks { flex: 1; }
.surat-kop-teks strong { display: block; font-size: 15pt; letter-spacing: .02em; }
.surat-kop-teks small { display: block; font-size: 9pt; color: #3f5b60; }
.surat-judul { text-align: center; font-size: 14pt; font-weight: 700; text-decoration: underline; letter-spacing: .08em; margin: 6px 0 2px; }
.surat-nomor { text-align: center; font-size: 10pt; color: #3f5b60; margin-bottom: 18px; }
.surat-isi p { margin: 0 0 10px; text-align: justify; }
.surat-identitas { margin: 12px 0 14px 14px; }
.surat-identitas tr td { padding: 2px 0; vertical-align: top; font-size: 11pt; }
.surat-identitas tr td:first-child { width: 42mm; }
.surat-identitas tr td:nth-child(2) { width: 4mm; }
.surat-jadwal {
    margin: 14px 0;
    padding: 12px 16px;
    border: 1px dashed #0f766e;
    border-radius: 8px;
    background: #f0fdfa;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.surat-jadwal div span { display: block; font-size: 8.5pt; color: #3f5b60; text-transform: uppercase; letter-spacing: .06em; }
.surat-jadwal div strong { font-size: 12.5pt; }
.surat-ttd { margin-top: 26px; display: flex; justify-content: flex-end; }
.surat-ttd-isi { text-align: center; min-width: 60mm; }
.surat-ttd-isi img.qr { width: 26mm; height: 26mm; margin: 4px auto; display: block; }
.surat-ttd-isi .nama { font-weight: 700; text-decoration: underline; margin-top: 2px; }
.surat-ttd-isi .sip { font-size: 9.5pt; color: #3f5b60; }
.surat-kaki { position: absolute; left: 18mm; right: 18mm; bottom: 12mm; font-size: 8pt; color: #5a7378; border-top: 1px solid #d6e3e4; padding-top: 5px; display: flex; justify-content: space-between; gap: 10px; }

/* resep */
.resep-baris { border-bottom: 1px dashed #c9d9dc; padding: 8px 0; }
.resep-baris strong { font-size: 11.5pt; }
.resep-baris .aturan { font-size: 9.5pt; color: #3f5b60; }
.resep-racikan { margin-left: 10mm; }

/* ---------------- login ---------------- */
.masuk {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg);
}
.masuk-kiri {
    position: relative;
    overflow: hidden;
    padding: 46px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(90% 80% at 10% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(145deg, var(--accent-dark), var(--accent) 45%, var(--accent-2) 120%);
}
.masuk-kiri::before, .masuk-kiri::after {
    content: "";
    position: absolute;
    background: #fff;
    opacity: .10;
    -webkit-mask: var(--tooth) center / contain no-repeat;
    mask: var(--tooth) center / contain no-repeat;
}
.masuk-kiri::before { width: 340px; height: 340px; right: -70px; top: -60px; transform: rotate(18deg); }
.masuk-kiri::after { width: 240px; height: 240px; left: -60px; bottom: -70px; transform: rotate(-14deg); }
.masuk-isi { position: relative; z-index: 1; max-width: 460px; }
.masuk-merek { display: flex; align-items: center; gap: 13px; margin-bottom: 40px; }
.masuk-merek img { width: 54px; height: 54px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 15px; padding: 5px; }
.masuk-merek .lambang { width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(6px); }
.masuk-merek .lambang svg { width: 30px; height: 30px; }
.masuk-merek strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; display: block; }
.masuk-merek small { opacity: .85; font-size: 12px; }
.masuk-kiri h1 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; color: #fff; letter-spacing: -.025em; margin-bottom: 14px; }
.masuk-kiri p.slogan { font-size: 14.5px; opacity: .9; max-width: 380px; }
.masuk-poin { display: grid; gap: 11px; margin-top: 30px; }
.masuk-poin div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; opacity: .95; }
.masuk-poin svg { width: 18px; height: 18px; opacity: .9; }
.masuk-kaki { position: relative; z-index: 1; font-size: 11.5px; opacity: .8; }

.masuk-kanan { display: grid; place-items: center; padding: 32px; position: relative; }
.masuk-kartu {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 34px 32px 28px;
    box-shadow: var(--shadow);
    position: relative;
}
.masuk-kartu .ikon-atas {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), .32);
    margin-bottom: 18px;
}
.masuk-kartu h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.masuk-kartu p.sub { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.masuk-kartu .kolom { margin-bottom: 14px; }
.masuk-kartu .kolom input { padding: 12px 14px 12px 42px; }
.masuk-kartu .kolom-ikon { position: relative; }
.masuk-kartu .kolom-ikon > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}
.masuk-kartu .kolom-ikon input { width: 100%; }
.masuk-kartu .kolom .kolom-ikon { display: block; }
.masuk-kartu .masuk-aksi { margin-top: 22px; }
.masuk-kartu .masuk-aksi .tombol { padding: 12px 16px; font-size: 14px; }
.masuk-info { margin-top: 18px; font-size: 11.5px; color: var(--muted); text-align: center; }
.masuk-info strong { color: var(--ink-2); }
.masuk-toggle { position: absolute; top: 22px; right: 22px; }
.masuk-ornamen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.masuk-ornamen span {
    position: absolute;
    background: var(--accent);
    opacity: .05;
    width: 150px;
    height: 150px;
    -webkit-mask: var(--tooth) center / contain no-repeat;
    mask: var(--tooth) center / contain no-repeat;
}
.masuk-ornamen span:nth-child(1) { top: 8%; left: 12%; width: 90px; height: 90px; transform: rotate(-16deg); }
.masuk-ornamen span:nth-child(2) { bottom: 10%; right: 18%; width: 130px; height: 130px; transform: rotate(12deg); }
.masuk-ornamen span:nth-child(3) { top: 62%; left: 6%; width: 60px; height: 60px; transform: rotate(24deg); }

/* ---------------- tanggal picker ---------------- */
.pilih-lapis { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.pilih-kotak {
    position: absolute;
    width: 268px;
    pointer-events: auto;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
}
.pilih-kepala { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pilih-kepala strong { flex: 1; text-align: center; font-size: 13px; }
.pilih-nav {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    line-height: 1;
}
.pilih-nav:hover { background: var(--accent-soft); color: var(--accent-dark); }
.pilih-nama-hari, .pilih-hari { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pilih-nama-hari span { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 3px 0; }
.pilih-hari button {
    padding: 6px 0;
    border: 0;
    background: transparent;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    color: var(--ink-2);
    cursor: pointer;
}
.pilih-hari button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.pilih-hari button.is-luar { color: var(--line-2); }
.pilih-hari button.is-hari-ini { box-shadow: inset 0 0 0 1px var(--accent); }
.pilih-hari button.is-pilih { background: var(--accent); color: #fff; font-weight: 700; }
.pilih-kaki { display: flex; gap: 6px; margin-top: 10px; }
.pilih-kaki button { flex: 1; padding: 7px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 11.5px; cursor: pointer; color: var(--ink-2); }
.pilih-kaki button:hover { border-color: var(--accent); color: var(--accent-dark); }
.pilih-jam { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pilih-jam label { font-size: 11px; color: var(--muted); font-weight: 600; }
.pilih-jam input { width: 100%; padding: 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.pilih-tab { display: flex; gap: 4px; margin-bottom: 8px; }
.pilih-tab button { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.pilih-tab button.is-aktif { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal-latar { position: absolute; inset: 0; background: rgba(8, 24, 28, .55); backdrop-filter: blur(3px); }
.modal-kotak {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(4, 20, 24, .35);
    animation: muncul .18s ease;
}
.modal-kotak.modal-besar { width: min(860px, 100%); }
.modal-kepala { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-kepala h3 { font-size: 17px; font-weight: 750; }
.modal-kepala button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.modal-aksi { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------------- toast ---------------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 500;
    max-width: 340px;
    animation: masukToast .2s ease;
}
.toast svg { width: 17px; height: 17px; color: var(--accent); }
.toast-error svg { color: #dc2626; }
@keyframes masukToast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- potongan halaman ---------------- */
.halaman-aksi { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.halaman-aksi .kanan { margin-left: auto; }
.filter-baris { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-baris .kolom { min-width: 150px; }
.filter-baris .kolom-cari { flex: 1; min-width: 210px; }
.pita {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 13px;
    background: var(--accent-soft-2);
    border: 1px solid rgba(var(--accent-rgb), .22);
    font-size: 13px;
    margin-bottom: 16px;
}
.pita svg { width: 17px; height: 17px; color: var(--accent-dark); }
.pita-warn { background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .35); }
.pita-warn svg { color: #b45309; }

.badge-angka {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}
.teks-kecil { font-size: 12px; color: var(--muted); }
.teks-kuat { font-weight: 650; }
.teks-hijau { color: #047857; }
.teks-merah { color: #b91c1c; }
.teks-tengah { text-align: center; }
.jarak-atas { margin-top: 18px; }
.jarak-bawah { margin-bottom: 18px; }
.tanpa-margin { margin: 0; }
.pemisah { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.daftar-polos { margin: 0; padding-left: 18px; }
.daftar-polos li { margin-bottom: 5px; }

.grafik { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.grafik-kolom { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.grafik-batang {
    width: 100%;
    min-height: 4px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    position: relative;
    transition: height .3s ease;
}
.grafik-batang:hover::after {
    content: attr(data-nilai);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -4px);
    background: var(--ink);
    color: var(--bg);
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
}
.grafik-kolom small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------------- tema pilihan ---------------- */
.palet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.palet {
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s ease, transform .15s ease;
}
.palet:hover { transform: translateY(-2px); }
.palet.is-aktif { border-color: var(--accent); box-shadow: 0 8px 20px rgba(var(--accent-rgb), .18); }
.palet-warna { height: 34px; border-radius: 9px; }
.palet strong { font-size: 12.8px; }
.palet input { display: none; }

/* ---------------- cetak ---------------- */
@media print {
    body.app { background: #fff; }
    .sisi, .atas, .kaki, .latar-ornamen, .toast-wrap, .halaman-aksi, .cetak-hilang, .notifikasi { display: none !important; }
    .utama { margin-left: 0; }
    .isi { padding: 0; max-width: none; }
    .surat-kertas { box-shadow: none; width: auto; min-height: 0; padding: 0; border-radius: 0; }
    .surat-kaki { position: static; margin-top: 16px; }
    @page { size: A4; margin: 12mm; }
}

/* ---------------- responsif ---------------- */
@media (max-width: 1180px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cari-atas input { width: 160px; }
}
@media (max-width: 1000px) {
    .sisi {
        transform: translateX(-104%);
        transition: transform .22s ease;
        z-index: 60;
        box-shadow: 0 0 60px rgba(4, 20, 24, .3);
    }
    body.sisi-buka .sisi { transform: none; }
    .sisi-tutup { display: grid; margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; place-items: center; }
    .tirai { position: fixed; inset: 0; background: rgba(6, 20, 24, .5); z-index: 55; }
    .utama { margin-left: 0; }
    .sisi-buka { display: grid; }
    .atas { padding: 10px 16px; }
    .isi { padding: 18px 16px 34px; }
    .kaki { padding: 14px 16px 20px; }
    .cari-atas { display: none; }
    .atas { flex-wrap: wrap; row-gap: 8px; }
    .atas-aksi { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
    .masuk { grid-template-columns: 1fr; }
    .masuk-kiri { display: none; }
    .masuk-kanan { min-height: 100vh; padding: 22px; }
    .masuk-kartu { box-shadow: var(--shadow); }
}
@media (max-width: 820px) {
    .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .form-grid-4, .daftar-pasien { grid-template-columns: 1fr; }
    .baris-tindakan, .baris-obat { grid-template-columns: 1fr 1fr; }
    .baris-tindakan .kolom:nth-child(1), .baris-obat .kolom:nth-child(1) { grid-column: 1 / -1; }
    .baris-tindakan .baris-hapus, .baris-obat .baris-hapus { grid-column: 2; justify-self: end; }
    .profil-atas { display: none; }
    .judul-halaman h1 { font-size: 17px; }
    .odonto-baris { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .surat-kertas { width: 100%; min-height: 0; padding: 16px; font-size: 10pt; }
    .surat-kop img { max-height: 16mm; }
    .surat-kaki { position: static; margin-top: 14px; }
    .modal-kotak { padding: 18px; }
    .grafik { height: 120px; }
}
@media (max-width: 560px) {
    .atas-aksi { gap: 6px; }
    .kartu-kepala .kanan { width: 100%; margin-left: 0; }
    .hero { padding: 22px; }
    .kartu { padding: 16px; }
    .halaman-aksi .kanan { margin-left: 0; width: 100%; }
    .filter-baris .kolom { min-width: 120px; flex: 1; }
    .total-baris { justify-content: space-between; gap: 12px; }
    .masuk-kartu { padding: 26px 20px; }
    .langkah { gap: 6px; }
    .langkah a, .langkah button { font-size: 11.6px; padding: 7px 11px 7px 8px; }
}
