/* =========================================================
   GLOBAL FIXES
   ========================================================= */
.app-header .nav-link[data-lte-toggle="sidebar"] {
    position: relative;
    z-index: 1050;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */
:root {
    --brand: #0d6efd;
}

.login-page {
    min-height: 100dvh;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bg-hero {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: center / cover no-repeat url("../assets/img/background.jpg");
    filter: saturate(1.05);
}

.bg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .15);
}

@media (prefers-color-scheme: dark) {
    .bg-hero::after {
        background: rgba(0, 0, 0, .35);
    }
}

.auth-wrap {
    max-width: 1100px;
}

.auth-card {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgb(0 0 0 / .12);
    background: var(--bs-body-bg);
    backdrop-filter: blur(4px);
}

.visual-pane {
    background:
        linear-gradient(135deg, rgba(13, 110, 253, .85), rgba(32, 201, 151, .8)),
        center / cover no-repeat url("../assets/img/background.jpg");
    color: #fff;
    min-height: 280px;
}

.visual-pane .brand-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .3));
}

.visual-pane .title {
    font-weight: 700;
    letter-spacing: .3px;
}

.visual-pane .subtitle {
    opacity: .95;
}

.brand-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

.brand-mobile img {
    width: 140px;
    height: auto;
}

.input-group-text {
    background: transparent;
}

.form-pane {
    padding: 1.25rem;
}

@media (min-width: 576px) {
    .form-pane {
        padding: 1.75rem;
    }
}

@media (min-width: 992px) {
    .form-pane {
        padding: 2.25rem;
    }
}

.text-xs {
    font-size: .8125rem;
}


/* =========================================================
   TABLE / OPTION HELPERS
   ========================================================= */
.option-cell {
    white-space: nowrap;
}

.option-group form {
    display: inline;
    margin: 0;
}

.option-group .btn {
    display: inline-block;
    min-width: 85px;
}

.table-min-1100 {
    min-width: 1100px;
}


/* =========================================================
   WIDTH / TITLE HELPERS
   ========================================================= */
.page-title-36 {
    font-size: 36px;
}

.col-w-80 {
    width: 80px;
}

.col-w-120 {
    width: 120px;
}

.col-w-180 {
    width: 180px;
}

.col-w-190 {
    width: 190px;
}

.col-w-230 {
    width: 230px;
}


/* =========================================================
   SCROLL HELPERS
   ========================================================= */
.max-h-220-scroll {
    max-height: 220px;
    overflow: auto;
}

.max-h-220-scroll-y {
    max-height: 220px;
    overflow-y: auto;
}

/* =========================================================
   BOOTSTRAP ICON FIX
   ========================================================= */
.bi,
.nav-icon.bi,
.nav-icon[class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
}

.nav-icon.bi {
    display: inline-block;
}

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.page-title-profile {
    font-size: 32px;
}

@media (max-width: 576px) {
    .page-title-profile {
        font-size: 22px;
    }
}

/* =========================================================
   CHANGE PASSWORD PAGE
   ========================================================= */
.page-title-change-password {
    font-size: 36px;
}

@media (max-width: 576px) {
    .page-title-change-password {
        font-size: 22px;
    }
}

/* =========================================================
   USERS PAGE
   ========================================================= */
.page-title-users {
    font-size: 32px;
}

@media (max-width: 576px) {
    .page-title-users {
        font-size: 22px;
    }
}

/* =========================================================
   USERS PAGE TABLE & ACTION BUTTON
   ========================================================= */
.users-table {
    min-width: 1450px;
    table-layout: fixed;
}

.users-table th,
.users-table td {
    vertical-align: middle !important;
}

.users-table th {
    text-align: center;
    white-space: nowrap;
}

.users-table td {
    word-break: break-word;
}

.users-table .user-col-no {
    width: 60px;
}

.users-table .user-col-nip {
    width: 180px;
}

.users-table .user-col-name {
    width: 170px;
}

.users-table .user-col-wilayah {
    width: 150px;
}

.users-table .user-col-subwilayah {
    width: 160px;
}

.users-table .user-col-email {
    width: 220px;
}

.users-table .user-col-role {
    width: 135px;
}

.users-table .user-option-cell {
    width: 575px;
    min-width: 575px;
    text-align: left !important;
}

.user-action-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    margin: 0;
    white-space: normal;
}

.user-action-form {
    display: inline-flex;
    margin: 0;
}

.user-action-btn {
    min-width: 104px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-action-btn.btn-access-duration {
    min-width: 128px;
}

@media (max-width: 768px) {
    .users-table {
        min-width: 1250px;
    }

    .users-table .user-option-cell {
        width: 430px;
        min-width: 430px;
    }

    .user-action-wrap {
        gap: 6px;
    }

    .user-action-btn {
        min-width: 96px;
        height: 31px;
        font-size: 0.72rem;
    }

    .user-action-btn.btn-access-duration {
        min-width: 118px;
    }
}

/* =========================================================
   LOG AKTIVITAS PAGE
   ========================================================= */
.codebox {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 8px;
    margin: 0;
    max-height: 260px;
    overflow: auto;
}

.table-sm th,
.table-sm td {
    vertical-align: top;
}

.table-log {
    min-width: 900px;
}

.log-title {
    font-size: 32px;
}

@media (max-width: 576px) {
    .log-title {
        font-size: 22px;
    }
}

.col-w-60 {
    width: 60px;
}

.col-w-110 {
    width: 110px;
}

.col-w-140 {
    width: 140px;
}

.col-w-160 {
    width: 160px;
}

.col-w-200 {
    width: 200px;
}

/* =========================================================
   SECURITY DASHBOARD - EXCEL LIKE FILTER
   ========================================================= */
.security-event-table-wrap {
    overflow: visible;
    padding-bottom: 220px;
}

.security-event-table {
    min-width: 1420px;
}

.security-event-table th,
.security-event-table td {
    vertical-align: top;
}

.security-filter-th {
    position: relative;
    vertical-align: top;
    white-space: nowrap;
}

.security-th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.security-filter-menu {
    position: relative;
    display: inline-block;
}

.security-filter-menu summary {
    width: 30px;
    height: 30px;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
    list-style: none;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.security-filter-menu summary::-webkit-details-marker {
    display: none;
}

.security-filter-menu summary:hover {
    background: #e9ecef;
    border-color: #6c757d;
}

.security-filter-menu[open] summary,
.security-filter-menu summary.security-filter-active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.18);
}

.security-filter-panel {
    position: absolute;
    top: 36px;
    left: 0;
    right: auto;
    z-index: 5000;
    width: 310px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-top: 3px solid #0d6efd;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    white-space: normal;
}

.security-filter-panel-wide {
    width: 380px;
}

.security-filter-panel-time {
    width: 310px;
}

.security-filter-menu-time .security-filter-panel-time {
    left: 0 !important;
    right: auto !important;
}

.security-filter-menu-right .security-filter-panel {
    left: auto;
    right: 0;
}

.security-filter-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.security-checklist {
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f8f9fa;
}

.security-checklist .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
    margin-bottom: 8px;
}

.security-checklist .form-check:last-child {
    margin-bottom: 0;
}

.security-checklist .form-check-input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    min-width: 1rem !important;
    max-width: 1rem;
    margin: 0.15rem 0 0 0;
}

.security-checklist .form-check-label {
    flex: 1 1 auto;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.security-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.security-filter-panel input:not([type="checkbox"]),
.security-filter-panel select {
    min-width: 100%;
}

.security-filter-panel input[type="checkbox"] {
    min-width: 1rem !important;
}

.page-title-security {
    font-size: 32px;
}

@media (max-width: 768px) {
    .security-event-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 220px;
    }

    .security-filter-panel,
    .security-filter-panel-wide,
    .security-filter-panel-time {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .page-title-security {
        font-size: 22px;
    }
}

/* =========================================================
   ROLES PAGE
   ========================================================= */
.page-title-roles {
    font-size: 32px;
}

@media (max-width: 576px) {
    .page-title-roles {
        font-size: 22px;
    }
}

.col-w-70 {
    width: 70px;
}

.role-name-truncate {
    max-width: 220px;
}

/* =========================================================
   DATAJUM INPUT PAGE
   ========================================================= */
.insub-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-row .form-control {
    flex: 1;
}

.input-row .btn {
    border-radius: 6px !important;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 576px) {
    .datajum-title {
        font-size: 1.2rem;
    }
}

.btn-format-active {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2);
}

.input-bold {
    font-weight: 700;
}

.input-center {
    text-align: center;
}

.import-error-detail {
    max-height: 200px;
    overflow: auto;
}

.datajum-ei-wrapper {
    position: relative;
}

.datajum-export-row {
    position: relative;
    z-index: 2;
}

.datajum-import-row {
    position: relative;
    z-index: 1;
}

.datajum-table-no-label {
    font-size: 1.15rem;
}

.datajum-table-no-badge {
    font-size: 1.15rem;
    padding: .45rem .75rem;
    letter-spacing: .2px;
}

.datajum-structure-label {
    font-size: 1rem;
}

/* =========================================================
   DATAJUM - MERGE CELL MODAL
   Hilangkan double arrow pada Bootstrap form-select
   ========================================================= */

#mergeCellModal .form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;

    padding-right: 2.25rem !important;
}

/* =========================================================
   DASHBOARD
   ========================================================= */
.dashboard-year-select {
    max-width: 220px;
}

.dashboard-col-no {
    width: 60px;
}

.dashboard-col-wilayah {
    min-width: 180px;
    max-width: 240px;
}

.sheet-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 48px;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 12px;
    background: #fdfdfd;
}

.sheet-card {
    min-width: 980px;
}

.sheet-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.sheet-bab {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.scrollbox {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #ccc;
    background: #fff;
}

table.tbl {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 940px;
    font-size: 14px;
}

.tbl th,
.tbl td {
    border: 1px solid #000;
    padding: 6px 8px;
    white-space: nowrap;
    background: #fff;
    vertical-align: middle;
}

.center {
    text-align: center !important;
}

.right {
    text-align: right !important;
}

.left {
    text-align: left !important;
}

.bold {
    font-weight: 700 !important;
}

.wrap {
    white-space: pre-line;
}

.tbl thead th {
    text-align: center;
    vertical-align: middle;
}

.tbl thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f8f9fa;
}

.tbl thead tr:nth-child(2) th {
    position: sticky;
    top: 38px;
    z-index: 30;
    background: #f8f9fa;
}

.tbl thead tr:nth-child(3) th {
    position: sticky;
    top: 76px;
    z-index: 30;
    background: #f8f9fa;
}

.sticky-col,
.sticky-col-2,
.sticky-col-3 {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    background: #fff;
    transform: none !important;
    background-clip: border-box;
}

.tbl thead .sticky-col,
.tbl thead .sticky-col-2,
.tbl thead .sticky-col-3 {
    position: sticky !important;
    top: 0;
    z-index: 31;
    background: #f8f9fa;
}

.tbl thead tr:nth-child(1) .sticky-col,
.tbl thead tr:nth-child(1) .sticky-col-2,
.tbl thead tr:nth-child(1) .sticky-col-3 {
    top: 0;
}

.tbl thead tr:nth-child(2) .sticky-col,
.tbl thead tr:nth-child(2) .sticky-col-2,
.tbl thead tr:nth-child(2) .sticky-col-3 {
    top: 38px;
}

.tbl thead tr:nth-child(3) .sticky-col,
.tbl thead tr:nth-child(3) .sticky-col-2,
.tbl thead tr:nth-child(3) .sticky-col-3 {
    top: 76px;
}

.wm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.wm-box {
    background: #fff;
    max-width: 1000px;
    margin: 40px auto;
    padding: 16px;
    border-radius: 8px;
    max-height: 80vh;
    overflow: auto;
}

.wm-box table.modal-wm thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

.wm-box table.modal-wm td {
    vertical-align: top;
    white-space: nowrap;
}

.dashboard-v-middle {
    vertical-align: middle !important;
}

.wm-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .sheet-grid {
        display: block;
        overflow-x: visible;
        padding: 8px 0;
        border: none;
        background: transparent;
    }

    .sheet-card {
        min-width: 100%;
        margin-bottom: 16px;
    }

    .scrollbox {
        max-height: none;
        overflow-x: auto;
        overflow-y: auto;
    }

    table.tbl {
        min-width: 720px;
        font-size: 12px;
    }

    .sheet-bab {
        font-size: 14px;
    }

    .sheet-title {
        font-size: 13px;
    }

    .bold {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    table.tbl {
        min-width: 600px;
        font-size: 11px;
    }

    .tbl th,
    .tbl td {
        padding: 4px 6px;
    }
}

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.dashboard-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 4px;
}

.dashboard-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #212529;
}

.dashboard-page-subtitle {
    color: #6c757d;
    font-size: 14px;
}

.dashboard-locks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f1f5ff;
    color: #1f3a8a;
    font-size: 13px;
    border: 1px solid #dbe7ff;
    white-space: nowrap;
}

.dashboard-filter-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.dashboard-empty-state {
    margin-top: 18px;
    padding: 34px 18px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
}

.dashboard-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .dashboard-page-header {
        flex-direction: column;
    }

    .dashboard-page-title {
        font-size: 26px;
    }

    .dashboard-locks {
        justify-content: flex-start;
    }

    .badge-lock {
        white-space: normal;
    }
}

/* =========================================================
   NAVBAR PROFILE DROPDOWN
   ========================================================= */
.profile-menu .dropdown-toggle::after {
    display: none;
}

.profile-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f63ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.profile-dropdown-card {
    width: 320px;
    overflow: hidden;
    border-radius: 16px;
}

.profile-dropdown-header {
    padding: 18px 18px 16px;
    text-align: center;
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    color: #fff;
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto;
    background: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    border: 3px solid rgba(255, 255, 255, .35);
}

.profile-dropdown-name {
    font-size: 17px;
    line-height: 1.2;
}

.profile-dropdown-role {
    font-size: 13px;
    opacity: .9;
}

.profile-dropdown-body {
    padding: 12px 16px;
    background: #fff;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 13px;
}

.profile-info-row:last-child {
    border-bottom: 0;
}

.profile-info-label {
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
}

.profile-info-value {
    color: #212529;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.profile-dropdown-footer {
    padding: 12px 16px 16px;
    background: #f8f9fa;
}

@media (max-width: 576px) {
    .profile-dropdown-card {
        width: 290px;
    }

    .profile-dropdown-name {
        font-size: 16px;
    }
}

/* =========================================================
   SIDEBAR BRAND / LOGO
   ========================================================= */
.sidebar-brand-custom {
    min-height: 95px;
    height: auto;
    padding: 14px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.brand-link-custom {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-brand-logo {
    display: block;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
}

.sidebar-brand-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, .96);
    text-align: center;
    line-height: 1.35;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .15px;
}

.sidebar-brand-text .brand-line {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    word-break: normal;
}

/* =========================================================
   DASHBOARD FORMATTER CELL
   ========================================================= */
.fmt-cell {
    display: grid;
    align-items: center;
    width: 100%;
    min-width: 120px;
    white-space: nowrap;
}

.fmt-currency {
    grid-template-columns: 34px 1fr;
    column-gap: 6px;
}

.fmt-symbol {
    text-align: left;
}

.fmt-unit {
    grid-template-columns: 1fr auto;
    column-gap: 6px;
}

.fmt-suffix {
    text-align: left;
}

.fmt-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fmt-number {
    grid-template-columns: 1fr;
    min-width: auto;
}

.fmt-number .fmt-value {
    text-align: center;
}

.fmt-placeholder {
    display: block;
    text-align: center;
}

/* =========================================================
   WILAYAH - DISPLAY SETTING MODAL
   ========================================================= */
#displaySettingModal .modal-dialog {
    max-height: calc(100vh - 2rem);
}

#displaySettingModal .modal-content {
    max-height: calc(100vh - 2rem);
}

#displaySettingModal .modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

#displaySettingModal .table-responsive {
    overflow-x: auto;
}

#displaySettingModal .accordion-body {
    padding: 1rem;
}


@media (max-width: 576px) {
    #displaySettingModal .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    #displaySettingModal .modal-content {
        max-height: calc(100vh - 1rem);
    }

    #displaySettingModal .modal-body {
        max-height: calc(100vh - 190px);
    }

}

/* =========================================================
   CHANGE PASSWORD PAGE
   ========================================================= */
.page-title-change-password {
    font-size: 36px;
}

.change-password-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.change-password-body {
    padding: 32px 18px;
    background: #ffffff;
}

.change-password-panel {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.change-password-intro {
    display: flex;
    align-items: center;
    gap: 14px;
}

.change-password-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    font-size: 26px;
    flex: 0 0 52px;
}

.change-password-heading {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.change-password-subtitle {
    font-size: 14px;
    color: #6c757d;
}

.change-password-panel .form-control-lg {
    font-size: 1rem;
    min-height: 46px;
    border-radius: 10px;
}

.change-password-panel .form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.change-password-options {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.change-password-options .form-check {
    margin-bottom: 0;
}

.change-password-submit {
    min-width: 180px;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .page-title-change-password {
        font-size: 22px;
    }

    .change-password-body {
        padding: 18px 12px;
    }

    .change-password-panel {
        padding: 20px;
    }

    .change-password-intro {
        align-items: flex-start;
    }

    .change-password-heading {
        font-size: 18px;
    }

    .change-password-submit {
        width: 100%;
    }
}

/* =========================================================
   LOG AKTIVITAS - HEADER FILTER
   ========================================================= */
.log-activity-card,
.log-activity-card-body {
    overflow: visible;
}

.log-activity-table-wrap {
    overflow: visible;
    padding-bottom: 18px;
}

.log-activity-table {
    min-width: 1250px;
}

.log-filter-th {
    position: relative;
    white-space: nowrap;
    vertical-align: top;
}

.log-th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.log-filter-menu {
    position: relative;
    display: inline-block;
}

.log-filter-menu summary {
    width: 30px;
    height: 30px;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
    list-style: none;
    user-select: none;
}

.log-filter-menu summary::-webkit-details-marker {
    display: none;
}

.log-filter-menu[open] summary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.log-filter-panel {
    position: absolute;
    top: 36px;
    left: 0;
    right: auto;
    z-index: 4000;
    width: 310px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-top: 3px solid #0d6efd;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    white-space: normal;
}

.log-filter-menu-right .log-filter-panel {
    left: auto;
    right: 0;
}

.log-filter-panel-wide {
    width: 380px;
}

.log-filter-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.log-checklist {
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f8f9fa;
}

.log-checklist .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
    margin-bottom: 8px;
}

.log-checklist .form-check:last-child {
    margin-bottom: 0;
}

.log-checklist .form-check-input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    min-width: 1rem !important;
    max-width: 1rem;
    margin: 0.15rem 0 0 0;
}

.log-checklist .form-check-label {
    flex: 1 1 auto;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.log-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .log-activity-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
    }

    .log-filter-panel,
    .log-filter-panel-wide {
        width: 280px;
    }
}

.log-filter-menu summary.log-filter-active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.18);
}

.log-filter-menu summary.log-filter-active:hover {
    background: #0b5ed7;
    color: #fff;
    border-color: #0a58ca;
}

.log-filter-menu[open] summary.log-filter-active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* =========================================================
   DASHBOARD MODAL DETAIL - ALIGNMENT ANGKA / TEKS
   ========================================================= */
.wm-box table.modal-wm td {
    vertical-align: middle !important;
    white-space: nowrap;
}

.wm-box table.modal-wm td.modal-wm-subwilayah-cell {
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.wm-box table.modal-wm td.modal-wm-value-cell {
    vertical-align: middle !important;
    white-space: pre-line;
}

/* Support class baru dari blade: text-center / text-start */
.wm-box table.modal-wm td.modal-wm-value-cell.text-center {
    text-align: center !important;
}

.wm-box table.modal-wm td.modal-wm-value-cell.text-start {
    text-align: left !important;
}

/* Backup kalau masih ada class lama center / left */
.wm-box table.modal-wm td.modal-wm-value-cell.center {
    text-align: center !important;
}

.wm-box table.modal-wm td.modal-wm-value-cell.left {
    text-align: left !important;
}

/* Angka hasil formatter benar-benar di tengah */
.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-cell,
.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-number,
.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-unit,
.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-currency,
.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-placeholder,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-cell,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-number,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-unit,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-currency,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-placeholder {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
}

.wm-box table.modal-wm td.modal-wm-value-cell.text-center .fmt-value,
.wm-box table.modal-wm td.modal-wm-value-cell.center .fmt-value {
    text-align: center !important;
}

/* =========================================================
   API CLIENT
   ========================================================= */

/* Tahun nonaktif pada Manajemen API Client */
.tahun-item.disabled {
    opacity: .55;
}

/* Checkbox yang disabled terlihat jelas */
.tahun-item.disabled .form-check-label {
    cursor: not-allowed;
}

/* Tombol Atur BAB disabled */
.tahun-item .btn:disabled {
    cursor: not-allowed;
}

.api-client-edit-panel {
    padding: 20px;
    background: #f8fafc;
    border-top: 3px solid #0d6efd;
}

.edit-tahun-item.disabled {
    opacity: .55;
}

.edit-tahun-item.disabled .form-check-label {
    cursor: not-allowed;
}

.edit-tahun-item .btn:disabled {
    cursor: not-allowed;
}


/* CSS dari api-clients.blade.php */
.api-client-page {
    max-width: 1500px;
}

.api-key-box {
    font-family: Consolas, Monaco, monospace;
    word-break: break-all;
}

.api-option-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.api-client-table {
    min-width: 1250px;
}

.api-key-id {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    word-break: break-all;
}

.api-action-form {
    display: inline-block;
    margin: 2px;
}

.api-col-dashboard {
    width: 150px;
}

.api-col-export-kabupaten {
    width: 210px;
}

.api-col-export-kecamatan {
    width: 190px;
}

.api-main-col-no {
    width: 60px;
}

.api-main-col-client {
    width: 220px;
}

.api-main-col-key {
    width: 220px;
}

.api-main-col-access {
    width: 220px;
}

.api-main-col-rate {
    width: 90px;
}

.api-main-col-status {
    width: 100px;
}

.api-main-col-expired {
    width: 150px;
}

.api-main-col-last-used {
    width: 170px;
}

.api-main-col-creator {
    width: 170px;
}

.api-main-col-actions {
    width: 220px;
}

/* END CSS dari api-clients.blade.php */