/** Confirm Box **/
#origin-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#origin-confirm .dialog {
    background-color: #fff;
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

#origin-confirm .dialog header {
    font-size: 18px;
    margin-bottom: 20px;
    color: #585858;
    line-height: 21px;
    font-weight: 700;
}

#origin-confirm .dialog .dialog-msg {
    font-size: 16px;
    color: #585858;
}

#origin-confirm .dialog footer .controls {
    display: flex;
    gap: 10px;
}

#origin-confirm .dialog footer .controls button {
    margin-top: 20px;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    height: 50px;
    width: 113px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}

#origin-confirm .dialog footer .controls button.button-danger {
    background-color: #1F4670;
    color: #fff;
}

#origin-confirm .dialog footer .controls button.button-danger:hover {
    filter: brightness(1.2);
}

#origin-confirm .dialog footer .controls button.button-default {
    background-color: #fff;
    color: #1F4670;
    border: 1px solid #1F4670;
}

#origin-confirm .dialog footer .controls button.button-default:hover {
    background-color: #f0f0f0;
}

/** Alert Box **/
.customAlert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.customAlert .custom-alert-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

.customAlert .custom-alert-box .alertTitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #585858;
    line-height: 21px;
    font-weight: 700;
}

.customAlert .custom-alert-box .alertMessage {
    font-size: 16px;
    color: #585858;
}

.customAlert .custom-alert-box .alertButton {
    margin-top: 20px;
    background-color: #1F4670;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    height: 50px;
    width: 113px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}

.customAlert .custom-alert-box .alertButton:hover {
    filter: brightness(1.2);
}

/* ----- Customize Bootstrap nav-link component ----- */
.customize-nav-link {
    color: #1F4670;
    position: relative;
    text-decoration: none;
    font-size: 0.9em;
}

.customize-nav-link:hover .fa,
.customize-nav-link:hover .fas {
    transition: all 1.2s;
    transform: rotate(360deg);
}

[data-bs-theme="dark"] .customize-nav-link {
    color: #888888 !important;
}

[data-bs-theme="dark"] .customize-nav-link.active {
    color: #fff !important;
}

/* ----- End of customize Bootstrap nav-link component ----- */

/**SET THE SEARCHBAR WIDTH AT YOUR OWN**/
.customize-searchbar {
    padding-left: 40px !important;
    border-radius: 25px !important;
    background-color: #eeeeee !important;
    border: none !important;
    height: 30px !important;
    font-size: 12px !important;
}

[data-bs-theme="dark"] .customize-searchbar {
    background: #212529 !important;
    background-color: #495057 !important;
    border: 1px solid #495057 !important;
}

/**SEARCH-ICON TO PAIR WITH THE SEARCHBAR**/
.search-icon {
    position: absolute;
    z-index: 999;
    left: 15px;
    top: 25%;
}

/* ----- Customize button component ----- */
/* SET THE BUTTON WIDTH AT YOUR OWN */
.customize-oval-btn {
    border-radius: 12px;
    font-size: 12px;
    height: 30px;
    background-color: #1F4670;
}

.customize-reset-btn,
.customize-apply-btn:hover {
    border-radius: 5px;
    font-size: 13px;
    color: #1F4670;
    border: 1px solid #1F4670;
    background-color: white;
}

.customize-apply-btn,
.customize-reset-btn:hover {
    border-radius: 5px;
    font-size: 13px;
    color: white;
    background-color: #1F4670;
}

[data-bs-theme="dark"] .customize-apply-btn,
[data-bs-theme="dark"] .customize-reset-btn {
    color: white !important;
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .customize-apply-btn:hover,
[data-bs-theme="dark"] .customize-reset-btn:hover {
    background-color: #303030 !important;
}

/* ----- End of customize button component ----- */

/* ----- Customize DataTable component ----- */
.customize-table thead th {
    font-size: 13px;
    color: #1F4670;
}

.customize-table td {
    font-size: 12px;
    color: #888888;
}

.customize-table tbody tr:hover,
.customize-table tbody tr.chosen {
    background-color: #1F4670 !important;
}

.customize-table tbody tr:hover td,
.customize-table tbody tr.chosen td {
    color: white !important;
}

.customize-table tbody tr:hover .log-icon {
    color: white !important;
}

.customize-table tbody tr:hover .shake-on-hover:hover {
    color: white !important;
}

.customize-table tbody tr:hover td span.custom-text-hover-success,
.customize-table tbody tr.chosen span.custom-text-hover-success {
    color: #aee1ca !important;
}

.customize-table tbody tr:hover td span.custom-text-hover-danger,
.customize-table tbody tr.chosen span.custom-text-hover-danger {
    color: #f7c5c9 !important;
}

[data-bs-theme="dark"] .customize-table thead th {
    color: #d7d8d8 !important;
}

[data-bs-theme="dark"] .customize-table tbody tr:hover, 
[data-bs-theme="dark"] .customize-table tbody tr.chosen {
    background-color: #303030 !important;
}

/* Customize Bootstrap badge component in DataTable */
.customize-table tbody tr:hover td span.custom-badge-hover-pending {
    color: #2b2f32 !important;
    background-color: #e2e3e5 !important;
    border: 1px #c4c8cb solid !important;
}

.customize-table tbody tr:hover td span.custom-badge-hover-success {
    color: #0a3622 !important;
    background-color: #d1e7dd !important;
    border: 1px #a3cfbb solid !important;
}

.customize-table tbody tr:hover td span.custom-badge-hover-error {
    color: #58151c !important;
    background-color: #f8d7da !important;
    border: 1px #f1aeb5 solid !important;
}

.customize-table.customize-table-row-pointer tbody tr:hover{
    cursor: pointer;
}

/* ----- End of customize DataTable component ----- */

/* ----- Customize component ----- */
.customize-box-table {
    width: 100%;
    border-collapse: separate;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
}

.customize-box-title {
    font-size: 15px;
    padding: 5px;
    color: #1F4670;
}

.customize-box-column {
    font-size: 12px;
    color: #888888;
    padding-right: 10px;
}

.customize-box-input {
    border-radius: 25px !important;
    height: 30px !important;
    font-size: 12px !important;
}

.customize-box-table th {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8d8d8;
}

.customize-box-table td {
    padding-left: 5px;
    padding-right: 5px;
}

/* ----- End of customize component ----- */

.primary-star {
    color: #ffb300;
}

.activate {
    color: #319B77;
}

.obsolete {
    color: #991F1F;
}

.customized-alert {
    color: #991F1F;
    font-size: 11px;
    text-align: center;
}

/**SET THE BUTTON HEIGHT AT YOUR OWN**/
.customized-textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    resize: none;
    font-size: 12px;
}

/* As long as font awesome css is loaded 1st, the keyframes for fa-shake are available */
.shake-on-hover:hover {
    animation: fa-shake 1s;
}