body {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container .white-box {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    padding-top: 40px;

    .title-24 {
        font-size: 24px;
        font-weight: 400;
        color: #91918E;
        margin-bottom: 0;

        img {
            padding: 8px;
        }

        .title-content {
            vertical-align: text-top;

        }
    }
}
table.table-striped-custom,
table.table-striped-custom-without-hover {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
    caret-color: transparent;
    border: solid #54483114 1px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    -webkit-box-shadow: 0 1px 1px #54483114;
    -moz-box-shadow: 0 1px 1px #54483114;
    box-shadow: 0 1px 1px #54483114;
    text-decoration: none;

    th {
        white-space: nowrap;
    }

    td, th {
        border-top: 1px solid #54483114;
        padding: 10px;
        text-align: left;

        .list-detail-name-underline,
        .list-detail-name {
            color: #32302C;
            font-weight: 700;
        }
        .list-detail-name-underline {
            border-bottom: 1px solid #32302C;
        }
    }
    th {
        color: #91918E;
        font-size: 20px;
        font-weight: 500;
        background-color: #F8F8F7;
        -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
        -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
        box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
        border-top: none;
        text-shadow: 0 1px 0 rgba(255,255,255,.5);
    }
    td:first-child, th:first-child {
        border-left: none;
    }
    th:first-child {
        -moz-border-radius: 12px 0 0 0;
        -webkit-border-radius: 12px 0 0 0;
        border-radius: 12px 0 0 0;
    }
    th:last-child {
        -moz-border-radius: 0 12px 0 0;
        -webkit-border-radius: 0 12px 0 0;
        border-radius: 0 12px 0 0;
    }
    th:only-child{
        -moz-border-radius: 12px 12px 0 0;
        -webkit-border-radius: 12px 12px 0 0;
        border-radius: 12px 12px 0 0;
    }
    tr:last-child td:first-child {
        -moz-border-radius: 0 0 0 12px;
        -webkit-border-radius: 0 0 0 12px;
        border-radius: 0 0 0 12px;
    }
    tr:last-child td:last-child {
        -moz-border-radius: 0 0 12px 0;
        -webkit-border-radius: 0 0 12px 0;
        border-radius: 0 0 12px 0;
    }
    .text-16,
    td {
        font-size: 16px;
        font-weight: 400;
        color: #32302C;
        vertical-align: baseline;

        .text-muted {
            color: #91918E !important;
        }

        &.text-bold {
            font-weight: 600;
        }
    }
}
table.table-striped-custom {
    tr:hover {
        cursor: pointer;
        text-decoration: none;

        td {
            border-top: 1px solid #54483140;
            border-bottom: 1px solid #54483140;
        }
        td:first-child {
            border-left: 1px solid #54483140;
            color: #305AD3;
        }
        td:last-child {
            border-right: 1px solid #54483140;
        }
        .list-detail-name-underline {
            color: #305AD3;
            border-bottom: 1px solid #305AD3;
        }
        .list-detail-name {
            color: #32302C;
            font-weight: 700;
        }
        .list-detail-underline {
            img {
                filter: invert(33%) sepia(76%) saturate(1422%) hue-rotate(207deg) brightness(83%) contrast(99%);
            }
        }
    }
}
.dashboard-card {
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.avatar-image {
    display: inline-block;

    img {
        border-radius: 4px;
    }
}
.justify-content-center button {
    margin: 0 5px;
}
.text-decoration-none {
    text-decoration: none;
}
.list-detail-underline,
.list-detail {
    cursor: pointer;
    text-decoration: none;

    img {
        padding-right: 8px;
    }
}
.list-detail {
    margin-left: 20px;
}
.task-avatar {
    width: 20px;
}
.nowrap-header th {
    white-space: nowrap;
}
.card {
    border: none;
}
.sorting-group label {
    white-space: nowrap;
    padding-right: 20px;
}
.sorting-group label,
.sorting-group div {
    padding-left: 20px;
}
.mb-4.row.sorting-group {
    display: inline-flex;
}
.ql-container {
    height: auto !important;
}
footer {
    bottom: 0;
    --o-cc-bg: #111827;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: block;
    unicode-bidi: isolate;
    left: 0;
    right: 0;
}
footer,
footer .container {
    font-family: 'Roboto';
    background-color: #111827 !important;
    color: #F0F0EF;
}
.pt40 {
    padding-top: 40px
}
.pb16 {
    padding-bottom: 16px
}
.o_footer_copyright,
.o_footer_copyright .container {
    background-color: #00000026 !important;
}
.o_footer_copyright .o_footer_copyright_name {
    --text-opacity: 1;
    color: #ffffff3 !important;
}
.btn.dropdown-toggle {
    max-width: 100px !important;
    width: 100%;
    overflow: hidden;
}
.grouped-list {
    background-color: #f1f0f0 !important
}
a.disabled {
    pointer-events: none;
    cursor: default;
}
canvas {
    border: 1px solid #dee2e6;
    background-color: #fff;
    width: 100%;
    height: 200px;
}
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Ẩn ban đầu */
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav {
    .nav-link {
      padding: 8px 12px;
      border-radius: 6px;
      transition: background-color 0.3s;
      color: #333;
    }
    .nav-link:hover {
      background-color: #F0F0EF;
      text-decoration: none;
      color: #333;
    }
    .nav-link.active,
    .side-bar-home {
        background-color: #f0f0ef;
    }
    a > img {
        vertical-align: text-bottom;
    }
}
.section-title {
    font-weight: 500;
    font-size: 20px;
    padding-left: 25px;
    padding-right: 25px;

    a {
        color: black;
        font-size: 1rem;
        padding: 5px;
        border-radius: 8px;
        font-weight: 500;
        font-size: 14px;
    }
    a:hover {
        background-color: #F0F6FD;
        color: #0281AA;
    }
}
.section-hello {
    font-size: 32px;
    padding-left: 15px;
}
.card-container {
    border-radius: 12px;
    border: 1px solid #54483114;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;

    .card-body {
        padding: 0;

        ul {
            border-radius: 12px;
            cursor: pointer;
            list-style: none;
            li {
                padding: 18px 26px;

                span {
                    padding: 5px 12px;
                }
                .text-muted.float-end {
                    font-size: 16px;
                    font-weight: 400;
                }
                .arrow-orange {
                    display: none;
                    padding: 9px 0px;
                }
                .dashboard-item-line {
                    display: inline-block;
                    padding-left: 18px;
                    max-width: 80%;
                    vertical-align: baseline;

                    .title {
                        font-size: 20px;
                        line-height: 20px;
                        font-weight: 500;
                        color: #32302C;
                    }
                    .sub-title {
                        font-size: 16px;
                        color: #32302C;
                    }
                }
                img {
                    padding: 0 !important;
                    vertical-align: top;
                }
            }
            li.allow-click:hover {
                border: 1px solid #54483140;

                .arrow-orange {
                    display: block;
                }
            }
        }
    }
}
.center-content {
    display: flex;
    justify-content: center;
}
.col-10.center-content {
    height: 100vh;

    .content-wrapper {
        flex: 1;
    }
}
.company-info {
    font-size: 14px;
    padding: 18px 12px;

    td {
        background: black;
        border: none;
    }
    .company-text-muted {
        color: #91918E;
    }
    .company-text-white {
        color: #E8E8E8;
    }
}
.user-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 200px;
}
.list-group-item a {
    text-decoration: none;
}
.vertical-middle {
    vertical-align: middle;
}
.leave-view .o_portal_search_panel {
    min-width: 58% !important;
}
.dropdown-toggle-custom {
    background-color: transparent !important;
    max-width: none !important;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    padding: 0px 6px;

    &:hover,
    &::focus-visible,
    &:active {
        background-color: transparent !important;
        border: 1px solid #D9D9D9 !important;
    }

    .search-type {
        color: #91918E;
        font-size: 16px;
        font-weight: 400;

        img {
            vertical-align: middle;
        }
    }
    .search-type-name {
        color: #32302C;
        font-size: 16px;
        font-weight: 400;
    }
}
.dropdown-menu-custom {
    padding: 0;

    .dropdown-item {
        font-size: 16px;
        font-weight: 400;
        padding: 12px 16px;
        color: #000000;
        border: 1px solid #54483114;
    }
    .dropdown-item.active,
    .dropdown-item:active {
        background-color: #F8F8F7
    }
}
.group-menu-action {
    padding: 5px 0;
}
.search-container {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 10px;
    background-color: #FAFAFAED;

    .icon-left,
    .icon-right {
        font-size: 16px;
        margin: 0 5px;
        color: #666;

        button,
        button:active {
            background-color: inherit;
            border: none;
            box-shadow: none;
            outline: none;
        }
    }
    input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 16px;
        background-color: inherit;
    }
    input:focus {
        background-color: inherit !important;
        box-shadow: none;
    }
}
.form-button-custom {
    border-radius: 12px !important;
    margin: 0 12px !important;
    font-size: 16px;
    font-weight: 400;

    button {
        margin: 0 12px;
    }

    &.btn-success {
        background-color: #07892E !important;
    }
    &.btn-danger {
        background-color: #FF3B30 !important;
    }
}
.modal {
    .content-wrapper {
        width: 100%;

        .white-box {
            width: 100%;
        }
    }
    .modal-dialog-custom {
        padding-right: 0;
        padding-left: 40px;
        max-width: 100%;
    }
    .content {
        padding: 0 20px;
    }
    .modal-content {
        padding: 20px 24px 24px 24px;
    }
    .modal-body {
        padding: 12px 0;

        textarea {
            border-radius: 12px;
            resize: none;
            field-sizing: content;
        }
        .performance-list {
            list-style-type: none;
            overflow: hidden;

            li {
                padding: 10px 0;
                padding-left: 8px;

                span.criterion-index {
                    position: absolute;
                    left: 20px;
                    width: 21px;
                    height: 21px;
                    border: 1px solid #D9D9D9;
                    border-radius: 50%;
                    font-size: 14px;
                    text-align: center;
                }
            }
        }
    }
    .modal-header,
    .modal-footer {
        padding: 0;

        button {
            padding: 8px 12px;
            font-size: 14px;
            line-height: 14px;
            border-radius: 4px;

            &.btn-secondary {
                background-color: #91918E !important;
                color: white !important;
            }
            &.btn-warning {
                background-color: #FF8F00 !important;
                color: white !important;
            }
        }
    }
    .title-24,
    .title-24-black{
        font-size: 24px;
        font-weight: 400;
        color: #91918E;
        margin-bottom: 0;
        line-height: 24px;
    }
    .title-24-black {
        color: #32302C;
    }
    .btn-secondary {
        background-color: #D9D9D9;
        color: #32302C;
        border: none;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 500;
        margin: 0 10px;
        border-radius: 4px;
    }
    .btn-secondary:hover {
        background-color: #305AD3;
        color: #FFFFFF;
        img {
            filter: invert(100%) sepia(99%) saturate(25%) hue-rotate(173deg) brightness(106%) contrast(100%);
        }
    }

    .detail-header {
        padding: 18px 45px;
        margin-left: -45px;
        margin-right: -45px;
        background-color: #DDE0F680;

        strong {
            font-size: 20px;
            font-weight: 500;
            color: #212529;
        }
        .text-muted {
            color: #5F5E5B !important;
            font-size: 14px;
            font-weight: 400;
            margin-left: 15px;
            vertical-align: text-bottom;

            img {
                filter: invert(46%) sepia(0%) saturate(3848%) hue-rotate(327deg) brightness(122%) contrast(85%);
                margin-right: 5px;
            }
        }
    }
    .detail-address {
        margin-top: 38px;
    }
    .section-name {
        font-size: 20px;
        font-weight: 500;
        color: #91918E;
    }
}
.message_block {
    .card {
        border-radius: 0;

        .card-body {
            padding: 16px 0;
            border-top: 1px solid #E8E8E8;
            border-bottom: 1px solid #E8E8E8;
        }
    }
    .message-attachment {
        a {
            background-color: transparent;
            border: 1px solid #91918E !important;
            border-radius: 4px;
        }
        img {
            margin-right: 8px;
        }
    }
}
.text-20 {
    font-size: 20px;
    color: #32302C;
}
.text-16 {
    font-size: 16px;
    color: #32302C;
}
.text-13 {
    font-size: 13px;
    color: #32302C;
}
.text-muted {
    color: #91918E !important;
    img {
        filter: invert(46%) sepia(0%) saturate(3848%) hue-rotate(327deg) brightness(122%) contrast(85%);
    }
}
.rounded-pill {
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 6px;

    img {
        vertical-align: bottom;
    }
}
.text-bg-success {
    background-color: #DCF5C4 !important;
    color: #07892E !important;
}
.text-bg-primary {
    background-color: #D0F4FF !important;
    color: #2383E2 !important;
}
.text-bg-info {
    background-color: #FBF5C4 !important;
    color: #DBA400 !important;
}
.text-bg-danger {
    background-color: #FFDAC5 !important;
    color: #FF3B30 !important;
}
.text-bg-dark {
    background-color: #D9D9D9 !important;
    color: #32302C !important;
}
.time-off-btn-container {
    display: flex;

    .button-timeoff-approve {
        background-color: #07892E;
        margin-right: 8px;
    }
    .button-timeoff-refuse {
        background-color: #FF3B30;
    }
    .button-timeoff-approve,
    .button-timeoff-refuse {
        border-radius: 20px;
        width: 37px;
        height: 33px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.radio-box-group {
    display: flex;
    gap: 12px;

    .box-label {
        display: inline-block;
        padding: 8px 12px;
        border: none;
        border-radius: 2px;
        background-color: #DEE2E6;
        font-size: 16px;
        width: 33px;
        height: 35px;
        text-align: center;
        user-select: none;
    }

    .radio-box {
        position: relative;
        cursor: pointer;

        input[type="radio"] {
            display: none;
        }
        input[type="radio"]:checked + .box-label {
            background-color: #305AD3;
            color: white;
        }
    }

    > span {
        line-height: 33px;
    }

    &.satisfaction-group {
        gap: 0px;

        .box-label {
            width: 150px;
            height: 80px;
            padding: 14px 8px;
            border: 1px solid #D9D9D9;
            color: #212529;
            background-color: #FFFFFF;
        }
        .radio-box:first-child .box-label {
            border-radius: 12px 0 0 12px;
        }
        .radio-box:last-child .box-label {
            border-radius: 0 12px 12px 0;
        }
        input[type="radio"]:checked + .box-label {
            background-color: #86C3FF26;
            border: 1px solid #86C3FF;
            color: #212529;
        }
    }
}
input[name="evaluated_by"],
input[name="evaluated_by"]:focus-visible {
    border-radius: 12px;
    border: 1px solid #91918E;
    padding: 6px 12px;
    font-size: 16px;
    width: 250px;
    background-color: #E8E8E840;
    outline: none;
    color: #91918E99;
}

.clickable-row {
    .col-3 {
        padding: 5px 0;

        .arrow-orange {
            margin-top: 8px;
        }
    }
}
tr.row-checkbox {
    vertical-align: text-top;
}
*::placeholder {
    color: #91918E !important;
}
.company-info {
    tr.contact-us-collapse {
        display: none;
    }
    tr.contact-us-expand {
        display: table-row;
    }
}
.message_block_title {
    display: none;
}
@media screen and ( max-height: 900px )
{
    .company-info {
        tr.contact-us-collapse {
            display: table-row;
        }
        tr.contact-us-expand {
            display: none;
        }
    }
    .company-info:hover {
        tr.contact-us-collapse {
            display: none;
        }
        tr.contact-us-expand {
            display: table-row;
        }
    }
}
#portal_print_timesheet,
#portal_timesheet_export {
    cursor: pointer;

    .search-type {
        color: #32302C;
    }
}
.o_widget_web_ribbon {
    .ribbon-top-right {
        --Ribbon-gap-right-default: -1px;
        --Ribbon-gap-top-default: 24px;
        pointer-events: none;
        right: 20px;
        overflow: hidden;
        position: absolute;
        height: 160px;
        width: 160px;

        span {
            --Ribbon-z-index: 1;
            --Ribbon-font-size-default: 1.09375rem;
            --Ribbon-height-default: calc(var(--Ribbon-font-size, var(--Ribbon-font-size-default)) * 2.5);
            --Ribbon-shadow-distance: .25rem;
            --Ribbon-shadow-blur: .5rem;
            --Ribbon-top-position-default: calc((var(--Ribbon-height-default) * -1));
            --Ribbon-left-position-default: calc(var(--Ribbon-shadow-distance) + var(--Ribbon-shadow-blur));
            z-index: var(--Ribbon-z-index);
            transform: rotate(45deg);
            position: absolute;
            width: 141.421%;
            height: var(--Ribbon-height, var(--Ribbon-height-default));
            box-shadow: 0 var(--Ribbon-shadow-distance) var(--Ribbon-shadow-blur) rgba(0, 0, 0, 0.1);
            color: #FFFFFF;
            font-size: var(--Ribbon-font-size, var(--Ribbon-font-size-default));
            line-height: var(--Ribbon-height, var(--Ribbon-height-default));
            font-weight: 700;
            font-family: 'Lato', sans-serif;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            text-transform: uppercase;
            text-align: center;
            overflow: hidden;
            user-select: none;
            transform-origin: left bottom;
            pointer-events: none;
            left: var(--Ribbon-left-position, var(--Ribbon-left-position-default));
            top: var(--Ribbon-top-position, var(--Ribbon-top-position-default));
            color: white !important;
            background-color: #FF3B30 !important;
        }
    }
}