@import url("https://fonts.googleapis.com/css2?family=Playpen+Sans&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300&display=swap");

html {
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

.cursor-pointer {
    cursor: pointer;
}

.topbar {
    height: 60px;
    width: 100%;
    background: linear-gradient(to right, #1A237E, #6C7EE1);
    display: flex;
    align-items: center;
    color: white;
    z-index: 1020;
    position: fixed;
    top: 0;
    left: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0 1rem;
    width: 260px;
}

.topbar-left.collapsed {
    width: 121px;
}

.app-logo {
    max-height: 100%;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.topbar-title {
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.topbar-left.collapsed .topbar-title {
    opacity: 0;
    visibility: hidden;
    width: 0;
    margin: 0;
    overflow: hidden;
}

.topbar-right {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 1rem;
}

.topbar-right .page-title {
    padding-left: 1rem;
}

.topbar-actions .bi {
    cursor: pointer;
}

.dropdown-footer {
    padding-top: 0.5rem;
}


.user-avatar img {
    border: 2px solid white;
}

.sidebar {
    width: 260px;
    background-color: #FFFFFF;
    height: calc(100vh - 60px);
    margin-top: 60px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 1010;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #1A237E;
    transition: all 0.3s ease;
    border-radius: 0;
}

.sidebar .nav-link i {
    color: #6C7EE1;
    margin-right: 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: #E3F2FD;
    font-weight: 500;
}

.sidebar .nav-link.active {
    background-color: #E3F2FD;
    font-weight: 900;
}

.sidebar.collapsed .submenu,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .bi-chevron-down {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar .submenu {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.sidebar .submenu-item {
    padding-left: 2rem;
}

.sidebar .submenu-item:hover {
    background-color: #E3F2FD;
}

.nav-item.open > .submenu {
    display: block;
}

.nav-item.has-submenu .bi-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-item.open .bi-chevron-down {
    transform: rotate(180deg);
}

.content {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    background-color: #E3F2FD;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px - 3rem);
    margin-top: 60px;
    overflow-y: auto;
}

.content .content-container {
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    /*padding-bottom: 1rem;*/
}

.sidebar.collapsed ~ .content {
    margin-left: 80px;
}

.sidebar.collapsed ~ .footer {
    margin-left: 80px;
}

.footer {
    height: 3rem;
    background: #f8f9fa;
    text-align: center;
    margin-top: auto;
    line-height: 3rem;
    margin-left: 260px;
}

.sidebar-toggle {
    cursor: pointer;
    color: #FFFFFF;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        background: rgba(0, 0, 0, 0.4);
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        z-index: 1000;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .content {
        margin-left: 0;
    }

    .page-title {
        display: none;
    }
}

@media (max-width: 576px) {
    .dropdown-menu-messages {
        position: fixed !important;
        top: 60px !important;
        /* Chiều cao topbar */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1060;
        /* Cao hơn topbar nếu cần */
        transform: none !important;
        /* Ngăn Popper.js di chuyển */
    }

    .dropdown-menu-avatar {
        position: fixed !important;
        top: 60px !important;
        /* Chiều cao topbar */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1060;
        /* Cao hơn topbar nếu cần */
        transform: none !important;
        /* Ngăn Popper.js di chuyển */
    }
}

.btn-img-clean {
    background: none;
    border: none;
}

.btn-img-clean > img {
    width: 1rem;
    height: 1rem;
}

.content-header {
    height: 2.5rem;
    display: flex;
    justify-content: space-between;
}

.content-body {
    /*height: calc(100vh - 60px - 3rem - 2.5rem - 30px);*/
}

.content-body-left {
    background-color: #FFFFFF;
    height: calc(100vh - 60px - 3rem - 3rem);
    border-radius: 0.5rem;
}

.content-body-right {
    border-top-color: #1A237E33;
    border-top-width: 1px;
    border-top-style: solid;
    height: calc(100vh - 60px - 3rem - 3rem);
    overflow: auto;
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.content-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.button-with-icon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: none;
    border: none;
    height: 1.5rem;
}

.button-with-icon > img {
    height: 1.2rem;
}

.button-with-icon > span {
    color: #1A237E;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

.button-with-icon:hover span {
    text-decoration: underline;
}

.content-header-select::-ms-expand {
    display: none;
}

.content-header-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: none;
    background-image: url('../images/content_header_select_caret.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    color: #1A237E;
    font: inherit;
    background-color: transparent;
    width: auto !important;
    min-width: unset;
}

.content-header-select:hover {
    background-color: transparent;
    border-color: inherit;
    box-shadow: none;
}

.content-header-select:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

.tef-input {
}

.tef-input-error {
    border-color: #FF0000;
}

.tef-input:hover {
    box-shadow: none;
}

.tef-input:focus {
    outline: none;
    box-shadow: none;
}

.tef-form-label {
    color: #1A237E;
    font-size: 1rem;
}

.tef-form-error {
    color: #FF0000;
    font-size: 0.8rem;
}

/*Custom Input*/
.tef-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.tef-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tef-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.tef-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .tef-slider {
    background-color: #6C7EE1;
}

input:checked + .tef-slider:before {
    transform: translateX(26px);
}

/*Tef table*/
.tef-table {
    color: #1A237E;
}

.tef-table > thead > tr > th {
    font-size: 1rem;
    color: #1A237E;
    vertical-align: middle !important;
}

.tef-table > tbody > tr > td {
    font-size: 1rem;
    vertical-align: middle !important;
}

.tef-table-input {
    border: none;
    border-bottom: rgba(108, 126, 225, 0.4) 1px solid;
}

.tef-table-input:hover {
    box-shadow: none;
}

.tef-table-input:focus {
    outline: none;
    box-shadow: none;
}

.tef-table > tbody > tr > td:last-child {
    width: 1%;
    white-space: nowrap;
}

.tef-table-button {
    background: none;
    border: none;
}

.tef-table-button > img {
    width: 1rem;
    height: 1rem;
}

.tef-table-button-lg > img {
    width: 1.5rem;
    height: 1.5rem;
}

td.fix-content {
    width: 1px;
    white-space: nowrap;
}

th.fix-content {
    width: 1px;
    white-space: nowrap;
}

#tbl-data > thead > tr > th {
    white-space: nowrap;
}

.tef-pagination-wrapper {
    background-color: #FFFFFF;
    height: 3rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

.tef-pagination-wrapper-left {
    display: flex;
}

.tef-pagination-wrapper-left > span {
    align-self: center;
    font-size: 0.85rem;
}

.tef-pagination-wrapper-right {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/*Modal*/
.tef-modal-header {
    background: linear-gradient(to right, #1A237E, #6C7EE1);
    color: white;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.tef-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: all;
    z-index: 10;
}

.tef-overlay .text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    color: #FF0000;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.tef-modal-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FF0000;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

.tef-rotating-icon {
    animation: tef-transform-icon 5s infinite linear;
    display: inline-block;
}

@keyframes tef-transform-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}