/* width */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    border-radius: 0.5rem;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: lightgrey;
    border-radius: 0.5rem;
    cursor: auto;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: grey;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Roboto,
        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol";
    font-family: Ubuntu, Roboto, sans-serif, tahoma;
    font-size: 13px;
}

body {
    background: var(--bg-body);
    color: var(--color-body);
}

[data-deny] {
    display: none;
}

a[onclick],
a[data-toggle],
a[href],
.btn,
.form-control,
label {
    font-size: inherit;
    color: inherit;
}
.text-info {
    color: var(--text-info) !important;
}
.text-primary {
    color: var(--text-primary) !important;
}
.text-warning {
    color: var(--text-warning) !important;
}
.text-danger {
    color: var(--text-danger) !important;
}
.text-success {
    color: var(--text-success) !important;
}
.text-dark {
    color: var(--text-dark) !important;
}
a[href] {
    color: #03aed2;
}

.wrapper {
    padding: 0.25rem;

    > div + div {
        margin-top: 0.25rem;
    }
}

.header {
    border-radius: 0.5rem;
    padding: 0;
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    &.header-sticky {
        position: sticky;
        top: 0;
        z-index: 3;
    }

    &.header-warning {
        background: var(--bg-warning);
    }

    &.header-primary {
        background: var(--bg-primary);
    }

    &.header-danger {
        background: var(--bg-danger);
    }

    &.header-info {
        background: var(--bg-info);
    }

    &.header-success {
        background: var(--bg-success);
    }

    > .header-title {
        padding: 0.5rem 2rem;
        font-weight: 700;
        background: white;
        color: darkslategrey;
        position: relative;
        font-weight: 500;

        &::before {
            content: "";
            position: absolute;
            top: 0px;
            left: -40px;
            width: 0px;
            height: 0px;
            border-style: solid;
            border-width: 16px 20px 16px 20px;
            border-color: transparent white transparent transparent;
        }

        &::after {
            content: "";
            position: absolute;
            top: 0px;
            right: -40px;
            width: 0px;
            height: 0px;
            border-style: solid;
            border-width: 16px 20px 16px 20px;
            border-color: transparent transparent transparent white;
        }
    }
}

.panel {
    padding: 0.5rem;
    background: var(--bg-panel);
    border-radius: 0.5rem;
    border: 1px solid #c0ccdb;
}

/* Button */
.btn {
    border-radius: 0.5rem;
    background: var(--bg-btn);
    border-color: #c0ccdb;
    color: var(--color-btn);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: 2px 2px 2px #0002;
    box-shadow: none;
    font-weight: 500;

    &.btn-lg {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }

    &:active {
        box-shadow: 1px 1px 2px #0003;
        transition: all 0.2s linear;
        transform: translate(0, 1px);
    }

    &:focus {
        box-shadow: none;
    }

    &:not(:disabled)::before {
        border-radius: 0.5rem;
        content: "";
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        transform: scale(0);
        background: radial-gradient(circle, transparent, #0003);
        z-index: 1;
    }

    &:not(:disabled):hover::before {
        transition: all 2s linear;
        transform: scale(15);
        display: none;
    }

    &:not(:disabled):hover,
    &:not(:disabled):focus {
        border-color: var(--bg-btn-selected);
        color: var(--bg-btn-selected);
        background: white;
        box-shadow: 1px 2px 3px #0002;

        > .btn-icon {
            color: var(--bg-btn-selected);
        }

        > svg > path {
            fill: var(--bg-btn-selected);
        }
    }

    &.btn-primary {
        background: var(--bg-primary);
        border-color: var(--bg-primary);
        color: var(--color-primary);

        &:active,
        &.active {
            background: var(--bg-primary) !important;
            color: var(--color-primary) !important;
            box-shadow: 2px 3px 5px #0002 !important;
        }
    }

    &.btn-success {
        background: var(--bg-success);
        border-color: var(--bg-success);
        color: var(--color-success);

        &:active,
        &.active {
            background: var(--bg-success) !important;
            color: var(--color-success) !important;
            border-color: var(--bg-success) !important;
            box-shadow: 2px 3px 5px #0002 !important;
        }
    }

    &.btn-info {
        background: var(--bg-info);
        border-color: var(--bg-info);
        color: var(--color-info);

        &:active,
        &.active {
            background: var(--bg-info) !important;
            color: var(--color-info) !important;
            box-shadow: 2px 3px 5px #0002 !important;
        }
    }

    &.btn-warning {
        background: var(--bg-warning);
        border-color: var(--bg-warning);
        color: var(--color-warning);

        &:active,
        &.active {
            background: var(--bg-warning) !important;
            color: var(--color-warning) !important;
            box-shadow: 2px 3px 5px !important;
        }
    }

    &.btn-danger {
        background: var(--bg-danger);
        border-color: var(--bg-danger);
        color: var(--color-danger);

        &:active,
        &.active {
            background: var(--bg-danger) !important;
            color: var(--color-danger) !important;
            box-shadow: 2px 3px 5px !important;
        }
    }

    > * + * {
        margin-left: 0.5rem;
    }

    &.btn-create .btn-icon,
    &.btn-login .btn-icon,
    &.btn-plus .btn-icon {
        color: var(--text-primary);
    }

    &.btn-edit .btn-icon,
    &.btn-view .btn-icon,
    &.btn-folder .btn-icon {
        color: var(--text-warning);
    }

    &.btn-delete .btn-icon,
    &.btn-cancel .btn-icon,
    &.btn-ban .btn-icon,
    &.btn-return .btn-icon,
    &.btn-minus .btn-icon {
        color: var(--text-danger);
    }

    &.btn-shield .btn-icon {
        color: var(--text-warning);
    }

    &.btn-search .btn-icon {
        color: var(--text-primary);
    }

    &.btn-check .btn-icon {
        color: var(--text-success);
    }

    &.btn-upload .btn-icon {
        color: var(--text-primary);
    }

    &.btn-logout .btn-icon {
        color: var(--text-danger);
    }

    &.btn-chart .btn-icon,
    &.btn-image .btn-icon,
    &.btn-print .btn-icon,
    &.btn-ticket .btn-icon,
    &.btn-sync .btn-icon {
        color: var(--text-info);
    }

    &.btn-times .btn-icon {
        color: var(--text-danger);
    }

    &.btn-upload .btn-icon,
    &.btn-update .btn-icon,
    &.btn-save .btn-icon,
    &.btn-category .btn-icon,
    &.btn-filter .btn-icon,
    &.btn-reload .btn-icon,
    &.btn-push .btn-icon {
        color: var(--text-primary);
    }

    &.btn-primary .btn-icon,
    &.btn-warning .btn-icon,
    &.btn-info .btn-icon,
    &.btn-danger .btn-icon,
    &.btn-success .btn-icon {
        color: white;
    }
}

/* Form */
select[readonly] {
    pointer-events: none;
}

.form-control,
select.form-control.custom-select {
    background-color: white;
    border-color: #c0ccdb;
    padding: 6px 12px;
    font-size: 12px;
    height: auto !important;

    &:focus {
        box-shadow: none;
        background-color: lightyellow;
        border-color: steelblue;
        box-shadow: 0 0 5px inset #0002;
    }
}
select.form-control.custom-select {
    padding-right: 24px;
    background-image: url(/media/svg/arrow-down.svg);
    background-size: 16px;
    background-position: right 6px top 8px;
    background-repeat: no-repeat;
}

.form-control {
    &[data-type="date"] {
        width: 120px;
        background-image: url(../icon/date.png);
        background-position: top 8px left 12px;
        background-size: 14px;
        padding-left: 40px;
        background-repeat: no-repeat;
    }

    &::placeholder {
        text-transform: none !important;
    }

    &[readonly],
    &.custom-select[readonlly],
    &:disabled {
        background-color: #f0f0f0 !important;
    }

    &[data-type="number"] {
        width: 120px;
    }

    &:focus::placeholder {
        opacity: 0.5;
    }
}

.form-array-container {
    border-radius: 0.25rem;
    border: 1px solid #c0ccdb;
    padding: 0.5rem;
    min-height: 150px;
    background: white;

    > .form-array-list {
        overflow: hidden;
        margin: 0 -0.25rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        > .form-array-item {
            display: flex;
            align-items: center;
            border-radius: 0.5rem;
            background: #f7f7f7;
            margin: 0.25rem;
            padding: 0.5rem;
            font-size: 11px;

            > .array-item-close {
                transform: scale(1.5);
                cursor: pointer;
                opacity: 0.8;
            }

            > * + * {
                margin-left: 0.5rem;
            }
        }
    }
}

/* Paging */

.paging {
    > ul.pagination {
        list-style: none;
        list-style-type: none;
        padding: 0px;
        margin: 0px;
        display: flex;
        align-items: center;

        > li.page-item {
            list-style: none;
            list-style-type: none;
            padding: 0px;
            margin: 0px;
            border: 0px;
            border-radius: 0.5rem;
            margin: 0 0.25rem;

            > .page-link {
                border: 0px;
                border-radius: 0.5rem;
                background: var(--bg-page-link);
                color: var(--color-page-link);
            }

            > .btn {
                min-width: auto;
            }

            > .page-link:hover {
                filter: brightness(0.95);
            }
        }
    }
}

table {
    > thead,
    > tbody,
    > tfoot {
        > tr {
            > th,
            > td {
                vertical-align: top;
            }
        }
    }
}

/* Table */
.table {
    > thead,
    > tbody,
    > tfoot {
        > tr {
            > th,
            > td {
                border: 0px;
                padding: 0.5rem;
                white-space: nowrap;
                font-size: 12px;
                vertical-align: top;
            }
        }
    }
    > thead {
        background: var(--bg-table-head);
        border: 0px;
        color: var(--color-table-head);
        z-index: 1;

        > tr {
            border: 0px;
            color: inherit;

            > th {
                font-weight: 500;

                .data-sort {
                    cursor: pointer;
                    margin-left: 0.25rem;

                    .data-sort-none,
                    .data-sort-up,
                    .data-sort-down {
                        position: relative;
                    }
                }

                &[data-order="none"] {
                    .data-sort-none {
                        display: initial;
                    }
                    .data-sort-up,
                    .data-sort-down {
                        display: none;
                    }
                }

                &[data-order="asc"] {
                    .data-sort-down {
                        display: initial;
                        top: -3px;
                    }

                    .data-sort-none,
                    .data-sort-up {
                        display: none;
                    }
                }

                &[data-order="desc"] {
                    .data-sort-up {
                        display: initial;
                        top: 3px;
                    }
                    .data-sort-none,
                    .data-sort-down {
                        display: none;
                    }
                }
            }

            > th,
            td {
                border: 0px;
                color: inherit;
                white-space: nowrap;
                position: relative;
            }
        }
    }

    > thead:first-of-type {
        overflow: hidden;
        border-radius: 0.5rem 0.5rem 0 0;

        > tr:first-child {
            border-radius: 0.5rem 0.5rem 0 0;
            > th:first-child {
                border-top-left-radius: 0.5rem;
            }

            > th:last-child {
                border-top-right-radius: 0.5rem;
            }
        }
    }

    > tbody {
        tr {
            .checker {
                display: none;
                position: absolute;
                top: 10px;
                left: 10px;
                transform: scale(2);
                color: var(--text-success);
                background: var(--bg-white);
                border-radius: 50%;
                box-shadow: 2px 3px 5px #0002;
            }

            &.selected td {
                position: relative;

                .checker {
                    display: block;
                }
            }

            td {
                .badge {
                    display: block;
                    padding-left: 10px;
                    padding-right: 10px;
                    border-radius: 4rem;
                }
            }
        }
        > tr + tr {
            border-top: 1px solid #c0ccdb;
        }
        > tr:nth-child(odd) {
            background: var(--bg-table-row-odd);
            border-radius: 0.35rem;
        }
        > tr:nth-child(even) {
            background: var(--bg-table-row-even);
        }
    }

    > tfoot {
        background: var(--bg-table-foot);

        > tr {
            > th {
                font-weight: 500;
            }

            > th,
            td {
                white-space: nowrap;
                position: relative;
            }
        }
    }

    > tfoot:last-of-type {
        overflow: hidden;
        border-radius: 0 0 0.5rem 0.5rem;

        > tr:last-child {
            border-radius: 0 0 0.5rem 0.5rem;

            > th:first-child {
                border-bottom-left-radius: 0.5rem;
            }

            > th:last-child {
                border-bottom-right-radius: 0.5rem;
            }
        }
    }

    &.table-sticky {
        > thead {
            position: sticky;
            top: 0;
        }

        > tfoot {
            position: sticky;
            bottom: 0;
        }

        &.sticky-start {
            > tbody > tr > td:first-child,
            > tbody > tr > th:first-child {
                position: sticky;
                left: 0;
                z-index: 1;
            }
        }
        &.sticky-end {
            > tbody > tr > td:last-child,
            > tbody > tr > th:last-child {
                position: sticky;
                right: 0;
                z-index: 1;
            }
        }
    }

    &.table-select {
        tbody {
            tr {
                &:hover,
                &.selected:hover,
                &.selected {
                    background: lightyellow;
                }
            }
        }
    }
}

/* badges */
.badge {
    text-transform: capitalize;
    padding: 5px;
    color: inherit;
    border-radius: 0.35rem;
    display: inline;
    background: var(--bg-badge);
    box-shadow: 1px 2px 3px #0002;

    &.badge-info {
        background: var(--bg-info);
        color: var(--color-info);
    }

    &.badge-primary {
        background: var(--bg-primary);
        color: var(--color-primary);
    }

    &.badge-danger,
    &.badge-canceled,
    &.badge-deleted {
        background: var(--bg-danger);
        color: var(--color-danger);
    }

    &.badge-success {
        background: var(--bg-success);
        color: var(--color-success);
    }

    &.badge-warning,
    &.badge-suspended {
        background: var(--bg-warning);
        color: var(--color-warning);
    }

    &.badge-completed,
    &.badge-enabled,
    &.badge-approved {
        background: var(--bg-success) !important;
        color: var(--color-success) !important;
    }
    &.badge-disabled,
    &.badge-rejected {
        background: var(--bg-danger) !important;
        color: var(--color-danger) !important;
    }

    &.badge-published {
        background: var(--bg-success) !important;
        color: var(--color-success) !important;
    }

    &.badge-draft {
        background: var(--bg-info) !important;
        color: var(--color-info) !important;
    }
}

.password-reveal {
    position: absolute;
    top: 6px;
    right: 10px;
    opacity: 0.5;
    z-index: 1;
}

/* Input Group */
.input-group {
    > .form-control {
        &:has(+ .input-group-append) {
            border-right: 0px;
        }
    }

    > .input-group-append {
        border-right: 0px;
        > .input-group-text {
            border-right: 0px;
            background: white;
        }

        + .form-control {
            border-left: 0px;
        }
    }
}

.bg-primary {
    background: var(--bg-primary) !important;
    color: var(--color-primary) !important;
}

.bg-danger {
    background: var(--bg-danger) !important;
    color: var(--color-danger) !important;
}

.bg-info {
    background: var(--bg-info) !important;
    color: var(--color-info) !important;
}

.bg-warning {
    background: var(--bg-warning) !important;
    color: var(--color-warning) !important;
}

.bg-success {
    background: var(--bg-success) !important;
    color: var(--color-success) !important;
}

.swal2-container {
    z-index: 995 !important;

    &.swal2-backdrop-show {
        background: #0001 !important;
    }

    .swal2-modal {
        box-shadow: 1px 2px 5px #0001;
        border: 1px solid #c0ccdb;
    }
    .swal2-actions {
        button {
            min-width: 80px;
            text-align: center;
            margin: 0.5rem 1.5rem;

            &.swal2-cancel {
                background: var(--bg-muted);
            }

            &.swal2-deny {
                background: var(--bg-danger);
            }

            &.swal2-confirm {
                background: var(--bg-success);
            }
        }
    }
}

.modal {
    z-index: 993;

    .modal-content {
        border: 0px;
        box-shadow: 1px 2px 3px #0002;
        border-radius: 0.5rem;

        .modal-header {
            background: var(--bg-header);
            color: var(--color-info);

            .modal-title {
                text-transform: capitalize;
            }
        }

        .modal-body {
            background: var(--bg-modal-body);
        }
    }
}

@keyframes minimize {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(0.1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        display: none;
    }
}

@keyframes maximize {
    100% {
        opacity: 1;
        transform: scale(1);
    }
    10% {
        opacity: 1;
        transform: scale(0.1);
    }
    0% {
        transform: scale(0);
        opacity: 0;
    }
}

.minimize {
    animation: minimize 0.5s ease forwards;
}

.maximize {
    animation: maximize 0.5s ease forwards;
}

.loader {
    position: fixed;
    display: flex;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: inherit;
    color: inherit;
    background: var(--bg-body);
    opacity: 1;

    &.hidden {
        opacity: 0;
        z-index: -1;
    }

    .loader-sign {
        background: url(/media/img/logo.png) no-repeat center center;
        background-size: 80px;
        height: 120px;
        width: 120px;
        position: relative;

        &::before {
            content: "";
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 5px solid var(--bg-info);
            border-top-color: transparent;

            animation: spin 2s linear infinite;
        }
    }
}

.loading {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    align-items: center;
    justify-content: center;
    display: flex;
    opacity: 0;
    z-index: -1;

    &.show {
        z-index: 998;
        opacity: 1;
        background: #0001;

        .loading-dialog {
            animation: maximize 0.2s linear forwards;
        }
    }

    .loading-dialog {
        border-radius: 0.5rem;
        width: 300px;
        background: white;
        box-shadow: 1px 2px 3px #0002;
        padding: 1rem;
        border: 1px solid #c0ccdb;
        animation: minimize 0.2s linear forwards;

        &::before {
            content: "";
            display: block;
            height: 100px;
            background: url(/media/img/icon.png) center center no-repeat;
            background-size: 80px;
        }

        .loading-text {
            text-align: center;
            padding: 0.5rem 0;
        }
    }
}

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

.permission-root {
    ul {
        list-style: none;
        list-style-type: none;
        padding: 0px;
        margin: 0px;

        li {
            list-style: none;
            list-style-type: none;
            padding: 0px;
            margin: 0px;
            position: relative;
            color: darkslategrey;

            label {
                padding: 5px;
                margin-bottom: 0px;
            }

            ul {
                padding-left: 1.5rem;

                li {
                    color: steelblue;

                    ul {
                        li {
                            color: saddlebrown;

                            ul {
                                li {
                                    color: rebeccapurple;

                                    ul {
                                        li {
                                            color: orangered;

                                            ul {
                                                li {
                                                    color: green;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    label {
                        width: auto;
                    }

                    &::before {
                        content: "";
                        position: absolute;
                        top: 0px;
                        left: -2px;
                        height: 100%;
                        width: 1px;
                        border-left: 1px solid #c0ccdb;
                    }

                    &::after {
                        content: "";
                        position: absolute;
                        top: 15px;
                        left: -2px;
                        height: 1px;
                        width: 10px;
                        border-top: 1px solid #c0ccdb;
                    }

                    &:last-child::before {
                        height: 15px;
                    }
                }
            }
        }
    }

    > ul {
        display: flex;
        align-items: stretch;

        > li {
            padding: 0.5rem 1.5rem 0.5rem 0.5rem;
            border-radius: 0.5rem;
            background: #fbfbfb;

            & + li {
                margin-left: 0.5rem;
            }
        }
    }

    label {
        display: flex;
        position: relative;

        > * + * {
            margin-left: 0.5rem;
        }

        input {
            position: absolute;
            opacity: 0;
            top: 0px;
            left: 0px;

            & + span {
                i {
                    opacity: 0.2;
                }

                .permission-unchecked {
                    display: inline;
                }

                .permission-checked {
                    display: none;
                }
            }

            &:checked {
                & + span {
                    i {
                        opacity: 1;
                    }

                    opacity: 1;

                    .permission-unchecked {
                        display: none;
                    }

                    .permission-checked {
                        display: inline;
                    }
                }
            }
        }
    }
}

.modal-backdrop.show {
    z-index: 992;
    -opacity: 0.5;
}

.bootstrap-select {
    background: white;

    .dropdown-toggle {
        background: initial;
        box-shadow: initial;
        border-radius: 0.25rem;
        font-weight: normal;
    }

    .btn-light.disabled,
    .btn-light:disabled {
        border-color: #c0ccdb;
        opacity: 0.8;
        background: #f0f0f0;
    }

    &.show > .btn-light.dropdown-toggle,
    .dropdown-toggle:focus,
    .dropdown-toggle:active {
        outline: none !important;
        background-color: lightyellow !important;
        transform: none;
    }

    .dropdown-toggle::before {
        content: none;
    }

    .dropdown-menu.inner {
        padding: 0.5rem;
    }
    ul.dropdown-menu {
        li + li {
            margin-top: 0.25rem;
        }

        li a {
            border-radius: 0.35rem;
            color: darkslategrey;

            &.selected,
            &.active,
            &:active {
                background: var(--bg-info);
                color: var(--color-info);
            }
        }
    }
}

.ui-widget.ui-widget-content {
    width: 300px;
    padding: 0.5rem;
    border-color: #c0ccdb;
    border-radius: 0.35rem;
    transform: translate(0, 2px);
    box-shadow: 1px 2px 5px #0001;
    z-index: 994 !important;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border-color: var(--bg-info);
    background-color: var(--bg-info);
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    border: 0px;
    border-radius: 0.35rem;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    background-color: var(--bg-warning);
    color: var(--color-warning);
}

.ui-widget-header {
    padding: 0.5rem 1rem !important;
    border: 0px;
    align-items: center;
    background: none;
    padding: 0px !important;
}
.ui-widget-header .ui-icon.ui-icon-circle-triangle-w {
    background: url(/media/svg/arrow-up.svg) center center no-repeat;
    background-size: 16px;
    transform: rotate(-90deg);
}
.ui-widget-header .ui-icon.ui-icon-circle-triangle-e {
    background: url(/media/svg/arrow-up.svg) center center no-repeat;
    background-size: 16px;
    transform: rotate(90deg);
}
.ui-datepicker .ui-datepicker-title {
    display: flex;
    justify-content: center;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    border-radius: 0.25rem;
    border-color: #c0ccdb;
    padding: 6px 12px;
    margin: 0 0.25rem;
    width: auto;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    border-radius: 0.25rem;
    border: 1px solid #c0ccdb;
    background: white;
    padding: 1rem;
    text-align: center;
    top: 0px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    transform: scale(1.5);
}

.input-group {
    border: 1px solid #c0ccdb;
    border-radius: 0.25rem;
    background: white;

    .form-control {
        border: 0px;
        background-color: transparent;
    }

    > .input-group-append {
        .input-group-text {
            background: none;
            border: 0px;
        }
    }

    &:has(.form-control:focus) {
        border-color: steelblue;
        background: lightyellow;
    }
}

.radio-group {
    display: flex;
    padding: 5px;
    border-radius: 0.5rem;
    border: 1px dashed #c0ccdb;
    background: #f7f7f7;

    > div {
        position: relative;

        & + div {
            margin-left: 0.25rem;
        }

        > input[type="radio"],
        > input[type="checkbox"] {
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0;
            cursor: pointer;

            & + span {
                padding: 6px 12px;
                display: flex;
                justify-content: center;
                border-radius: 0.25rem;
                align-items: center;
                background: var(--bg-white);
                border: 1px solid #c0ccdb;
                font-size: 12px;
                cursor: pointer;
                border-radius: 20px;
                opacity: 0.8;
                justify-content: start;

                > * + * {
                    margin-left: 0.5rem;
                }
            }

            &:checked {
                + span {
                    opacity: 1;
                    box-shadow: 1px 2px 3px #0002;
                    font-weight: 500;
                }

                &[data-radio="success"] + span {
                    background: var(--bg-success);
                    color: var(--color-success);
                    border-color: var(--bg-success);

                    .radio-sign {
                        color: var(--color-success) !important;
                    }
                }

                &[data-radio="danger"] + span {
                    background: var(--bg-danger);
                    color: var(--color-danger);
                    border-color: var(--bg-danger);

                    .radio-sign {
                        color: var(--color-danger) !important;
                    }
                }

                &[data-radio="info"] + span {
                    background: var(--bg-info);
                    color: var(--color-info);
                    border-color: var(--bg-info);

                    .radio-sign {
                        color: var(--color-info) !important;
                    }
                }

                &[data-radio="primary"] + span {
                    background: var(--bg-primary);
                    color: var(--color-primary);
                    border-color: var(--bg-primary);

                    .radio-sign {
                        color: var(--color-primary) !important;
                    }
                }

                &[data-radio="warning"] + span {
                    background: var(--bg-warning);
                    color: var(--color-warning);
                    border-color: var(--bg-warning);

                    .radio-sign {
                        color: var(--color-warning) !important;
                    }
                }
            }
        }
    }
}

.modal-dialog {
    &.modal-full {
        max-width: calc(100vw - 2rem);
    }
}

.breadcrumb {
    padding: 0.25rem;

    li {
        padding: 0.5rem 1rem;
        background: white;
        position: relative;
        z-index: 0;

        &::before {
            content: "";
            position: absolute;
            top: 0px;
            left: -20px;
            width: 0px;
            height: 0px;
            border-width: 16px 20px 16px 20px;
            border-style: solid solid solid solid;
            border-color: white white white transparent;
            z-index: -1;
        }
        &::after {
            content: "";
            position: absolute;
            top: 0px;
            right: -40px;
            width: 0px;
            height: 0px;
            border-width: 16px 20px 16px 20px;
            border-style: solid solid solid solid;
            border-color: transparent transparent transparent white;
            z-index: 0;
        }

        &:first-child {
            border-radius: 0.35rem 0 0 0.35rem;

            &::before {
                content: none;
            }
        }
        &:last-child {
            border-radius: 0 0.35rem 0.35rem 0;
            &::after {
                content: none;
            }
        }
        &.active {
            background: var(--bg-info);
            color: white;

            &::before {
                border-color: var(--bg-info) var(--bg-info) var(--bg-info)
                    transparent;
            }

            &::after {
                border-left-color: var(--bg-info);
            }
        }
        & + li {
            margin-left: 25px;
        }
    }
}

.context-menu {
    position: fixed;
    overflow: hidden;
    width: auto;
    height: auto;
    transform: scale(0);
    border-radius: 0.5rem;
    border: 1px solid #c0ccdb;
    padding: 1rem;
    background: white;

    &.show {
        overflow: unset;
        box-shadow: 2px 3px 5px #0002;
        z-index: 5;
        transform: scale(1);
        transition: all 0.1s ease;
    }

    ul {
        list-style: none;
        list-style-type: none;
        padding: 0px;
        margin: 0px;
        li {
            list-style: none;
            list-style-type: none;
            padding: 0px;
            margin: 0px;

            a {
                display: flex;
                padding: 6px 12px;
                align-items: center;
                cursor: pointer;
                border-radius: 0.5rem;

                &:hover {
                    background: #f7f7f7;
                }

                i.fa {
                    min-width: 20px;
                }
            }
        }
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    width: 40px;
    height: 24px;
    margin-bottom: 0px;

    /* Sembunyikan checkbox asli */
    input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;

        /* Saat checkbox di-check */
        &:checked + .slider {
            background-color: var(--bg-success);
        }

        &:checked + .slider:before {
            transform: translateX(26px);
            transform: translateX(16px);
        }

        /* Tambahan untuk fokus */
        &:focus + .slider {
            box-shadow: 0 0 1px var(--bg-success);
        }
    }

    /* Slider (bagian yang digeser) */
    .slider {
        position: absolute;
        cursor: pointer;
        background-color: #ccc;
        border-radius: 35px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transition: 0.4s;

        /* Circle di dalam slider */
        &::before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            border-radius: 50%;
            transition: 0.4s;
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
        }
    }
}

.border,
.border-bottom,
.border-top,
.border-left,
.border-right {
    border-color: #c0ccdb;
}

.h-100 {
    height: 100% !important;
}
.w-100v {
    width: 100vw !important;
}
.h-100v {
    height: 100vh !important;
}
