/**
 * Authenticated / admin pages — 110% rem scale.
 * Overrides Metronic style.bundle.css (html/body font-size: 13px !important).
 */
html {
    font-size: 100% !important;
}

html,
body {
    font-size: 0.9rem !important;
}

@media (max-width: 991.98px) {
    html,
    body {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 767.98px) {
    html,
    body {
        font-size: 0.9rem !important;
    }
}

#bottom_right_floating_actions .scrolltop {
    position: static;
    bottom: auto;
    right: auto;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
}

/* Always-white authenticated header (matches sticky state at all scroll positions) */
.header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--kt-border-color) !important;
}

@media (min-width: 992px) {
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item > .menu-link,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item > .menu-link .menu-title {
        color: var(--kt-gray-700) !important;
    }

    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here),
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.here > .menu-link,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.here > .menu-link .menu-title,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.show > .menu-link,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item.show > .menu-link .menu-title,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item > .menu-link.active,
    body:not([data-kt-sticky-header=on]) .header .header-menu .menu > .menu-item > .menu-link.active .menu-title {
        color: var(--kt-primary) !important;
        background-color: var(--kt-menu-link-bg-color-active) !important;
    }
}

body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom i,
body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom .svg-icon,
body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom.dropdown-toggle:after,
body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom:hover:not(.btn-active) i,
body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom:hover:not(.btn-active) .svg-icon,
body:not([data-kt-sticky-header=on]) .topbar .active.show > .btn.btn-custom,
body:not([data-kt-sticky-header=on]) .topbar .active.show > .btn.btn-custom i,
body:not([data-kt-sticky-header=on]) .topbar .active.show > .btn.btn-custom .svg-icon {
    color: var(--kt-gray-700) !important;
}

body:not([data-kt-sticky-header=on]) .topbar .btn.btn-custom:hover:not(.btn-active),
body:not([data-kt-sticky-header=on]) .topbar .active.show > .btn.btn-custom {
    background-color: var(--kt-gray-100) !important;
}

/* Replace header-bg.jpg with polygonal particle banner */
html:not([data-theme=dark]) body:not(.app-blank),
[data-theme=dark] body:not(.app-blank) {
    background-image: none !important;
}

.flex-root {
    position: relative;
}

.iyres-polygon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(105deg, #0077bd 0%, #0089b0 45%, #009a8e 100%);
}

.iyres-polygon-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.page {
    position: relative;
    z-index: 1;
}

/*
 * Bootstrap appends .modal-backdrop to <body>. Nested modals inside .page
 * sit in a stacking context (z-index: 1) and end up behind the backdrop.
 * While a modal is open, drop that stacking context so dialogs stack correctly.
 * Polygon banner stays behind via DOM order under .flex-root.
 */
body.modal-open .page,
body:has(.modal.show) .page {
    z-index: auto;
}

/* Livewire / manual modals that render backdrop as a sibling inside .page */
.page .modal.show {
    z-index: 1055;
}

.page .modal-backdrop {
    z-index: 1050;
}

@media (max-width: 991.98px) {
    .iyres-polygon-bg {
        height: 280px;
    }
}

/* Table headers */
.table > thead > tr > th,
.table > thead > tr > td,
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
    background-color: #fff !important;
    --bs-table-bg: #fff;
    --bs-table-accent-bg: transparent;
    color: #7E8299;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    border-bottom: 1px solid #EFF2F5 !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    white-space: nowrap;
}

.lw-th-label {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.lw-th-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: 1;
    cursor: pointer;
}

.lw-th-sort:hover .lw-th-label,
.lw-th-sort:focus-visible .lw-th-label {
    color: #009EF7;
}

.lw-th-sort__marks {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    color: #D8DBE5;
}

.lw-th-sort__marks svg {
    display: block;
    width: 8px;
    height: 5px;
}

.lw-th-sort.is-asc .lw-th-sort__up,
.lw-th-sort.is-desc .lw-th-sort__down,
.lw-th-sort:hover .lw-th-sort__marks {
    color: #009EF7;
}

.lw-th-sort.is-asc .lw-th-sort__down,
.lw-th-sort.is-desc .lw-th-sort__up {
    color: #E4E6EF;
}

/* Avoid grey-on-grey when tables sit inside light panels */
.bg-light .table > thead > tr > th,
.bg-light .table > thead > tr > td,
.bg-light-secondary .table > thead > tr > th,
.bg-light-secondary .table > thead > tr > td {
    background-color: #ffffff !important;
    --bs-table-bg: #ffffff;
}

.bg-light .table,
.bg-light-secondary .table {
    background-color: #ffffff;
}

/* Body cells — breathing room + soft separators */
.table > tbody > tr > th,
.table > tbody > tr > td,
table.dataTable > tbody > tr > th,
table.dataTable > tbody > tr > td {
    vertical-align: middle;
    color: #3F4254;
    border-bottom-color: #EFF2F5;
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
}

/* Subtle row hover */
.table > tbody > tr:hover > th,
.table > tbody > tr:hover > td,
table.dataTable > tbody > tr:hover > th,
table.dataTable > tbody > tr:hover > td {
    background-color: #FAFBFC !important;
}

/* Softer zebra striping when table-striped is used */
.table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(0, 0, 0, 0.012);
    --bs-table-bg-type: rgba(0, 0, 0, 0.012);
}

/* Soft dashed row dividers */
.table.table-row-dashed > tbody > tr {
    border-bottom-color: #EFF2F5;
}

/* First/last column edge gaps (overrides Metronic flush edges + gs-0) */
.table > :not(caption) > * > *:first-child,
.table th:first-child,
.table td:first-child,
table.dataTable > :not(caption) > * > *:first-child,
table.dataTable th:first-child,
table.dataTable td:first-child {
    padding-left: 1.25rem !important;
}

.table > :not(caption) > * > *:last-child,
.table th:last-child,
.table td:last-child,
table.dataTable > :not(caption) > * > *:last-child,
table.dataTable th:last-child,
table.dataTable td:last-child {
    padding-right: 1.25rem !important;
}

/* Shared table action pill */
.table-action-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
}

.table-action-pill__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background-color: #1b84ff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(27, 132, 255, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.table-action-pill__trigger:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
}

.table-action-pill__trigger i {
    color: #fff;
}

.table-action-pill__panel {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1055;
    background: transparent;
    transform: translateY(-50%);
    pointer-events: auto;
}

.table-action-pill.is-open .table-action-pill__trigger {
    visibility: hidden;
    pointer-events: none;
}

.table-action-pill__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    white-space: nowrap;
}

.table-action-pill__form {
    display: inline-flex;
    margin: 0;
}

.table-action-pill__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 1.05rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.table-action-pill__btn:hover {
    color: #fff;
    transform: translateY(-1px);
    opacity: 0.92;
}

.table-action-pill__btn i {
    color: #fff;
}

.table-action-pill__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.table-action-pill__disabled-wrap {
    display: inline-flex;
    cursor: not-allowed;
}

.table-action-pill__btn--dark { background-color: #1e1e2d; }
.table-action-pill__btn--danger { background-color: #f1416c; }
.table-action-pill__btn--primary { background-color: #009ef7; }
.table-action-pill__btn--success { background-color: #50cd89; }
.table-action-pill__btn--warning { background-color: #ffc700; color: #fff; }
.table-action-pill__btn--info { background-color: #7239ea; }
.table-action-pill__btn--close {
    background-color: #1b84ff;
    color: #fff;
}

.table-action-pill__toggle {
    margin: 0 0.15rem 0 0.05rem;
    padding-left: 0;
}

.table-action-pill__toggle .form-check-input {
    width: 3.6rem;
    height: 1.5rem;
    cursor: default;
}

.table-responsive table tbody td:last-child,
.table-responsive table tbody td:has(.table-action-pill) {
    position: relative;
    overflow: visible;
    white-space: nowrap;
}


@media (max-width: 767.98px) {
    .table-action-pill__inner {
        gap: 0.4rem;
        padding: 0.3rem 0.45rem;
    }

    .table-action-pill__btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* Settings sidebar nav */
.settings-nav-card {
    position: sticky;
    top: 100px;
}

.settings-nav-card > .card-body {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-nav__header {
    display: flex;
    flex-direction: column;
    padding: 0 0.55rem 0.25rem;
}

.settings-nav__heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #181c32;
}

.settings-nav__subheading {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #a1a5b7;
}

.settings-nav__section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.settings-nav__label {
    padding: 0 0.55rem 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7e8299;
}

.settings-nav__link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 0.85rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #3f4254;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.settings-nav__link:hover {
    background-color: #f4f6fa;
    color: #181c32;
    text-decoration: none;
}

.settings-nav__link.is-active {
    background-color: #eef6ff;
    color: #009ef7;
}

.settings-nav__link.is-active:hover {
    background-color: #e8f3ff;
    color: #0095e8;
}

.settings-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background-color: #f4f6fa;
    color: #7e8299;
    font-size: 1.05rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.settings-nav__icon i {
    color: inherit !important;
}

.settings-nav__link:hover .settings-nav__icon {
    background-color: #e9edf5;
    color: #5e6278;
}

.settings-nav__link.is-active .settings-nav__icon {
    background-color: #009ef7;
    color: #fff;
}

.settings-nav__link.is-active .settings-nav__icon i {
    color: #fff !important;
}

.settings-nav__title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}

.settings-nav__link.is-active .settings-nav__title {
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .settings-nav-card {
        position: static;
    }
}

/* Settings content card titles */
.settings-page > .card > .card-header .card-title {
    margin-top: 0;
}

.settings-page > .card > .card-header .card-label {
    font-size: 1.5rem !important;
    line-height: 1.3;
    color: #181c32;
}

.settings-page > .card > .card-header .text-muted {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a1a5b7 !important;
}

/* Settings CRUD tables */
.settings-page .settings-table .dataTables_wrapper {
    padding-top: 0.25rem;
}

.settings-page .settings-table .dataTables_wrapper .dataTables_length,
.settings-page .settings-table .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.settings-page .settings-table .dataTables_wrapper .dataTables_filter label,
.settings-page .settings-table .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7e8299;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.settings-page .settings-table .dataTables_wrapper .dataTables_filter input {
    margin-left: 0.35rem;
    min-width: 220px;
    height: 2.5rem;
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
    background-color: #f9f9f9;
    color: #181c32;
    padding: 0.55rem 0.85rem;
    box-shadow: none;
}

.settings-page .settings-table .dataTables_wrapper .dataTables_filter input:focus {
    background-color: #fff;
    border-color: #b5b5c3;
    outline: 0;
}

.settings-page .settings-table .dataTables_wrapper .dataTables_length select {
    min-width: 4.5rem;
    height: 2.5rem;
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
    background-color: #f9f9f9;
    color: #181c32;
    padding: 0.35rem 1.75rem 0.35rem 0.75rem;
}

.settings-page .settings-table table.dataTable {
    margin-top: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.settings-page .settings-table table.dataTable thead th {
    padding: 0.85rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a5b7;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eff2f5 !important;
    vertical-align: middle;
}

.settings-page .settings-table table.dataTable tbody td {
    padding: 0.9rem 0.75rem;
    color: #3f4254;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px dashed #eff2f5 !important;
    vertical-align: middle;
}

.settings-page .settings-table table.dataTable tbody tr:hover td {
    background-color: #fafbff;
}

.settings-page .settings-table table.dataTable thead th:last-child,
.settings-page .settings-table table.dataTable tbody td:last-child {
    width: 1%;
    white-space: nowrap;
    text-align: right !important;
    padding-left: 1rem;
    padding-right: 0.35rem;
}

.settings-page .settings-table .table-action-pill {
    justify-content: flex-end;
    min-height: 36px;
}

.settings-page .settings-table .table-action-pill__trigger {
    width: 44px;
    height: 26px;
    box-shadow: 0 4px 12px rgba(27, 132, 255, 0.18);
}

.settings-page .settings-table .dataTables_info {
    color: #a1a5b7;
    font-size: 0.85rem;
    font-weight: 600;
    padding-top: 1rem !important;
}

.settings-page .settings-table .dataTables_paginate {
    padding-top: 0.75rem !important;
}

.settings-page .settings-table .dataTables_paginate .paginate_button {
    border-radius: 0.425rem !important;
}

/* Penempatan pegawai (negeri) */
.penempatan-state-card {
    position: sticky;
    top: 100px;
}

.penempatan-state-header {
    display: flex;
    flex-direction: column;
    padding: 0 0.35rem;
}

.penempatan-state-heading {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #181c32;
}

.penempatan-state-subheading {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a1a5b7;
}

.penempatan-state-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.penempatan-state-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0.75rem;
    background: transparent;
    color: #3f4254;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.penempatan-state-item--total {
    cursor: default;
    background-color: #f4f6fa;
    margin-bottom: 0.45rem;
}

.penempatan-state-item:hover:not(.penempatan-state-item--total) {
    background-color: #f4f6fa;
    color: #181c32;
}

.penempatan-state-item.is-active {
    background-color: #eef6ff;
    color: #009ef7;
}

.penempatan-state-item.is-active:hover {
    background-color: #e8f3ff;
}

.penempatan-state-item__flag {
    width: 2.65rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.penempatan-state-item__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.penempatan-state-item__meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.penempatan-state-item__name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.penempatan-state-item.is-active .penempatan-state-item__name {
    font-weight: 700;
}

.penempatan-state-item__hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a1a5b7;
}

.penempatan-state-item .badge {
    flex-shrink: 0;
    min-width: 2.25rem;
    justify-content: center;
}

.penempatan-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    background: #f4f6fa;
    color: #7e8299;
    font-size: 1.75rem;
}

.penempatan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.penempatan-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5e6278;
}

.penempatan-legend__swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.penempatan-legend__swatch--jbsn {
    background-color: #ffc700;
}

.penempatan-legend__swatch--pbsd {
    background-color: #009ef7;
}

.penempatan-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.penempatan-accordion__item {
    border: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.penempatan-accordion__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent;
    cursor: pointer;
    user-select: none;
    text-align: left;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease;
}

.penempatan-accordion__header:hover,
.penempatan-accordion__header:focus,
.penempatan-accordion__header:focus-visible,
.penempatan-accordion__header:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: #f4f6fa;
}

.penempatan-sections .penempatan-accordion + .penempatan-accordion {
    border-top: 1px solid #eff2f5;
}

.penempatan-accordion__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
}

.penempatan-accordion__type--jbsn {
    background-color: #fff8dd;
    color: #b38600;
}

.penempatan-accordion__type--pbsd {
    background-color: #eef6ff;
    color: #009ef7;
}

.penempatan-accordion__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #181c32;
}

.penempatan-accordion__chevron {
    color: #a1a5b7;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.penempatan-accordion__header:not(.collapsed) .penempatan-accordion__chevron {
    transform: rotate(180deg);
    color: #009ef7;
}

.penempatan-accordion__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.15rem 1.1rem 0.85rem;
}

.penempatan-officer {
    display: flex;
    align-items: flex-start;
    padding: 0.85rem 0.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.penempatan-officer + .penempatan-officer {
    border-top: 1px solid #f1f1f4;
}

.penempatan-officer__body {
    min-width: 0;
    flex-grow: 1;
}

.penempatan-officer__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 0.3rem;
}

.penempatan-officer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.15rem;
    color: #7e8299;
    font-size: 0.9rem;
    font-weight: 500;
}

.penempatan-officer__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.penempatan-officer__meta i {
    font-size: 0.75rem;
    color: #a1a5b7;
}

@media (max-width: 1199.98px) {
    .penempatan-state-card {
        position: static;
    }

    .penempatan-state-list {
        max-height: none;
    }
}

/* Admin reports */
.report-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.35rem 1.4rem;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.85rem rgba(24, 28, 50, 0.05);
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-card:hover {
    background: #f9fafb;
    box-shadow: 0 0.45rem 1.1rem rgba(24, 28, 50, 0.08);
    transform: translateY(-1px);
}

.report-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 0.8rem;
    font-size: 1.2rem;
}

.report-card__icon i {
    color: inherit !important;
}

.report-card--primary .report-card__icon {
    background: #eef6ff;
    color: #009ef7;
}

.report-card--info .report-card__icon {
    background: #f1faff;
    color: #1b84ff;
}

.report-card--success .report-card__icon {
    background: #e8fff3;
    color: #17c653;
}

.report-card--warning .report-card__icon {
    background: #fff8dd;
    color: #f6b100;
}

.report-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex-grow: 1;
}

.report-card__code {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #a1a5b7;
}

.report-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #181c32;
    line-height: 1.3;
}

.report-card__desc {
    font-size: 0.95rem;
    font-weight: 500;
    color: #7e8299;
    line-height: 1.4;
}

.report-card__chevron {
    color: #b5b5c3;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.report-card:hover .report-card__chevron {
    color: #009ef7;
}

.report-filter-card,
.report-result-card {
    border: 0;
    box-shadow: 0 0.25rem 0.85rem rgba(24, 28, 50, 0.05);
}

.report-filter-card .form-label,
.report-filter-card label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5e6278;
    margin-bottom: 0.4rem;
}

.report-view-toggle {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 0.65rem;
    background: #f4f6fa;
}

.report-view-toggle .btn {
    border: 0;
    box-shadow: none !important;
}

.report-table {
    margin-bottom: 0;
}

.report-table thead th {
    border-bottom-width: 1px !important;
    border-color: #eff2f5 !important;
    background: #f9fafb;
    color: #7e8299;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.9rem 1rem;
}

.report-table tbody td,
.report-table tfoot td {
    border-color: #f1f1f4 !important;
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.report-table tbody tr:hover {
    background: #fafbfc;
}

.report-table tfoot td {
    background: #f9fafb;
    font-weight: 700;
}

.report-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #181c32;
    margin: 0 0 1rem;
}

.report-project-card {
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.2rem 0.65rem rgba(24, 28, 50, 0.05);
    overflow: hidden;
}

.report-project-card + .report-project-card {
    margin-top: 1rem;
}

.report-project-card__row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    border-top: 1px solid #f1f1f4;
}

.report-project-card__row:first-child {
    border-top: 0;
    background: #f9fafb;
}

.report-project-card__label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7e8299;
}

.report-project-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: #181c32;
}

.report-project-card__value p {
    margin-bottom: 0.25rem;
}

.report-project-card__value p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .report-project-card__row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* Livewire datatable column select */
.lw-column-select-menu {
    --lw-column-select-pad-x: 0.85rem;
    min-width: 15.5rem;
    max-width: 19rem;
    max-height: min(22rem, 70vh);
    padding: 0;
    margin-top: 0.35rem !important;
    overflow: hidden;
    border: 1px solid #eff2f5;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(24, 28, 50, 0.1);
}

.lw-column-select-menu__header {
    padding: 0.85rem var(--lw-column-select-pad-x) 0.7rem;
    border-bottom: 1px solid #eff2f5;
    background: #fcfcfd;
}

.lw-column-select-menu__body {
    max-height: min(18rem, calc(70vh - 3rem));
    overflow-y: auto;
    padding: 0.35rem 0;
}

.lw-column-select-menu__divider {
    height: 1px;
    margin: 0.35rem var(--lw-column-select-pad-x);
    background: #eff2f5;
}

.lw-column-select-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem var(--lw-column-select-pad-x);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.lw-column-select-item:hover {
    background: #f9fafb;
}

.lw-column-select-item.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.lw-column-select-item .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex-shrink: 0;
    float: none;
    cursor: pointer;
    border-radius: 0.35rem;
    border: 1px solid #d8dbe5;
    box-shadow: none;
}

.lw-column-select-item .form-check-input:checked {
    background-color: #009ef7;
    border-color: #009ef7;
}

.lw-column-select-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.15);
}

.lw-column-select-item__label {
    flex: 1 1 auto;
    min-width: 0;
    color: #3f4254;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lw-column-select-item--all .lw-column-select-item__label {
    color: #181c32;
}

/* Override legacy columnSelect spacing from style.bundle.css */
.dropdown-menu.lw-column-select-menu[aria-labelledby^="columnSelect-"] {
    padding: 0 !important;
}

.dropdown-menu.lw-column-select-menu[aria-labelledby^="columnSelect-"] .form-check {
    margin-bottom: 0;
}

/* Livewire datatable bulk actions */
.lw-bulk-actions-menu {
    --lw-bulk-pad-x: 0.85rem;
    min-width: 15.5rem;
    max-width: 20rem;
    padding: 0 !important;
    margin-top: 0.35rem !important;
    overflow: hidden;
    border: 1px solid #eff2f5;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(24, 28, 50, 0.1);
}

.lw-bulk-actions-menu__header {
    padding: 0.85rem var(--lw-bulk-pad-x) 0.7rem;
    border-bottom: 1px solid #eff2f5;
    background: #fcfcfd;
}

.lw-bulk-actions-menu__body {
    padding: 0.35rem 0;
}

.lw-bulk-actions-item {
    display: block;
    padding: 0.6rem var(--lw-bulk-pad-x);
    color: #3f4254;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lw-bulk-actions-item:hover,
.lw-bulk-actions-item:focus {
    background: #f1faff;
    color: #009ef7;
}

.dropdown-menu.lw-bulk-actions-menu[aria-labelledby$="-bulkActionsDropdown"] {
    padding: 0 !important;
}

.dropdown-menu.lw-bulk-actions-menu[aria-labelledby$="-bulkActionsDropdown"] .dropdown-item,
.dropdown-menu.lw-bulk-actions-menu .lw-bulk-actions-item {
    padding: 0.6rem 0.85rem !important;
}

/* Livewire datatable outer border */
[id^="datatable-"] .table-responsive {
    border: 1px solid #E4E6EF;
    border-radius: 0.35rem;
}

[id^="datatable-"] .table-responsive > .table {
    margin-bottom: 0;
}

[id^="datatable-"] .table-responsive > .table > thead > tr:first-child > th:first-child {
    border-top-left-radius: 0.35rem;
}

[id^="datatable-"] .table-responsive > .table > thead > tr:first-child > th:last-child {
    border-top-right-radius: 0.35rem;
}

/* Livewire datatable pagination: one line while there is room */
[id^="datatable-"] .lw-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

[id^="datatable-"] .lw-pagination__links {
    flex: 1 1 auto;
    min-width: 0;
}

[id^="datatable-"] .lw-pagination__meta {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

[id^="datatable-"] .pagination {
    flex-wrap: wrap;
    justify-content: flex-start !important;
}
