/* Additional styles for nested dropdown 1 */
:root {
    --danger-subtle: #f8d7da;
    /* Warna background subtle untuk danger */
    --secondary-subtle: #e2e3e5;
    --primary-subtle: #cfe2ff;
    --success-subtle: #d1e7dd;
    --warning-subtle: #fff3cd;
    --info-subtle: #cff4fc;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-menu {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.dropdown-toggle::after {
    display: none;
}

.select-course.dropdown-item.active,
.select-course.dropdown-item:active {
    color: #5a67d8;
    text-decoration: none;
    background-color: #ffffff;
    font-weight: 800;
}

.navbar-brand {
    display: inline-block;
    padding-top: 0.35938rem;
    padding-bottom: 0.35938rem;
    margin-right: 8px;
    margin-left: 8px;
    font-size: 0.9375rem;
    line-height: inherit;
    white-space: nowrap;
}

/* Untuk layar dengan ukuran minimum 991 */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        border: none;
        margin-left: 20px;
        box-shadow: none;
    }

    .navbar-2 {
        padding: 0rem 1rem;
    }

    .nav-link {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .nav-item {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
}

@media (min-width: 991px) {

    .offcanvas-body .navbar-nav .nav-item .nav-link {
        color: #ffffff80;
        padding-right: 1rem;
        padding-left: 1rem;
        position: relative;
    }

    .offcanvas-body .navbar-nav .nav-item .nav-link.active {
        color: #ffffff;
    }
    .offcanvas-body .navbar-nav .nav-item .nav-link.active::after {
        content: '';
        background-color: #ffffff;
        display: block;
        width: 100%;
        height: 4px;
        position: absolute;
        bottom: -8px;
        left: 0;
        border-radius: 10px 10px 0px 0px;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: space-between;
    }
}

/* Fix the navbar at the top */
.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    /* Ensure it stays on top */
}

/* Add space below the navbar to prevent content from overlapping */
body {
    padding-top: 0;
}

.page-header {
    color: var(--LightMode-Grey-Grey-900, #071437);

    font-family: Plus Jakarta Sans;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.page-subtitle {
    color: var(--LightMode-Grey-Grey-700, #4b5675);

    font-family: Plus Jakarta Sans;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
}

.card {
    --card-spacer-y: 0.9375rem;
    --card-spacer-x: 0.9375rem;
    --card-title-spacer-y: 0.46875rem;
    --card-title-color: ;
    --card-subtitle-color: ;
    --card-cap-padding-y: 0.46875rem;
    --card-cap-padding-x: 0.9375rem;
    --card-cap-bg: rgba(var(--component-border-color-rgb), 0.35);
    --card-cap-color: ;
    --card-height: ;
    --card-color: ;
    --card-bg: var(--component-bg);
    --card-img-overlay-padding: 0.9375rem;
    --card-group-margin: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--card-height);
    color: var(--body-color);
    word-wrap: break-word;
    border-radius: 12px;
    border: 1px solid var(--LightMode-Grey-Grey-200, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light, #fff);
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
}

.card-header {
    padding: var(--card-cap-padding-y) var(--card-cap-padding-x);
    margin-bottom: 0;
    color: var(--card-cap-color);
    background-color: unset;
    border-bottom: 1px solid var(--LightMode-Grey-Grey-200, rgba(248, 248, 248));
}

.card-footer {
    display: flex;
    padding: 14px 20px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    background: transparent;
    border-top: 1px solid var(--LightMode-Grey-Grey-200, rgba(248, 248, 248));
}

.card-title {
    color: var(--LightMode-Grey-Grey-900, #071437);
    font-family: Plus Jakarta Sans;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}

.button-filter {
    display: flex;
    padding: 9px 10px !important;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-600, #78829d);
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
}

.button-filter.active {
    border: 1px solid
        var(--LightMode-Primary-Primary-Clarity-20, rgba(27, 132, 255, 0.2)) !important;
    background: var(--LightMode-Primary-Primary-Light, #eff6ff);
    color: var(--LightMode-Primary-Primary, #1b84ff);
}

.button-selected-filter {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
}

.label-selected-filter {
    color: var(--LightMode-Grey-Grey-600, #78829d);
    font-family: "Plus Jakarta Sans";
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    margin-right: 4px;
}

.value-selected-filter {
    color: var(--LightMode-Grey-Grey-800, #252f4a);
    font-family: "Plus Jakarta Sans";
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    margin-right: 8px;
}

.close-selected-filter {
    color: var(--LightMode-Grey-Grey-800, #252f4a);
    border: none;
}

.input-search {
    display: flex;
    width: 240px;
    padding: 10px 30px;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-600, #78829d);
    font-family: Plus Jakarta Sans;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
}

.table-index {
    width: 100%;
    min-width: max-content;
}

.table-index th {
    color: var(--LightMode-Grey-Grey-700, #4b5675);

    font-family: "Plus Jakarta Sans";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 13px 20px;
    border: 1px solid var(--LightMode-Grey-Grey-200, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    vertical-align: middle;
}

.table-index td {
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    padding: 13px 20px;
    border: 1px solid var(--LightMode-Grey-Grey-200, rgba(248, 248, 248)) !important;
    vertical-align: top;
    word-break: break-word;
}

.table-index td.primary-column {
    color: var(--LightMode-Grey-Grey-900, #071437);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}

.table-index td.action-column {
    width: 100px;
}

.table-index thead tr:first-child th {
    border-top: none !important;
}

.table-index thead tr th:first-child {
    border-left: none !important;
}

.table-index thead tr th:last-child {
    border-right: none !important;
}

.table-index tbody tr:first-child td {
    border-top: none !important;
}

.table-index tbody tr:last-child td {
    border-bottom: none !important;
}

.table-index tbody tr td:first-child {
    border-left: none !important;
}

.table-index tbody tr td:last-child {
    border-right: none !important;
}

.table.table-index:not(.table-bordered) tr:first-child,
.table.table-index:not(.table-bordered) th:first-child,
.table.table-index:not(.table-bordered) td:first-child {
    padding-left: 20px !important;
}

.table.table-index:not(.table-bordered) tr:last-child,
.table.table-index:not(.table-bordered) th:last-child,
.table.table-index:not(.table-bordered) td:last-child {
    padding-right: 20px !important;
}

.paginate .select-per-page {
    text-align: start;
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, rgba(248, 248, 248)) !important;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-800, #252f4a);
    font-family: "Plus Jakarta Sans";
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    width: 56px;
    padding: 8px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.2128 4.17182C12.496 4.44519 12.496 4.8884 12.2128 5.16177L7.37865 9.82844C7.09548 10.1018 6.63635 10.1018 6.35317 9.82844L1.78758 5.42103C1.5044 5.14766 1.5044 4.70445 1.78758 4.43108C2.07076 4.15771 2.52988 4.15771 2.81306 4.43108L6.86591 8.34351L11.1873 4.17182C11.4705 3.89846 11.9296 3.89846 12.2128 4.17182Z' fill='%2378829D'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.paginate .per-page {
    color: var(--LightMode-Grey-Grey-600, #78829d);
    font-family: "Plus Jakarta Sans";
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.13px;
}

.paginate .total-data {
    color: var(--LightMode-Grey-Grey-600, #78829d);
    font-family: Plus Jakarta Sans;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.13px;
}

.list-pagination {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 8px 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: var(--LightMode-Grey-Grey-600, #78829d);
    text-align: center;
    text-decoration: none !important;
    font-family: "Plus Jakarta Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
}

.list-pagination.active {
    color: var(--primary);
    background-color: var(--primary-subtle);
    border-color: var(--primary-subtle);
    font-weight: 500;
}

.list-pagination.disabled {
    color: var(--LightMode-Grey-Grey-800, #c4cada);
    cursor: not-allowed;
    pointer-events: none;
}

.list-pagination a {
    text-decoration: none;
    color: inherit;
}

.arrow-sort {
    display: inline-grid;
    margin-left: 5px;
    text-align: center;
    vertical-align: middle;
}

.arrow-sort-up::before {
    margin-bottom: 3px;
    color: #78829d;
    opacity: 0.3;
    content: "\f077";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    width: 9px;
    font-size: 9px;
    text-align: center;
}

.arrow-sort-down::before {
    margin-top: 3px;
    color: #78829d;
    opacity: 0.3;
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    width: 9px;
    font-size: 9px;
    text-align: center;
}

.arrow-sort .active::before {
    color: #4b5675;
    opacity: 0.7;
}

.badge-duotone-danger,
.btn-duotone-danger {
    color: var(--danger);
    background-color: var(--danger-subtle);
    border-color: var(--danger-subtle);
}

.badge-duotone-secondary,
.btn-duotone-secondary {
    color: var(--secondary);
    background-color: var(--secondary-subtle);
    border-color: var(--secondary-subtle);
}

.badge-duotone-primary,
.btn-duotone-primary {
    color: #fafafa;
    background-color: #064e3b;
    border-color: #064e3b;
}

.badge-duotone-success,
.btn-duotone-success {
    color: var(--success);
    background-color: var(--success-subtle);
    border-color: var(--success-subtle);
}

.badge-duotone-warning,
.btn-duotone-warning {
    color: var(--warning);
    background-color: var(--warning-subtle);
    border-color: var(--warning-subtle);
}

.badge-duotone-info,
.btn-duotone-info {
    color: var(--info);
    background-color: var(--info-subtle);
    border-color: var(--info-subtle);
}

.btn-duotone-danger:hover {
    color: #fff;
    background-color: var(--danger, #dc3545);
    /* Warna hover */
    border-color: var(--danger, #dc3545);
    /* Warna border hover */
}

.btn-duotone-secondary:hover {
    color: #fff;
    background-color: var(--secondary, #6c757d);
    border-color: var(--secondary, #6c757d);
}

.btn-duotone-primary:hover {
    color: #fff;
    background-color: #022c22;
    border-color: #022c22;
}

.btn-duotone-success:hover {
    color: #fff;
    background-color: var(--success, #198754);
    border-color: var(--success, #198754);
}

.btn-duotone-warning:hover {
    color: #fff;
    background-color: var(--warning, #ffc107);
    border-color: var(--warning, #ffc107);
}

.btn-duotone-info:hover {
    color: #fff;
    background-color: var(--info, #0dcaf0);
    border-color: var(--info, #0dcaf0);
}

.label-form {
    color: var(--Gray-Gray-700, #5e6278);
    font-style: normal;
    font-weight: 600;
}

.form-input {
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, #dbdfe9);
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-700, #4b5675);
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 13px 14px;
    border-radius: 6px;
    font-size: 13px;
    height: fit-content;
}

/* Gaya default untuk select dengan class form-input */
select.form-input {
    color: #495057;
    /* Warna default teks */
}

/* Gaya untuk select yang memiliki opsi yang dipilih dengan disabled */
select.form-input option:disabled:checked {
    color: #6c757d;
    /* Ganti warna teks jika opsi yang dipilih disabled */
}

/* Menambahkan gaya untuk seluruh select jika opsi yang dipilih adalah disabled */
select.form-input:has(option:disabled:checked) {
    color: #6c757d;
    /* Ganti warna teks select jika opsi disabled yang terpilih */
}

.modal {
    border: none;
    /* Menghilangkan border */
    box-shadow: 0 0.125rem 0.25rem rgba(#000, 0.075);
    /* Menambahkan shadow */
    padding: 0px;
}

.modal-header {
    padding: 20px;
}

.modal-body {
    padding: 20px;
    overflow: auto;
    max-height: calc(100vh - 200px);
}

.modal-footer {
    padding: 20px;
}

.card {
    border: none;
    /* Menghilangkan border */
    border-radius: 0.5rem;
    /* Radius sudut modal */
    box-shadow: 0 0.125rem 0.25rem rgba(#000, 0.075);
    /* Menambahkan shadow */
}

.select2-container {
    box-sizing: border-box;
    display: block;
    margin: 0;
    position: relative;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 6px;
    border: 1px solid var(--LightMode-Grey-Grey-300, #dbdfe9);
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-700, var(--primary));
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 13px 14px 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    height: fit-content;
    position: relative;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-bottom: 5px;
    margin-top: 0px;
    padding: 0;
    padding-left: 20px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__clear {
    cursor: pointer;
    font-weight: bold;
    height: 20px;
    margin-right: 10px;
    margin-top: 4px;
    position: absolute;
    right: 0;
    padding: 1px;
}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin-top: 0px;
    margin-left: 5px;
    padding: 0;
    max-width: 100%;
    resize: none;
    height: 18px;
    vertical-align: bottom;
    font-family: sans-serif;
    overflow: hidden;
    word-break: keep-all;
    margin-bottom: 0px;
    color: #4b5775;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-right: 0px solid var(--primary);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: var(--primary);
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    padding: 4px 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover,
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:focus {
    background-color: var(--primary-subtle);
    color: #fff;
    outline: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: var(--primary-subtle);
    border: 1px solid var(--primary-subtle);
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-bottom: 5px;
    margin-top: 0px;
    padding: 5px 0px 5px 15px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.select2-container .select2-selection--multiple .select2-selection__clear {
    background-color: transparent;
    border: none;
    font-size: 1em;
    color: #4b5775;
}

.select2-container--default.select2-container--focus
    .select2-selection--multiple {
    background-color: #fff;
    border-color: #c1c6f0;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(90, 103, 216, 0.25);
}

.select2-container--default .select2-results__option--selected {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

.select2-container--default
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
    color: white;
}

.select2-dropdown {
    border: 1px solid var(--LightMode-Grey-Grey-300, #dbdfe9);
    color: var(--LightMode-Grey-Grey-700, #4b5675);
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    z-index: 1051;
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--LightMode-Grey-Grey-300, #dbdfe9);
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-700, #4b5675);
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 13px 14px;
    border-radius: 6px;
    font-size: 13px;
    height: fit-content;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #6c757d;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 0;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 50%;
    right: 1px;
    width: 20px;
    transform: translate(-50%, -50%);
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 1;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--LightMode-Grey-Grey-300, #dbdfe9);
    border-radius: 6px;
    padding: 4px 8px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-right: 20px;
    padding-right: 0px;
    margin-top: -6.5px;
    color: var(--LightMode-Grey-Grey-700, #4b5675);
}

.accordion-button:focus {
    z-index: 3;
    background-color: #fff;
    border-color: #c1c6f0;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(90, 103, 216, 0.25);
}

.accordion-button.form-input {
    border: inherit;
    background: var(--LightMode-Light-Light-Active, #fcfcfc);
    color: var(--LightMode-Grey-Grey-700, #4b5675);
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 13px 14px;
    border-radius: inherit;
    font-size: 13px;
    height: fit-content;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 4px 20px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: white;
    background-color: #022c22;
    border: none;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: transparent;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: transparent;
}

.nav-link:focus,
.nav-link:hover {
    color: #022c22;
}

.nav-link {
    color: unset;
    transition: unset;
}

.border,
.border-bottom,
.border-top,
.border-end,
.border-start {
    border-color: var(
        --LightMode-Grey-Grey-200,
        rgba(248, 248, 248)
    ) !important;
}

.position-relative .position-absolute.label {
    left: 26px;
    top: 0px;
    background: white;
    padding: 0px 4px;
    color: #4b5775;
}
