body {
    overflow-y: hidden;
    line-height: unset !important;
}

input {
    height: 40px;
}

input:focus {
    border-color: #ff0000; /* Change this to your desired color */
    box-shadow: none !important;
}

input::placeholder {
    font-size: 14px !important;
    font-weight: 450 !important;
}

input[type="password"],
input[id="password"],
input[id="old_password"],
input[id="password_confirmation"],
input[id="confirm-password"] {
    padding-right: 35px;
}

button:focus,
.btn:focus {
    box-shadow: 0 0 0 0 !important;
}

p {
    margin-bottom: 0px !important;
}

a {
    text-decoration: none !important;
    color: black !important;
}

a:hover {
    color: black;
}

table {
    border-collapse: separate !important;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    border-spacing: 0;
    width: 100%;
    min-width: max-content;
    height: 1px;
}

tr,
thead,
tbody {
    border-radius: 8px;
}

thead {
    background-color: #e6ecf8;
    height: 56px;
}

th,
td {
    padding: 14px 8px 14px 8px !important;
    border-bottom: 1px solid #e7e7e7 !important;
    font-size: 14px;
    line-height: 28px;
}

tr:last-child td:first-child {
    border-radius: 0 0 0 7px;
}

tr:last-child td:last-child {
    border-radius: 0 0 7px 0;
}

tr:first-child th:first-child {
    border-radius: 7px 0 0 0;
}

tr:first-child th:last-child {
    border-radius: 0 7px 0 0;
}

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

.h-fit-content {
    height: fit-content;
}

.input-error,
.border-error {
    border: 1px solid #ec4a47 !important;
}

.ui-datepicker td,
.ui-datepicker th {
    padding: 1px !important;
}

.onclick-logout {
    cursor: pointer !important;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown:hover {
    cursor: pointer;
}

.custom-dropdown label {
    display: none;
}

.custom-dropdown .selected-value {
    padding: 0.375rem 1.7rem 0.375rem 0.75rem;
    font-size: 14px;
    min-height: 40px;
}

.custom-dropdown .dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.3s ease;
}

.dropdown-arrow-rotated {
    transform: translate(-50%, -50%) rotate(180deg) !important;
}

.active-option,
.active-option:hover {
    color: white !important;
    background-color: #2c58a0 !important;
}

.custom-dropdown select {
    display: none;
}

.custom-dropdown .selected-option {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    display: flex;
    align-items: center;
}

.custom-dropdown .options {
    position: fixed;
    display: none;
    border-top: none;
    border-radius: 4px;
    background-color: #fff;
    z-index: 99;
    min-width: 106px;
    box-shadow: 0 0 20px 0 #a2a2a21f;
    min-height: unset;
    max-height: 205px;
    overflow-y: auto;
}

.custom-dropdown .options::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.custom-dropdown .options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-dropdown .options::-webkit-scrollbar-thumb {
    background: #888;
}

.custom-dropdown .options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.custom-dropdown .options span {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #495057;
}

.custom-dropdown .options span:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.custom-dropdown.disabled {
    opacity: 1;
    pointer-events: none;
}

.custom-dropdown.disabled .selected-value {
    background-color: #e9ecef;
    color: #6b6b6b;
}

.custom-dropdown.disabled .options span {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.custom-dropdown.disabled .options span:hover {
    background-color: transparent;
}

.selected-value {
    display: flex !important;
    align-items: center;
    min-height: 40px;
}

.calendar-input {
    position: relative;
    width: 100%;
}

.calendar-input input {
    font-size: 14px;
    padding: 0.35rem 1.5rem 0.35rem 0.75rem;
}

.calendar-input img {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.toast-success {
    background-color: #eefbf6 !important;
    border: 1px solid #c0f8e3;
}

.toast-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/** STYLE FOR TOAST SUCCESSFULLY **/
.toast-title p {
    flex-grow: 1;
    font-family: Inter;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0em;
    text-align: left;
    margin-bottom: 0;
}

.toast-content {
    margin-top: 8px;
    font-family: "Inter";
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
}

.toast-content-success {
    margin-left: 34px;
}

.toast-content-error {
    margin-left: 42px;
}

.toast-content p {
    margin-bottom: 0;
}

/** END STYLE FOR TOAST SUCCESSFULLY **/

/*Width style*/
.w-30 {
    width: 33.333333%;
}

/*Input radio style*/

.form-check-input {
    width: 20px !important;
    height: 20px !important;
}

.form-check-input:checked[type="checkbox"] {
    background-color: #2c58a0 !important;
    border: unset !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0 !important;
}

.form-check-input:focus[type="radio"] {
    border-radius: 50% !important;
}

.form-check-input:checked[type="radio"] {
    background-image: url("../images/icons/active-radio.svg") !important;
    background-color: white;
    border-color: #98b6e1;
}

.form-check-input:focus[type="radio"] {
    border-color: #98b6e1 !important;
}

.btn-submit {
    height: 40px;
    border-radius: 4px;
    background-color: #2c58a0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    border: 1px solid transparent;
}

.btn-cancel {
    height: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c58a0 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
}

.btn-submit:hover {
    background-color: #28508f;
}

.btn-cancel:hover {
    background-color: #f7f7f7;
}

/*Datepicker style*/
.ui-datepicker {
    z-index: 9999 !important;
}

.ui-datepicker-calendar {
    border: unset;
}

.ui-datepicker-calendar thead {
    height: 35px;
    background-color: unset;
}

.ui-datepicker-calendar thead th {
    font-weight: 400 !important;
}

.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
    border-bottom: unset !important;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    border: unset !important;
    background: #608ed0 !important;
    color: white !important;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    color: white !important;
    border: unset !important;
    background: #2c58a0 !important;
}

.ui-datepicker-prev span {
    background-image: url("../images/icons/arrow-previous.svg") !important;
    background-position: 0px 0px !important;
}

.ui-datepicker-next span {
    background-image: url("../images/icons/arrow-next.svg") !important;
    background-position: 0px 0px !important;
}

.ui-datepicker .ui-datepicker-next-hover {
    right: 2px !important;
    top: 2px !important;
}

.ui-datepicker .ui-datepicker-prev-hover {
    left: 2px !important;
    top: 2px !important;
}

/*Form boostrap */
.custom-dropdown .form-control,
.custom-dropdown .options {
    font-size: 14px !important;
}


.select-show-record {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}

.select-show-record label {
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
}

.select-show-record .custom-dropdown {
    min-width: 145px;
}

/*Popover style*/
.popover {
    height: 200px;
    overflow: auto;
}

.popover::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.popover::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popover::-webkit-scrollbar-thumb {
    background: #C1C1C1;
}

.popover::-webkit-scrollbar-thumb:hover {
    background: #a4a4a4;
}

.popover-header {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    padding-bottom: 0 !important;
    background-color: white !important;
    border-bottom: unset !important;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

/*Loading screen*/
.overlay-loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    height: fit-content;
    color: #FFF;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 3.5em;
    display: none;
}

.loader img{
    width: 60px;
    height: 60px;
}

circle {
    fill: none;
    stroke: #2C58A0;
    stroke-width: 3;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.highlight-row {
    background-color: #FEFFCC !important;
}

.open-eye {
    display: none;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dashoffset: -125px;
    }
}

.icon-logout {
    width: 20px !important;
}

.bg-even-th {
    background-color: #fff8f3 !important;
}

.custom-break-text {
    white-space: unset !important;
    overflow: unset !important;
    text-overflow: unset !important;
}

.wpx-100 {
    max-width: 100px !important;
}

.wpx-150 {
    max-width: 150px !important;
}

.wpx-140 {
    max-width: 140px !important;
}

.wpx-130 {
    max-width: 130px !important;
}

.wpx-250 {
    max-width: 250px !important;
}

.custom-ellipsis-y-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    width: 200px;
}

.custom-ellipsis-x-text {
    width: fit-content;
    margin: auto;
}
