#page-loading-bar {
    position: fixed;
    left: 0;
    top: 0;
    height: 4px;
    width: 0%;
    background: #0d6efd;
    /* biru bootstrap */
    z-index: 9999999;
    display: none;
    transition: width 0.3s ease;
}

#main-content {
    min-height: calc(100vh - 90px - 40px);
}

#auth #auth-left {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#auth #auth-left .auth-subtitle {
    font-size: 1.2rem;
}

.sidebar-wrapper .menu {
    padding: 0 1.8rem;
}

.sidebar-item.has-sub>.sidebar-link:after {
    right: 6px;
}

.dropdown .avatar {
    background: #25396f;
    color: #FFFFFF;
    width: 39px;
    height: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-black {
    display: none;
}

.logo-white {
    display: none;
}



html[data-bs-theme=light] .logo-white {
    display: none;
}

html[data-bs-theme=light] .logo-black {
    display: block;
}

html[data-bs-theme=dark] .sidebar-wrapper .menu {
    padding: 0 1.8rem;
}

html[data-bs-theme=dark] .sidebar-wrapper .menu .sidebar-link::after {
    right: 6px;
}

html[data-bs-theme=dark] .logo-white {
    display: block;
}

html[data-bs-theme=dark] .logo-black {
    display: none;
}

html[data-bs-theme=dark] tbody tr td {
    color: #1e1e2d !important;
}


.rounded-table table {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.rounded-table .table {
    border-collapse: separate !important;
    border-spacing: 0;
}

.rounded-table th,
.rounded-table td {
    border: 0 !important;
}

.rounded-table thead th {
    background: #E3ECFA;
    color: #4C4C5C;
}

.rounded-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.rounded-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.custom-anim .modal-dialog {
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.custom-anim.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.custom-anim.fade .modal-dialog {
    transition: all 0.4s ease-in-out;
}

/* Choices */

.choices {
    width: 100%;
    margin-bottom: 0;
}

.choices__inner {
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.choices[data-type*="select-one"] .choices__inner {
    padding-right: 2.25rem;
}

.choices[data-type*="select-one"]::after {
    content: '';
    position: absolute;
    right: .75rem;
    top: 50%;
    width: .5rem;
    height: .5rem;
    border-style: solid;
    border-width: 0 .15em .15em 0;
    border-color: #6c757d;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

/* .choices[data-type*="select-one"].is-open::after {
    transform: translateY(-50%) rotate(-135deg);
} */

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.choices__list--dropdown {
    border-radius: .375rem;
    border: 1px solid #ced4da;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.choices__list--dropdown .choices__item--selectable {
    padding: .375rem .75rem;
    font-size: 1rem;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #0d6efd;
    color: #fff;
}

.choices__list--multiple .choices__item {
    background-color: #0d6efd;
    border: none;
    border-radius: .25rem;
    padding: .25rem .5rem;
    color: #fff;
    font-size: .875rem;

    margin-bottom: 0px;
}

.choices__list--multiple .choices__item .choices__button {
    border-left: 1px solid rgba(255, 255, 255, .5);
}

.choices.is-disabled .choices__inner {
    background-color: #e9ecef;
    opacity: 1;
}

.choices__placeholder {
    color: #6c757d;
}

.choices[data-type*="select-one"] .choices__inner .choices__item--selectable {
    background-color: transparent !important;
    color: #212529 !important;
    padding: 0 !important;
    font-weight: 400;
}

.choices__item--choice.is-selected {
    background-color: transparent !important;
}

.choices__list--dropdown .choices__item--selectable.is-selected {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

.choices__list--single .choices__item {
    padding: 0 !important;
    background: none !important;
}

.choices__list--multiple .choices__item {
    background-color: #0d6efd !important;
    border-radius: .25rem;
    padding: .25rem .5rem;
    color: #fff;
    font-size: .875rem;
}

.choices__list--single {
    padding: 0 !important;
}

.choices.is-disabled .choices__list--single .choices__item--selectable {
    background-color: #e9ecef !important;
}

/* .storage-toggle {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
}

.storage-toggle.collapsed::before {
    content: "▶";
}

.storage-toggle.expanded::before {
    content: "▼";
} */

.storage-toggle {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.storage-toggle i {
    transition: transform 0.2s ease;
}

.storage-children {
    display: none;
}

.storage-children.show {
    display: block;
}

.storage-item.active {
    background-color: #d1e7dd;
    font-weight: 600;
}

.folder-color {
    color: #FFD700;
}

/* item components */

.component-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.component-badge {
    font-size: 12px;
    background-color: #eef2ff;
    color: #374151;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.component-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active .text-muted {
    color: #FFFFFF !important;
}

/* tree table */

.tree-table td {
    vertical-align: middle;
}

.level-wrapper {
    width: 100%;
    padding-left: calc(var(--indent) * 32px);
}

.btn-xs {
    padding: 2px 6px;
    font-size: 12px;
}

/* ===== BLINK LOADING ===== */
@keyframes rowBlink {
    0% {
        background-color: #f8f9fa;
    }

    50% {
        background-color: #e9ecef;
    }

    100% {
        background-color: #f8f9fa;
    }
}

tr.loading {
    animation: rowBlink 1s infinite;
    opacity: 0.85;
}

.loading-text {
    font-size: 12px;
    color: #6c757d;
    margin-left: 6px;
}


/* ===== TREE ACCORDION ===== */
.tree-accordion .accordion-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 6px;
}

.tree-accordion .accordion-header {
    margin: 0;
}

.tree-accordion .accordion-button {
    background: #f8f9fa;
    color: #212529;
    font-size: 14px;
    padding: 8px 12px;
    box-shadow: none;
}

.tree-accordion .accordion-button:not(.collapsed) {
    background: #495DB8;
    color: #fff !important;
}

.tree-accordion .accordion-button::after {
    transform: scale(0.85);
}

.tree-accordion .accordion-collapse {
    border-top: 1px solid #dee2e6;
}

.tree-accordion .accordion-body {
    background: #ffffff;
    padding: 10px 12px;
}

/* ===== CHILD INDENT ===== */
.tree-accordion .accordion {
    /* margin-left: 16px; */
    margin-bottom: 20px;
}

/* ===== ACTION AREA ===== */
.tree-node-actions {
    margin-top: 8px;
}

.tree-node-actions button {
    font-size: 12px;
    padding: 3px 10px;
}

/* ===== ROOT ADD BUTTON ===== */
.tree-root-action {
    margin-top: 10px;
}

/* OPTIONAL: hover effect */
.tree-accordion .accordion-button:hover {
    /* background: #eef4ff; */
    background: #495DB8;
    color: #fff !important;
}

.parts-container {
    background: #F2F2F2;
    padding: 20px;
    border: 1px solid #CBCBCB;
    border-radius: 5px;
}

.tree-accordion .accordion-collapse {
    border: 1px solid #495DB8 !important;
}

@media (max-width: 768px) {

    .hover-row tbody tr:hover td {
        background: #f2f2f2 !important;
        cursor: pointer;
        transition: background 0.2s;
    }

    .no-more-table table,
    .no-more-table thead,
    .no-more-table tbody,
    .no-more-table th,
    .no-more-table td,
    .no-more-table tr {
        display: block;
    }

    .no-more-table thead tr {
        display: none;
    }

    .no-more-table tr {
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e4e4e4;
        box-shadow: 0 .1rem .35rem rgba(0, 0, 0, .12);
    }

    .no-more-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        padding-top: .75rem;
        padding-bottom: .75rem;
        text-align: right;
    }

    .no-more-table td:last-child {
        border-bottom: none;
    }

    .no-more-table td:before {
        position: absolute;
        left: 1rem;
        top: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
        content: attr(data-title);
        color: #6c757d;
    }

    .no-more-table tr:hover td {
        background: none !important;
    }

    .rounded-table tbody tr:nth-child(even) td {
        background: unset;
    }

}