:root {
    --accent-color: #6223ef;
    --extra-color: #2D0A4B;
    --info-color: #3b7bbf;
    --light-color: #e0e7ff;
    --light-color2: #f1f3ff;
    --success-color: #29ce5a;
    --warning-color: #ebb217;
    --white: #ffffff;
}

body,
.bg-main {
    background: #f6f7fb;
}
.bg-transparent {
    background-color: transparent !important;
}

a {
    color: black;
    text-decoration: none;
}
a:hover {
    color: #444;
}

@media (max-width: 1299px) {
    body {
        --bs-body-font-size: 0.93rem;
    }
}

@media (max-width: 991px) {
    body.has-sidebar {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    h3,
    .h3 {
        font-size: calc(1.3rem + 0.3vw);
    }

    h5,
    .h5 {
        font-size: 1.15rem;
    }

    body,
    li,
    .form-control,
    .form-select {
        font-size: 0.95rem;
    }

    .form-col:not(:last-child) {
        margin-bottom: 0.75rem;
    }

    .form-col label+p {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto!important;
    }
}
@media (min-width: 577px) {
    .w-sm-auto {
        width: auto!important;
    }
}

@media (max-width: 576px) {
    h3,
    .h3 {
        font-size: 1.3rem;
    }

    h5,
    .h5 {
        font-size: 0.95rem;
    }

    body,
    li,
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
}

.btn {
    font-size: 15px;
}
.bg-primary,
.btn-primary,
.btn-check:checked+.btn-outline-primary {
    background-color: var(--accent-color) !important;
}
.border-primary,
.btn-primary,
.btn-outline-primary {
    border-color: var(--accent-color) !important;
}
.text-primary,
.btn-outline-primary {
    color: var(--accent-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
}
.btn-check:checked+.btn-outline-primary {
    color: white !important;
}
.bg-success,
.btn-success,
.btn-check:checked+.btn-outline-success {
    background-color: var(--success-color) !important;
}
.border-success,
.btn-success,
.btn-outline-success {
    border-color: var(--success-color) !important;
}
.text-success {
    color: var(--success-color) !important;
}
.btn-outline-success {
    color: var(--success-color);
}
.bg-warning,
.btn-warning,
.btn-check:checked+.btn-outline-warning {
    background-color: var(--warning-color) !important;
}
.border-warning,
.btn-warning,
.btn-outline-warning {
    border-color: var(--warning-color) !important;
}
.text-warning,
.btn-outline-warning {
    color: var(--warning-color) !important;
}
.bg-info,
.btn-info,
.btn-outline-info:hover,
.btn-check:checked+.btn-outline-info {
    background-color: var(--info-color) !important;
}
.border-info,
.btn-info,
.btn-outline-info {
    border-color: var(--info-color) !important;
}
.text-info,
.btn-outline-info {
    color: var(--info-color) !important;
}
.btn-outline-info:hover {
    color: white !important;
}
.bg-primary-light,
.btn-primary-light,
.btn-check:checked+.btn-outline-primary-light {
    background-color: var(--light-color) !important;
}
.border-primary-light,
.btn-primary-light,
.btn-outline-primary-light {
    border-color: var(--light-color) !important;
}
.text-primary-light,
.btn-outline-primary-light {
    color: var(--light-color) !important;
}
.bg-primary-light2,
.btn-primary-light2,
.btn-check:checked+.btn-outline-primary-light2 {
    background-color: var(--light-color2) !important;
}
.border-primary-light2,
.btn-primary-light2,
.btn-outline-primary-light2 {
    border-color: var(--light-color2) !important;
}
.text-primary-light2,
.btn-outline-primary-light2 {
    color: var(--light-color2) !important;
}
.bg-primary-dark,
.btn-primary-dark,
.btn-check:checked+.btn-outline-primary-dark {
    background-color: var(--extra-color) !important;
}
.border-primary-dark,
.btn-primary-dark,
.btn-outline-primary-dark {
    border-color: var(--extra-color) !important;
}
.text-primary-dark,
.btn-outline-primary-dark {
    color: var(--extra-color) !important;
}
.text-cancelled {
    color: rgb(207, 27, 27) !important;
    font-style: italic;
    text-decoration: line-through;
}
.btn:disabled,
.btn.disabled {
    color: #cccccc !important;
}

@media (min-width: 1200px) {
    .border-bottom-xl-0 {
        border-bottom: 0!important;
    }
    .border-xl-end {
        border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;
    }
}

@media (max-width: 991px) {
    .btn-group > .btn {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .btn {
        font-size: 13px;
    }
    .btn-group > .btn {
        font-size: 13px;
        padding: 5px 5px 7px;
    }
}

ul {
    margin-bottom: 0;
}
ul.options-menu::before {
    content: "No options available";
    display: block;
    color: #6c757d;
    font-style: italic;
    padding: 0 15px;
}
ul.options-menu:has(> li)::before {
    content: none;
}

.table .breadcrumbs-row {
    display: inline-block;
    margin-bottom: 0;
    width: 100%;
}
.breadcrumbs-row > span, .breadcrumbs-row > ul, .breadcrumbs-row > ul > li {
    display: inline-block !important;
}
.breadcrumbs-row > span {
    float: left;
    position: relative;
    top: 3px;
}
.breadcrumbs-row > ul {
    width: calc(100% - 34px);
}

.w-1 {
    width: 1rem;
}
.w-2 {
    width: 2rem;
}
.w-3 {
    width: 3rem;
}
.w-4 {
    width: 4rem;
}
.w-5 {
    width: 5rem;
}
.w-6 {
    width: 6rem;
}

.fs-xs {
    font-size: 0.8rem !important;
}
.fs-sm {
    font-size: 1rem !important;
}
.fs-md {
    font-size: 1.5rem !important;
}
.fs-lg {
    font-size: 2rem !important;
}
.fs-xl {
    font-size: 2.5rem !important;
}
.fs-2xl {
    font-size: 3rem !important;
}
.fs-3xl {
    font-size: 3.5rem !important;
}
.fs-4xl {
    font-size: 4rem !important;
}
.fs-5xl {
    font-size: 4.5rem !important;
}

@media (max-width: 991px) {
    .display-6 {
        font-size: calc(1.375rem+1.3vw) !important;
    }

    .fs-4 {
        font-size: 1.275rem !important;
    }
    .fs-5 {
        font-size: 1.15rem !important;
    }
    .fs-6 {
        font-size: 0.95rem !important;
    }

    .lead {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .display-6 {
        font-size: calc(1.375rem+1.1vw) !important;
    }

    .fs-4 {
        font-size: 1.15rem !important;
    }
    .fs-5 {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 576px) {
    .fs-4 {
        font-size: 1.05rem !important;
    }
    .fs-5 {
        font-size: 0.95rem !important;
    }
    .fs-6 {
        font-size: 0.9rem !important;
    }

    .dropdown > button[data-bs-toggle="dropdown"] {
        line-height: 1.2;
        padding: 5px 10px;
    }
}

.hidden {
    display: none;
}

.dropdown-menu.show {
    z-index: 99999;
}

.cursor-pointer {
    cursor: pointer;
}

.list-inline-bar:not(:last-child)::after {
    content: "|";
    padding-right: 6px;
}
.list-inline-anchor:not(:last-child)::after {
    font-family: "bootstrap-icons";
    content: "\F285";
    font-weight: bold;
    font-size: 0.7em;
    padding: 4px 3px;
    vertical-align: baseline;
}

.table {
    margin-bottom: 0;
}
.table > :not(caption) > * > * {
    background-color: unset;
}

.popup-container-sm {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 440px;
}
.popup-container-md {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 600px;
}
.popup-container-lg {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 800px;
}
.popup-container-xl {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 1000px;
}
.popup-container-xxl {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 88px);
}
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: none;
}

.nav-pills .nav-link {
    background: none;
    border-radius: 8px;
    color: var(--accent-color);
    font-weight: 500;
}
.nav-pills .nav-link.active {
    background-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(98, 35, 239, 0.3);
    color: #fff;
}
.nav-pills .nav-link:not(.active):hover {
    background: var(--light-color);
    color: var(--accent-color);
}

.sidebar {
    background: var(--light-color2);
    min-height: 100vh;
    width: 80px;
}
.sidebar .nav-link {
    align-items: center;
    background: none;
    border-radius: 50%;
    color: black;
    display: flex;
    font-size: 1.5rem;
    height: 48px;
    justify-content: center;
    margin: 0 auto;
    width: 48px;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: var(--light-color);
    color: #6c63ff;
}
.sidebar .nav {
    gap: 8px;
}

@media (max-width: 1199px) {
    .sidebar {
        width: 55px;
    }

    .sidebar .nav-link {
        font-size: 1.3rem;
        height: 36px;
        width: 36px;
    }
}

@media (max-width: 991px) {
    nav.sidebar {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(98, 35, 239, 0.08);
        border-radius: 18px;
        bottom: max(8px, env(safe-area-inset-bottom));
        box-shadow: 0 10px 28px rgba(45, 10, 75, 0.12);
        left: 8px;
        min-height: auto;
        padding: 0 6px !important;
        position: fixed;
        width: calc(100% - 16px);
        z-index: 1050;
    }
    .sidebar .nav {
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        justify-content: center;
        margin-left: 0;
        padding: 5px 0;
        width: 100%;
    }
    .sidebar .nav-link {
        align-items: center;
        background: transparent;
        border-radius: 14px;
        color: #5b5671;
        font-size: 1.08rem;
        height: 46px;
        padding: 0;
        width: 100%;
    }
    .sidebar .nav-link.active,
    .sidebar .nav-link:hover {
        background: linear-gradient(180deg, rgba(98, 35, 239, 0.14), rgba(98, 35, 239, 0.08));
        color: var(--accent-color);
    }
    .sidebar .nav > li > ul, .sidebar .nav > li > ul > li {
        list-style: none;
        margin-left: 0;
        padding-left: 0;
    }
    .sidebar .nav > li > ul {
        background-color: var(--white);
        border-radius: 8px;
        bottom: calc(100% + 5px);
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        display: none;
        padding: 10px 4px;
        position: absolute;
        right: 0;
        text-align: left;
    }
    .sidebar .nav > li.show > ul {
        display: block;
    }
    .sidebar .nav > li > ul > li > a {
        border-radius: 6px;
        font-size: 14px;
        justify-content: flex-start;
        height: auto;
        padding: 4px 8px;
    }
    .sidebar .nav > li > ul > li > a i {
        margin-right: 8px;
    }

    main > nav.navbar > h2,
    main > nav.navbar > img {
        position: relative;
    }
    main > nav.navbar > h2 {
        font-size: calc(1.325rem+.6vw);
    }
    main > nav.navbar img {
        height: auto;
        max-height: 30px;
        max-width: 150px;
        width: auto;
    }
}

@media (max-width: 576px) {
    nav.sidebar {
        border-radius: 10px;
        left: 11px;
        padding-inline: 6px !important;
        width: calc(100% - 22px);
    }
    .sidebar .nav {
        gap: 2px;
    }
    .sidebar .nav-link {
        border-radius: 10px;
        font-size: 1.35rem;
    }
}

@media (max-width: 991px) {
    .nav-sidebar-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 2px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-sidebar-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-sidebar-tabs .nav-item {
        flex-shrink: 0;
    }
    .nav-sidebar-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.875rem;
        padding: 0.4rem 0.85rem;
    }
}

.navbar .dropdown-toggle {
    border-radius: 8px;
    color: #6c63ff;
    font-weight: 500;
}

.card {
    border: none;
    border-radius: 16px;
}
.card .card-header {
    background: white;
    border-color: var(--light-color2);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-width: 2px;
}
.card .card-header .bi {
    font-size: 1.3rem;
}
.card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .card {
        border-radius: 10px;
    }
    .card .card-header {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .card .card-title {
        font-size: 1rem;
    }
    .card .card-header .bi {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 8px;
    }
    .card .card-header {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    .card .card-title {
        font-size: 0.95rem;
    }
    .card .card-header .bi {
        font-size: 1rem;
    }
}

.form-check-input.is-invalid~.form-check-label,
.was-validated .form-check-input:invalid~.form-check-label {
    color: inherit;
}
.form-switch .form-check-input {
    width: 50px;
    height: 26px;
}
input[readonly],
input[readonly]:focus {
    background-color: #f6f7fb;
    outline: none;
    box-shadow: none;
}

.leave-badge {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

table.table-listing thead tr {
    background: #E3E5F2;
}
table.table-listing thead tr th {
    background: transparent;
    padding: 15px;
}

@media (max-width: 1199px) {
    table.table-listing thead tr th {
        padding: 10px;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        font-size: 0.85rem;
    }
    .table > tbody > tr > td {
        padding: 8px 6px;
    }
    .table > tbody > tr > td .w-4 {
        max-width: 3rem;
    }

    div.dt-container .dt-paging {
        margin-top: 20px !important;
    }
    div.dt-container .dt-paging .dt-paging-button {
        padding: 0.2em 0.8em;
    }

    .table .btn {
        margin-block: 3px;
    }
}

@media (max-width: 991px) {
    .leave-badge {
        font-size: 1rem;
    }

    .form-switch .form-check-input {
        height: 23px;
        width: 45px;
    }

    .table thead,
    .table tbody th {
        display: none;
    }
    .table,
    .table tbody,
    .table tr,
    .table td,
    .table tfoot {
        display: block;
        width: 100%;
    }
    .table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    .table td {
        position: relative;
        border: 0 !important;
        border-bottom: 1px solid #f1f1f1 !important;
        padding: .75rem !important;
        white-space: normal;
    }
    .table td[data-label] {
        padding-top: 1.6rem !important;
    }
    .table td:last-child {
        border-bottom: 0 !important;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }
    .table td::before {
        content: attr(data-label);
        position: absolute;
        top: .4rem;
        left: .75rem;
        color: #6b7280;
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 10px;
    }
    .accordion-button::after {
        background-size: contain;
        width: 16px;
        height: 13px;
    }
    .accordion-body {
        padding: 10px 10px 12px;
    }
}

@media (max-width: 767px) {
    .form-switch .form-check-input {
        height: 20px;
        width: 40px;
    }

    div.dt-container div.dt-layout-row {
        margin-bottom: 0;
    }
    div.dt-container div.dt-layout-row:first-child label {
        display: none;
    }
    div.dt-container div.dt-layout-row:first-child > .dt-layout-cell {
        display: inline-blocK;
        float: left;
    }
    div.dt-container div.dt-layout-row:first-child > .dt-layout-cell:last-child {
        width: calc(100% - 62px);
    }
    div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell > .dt-length,
    div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell > .dt-search {
        text-align: left;
    }
    div.dt-container .dt-search input {
        width: calc(100% - 4px);
    }
    
    table.table-listing thead tr th {
        padding: 8px;
    }
    .table > thead > tr > th,
    .table > tbody > tr > td {
        font-size: 0.8rem;
    }
    .table > tbody > tr > td .w-4 {
        max-width: 2rem;
    }
}

@media (max-width: 576px) {
    .form-switch .form-check-input {
        height: 18px;
        width: 35px;
    }
}

.swal2-container.swal2-center.swal2-backdrop-show {
    height: 100vh;
    width: 100vw;
}
.swal2-toast-shown .swal2-container {
    width: inherit !important;
}
.swal2-toast.swal2-icon-info {
    background-color: #2398d0;
    color: #fafafa;
}
.swal2-toast.swal2-icon-success {
    background-color: #28a745;
    color: #fafafa;
}
.swal2-toast.swal2-icon-warning {
    background-color: var(--warning-color);
    color: white;
}
.swal2-toast .swal2-icon.swal2-warning {
    border-color: #f0dba2;
    color: #fafafa;
}
.swal2-toast.swal2-icon-error {
    background-color: #dc3545;
    color: #fafafa;
}
@media (max-width: 767px) {
    body.swal2-toast-shown .swal2-container.swal2-bottom,
    body.swal2-toast-shown .swal2-container.swal2-top,
    body.swal2-toast-shown .swal2-container.swal2-center {
        inset: 0;
        transform: none;
    }
}

div.dt-container div.dt-layout-row {
    margin-top: 0;
}
div.dt-container .dt-search input {
    border-radius: 5px;
    background: #F6F7FB;
    border: 2px solid #E3E5F2;
}
div.dt-container .dt-search label {
    display: none;
}
div.dt-container .dt-length select.dt-input {
    border-radius: 5px;
    background: #F6F7FB;
    border: 2px solid #E3E5F2;
    margin-right: 5px;
    padding-block: 5px;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: #F6F7FB;
    border: 2px solid #E3E5F2;
}

.g-1px {
    --bs-gutter-x: 1px;
    --bs-gutter-y: 1px;
}

.row-cols-7 > * {
    flex: 0 0 auto;
    width: 14.2857%;
}

.working-week-table {
    max-width: 350px;
    width: 100%;
}

.working-week-table .col:first-child span {
    border-start-start-radius: 0.8rem;
}
.working-week-table .col:nth-child(7) span {
    border-start-end-radius: 0.8rem;
}
.working-week-table .col:nth-child(8) span {
    border-end-start-radius: 0.8rem;
}
.working-week-table .col:last-child span {
    border-end-end-radius: 0.8rem;
}

.working-week-table .cell {
    background: #eceef0;
}
.working-week-table .cell.full-day {
    background: #50bb7a;
}
.working-week-table .cell.half-day-am {
    background: linear-gradient(to bottom, #50bb7a 50%, #eceef0 50%);
}
.working-week-table .cell.half-day-pm {
    background: linear-gradient(to bottom, #eceef0 50%, #50bb7a 50%);
}

@media (max-width: 991px) {
    .working-week-table label[class*="btn"] {
        padding-inline: 0.25rem;;
    }
}

.year-calendar-cell {
    width: 14.258%;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}
.year-calendar-cell.non-working-day,
.year-calendar-cell.bank-holiday,
.year-calendar-cell.company-day-off.full-day {
    color: #a8a8a8;
}
.year-calendar-cell.bank-holiday::after,
.year-calendar-cell.company-day-off-full-day::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid gray;
    background: repeating-linear-gradient(-45deg, #f0f0f07a 0%, #f0f0f07a 10%,
        rgba(255, 255, 255, 0.541) 10%, rgba(255, 255, 255, 0.541) 20%) !important;
}
.year-calendar-legend.day-off {
    border: 1px solid gray;
    background: repeating-linear-gradient(-45deg, #f0f0f07a 0%, #f0f0f07a 10%,
        rgba(255, 255, 255, 0.541) 10%, rgba(255, 255, 255, 0.541) 20%) !important;
}
.year-calendar-cell.company-day-off-half-day-am::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    border: 1px solid gray;
    background: repeating-linear-gradient(-45deg, #f0f0f07a 0%, #f0f0f07a 10%,
        rgba(255, 255, 255, 0.541) 10%, rgba(255, 255, 255, 0.541) 20%) !important;
}
.year-calendar-cell.company-day-off-half-day-pm::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    border: 1px solid gray;
    background: repeating-linear-gradient(-45deg, #f0f0f07a 0%, #f0f0f07a 10%,
        rgba(255, 255, 255, 0.541) 10%, rgba(255, 255, 255, 0.541) 20%) !important;
}
.year-calendar-cell.first-day {
    border-start-start-radius: 8px;
    border-end-start-radius: 8px;
}
.year-calendar-cell.last-day {
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
}
.year-calendar-cell.annual-leave-full-day {
    background: #66c478;
    color: white;
}
.year-calendar-cell.annual-leave-half-day-am {
    background: linear-gradient(to bottom, #66c478 50%, white 50%);
    color: black;
}
.year-calendar-cell.annual-leave-half-day-pm {
    background: linear-gradient(to bottom, white 50%, #66c478 50%);
    color: black;
}
.year-calendar-cell.sick-leave-full-day {
    background: #e95a58;
    color: white;
}
.year-calendar-cell.sick-leave-half-day-am {
    background: linear-gradient(to bottom, #e95a58 50%, white 50%);
    color: black;
}
.year-calendar-cell.sick-leave-half-day-pm {
    background: linear-gradient(to bottom, white 50%, #e95a58 50%);
    color: black;
}
.year-calendar-cell.special-leave-full-day {
    background: #ea9e36;
    color: white;
}
.year-calendar-cell.special-leave-half-day-am {
    background: linear-gradient(to bottom, #ea9e36 50%, white 50%);
    color: black;
}
.year-calendar-cell.special-leave-half-day-pm {
    background: linear-gradient(to bottom, white 50%, #ea9e36 50%);
    color: black;
}
.year-calendar-cell.annual-leave-half-day-am.sick-leave-half-day-pm {
    background: linear-gradient(to bottom, #66c478 50%, #e95a58 50%);
}
.year-calendar-cell.annual-leave-half-day-am.special-leave-half-day-pm {
    background: linear-gradient(to bottom, #66c478 50%, #ea9e36 50%);
}
.year-calendar-cell.sick-leave-half-day-am.annual-leave-half-day-pm {
    background: linear-gradient(to bottom, #e95a58 50%, #66c478 50%);
}
.year-calendar-cell.sick-leave-half-day-am.special-leave-half-day-pm {
    background: linear-gradient(to bottom, #e95a58 50%, #ea9e36 50%);
}
.year-calendar-cell.special-leave-half-day-am.annual-leave-half-day-pm {
    background: linear-gradient(to bottom, #ea9e36 50%, #66c478 50%);
}
.year-calendar-cell.special-leave-half-day-am.sick-leave-half-day-pm {
    background: linear-gradient(to bottom, #ea9e36 50%, #e95a58 50%);
}

.bg-leave-type.annual-leave {
    background-color: #66c478 !important;
    border-color: #66c478 !important;
    color: white !important;
}
.bg-leave-type.sick-leave {
    background-color: #e95a58 !important;
    border-color: #e95a58 !important;
    color: white !important;
}
.bg-leave-type.special-leave {
    background-color: #ea9e36 !important;
    border-color: #ea9e36 !important;
    color: white !important;
}
.bg-event {
    background-color: #976aff !important;
    border-color: #976aff !important;
}
.text-leave-type.annual-leave {
    color: #66c478 !important;
}
.text-leave-type.sick-leave {
    color: #e95a58 !important;
}
.text-leave-type.special-leave {
    color: #ea9e36 !important;
}
.text-event {
    color: #976aff !important;
}

.fc .fc-day-today {
    background-color: #f9f9f9 !important;
}
.fc .fc-day-selected {
    background: var(--light-color2) !important;
}
.fc .fc-day-bank-holiday,
.fc .fc-day-company-day-off.full-day {
    background: repeating-linear-gradient(-45deg, #f0f0f0 0%, #f0f0f0 10%, white 10%, white 20%) !important;
}
.fc .fc-day-bank-holiday.fc-day-selected,
.fc .fc-day-company-day-off.full-day.fc-day-selected {
    background: repeating-linear-gradient(-45deg, #e9ebf9 0%, #e9ebf9 10%,
        var(--light-color2) 10%, var(--light-color2) 20%) !important;
}
.fc .fc-day-company-day-off.half-day-am {
    background: linear-gradient(to right, transparent 50%, white 50%),
        repeating-linear-gradient(-45deg, #f0f0f0 0%, #f0f0f0 10%, white 10%, white 20%) !important;
}
.fc .fc-day-company-day-off.half-day-am.fc-day-selected {
    background: linear-gradient(to right, transparent 50%, #e9ebf9 50%),
        repeating-linear-gradient(-45deg, #e9ebf9 0%, #e9ebf9 10%, white 10%, white 20%) !important;
}
.fc .fc-day-company-day-off.half-day-pm {
    background: linear-gradient(to right, white 50%, transparent 50%),
        repeating-linear-gradient(-45deg, #f0f0f0 0%, #f0f0f0 10%, white 10%, white 20%) !important;
}
.fc .fc-day-company-day-off.half-day-pm.fc-day-selected {
    background: linear-gradient(to right, #e9ebf9 50%, transparent 50%),
        repeating-linear-gradient(-45deg, #e9ebf9 0%, #e9ebf9 10%, white 10%, white 20%) !important;
}
.fc .fc-col-header-cell-cushion {
    text-transform: uppercase;
}
.fc .fc-daygrid-day-number {
    font-weight: 600;
    cursor: default;
}
.fc .fc-daygrid-day.fc-non-working-day:not(.fc-day-other) .fc-daygrid-day-number {
    color: #b0b0b0;
}
.fc .fc-day-birthday .fc-daygrid-day-top::before {
    content: '\F6ED';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 16px;
    color: #6427ee;
}
.fc .fc-event {
    height: 20px !important;
    min-height: 20px !important;
    background: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    position: relative;
    margin: 2px 0;
    padding: 0;
}
.fc .fc-event .fc-event-title {
    border-radius: 4px;
    height: 20px;
    line-height: 20px;
    display: inline-block;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}
.fc .fc-event::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    border-radius: 5px;
    z-index: 1;
}
.fc .fc-event.annual-leave::before {
    background: #66c478 !important;
}
.fc .fc-event.sick-leave::before {
    background: #e95a58 !important;
}
.fc .fc-event.special-leave::before {
    background: #ea9e36 !important;
}
.fc .fc-event.event::before {
    background: #976aff !important
}
.fc .fc-event.annual-leave .fc-event-title {
    background-color: #66c478 !important;
}
.fc .fc-event.sick-leave .fc-event-title {
    background-color: #e95a58 !important;
}
.fc .fc-event.special-leave .fc-event-title {
    background-color: #ea9e36 !important;
}
.fc .fc-event.event .fc-event-title {
    background-color: #976aff !important;
}

body.bg-transparent [class*="popup-container"] {
    margin-top: 44px;
}

.fancybox-slide {
    padding: 0;
}

.fancybox-content {
    background-color: transparent !important;
}

@media (max-width: 991px) {
    .modal-content {
        height: calc(100vh - 44px);
    }
    body.bg-transparent [class*="popup-container"] {
        margin-top: 22px;
    }
}

@media (max-width: 767px) {
    .modal-content {
        height: 100vh;
    }
    body.bg-transparent [class*="popup-container"] {
        margin-top: 0px;
    }
}

.stepper {
    display: flex;
    align-items: top;
    justify-content: center;
}
.stepper .step {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stepper .step::before {
    content: '';
    position: absolute;
    top: 18px;
    width: 100%;
    height: 4px;
    background: lightgray;
    right: 50%;
}
.stepper .step-current::before,
.stepper .step-completed::before {
    background: var(--accent-color);
}
.stepper .step:first-child::before {
    display: none;
}
.stepper .step > span {
    position: relative;
    padding-top: 44px;
    display: block;
    color: rgb(156, 156, 156);
    text-align: center;
    font-weight: 600;
    z-index: 1;
}
.stepper .step-current > span,
.stepper .step-completed > span {
    color: var(--accent-color);
    font-weight: bold;
}
.stepper .step > span::before {
    content: '';
    background: var(--light-color2);
    border: 3px solid lightgray;
    border-radius: 50%;
    color: lightgray;
    font-family: 'bootstrap-icons';
    height: 40px;
    left: 50%;
    line-height: 34px;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
}
.stepper .step-current > span::before {
    content: '\F287';
    color: var(--accent-color);
}
.stepper .step-current > span::before,
.stepper .step-completed > span::before {
    border-color: var(--accent-color);
}
.stepper .step-completed > span::before {
    content: '\F26E';
    background: var(--accent-color);
    color: white;
    font-size: 2rem;
}

@media (max-width: 991px) {
    .stepper .step::before {
        height: 2px;
        top: 14px;
    }
    .stepper .step > span {
        font-size: 0.85rem;
        padding-top: 34px;
    }
    .stepper .step > span::before {
        border-width: 2px;
        height: 30px;
        line-height: 27px;
        font-size: 12px;
        text-align: center;
        width: 30px;
    }
}

@media (max-width: 576px) {
    .stepper .step::before {
        top: 12px;
    }
    .stepper .step > span {
        font-size: 0.75rem;
        padding-top: 30px;
    }
    .stepper .step > span::before {
        height: 25px;
        line-height: 21px;
        font-size: 11px;
        width: 25px;
    }
}

#signatureBox {
    max-width: 100%;
}

.leave-variation-add,
.leave-variation-substract,
.leave-variation-equals {
    position: relative;
}
.leave-variation-add::before,
.leave-variation-substract::before,
.leave-variation-equals::before {
    position: absolute;
    left: 0;
    top: 25px;
    transform: translate(-50%, -50%);
}
.leave-variation-add::before {
    content: '\F4FE';
    font-family: 'bootstrap-icons';
    font-size: 30px;
}
.leave-variation-substract::before {
    content: '\F2EA';
    font-family: 'bootstrap-icons';
    font-size: 30px;
}
.leave-variation-equals::before {
    content: '\003D';
    font-size: 30px;
}

.timeline {
    display: grid;
    grid-gap: 0;
    grid-template-columns: repeat(1, 1fr);
    list-style: none;
    padding-left: 0;
}
.timeline > li {
    position: relative;
}
.timeline > li:before {
    content: '';
    background-color: #dddddd;
    border-radius: 50%;
    display: inline-block;
    font-size: 12px;
    height: 19px;
    left: 148px;
    line-height: 19px;
    position: absolute;
    text-align: center;
    top: 5px;
    width: 19px;
    z-index: 1;
}
.timeline > li.past:before {
    background-color: #4a4a4a;
}
.timeline > li.current:before {
    content: '\F287';
    font-family: 'bootstrap-icons';
    background-color: #4a4a4a;
    color: #f6f7fb;
    margin-top: 0;
    font-size: 8px;
}
.timeline > li:not(:last-child):after {
    content: '';
    background-color: #dddddd;
    height: calc(100% + 20px);
    left: 156px;
    position: absolute;
    top: 9px;
    width: 4px;
}
.timeline > li.past:not(:last-child):after {
    background-color: #4a4a4a;
}
.timeline > li:not(:last-child) {
    margin-bottom: 20px;
}
.timeline > li > div {
    display: inline-block;
}
.timeline > li > .left {
    width: 140px;
}
.timeline > li > .right {
    float: right;
    width: calc(100% - 190px);
}

.file-drop-area {
    border: 4px dashed #aaaaaa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: #888888;
}
.file-drop-area.dragging {
    border-color: #888888;
    background-color: #00000008;
}

.cropper-just-resize .cropper-crop-box,
.cropper-just-resize .cropper-view-box {
    display: none;
    pointer-events: none;
}
.cropper-just-resize .cropper-modal {
    background: none;
}

.vertical-tabs .nav-link {
    border-radius: 0;
    color: gray;
    border-right: none !important;
    box-shadow: none !important;
}
.vertical-tabs .nav-link.active {
    background: #f8f9fa;
    color: inherit;
    z-index: 2;
}
.vertical-tabs > :first-child {
    margin-right: -1px;
}
@media (max-width: 991px) {
    .vertical-tabs .nav-link {
        border-radius: var(--bs-border-radius) !important;
        border-right: 1px solid var(--bs-border-color) !important;
    }
}

[data-toggle-held] {
    display: none;
}

.org-chart-container {
    overflow-x: auto;
}
.org-chart-tree,
.org-chart-children {
    display: flex;
    flex-direction: column;
    --indent: max(30px, 7cqi);
}
.org-chart-tree {
    gap: 10px;
    width: 100%;
    min-width: max-content;
}
.org-chart-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.org-chart-children {
    padding-left: var(--indent);
    border-left: 2px solid #6c63ff;
    margin-left: 20px;
    width: calc(100% - 20px);
}
.org-chart-children > .org-chart-node {
    padding-top: 10px;
}
.org-chart-children > .org-chart-node:last-child {
    position: relative;
}
.org-chart-children > .org-chart-node:last-child::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--indent) - 2px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    z-index: 1;
}
.org-chart-children > .org-chart-node:last-child > .org-chart-card::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--indent) - 3px);
    top: -11px;
    height: calc(12px + 50%);
    width: 2px;
    background: #6c63ff;
    z-index: 2;
}
.org-chart-children > .org-chart-node > .org-chart-card {
    position: relative;
}
.org-chart-children > .org-chart-node > .org-chart-card::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--indent) + 1px);
    height: 2px;
    background-color: #6c63ff;
}
.org-chart-card {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
}

.animation-bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.chart {
    position: relative;
    width: 100%;
}
.chart canvas {
    width: 100% !important;
    height: 100% !important;
}
.chart-xxs {
    height: 110px;
}
.chart-xs {
    height: 160px;
}
.chart-sm {
    height: 200px;
}
.chart-md {
    height: 260px;
}
.chart-lg {
    height: 320px;
}
.chart-xl {
    height: 360px;
}
@media (max-width: 991px) {
    .chart-xs {
        height: 140px;
    }
    .chart-sm {
        height: 180px;
    }
    .chart-md {
        height: 230px;
    }
    .chart-lg {
        height: 280px;
    }
    .chart-xl {
        height: 320px;
    }
}
