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

.table-sm {
    font-size: 13px;
}

:root {
    --bs-font-sans-serif: "Roboto", sans-serif !important;
    --bs-body-font-size: 13.5px !important;
    /*Project setup css*/
    --project-color: #563896;
    --project-color-rgb: 86, 56, 150;
    --bs-primary: #563896;
    --bs-primary-rgb: 86, 56, 150;
    --bs-link-color: #563896;
}

.text-primary {
    color: rgba(var(--project-color-rgb), var(--bs-text-opacity)) !important;
}

.link-primary {
    --bs-link-color-rgb: var(--project-color-rgb) !important;
    --bs-link-hover-color-rgb: var(--project-color-rgb) !important;
}

.bg-primary {
    background-color: rgba(var(--project-color-rgb), var(--bs-bg-opacity)) !important;
}

.btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--project-color) !important;
    --bs-btn-border-color: var(--project-color) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #392662 !important;
    --bs-btn-hover-border-color: #392662 !important;
    --bs-btn-focus-shadow-rgb: var(--project-color-rgb) !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #392662 !important;
    --bs-btn-active-border-color: #392662 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: var(--project-color) !important;
    --bs-btn-disabled-border-color: var(--project-color) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--project-color) !important;
    --bs-btn-border-color: #563896 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--project-color) !important;
    --bs-btn-hover-border-color: #563896 !important;
    --bs-btn-focus-shadow-rgb: 220, 53, 69 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--project-color) !important;
    --bs-btn-active-border-color: #563896 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: var(--project-color) !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--project-color) !important;
    --bs-gradient: none !important;
}

.bg-cover {
    background-color: #f0f0f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.08'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.btn {
    --bs-btn-font-size: var(--bs-body-font-size) !important;
}

.dropdown-menu {
    --bs-dropdown-font-size: var(--bs-body-font-size) !important;
}

.input-group-sm>.btn,
.input-group-sm>.form-control,
.input-group-sm>.form-select,
.input-group-sm>.input-group-text {
    font-size: var(--bs-body-font-size) !important;
}

.input-group {
    border-radius: 5px;
}

textarea:hover,
textarea:active,
textarea:focus,
a:hover,
a:active,
a:focus,
input:hover,
input:active,
input:focus,
button:hover,
button:active,
button:focus,
label:hover,
label:active,
label:focus,
select:hover,
select:active,
select:focus {
    outline: 0px !important;
    box-shadow: none !important;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Mặc định là mỗi cột 50% */
.row-cols-custom>.col {
    flex: 1 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

/* 2n đại diện cho các phần tử thứ 2, 4, 6 */
.row-cols-custom>.col:nth-child(2n) {
    flex: 1 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

/* (2n+1 đại diện cho các phần tử thứ 1, 3, 5, ...) */
.row-cols-custom>.col:nth-child(2n + 1) {
    flex: 1 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

/* Quy tắc này áp dụng cho phần tử .col lẻ cuối cùng trong .row-cols-custom */
.row-cols-custom>.col:nth-child(odd):nth-last-child(1) {
    flex: 1 0 100%;
    max-width: 100%;
}

.footer-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    /* background-color: #f1f5f9; */
    min-height: 50px;
    padding: 10px 11px 0 11px;
    font-family: monospace;
    border-radius: 10px;
}

.box-scroll-y {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 5px 5px 0 0;
}

.scrollbar-style::-webkit-scrollbar-track,
.box-scroll-y::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #f1f5f9;
}

.scrollbar-style::-webkit-scrollbar,
.box-scroll-y::-webkit-scrollbar {
    width: 6px;
    height: 8px;
    background-color: #f1f5f9;
}

.scrollbar-style::-webkit-scrollbar-thumb,
.box-scroll-y::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #cbd5e1;
}

/*
   * Sidebar
   */

.sidebar-footer {
    position: absolute;
    bottom: 0;
    color: #fff;
    width: 100%;
    border-top: #69696998 1px solid;
}

.sidebar-footer-btn {
    padding: 10px;
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
}

.sidebar-shortcut {
    text-decoration: none !important;
    color: #fff;
    display: block;
    background-color: #99999939;
    padding: 8px;
    border-radius: 10px !important;
}

.sidebar-shortcut .sidebar-shortcut-des {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    color: #ffffff98 !important;
    font-style: italic;
}

.sidebar-shortcut:hover,
.sidebar-footer-btn:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

@media (min-width: 768px) {
    .sidebar {
        min-height: calc(100vh - 8px);
    }

    #sidebarMenu,
    .sidebar .offcanvas-lg {
        /* position: -webkit-sticky;
        position: sticky;
        top: 49px; */
    }
}

.sidebar .nav-link {
    /* font-size: .875rem; */
    font-weight: 500;
}

.sidebar-heading {
    font-size: 0.75rem;
}

/*
   * Navbar
   */

.navbar-brand {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar .form-control {
    padding: 0.75rem 1rem;
}

/*  dropdown menu */

/* .dropdown-menu .dropdown-item {
    font-size: 14px;
} */

.box-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(216, 216, 216, 0.52);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    min-height: 50px;
    border-radius: 5px;
}

.box-loading-overlay::after {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid rgb(216, 216, 216, 0.52);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
    font-size: 13px;
    font-family: monospace;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
}



.timeline-content {
    margin-left: 30px;
    padding-top: 8px;
}

.timeline-date {
    color: #999999;
    font-weight: bold;
}

.timeline-item:first-child .timeline-date {
    color: #0d6efd;
}

.timeline-title {
    font-weight: bold;
}

.timeline-description {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
    margin: 0;
}

.input-group .form-control {
    outline: 0;
    box-shadow: none;
    padding-left: 0.25rem !important;
}

.input-group:has(.form-control:focus) {
    outline: 0;
    /* box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); */
    border: 1px solid var(--bs-primary) !important;
}

.input-group:has(.form-control:focus) i,
.input-group:has(.form-control:focus) input {
    color: var(--bs-primary) !important;
}

/* Color By Status */
.bg-pending {
    background-color: var(--bs-primary-bg-subtle) !important;
}

.text-pending {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.table tbody {
    /* border-top: none !important; */
}

.content-zone {
    height: calc(100vh - 225px);
    overflow-y: auto;
    overflow-x: hidden;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    background: black;
    font-size: 10px;
    color: white;
    padding: 3px 7px;
    border-radius: 5px;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: 0.2s;
    z-index: 9999999999999999;
    white-space: nowrap;
}

[data-tooltip]::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
    opacity: 0;
    transition: 0.2s;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}
.production-viewport{
    height: calc(100vh - 130px);
}