/* Tema admin GDV di atas AdminLTE 4 + Bootstrap 5.3.
   Identitas: navy "ink" diturunkan dari biru logo; tiga bentuk logo (G lingkaran, D kotak, V segitiga) hanya muncul
   di sambutan dashboard dan halaman login; huruf Archivo (judul) + Instrument Sans (teks) sama dengan gdv-web.
   Radius berjenjang: panel 16px, kontrol 10px, chip/pill penuh. */

/* ───────── Token ───────── */
:root {
    --gdv-ink: #0e1726;
    --gdv-blue: #16699b;
    --gdv-blue-strong: #0f557f;
    --gdv-blue-deep: #0c4769;
    --gdv-yellow: #eece00;
    --gdv-red: #d81e36;
    --gdv-canvas: #f2f4f7;
    --gdv-surface: #ffffff;
    --gdv-surface-2: #f6f7f9;
    --gdv-line: #e3e7ed;
    --gdv-line-strong: #cfd5de;
    --gdv-text: #172033;
    --gdv-muted: #5a6476;
    --gdv-focus: rgba(22, 105, 155, .28);
    --gdv-shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 1px 1px rgba(14, 23, 38, .02);
    --gdv-radius-panel: 16px;
    --gdv-radius-control: 10px;
    --gdv-font-display: "Archivo", "Instrument Sans", system-ui, sans-serif;
    --gdv-font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bs-body-font-family: var(--gdv-font-text);
    --bs-body-font-size: .9375rem;
    --bs-border-radius: .625rem;
    --bs-border-radius-sm: .5rem;
    --bs-border-radius-lg: .875rem;
    --bs-primary: #16699b;
    --bs-primary-rgb: 22, 105, 155;
    --bs-primary-text-emphasis: #0f557f;
    --bs-primary-bg-subtle: #e4eff6;
    --bs-primary-border-subtle: #b6d3e6;
    --bs-link-color: #16699b;
    --bs-link-color-rgb: 22, 105, 155;
    --bs-link-hover-color: #0f557f;
    --bs-link-hover-color-rgb: 15, 85, 127;
    --bs-focus-ring-color: var(--gdv-focus);
}

[data-bs-theme="light"] {
    --bs-body-color: var(--gdv-text);
    --bs-emphasis-color: #0b1322;
    --bs-secondary-color: var(--gdv-muted);
    --bs-border-color: var(--gdv-line);
    --bs-tertiary-bg: var(--gdv-canvas);
    --bs-tertiary-bg-rgb: 242, 244, 247;
}

[data-bs-theme="dark"] {
    --gdv-canvas: #0a101b;
    --gdv-surface: #111a2a;
    --gdv-surface-2: #0d1522;
    --gdv-line: #212c40;
    --gdv-line-strong: #2d3a52;
    --gdv-text: #e3e8f1;
    --gdv-muted: #94a0b5;
    --gdv-focus: rgba(109, 180, 227, .35);
    --gdv-shadow: none;

    --bs-body-bg: #111a2a;
    --bs-body-bg-rgb: 17, 26, 42;
    --bs-body-color: var(--gdv-text);
    --bs-emphasis-color: #fff;
    --bs-secondary-color: var(--gdv-muted);
    --bs-secondary-bg: #172236;
    --bs-border-color: var(--gdv-line);
    --bs-tertiary-bg: var(--gdv-canvas);
    --bs-tertiary-bg-rgb: 10, 16, 27;
    --bs-link-color: #6db4e3;
    --bs-link-color-rgb: 109, 180, 227;
    --bs-link-hover-color: #9ccdee;
    --bs-link-hover-color-rgb: 156, 205, 238;
    --bs-primary-text-emphasis: #9ccdee;
    --bs-primary-bg-subtle: rgba(109, 180, 227, .14);
    --bs-primary-border-subtle: rgba(109, 180, 227, .35);
}

/* ───────── Dasar & tipografi ───────── */
body {
    font-family: var(--gdv-font-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--gdv-font-display);
    font-stretch: 106%;
    font-weight: 620;
    letter-spacing: -.01em;
}

:focus-visible { outline: 2px solid var(--gdv-blue); outline-offset: 2px; }
[data-bs-theme="dark"] :focus-visible { outline-color: #6db4e3; }
.form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible { outline: 0; }

.app-main, .app-content-header { background: transparent; }
.app-content { padding-bottom: 2.5rem; }

/* ───────── Sidebar ───────── */
.gdv-sidebar {
    --lte-sidebar-color: #a9b4c6;
    --lte-sidebar-hover-color: #fff;
    --lte-sidebar-hover-bg: rgba(255, 255, 255, .06);
    --lte-sidebar-menu-active-bg: rgba(255, 255, 255, .09);
    --lte-sidebar-menu-active-color: #fff;
    --lte-sidebar-active-color: #fff;
    background: var(--gdv-ink) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .gdv-sidebar { border-right: 1px solid var(--gdv-line) !important; }

.gdv-sidebar .sidebar-brand {
    height: 88px;
    padding: 0 1.25rem;
    justify-content: flex-start;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}
.gdv-sidebar .brand-link { display: flex; align-items: center; width: 100%; height: 100%; }
.gdv-sidebar .brand-link .logo-xs,
.gdv-sidebar .brand-link .logo-xl {
    position: static !important;
    margin: 0 !important;
    float: none;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    max-height: none;
}
.gdv-sidebar .gdv-brand-logo { height: 58px !important; width: auto; }
.gdv-sidebar .gdv-brand-mark { display: none !important; height: 20px !important; width: auto; }

.gdv-sidebar .sidebar-wrapper { padding: .5rem .75rem 1.5rem; }
.gdv-sidebar .sidebar-menu .nav-header {
    padding: 1.15rem .75rem .4rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: rgba(169, 180, 198, .6);
    white-space: nowrap;
}
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1px 0;
    padding: .5rem .75rem;
    border-radius: var(--gdv-radius-control);
    font-size: .9rem;
    font-weight: 500;
}
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link p { margin: 0; }
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link .nav-icon {
    width: 1.25rem;
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
    color: #7c899f;
}
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link:hover .nav-icon { color: #fff; }
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link.active { color: #fff; font-weight: 600; }
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link.active .nav-icon { color: var(--gdv-yellow); }
.gdv-sidebar .sidebar-menu > .nav-item > .nav-link.active::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 50%;
    width: 3px;
    height: 1.25rem;
    border-radius: 0 3px 3px 0;
    background: var(--gdv-yellow);
    transform: translateY(-50%);
}
.gdv-sidebar .nav-link:focus-visible { outline-color: var(--gdv-yellow); outline-offset: -2px; }

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .gdv-sidebar:not(:hover) .gdv-brand-logo { display: none !important; }
    .sidebar-mini.sidebar-collapse .gdv-sidebar:not(:hover) .gdv-brand-mark { display: block !important; }
    .sidebar-mini.sidebar-collapse .gdv-sidebar:not(:hover) .sidebar-brand { padding: 0; justify-content: center; }
    .sidebar-mini.sidebar-collapse .gdv-sidebar:not(:hover) .brand-link { justify-content: center; }
    .sidebar-mini.sidebar-collapse .gdv-sidebar:not(:hover) .nav-header {
        height: 1px;
        margin: .65rem .5rem;
        padding: 0;
        overflow: hidden;
        color: transparent;
        background: rgba(255, 255, 255, .08);
    }
}

/* ───────── Bilah atas ───────── */
.app-header { min-height: 64px; border-bottom: 1px solid var(--gdv-line); }
.app-header .navbar-nav { align-items: center; }

.gdv-search { position: relative; margin-left: .5rem; }
.gdv-search .bi-search {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    pointer-events: none;
}
.gdv-search .form-control {
    width: 20rem;
    height: 38px;
    padding-left: 2.4rem;
    padding-right: 2.25rem;
    border-radius: 999px;
    border-color: transparent;
    background: var(--gdv-canvas);
}
.gdv-search .form-control:focus { background: var(--gdv-surface); border-color: var(--gdv-blue); }
.gdv-kbd {
    position: absolute;
    right: .7rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .15rem .45rem;
    border: 1px solid var(--gdv-line-strong);
    border-radius: 6px;
    background: var(--gdv-surface);
    color: var(--gdv-muted);
    font: 600 .72rem/1.2 var(--gdv-font-text);
    pointer-events: none;
}
.gdv-search .form-control:focus ~ .gdv-kbd,
.gdv-search .form-control:not(:placeholder-shown) ~ .gdv-kbd { display: none; }

.gdv-usermenu {
    display: flex !important;
    align-items: center;
    gap: .65rem;
    padding: .25rem .6rem .25rem .25rem !important;
    border-radius: 999px;
}
.gdv-usermenu::after { display: none; }
.gdv-usermenu:hover { background: var(--gdv-canvas); }
.gdv-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gdv-ink);
    color: #fff;
    font: 650 .78rem/1 var(--gdv-font-display);
    letter-spacing: .03em;
}
[data-bs-theme="dark"] .gdv-avatar { background: var(--gdv-blue); }
.gdv-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.gdv-user-name { font-size: .875rem; font-weight: 600; color: var(--bs-emphasis-color); }
.gdv-user-role { font-size: .75rem; color: var(--bs-secondary-color); }
@media (max-width: 575.98px) { .gdv-user-meta { display: none; } }

.dropdown-menu {
    --bs-dropdown-border-color: var(--gdv-line);
    --bs-dropdown-border-radius: 12px;
    --bs-dropdown-link-active-bg: var(--gdv-blue);
    --bs-dropdown-item-border-radius: 8px;
    padding: .35rem;
    box-shadow: 0 16px 40px -16px rgba(14, 23, 38, .28);
}
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; font-size: .875rem; }
.gdv-dropdown { min-width: 15rem; }
.gdv-dropdown-head { display: flex; flex-direction: column; padding: .5rem .7rem .65rem; }

/* ───────── Kepala halaman ───────── */
.app-content-header { padding: 1.75rem .5rem 1.25rem; }
.gdv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.gdv-head-text { min-width: 0; }
.gdv-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 .4rem;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    color: var(--bs-secondary-color);
}
.gdv-crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gdv-line-strong); }
.gdv-crumbs a { color: inherit; text-decoration: none; }
.gdv-crumbs a:hover { color: var(--bs-link-color); }
.gdv-page-title {
    margin: 0;
    font-family: var(--gdv-font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: -.018em;
    line-height: 1.15;
    color: var(--bs-emphasis-color);
}
.gdv-page-sub { max-width: 68ch; margin: .35rem 0 0; color: var(--bs-secondary-color); }
.gdv-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ───────── Panel ───────── */
.gdv-card {
    --bs-card-border-radius: var(--gdv-radius-panel);
    --bs-card-inner-border-radius: calc(var(--gdv-radius-panel) - 1px);
    --bs-card-border-color: var(--gdv-line);
    --bs-card-cap-bg: transparent;
    --bs-card-bg: var(--gdv-surface);
    border: 1px solid var(--gdv-line);
    box-shadow: var(--gdv-shadow);
}
.gdv-card > .card-body { padding: 1.5rem 1.75rem; }
.gdv-card > .card-header::after { display: none; }
.gdv-card-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid var(--gdv-line);
}
.gdv-card-heading { margin: 0; font-size: 1rem; font-weight: 640; font-stretch: 106%; }
.gdv-hint { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--bs-secondary-color); }
.gdv-link-quiet { font-size: .8125rem; font-weight: 600; text-decoration: none; }
.gdv-link-quiet:hover { text-decoration: underline; }
.gdv-item {
    padding: .75rem 1rem;
    border: 1px solid var(--gdv-line);
    border-radius: 12px;
    background: var(--gdv-surface-2);
}

.gdv-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border-radius: 12px;
    font-weight: 500;
}
.gdv-alert > .bi { font-size: 1.05rem; line-height: 1.35; }

/* ───────── Tabel ───────── */
.gdv-table { --bs-table-bg: transparent; --bs-table-hover-bg: transparent; margin: 0; }
.gdv-table > thead > tr > th {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--gdv-line);
    background: var(--gdv-surface-2);
    font-size: .78rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}
.gdv-table > tbody > tr > td { padding: .8rem 1rem; border-bottom-color: var(--gdv-line); }
.gdv-table > tbody > tr:last-child > td { border-bottom: 0; }
.gdv-table > :is(thead, tbody) > tr > :first-child { padding-left: 1.5rem; }
.gdv-table > :is(thead, tbody) > tr > :last-child { padding-right: 1.5rem; }
.gdv-table > tbody > tr:hover > td { background: var(--gdv-surface-2); }
.gdv-empty { padding: 2.75rem 1rem !important; text-align: center; color: var(--bs-secondary-color); }

.gdv-thumb {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: cover;
    border: 1px solid var(--gdv-line);
    border-radius: 8px;
    background: var(--gdv-surface-2);
}
.gdv-actions { display: inline-flex; gap: .35rem; white-space: nowrap; }
.drag-handle { cursor: grab; font-size: 1.15rem; color: var(--bs-secondary-color); }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost > td { background: var(--bs-primary-bg-subtle) !important; }
.gdv-handle-cell { width: 32px; }
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; }

/* DataTables 2 (Bootstrap 5): tabel menempel ke tepi panel, kontrol halaman di kaki panel. */
.gdv-card .dt-container > .row { margin: 0; }
.gdv-card .dt-container > .row > [class*="col"] { padding: 0; }
.gdv-card .dt-container > .row.mt-2 { margin-top: 0 !important; }
.gdv-card .dt-container > .dt-layout-table > [class*="col"] { position: relative; overflow-x: auto; }
@media (max-width: 767.98px) { .gdv-card .dt-container table.dataTable { min-width: 640px; } }
.gdv-card .dt-container > .row:not(.dt-layout-table) {
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.5rem;
    border-top: 1px solid var(--gdv-line);
}
@media (max-width: 575.98px) {
    .gdv-card > .card-body { padding: 1.25rem; }
    .gdv-form-bar { padding: .75rem 1.25rem; }
}
.gdv-card .dt-container > .row:not(.dt-layout-table) > [class*="col"] { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gdv-card .dt-container .dt-length { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--bs-secondary-color); }
.gdv-card .dt-container .dt-length label { margin: 0; }
.gdv-card .dt-container .dt-length select { width: auto; padding-top: .3rem; padding-bottom: .3rem; font-size: .8125rem; }
.gdv-card .dt-container .dt-info { padding: 0 !important; font-size: .8125rem; color: var(--bs-secondary-color); }
.gdv-card .dt-container .dt-paging { margin-left: auto; }
.gdv-card .dt-container .dt-paging .pagination { margin: 0 !important; }
.gdv-card .dt-container table.dataTable { margin: 0 !important; border-collapse: collapse !important; }
.gdv-card .dt-container table.dataTable > thead > tr > th { border-bottom: 1px solid var(--gdv-line); }
div.dt-container div.dt-processing {
    padding: .9rem 1rem;
    border: 1px solid var(--gdv-line);
    border-radius: 12px;
    background: var(--gdv-surface);
    box-shadow: 0 16px 40px -16px rgba(14, 23, 38, .28);
}
div.dt-container div.dt-processing > div:last-child > div { background: var(--gdv-blue); }

.pagination {
    --bs-pagination-padding-x: .7rem;
    --bs-pagination-padding-y: .35rem;
    --bs-pagination-font-size: .8125rem;
    --bs-pagination-color: var(--bs-body-color);
    --bs-pagination-bg: transparent;
    --bs-pagination-border-color: transparent;
    --bs-pagination-hover-color: var(--bs-emphasis-color);
    --bs-pagination-hover-bg: var(--gdv-canvas);
    --bs-pagination-hover-border-color: transparent;
    --bs-pagination-focus-color: var(--bs-emphasis-color);
    --bs-pagination-focus-bg: var(--gdv-canvas);
    --bs-pagination-focus-box-shadow: 0 0 0 3px var(--gdv-focus);
    --bs-pagination-active-bg: var(--gdv-ink);
    --bs-pagination-active-border-color: var(--gdv-ink);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: transparent;
    gap: 2px;
}
.pagination .page-link { border-radius: 8px !important; font-weight: 600; }
[data-bs-theme="dark"] .pagination { --bs-pagination-active-bg: var(--gdv-blue); --bs-pagination-active-border-color: var(--gdv-blue); }

/* ───────── Tombol ───────── */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: .875rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}
.btn-sm { --bs-btn-font-size: .8125rem; --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .65rem; --bs-btn-border-radius: 8px; }
.btn-lg { --bs-btn-font-size: .9375rem; --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.25rem; }
.btn-link { --bs-btn-font-weight: 500; }
.btn-primary {
    --bs-btn-bg: var(--gdv-blue);
    --bs-btn-border-color: var(--gdv-blue);
    --bs-btn-hover-bg: var(--gdv-blue-strong);
    --bs-btn-hover-border-color: var(--gdv-blue-strong);
    --bs-btn-active-bg: var(--gdv-blue-deep);
    --bs-btn-active-border-color: var(--gdv-blue-deep);
    --bs-btn-disabled-bg: var(--gdv-blue);
    --bs-btn-disabled-border-color: var(--gdv-blue);
    --bs-btn-focus-shadow-rgb: 22, 105, 155;
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
    --bs-btn-border-color: var(--bs-primary-border-subtle);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gdv-blue);
    --bs-btn-hover-border-color: var(--gdv-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--gdv-blue-strong);
    --bs-btn-active-border-color: var(--gdv-blue-strong);
    --bs-btn-focus-shadow-rgb: 22, 105, 155;
}
.btn-outline-secondary, .gdv-btn-ghost {
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--gdv-line-strong);
    --bs-btn-hover-color: var(--bs-emphasis-color);
    --bs-btn-hover-bg: var(--gdv-canvas);
    --bs-btn-hover-border-color: var(--gdv-line-strong);
    --bs-btn-active-color: var(--bs-emphasis-color);
    --bs-btn-active-bg: var(--gdv-line);
    --bs-btn-active-border-color: var(--gdv-line-strong);
    --bs-btn-focus-shadow-rgb: 22, 105, 155;
}
.gdv-btn-danger {
    --bs-btn-color: var(--gdv-red);
    --bs-btn-hover-color: #a8162a;
    --bs-btn-hover-bg: #fdecee;
    --bs-btn-hover-border-color: #f2b6bf;
    --bs-btn-active-color: #a8162a;
    --bs-btn-active-bg: #fadadf;
    --bs-btn-active-border-color: #f2b6bf;
}
[data-bs-theme="dark"] .gdv-btn-danger {
    --bs-btn-color: #ff8595;
    --bs-btn-hover-color: #ffb3bd;
    --bs-btn-hover-bg: rgba(216, 30, 54, .16);
    --bs-btn-hover-border-color: rgba(216, 30, 54, .45);
    --bs-btn-active-color: #ffb3bd;
    --bs-btn-active-bg: rgba(216, 30, 54, .24);
}
.gdv-btn-danger.btn-sm { --bs-btn-padding-x: .5rem; }

/* ───────── Form ───────── */
.form-control, .form-select { border-color: var(--gdv-line-strong); padding: .55rem .8rem; font-size: .9375rem; }
.form-select { padding-right: 2.25rem; }
.form-control-sm, .form-select-sm { padding-top: .3rem; padding-bottom: .3rem; font-size: .8125rem; }
.form-select-sm { padding-right: 2rem; }
.form-control:focus, .form-select:focus { border-color: var(--gdv-blue); box-shadow: 0 0 0 3px var(--gdv-focus); }
.form-control::placeholder { color: var(--bs-secondary-color); opacity: .75; }
.form-control:disabled, .form-control[readonly] { background-color: var(--gdv-surface-2); }
.form-control[type="file"]::file-selector-button { font-weight: 600; background: var(--gdv-surface-2); }
.input-group-text { border-color: var(--gdv-line-strong); background: var(--gdv-surface-2); color: var(--bs-secondary-color); }
.form-check-input { border-color: var(--gdv-line-strong); }
.form-check-input:checked { background-color: var(--gdv-blue); border-color: var(--gdv-blue); }
.form-check-input:focus { border-color: var(--gdv-blue); box-shadow: 0 0 0 3px var(--gdv-focus); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.form-text { font-size: .8125rem; color: var(--bs-secondary-color); }
.form-label, .gdv-label { font-size: .875rem; font-weight: 600; color: var(--bs-emphasis-color); }
.col-form-label { padding-top: calc(.55rem + 1px); padding-bottom: calc(.55rem + 1px); }
.gdv-filter { width: auto; min-width: 11rem; }
.gdv-form-card form > .card-body > .row:last-child,
.gdv-form-card .tab-pane > .row:last-child { margin-bottom: 0 !important; }

.gdv-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--gdv-line);
    border-radius: 999px;
    background: var(--gdv-surface-2);
}
.gdv-tabs .nav-link {
    padding: .4rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: .875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}
.gdv-tabs .nav-link:hover { color: var(--bs-emphasis-color); }
.gdv-tabs .nav-link.active {
    background: var(--gdv-surface);
    color: var(--bs-emphasis-color);
    box-shadow: 0 0 0 1px var(--gdv-line), 0 1px 2px rgba(14, 23, 38, .08);
}

.gdv-form-card { overflow: visible; }
/* AdminLTE memberi .app-main overflow:auto (wadah scroll yang tidak pernah bergulir), sehingga sticky tidak menempel ke layar.
   overflow-x:clip tetap memotong konten lebar tanpa membuat wadah scroll. */
body.layout-fixed .app-main:has(.gdv-form-bar) { overflow-x: clip; overflow-y: visible; }
.gdv-form-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .9rem 1.75rem;
    border-top: 1px solid var(--gdv-line);
    border-radius: 0 0 var(--gdv-radius-panel) var(--gdv-radius-panel) !important;
    background: color-mix(in srgb, var(--gdv-surface) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gdv-preview {
    display: block;
    max-width: 100%;
    max-height: 160px;
    padding: 4px;
    border: 1px solid var(--gdv-line);
    border-radius: 12px;
    background: repeating-conic-gradient(#e9ecf1 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}
[data-bs-theme="dark"] .gdv-preview { background: repeating-conic-gradient(#1a2438 0 25%, #121b2c 0 50%) 0 0 / 16px 16px; }

/* ───────── Dashboard ───────── */
.gdv-welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 220px;
    padding: 2rem 2.25rem;
    overflow: hidden;
    border-radius: 20px;
    background: var(--gdv-ink);
    color: #fff;
}
[data-bs-theme="dark"] .gdv-welcome { box-shadow: inset 0 0 0 1px var(--gdv-line); }
.gdv-welcome-text { position: relative; z-index: 1; max-width: 34rem; }
.gdv-welcome-title {
    margin: 0 0 .6rem;
    font-family: var(--gdv-font-display);
    font-size: clamp(1.65rem, 1.1rem + 1.6vw, 2.4rem);
    font-weight: 700;
    font-stretch: 118%;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: #fff;
}
.gdv-welcome-sub { margin: 0 0 1.4rem; font-size: 1rem; color: rgba(255, 255, 255, .72); }
.gdv-welcome-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.gdv-welcome-art {
    position: absolute;
    z-index: 0;
    right: -36px;
    top: 50%;
    height: 86%;
    width: auto;
    transform: translateY(-50%);
}
@media (max-width: 1399.98px) { .gdv-welcome-art { right: -120px; } }
@media (max-width: 1199.98px) { .gdv-welcome-art { right: -200px; opacity: .5; } }
@media (max-width: 767.98px) { .gdv-welcome-art { display: none; } }
@media (max-width: 575.98px) { .gdv-welcome { min-height: 0; padding: 1.5rem; } }
@media (prefers-reduced-motion: no-preference) {
    .gdv-shape { animation: gdv-rise .7s cubic-bezier(.2, .7, .2, 1) both; transform-box: fill-box; transform-origin: center; }
    .gdv-shape-d { animation-delay: .08s; }
    .gdv-shape-v { animation-delay: .16s; }
}
@keyframes gdv-rise {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.gdv-btn-light {
    --bs-btn-color: var(--gdv-ink);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--gdv-ink);
    --bs-btn-hover-bg: #e8edf4;
    --bs-btn-hover-border-color: #e8edf4;
    --bs-btn-active-color: var(--gdv-ink);
    --bs-btn-active-bg: #d9e1ec;
    --bs-btn-active-border-color: #d9e1ec;
}
.gdv-btn-onink {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, .06);
    --bs-btn-border-color: rgba(255, 255, 255, .2);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .13);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .32);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .18);
    --bs-btn-active-border-color: rgba(255, 255, 255, .32);
}
.gdv-welcome .btn:focus-visible { outline-color: var(--gdv-yellow); }

.gdv-card:has(> .gdv-tally) { overflow: hidden; }
.gdv-tally {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 0 -1px -1px 0;
}
.gdv-tally-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon count" "icon label";
    align-items: center;
    column-gap: .9rem;
    padding: 1.1rem 1.5rem;
    border-right: 1px solid var(--gdv-line);
    border-bottom: 1px solid var(--gdv-line);
    color: inherit;
    text-decoration: none;
}
.gdv-tally-item > .bi {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gdv-line);
    border-radius: 12px;
    background: var(--gdv-surface-2);
    font-size: 1.05rem;
    color: var(--gdv-muted);
}
.gdv-tally-count {
    grid-area: count;
    font: 650 1.45rem/1.1 var(--gdv-font-display);
    font-stretch: 110%;
    font-variant-numeric: tabular-nums;
    color: var(--bs-emphasis-color);
}
.gdv-tally-label { grid-area: label; font-size: .8125rem; color: var(--bs-secondary-color); }
.gdv-tally-item:hover { background: var(--gdv-surface-2); }
.gdv-tally-item:hover > .bi { color: var(--bs-link-color); border-color: var(--bs-primary-border-subtle); background: var(--bs-primary-bg-subtle); }
.gdv-tally-item:focus-visible { outline-offset: -3px; }
@media (max-width: 575.98px) {
    .gdv-tally { grid-template-columns: 1fr 1fr; }
    .gdv-tally-item { padding: .9rem 1rem; column-gap: .7rem; }
    .gdv-tally-item > .bi { width: 34px; height: 34px; border-radius: 10px; }
}

/* ───────── Halaman masuk (login, MFA, lupa/atur ulang password) ───────── */
body.login-page.bg-body-secondary {
    min-height: 100vh;
    background-color: var(--gdv-ink) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='white' stroke-opacity='.06' stroke-width='2'%3E%3Ccircle cx='60' cy='120' r='190'/%3E%3Crect x='880' y='470' width='300' height='300' rx='52'/%3E%3Cpath d='M1010 60 L1010 330 L1240 195 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}
.login-page .login-logo { display: none; }
.login-page .login-box { width: min(420px, 100% - 2rem); margin: 2rem auto; }
.gdv-auth-card { border: 0; background: transparent; box-shadow: none; }
.gdv-auth-card > .card-header { padding: 0 0 1.75rem; border: 0; background: transparent; text-align: center; }
.gdv-auth-card > .card-header .card-title { float: none; margin: 0; }
.gdv-login-logo { height: 92px; width: auto; }
.gdv-auth-card > .card-body {
    padding: 2rem;
    border: 1px solid var(--gdv-line);
    border-radius: 20px !important;
    background: var(--gdv-surface);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.login-card-body > h1, .gdv-auth-title {
    margin: 0 0 .35rem;
    font-family: var(--gdv-font-display);
    font-size: 1.5rem;
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: -.015em;
    text-align: center;
    color: var(--bs-emphasis-color);
}
.gdv-auth-sub, .login-page .login-box-msg { margin: 0 0 1.5rem; padding: 0; text-align: center; color: var(--bs-secondary-color); }
.gdv-or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; font-size: .8125rem; color: var(--bs-secondary-color); }
.gdv-or::before, .gdv-or::after { content: ""; flex: 1; height: 1px; background: var(--gdv-line); }
.login-page details > summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--bs-link-color); }

/* HP: tabel lebar bergulir di wadahnya sendiri dan tidak boleh melebarkan layar */
.gdv-card:has(> .table-responsive) { overflow: hidden; }
