﻿/*XỬ LÝ GRID MOBILE LAYOUT*/
@media screen and (max-width: 600px) {
    .toolbarButton {
        display: none !important;
    }

    .dropbtn {
        display: none !important;
    }

    .dropdown-content {
        display: block !important;
        position: relative !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .k-grid table {
        border: 0;
        width: 100%;
        padding-bottom: 10px;
    }

    .k-grid table .k-menu-group {
        flex-flow: row;
    }

    .k-grid table thead, table colgroup {
        display: none;
    }

    .k-grid table tr {
        margin-top: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
        border-radius: 20px;
    }

    .k-grid table tr td:nth-child(1) {
        background-color: #007bff;
        color: #FFF;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        font-weight: bold;
        padding-top: 1em;
        align-self: start !important;
    }

    .k-grid table tr td:nth-child(2) {
        display: none;
    }

    .k-grid table td {
        display: block;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
        text-align: end !important;
    }

    .k-grid table td:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
    }
}

@media screen and (max-width: 800px) {
    .modal-header h4 {
        font-size: 4vw !important;
    }

    .k-window {
        width: 100vw !important;
        left: 0px !important;
    }
}

.btn-func-xem {
    color: #17a2b8;
    padding: 3px !important;
    margin: 0px !important;
}

.btn-func-sua {
    color: #007bff;
    padding: 3px !important;
    margin: 0px !important;
}

.btn-func-xoa {
    color: #dc3545;
    padding: 3px !important;
    margin: 0px !important;
}

.card-title {
    font-size: 0.8rem !important;
}

.paddingWindow {
    padding: 0px !important;
}

label {
    font-weight: 100 !important;
}

.modal-header {
    white-space: nowrap !important;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.topWindowNormal {
    top: 0px !important;
}

.topWindowFull {
    top: 0px !important;
}

.swal2-container {
    z-index: 10072 !important;
}

.swal2-title {
    margin-left: 1em !important;
}

.d-block::after {
    font-family: 'Font Awesome\ 5 Pro';
    content: "\f078";
    color: #fff;
    right: 0px;
    position: absolute;
}

.d-block[aria-expanded="true"]::after {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
}

.d-block {
    position: relative;
}

.input-group input {
    margin-left: auto !important;
}

.modal-content {
    border: 0px !important;
    overflow-x: auto;
    min-width: 400px !important;
}

.k-animation-container, .k-animation-container *, .k-animation-container :after, .k-block .k-header, .k-list-container, .k-widget, .k-widget *, .k-widget :before {
    box-sizing: border-box !important;
}

#divDataContent .container {
    width: auto !important;
}

#reportViewer1 {
    height: 450px;
    font-family: "segoe ui", "ms sans serif";
    overflow: hidden;
    margin: 5px;
}

.text-danger {
    color: red !important;
    /*padding-left: 30px;*/
}

.divTextSearch {
    display: flex !important;
    align-items: center;
}

/*grid tệp đính kèm: Ẩn grid header */
#attachment {
    margin-bottom: 10px;
}

#attachment .k-grid .k-header {
    display: none;
}

/*grid tệp đính kèm: Ẩn grid row line*/
#attachment .k-grid tr td {
    border-width: 0px;
    border-style: none;
}

    /*grid tệp đính kèm: canh trái các nút*/
    #attachment .k-grid tr td a {
        border-width: 0px;
        border-style: none;
    }

#attachment .btnTDK {
    padding-left: 10px;
}

.toast {
    min-width: 350px;
}

.row-high-light {
    color: red !important;
}

.row-warn {
    color: orange !important;
}

.jquery-notific8-notification {
    height: auto;
    max-height: 100px;
}

.k-window {
    z-index: 10060 !important;
    border-radius: .3rem !important;
}

.k-window-titlebar {
    display: none !important;
}

.modal-overflow .modal-body {
    overflow-x: hidden !important;
}

.modal-body-hiday {
    padding-bottom: 70px !important;
}

.modal-footer-hiday {
    text-align: right;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 6px;
    width: 100%;
    background-color: #f8f9fa;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 5px;
    overflow: hidden;
    font-size: 20pt;
    white-space: nowrap;
    border-bottom: 1px solid var(--bs-border-color);
    transition: width 0.3s ease-in-out;
    background-color: transparent;
}

.sidebar-brand .brand-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    width: auto;
}
.brand-link{
    width: 100% !important;
}

.brand-text{
    padding: 10px !important;
    font-weight: 400 !important;
}

.brand-link .brand-image {
    float: left !important;
    line-height: .8 !important;
    margin: 0 !important;
    /*width: 100% !important;*/
    object-fit: contain;
    /*    padding: 10px;*/
    background-color: white;
}

.sidebar-brand .brand-link .brand-image {
    float: left;
    width: auto;
    max-height: 45px;
    /* max-height: 33px; */
    line-height: 0.8;
}

.grid-text-number{
    text-align: right !important;
}

.content-header{
    display: none !important;
}

.func-button{
    padding: 3px 7px  !important;
    margin: 3px 3px !important;
    text-align: center !important;
}

.nav-sidebar .nav-link {
    white-space: normal !important; /* Cho phép xuống dòng */
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important; /* Ngắt dòng nếu quá dài */
}

.btn-insert-nhanh {
    color: green;
    cursor: pointer;
}


.card-body-filter{
    padding: 10px !important;
}

/* Áp dụng cho tất cả bảng Bootstrap */
.table tbody tr:nth-child(4n+1),
.table tbody tr:nth-child(4n+3) {
    background-color: white; /* Màu A */
}

.table tbody tr:nth-child(4n+2),
.table tbody tr:nth-child(4n+4) {
    background-color: whitesmoke; /* Màu B */
}

#idpagebodywrapper{
    min-height: none !important;
}

.content-wrapper{
    min-height: none !important;
}

.btn-func-grid{
    padding: 5px !important;
    margin: 5px !important;
}

.layout-footer-fixed .wrapper .content-wrapper {
    padding-bottom: 0px !important;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: white;
    background-color: #007bff;
}

.main-footer{
    padding: 0px !important;
}