/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-inline input,
select,
textarea {
    margin-bottom: 5px;
}

table.data-table {
    clear: both;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: separate !important
}

table.data-table td,
table.data-table th {
    -webkit-box-sizing: content-box;
    box-sizing: content-box
}

table.data-table td.data-tables_empty,
table.data-table th.data-tables_empty {
    text-align: center
}

table.data-table.nowrap td,
table.data-table.nowrap th {
    white-space: nowrap
}

div.data-tables_wrapper div.data-tables_length label {
    font-weight: 400;
    text-align: left;
    white-space: nowrap
}

div.data-tables_wrapper div.data-tables_length select {
    min-width: 68px !important;
    width: auto !important;
    padding-left: 10px !important;
    padding-right: 28px !important;
    display: inline-block;
}

div.data-tables_wrapper div.data-tables_filter {
    text-align: right
}

div.data-tables_wrapper div.data-tables_filter label {
    font-weight: 400;
    white-space: nowrap;
    text-align: left
}

div.data-tables_wrapper div.data-tables_filter input {
    margin-left: .5em;
    display: inline-block;
    width: auto
}

div.data-tables_wrapper div.data-tables_info {
    padding-top: .85em;
    white-space: nowrap
}

div.data-tables_wrapper div.data-tables_paginate {
    margin: 0;
    white-space: nowrap;
    text-align: right
}

div.data-tables_wrapper div.data-tables_paginate ul.pagination {
    margin: 2px 0;
    white-space: nowrap;
    justify-content: flex-end
}

div.data-tables_wrapper div.data-tables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 1em 0
}

table.data-table thead>tr>td.sorting,
table.data-table thead>tr>td.sorting_asc,
table.data-table thead>tr>td.sorting_desc,
table.data-table thead>tr>th.sorting,
table.data-table thead>tr>th.sorting_asc,
table.data-table thead>tr>th.sorting_desc {
    padding-right: 30px
}

table.data-table thead>tr>td:active,
table.data-table thead>tr>th:active {
    outline: 0
}

table.data-table thead .sorting,
table.data-table thead .sorting_asc,
table.data-table thead .sorting_asc_disabled,
table.data-table thead .sorting_desc,
table.data-table thead .sorting_desc_disabled {
    cursor: pointer;
    position: relative
}

table.data-table thead .sorting:after,
table.data-table thead .sorting:before,
table.data-table thead .sorting_asc:after,
table.data-table thead .sorting_asc:before,
table.data-table thead .sorting_asc_disabled:after,
table.data-table thead .sorting_asc_disabled:before,
table.data-table thead .sorting_desc:after,
table.data-table thead .sorting_desc:before,
table.data-table thead .sorting_desc_disabled:after,
table.data-table thead .sorting_desc_disabled:before {
    position: absolute;
    bottom: .9em;
    display: block;
    opacity: .3
}

table.data-table thead .sorting:before,
table.data-table thead .sorting_asc:before,
table.data-table thead .sorting_asc_disabled:before,
table.data-table thead .sorting_desc:before,
table.data-table thead .sorting_desc_disabled:before {
    right: 1em;
    content: "\2191"
}

table.data-table thead .sorting:after,
table.data-table thead .sorting_asc:after,
table.data-table thead .sorting_asc_disabled:after,
table.data-table thead .sorting_desc:after,
table.data-table thead .sorting_desc_disabled:after {
    right: .5em;
    content: "\2193"
}

table.data-table thead .sorting_asc:before,
table.data-table thead .sorting_desc:after {
    opacity: 1
}

table.data-table thead .sorting_asc_disabled:before,
table.data-table thead .sorting_desc_disabled:after {
    opacity: 0
}

div.data-tables_scrollHead table.data-table {
    margin-bottom: 0 !important
}

div.data-tables_scrollBody table {
    border-top: none;
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

div.data-tables_scrollBody table thead .sorting:after,
div.data-tables_scrollBody table thead .sorting_asc:after,
div.data-tables_scrollBody table thead .sorting_desc:after {
    display: none
}

div.data-tables_scrollBody table tbody tr:first-child td,
div.data-tables_scrollBody table tbody tr:first-child th {
    border-top: none
}

div.data-tables_scrollFoot>.data-tables_scrollFootInner {
    box-sizing: content-box
}

div.data-tables_scrollFoot>.data-tables_scrollFootInner>table {
    margin-top: 0 !important;
    border-top: none
}

@media screen and (max-width:767px) {

    div.data-tables_wrapper div.data-tables_filter,
    div.data-tables_wrapper div.data-tables_info,
    div.data-tables_wrapper div.data-tables_length,
    div.data-tables_wrapper div.data-tables_paginate {
        text-align: center
    }
}

table.data-table.table-sm>thead>tr>th {
    padding-right: 20px
}

table.data-table.table-sm .sorting:before,
table.data-table.table-sm .sorting_asc:before,
table.data-table.table-sm .sorting_desc:before {
    top: 5px;
    right: .85em
}

table.data-table.table-sm .sorting:after,
table.data-table.table-sm .sorting_asc:after,
table.data-table.table-sm .sorting_desc:after {
    top: 5px
}

table.table-bordered.data-table td,
table.table-bordered.data-table th {
    border-left-width: 0
}

table.table-bordered.data-table td:last-child,
table.table-bordered.data-table th:last-child {
    border-right-width: 0
}

table.table-bordered.data-table tbody td,
table.table-bordered.data-table tbody th {
    border-bottom-width: 0
}

div.data-tables_scrollHead table.table-bordered {
    border-bottom-width: 0
}

div.table-responsive>div.data-tables_wrapper>div.row {
    margin: 0
}

div.table-responsive>div.data-tables_wrapper>div.row>div[class^=col-]:first-child {
    padding-left: 0
}

div.table-responsive>div.data-tables_wrapper>div.row>div[class^=col-]:last-child {
    padding-right: 0
}

.table-responsive .container-fluid {
    padding: 0px
}

.table td,
.table th {
    padding: .35rem
}

.dataTables_length label,
.dataTables_filter label {
    margin-bottom: 0px
}

.xdsoft_datetimepicker {
    z-index: 99999
}

.list-group-item {
    padding: .3rem 1.25rem
}

.custom-control-label::after,
.custom-control-label::before {
    top: 0px !important
}

.dt-buttons,
.dataTables_info {
    position: relative;
    float: left;
}

/* STYLE FORM FILTER */

#form-filter .filter-box,
#form-filter > .row.col-md-12 {
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    border-radius: 6px;
    padding: 12px 15px !important;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#form-filter.active .filter-box,
#form-filter.active > .row.col-md-12 {
    background-color: #f0f7ff; 
    border: 1px solid #cce4ff;
    border-left: 4px solid #03a9f4; 
    box-shadow: 0 4px 15px rgba(3, 169, 244, 0.08);
}

#form-filter .filter-box select,
#form-filter .filter-box input,
#form-filter > .row.col-md-12 select,
#form-filter > .row.col-md-12 input,
#form-filter .filter-box .select2-container--default .select2-selection--single,
#form-filter .filter-box .select2-container--default .select2-selection--multiple {
    transition: all 0.2s ease-in-out;
}

#form-filter.active .filter-box select,
#form-filter.active .filter-box input,
#form-filter.active > .row.col-md-12 select,
#form-filter.active > .row.col-md-12 input,
#form-filter.active .filter-box .select2-container--default .select2-selection--single,
#form-filter.active .filter-box .select2-container--default .select2-selection--multiple {
    background-color: #fff !important;
    border-color: #03a9f4 !important;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.15) !important;
}

#form-filter.active .filter-box .select2-container--default .select2-selection__rendered,
#form-filter.active .filter-box .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #fff !important;
}

#form-filter.active .col-form-label {
    color: #03a9f4;
    font-weight: 700;
    transition: color 0.3s ease;
}

#form-filter.active .col-form-label i {
    display: inline-block;
    animation: filterPulse 2s infinite ease-in-out;
}

@keyframes filterPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 38px;
    height: 38px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

/* Custom Select2 agar sesuai dengan Bootstrap 4 */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e1e8ee !important;
    border-radius: 0.25rem !important;
}

.input-group .select2-container {
    flex: 1 1 auto !important;
    width: 1% !important;
}

.input-group .select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e1e8ee !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
}

.select2-selection__rendered {
    line-height: 36px !important;
}

.select2-selection__arrow {
    height: 30px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 0px !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid #e1e8ee !important;
    border-radius: 0.25rem !important;
    display: flex;
    align-items: center;
    padding: 2px 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #fff;
    border: 2px solid #03a9f4;
    border-radius: 20px;
    cursor: default;
    float: left;
    margin-right: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 0 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    line-height: 1.4;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    line-height: normal !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 !important;
}

/* Custom placeholder size specifically for form-filter inputs to match s-12 (12px) */
#form-filter input::placeholder {
    font-size: 12px;
}
#form-filter input:-ms-input-placeholder {
    font-size: 12px;
}
#form-filter input::-ms-input-placeholder {
    font-size: 12px;
}
#form-filter .select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-size: 12px;
}

/* Custom form-group margin for compact layout inside form-filter */
#form-filter .form-group {
    margin-bottom: 4px !important;
}

/* ==========================================================================
   Header Transparan Adaptif (Hero Dashboard)
   ========================================================================== */
body:has(.dash-hero-section),
body:has(.dash-hero-section) .app-shell {
    background-color: #0d3859 !important;
}

/* Default .app-main untuk seluruh halaman */
.app-main {
    background-color: #f4f7fb;
}

/* Khusus dashboard: reset padding vertikal app-main dan tetapkan background putih
   untuk membungkus section utama tanpa celah warna biru */
body:has(.dash-hero-section) .app-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #ffffff;
}

/* Section Utama Dashboard (Layanan, Lacak Berkas, RDTR) wajib berlatar putih */
.dash-main-section {
    background-color: #ffffff !important;
}

.sim-header.is-hero-transparent {
    background: transparent !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Widget Pimpinan Daerah (Walikota & Wakil Walikota) di Samping SIMPONIE
   ========================================================================== */
.sim-brand__leaders {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(17, 73, 114, 0.06);
    border: 1px solid rgba(17, 73, 114, 0.15);
    padding: 3px 6px;
    border-radius: 8px;
    margin-right: 8px;
    transition: all 0.25s ease;
}

.sim-leader-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    transition: transform 0.2s ease;
}

.sim-leader-item:hover {
    transform: scale(1.08);
    z-index: 2;
}

.sim-leader-avatar {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: block;
}

.sim-leader-badge {
    display: none;
    /* tooltip label atau tampilan ekstra */
}

/* Tampilan saat Header Transparan di atas Hero Dashboard */
.sim-header.is-hero-transparent .sim-brand__leaders {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sim-header.is-hero-transparent .sim-brand__leaders:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.sim-header.is-hero-transparent .sim-leader-avatar {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(13, 56, 89, 0.6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Saat header di-scroll ke bawah */
.sim-header.is-hero-scrolled .sim-brand__leaders {
    background: rgba(13, 56, 89, 0.04);
    border-color: rgba(13, 56, 89, 0.12);
}

.sim-header.is-hero-scrolled .sim-leader-avatar {
    border-color: rgba(13, 56, 89, 0.18);
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Brand Title & Kepanjangan SIMPONIE */
.sim-brand__app-title {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    border-right: none !important;
    padding-right: 0 !important;
}

.sim-brand__app-name {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--primary);
}

.sim-brand__app-sub {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #64748b;
    line-height: 1.15;
    margin-top: 2px;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Logo PTSP / DPMPTSP disamping pimpinan dan di sebelah kiri judul */
.sim-brand__logo {
    padding-right: 12px;
    border-right: 2px solid var(--border-color);
}

/* Logo PTSP / DPMPTSP menjadi putih bersih di atas latar hero gelap */
.sim-header.is-hero-transparent .sim-brand__logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    border-right-color: rgba(255, 255, 255, 0.25) !important;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sim-header.is-hero-scrolled .sim-brand__logo {
    border-right-color: var(--border-color);
}

.sim-header.is-hero-transparent .sim-brand__app-name {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sim-header.is-hero-transparent .sim-brand__app-sub {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sim-header.is-hero-scrolled .sim-brand__app-name {
    color: var(--primary) !important;
}

.sim-header.is-hero-scrolled .sim-brand__app-sub {
    color: #64748b !important;
}

/* Footer Brand Title */
.footer-brand-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 14px;
    margin-left: 2px;
}

.footer-brand-name {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #FFFFFF;
}

.footer-brand-sub {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    margin-top: 2px;
    text-transform: capitalize;
}

.sim-header.is-hero-transparent .sim-menu .nav-link {
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sim-header.is-hero-transparent .sim-menu .nav-link:hover,
.sim-header.is-hero-transparent .sim-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
}

.sim-header.is-hero-transparent .sim-btn-login {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary) !important;
    border-color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.sim-header.is-hero-transparent .sim-btn-login:hover {
    background: #FFFFFF;
    color: var(--accent) !important;
    transform: translateY(-1px);
}

.sim-header.is-hero-transparent .sim-user-pill {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
}

.sim-header.is-hero-transparent .sim-user-pill:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.sim-header.is-hero-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(17, 73, 114, 0.08) !important;
    box-shadow: 0 4px 20px rgba(17, 73, 114, 0.04) !important;
}

.sim-header.is-hero-scrolled .sim-brand__logo {
    filter: none;
    opacity: 1;
}

/* Navbar Toggler Button (Mobile): Kontras Putih saat Header Transparan di Latar Gelap */
.sim-header.is-hero-transparent .navbar-toggler {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sim-header.is-hero-transparent .navbar-toggler:hover,
.sim-header.is-hero-transparent .navbar-toggler:focus {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

.sim-header.is-hero-transparent .navbar-toggler-icon {
    filter: brightness(0) invert(1) !important;
}

/* Container menu saat di-collapse pada mobile layar transparan */
@media (max-width: 991.98px) {
    .sim-header.is-hero-transparent .navbar-collapse {
        background: rgba(13, 56, 89, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 14px 16px;
        margin-top: 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
}

/* ==========================================================================
   Banner Info Layanan Adaptif (Transparan Glassmorphism di Hero Dashboard)
   ========================================================================== */
.sim-banner.is-hero-banner {
    background: rgba(13, 56, 89, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.sim-banner.is-hero-banner.is-hero-scrolled {
    background: #0d3859 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sim-banner.is-hero-banner .sim-banner-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Sticky Header Container (Navbar & Info Layanan Sticky Bersama)
   ========================================================================== */
.sim-sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
}

.sim-sticky-top .sim-header {
    position: relative !important;
    top: auto !important;
}

.sim-sticky-top .sim-banner {
    position: relative !important;
    top: auto !important;
}

html {
    scroll-padding-top: 130px;
}

/* ==========================================================================
   Container Luas & Spacing Samping Lebih Lega
   ========================================================================== */
.dash-container,
.dash-hero-section > .dash-container,
.sim-header__inner,
.sim-banner__inner {
    max-width: 1540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 1400px) {
    .dash-container,
    .dash-hero-section > .dash-container,
    .sim-header__inner,
    .sim-banner__inner {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ==========================================================================
   Hero Section Pimpinan Daerah & Komitmen Pelayanan Compact & Proporsional
   ========================================================================== */
.hero-service-card-compact {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 20px 26px 22px !important;
    position: relative;
    width: 100%;
}

.hero-leader-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 180px;
    max-width: 210px;
    padding: 0;
}

.hero-leader-img-box {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 165px;
}

.hero-leader-img {
    max-height: 165px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    animation: heroLeaderFloat 4.5s ease-in-out infinite;
}

.hero-leader-img--wakil {
    animation-delay: 2.25s;
}

@keyframes heroLeaderFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.hero-leader-card:hover .hero-leader-img {
    animation-play-state: paused;
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 12px 24px rgba(13, 56, 89, 0.38));
}

.hero-leader-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 56, 89, 0.95) 0%, rgba(8, 36, 58, 0.98) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    margin-top: 3px;
    width: 100%;
    text-align: center;
    z-index: 2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-leader-card:hover .hero-leader-pill {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 56, 89, 0.38), 0 0 12px rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.85);
}

.hero-leader-role {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
    line-height: 1.15;
    margin-bottom: 2px;
}

.hero-leader-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.15px;
    white-space: nowrap !important;
    overflow: visible;
    text-overflow: clip;
    display: block;
}

.hero-service-card-compact .service-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hero-service-card-compact .service-tile:hover {
    background: #eff6ff;
    border-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 73, 114, 0.08);
}

.hero-service-card-compact .service-tile:hover .widget-icon {
    transform: scale(1.1);
    transition: transform 0.25s ease;
}

.hero-service-card-compact .service-tile-title {
    font-size: 13.5px;
    line-height: 1.3;
}

.hero-service-card-compact .service-tile-sub {
    font-size: 11px;
    line-height: 1.25;
}

.hero-service-card-compact .service-tile-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

/* ==========================================================================
   Hero Event / Announcement Banner (Memanjang Rendah / Landscape di Dashboard)
   Frame Ukuran Fix & Gagah: Gambar mengikuti frame (Anti-Layout Shift)
   ========================================================================== */
.dash-event-banner-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.dash-event-banner-item {
    position: relative;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dash-event-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.4s ease;
}

.dash-event-banner-wrapper:hover .dash-event-banner-img {
    transform: scale(1.01);
}

/* ==========================================================================
   Hero Leader Card Flank (Samping Hero Slider) - Frame Fix & Proporsional
   ========================================================================== */
.hero-leader-card--flank {
    min-width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 14px 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.hero-leader-card--flank:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.hero-leader-card--flank .hero-leader-img-box {
    height: 360px;
    max-height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-leader-card--flank .hero-leader-img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   Hero Section: Banner Informasi Utama (Dominan) & Hero Slider (Landscape)
   ========================================================================== */
@media (min-width: 992px) {
    .has-event-banner .dash-event-banner-wrapper,
    .has-event-banner .dash-event-banner-item,
    .has-event-banner .dash-event-banner-img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .has-event-banner .hero-interactive-row {
        height: clamp(100px, 13vh, 140px) !important;
        min-height: clamp(100px, 13vh, 140px) !important;
        max-height: clamp(100px, 13vh, 140px) !important;
    }

    .has-event-banner .hero-carousel-wrapper,
    .has-event-banner .dash-hero-carousel,
    .has-event-banner .dash-hero-carousel .carousel-inner,
    .has-event-banner .dash-hero-carousel .carousel-item,
    .has-event-banner .dash-slider-item,
    .has-event-banner .dash-slider-img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .no-event-banner .hero-interactive-row {
        flex: 1 1 0% !important;
        height: 100% !important;
    }

    .no-event-banner .hero-carousel-wrapper,
    .no-event-banner .dash-hero-carousel,
    .no-event-banner .dash-hero-carousel .carousel-inner,
    .no-event-banner .dash-hero-carousel .carousel-item,
    .no-event-banner .dash-slider-item,
    .no-event-banner .dash-slider-img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* Spacing & padding kartu layanan agar pas dalam 1 layar */
.hero-service-card-compact,
.no-event-banner .hero-service-card-compact {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px !important;
    border-radius: 14px !important;
}

.hero-service-card-compact > .row,
.no-event-banner .hero-service-card-compact > .row {
    flex: 1 1 0%;
    align-items: stretch;
    min-height: 0;
}

.hero-service-card-compact .hero-service-card-header {
    margin-bottom: 16px !important;
}

.hero-service-card-compact .panel-badge {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}

.hero-service-card-compact .panel-title {
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

.hero-service-card-compact .service-tile,
.no-event-banner .hero-service-card-compact .service-tile {
    padding: 14px 16px !important;
}

.hero-service-card-compact .service-tile-title {
    font-size: 13px !important;
    margin-bottom: 2px !important;
}

.hero-service-card-compact .service-tile-sub {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}

.hero-service-card-compact .service-tile-desc {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}

.hero-service-card-compact .widget-icon {
    width: 36px !important;
    height: 36px !important;
}

.hero-service-card-compact .widget-icon i {
    font-size: 18px !important;
}

/* Khusus Layar Ekstra Lebar / Monitor Besar (24"+ / Resolusi >= 1600px dengan Tinggi Layar >= 900px) */
@media (min-width: 1600px) and (min-height: 900px) {
    .has-event-banner .hero-interactive-row {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }

    .hero-service-card-compact,
    .no-event-banner .hero-service-card-compact {
        padding: 10px 18px 12px !important;
    }
}

/* Tier Layar Pendek: Laptop 13" - 14" (Tinggi Bersih Browser <= 720px) */
@media (min-width: 992px) and (max-height: 720px) {
    .has-event-banner .hero-interactive-row {
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
    }

    .hero-service-card-compact,
    .no-event-banner .hero-service-card-compact {
        padding: 6px 12px 8px !important;
    }

    .hero-service-card-compact .service-tile,
    .no-event-banner .hero-service-card-compact .service-tile {
        padding: 4px 8px !important;
    }

    .hero-service-card-compact .service-tile-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .hero-carousel-wrapper,
    .dash-hero-carousel {
        height: 100%;
        min-height: 0;
    }
}

.dash-hero-carousel .carousel-inner,
.dash-hero-carousel .carousel-item {
    height: 100%;
}

.dash-slider-item {
    height: 100%;
    width: 100%;
    background-color: #0d3859;
    overflow: hidden;
}

.dash-slider-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Slider Caption */
.dash-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.90) 0%, rgba(10, 25, 47, 0.55) 65%, transparent 100%);
    text-align: left;
    padding: 10px 18px 12px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel-wrapper:hover .dash-slider-caption,
.hero-carousel-wrapper:focus-within .dash-slider-caption {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dash-slider-caption a,
.dash-slider-caption button {
    pointer-events: auto;
}

.dash-slider-title {
    font-size: clamp(13px, 1.25vw, 17px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    max-width: 82%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-slider-title-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.dash-slider-title-link:hover {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

.dash-slider-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(10px, 0.85vw, 12px);
    line-height: 1.3;
    max-width: 80%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-top: 2px;
}

/* Carousel Indicators: Micro-Pill di Tengah Bawah */
.dash-hero-carousel .carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    right: auto;
    margin: 0;
    padding: 3px 8px;
    background: rgba(10, 25, 47, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel-wrapper:hover .carousel-indicators,
.hero-carousel-wrapper:focus-within .carousel-indicators {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dash-hero-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    margin: 0;
    padding: 0;
    opacity: 0.5;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.dash-hero-carousel .carousel-indicators .active {
    width: 16px;
    height: 6px;
    border-radius: 3px;
    opacity: 1;
    background-color: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

/* Carousel Arrows: Auto Hide & Show on Hover */
.dash-hero-carousel .carousel-control-prev,
.dash-hero-carousel .carousel-control-next {
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(10, 25, 47, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    z-index: 25;
}

.dash-hero-carousel .carousel-control-prev {
    left: 10px;
    transform: translateY(-50%) translateX(-6px);
}

.dash-hero-carousel .carousel-control-next {
    right: 10px;
    transform: translateY(-50%) translateX(6px);
}

.hero-carousel-wrapper:hover .carousel-control-prev,
.hero-carousel-wrapper:hover .carousel-control-next {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.dash-hero-carousel .carousel-control-prev:hover,
.dash-hero-carousel .carousel-control-next:hover {
    background: rgba(14, 116, 144, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.08) !important;
}

.dash-hero-carousel .carousel-control-prev-icon,
.dash-hero-carousel .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Responsive Breakpoints: Laptop Menengah, Tablet & Mobile Handset
   ========================================================================== */
/* Layar Tablet & Mobile (di bawah 992px) */
@media (max-width: 991.98px) {
    .dash-event-banner-wrapper,
    .dash-event-banner-item {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .hero-carousel-wrapper,
    .dash-hero-carousel,
    .dash-hero-carousel .carousel-inner,
    .dash-hero-carousel .carousel-item,
    .dash-slider-item,
    .dash-slider-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .hero-leader-card--flank .hero-leader-img-box {
        height: 190px;
        max-height: 190px;
    }

    .hero-leader-card--flank .hero-leader-img {
        max-height: 190px;
    }

    .hero-service-card-compact {
        padding: 18px 20px 20px !important;
    }

    .hero-service-card-compact .hero-service-card-header {
        margin-bottom: 14px !important;
    }

    .hero-service-card-compact .service-tile {
        padding: 13px 15px !important;
    }

    .hero-col-leader {
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .dash-container,
    .dash-hero-section > .dash-container,
    .sim-header__inner,
    .sim-banner__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .dash-event-banner-wrapper {
        border-radius: 10px;
    }

    .dash-event-banner-wrapper,
    .dash-event-banner-item {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .hero-carousel-wrapper,
    .dash-hero-carousel,
    .dash-hero-carousel .carousel-inner,
    .dash-hero-carousel .carousel-item,
    .dash-slider-item,
    .dash-slider-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .hero-leader-card--flank {
        padding: 10px 8px 12px !important;
        border-radius: 12px !important;
    }

    .hero-leader-card--flank .hero-leader-img-box {
        height: 140px;
        max-height: 140px;
    }

    .hero-leader-card--flank .hero-leader-img {
        max-height: 140px;
    }

    .hero-leader-pill {
        padding: 3px 6px !important;
        border-radius: 8px !important;
    }

    .hero-leader-role {
        font-size: 8px !important;
        letter-spacing: 0.3px !important;
    }

    .hero-leader-name {
        font-size: 9.5px !important;
    }

    .hero-service-card-compact {
        padding: 16px 16px 18px !important;
        border-radius: 16px !important;
    }

    .hero-service-card-compact .hero-service-card-header {
        margin-bottom: 12px !important;
    }

    .hero-service-card-compact .service-tile {
        padding: 12px 14px !important;
    }

    .sim-brand__app-sub {
        display: none;
    }
}

/* ── Cek Status Permohonan: Perbaikan Deadline Box ── */
.sim-progress-wrap {
    max-width: 260px !important;
}

.sim-deadline-box {
    width: 100%;
    background: #fff8f8;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 6px;
    box-shadow: 0 1px 2px rgba(225, 29, 72, 0.04);
}

.sim-deadline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    line-height: 1.2;
}

.sim-deadline-title {
    font-size: 11px;
    font-weight: 700;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
}

.sim-deadline-badge {
    border-radius: 3px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    display: inline-block;
    line-height: 1.2;
}

.sim-deadline-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 10.5px;
    color: #475569;
    margin-top: 4px;
    padding-top: 3px;
    border-top: 1px dashed #fecdd3;
}

.sim-deadline-warning {
    font-size: 9.5px;
    line-height: 1.25;
    color: #e11d48;
    margin-top: 3px;
    display: block;
}

/* ==========================================================================
   Widget Rekap Pendaftaran Hari Ini & Posisi Berkas
   ========================================================================== */
.rekap-pendaftar-item {
    transition: background-color 0.15s ease, transform 0.15s ease;
    border-radius: 6px;
    padding: 10px 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.rekap-pendaftar-item:last-child {
    border-bottom: none !important;
}

.rekap-pendaftar-item:hover {
    background-color: #f8fafc;
}

.rekap-pendaftar-badge {
    min-width: 44px;
    max-width: 78px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.rekap-count-badge {
    min-width: 32px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0d6efd;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    text-align: center;
}