.light-style .menu .app-brand.custom {
    height: 64px;
}

.dark-style .menu .app-brand.custom {
    height: 64px;
}


.app-brand-logo.custom {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    width: 34px;
    height: 24px;
}

.app-brand-logo.custom img {
    width: 35px;
    height: 24px;
}

.app-brand-text.custom {
    font-size: 1.375rem;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 72px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

.global-loader {
    position: fixed;
    z-index: 50000;
    background: #e6e6e8;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.form-loader {
    position: fixed;
    z-index: 50000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* .loader-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.loader-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.layout-toggle {
    position: fixed;
    right: 0;
    bottom: 2px;
    margin-left: 1em;
    margin-bottom: 0.5em;
    padding: 4px 5px;
    padding-right: 10px;
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid #ddd;
    opacity: 0.4;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.layout-toggle:hover {
    opacity: 1;
}

.notifyjs-wrapper,
.notifyjs-corner {
    z-index: 9999999999999999 !important
}

.rendered__match {
    background-color: yellow;
    color: black;
    /* font-weight: bold;
    padding: 0 2px; */
    border-radius: 2px;
}

input:disabled,
select:disabled,
button:disabled,
a.disabled-link,
textarea:disabled {
    cursor: not-allowed !important;

}


.popover {
    max-width: 100% !important;
}

.tabulator {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.tabulator .tabulator-alert {
    background: none !important;
}

.tabulator-cell {
    cursor: default !important;
}

@media (max-width: 1334px) {
    .hide-text-custom {
        display: none !important;
    }
}

@media (min-width: 1335px) {
    .hide-text-custom {
        display: inline-block !important;
    }
}

.content-ajax-result {
    background-color: #012456;
    /* PowerShell dark blue */
    color: #eeeeee;
    /* Light text */
    font-family: Consolas, 'Courier New', monospace;
    padding: 1rem;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    overflow-y: auto;
    max-height: 400px;
    white-space: pre-wrap;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.content-ajax-result::after {
    content: "_";
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Jika checkbox benar-benar disabled */
input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Jika checkbox tidak disabled, tapi diberi class readonly */
input[type="checkbox"].readonly {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Checkbox aktif biasa (bisa diklik) */
input[type="checkbox"]:not(:disabled):not(.readonly) {
    cursor: pointer !important;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    /* hitam semi transparan */
    padding: 10px;
    border-radius: 10px;
    color: #fff;
}

/* Navigasi panah */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    /* beri latar agar terlihat */
    background-size: 100% 100%;
    border-radius: 50%;
    padding: 20px;
}

/* Tambahan: perbesar panah */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

.tabulator-card {
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 8px
}

.watermark-refund-status {
    position: absolute;
    top: 35px;
    left: 25px;
    font-size: 1rem;
    color: rgba(255, 0, 0, .6);
    background: rgba(255, 255, 255, .7);
    padding: 2px 6px;
    border-radius: 4px;
    transform: rotate(329deg);
    pointer-events: none;
    font-family: fantasy;
    z-index: 1
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    text-transform: capitalize;
    transition: transform .2s, box-shadow .2s
}

.platform-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15)
}

.platform-shopee {
    background-color: #ee4d2d
}

.platform-tokopedia {
    background-color: #03ac0e
}

.tabulator-row.tabulator-selected {
    background-color: #e6f4ea !important;
    color: #000 !important
}

.tabulator-row.tabulator-selected .text-muted {
    color: #666 !important
}

.tabulator-row:hover {
    background-color: #d4e9ff !important
}

.tabulator-row.tabulator-selected:hover {
    background-color: #c8e6cb !important
}

.tabulator-row:not(.tabulator-selected):hover {
    background-color: #f0f8ff !important
}

.offcanvas-custom {
    width: 100% !important;
    max-width: 100%
}

@media (min-width:1100px) {
    .offcanvas-custom {
        width: 70vw !important;
        max-width: 1000px !important
    }
}

.loader-text {
    font-size: 16px;
    color: #333;
}

#adsenseReportChart,
#campaignChart,
#earningDailyChart,
#AdCostChart,
#countryChart,
#groupChart {
    width: 100% !important;
    height: 300px !important;
}

.card-soft-blue {
    background-color: #1976d2;
    color: #fff;
}

.card-soft-blue h6,
.card-soft-blue small,
.card-soft-blue .text-muted,
.card-soft-blue .highlight,
.card-soft-blue div,
.card-soft-blue span {
    color: #ffffff !important;
}

.card-soft-blue .highlight {
    font-weight: bold;
    font-size: 1.25rem;
}

.info-box {
    border-radius: 12px;
    padding: 1.5rem;
}

/* Rata kiri untuk mobile */
@media (max-width: 768px) {
    .info-box {
        text-align: left !important;
    }

    .info-box .row>div {
        text-align: left !important;
    }

    .text-center {
        text-align: left !important;
    }
}

.custom-effect:hover,
.custom-effect:focus,
.custom-effect:active {
    background-color: var(--bs-dark) !important;
    color: #fff !important;
}

.table-wrapper {
    max-height: 300px;
    overflow-y: auto;
}

@media screen and (max-width: 480px),
screen and (max-width: 990px) and (orientation: portrait) {
    .daterangepicker {
        width: 95% !important;
        left: 2.5% !important;
        /* agar rata tengah */
        right: auto !important;
    }

    .daterangepicker .drp-calendar {
        display: none;
        max-width: 100%;
    }

    .drp-calendar.left {
        display: block !important;
    }

    .drp-calendar.right {
        display: none !important;
    }

    .daterangepicker .drp-buttons {
        text-align: center;
    }
}

body {
    overflow-x: hidden;
}


*[disabled],
*[readonly] {
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.offcanvas-custom {
    width: 100% !important;
    max-width: 100%
}

@media (min-width:1100px) {
    .offcanvas-custom {
        width: 30vw !important;
        max-width: 1000px !important
    }
}

.bs-rangepicker-range:hover {
    background-color: #f0f0f0;
}

.bs-rangepicker-range {
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
}

.input-group>.select2-container--default {
    width: auto !important;
    flex: 1 1 auto !important;
}

.input-group>.select2-container--default .select2-selection--single {
    height: 100% !important;
    line-height: inherit !important;
}

.btn-check:checked+.btn {
    background-color: #5b5fef !important;
    color: white !important;
    border-color: #5b5fef !important;
    font-weight: bold !important;
}

#select-group+.select2-container--default .select2-selection--single {
    height: 30px !important;
    padding: 2px 8px !important;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid #d9dee3;
}

#select-group+.select2-container--default .select2-selection__rendered {
    line-height: 26px !important;
    padding-left: 0 !important;
}

#select-group+.select2-container--default .select2-selection__arrow {
    height: 28px !important;
    top: 1px !important;
}

#select-group+.select2-container {
    min-width: 220px !important;
    /* ubah sesuai kebutuhan */
}

#select-group+.select2-container .select2-dropdown {
    min-width: 220px !important;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
    vertical-align: middle;
}

/* Warna-warna status */
.status-green {
    background-color: #00a86b;
    /* hijau */
}

.status-gray {
    background-color: #c0c0c0;
    /* abu-abu */
}

.status-yellow {
    background-color: #f1c40f;
    /* kuning */
}

.status-red {
    background-color: #e74c3c;
    /* merah */
}

.status-blue {
    background-color: #3498db;
    /* biru */
}

/* wrapper khusus select2-sm */
select.select2-sm+.select2 {
    min-width: 200px;
}

/* kotak select */
select.select2-sm+.select2 .select2-selection--single {
    height: 30px;
    line-height: 30px;
    font-size: .875rem;
    padding: 0 .5rem;
    border-radius: .2rem;
}

/* teks placeholder & selected */
select.select2-sm+.select2 .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 0.5rem;
}

/* pastikan tinggi arrow sama dengan box */
select.select2-sm+.select2 .select2-selection__arrow {
    display: flex;
    /* biar bisa pakai flexbox */
    align-items: center;
    /* center vertical */
    justify-content: center;
    /* center horizontal */
    height: 30px !important;
    /* samakan dengan box */
}

/* kalau arrow masih pakai <b> jadul, reset posisinya */
select.select2-sm+.select2 .select2-selection__arrow b {
    position: static !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
}

.select-group+.select2-container {
    min-width: 220px !important;
    max-width: 500px !important;
}

.select-group+.select2-container .select2-dropdown {
    min-width: 220px !important;
    max-width: 500px !important;
}