/*
|==========================================================================
| Albana UI · Soft Blue 2.0
|==========================================================================
| Sistem gaya mandiri untuk Sistem Permintaan Fitur, dibangun di atas
| Bootstrap 4.1 (grid, utilitas, modal, dropdown, collapse, tooltip).
| Tidak memakai atlantis.css agar tidak ada bentrokan gaya.
|
| Ciri khas RME Albana yang dipertahankan: pita header biru gradasi,
| menu putih melayang, kartu & header soft-blue, font Lato, aksen #1d7af3.
*/

/* ------------------------------------------------------------------ */
/* 1. Token                                                            */
/* ------------------------------------------------------------------ */
:root {
    --p: #1d7af3;
    --p-600: #1660c4;
    --p-700: #124fa3;
    --p-400: #3697e1;
    --p-soft: #eaf4ff;
    --p-soft-2: #f4f9ff;
    --p-line: #d3e8fb;

    --ink: #172033;
    --ink-2: #3c4658;
    --ink-3: #5a6478;
    --muted: #8a94a6;
    --line: #e6ecf5;
    --line-2: #eef2f8;
    --bg: #f3f6fb;
    --white: #fff;

    --ok: #1f9d4c;   --ok-soft: #e8f8ee;
    --warn: #c47a12; --warn-soft: #fef5e7;
    --bad: #d9364a;  --bad-soft: #fdecee;
    --teal: #0f8c7b; --teal-soft: #e2f6f3;
    --indigo: #3d5bd9; --indigo-soft: #e9edff;
    --purple: #7a4fd6; --purple-soft: #f2ecff;
    --slate: #5a6478; --slate-soft: #eef1f6;

    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 20px;

    --sh-sm: 0 1px 2px rgba(16, 40, 90, .06);
    --sh: 0 1px 2px rgba(16, 40, 90, .05), 0 6px 18px rgba(16, 40, 90, .06);
    --sh-lg: 0 18px 48px rgba(16, 40, 90, .16);

    --edge-h: 108px; /* tinggi tepi bawah pita (EKG + ombak) */
}

/* ------------------------------------------------------------------ */
/* 2. Dasar                                                            */
/* ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body.ab {
    font-family: 'Lato', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.ab a { color: var(--p); }
.ab a:hover { color: var(--p-600); text-decoration: none; }
.ab h1, .ab h2, .ab h3, .ab h4, .ab h5, .ab h6 { color: var(--ink); font-weight: 800; }
.ab b, .ab strong { font-weight: 700; }
.ab hr { border-top-color: var(--line); }
.ab ::selection { background: rgba(29, 122, 243, .18); }
.ab :focus-visible { outline: 2px solid var(--p-400); outline-offset: 2px; }
.text-ink { color: var(--ink) !important; }
.text-muted-x { color: var(--muted) !important; }
.fw-800 { font-weight: 800 !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.min-w-0 { min-width: 0; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.container { max-width: 1240px; }
@media (max-width: 575.98px) { .container { padding-left: 14px; padding-right: 14px; } }

/* ------------------------------------------------------------------ */
/* 3. Pita header (ciri khas)                                          */
/* ------------------------------------------------------------------ */
.ab-band {
    position: relative;
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 L54 17 L54 47 L28 62 L2 47 L2 17 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.2'/%3E%3C/svg%3E"),
        linear-gradient(120deg, #1567d6 0%, #1d7af3 45%, #3697e1 100%);
    background-size: 56px 64px, auto;
    padding-bottom: calc(var(--edge-h) - 6px);
}

.ab-topbar { display: flex; align-items: center; gap: 14px; height: 68px; }
.ab-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; min-width: 0; }
.ab-brand img { height: 30px; width: auto; }
.ab-brand .sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .35); }
.ab-brand .app { line-height: 1.15; font-size: 13px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.ab-brand .app small { display: block; font-weight: 400; opacity: .85; font-size: 11.5px; }
.ab-topbar .spacer { flex: 1; }

.ab-iconbtn {
    position: relative;
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); color: #fff; border: 0;
    transition: background .15s;
    font-size: 16px;
}
.ab-iconbtn:hover, .ab-iconbtn[aria-expanded='true'] { background: rgba(255, 255, 255, .26); color: #fff; }
.ab-iconbtn .count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: #ff5a5f; color: #fff; font-size: 10.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #1d7af3;
}
.ab-userchip {
    display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px;
    border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; border: 0;
    transition: background .15s; max-width: 240px;
}
.ab-userchip:hover, .ab-userchip[aria-expanded='true'] { background: rgba(255, 255, 255, .26); }
.ab-userchip .who { text-align: left; line-height: 1.15; min-width: 0; }
.ab-userchip .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-userchip .who small { font-size: 11px; opacity: .85; }
.btn-band {
    background: #fff; color: var(--p) !important; font-weight: 800; border-radius: 12px;
    padding: 9px 14px; font-size: 13px; box-shadow: 0 4px 12px rgba(10, 40, 100, .15);
}
.btn-band:hover { background: var(--p-soft); }

/* ------------------------------------------------------------------ */
/* 4. Menu utama (putih melayang)                                      */
/* ------------------------------------------------------------------ */
.ab-nav {
    background: #fff; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(10, 40, 100, .14);
    padding: 6px; display: flex; align-items: center; gap: 2px;
}
.ab-nav > .item { position: relative; }
.ab-nav .link {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-radius: 11px;
    color: var(--ink-3) !important; font-weight: 700; font-size: 13.5px; white-space: nowrap;
    background: none; border: 0; transition: background .15s, color .15s; cursor: pointer;
}
.ab-nav .link i.ic { font-size: 16px; color: #9aa6b8; transition: color .15s; }
.ab-nav .link .caret { font-size: 9px; opacity: .6; margin-left: 2px; }
.ab-nav .link:hover { background: var(--p-soft-2); color: var(--p) !important; }
.ab-nav .link:hover i.ic { color: var(--p); }
.ab-nav .item.active > .link { background: var(--p-soft); color: var(--p) !important; }
.ab-nav .item.active > .link i.ic { color: var(--p); }
.ab-nav .dropdown-menu { margin-top: 8px; }

/* Dropdown umum */
.ab .dropdown-menu {
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
    padding: 6px; font-size: 13.5px; min-width: 220px;
}
.ab .dropdown-item { border-radius: 9px; padding: 9px 12px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ab .dropdown-item i { width: 16px; text-align: center; color: var(--muted); }
.ab .dropdown-item:hover, .ab .dropdown-item:focus { background: var(--p-soft-2); color: var(--p); }
.ab .dropdown-item:hover i { color: var(--p); }
.ab .dropdown-item.active, .ab .dropdown-item:active { background: var(--p-soft); color: var(--p); }
.ab .dropdown-divider { border-color: var(--line-2); margin: 6px 4px; }
.ab .dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 8px 12px 4px; }

/* Panel notifikasi di topbar */
.notif-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0 !important; overflow: hidden; }
.notif-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.notif-panel .head b { color: var(--ink); }
.notif-panel .list { max-height: 360px; overflow-y: auto; }
.notif-panel .foot { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 13px; border-top: 1px solid var(--line-2); background: var(--p-soft-2); }

/* Profil di topbar */
.user-panel { width: 290px; padding: 0 !important; overflow: hidden; }
.user-panel .head { display: flex; gap: 12px; align-items: center; padding: 16px; background: linear-gradient(120deg, var(--p-soft), #fff); border-bottom: 1px solid var(--line-2); }
.user-panel .body { padding: 6px; }

/* ------------------------------------------------------------------ */
/* 5. Judul halaman di atas pita                                       */
/* ------------------------------------------------------------------ */
.ab-pagehead .actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pagehead .actions .btn-light { background: rgba(255, 255, 255, .16); color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); }
.ab-pagehead .actions .btn-light:hover { background: rgba(255, 255, 255, .28); }
.ab-pagehead .actions .btn-white { background: #fff; color: var(--p) !important; border: 0; box-shadow: 0 4px 12px rgba(10, 40, 100, .15); }
.ab-pagehead .actions .btn-white:hover { background: var(--p-soft); }

.ab-main { flex: 1; position: relative; padding-top: 6px; padding-bottom: 40px; } /* tanpa z-index: agar modal Bootstrap tidak tertutup backdrop */

/* ------------------------------------------------------------------ */
/* 6. Kartu                                                            */
/* ------------------------------------------------------------------ */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); margin-bottom: 22px; min-width: 0; }
.box-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid var(--p-line); background: var(--p-soft);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.box-head.plain { background: #fff; border-bottom-color: var(--line-2); }
.ab .box-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--p); display: flex; align-items: center; gap: 9px; }
.box-title i { font-size: 14px; opacity: .9; }
.box-title .chip { margin-left: 2px; }
.box-body { padding: 20px; }
.box-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fbfcfe; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.box > :last-child { border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }
@media (max-width: 575.98px) {
    .box-head { padding: 12px 16px; }
    .box-body { padding: 16px; }
    .box-foot { padding: 12px 16px; }
}

/* ------------------------------------------------------------------ */
/* 7. Tile statistik                                                   */
/* ------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh);
    color: inherit !important; transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
a.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 40, 90, .10); border-color: var(--p-line); }
.tile .ti { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tile .tv { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.tile .tl { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ts { font-size: 11.5px; color: var(--muted); }
@media (max-width: 991.98px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .tiles { gap: 10px; }
    .tile { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .tile .ti { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; border-radius: 10px; }
    .tile .tv { font-size: 20px; }
}

/* Latar lembut per warna (ikon, avatar, timeline) */
.bg-s-info    { background: var(--p-soft) !important; color: var(--p) !important; }
.bg-s-primary { background: var(--indigo-soft) !important; color: var(--indigo) !important; }
.bg-s-teal    { background: var(--teal-soft) !important; color: var(--teal) !important; }
.bg-s-warning { background: var(--warn-soft) !important; color: var(--warn) !important; }
.bg-s-success { background: var(--ok-soft) !important; color: var(--ok) !important; }
.bg-s-danger  { background: var(--bad-soft) !important; color: var(--bad) !important; }
.bg-s-purple  { background: var(--purple-soft) !important; color: var(--purple) !important; }
.bg-s-slate   { background: var(--slate-soft) !important; color: var(--slate) !important; }
.bg-s-muted   { background: #f1f2f5 !important; color: #9aa0ac !important; }

/* ------------------------------------------------------------------ */
/* 8. Chip (badge) & titik warna                                       */
/* ------------------------------------------------------------------ */
.chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: middle;
}
.chip i { font-size: 10px; }
.chip-sm { padding: 1px 8px; font-size: 10.5px; }
.chip-info    { background: var(--p-soft); color: var(--p); }
.chip-primary { background: var(--indigo-soft); color: var(--indigo); }
.chip-teal    { background: var(--teal-soft); color: var(--teal); }
.chip-warning { background: var(--warn-soft); color: var(--warn); }
.chip-success { background: var(--ok-soft); color: var(--ok); }
.chip-danger  { background: var(--bad-soft); color: var(--bad); }
.chip-purple  { background: var(--purple-soft); color: var(--purple); }
.chip-slate   { background: var(--slate-soft); color: var(--slate); }
.chip-muted   { background: #f1f2f5; color: #9aa0ac; }
.chip-outline { background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.chip-count { background: #fff; color: var(--p); box-shadow: inset 0 0 0 1px var(--p-line); padding: 0 8px; font-size: 11px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.dot-info { background: var(--p); } .dot-primary { background: var(--indigo); } .dot-teal { background: var(--teal); }
.dot-warning { background: #f0a43a; } .dot-success { background: #28a745; } .dot-danger { background: #e5484d; }
.dot-purple { background: var(--purple); } .dot-slate { background: #8a94a6; } .dot-muted { background: #c3c8d1; }

.kode { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; font-weight: 700; color: var(--p); letter-spacing: .02em; }
.meta { font-size: 12px; color: var(--muted); }
.meta i { width: 13px; text-align: center; margin-right: 2px; }
.meta .sep { margin: 0 6px; opacity: .6; }

/* ------------------------------------------------------------------ */
/* 9. Tombol                                                           */
/* ------------------------------------------------------------------ */
.ab .btn {
    border-radius: 11px; font-weight: 700; font-size: 13.5px; padding: 9px 16px; line-height: 1.4;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.ab .btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.ab .btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.ab .btn-block { display: flex; width: 100%; }
.ab .btn:focus, .ab .btn.focus { box-shadow: 0 0 0 3px rgba(29, 122, 243, .2); }
.ab .btn-primary { background: var(--p); border-color: var(--p); color: #fff; }
.ab .btn-primary:hover, .ab .btn-primary:not(:disabled):active { background: var(--p-600); border-color: var(--p-600); color: #fff; }
.ab .btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.ab .btn-light:hover { background: var(--p-soft-2); border-color: var(--p-line); color: var(--p); }
.ab .btn-soft { background: var(--p-soft); border: 1px solid var(--p-line); color: var(--p); }
.ab .btn-soft:hover { background: #dcecff; color: var(--p-600); }
.ab .btn-danger { background: #e5484d; border-color: #e5484d; color: #fff; }
.ab .btn-danger:hover { background: #cc3a3f; border-color: #cc3a3f; }
.ab .btn-success { background: #23a455; border-color: #23a455; color: #fff; }
.ab .btn-warning { background: #f0a43a; border-color: #f0a43a; color: #fff; }
.ab .btn-ghost-danger { background: #fff; border: 1px solid var(--line); color: var(--bad); }
.ab .btn-ghost-danger:hover { background: var(--bad-soft); border-color: #f6c8ce; color: var(--bad); }
.ab .btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; flex: 0 0 34px; }
.ab .btn-icon.btn-sm { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
.ab .btn:disabled, .ab .btn.disabled { opacity: .6; }
.btn-group-x { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }

/* ------------------------------------------------------------------ */
/* 10. Formulir                                                        */
/* ------------------------------------------------------------------ */
.fld { margin-bottom: 18px; }
.fld:last-child { margin-bottom: 0; }
.lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: 13px; margin-bottom: 6px; }
.lbl .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.req::after { content: ' *'; color: #e5484d; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.err { font-size: 12px; color: var(--bad); margin-top: 5px; font-weight: 600; }
.ab .form-control, .ab .custom-select {
    border-radius: 11px; border: 1px solid #d9e1ec; color: var(--ink); font-size: 14px;
    height: 42px; padding: 8px 13px; background-color: #fff; transition: border-color .15s, box-shadow .15s;
}
.ab .custom-select { padding-right: 32px; }
.ab textarea.form-control { height: auto; min-height: 90px; line-height: 1.6; }
.ab .form-control::placeholder { color: #a7b0bf; }
.ab .form-control:focus, .ab .custom-select:focus { border-color: var(--p-400); box-shadow: 0 0 0 3px rgba(54, 151, 225, .16); }
.ab .form-control.is-invalid, .ab .custom-select.is-invalid { border-color: #e5484d; background-image: none; padding-right: 13px; }
.ab .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.ab .form-control-sm, .ab .custom-select-sm { height: 36px; font-size: 13px; border-radius: 10px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #a7b0bf; font-size: 13px; pointer-events: none; }
.input-icon > .form-control { padding-left: 36px; }
.char-count { font-weight: 600; font-size: 11.5px; color: var(--muted); }

/* Checkbox */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 0; font-size: 13px; color: var(--ink-2); user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box-c { width: 19px; height: 19px; flex: 0 0 19px; border-radius: 6px; border: 2px solid #c9d3e1; background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all .15s; }
.check .box-c::after { content: '\f00c'; font-family: 'Font Awesome 5 Solid'; font-weight: 900; font-size: 10px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.check input:checked + .box-c { background: var(--p); border-color: var(--p); }
.check input:checked + .box-c::after { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box-c { box-shadow: 0 0 0 3px rgba(29, 122, 243, .2); }
.check.is-invalid .box-c { border-color: #e5484d; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 23px; flex: 0 0 40px; border-radius: 12px; background: #d3dae6; position: relative; transition: background .2s; }
.switch .track::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 .2s; }
.switch input:checked + .track { background: var(--p); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(29, 122, 243, .2); }

/* Kartu pilihan (radio) */
.pick { position: relative; display: block; margin: 0; cursor: pointer; height: 100%; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick .pk {
    height: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 16px;
    border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pick .pk .pi { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.pick .pk .pt { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.pick .pk .pd { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.pick .pk .tick { margin-left: auto; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid #c9d3e1; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.pick .pk .tick::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.pick:hover .pk { border-color: var(--p-line); }
.pick input:checked + .pk { border-color: var(--p); background: var(--p-soft-2); box-shadow: 0 0 0 4px rgba(29, 122, 243, .08); }
.pick input:checked + .pk .tick { border-color: var(--p); background: var(--p); }
.pick input:checked + .pk .tick::after { transform: scale(1); }
.pick input:focus-visible + .pk { box-shadow: 0 0 0 3px rgba(29, 122, 243, .25); }
.pick.compact .pk { padding: 12px; gap: 10px; flex-direction: column; }
.pick.compact .pk .pt { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.pick.compact .pk .pd { font-size: 11.5px; }
.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Unggah berkas */
.drop {
    border: 2px dashed var(--p-line); border-radius: 14px; background: var(--p-soft-2);
    padding: 24px 16px; text-align: center; cursor: pointer; transition: all .15s;
}
.drop:hover, .drop.on { border-color: var(--p); background: var(--p-soft); }
.drop .di { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--p); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--sh-sm); margin-bottom: 8px; }
.drop .dt { font-weight: 800; color: var(--ink); }

/* Langkah bernomor di formulir */
.step-no { width: 26px; height: 26px; border-radius: 8px; background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 900; }

/* ------------------------------------------------------------------ */
/* 11. Filter bar & tab status                                         */
/* ------------------------------------------------------------------ */
.filterbar { padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.filterbar .fgrid { display: grid; gap: 10px; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; }
.filterbar .fgrid.cols-3 { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; }
.filterbar .fgrid.cols-4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; }
.filterbar .fgrid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 991.98px) {
    .filterbar .fgrid, .filterbar .fgrid.cols-3, .filterbar .fgrid.cols-4, .filterbar .fgrid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filterbar .fgrid > .full { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) { .filterbar { padding: 12px 16px; } }

.tabs-x { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: thin; }
.tabs-x a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px;
    font-size: 12.5px; font-weight: 700; color: var(--ink-3) !important; background: transparent; border: 1px solid transparent; transition: all .15s;
}
.tabs-x a .n { background: var(--slate-soft); color: var(--slate); border-radius: 8px; padding: 0 7px; font-size: 11px; }
.tabs-x a:hover { background: var(--p-soft-2); color: var(--p) !important; }
.tabs-x a.active { background: var(--p-soft); border-color: var(--p-line); color: var(--p) !important; }
.tabs-x a.active .n { background: #fff; color: var(--p); }
@media (max-width: 575.98px) { .tabs-x { padding: 10px 16px; } }

/* ------------------------------------------------------------------ */
/* 12. Daftar permintaan (baris kartu responsif)                       */
/* ------------------------------------------------------------------ */
.rq { display: grid; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); transition: background .15s; position: relative; }
.rq:last-child { border-bottom: 0; }
.rq:hover { background: #f9fbff; }
.rq.cols-user  { grid-template-columns: minmax(0, 1fr) 160px 150px 96px 76px; }
.rq.cols-admin { grid-template-columns: minmax(0, 1fr) 190px 150px 150px 40px; }
.rq .rq-title { display: block; font-weight: 800; color: var(--ink) !important; font-size: 14.5px; line-height: 1.4; margin: 5px 0 4px; word-break: break-word; }
.rq .rq-title:hover { color: var(--p) !important; }
.rq .rq-col-label { display: none; }
.rq .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.rq .act { display: flex; justify-content: flex-end; gap: 6px; }
.rq .bar { height: 4px; background: var(--line-2); border-radius: 4px; margin-top: 10px; overflow: hidden; max-width: 360px; }
.rq .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--p), var(--p-400)); border-radius: 4px; }
.rq .stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.rq .stats span { display: inline-flex; align-items: center; gap: 4px; }
.rq-head { display: grid; gap: 16px; padding: 10px 20px; background: #f7f9fd; border-bottom: 1px solid var(--line-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rq-head.cols-user  { grid-template-columns: minmax(0, 1fr) 160px 150px 96px 76px; }
.rq-head.cols-admin { grid-template-columns: minmax(0, 1fr) 190px 150px 150px 40px; }
.rq-head .act-sp { width: 34px; }
@media (max-width: 991.98px) {
    .rq-head { display: none; }
    .rq.cols-user, .rq.cols-admin { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
    .rq .rq-main { grid-column: 1 / -1; }
    .rq .rq-col-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-bottom: 3px; }
    .rq .act { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; border-top: 1px dashed var(--line); padding-top: 10px; }
}
@media (max-width: 575.98px) { .rq { padding: 14px 16px; } }

/* Daftar ringkas (dashboard) */
.mini { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); color: inherit !important; transition: background .15s; }
.mini:last-child { border-bottom: 0; }
.mini:hover { background: #f9fbff; }
.mini .mi { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mini .mt { font-weight: 800; color: var(--ink); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 575.98px) { .mini { padding: 12px 16px; } }

/* ------------------------------------------------------------------ */
/* 13. Tabel (berubah jadi kartu di mobile)                            */
/* ------------------------------------------------------------------ */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th {
    background: #f7f9fd; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 11px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; text-align: left;
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13.5px; color: var(--ink-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: #f9fbff; }
.tbl tfoot td { background: #f7f9fd; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 0; }
.tbl .num { text-align: center; }
.tbl tr.dim td { opacity: .55; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 767.98px) {
    .tbl-stack thead { display: none; }
    .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
    .tbl-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
    .tbl-stack tbody tr:last-child { border-bottom: 0; }
    .tbl-stack td { padding: 5px 0; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
    .tbl-stack td::before { content: attr(data-label); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; flex: 0 0 auto; }
    .tbl-stack td.td-main { display: block; text-align: left; padding-bottom: 8px; }
    .tbl-stack td.td-main::before { display: none; }
    .tbl-stack td.td-act { justify-content: flex-end; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
    .tbl-stack td.td-act::before { display: none; }
    .tbl-stack tfoot { display: block; }
    .tbl-stack tfoot tr { display: block; }
    .tbl-stack tfoot td { display: flex; }
    .tbl-stack tbody tr:hover td { background: transparent; }
}

/* ------------------------------------------------------------------ */
/* 14. Avatar, kosong, paginasi                                        */
/* ------------------------------------------------------------------ */
.av {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px; background: var(--p-soft); color: var(--p); letter-spacing: .02em;
}
.av.sm { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; border-radius: 9px; }
.av.lg { width: 72px; height: 72px; flex-basis: 72px; font-size: 24px; border-radius: 20px; }
.av.admin { background: var(--indigo-soft); color: var(--indigo); }
.av.on-band { background: #fff; color: var(--p); }

.empty { text-align: center; padding: 44px 20px; }
.empty .ei { width: 72px; height: 72px; border-radius: 22px; background: var(--p-soft); color: var(--p); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; transform: rotate(-4deg); }
.empty h5 { font-size: 16px; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 13px; max-width: 380px; margin: 0 auto 14px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.pager .info { font-size: 12.5px; color: var(--muted); }
.pager .pagination { margin: 0; flex-wrap: wrap; gap: 4px; }
.pager .page-link { border-radius: 9px !important; border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 700; min-width: 34px; text-align: center; padding: 6px 10px; }
.pager .page-link:hover { background: var(--p-soft-2); color: var(--p); border-color: var(--p-line); }
.pager .page-item.active .page-link { background: var(--p); border-color: var(--p); color: #fff; }
.pager .page-item.disabled .page-link { color: #c3c8d1; background: #fff; }
.pager .page-link:focus { box-shadow: 0 0 0 3px rgba(29, 122, 243, .2); }

/* ------------------------------------------------------------------ */
/* 15. Hero dashboard pengguna                                         */
/* ------------------------------------------------------------------ */
.cta {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px;
}
.cta a {
    display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); color: inherit !important; transition: all .15s;
}
.cta a:hover { border-color: var(--p-line); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 40, 90, .10); }
.cta .ci { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cta .ct { font-weight: 900; color: var(--ink); font-size: 15px; }
.cta .cd { font-size: 12.5px; color: var(--muted); }
.cta .go { margin-left: auto; color: var(--p); width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--p-soft); display: flex; align-items: center; justify-content: center; }
@media (max-width: 767.98px) { .cta { grid-template-columns: 1fr; gap: 10px; } .cta a { padding: 14px 16px; } }

/* ------------------------------------------------------------------ */
/* 16. Stepper tahapan                                                 */
/* ------------------------------------------------------------------ */
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; margin-top: 22px; }
.stepper::before, .stepper .fill { content: ''; position: absolute; top: 17px; left: calc(100% / 12); height: 3px; border-radius: 3px; }
.stepper::before { right: calc(100% / 12); background: var(--line); }
.stepper .fill { background: linear-gradient(90deg, var(--p), var(--p-400)); }
.stepper .st { position: relative; z-index: 1; text-align: center; padding: 0 2px; }
.stepper .st .b { width: 36px; height: 36px; margin: 0 auto 7px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: #b3bccb; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper .st .t { font-size: 11.5px; font-weight: 700; color: #9aa5b1; line-height: 1.3; }
.stepper .st.done .b { background: var(--p); border-color: var(--p); color: #fff; }
.stepper .st.done .t { color: var(--ink-3); }
.stepper .st.now .b { border-color: var(--p); color: var(--p); box-shadow: 0 0 0 5px rgba(29, 122, 243, .14); }
.stepper .st.now .t { color: var(--p); font-weight: 900; }
@media (max-width: 575.98px) {
    .stepper .st .b { width: 28px; height: 28px; font-size: 10px; border-width: 2px; }
    .stepper::before, .stepper .fill { top: 13px; }
    .stepper .st .t { font-size: 9.5px; }
}

/* ------------------------------------------------------------------ */
/* 17. Detail permintaan                                               */
/* ------------------------------------------------------------------ */
.detail-title { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.35; margin: 10px 0 8px; word-break: break-word; }
@media (max-width: 575.98px) { .detail-title { font-size: 18px; } }
.sec { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.sec:last-child { border-bottom: 0; }
.sec-t { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 900; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.sec-t i { color: var(--p-400); }
.prose { color: var(--ink-2); font-size: 14px; line-height: 1.75; white-space: pre-line; word-wrap: break-word; }
@media (max-width: 575.98px) { .sec { padding: 16px; } }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; }
.flow .arrow { display: flex; align-items: center; justify-content: center; color: var(--p-400); font-size: 18px; }
.flow-box { border-radius: 13px; padding: 14px 16px; }
.flow-box.old { background: #fff7f7; border: 1px dashed #f1c0c6; }
.flow-box.new { background: #f1fbf4; border: 1px dashed #b4e0c1; }
.flow-box .fl { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.flow-box.old .fl { color: var(--bad); }
.flow-box.new .fl { color: var(--ok); }
.flow-box .form-control { background: #fff; }
@media (max-width: 767.98px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); padding: 6px 0; } }

.note-box { display: flex; gap: 12px; background: var(--p-soft); border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px; }
.note-box .ni { color: var(--p); font-size: 16px; margin-top: 2px; }
.note-box.danger { background: var(--bad-soft); border-color: #f6c8ce; } .note-box.danger .ni { color: var(--bad); }
.note-box.muted { background: #f4f5f8; border-color: var(--line); } .note-box.muted .ni { color: var(--muted); }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.kv .v { color: var(--ink); font-weight: 800; text-align: right; min-width: 0; word-break: break-word; }

/* Lampiran */
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; transition: border-color .15s; }
.file:last-child { margin-bottom: 0; }
.file:hover { border-color: var(--p-line); }
.file .fi { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--slate-soft); overflow: hidden; }
.file .fi img { width: 100%; height: 100%; object-fit: cover; }
.file .fn { font-weight: 800; color: var(--ink) !important; font-size: 13px; word-break: break-all; display: block; }
.file.bad { border-color: #f6c8ce; background: #fffafa; }

/* Diskusi */
.chat { display: flex; gap: 12px; margin-bottom: 16px; }
.chat .bubble { flex: 1; min-width: 0; background: #f6f8fc; border-radius: 4px 14px 14px 14px; padding: 12px 15px; border: 1px solid transparent; }
.chat.admin .bubble { background: var(--p-soft); border-color: var(--p-line); }
.chat.internal .bubble { background: #fffaf0; border: 1px dashed #efcd93; }
.chat .who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chat .who b { color: var(--ink); font-size: 13px; }
.chat .when { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.chat .txt { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); white-space: pre-line; word-wrap: break-word; }
.composer { display: flex; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 6px; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 18px 46px; }
.tl li:last-child { padding-bottom: 0; }
.tl .ti { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 0 0 4px #fff; }
.tl .tt { font-weight: 800; color: var(--ink); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tl .tm { font-size: 11.5px; color: var(--muted); }
.tl .tn { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); background: #f6f8fc; border-radius: 9px; padding: 7px 10px; }

/* Bar horizontal */
.hbar { margin-bottom: 14px; }
.hbar:last-child { margin-bottom: 0; }
.hbar .hl { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.hbar .hl span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .hl b { color: var(--ink); }
.hbar .ht { height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.hbar .ht > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--p), var(--p-400)); }

/* ------------------------------------------------------------------ */
/* 18. Roadmap (kanban)                                                */
/* ------------------------------------------------------------------ */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1199.98px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .board { grid-template-columns: 1fr; } }
.lane { background: #e9eff8; border-radius: var(--r-lg); padding: 10px; min-width: 0; }
.lane-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 12px; }
.lane-h b { color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lane-h .n { background: #fff; border-radius: 8px; padding: 1px 9px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.kcard { background: #fff; border-radius: 13px; padding: 14px; margin-bottom: 10px; box-shadow: var(--sh-sm); border: 1px solid var(--line); border-top: 3px solid var(--line); transition: transform .15s, box-shadow .15s; }
.kcard:last-child { margin-bottom: 0; }
.kcard:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 40, 90, .10); }
.kcard.st-disetujui { border-top-color: var(--teal); }
.kcard.st-dikerjakan { border-top-color: var(--indigo); }
.kcard.st-uji_coba { border-top-color: #f0a43a; }
.kcard.st-selesai { border-top-color: #28a745; }
.kcard .kt { display: block; font-weight: 800; color: var(--ink) !important; font-size: 13.5px; line-height: 1.4; margin: 8px 0 6px; }
.kcard .kt:hover { color: var(--p) !important; }
.kcard .kf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.vote { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 800; background: #f2f5fa; color: var(--ink-3); border: 1px solid transparent; transition: all .15s; }
button.vote:hover { background: var(--p-soft); color: var(--p); }
.vote.on { background: var(--p-soft); color: var(--p); border-color: var(--p-line); }
.lane-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 22px 8px; border: 2px dashed #d6dfec; border-radius: 12px; }

/* ------------------------------------------------------------------ */
/* 19. Notifikasi                                                      */
/* ------------------------------------------------------------------ */
.nt { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: inherit !important; transition: background .15s; position: relative; }
.nt:last-child { border-bottom: 0; }
.nt:hover { background: #f9fbff; }
.nt.unread { background: #f5faff; }
.nt.unread::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.nt .nti { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.nt .ntt { font-weight: 800; color: var(--ink); font-size: 13px; line-height: 1.4; }
.nt .ntp { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-lg { padding: 16px 20px; }
.nt-lg .ntp { -webkit-line-clamp: 3; font-size: 13px; }

/* ------------------------------------------------------------------ */
/* 20. Panduan / info                                                  */
/* ------------------------------------------------------------------ */
.guide { background: linear-gradient(135deg, var(--p-soft) 0%, #f7fbff 100%); border: 1px solid var(--p-line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 22px; }
.guide h6 { color: var(--p); font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.guide ol, .guide ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.guide li { margin-bottom: 6px; }
.guide li:last-child { margin-bottom: 0; }

.similar { display: none; margin-top: 10px; border-radius: 12px; border: 1px solid #f3d9a8; background: #fffaf0; padding: 12px 14px; font-size: 12.5px; }
.similar ul { margin: 6px 0; padding-left: 18px; }
.similar li { margin-bottom: 4px; }

/* ------------------------------------------------------------------ */
/* 21. Modal                                                           */
/* ------------------------------------------------------------------ */
.ab .modal-content { border: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.ab .modal-header { background: var(--p-soft); border-bottom: 1px solid var(--p-line); padding: 16px 22px; align-items: center; }
.ab .modal-title { color: var(--p); font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.ab .modal-header .close { color: var(--p); opacity: .7; text-shadow: none; padding: 0; margin: 0 0 0 auto; width: 32px; height: 32px; border-radius: 9px; font-size: 22px; line-height: 1; }
.ab .modal-header .close:hover { opacity: 1; background: rgba(29, 122, 243, .08); }
.ab .modal-body { padding: 22px; }
.ab .modal-footer { border-top: 1px solid var(--line-2); padding: 14px 22px; background: #fbfcfe; gap: 8px; }
.ab .modal-footer > * { margin: 0; }
.ab .modal-backdrop.show { opacity: .4; }
.confirm-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
@media (max-width: 575.98px) { .ab .modal-dialog { margin: 12px; } .ab .modal-body { padding: 18px; } }

/* ------------------------------------------------------------------ */
/* 22. Toast                                                           */
/* ------------------------------------------------------------------ */
.toasts { position: fixed; top: 76px; right: 16px; z-index: 1080; width: 380px; max-width: calc(100vw - 32px); }
.toast-x { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 14px 14px 16px; box-shadow: var(--sh-lg); border: 1px solid var(--line); margin-bottom: 10px; animation: toastIn .3s ease; position: relative; overflow: hidden; }
.toast-x::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--p); }
.toast-x.success::before { background: #28a745; } .toast-x.error::before { background: #e5484d; }
.toast-x .tic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--p-soft); color: var(--p); }
.toast-x.success .tic { background: var(--ok-soft); color: var(--ok); }
.toast-x.error .tic { background: var(--bad-soft); color: var(--bad); }
.toast-x .tx { flex: 1; font-size: 13.5px; color: var(--ink-2); padding-top: 4px; }
.toast-x .tx b { display: block; color: var(--ink); font-size: 13.5px; }
.toast-x .tc { background: none; border: 0; color: #9aa5b1; font-size: 20px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.toast-x .tc:hover { color: var(--ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* 23. Footer                                                          */
/* ------------------------------------------------------------------ */
.ab-foot { border-top: 1px solid var(--line); background: #fff; padding: 16px 0; font-size: 12.5px; color: var(--muted); }
.ab-foot .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ab-foot img { height: 18px; opacity: .8; }
.ab-foot .heart { color: #e5484d; }

/* ------------------------------------------------------------------ */
/* 24. Drawer mobile                                                   */
/* ------------------------------------------------------------------ */
.ab-burger { display: none; }
.ab-drawer { position: fixed; inset: 0; z-index: 1070; visibility: hidden; }
.ab-drawer .shade { position: absolute; inset: 0; background: rgba(12, 24, 48, .45); opacity: 0; transition: opacity .25s; }
.ab-drawer .panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: 300px; max-width: 86vw; background: #fff;
    transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--sh-lg);
}
.ab-drawer.open { visibility: visible; }
.ab-drawer.open .shade { opacity: 1; }
.ab-drawer.open .panel { transform: none; }
.ab-drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: linear-gradient(120deg, #1567d6, #3697e1); color: #fff; }
.ab-drawer .dh img { height: 26px; }
.ab-drawer .db { flex: 1; overflow-y: auto; padding: 10px; }
.ab-drawer .dg { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 900; padding: 12px 12px 6px; }
.ab-drawer .dl { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--ink-2) !important; font-weight: 700; font-size: 14px; }
.ab-drawer .dl i { width: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.ab-drawer .dl:hover { background: var(--p-soft-2); color: var(--p) !important; }
.ab-drawer .dl.active { background: var(--p-soft); color: var(--p) !important; }
.ab-drawer .dl.active i { color: var(--p); }
.ab-drawer .dl.sub { padding-left: 42px; font-size: 13px; font-weight: 600; }
body.drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* 25. Responsif layout                                                */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .ab-nav-wrap { display: none; }
    .ab-burger { display: inline-flex; }
    .ab-brand .sep, .ab-brand .app { display: none; }
    .ab-userchip .who { display: none; }
    .ab-userchip { padding: 4px; }
    :root { --edge-h: 96px; }
    .ab-pagehead { padding-top: 14px; }
    .ph-watermark { display: none; }
}
@media (max-width: 575.98px) {
    .ab-topbar { height: 62px; gap: 8px; }
    .ab-pagehead h1 { font-size: 22px; }
    .ab-pagehead .actions { width: 100%; }
    .ab-pagehead .actions > * { flex: 1 1 auto; }
    .ab-pagehead .actions > form { display: flex; }
    .ab-pagehead .actions > form > .btn { flex: 1; }
    .ab-foot .container { justify-content: center; text-align: center; }
}

/* Utilitas kecil */
.sticky-side { position: sticky; top: 16px; }
@media (max-width: 991.98px) { .sticky-side { position: static; } }
.divider-dash { border-top: 1px dashed var(--line); margin: 14px 0; }
.link-muted { color: var(--muted) !important; }
.link-muted:hover { color: var(--p) !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Spinner (Bootstrap 4.1 belum memiliki .spinner-border) */
.spinner-border { display: inline-block; width: 1rem; height: 1rem; vertical-align: -.125em; border: .18em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: abSpin .7s linear infinite; }
.spinner-border-sm { width: .85rem; height: .85rem; border-width: .15em; }
@keyframes abSpin { to { transform: rotate(360deg); } }

/* Penyesuaian mobile tambahan */
@media (max-width: 991.98px) {
    /* Elemen terakhir filter yang sendirian di barisnya dibuat selebar penuh */
    .filterbar .fgrid > .full ~ :last-child:nth-child(even) { grid-column: 1 / -1; }
    /* Tombol aksi pada kartu daftar diberi label agar jelas di layar sentuh */
    .rq .act .btn-icon { width: auto; flex: 0 0 auto; padding: 0 14px; height: 34px; }
    .rq .act .btn .lbl-m { display: inline; }
}
.rq .act .lbl-m { display: none; }

/* Fokus: sembunyikan cincin fokus saat diklik mouse, tetap tampil untuk keyboard */
.ab button:focus:not(:focus-visible), .ab a:focus:not(:focus-visible) { outline: none; }
.ab-nav .link:focus-visible, .ab-iconbtn:focus-visible, .ab-userchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(29, 122, 243, .5); }

/* ------------------------------------------------------------------ */
/* 27. Breadcrumb (pil kaca di atas pita biru)                         */
/* ------------------------------------------------------------------ */
.crumbbar { position: relative; z-index: 5; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; animation: crumbIn .35s ease both; }
@keyframes crumbIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .crumbbar { animation: none; } }

.crumb-back {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 11px; border-radius: 12px;
    font-size: 12.5px; font-weight: 800; color: #fff !important;
    background: rgba(9, 40, 100, .22); border: 1px solid rgba(255, 255, 255, .22); transition: background .15s, transform .15s;
}
.crumb-back i { font-size: 11px; transition: transform .15s; }
.crumb-back:hover { background: rgba(9, 40, 100, .34); }
.crumb-back:hover i { transform: translateX(-2px); }

.crumbs { min-width: 0; max-width: 100%; }
.crumbs ol {
    display: inline-flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 3px;
    border-radius: 13px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px rgba(6, 30, 80, .12);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    max-width: 100%; flex-wrap: wrap;
}
.crumbs li { flex: 0 0 auto; display: flex; align-items: center; }
.crumbs .sep { color: rgba(255, 255, 255, .45); font-size: 8px; padding: 0 3px; }

.crumbs .cb {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent;
    font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .86) !important; white-space: nowrap; line-height: 1; transition: background .15s, color .15s;
}
.crumbs .cb i { font-size: 12px; opacity: .85; }
.crumbs a.cb:hover, .crumbs .cb-group:hover, .crumbs .cb-group[aria-expanded='true'], .crumbs .cb-more:hover, .crumbs .cb-more[aria-expanded='true'] { background: rgba(255, 255, 255, .16); color: #fff !important; }
.crumbs .cb-group { cursor: pointer; }
.crumbs .cb-group .caret { font-size: 8px; opacity: .7; margin-left: -1px; transition: transform .15s; }
.crumbs .cb-group[aria-expanded='true'] .caret { transform: rotate(180deg); }
.crumbs .cb.is-flat { color: rgba(255, 255, 255, .7) !important; }
.crumbs .cb.is-kode { font-family: 'SFMono-Regular', Consolas, monospace; letter-spacing: .02em; }

.crumbs .cb-home {
    width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
    color: #fff !important; background: rgba(255, 255, 255, .16); font-size: 13px; transition: background .15s;
}
.crumbs .cb-home:hover { background: rgba(255, 255, 255, .28); }

.crumbs .cb.cur { background: #fff; color: var(--p) !important; font-weight: 900; box-shadow: 0 3px 10px rgba(6, 30, 80, .18); }
.crumbs .cb.cur i { opacity: 1; color: var(--p-400); }

.crumbs .ell { display: none; }
.crumbs .dropdown-menu { margin-top: 8px; }

@media (max-width: 575.98px) {
    .crumbbar { margin-bottom: 10px; }
    .crumb-back { width: 36px; padding: 0; justify-content: center; }
    .crumb-back .t { display: none; }
    .crumbs .mid { display: none; }
    .crumbs .ell { display: flex; }
    .crumbs .cb { padding: 0 8px; font-size: 12px; }
}
.crumbs .cb-more { cursor: pointer; background: rgba(255, 255, 255, .1); padding: 0 9px; }

/* ------------------------------------------------------------------ */
/* 28. Kepala halaman (judul)                                          */
/* ------------------------------------------------------------------ */
.ab-pagehead { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 0; margin-bottom: 10px; }
.ph-left { position: relative; flex: 1 1 520px; }

/* Ikon besar samar di sisi kanan pita */
.ph-watermark {
    position: absolute; right: 24px; top: 6px; font-size: 168px; line-height: 1; color: #fff; opacity: .07;
    transform: rotate(-12deg); pointer-events: none; user-select: none;
}

.ph-main { display: flex; align-items: center; gap: 18px; animation: phIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes phIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ikon judul berbentuk heksagon (bentuk logo Albana) */
.ph-icon { flex: 0 0 auto; filter: drop-shadow(0 10px 18px rgba(4, 30, 90, .35)); }
.ph-icon .hx {
    width: 62px; height: 70px; display: flex; align-items: center; justify-content: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(150deg, #ffffff 0%, #dcecff 100%); color: var(--p); font-size: 25px;
}
.ph-icon .hx i { filter: drop-shadow(0 2px 0 rgba(29, 122, 243, .12)); }

.ph-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px;
    font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
}
.ph-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #9fe3ff, rgba(255, 255, 255, .2)); }

.ab .ab-pagehead h1 { color: #fff; font-size: 30px; font-weight: 900; margin: 0; letter-spacing: -.02em; line-height: 1.15; text-shadow: 0 2px 14px rgba(4, 30, 90, .18); word-break: break-word; }
.ph-accent { background: linear-gradient(90deg, #ffffff 0%, #a8e6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.ab-pagehead .sub { color: rgba(255, 255, 255, .84); margin-top: 6px; font-size: 13.5px; max-width: 640px; }

/* Chip info */
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.ph-meta li {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 9px;
    font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap;
}
.ph-meta li i { font-size: 11px; opacity: .85; }
.ph-meta li.tone-hot { background: rgba(255, 176, 46, .18); border-color: rgba(255, 196, 92, .5); color: #fff; }
.ph-meta li.tone-ok i { color: #9ff0c2; opacity: 1; }
.ph-meta li.tone-muted { opacity: .72; }
.ph-meta .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ffc35c; }
.ph-meta .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ffc35c; animation: phPulse 1.6s ease-out infinite; }
@keyframes phPulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .ph-main, .ph-meta .pulse::after { animation: none; } }

@media (max-width: 991.98px) {
    .ab-pagehead { padding-top: 16px; }
    .ab .ab-pagehead h1 { font-size: 25px; }
    .ph-icon .hx { width: 52px; height: 58px; font-size: 21px; }
}
@media (max-width: 575.98px) {
    .ph-main { gap: 12px; align-items: flex-start; }
    .ph-icon .hx { width: 42px; height: 48px; font-size: 17px; }
    .ab .ab-pagehead h1 { font-size: 21px; }
    .ab-pagehead .sub { font-size: 12.5px; }
    .ph-meta { margin-top: 10px; }
    .ph-meta li { height: 26px; font-size: 11.5px; padding: 0 9px; }
}


/* ------------------------------------------------------------------ */
/* 29. Tepi bawah pita bernuansa kesehatan (EKG + emblem + ombak)      */
/* ------------------------------------------------------------------ */
.ab-band-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--edge-h); pointer-events: none; line-height: 0; overflow: hidden; }
.ab-band-edge svg { position: absolute; left: 0; width: 100%; display: block; }

/* Garis detak jantung */
.edge-ecg { top: 2px; left: 50% !important; width: 2880px !important; height: 44px; margin-left: -1440px; overflow: visible; }
.edge-ecg .ecg-base { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.edge-ecg .ecg-pulse {
    fill: none; stroke: #c9f3ff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
    stroke-dasharray: 45 955; stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 4px rgba(159, 227, 255, .95)) drop-shadow(0 0 10px rgba(34, 195, 214, .6));
    animation: ekgJalan 9s linear infinite;
}
@keyframes ekgJalan { to { stroke-dashoffset: 0; } }
.edge-ecg .crosses rect { fill: rgba(255, 255, 255, .2); }

/* Emblem detak jantung (heksagon Albana) di tengah garis EKG */
.edge-emblem { position: absolute; left: 50%; top: 28px; transform: translate(-50%, -50%); width: 46px; height: 52px; filter: drop-shadow(0 6px 14px rgba(4, 30, 90, .35)); }
.edge-emblem .hx {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(150deg, #ffffff 0%, #dcecff 100%); color: #e5484d; font-size: 19px; line-height: 1;
}
.edge-emblem .hx i { animation: detak 1.4s ease-in-out infinite; }
@keyframes detak { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 28% { transform: scale(.96); } }
.edge-emblem .ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(201, 243, 255, .8); animation: cincin 2.8s ease-out infinite; }
@keyframes cincin { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* Ombak berlapis menuju latar konten */
.edge-waves { bottom: 0; height: 60px; }
.edge-waves .w1 { fill: rgba(159, 227, 255, .22); }
.edge-waves .w2 { fill: rgba(255, 255, 255, .28); }
.edge-waves .w3 { fill: var(--bg); }

@media (prefers-reduced-motion: reduce) {
    .edge-ecg .ecg-pulse { animation: none; stroke-dasharray: none; opacity: 0; }
    .edge-emblem .hx i, .edge-emblem .ring { animation: none; }
    .edge-emblem .ring { display: none; }
}
@media (max-width: 575.98px) {
    :root { --edge-h: 88px; }
    .edge-ecg { top: 0; }
    .edge-emblem { width: 40px; height: 45px; top: 26px; }
    .edge-emblem .hx { font-size: 16px; }
    .edge-waves { height: 46px; }
}
@media (max-width: 1199.98px) { .ph-watermark { font-size: 132px; right: 20px; } }

/* ------------------------------------------------------------------ */
/* 30. Notifikasi langsung & halaman notifikasi                         */
/* ------------------------------------------------------------------ */
.lonceng-goyang { display: inline-block; transform-origin: 50% 0; animation: loncengGoyang 1s ease-in-out 2; }
@keyframes loncengGoyang {
    0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); }
}
.toast-x.toast-link { color: inherit !important; text-decoration: none !important; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.toast-x.toast-link:hover { transform: translateY(-1px); box-shadow: 0 20px 50px rgba(16, 40, 90, .2); }
.toast-x.toast-link .tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ab-drawer .dl .chip { margin-left: auto; }

/* Halaman notifikasi */
.nt-day { padding: 10px 20px 6px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fbfcfe; border-bottom: 1px solid var(--line-2); }
.nt-row { display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid var(--line-2); position: relative; }
.nt-row:last-child { border-bottom: 0; }
.nt-row .nt { flex: 1; min-width: 0; border-bottom: 0; }
.nt-row .nt-act { display: flex; gap: 4px; padding: 14px 16px 0 0; opacity: .55; transition: opacity .15s; }
.nt-row:hover .nt-act, .nt-row:focus-within .nt-act { opacity: 1; }
.nt .nt-aktor { font-weight: 700; color: var(--ink-3); }
.desk-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 575.98px) { .nt-row .nt-act { opacity: 1; padding: 12px 12px 0 0; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .lonceng-goyang { animation: none; } }
