/* ====== LAYOUT GLOBAL ====== */
.app-body-bg {
    background-color: #0f172a !important;
    /* navy gelap */
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-layout {
    min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.app-sidebar {
    width: 240px;
    background-color: #1e253b;
    /* biru tua */
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    padding: 1rem .75rem;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: .75rem;
    margin-bottom: .75rem;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: linear-gradient(135deg, #5a5afc 0%, #9f7bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(90, 90, 252, .4);
}

.sidebar-logo-text {
    color: #fff;
    line-height: 1.1rem;
    font-size: .8rem;
}

.text-muted-2 {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: .7rem;
}

.sidebar-pin {
    color: rgba(255, 255, 255, 0.4);
    font-size: .9rem;
}

.sidebar-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    padding-right: .25rem;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: .5rem;
    letter-spacing: .05em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: .55rem .5rem;
    border-radius: .5rem;
    line-height: 1.2rem;
    transition: all .15s;
    border: 1px solid transparent;
}

.sidebar-link+.sidebar-link {
    margin-top: .25rem;
}

.sidebar-link:hover {
    background-color: #2a3150;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .6);
}

.sidebar-ico {
    width: 1.2rem;
    text-align: center;
    font-size: 1rem;
    color: #8ea2ff;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: .75rem;
    font-size: .75rem;
}

/* ====== RIGHT SIDE / MAIN PANEL ====== */
.app-main {
    background-color: #0f172a;
    color: #fff;
    min-width: 0;
}

/* TOPBAR */
.app-topbar {
    background-color: #1e253b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: .75rem 1rem;
    color: #fff;
    font-size: .85rem;
}

.topbar-title {
    color: #fff;
    font-size: .9rem;
    line-height: 1rem;
}

.topbar-search {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    overflow: hidden;
}

.topbar-search-input {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: .8rem;
    width: 160px;
    min-width: 140px;
    box-shadow: none !important;
}

.topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.topbar-search-btn {
    background: transparent;
    border: 0;
    color: #8ea2ff;
    font-size: .8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    line-height: 1rem;
    padding: .45rem .6rem;
}

.topbar-meta {
    color: #fff;
    font-size: .75rem;
}

.mode-pill {
    background-color: #2a3150;
    padding: .4rem .5rem;
    border-radius: .4rem;
    font-size: .8rem;
    color: #8ea2ff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* CONTENT WRAPPER */
.app-content {
    padding: 1rem;
    color: #fff;
    font-size: .9rem;
}

/* ====== CARD STYLE (konten utama seperti screenshot) ====== */
.panel-card {
    background-color: #1e253b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: .6rem;
    padding: 1rem 1rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .7);
}

.panel-card-header {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-card-header .subtext {
    font-size: .75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.input-dark {
    background-color: #2a3150 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: .8rem !important;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* tombol kecil ungu/biru */
.btn-accent {
    background: linear-gradient(135deg, #5a5afc 0%, #9f7bff 100%);
    border: 0;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    box-shadow: 0 15px 30px rgba(90, 90, 252, .4);
}

.btn-accent:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* list nominal / paket harga */
.nominal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: .75rem;
}

.nominal-item {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    padding: .75rem .75rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
}

.nominal-left {
    display: flex;
    flex-direction: column;
}

.nominal-code {
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
}

.nominal-price {
    color: #ffca7a;
    font-size: .75rem;
    font-weight: 500;
}

.nominal-icon {
    color: #8ea2ff;
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        width: 200px;
    }

    .topbar-search-input {
        width: 120px;
    }

    .app-content {
        padding: .75rem;
    }
}

/* Pilihan qty (preset dan custom) */
.qty-grid {
    display: flex;
    flex-wrap: wrap;
}

.qty-btn {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
    cursor: pointer;
}

.qty-btn:not(:last-child) {
    margin-right: .5rem;
}

.qty-btn.qty-active {
    background: linear-gradient(135deg, #5a5afc 0%, #9f7bff 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 15px 30px rgba(90, 90, 252, .4);
}

.qty-btn-custom {
    background-color: #1e253b;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #8ea2ff;
    font-weight: 600;
}

/* override bootstrap default form controls inside dark cards */
#orderForm select.form-select,
#orderForm input.form-control,
#orderForm input.form-control:focus {
    background-color: #2a3150 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: .8rem !important;
}

#orderForm .form-text {
    color: rgba(255, 255, 255, 0.5) !important;
}

#orderForm label.form-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: .8rem;
    font-weight: 500;
}

/* ===== Dashboard Metrics ===== */
.metric-card {
    background-color: #1e253b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: .6rem;
    padding: .75rem .9rem;
    color: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .7);
    font-size: .8rem;
    line-height: 1.2rem;
}

.metric-label {
    font-size: .7rem;
    font-weight: 500;
    line-height: 1rem;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4rem;
}

.text-accent {
    color: #8ea2ff !important;
}

.text-danger-emph {
    color: #ff6b6b !important;
}

.metric-hint {
    font-size: .7rem;
    line-height: 1rem;
}

.metric-btn-outline {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.25);
    --bs-btn-hover-bg: #2a3150;
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.4);
    border-radius: .5rem;
    font-size: .8rem;
}

/* Date range form tweaks */
.date-range-form input[type="date"] {
    font-size: .75rem !important;
    padding: .4rem .5rem !important;
    line-height: 1rem !important;
    border-radius: .4rem !important;
}

.date-range-form button {
    font-size: .75rem !important;
    line-height: 1rem !important;
    border-radius: .4rem !important;
    padding: .45rem .5rem !important;
}

/* Chart wrapper */
.chart-wrapper {
    background-color: #2a3150;
    border-radius: .6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .7);
}

/* Service mini list */
.service-mini-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.service-mini-item {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
    padding: .6rem .75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: .8rem;
    line-height: 1.2rem;
}

.service-mini-left {
    display: flex;
    gap: .6rem;
}

.service-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: .4rem;
    background: linear-gradient(135deg, #5a5afc 0%, #9f7bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 15px 30px rgba(90, 90, 252, .4);
}

.service-mini-name {
    font-size: .8rem;
    font-weight: 600;
}

.service-mini-sub {
    font-size: .7rem;
    line-height: 1rem;
}

.btn-xxs {
    font-size: .7rem;
    line-height: 1rem;
    padding: .4rem .5rem;
    border-radius: .4rem;
}

/* Table Mutasi */
.table-darkish {
    width: 100%;
    background-color: #1e253b;
    color: #fff;
    font-size: .8rem;
    border-collapse: collapse;
}

.table-darkish thead tr {
    background-color: #2a3150;
}

.table-darkish th {
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: .6rem .75rem;
    font-size: .75rem;
}

.table-darkish td {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: .6rem .75rem;
    vertical-align: top;
    color: #fff;
    line-height: 1.2rem;
    word-break: break-word;
}

.badge-soft {
    font-size: .7rem;
    font-weight: 500;
    border-radius: .4rem;
    padding: .35rem .5rem;
    line-height: 1rem;
    border: 1px solid transparent;
}

.text-success-emph {
    color: #4ade80 !important;
}

.text-info-emph {
    color: #38bdf8 !important;
}

.text-danger-emph {
    color: #ff6b6b !important;
}

/* ===== recent orders cards ===== */
.recent-order-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.recent-order-item {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    padding: .6rem .75rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: .8rem;
    line-height: 1.2rem;
}

.recent-order-main {
    max-width: 75%;
}

.recent-order-title {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2rem;
}

.recent-order-meta {
    font-size: .7rem;
    line-height: 1rem;
}

.recent-order-status .badge-soft {
    font-size: .7rem;
    font-weight: 500;
    border-radius: .4rem;
    padding: .35rem .5rem;
    line-height: 1rem;
    border: 1px solid transparent;
}

.pending-badge {
    background-color: rgba(255, 193, 7, .15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, .4);
}

.processing-badge {
    background-color: rgba(13, 110, 253, .15);
    color: #8ea2ff;
    border-color: rgba(13, 110, 253, .4);
}

.done-badge {
    background-color: rgba(25, 135, 84, .15);
    color: #4ade80;
    border-color: rgba(25, 135, 84, .4);
}

.failed-badge {
    background-color: rgba(220, 53, 69, .15);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, .4);
}

/* ===== transaksi saldo list (gantikan table putih) ===== */
.log-list {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .7);
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.log-row {
    background-color: #1e253b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: .5rem;
    padding: .75rem .75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    color: #fff;
    font-size: .8rem;
    line-height: 1.2rem;
}

.log-left {
    flex: 1 1 auto;
    min-width: 200px;
}

.log-type .badge-soft {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1rem;
    padding: .35rem .5rem;
    border-radius: .4rem;
    border: 1px solid transparent;
}

.credit-badge {
    background-color: rgba(25, 135, 84, .15);
    color: #4ade80;
    border-color: rgba(25, 135, 84, .4);
}

.debit-badge {
    background-color: rgba(220, 53, 69, .15);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, .4);
}

.refund-badge {
    background-color: rgba(13, 110, 253, .15);
    color: #8ea2ff;
    border-color: rgba(13, 110, 253, .4);
}

.other-badge {
    background-color: rgba(108, 117, 125, .15);
    color: #adb5bd;
    border-color: rgba(108, 117, 125, .4);
}

.log-note {
    margin-top: .4rem;
}

.log-time {
    font-size: .7rem;
    line-height: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: .25rem;
}

.log-right {
    flex-shrink: 0;
    min-width: 180px;
}

.log-amount {
    font-weight: 600;
    font-size: .8rem;
    color: #8ea2ff;
}

.log-balance {
    margin-top: .25rem;
    font-size: .7rem;
    line-height: 1rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== info panel kecil ===== */
.service-mini-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.service-mini-item {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
    padding: .6rem .75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: .8rem;
    line-height: 1.2rem;
}

.service-mini-left {
    display: flex;
    gap: .6rem;
}

.service-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: .4rem;
    background: linear-gradient(135deg, #5a5afc 0%, #9f7bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 15px 30px rgba(90, 90, 252, .4);
}

.service-mini-name {
    font-size: .8rem;
    font-weight: 600;
}

.service-mini-sub {
    font-size: .7rem;
    line-height: 1rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-xxs {
    font-size: .7rem;
    line-height: 1rem;
    padding: .4rem .5rem;
    border-radius: .4rem;
}

.info-box-transfer {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .7);
    font-size: .8rem;
    line-height: 1.2rem;
}

/* bikin tabel gelap */
.table-darkish {
    background: #121624;
    color: #fff;
}

.table-darkish tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.table-darkish tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-dark-head {
    background: rgba(4, 10, 24, 0.4);
}

/* pill status */
.status-pill {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 193, 7, .12);
    color: #f9d36a;
}

.status-approved {
    background: rgba(25, 135, 84, .15);
    color: #57e0ab;
}

.status-canceled {
    background: rgba(108, 117, 125, .12);
    color: #ced4da;
}

.status-rejected {
    background: rgba(220, 53, 69, .12);
    color: #ff616f;
}

.bale-alert {
    display: flex;
    gap: 1rem;
    background: rgba(14, 22, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 4px solid #4c6fff;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
}

.bale-alert-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.bale-alert-body {
    flex: 1;
}

.bale-alert-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: .25rem;
}

.bale-alert-text {
    font-size: .78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3rem;
}

.bale-alert-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.bale-alert-success {
    border-left-color: #38d996;
}

.bale-alert-danger {
    border-left-color: #ff5f6d;
}

.bale-alert-warning {
    border-left-color: #ffb347;
}

.bale-alert-info {
    border-left-color: #4c6fff;
}

/* metric cards / panel-card / chart-wrapper sudah ada dari sebelumnya */

/* ====== SIDEBAR: animasi & z-index ====== */
.app-sidebar {
    transition: all .2s ease;
    z-index: 1040;
}

/* layout utama: karena pakai d-flex, gak usah margin-left */
.app-main {
    /* JANGAN margin-left di sini */
    min-width: 0;
}

/* ====== MODE COLLAPSE (DESKTOP) ====== */
.app-sidebar.is-collapsed {
    width: 70px;
    flex: 0 0 70px;
    /* kalau parent d-flex, ini bantu */
}

.app-sidebar.is-collapsed .sidebar-logo-text,
.app-sidebar.is-collapsed .sidebar-section-title,
.app-sidebar.is-collapsed .sidebar-footer,
.app-sidebar.is-collapsed .sidebar-link span {
    display: none !important;
}

.app-sidebar.is-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-sidebar.is-collapsed .sidebar-ico {
    margin-right: 0;
}

/* karena kita tidak pakai margin-left lagi, ini juga gak perlu */
/* body.sidebar-collapsed .app-main { margin-left: 70px; } */
/* boleh dihapus aja atau biarin kosong */

/* ====== MOBILE / TABLET KECIL ====== */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -260px;
        /* sembunyi di kiri */
        height: 100vh;
        width: 240px;
    }

    .app-sidebar.is-open {
        left: 0;
        /* muncul dari kiri */
    }

    /* konten jangan geser di HP */
    .app-main {
        margin-left: 0;
    }

    /* backdrop gelap ketika sidebar dibuka */
    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 1030;
    }
}

/* tombol menu di topbar (mobile) */
#sidebarMobileToggle {
    background: rgba(17, 24, 39, .3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: .5rem;
}

#sidebarMobileToggle:hover {
    background: rgba(17, 24, 39, .6);
}

.topbar-search-form .form-control {
    min-width: 210px;
    /* boleh naikin kalau mau lebih panjang */
}

@media (max-width: 767.98px) {
    .topbar-search-form {
        display: none !important;
        /* kecilin layar: search disembunyiin */
    }
}

/* wrapper */
.select2-container {
    width: 100% !important;
}

/* box tertutup */
.select2-container--default .select2-selection--single {
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: .5rem;
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 38px;
    font-size: .8rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, .45);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* dropdownnya */
.select2-container--default .select2-dropdown {
    background-color: #0f172a;
    border: 1px solid rgba(142, 162, 255, .2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
}

/* search di dalam dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #1e253b;
    border: 1px solid rgba(142, 162, 255, .3);
    color: #fff;
}

/* list option */
.select2-container--default .select2-results__option {
    color: #fff;
    font-size: .8rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(142, 162, 255, .25);
    color: #fff;
}

.select2-container--default .select2-selection--single {
    background-color: #2a3150 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: .5rem !important;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 38px !important;
}

/* lebar form tambah/edit layanan */
.panel-form-lg {
    max-width: 1080px;
    /* semula 820/900, kita lebarin */
    margin-inline: auto;
}

/* judul section lebih terang */
.form-section-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, 0.75);
    /* tadinya 0.45 */
    margin-bottom: .4rem;
}

/* label di form layanan */
.panel-card .form-label,
.panel-card label.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* teks bantuannya agak terang sedikit */
.panel-card .form-text,
.panel-card .text-muted-2 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* input dark diperbesar dikit */
.panel-card .input-dark,
.panel-card .form-control.input-dark,
.panel-card .form-control {
    min-height: 44px;
    padding: .55rem .8rem;
    background-color: #2a3150;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: .85rem;
}

/* textarea dark */
.panel-card textarea.form-control,
.panel-card textarea.input-dark {
    background-color: #2a3150;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* checkbox label biar kelihatan */
.panel-card .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: .8rem;
}

/* tombol kembali biar gak terlalu putih */
.panel-card .btn.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .5);
    --bs-btn-hover-bg: rgba(255, 255, 255, .08);
}

/* kalau layar kecil, tetap full */
@media (max-width: 991.98px) {
    .panel-form-lg {
        max-width: 100%;
    }
}

/* bikin input + tombol tambah sejajar */
.header-actions {
    gap: .5rem;
}

/* biar input search nggak terlalu lebar */
.service-search-input {
    min-width: 210px;
    padding-right: 2.2rem;
}

/* tombol kaca pembesar di dalam input */
.search-btn-abs {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .5rem;
    border-radius: .5rem;
}

/* tombol tambah biar nggak turun */
.add-btn {
    white-space: nowrap;
}

/* responsif: di hp jadi ke bawah rapi */
@media (max-width: 576px) {
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .service-search-input {
        width: 100%;
    }
}

.add-btn.btn-accent {
    border-radius: .6rem;
    box-shadow: 0 12px 28px rgba(90, 90, 252, .35);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* wrap tabel user */
.user-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: .75rem;
    overflow: hidden;
}

/* baris tabel user */
.user-table tbody tr {
    background: rgba(6, 8, 13, 0.38);
}

.user-table tbody tr:nth-child(even) {
    background: rgba(6, 8, 13, 0.25);
}

.user-table tbody tr:hover {
    background: rgba(142, 162, 255, 0.05);
}

/* row nonaktif */
.user-table tbody tr.row-disabled {
    opacity: .65;
}

/* badge role */
.role-badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: .75rem;
    font-size: .68rem;
    font-weight: 500;
}

.role-superadmin {
    background: rgba(255, 193, 7, .2);
    color: #ffc107;
}

.role-admin {
    background: rgba(97, 157, 255, .2);
    color: #86b6ff;
}

.role-user {
    background: rgba(108, 117, 125, .2);
    color: #ced4da;
}

/* search di kanan */
.toolbar-user {
    gap: .65rem;
}

.search-user .search-wrap {
    position: relative;
    min-width: 240px;
}

.user-search-input {
    padding-right: 2.4rem;
    min-height: 38px;
}

.search-user .search-btn {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .55rem;
}

/* responsive */
@media (max-width: 768px) {
    .user-table {
        min-width: 820px;
    }

    .user-table-wrap {
        overflow-x: auto;
    }

    .toolbar-user {
        width: 100%;
        justify-content: flex-start;
    }

    .search-user {
        flex: 1 0 100%;
    }
}

/* search di halaman user */
.user-search-form {
    /* biar formnya sekecil kontennya */
}

.user-search-wrap {
    position: relative;
    min-width: 240px;
}

.user-search-input {
    min-height: 38px;
    padding-right: 2.5rem;
    /* ruang buat tombol */
}

.user-search-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .6rem;
    line-height: 1;
}

/* responsif */
@media (max-width: 576px) {
    .user-search-form {
        width: 100%;
    }

    .user-search-wrap {
        width: 100%;
    }

    .user-search-input {
        width: 100%;
    }
}

/* wrap tabel user */
.user-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: .75rem;
    overflow: hidden;
}

/* baris tabel user */
.user-table tbody tr {
    background: rgba(6, 8, 13, 0.38);
}

.user-table tbody tr:nth-child(even) {
    background: rgba(6, 8, 13, 0.25);
}

.user-table tbody tr:hover {
    background: rgba(142, 162, 255, 0.05);
}

/* row nonaktif */
.user-table tbody tr.row-disabled {
    opacity: .65;
}

/* badge role */
.role-badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: .75rem;
    font-size: .68rem;
    font-weight: 500;
}

.role-superadmin {
    background: rgba(255, 193, 7, .2);
    color: #ffc107;
}

.role-admin {
    background: rgba(97, 157, 255, .2);
    color: #86b6ff;
}

.role-user {
    background: rgba(108, 117, 125, .2);
    color: #ced4da;
}

/* search di kanan */
.toolbar-user {
    gap: .65rem;
}

.search-user .search-wrap {
    position: relative;
    min-width: 240px;
}

.user-search-input {
    padding-right: 2.4rem;
    min-height: 38px;
}

.search-user .search-btn {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .55rem;
}

/* responsive */
@media (max-width: 768px) {
    .user-table {
        min-width: 820px;
    }

    .user-table-wrap {
        overflow-x: auto;
    }

    .toolbar-user {
        width: 100%;
        justify-content: flex-start;
    }

    .search-user {
        flex: 1 0 100%;
    }
}

/* search di halaman user */
.user-search-form {
    /* biar formnya sekecil kontennya */
}

.user-search-wrap {
    position: relative;
    min-width: 240px;
}

.user-search-input {
    min-height: 38px;
    padding-right: 2.5rem;
    /* ruang buat tombol */
}

.user-search-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .6rem;
    line-height: 1;
}

/* responsif */
@media (max-width: 576px) {
    .user-search-form {
        width: 100%;
    }

    .user-search-wrap {
        width: 100%;
    }

    .user-search-input {
        width: 100%;
    }
}

.panel-form-lg {
    max-width: 1080px;
    margin-inline: auto;
}

.form-section-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
}

.panel-card .form-control,
.panel-card .input-dark {
    min-height: 44px;
    background: #2a3150;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: .6rem;
}

.panel-card .form-control:focus {
    background: #2a3150;
    color: #fff;
    border-color: rgba(142, 162, 255, .7);
    box-shadow: none;
}

.panel-card .form-check-label {
    color: rgba(255, 255, 255, .9);
}

/* wrap tabel topup */
.topup-table-wrap {
    border: 1px solid rgba(255, 255, 255, .02);
    border-radius: .75rem;
    overflow: hidden;
}

/* baris pending agak beda */
.topup-table tbody tr.row-pending {
    background: rgba(255, 193, 7, .02);
    border-left: 3px solid rgba(255, 193, 7, .5);
}

/* search di kanan */
.topup-search-form {}

.topup-search-wrap {
    position: relative;
    min-width: 240px;
}

.topup-search-input {
    padding-right: 2.5rem;
    min-height: 38px;
}

.topup-search-btn {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .6rem;
}

/* responsif */
@media (max-width: 768px) {
    .topup-table {
        min-width: 900px;
    }

    .topup-table-wrap {
        overflow-x: auto;
    }

    .topup-search-form {
        width: 100%;
    }

    .topup-search-wrap {
        width: 100%;
    }

    .topup-search-input {
        width: 100%;
    }
}

/* search di halaman topup */
.topup-search-form {}

.topup-search-wrap {
    position: relative;
    min-width: 240px;
}

.topup-search-input {
    min-height: 38px;
    padding-right: 2.5rem;
    /* ruang buat tombol di kanan */
}

.topup-search-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .6rem;
    line-height: 1;
}

/* responsif */
@media (max-width: 576px) {
    .topup-search-form {
        width: 100%;
    }

    .topup-search-wrap {
        width: 100%;
    }

    .topup-search-input {
        width: 100%;
    }
}

/* toolbar kanan daftar pesanan */
.order-toolbar {
    gap: .6rem;
}

/* search */
.order-search-wrap {
    position: relative;
    min-width: 240px;
}

.order-search-input {
    min-height: 38px;
    padding-right: 2.5rem;
}

.order-search-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    border-radius: .6rem;
    line-height: 1;
}

/* select status */
.order-status-select {
    min-height: 38px;
    min-width: 145px;
}

/* table style */
.order-table-wrap {
    border: 1px solid rgba(255, 255, 255, .02);
    border-radius: .75rem;
    overflow-x: auto;
}

.order-table tbody tr.row-pending {
    background: rgba(255, 193, 7, .03);
    border-left: 3px solid rgba(255, 193, 7, .45);
}

.order-table tbody tr.row-processing {
    background: rgba(13, 202, 240, .02);
    border-left: 3px solid rgba(13, 202, 240, .4);
}

.order-table tbody tr.row-failed {
    background: rgba(220, 53, 69, .02);
    border-left: 3px solid rgba(220, 53, 69, .4);
}

/* responsive */
@media (max-width: 768px) {
    .order-search-form {
        width: 100%;
    }

    .order-search-wrap {
        width: 100%;
    }

    .order-search-input {
        width: 100%;
    }

    .order-table {
        min-width: 980px;
    }
}

.topbar-pill {
  border-radius: 999px;
  padding: .25rem .8rem .35rem .8rem;
  font-size: .7rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  backdrop-filter: blur(4px);
}

/* ==== FIX RESPONSIVE – PASTE DI PALING BAWAH CSS-MU ==== */

/* 1) Reset dasar agar ukuran konsisten & media auto-scale */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }
html, body { width: 100%; overflow-x: hidden; }

/* 2) Pastikan layout utama benar di flex */
.app-layout { display: flex; align-items: stretch; }
.app-sidebar { flex: 0 0 240px; }
.app-main { flex: 1 1 auto; min-width: 0; } /* penting di flex layout */

/* 3) Sidebar mobile: lebar adaptif + lock body saat terbuka */
@media (max-width: 991.98px) {
  body.sidebar-open { overflow: hidden; } /* cegah body geser */
  .app-sidebar {
    left: -280px;
    width: 84vw;              /* tidak fixed 240px */
    max-width: 320px;         /* clamp aman untuk berbagai HP */
  }
  .app-sidebar.is-open { left: 0; }
}

/* 4) Topbar/search: clamp lebar & izinkan wrap */
.topbar-search-input { width: clamp(140px, 35vw, 160px); min-width: 0; }
.topbar-search-form .form-control { min-width: 0; width: clamp(140px, 40vw, 210px); }

/* 5) Arahkan toolbar supaya bisa turun ke baris berikutnya */
.header-actions,
.toolbar-user,
.order-toolbar { flex-wrap: wrap; }

/* 6) Semua search input/wrapper jangan paksa min-width di HP */
.service-search-input,
.user-search-input,
.topup-search-input,
.order-search-input { width: 100%; min-width: 0; }

.search-user .search-wrap,
.user-search-wrap,
.topup-search-wrap,
.order-search-wrap { min-width: 0; width: 100%; }

/* 7) Kartu/list yang tadinya maksa width */
@media (max-width: 576px) {
  .recent-order-main { max-width: 100%; }
  .log-right { min-width: 0; width: 100%; margin-top: .35rem; }
  .order-status-select { min-width: 0; width: 100%; }
}

/* 8) Tabel: jadikan scrollable di layar kecil agar tidak meledak */
@media (max-width: 768px) {
  .table-darkish,
  .user-table,
  .topup-table,
  .order-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 9) Grid/qty: full width di ponsel & rapikan jarak */
@media (max-width: 576px) {
  .nominal-list { grid-template-columns: 1fr; }
  .qty-grid { gap: .5rem; }
  .qty-btn:not(:last-child) { margin-right: 0; }
}

/* 10) Select2: pastikan tidak melebar keluar container */
.select2-container { width: 100% !important; max-width: 100% !important; }

/* OPTIONAL (kalau masih ada ghost-scroll horizontal):
body { overflow-x: clip; }  // alternatif lebih ketat
*/


