﻿:root {
    --tblr-link-color: #00479b;
    --tblr-body-bg: #F1F1F1;
    --tblr-table-color: #1e293b;
    --tblr-border-radius-scale: 0.8;
    --tblr-breadcrumb-font-size: 10px;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --tblr-gutter-x: calc(var(--tblr-page-padding) * 1.5);
    --tblr-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--tblr-gutter-x)* .3);
    padding-left: calc(var(--tblr-gutter-x)* .3);
    margin-right: auto;
    margin-left: auto;
}

.page-body {
    margin-top: 0px;
    margin-bottom: 0px;
}

.container-xl {
    max-width: 2000px;
}

.dropdown-item, .dropdown-item:hover {
    color: #206bc4;
}

.page-header {
    min-height: fit-content;
}

.form-control {
    font-size: 13px;
}

.e-ddl .e-input, .e-ddl .e-input[readonly], .e-ddl-popup, .e-ddl .e-options {
    font-family: Segoe UI, Helvetica Neue, Ubuntu, Arial;
    font-size: 13px !important;
    font-weight: normal;
    cursor: default;
}

.form-control-text {
    display: block;
    padding-top: calc(.5625rem + var(--tblr-border-width));
    padding-bottom: calc(.5625rem + var(--tblr-border-width));
    margin-bottom: 0;
    color: #1e293b;
    background-color: transparent;
    border: solid transparent;
    border-width: 1px 0;
}

.col-form-label {
    font-size: .75rem;
}

.form-label {
    font-size: .75rem;
}

@media (min-width: 768px) {
    .d-md-inline-flex {
        display: inline-flex !important;
    }
}

.hidden {
    display: none !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.card {
    --tblr-card-cap-padding-y: 0.9rem;
}

.card-title {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1rem;
}

.card-stamp {
    opacity: 0.2;
}

.card-stamp-icon {
    position: initial;
}

.card-actions {
    display: inline-flex !important;
}

    .card-actions .dropdown {
        align-content: center;
    }

    .card-actions > div {
        display: inline-flex;
    }

.subheader {
    font-size: .725rem;
    font-weight: 700;
    color: #626976;
}

.ribbon {
    font-size: 0.8rem;
}

.markdown > table thead th, .table thead th {
    font-size: .725rem;
    font-weight: 700;
}

@media (min-width: 992px) {
    .form-group label {
        text-align: right;
    }
}

label.form-check {
    text-align: left;
}

.form-check-input {
    margin-top: 0.1rem;
    border-color: #b3b7bd;
}

.form-check-input-small {
    width: 1rem;
    height: 1rem;
    margin-left: -1.3rem !important;
}

.btn > i {
    padding-right: 4px;
}

.btn-icon > i {
    padding-right: 0px;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: .80rem;
    border-radius: 2px;
}

.btn.dropdown-toggle.dropdown-toggle-split {
    border: 1px solid #d0d0d0;
}

.btn-sm {
    border-radius: 4px;
}

.search-panel {
    margin-bottom: 10px;
}

.card-actions > .search-panel {
    margin-bottom: 0px;
    display: inline-flex;
}

.group-row {
    background-color: rgb(250,251,252) !important;
    font-weight: 700;
}

.error {
    color: #b22222;
}

/*
    * Table
*/

.table-label {
    text-align: right;
    font-weight: 500;
}

.table td, .table th {
    vertical-align: middle;
}

    .table td p {
        margin-bottom: 0;
    }

.table-scroll {
    position: relative;
}

    .table-scroll > thead {
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .table-scroll > th {
        position: sticky;
        background: #4263eb !important;
        color: #fff !important;
        top: 0;
    }

.border-left-dark {
    /*border-left-color: #182433 !important;*/
    border-left-width: 5px !important;
}

.group-row {
    font-weight: bold;
}

.total-row {
    font-weight: bold;
    background-image: linear-gradient(to right, #0063B1, #0078D7) !important;
    color: #fff !important;
}

    .total-row td {
        text-align: center;
        border-color: #fff;
        color: #fff !important;
    }

    .total-row a {
        color: #fff !important;
    }

.text-out-term, .text-out-term a {
    color: #b22222 !important;
    font-weight: 600;
    text-align: center;
}

.text-in-term {
    color: #206bc4 !important;
    font-weight: 600;
    text-align: center;
}

.text-middle {
    vertical-align: middle;
}

.text-bold {
    font-weight: 500 !important;
}

.text-justify {
    text-align: justify !important
}

.hidden {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

.small-box h3 a {
    color: #fff !important;
}

@media (min-width: 992px) {
    .navbar-vertical.navbar-expand-lg {
        width: 16rem;
    }

    .navbar-expand-lg.navbar-vertical ~ .navbar, .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 16rem;
    }

    .navbar-expand-lg.navbar-vertical ~ .navbar, .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 16rem;
    }
}

.navbar-dark {
    background-image: linear-gradient(to right, #2B579A, #0070C0);
    color: #fff;
}

    .navbar-dark .navbar-nav .nav-link {
        color: #fff;
    }

.navbar .nav-link.active {
    font-weight: 600;
    color: rgba(var(--tblr-dark-rgb), var(--tblr-text-opacity)) !important;
}

.eoffice-nav-item {
    font-weight: 600;
}

.mr-3, .mx-3 {
    margin-right: 0.5rem !important
}

.avatar {
    width: inherit;
    height: var(--tblr-avatar-size);
    border: none !important;
    object-fit: cover;
}

.avatar-sm {
    height: 3rem;
    width: 2.5rem;
}

.avatar-md {
    height: 4rem;
    width: 3.4rem;
}

.avatar-lg {
    height: 6rem;
    width: 4.5rem;
}

.avatar-xs {
    width: 2.5rem;
    height: 2.5rem;
}

.blue-header {
    background-image: linear-gradient(to right, #0063B1, #0078D7);
    color: #fff;
}

.text-white .subheader {
    color: #fff;
}

.purple-header {
    background-image: linear-gradient(to right, #744DA9, #6B69D6);
    color: #fff;
}

.orange-header {
    background-image: linear-gradient(to right, #CA5010, #F7630C);
    color: #fff;
}

@media (min-width: 992px) {
    .d-lg-table-cell {
        display: table-cell;
    }
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-container .select2-selection--single {
    height: 33px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 33px !important;
}

.select2-container--open {
    z-index: 9999999999999;
}

.select2-results__option--selectable {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    font-size: 12px;
}

.input-group {
    display: inline-flex;
    flex-wrap: nowrap;
}

.select2.select2-container.select2-container--default {
    flex: 1 0 0%;
}

    .select2.select2-container.select2-container--default.select2-container--below.select2-container--focus {
        padding-right: 0;
    }

.input-group > .select2-container--default .select2-selection--multiple {
    border: 1px solid rgba(0, 0, 0, .2) !important;
}



.input-group > .select2-container--default .select2-selection--multiple {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
    color: unset;
}

.text-right {
    text-align: right !important;
}

.text-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.table-sm > :not(caption) > * > * {
    padding: .4rem .4rem;
}

#btnScroll {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    cursor: pointer; /* Add a mouse pointer on hover */
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e5e5e5;
    line-height: 50px;
    text-align: center;
    border-radius: 3px;
}

    #btnScroll:hover {
        background-image: linear-gradient(to right, #2B579A, #0070C0);
        color: #fff;
    }

.highcharts-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.tags-list {
    --tblr-list-gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--tblr-list-gap);
}

.tag {
    --tblr-tag-height: 1.5rem;
    border: 1px solid var(--tblr-border-color);
    display: inline-flex;
    align-items: center;
    height: var(--tblr-tag-height);
    border-radius: var(--tblr-border-radius);
    padding: 0 .2rem;
    background: var(--tblr-bg-surface);
    box-shadow: var(--tblr-box-shadow-input);
    gap: .2rem;
}

.tag-avatar, .tag-check, .tag-flag, .tag-icon, .tag-payment {
    margin-left: -.1rem;
    width: 1.3rem;
    height: 1.3rem;
}

    .tag-avatar > .badge:empty {
        width: .3rem;
        height: .3rem;
    }

.chat-bubble {
    background: #E5EFFF;
    border-radius: var(--tblr-border-radius-lg);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    padding: .7rem;
    position: relative;
}

.chat-bubble-title {
    margin-bottom: .25rem;
}

.chat-bubble-author {
    font-weight: 600;
}

.chat-bubble-date {
    color: var(--tblr-secondary);
}

.chat-bubble-body img {
    max-height: 40vh;
    width: fit-content !important;
}

.chat-bubble-body p {
    margin-bottom: 0;
}


.pdfobject-container {
    height: 100%;
    min-height: 80vh;
    border: 1px solid #ccc;
}

.note-btn {
    padding: 0.2rem 0.5rem !important;
    font-size: .6rem !important;
}

.note-editable {
    padding: 1px 10px 5px 10px !important;
}

.note-editor .note-toolbar > .note-btn-group, .note-popover .popover-content > .note-btn-group {
    margin-top: 1px;
}

.note-editor .note-toolbar, .note-popover .popover-content {
    padding: 0 0 5px 1px;
}

.note-editable p {
    margin-bottom: 0px;
}

.blockquote {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.blockquote-footer {
    margin-top: 0rem;
}

:not(.col) > .ts-control {
    --tblr-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-image: var(--tblr-form-select-bg-img), var(--tblr-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    line-height: 22px;
}

.col > .ts-control {
    line-height: 23px;
}

.ts-control > * {
    font-weight: initial;
}

.ts-dropdown [data-selectable].option {
    font-weight: initial;
}

.ts-wrapper.single input {
    min-width: 1rem !important;
}

.ts-wrapper.single .item {
    white-space: nowrap; /* Không xuống dòng */
    overflow: hidden; /* Ẩn phần nội dung tràn ra */
    text-overflow: ellipsis; /* Hiển thị dấu "..." nếu bị cắt */
}

/*.input-group .ts-control {
    border: none;
    padding: 0;
}

.input-group .ts-wrapper {
    padding: 4px;
    min-height: 35px;
}

.ts-control {
    border: none;
    padding: initial;
}

.ts-wrapper:not(.form-control, .form-select).single .ts-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select:not(.single-select) {
    font-size: 13px;
    padding: .5rem 1.5rem .55rem .7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-position: right 0.5rem center;
}



.ts-dropdown .option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}*/

.btn.dropdown-toggle-split {
    border-radius: 4px;
}

.notification-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-comment.ui-draggable {
    width: 150px !important;
    height: fit-content !important;
}

.pdf-comment > .ui-resizable-handle {
    display: none !important;
}

.air-datepicker-global-container {
    z-index: 999999;
}

.birthday-card {
    background-color: #fff;
    background-image: url('/Content/img/bg-birthday-transparent.png');
    background-position: right bottom;
    background-repeat: no-repeat;
}

    .birthday-card .box-body {
        height: 80%;
        background: transparent;
        padding: 0;
        border-radius: 0px;
    }


.task-table th, .task-table td {
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: .3rem .3rem;
}

.task-table table {
    position: relative;
}

.task-table th {
    position: sticky;
    top: 0;
}

.task-table thead {
    position: sticky;
    top: 0;
    z-index: 200;
}

.task-table td.chua-thuc-hien-trong-han {
    background-color: rgba(214,57,57, 0.1) !important;
    text-align: center;
}

.task-table a.chua-thuc-hien-trong-han {
    color: rgba(32,107,196, 1) !important;
    font-weight: 500;
}

.task-table td.chua-thuc-hien-qua-han {
    background-color: rgba(214,57,57, 0.1) !important;
    text-align: center;
}

.task-table a.chua-thuc-hien-qua-han {
    color: rgba(254,57,57, 1) !important;
    font-weight: 500;
}


.task-table td.dang-thuc-hien-trong-han {
    background-color: rgba(245,159,0, 0.1) !important;
    text-align: center;
}

.task-table a.dang-thuc-hien-trong-han {
    color: rgba(245,159,0, 1) !important;
    font-weight: 500;
}

.task-table td.dang-thuc-hien-qua-han {
    background-color: rgba(245,159,0, 0.1) !important;
    text-align: center;
}

.task-table a.dang-thuc-hien-qua-han {
    color: rgba(254,57,57, 1) !important;
    font-weight: 500;
}

.task-table a.da-thuc-hien-trong-han {
    color: rgba(47,179,68, 1) !important;
    font-weight: 500;
}

.table-responsive {
    max-height: 75vh;
}

    .table-responsive table {
        position: relative;
    }

    .table-responsive th {
        position: sticky;
        background: #F6F6F6 !important;
        top: 0;
    }

    .table-responsive tr.total-row > th {
        position: sticky;
        background: #eeeffc !important;
        color: #436fca !important;
        font-size: 11px;
        top: 0;
    }

    .table-responsive thead {
        position: sticky;
        top: 0;
        z-index: 200;
    }

.fixed-col {
    position: sticky;
    left: 0px;
    z-index: 200 !important;
}

#overlayLoading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* nền trắng, độ mờ 0.9 */
    z-index: 99999;
    text-align: center;
    color: #333; /* đổi chữ sang màu đậm để dễ đọc trên nền trắng */
}

    #overlayLoading .loader {
        margin: 20% auto 10px;
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }

    #overlayLoading .loading-text {
        font-size: 18px;
        font-weight: bold;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}