/*
 * Prime Road - custom stylesheet
 * Palet & tipografi brand, dipakai di seluruh layout (lihat resources/views/layouts).
 * Skala ukuran heading/body/lead mengikuti referensi:
 * https://preview.keenthemes.com/metronic4/theme/admin_4_rounded/ui_typography.html
 * (font-family tetap Plus Jakarta Sans, bukan Open Sans milik referensi).
 */

:root {
    --pr-dark: #0E2A22;
    --pr-dark-2: #16362B;
    --pr-accent: #639922;
    --pr-accent-dark: #558418;
    --pr-bg: #F6F8F6;
    --pr-text: #10231D;
    --pr-muted: #6B8377;
    --pr-border: #E3EAE5;
    --pr-input-border: #D5E0D9;
    --pr-sidebar-text: #C6D8CF;
    --pr-sidebar-muted: #8AA398;
    --pr-font: "Plus Jakarta Sans", system-ui, sans-serif;
    --pr-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-bs-theme="dark"] {
    --pr-bg: #121815;
}

/* Referensi desain: docs/html/survey.html (sidebar, tabel, form, tombol) */

/* ==========================================================================
   Typography
   ========================================================================== */

body {
    background: var(--pr-bg);
    font-family: var(--pr-font);
    font-size: 14px;
    line-height: 20px;
    color: #333333;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--pr-font);
    font-weight: 300;
    color: inherit;
    margin-bottom: 10px;
}

h1, .h1 { font-size: 36px; line-height: 39.6px; }
h2, .h2 { font-size: 30px; line-height: 33px; }
h3, .h3 { font-size: 24px; line-height: 26.4px; }
h4, .h4 { font-size: 18px; line-height: 19.8px; }
h5, .h5 { font-size: 14px; line-height: 15.4px; font-weight: 500; }
h6, .h6 { font-size: 12px; line-height: 13.2px; font-weight: 600; }

p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
}

.lead {
    font-size: 21px;
    line-height: 29.4px;
    font-weight: 300;
    margin-bottom: 20px;
}

small, .small {
    font-size: 13px;
    line-height: 1.4;
}

.text-nowrap { white-space: nowrap !important; }

/* ==========================================================================
   Brand elements
   ========================================================================== */

.badge-pr-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
}

.bg-pr-dark { background: var(--pr-dark) !important; }

.btn-pr {
    background: var(--pr-accent);
    border-color: var(--pr-accent);
    color: #fff;
}
.btn-pr:hover, .btn-pr:focus {
    background: var(--pr-accent-dark);
    border-color: var(--pr-accent-dark);
    color: #fff;
}

.btn-outline-pr {
    border-color: var(--pr-accent);
    color: var(--pr-accent);
}
.btn-outline-pr:hover {
    background: var(--pr-accent);
    color: #fff;
}

.text-pr { color: var(--pr-accent) !important; }

.navbar-pr .nav-link { color: rgba(255, 255, 255, .82); }
.navbar-pr .nav-link.active,
.navbar-pr .nav-link:hover { color: #fff; }

.card { border: 1px solid #e3e8e4; }

/* ==========================================================================
   Landing page
   ========================================================================== */

.bg-pr-hero {
    background: radial-gradient(120% 140% at 15% 0%, var(--pr-dark-2) 0%, var(--pr-dark) 60%);
    color: #fff;
}

.btn-outline-pr-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-pr-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.pill-outline {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .08em;
    padding: .35rem .9rem;
    display: inline-block;
}

.navbar-landing .nav-link { color: rgba(255, 255, 255, .85); }
.navbar-landing .nav-link:hover { color: #fff; }

/* Hero slider (landing) */
.hero-slider { position: relative; height: clamp(580px, 88vh, 800px); overflow: hidden; background: var(--pr-dark); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; pointer-events: none; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; transform: scale(1.12); transition: transform 8s cubic-bezier(.2, .6, .3, 1); }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(10, 32, 26, .9) 0%, rgba(10, 32, 26, 0) 38%),
                linear-gradient(90deg, rgba(10, 32, 26, .94) 0%, rgba(10, 32, 26, .72) 42%, rgba(10, 32, 26, .25) 100%); }
.hero-content { pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-row { padding-bottom: 5.5rem; }
.hero-text { opacity: 0; transform: translateY(28px); transition: opacity .9s ease .35s, transform .9s cubic-bezier(.2, .7, .2, 1) .35s; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; }
.hero-tag { display: inline-block; margin-bottom: .5rem; font-size: .6rem; letter-spacing: .14em; color: #a8cf72; border: 1px solid rgba(168, 207, 114, .45); border-radius: 999px; padding: .28rem .7rem; background: rgba(10, 32, 26, .35); }
.hero-title { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; max-width: 30rem; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-btn-ghost { font-weight: 600; font-size: .86rem; color: #fff; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 32, 26, .35); }
.hero-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.hero-content .btn-pr { font-size: .86rem; }
.hero-leader-wrap { width: clamp(240px, 30vw, 320px); }
.hero-leader-stage { position: relative; height: clamp(330px, 40vw, 430px); }
.hero-leader { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); opacity: 0; transform: translateX(24px) scale(.96); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-leader[data-leader="0"] { transform: translateX(-24px) scale(.96); }
.hero-leader.is-active { opacity: 1; transform: none; }
.hero-leader-photo { flex: 1; min-height: 0; padding: 1rem 1rem 0; }
.hero-leader-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-leader figcaption { background: var(--pr-dark); padding: .9rem 1rem; text-align: center; }
.hero-leader-role { font-size: .62rem; letter-spacing: .14em; color: #a8cf72; }
.hero-leader-name { font-size: 1.05rem; line-height: 1.25; color: #fff; }
.hero-leader-period { color: #9dbdae; font-size: .78rem; }
.hero-leader-dot { border: 0; padding: 0; height: 6px; width: 10px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: all .4s ease; }
.hero-leader-dot.is-active { width: 28px; background: #a8cf72; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 5; }
.hero-progress { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; color: #fff; }
.hero-progress-track { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-progress-bar { height: 100%; width: 0; background: #a8cf72; transition: width .2s linear; }
.hero-progress-label { font-size: .66rem; letter-spacing: .12em; margin-top: .55rem; color: rgba(255, 255, 255, .55); transition: color .4s ease; }
.hero-progress.is-active .hero-progress-label { color: #fff; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 32, 26, .45); color: #fff; font-size: 1.1rem; line-height: 1; }
.hero-arrow:hover { background: var(--pr-accent); border-color: var(--pr-accent); }
@media (max-width: 767.98px) { .hero-title { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-bg, .hero-text, .hero-leader { transition: none; } }

.module-card { border: 1px solid #e3e8e4; border-radius: 12px; transition: box-shadow .15s ease; height: 100%; }
.module-card:hover { box-shadow: 0 .5rem 1.5rem rgba(14, 42, 34, .08); }
.module-num { font-weight: 800; font-size: 1.5rem; color: var(--pr-accent); }

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pr-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.role-card { border: 1px solid #e3e8e4; border-radius: 12px; height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 42, 34, .12); }

.kondisi-bar { height: 10px; border-radius: 999px; overflow: hidden; display: flex; }

footer.pr-footer { background: var(--pr-dark); color: rgba(255, 255, 255, .75); }
footer.pr-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
footer.pr-footer a:hover { color: #fff; }

/* ==========================================================================
   Extended font-size utilities (Metronic-style fs-7/8/9, dipakai di
   komponen resources/views/components/**)
   ========================================================================== */

.fs-7 { font-size: .875rem !important; }
.fs-8 { font-size: .8125rem !important; }
.fs-9 { font-size: .75rem !important; }

.required:after {
    content: "*";
    color: #d9534f;
    margin-left: 3px;
    font-size: .8125rem;
}

/* ==========================================================================
   Page header (judul halaman + subjudul + aksi kanan)
   Rujukan: Metronic Tailwind demo1 "Account > Settings"
   ========================================================================== */

.page-title {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1e2129;
    margin-bottom: 2px;
}

.page-subtitle {
    font-size: .8125rem;
    color: #6b7280;
    margin-bottom: 0;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-size: .875rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .375rem 1rem;
}

.btn-sm {
    font-size: .75rem;
    padding: .25rem .75rem;
    border-radius: 5px;
}

.btn-lg {
    padding: .625rem 1.5rem;
    border-radius: 7px;
}

.btn-outline-neutral {
    background: #fff;
    border: 1px solid #CFDAD3;
    color: var(--pr-dark);
}
.btn-outline-neutral:hover {
    background: #F6F8F6;
    border-color: #CFDAD3;
    color: var(--pr-dark);
}

/* Tombol aksi kecil di tabel, mis. "Detail"/"Ubah" */
.btn-action {
    background: #EEF4E6;
    border: 1px solid #CFE3B0;
    color: #4F7A1B;
    border-radius: 4px;
    padding: .25rem 1rem;
    font-size: .8rem;
    font-weight: 600;
}
.btn-action:hover { background: #E3F0D6; color: #4F7A1B; }

.btn-action-danger {
    background: #F7E4E4;
    border: 1px solid #EBC4C4;
    color: #A32D2D;
    border-radius: 4px;
    padding: .25rem 1rem;
    font-size: .8rem;
    font-weight: 600;
}
.btn-action-danger:hover { background: #F2D3D3; color: #A32D2D; }

/* Kartu filter/search, mis. "Cari nama / nomor ruas" pada survey.html */
.filter-card .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--pr-text);
    margin-bottom: .35rem;
}

/* Filter segmented/pill toggle, mis. "Semua Sumber Data" */
.btn-pill {
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .8375rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #CFDAD3;
    color: #3D5449;
}
.btn-pill.active,
.btn-pill:hover {
    background: var(--pr-dark);
    border-color: var(--pr-dark);
    color: #fff;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    border: 1px solid var(--pr-border);
    border-radius: 14px;
}

.card-flush {
    border: 1px solid var(--pr-border);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--pr-border);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Label kapital kecil bergaya monospace, mis. "MODUL SURVEI" */
.eyebrow {
    font-family: var(--pr-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .09em;
    color: var(--pr-accent);
    text-transform: uppercase;
}

/* Kartu statistik ringkas (stat card) */
.stat-card {
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: 12px;
    padding: 1rem;
}
.stat-card .stat-label {
    font-family: var(--pr-mono);
    font-size: .6875rem;
    letter-spacing: .05em;
    color: var(--pr-muted);
    text-transform: uppercase;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pr-text);
}
.stat-card.accent { border-left: 3px solid var(--pr-accent); }

/* ==========================================================================
   Form controls
   ========================================================================== */

.form-label,
label.fw-bold {
    font-size: .8125rem;
    font-weight: 600;
    color: #1e2129;
    margin-bottom: .5rem;
}

.form-control,
.form-select {
    font-size: .875rem;
    border: 1px solid var(--pr-input-border);
    border-radius: 6px;
    padding: .4rem .75rem;
    min-height: 36px;
    color: var(--pr-text);
    background-color: #fff;
}

.form-control-sm,
.form-select-sm {
    font-size: .8125rem;
    padding: .3rem .65rem;
    min-height: 32px;
    border-radius: 5px;
}

.form-control::placeholder { color: #9ca3af; opacity: 1; }

.form-control:focus,
.form-select:focus {
    border-color: var(--pr-accent);
    box-shadow: 0 0 0 .2rem rgba(99, 153, 34, .12);
}

.form-check-input {
    width: 1.4em;
    height: 1.4em;
    margin-top: 0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--pr-accent);
    border-color: var(--pr-accent);
}

.form-check-label { font-size: .875rem; }

/* Baris pengaturan bergaya "settings row": label kiri + input kanan,
   dipisah garis tipis antar baris — dipakai komponen viewtype=1
   (resources/views/components/io/input.blade.php dkk). */
.settings-row,
.card-body > form > .row.mb-4 {
    padding: 1.1rem 0;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #eef0f5;
    align-items: center;
}
.settings-row:last-child,
.card-body > form > .row.mb-4:last-of-type {
    border-bottom: 0;
}

/* ==========================================================================
   Sidebar utama (layouts/_sidebar.blade.php)
   Rujukan: docs/html/survey.html — aside 250px, bg gelap, nav rounded.
   ========================================================================== */

#prSidebar {
    width: 250px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    #prSidebar {
        transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, visibility 0.2s ease;
    }

    body.pr-sidebar-collapsed #prSidebar {
        margin-left: -250px;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
    }

    .pr-sidebar-expand-tab {
        display: none;
        position: fixed;
        left: 0;
        top: 10px;
        z-index: 1025;
        background: var(--pr-dark);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
        border-radius: 0 8px 8px 0;
        padding: 0.45rem 0.65rem;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .pr-sidebar-expand-tab:hover {
        background: var(--pr-accent);
        color: #fff;
        padding-left: 0.85rem;
    }

    body.pr-sidebar-collapsed .pr-sidebar-expand-tab {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .pr-sidebar-expand-tab {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    #prSidebar {
        width: 280px;
        max-width: 85vw;
    }
}

.pr-sidebar {
    width: 100%;
    height: 100%;
    background: var(--pr-dark);
    padding: 1.25rem 1rem;
    overflow-y: auto;
}

.pr-sidebar-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--pr-sidebar-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pr-sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.pr-sidebar-show-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.825rem;
    border-color: var(--pr-input-border);
    color: var(--pr-dark);
    border-radius: 6px;
    background: #fff;
}

.pr-sidebar-show-btn:hover {
    background: var(--pr-bg);
    border-color: var(--pr-accent);
    color: var(--pr-accent);
}

.pr-layout-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.pr-main-wrapper {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--pr-bg);
}

.pr-top-navbar {
    background: #ffffff;
    z-index: 1020;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .pr-top-navbar {
    background: var(--pr-dark-2);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.pr-sidebar-brand {
    color: #fff;
    text-decoration: none;
}
.pr-sidebar-brand:hover { color: #fff; }
.pr-sidebar-brand .brand-name { font-weight: 800; font-size: 1rem; line-height: 1.1; }
.pr-sidebar-brand .brand-sub { font-size: .68rem; letter-spacing: .05em; color: var(--pr-sidebar-muted); }

.pr-sidebar-section {
    font-family: var(--pr-mono);
    font-size: .62rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6F8B7D;
    padding: 0 .8rem;
    margin: 1.25rem 0 .5rem;
}

.pr-sidebar .nav-link {
    color: var(--pr-sidebar-text);
    font-size: .92rem;
    font-weight: 500;
    border-radius: 9px;
    padding: .6rem .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.pr-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.pr-sidebar .nav-link.active {
    background: var(--pr-accent);
    color: #fff;
    font-weight: 600;
}

.pr-sidebar .nav-link .chevron {
    transition: transform .15s ease;
}
.pr-sidebar .nav-link[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
}

.pr-sidebar .nav-sub {
    padding-left: .9rem;
}
.pr-sidebar .nav-sub .nav-link {
    font-size: .84rem;
    padding: .45rem .8rem;
    font-weight: 400;
}

.pr-sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1rem;
    margin-top: 1rem;
}
.pr-sidebar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #A8CF72;
    font-size: .72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pr-sidebar-user .name { color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.2; }
.pr-sidebar-user .role { color: var(--pr-sidebar-muted); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }

.pr-sidebar-logout-btn {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--pr-sidebar-text);
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem .8rem;
}
.pr-sidebar-logout-btn:hover {
    background: #A32D2D;
    border-color: #A32D2D;
    color: #fff;
}

/* Topbar ringkas di atas konten utama (breadcrumb + notifikasi/tema/TA) */
.pr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}
.pr-topbar .btn-icon {
    color: var(--pr-muted);
}
.pr-topbar .btn-icon:hover { color: var(--pr-text); }

/* ==========================================================================
   Tables
   ========================================================================== */

.min-w-0 {
    min-width: 0 !important;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.table {
    font-size: .8125rem;
    color: var(--pr-text);
}

.table > thead th {
    background: var(--pr-bg);
    font-size: .6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pr-muted);
    border-bottom: 1px solid var(--pr-border);
    padding: .7rem .8rem;
}

.table > tbody td {
    padding: .8rem;
    vertical-align: middle;
    border-bottom: 1px solid #EEF0ED;
    color: #3D5449;
}

.table > tbody tr:last-child td { border-bottom: 0; }

.table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pr-border);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .table-responsive {
    background: var(--pr-dark-2);
    border-color: rgba(255, 255, 255, 0.08);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f0f4f1;
    border-radius: 999px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #c3d4ca;
    border-radius: 999px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--pr-accent);
}

.pr-table-data {
    font-size: 0.875rem;
}

/* Mobile size table optimizations */
@media (max-width: 767.98px) {
    .card {
        max-width: 100%;
        min-width: 0;
        border-radius: 10px;
    }

    .card-body {
        padding: 0.85rem 0.75rem;
    }

    .card-header {
        padding: 0.85rem 0.75rem;
        font-size: 0.95rem;
    }

    .table-responsive {
        box-shadow: inset -10px 0 10px -8px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .table {
        font-size: 0.78rem;
    }

    .pr-table-data {
        font-size: 0.78rem !important;
    }

    .table > thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.55rem;
        white-space: nowrap;
        background: #f4f7f5;
    }

    .table > tbody td {
        padding: 0.5rem 0.55rem;
        white-space: nowrap;
    }

    /* Wrap road name column on mobile to prevent excessive row width */
    .table > tbody td.pr-col-nama,
    .table.text-nowrap > tbody td.pr-col-nama {
        white-space: normal !important;
        min-width: 150px;
        max-width: 220px;
        word-break: break-word;
    }

    .btn-action,
    .btn-action-danger {
        padding: 0.2rem 0.5rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .table td .d-flex.gap-2 {
        gap: 0.25rem !important;
    }

    .badge-soft-green, .badge-soft-amber, .badge-soft-orange, .badge-soft-red, .badge-soft-gray {
        padding: 0.18rem 0.4rem;
        font-size: 0.68rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
        margin-top: 0.5rem;
    }

    .pagination .page-item .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
}

/* ==========================================================================
   Badge status (soft/tinted), mis. kondisi jalan atau sumber data
   ========================================================================== */

.badge-soft-green { background: #EEF4E6; color: #4F7A1B; }
.badge-soft-amber { background: #FDF1DD; color: #A8710E; }
.badge-soft-orange { background: #FBEAE2; color: #C04D26; }
.badge-soft-red { background: #F7E4E4; color: #A32D2D; }
.badge-soft-gray { background: #EEF0ED; color: #5B6B63; }

.badge-soft-green, .badge-soft-amber, .badge-soft-orange, .badge-soft-red, .badge-soft-gray {
    border-radius: 6px;
    padding: .25rem .5rem;
    font-size: .75rem;
    font-weight: 600;
    display: inline-block;
}

/* ==========================================================================
   Tabel padat bergaya teknis (mis. skor prioritas modul Perencanaan)
   ========================================================================== */

.pr-mono { font-family: var(--pr-mono); }

table.pr-tbl { font-size: .88rem; }

table.pr-tbl th {
    font-family: var(--pr-mono);
    font-size: .66rem;
    letter-spacing: .07em;
    color: var(--pr-muted);
    font-weight: 500;
    text-transform: uppercase;
    background: var(--pr-bg);
    white-space: nowrap;
    padding: .7rem .8rem;
}

table.pr-tbl td { padding: .75rem .8rem; vertical-align: middle; border-color: var(--pr-border); }

table.pr-tbl tbody tr:hover { background: #fafcfa; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    font-size: .75rem;
}

/* ==========================================================================
   Print layout (layouts/blank.blade.php)
   ========================================================================== */

.pr-print-body {
    background: #fff;
    font-family: "Courier New", monospace;
    font-size: 12pt;
    color: #111;
}

.pr-print-toolbar { background: #f4f6f5; }

@media print {
    .d-print-none { display: none !important; }
    .pr-print-body { font-size: 11pt; }
}

/* ==========================================================================
   Segmented tab control (module sub-navigation, e.g. Ruas Jalan)
   ========================================================================== */

.pr-seg-group {
    background: var(--pr-border);
    border-radius: 11px;
    padding: .25rem;
    gap: .25rem;
}

.pr-seg {
    border: 0;
    background: transparent;
    color: var(--pr-muted);
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem .9rem;
    border-radius: 9px;
    white-space: nowrap;
}

.pr-seg:hover { color: var(--pr-text); }

.pr-seg.pr-seg-on {
    background: var(--pr-dark);
    color: #fff;
}

/* ==========================================================================
   Stat cards (module summary row)
   ========================================================================== */

.pr-stat-card {
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
}

.pr-stat-card.pr-stat-accent { border-left: 4px solid var(--pr-accent); }
.pr-stat-card.pr-stat-warn { border-left: 4px solid #EF9F27; }

.pr-stat-label {
    font-family: var(--pr-mono);
    font-size: .64rem;
    letter-spacing: .1em;
    color: var(--pr-muted);
    margin-bottom: .25rem;
}

.pr-stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
}

.pr-stat-sub { font-size: .8rem; color: var(--pr-muted); }

/* ==========================================================================
   Dropzone (upload GeoJSON/KML)
   ========================================================================== */

.pr-dropzone {
    border: 1.5px dashed var(--pr-input-border);
    border-radius: 10px;
    background: var(--pr-bg);
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.pr-dropzone:hover, .pr-dropzone.pr-dropzone-over {
    border-color: var(--pr-accent);
    background: #EEF4E6;
}

.pr-dropzone-label {
    font-family: var(--pr-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    color: var(--pr-muted);
}

.pr-dropzone-hint { font-size: .8rem; color: var(--pr-muted); margin-top: .25rem; }

.pr-dropzone-file {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pr-dark);
    margin-top: .5rem;
    word-break: break-all;
}

/* ==========================================================================
   Step header (wizard: Ruas Jalan Baru)
   ========================================================================== */

.pr-step-title {
    font-weight: 700;
    font-size: .98rem;
    margin-bottom: .25rem;
}

.pr-step-desc { font-size: .84rem; color: var(--pr-muted); margin-bottom: .9rem; }

/* ==========================================================================
   Filter chip toggle (pill-style radio group, e.g. sumber data survey)
   ========================================================================== */

.pr-chip {
    border: 1px solid var(--pr-input-border);
    background: #fff;
    color: var(--pr-text);
    font-weight: 600;
    font-size: .84rem;
    padding: .45rem .9rem;
    border-radius: 999px;
}

.pr-chip.pr-chip-on {
    background: var(--pr-dark);
    border-color: var(--pr-dark);
    color: #fff;
}

/* ==========================================================================
   Modal drawer (slide in from the right, full height)
   ========================================================================== */

.modal.modal-slide-right .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    height: 100%;
    max-width: 760px;
    width: 100%;
    transform: translateX(100%);
    transition: transform .3s ease-out;
}

.modal.modal-slide-right.show .modal-dialog {
    transform: translateX(0);
}

.modal.modal-slide-right .modal-dialog.modal-lg { max-width: 900px; }
.modal.modal-slide-right .modal-dialog.modal-xl { max-width: 1040px; }

.modal.modal-slide-right .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

/* Isi drawer selalu dirender lewat AJAX sebagai satu <form> yang menjadi
   satu-satunya child dari .modal-content (lihat display_modal_info di
   index.blade.php tiap modul) — ini memutus rantai flex column bawaan
   Bootstrap (.modal-content > .modal-header/.modal-body/.modal-footer),
   sehingga .modal-body kehilangan tinggi yang dibatasi dan overflow-y:auto
   di bawah ini tidak pernah aktif (drawer jadi tidak bisa discroll kalau
   isinya lebih tinggi dari layar). Jadikan <form> itu sendiri flex column
   supaya .modal-body kembali jadi flex item yang tingginya dibatasi.
   Paling terasa di form Survei karena daftar segmennya panjang. */
.modal.modal-slide-right .modal-content > form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.modal.modal-slide-right .modal-body {
    overflow-y: auto;
    min-height: 0;
}

/* ==========================================================================
   Drawer header (dark banner: eyebrow + title + close button)
   ========================================================================== */

.pr-drawer-header {
    background: var(--pr-dark);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.pr-drawer-eyebrow {
    font-family: var(--pr-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    color: var(--pr-accent);
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.pr-drawer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.pr-drawer-close {
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    background: transparent;
    border-radius: 8px;
    padding: .5rem 1.25rem;
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
}

.pr-drawer-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }


/* ==========================================================================
   SweetAlert2 — Prime Road custom theme
   Matches the dark-green sidebar / clean white card UI of the app
   ========================================================================== */

/* Popup container */
.swal2-popup {
    border-radius: var(--pr-radius) !important;
    padding: 2.25rem 2rem !important;
    font-family: var(--pr-font) !important;
    background: var(--pr-bg) !important;
    box-shadow: 0 12px 32px rgba(14, 42, 34, 0.18) !important;
    border: 1px solid var(--pr-border) !important;
}

/* Title */
.swal2-title {
    color: var(--pr-text) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    padding: 0.5rem 0 0.25rem !important;
}

/* Body text */
.swal2-html-container {
    color: var(--pr-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    font-family: var(--pr-font) !important;
}

/* Icon ring colors to match brand palette */
.swal2-icon.swal2-success {
    border-color: var(--pr-accent) !important;
    color: var(--pr-accent) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--pr-accent) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(99, 153, 34, 0.3) !important;
}
.swal2-icon.swal2-error {
    border-color: #c0392b !important;
    color: #c0392b !important;
}
.swal2-icon.swal2-warning {
    border-color: #c9962c !important;
    color: #c9962c !important;
}

/* Confirm button — primary accent, matches "Lanjutkan" button style */
.swal2-confirm {
    background-color: var(--pr-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: var(--pr-font) !important;
    padding: 0.65rem 1.75rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
}
.swal2-confirm:hover {
    background-color: var(--pr-accent-dark) !important;
}
.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(99, 153, 34, 0.25) !important;
}

/* Cancel / secondary button — outlined, neutral */
.swal2-cancel {
    background-color: #fff !important;
    color: var(--pr-text) !important;
    border: 1px solid var(--pr-input-border) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: var(--pr-font) !important;
    padding: 0.65rem 1.75rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.swal2-cancel:hover {
    background-color: var(--pr-bg) !important;
}

/* Deny button (e.g. destructive actions) */
.swal2-deny {
    background-color: #c0392b !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: var(--pr-font) !important;
    box-shadow: none !important;
}

/* Actions row spacing */
.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
}

/* Backdrop — soften using the dark sidebar tone */
.swal2-backdrop-show {
    background: rgba(14, 42, 34, 0.55) !important;
}

/* Toast variant (if used for lightweight notifications) */
.swal2-toast {
    border-radius: 10px !important;
    background: var(--pr-bg) !important;
    box-shadow: 0 6px 18px rgba(14, 42, 34, 0.15) !important;
    border: 1px solid var(--pr-border) !important;
}
.swal2-toast .swal2-title {
    font-size: 0.95rem !important;
    font-family: var(--pr-font) !important;
}

/* Optional: dark variant for confirmation dialogs on dark surfaces */
.swal2-popup.pr-dark {
    background: var(--pr-dark) !important;
    border-color: var(--pr-dark-2) !important;
}
.swal2-popup.pr-dark .swal2-title {
    color: var(--pr-sidebar-text) !important;
}
.swal2-popup.pr-dark .swal2-html-container {
    color: var(--pr-sidebar-muted) !important;
}
