﻿html {
    height: 100%; /* fit-content;*/
}
body {
    height: 100%;
    font-family: manrope,sans-serif;
    font-weight: 500;
    font-style: normal;
    overflow-x: hidden;
    font-size: 14px;
}

a {
    text-decoration: none;
}

a:hover {
    color: orange
}

.nav-link:hover {
    color: orange
}

main > .container, main > .container-fluid {
    padding: 83px 15px 20px;
}

button > span {
    pointer-events: none;
}


.tkc-card {
    font-size: 17px;
    font-weight: 600;
    color: #081828;
    border: 2px solid #f0f0f0;
    padding: 5px 5px;
    margin-top: 15px;
}

.tkc-card-heading {
    font-size: 17px;
    font-weight: 600;
    color: #081828;
}

    .tkc-card-heading > a {
        color: #081828;
    }

        .tkc-card-heading > a:hover {
            color: #144afd;
        }


.tkc-card-image {
}

.tkc-card-info {
    font-size: 14px;
    color: #888;
    font-style: normal;
    font-weight: normal;
    padding-top: 3px;
}

.tkc-price {
    font-size: 17px;
    font-weight: 700;
    color: #0167f3;
    display: inline-block;
}

.tkc-discount-price {
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
    display: inline-block;
}

.tkc-pagination {
}

.tkc-grid-cell-header {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.ic-grid-body-container {
    min-height: 200px;
    max-height: 350px;
    table-layout: fixed;
    width: max-content;
    overflow: auto;
}

.tkc-grid-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.page-link {
    border: none;
    cursor: pointer;
}

.tkc-form-control {
    outline: none;
}

.tkc-grid-header {
    background-image: linear-gradient(to bottom,#e6e3e3 0,#f5f5f5 100%);
    background-repeat: repeat-x;
    line-height: 32px;
}

.tkc-active-cell {
    outline: 1px solid #049595;
}


.tkc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    align-content: center;
    text-align: center;
    display: none;
    overflow: scroll;
    z-index: 1040;
}


.ic-form-label-part {
    width: 150px;
}
@media screen and (max-width: 800px) {
    .ic-form-label-part {
        width: 100%;
    }
}

/* Catalog */
.tkc-catalog-header {
    border-bottom: none !important;
    background-image: linear-gradient(#bfeefb, #edfdff);
}

.tkc-catalog-toolbar {}
.tkc-catalog-body {
    overflow-x: auto;
    overflow-y: auto;
}
    .tkc-catalog-body > table {
        table-layout: fixed;
        width: max-content;
        display: block;
    }
.tkc-catalog-footer {
}
.tkc-catalog-action {
    align-content: center;
    text-align: center;
    display: block;
    width: 100%;
}
.tkc-catalog-row {
    background-color: aliceblue;
}
    .tkc-catalog-row.highlight td {
        background-color: yellow;
    }

.tkc-catalog-detail {
    border: 1px solid gray;
}

.tkc-catalog-paging-info {}

/* End Catalog */


.tkc-grid-header {
    background-color: #e7f1ff;
    border-bottom: none !important;
    background-image: linear-gradient(#bfeefb, #edfdff);
}

.tkc-grid-toolbar {
    background-color: #e7f1ff
}

.tkc-grid-body {
    overflow-x: scroll;
}

    .tkc-grid-body > table {
        table-layout: fixed;
    }

.tkc-grid-footer {
    margin-top: 3px;
    background-image: linear-gradient(to top,#e6e3e3 0,#f9f9f9 100%);
}

.tkc-grid-action {
    background: rgba(160, 160, 160, 0.5);
    align-content: center;
    text-align: center;
    display: block;
    width: 100%;
}

.tkc-grid-row {
    background-color: aliceblue;
}

.tkc-grid-detail {
    border: 1px solid gray;
}


.tkc-context-menu {
    position: absolute;
    border: 1px solid #82c2c2;
    min-width: 200px;
}
    .tkc-context-menu ul, li {
        list-style: none;
        margin: 0;
        padding: 0;
        background: white;
    }
    .tkc-context-menu li {
        border-bottom: 1px solid gray;
    }
    .tkc-context-menu li:last-child {
        border-bottom: none;
    }
        .tkc-context-menu li > button {
            text-align: left !important;
        }


.modal-dialog.modal-xl {
    width: 99% !important;
    margin: 0 0;
}

.modal-dialog.modal-lg {
    width: 99% !important;
    margin: 0 0;
}

.modal-dialog.modal-md {
    width: 99% !important;
    margin: 0 0;
}

@media (min-width: 576px) {
    .modal-dialog.modal-xl {
        width: 95% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-lg {
        width: 90% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-md {
        width: 85% !important;
        margin: 0 0;
    }
}

@media (min-width: 768px) {
    .modal-dialog.modal-xl {
        width: 85% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-lg {
        width: 80% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-md {
        width: 75% !important;
        margin: 0 0;
    }
}

@media (min-width: 992px) {
    .modal-dialog.modal-xl {
        width: 70% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-lg {
        width: 65% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-md {
        width: 60% !important;
        margin: 0 0;
    }
}

@media (min-width: 1200px) {
    .modal-dialog.modal-xl {
        width: 50% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-lg {
        width: 45% !important;
        margin: 0 0;
    }

    .modal-dialog.modal-md {
        width: 40% !important;
        margin: 0 0;
    }
}

.tkc-modal-dialog {
    padding-top: 81px;
    padding-bottom: 81px;
    z-index: 1000000;
}
.tkc-modal-content {
    text-align: left;
    /*margin: 60px 0 30px 0; */
}

.tkc-index-0 {
    z-index: inherit;
}

.tkc-section {
    padding: 10px 5px 30px 5px;
    position: relative;
    border-radius: 5px;
}

.tkc-section-title {
    font-size: 30px;
    line-height: 35px;
    text-transform: capitalize;
    font-weight: 800;
    position: relative;
}

    .tkc-section-title p {
        font-size: 14px;
        color: #888;
        font-style: normal;
        font-weight: normal;
    }

.tkc-img-thumbnail {
    width: 201px;
    height: 204px;
}

.tkc-light {
    background-color: #f9f9f9;
}

.tkc-hightlight {
    background-color: #fafa8e;
}

.tkc-form-header {
    height: 40px;
    background-image: linear-gradient(to bottom,#e6e3e3 0,#f5f5f5 100%);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
}

.tkc-form-item {
    /*structure for input element in form*/
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #82c2c2;
    margin: 0 0 5px 5px;
    padding: 0 0;
    background-color: #fff;
}

.tkc-form-item-1 {
    /*structure for input element in form*/
    outline: none;
    border: 1px solid #82c2c2;
    padding: 1px;
    background-color: #fff;
}

.tkc-form-item-require {
    border-bottom: 1px solid orange;
}
    .tkc-form-item-require:focus {
        box-shadow:inset 1px 1px 1px 1px orange;
    }

.tkc-form-statusbar {
    padding: 2px 5px 2px 5px;
    background-color: beige;
}

.tkc-form-taskbar {
    background-color: #f9f9f9;
    padding: 10px 0 10px 0;
}
    .tkc-form-taskbar > button {
        margin-left: 10px !important;
    }

.tkc-main-container {
    margin-top: 3px;
    padding-bottom: 25px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}
.tkc-form-footer {
    height: 5px;
    background-image: linear-gradient(to top,#e6e3e3 0,#f5f5f5 100%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}


.tkc-input-item {
    /*structure for input element in form*/
    border-bottom: 1px solid #82c2c2;
    margin: 0;
    padding: 0;
    background-color: #fff;
}


.tkc-input-item-require {
    border-bottom: 1px solid orange;
}

    .tkc-input-item-require:focus {
        box-shadow: inset 0 0 1px 0 orange;
        border-bottom: 1px solid orange;
    }

.tkc-input-item-date:not(:focus)[value=""] {
    color: transparent;
}

.tkc-input-item-date:focus {
    color: black !important;
}

button.tkc-input-item:focus-visible {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.ic-text-uppercase {
    text-transform: uppercase;
}

.tkc-ctr-text {
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tkc-ctr-date {
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tkc-ctr-number {
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tkc-ctr-combo {
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tkc-ctr-reference {
    outline: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tkc-ctr-check {

}

.tkc-autocomplete {
    position: absolute;
    z-index: 9999;
    background: white;
    border: 1px solid #ccc;
    max-height: 260px;
    overflow-y: auto;
    font-size: 13px;
}

.tkc-autocomplete-table {
    width: 100%;
    border-collapse: collapse;
}

.tkc-autocomplete-row {
    cursor: pointer;
}

    .tkc-autocomplete-row td {
        padding: 5px 8px;
        border-bottom: 1px solid #f1f1f1;
        white-space: nowrap;
    }

    .tkc-autocomplete-row:hover {
        background-color: #e6f0ff;
    }

    .tkc-autocomplete-row.active {
        background-color: #b9f0ff;
    }

.tkc-autocomplete-code {
    width: 120px;
    /*font-weight: 600;*/
}

.tkc-autocomplete-name {
    width: auto;
}



/* ============ desktop view ============ */
.dropdown-menu {
    width: fit-content;
}
@media all and (min-width: 992px) {

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-menu .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .dropdown-menu .submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu > li:hover {
        background-color: #f1f1f1
    }

        .dropdown-menu > li:hover > .submenu {
            display: block;
        }
}
/* ============ desktop view .end// ============ */

/* ============ small devices ============ */
@media (max-width: 991px) {

    .dropdown-menu .dropdown-menu {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: .5rem;
    }
}
/* ============ small devices .end// ============ */


.navbar .megamenu {
    padding: 1rem;
}

/* ============ desktop view ============ */
@media all and (min-width: 992px) {

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
    }
}
/* ============ desktop view .end// ============ */


/* ============ mobile view ============ */
@media(max-width: 991px) {
    .navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }
}
/* ============ mobile view .end// ============ */


.tkc-apptop {
    background-image: linear-gradient(#cdcccc, #f1f1f1);
}

.tkc-apptaskbar {
    position: fixed;
    width: 100%;
    bottom: 37px;
    padding-left: 10px;
    padding-right: 10px;
    height: 1px;
}

.tkc-appbottom {
    background-image: linear-gradient(#cdcccc, #f1f1f1);
    width: 100%;
    padding: 2px;
}

.tkc-navbar {
    background-color: beige;
}


/* === Tabs === */
.tkc-tabs-container {
}

.tkc-tabs-nav {
    background-color: beige;   
}

.tkc-tab-active {
    border-bottom: none !important;
    background-image: linear-gradient(#bfeefb, #edfdff);
}
/* === End Tabs === */

/* === Task bar === */
.tkc-task-nav {
    background-image: linear-gradient(#edfdff, #bfeefb);
}
.tkc-task-dropdown {
    display: inline-block;
    width: 10px;
    height: 10px;
}
.tkc-task-group{
    text-align: left;
    border: none;
    padding-left: 0px;
}
.tkc-task-button {
    padding-left: 0.5em;
}
    .tkc-task-button span {
        pointer-events: none;
    }

    .tkc-task-button:hover {
        background-color: antiquewhite;
    }

.tkc-arrow {
    border: solid black;
    border-width: 0 2px 2px 0;
    margin: 3px 3px 3px 0px;
}

.tkc-arrow-right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.tkc-arrow-left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.tkc-arrow-up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.tkc-arrow-down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
/* === End Tabs === */



.tkc-table > thead > tr {
    height: 32px;
}

    .tkc-table > thead > tr > th > input {
        width: 100%;
        border: none;
        background: none;
        overflow: hidden;
        text-align: center;
    }
    .tkc-table > thead > tr > th {
        box-shadow: inset 0px 0px, 2px 0px lightgray;
        padding: 5px;
        font-weight: normal;
        position: relative;
    }

.tkc-table > tbody > tr > td > input {
    width: 100%;
    border: none;
    background: none;
    overflow: hidden;
    padding: 5px;
}
.tkc-table > tbody > tr > td > .input-group > input {
    border: none;
    background: none;
    overflow: hidden;
    padding: 5px;
}


.tkc-table-resizer {
    /* Displayed at the right side of column */
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    cursor: col-resize;
    user-select: none;
}
.tkc-table-resizer:hover,
.tkc-table-resizing {
    border-right: 2px solid beige;
}

.tkc-table-hover > tbody > tr:hover {
    background-color: #e1ffff;
}

.tkc-table > tbody > tr > td {
    padding: 0;
}
.tkc-table .input-group > input {
    border: none;
    background-color: transparent;
    height: 100%;
}

.tkc-active-row {
    background-color: #b9f0ff;
}
.tkc-active-cell {
    background-color: #b9f0ff;
}

.tkc-task-hover:hover {
    background-color: #e1f7fd;
    color: #1e3042;
}

/*.tkc-table > thead > tr > td > div {
    resize: both;
    overflow: hidden;
    min-height: 30px;
    max-height: 30px;
    margin: 0px;
    padding: 3px;
    display: block;
}*/

.tkc-control-tip {
    display: block;
    position: relative;
}

.tkc-tag-require {
    width: 5px;
    margin-left: -10px;
    visibility: visible;
    color: red;
    border: none;
    position: absolute;
    z-index: 1;
    transition: opacity 0.5s;
}

.tkc-grid-item {
    /*structure for input element in form*/
    outline: none;
    border: none;
    padding: 0 0 0 5px;
}


.tkc-cell-content {
    border-bottom: 2px solid darkgray;
}
.tkc-cell-content-header {
    
}
.tkc-cell-content-body {
    margin: 0;
    padding: 0 0 30px 2px;
    background: #f8f8f8;
    border-bottom: 2px solid darkgray;
}

.tkc-context-catalog {
    margin: 0;
    border-top: 1px solid #e6e3e3;
    border-bottom: 1px solid #e6e3e3;
}

.tkc-lookup-group {
    position: relative;
    font-size: small;
    margin-bottom: 10px;
}

.tkc-form-subitem {
    margin-top: -3px;
    margin-left: 22px;
    position: absolute;
    font-size: smaller;
}

.tkc-footer{
    height: 25px;
}

.tree-selected {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text) !important;
    border-radius: 4px;
}


/* ===== SIDEBAR DESKTOP ===== */
.tkc-sidebar {
    display: none;
    width: 250px;
    background: #f8f9fa;
    /*height: calc(100% - 80px);*/ /*Sử dụng scroll chung của toàn bộ page*/
    position: sticky;
    top: 0;
    transition: width 0.2s ease;
    overflow: hidden;
    flex-direction: column;
}

    .tkc-sidebar.mini {
        width: 60px;
    }
    .tkc-sidebar.show {
        display: flex;
    }

.tkc-sidebar-header {
    border-bottom: none !important;
    background-image: linear-gradient(#bfeefb, #edfdff);
}

.tkc-sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
    .tkc-sidebar-body::-webkit-scrollbar {
        width: 6px;
    }

    .tkc-sidebar-body::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

/* ===== SIDEBAR MOBILE ===== */
@media (max-width: 991.98px) {
    .tkc-sidebar {
        position: fixed;
        top: 80px;
        left: -260px;
        width: 260px;
        height: calc(100% - 80px); /* Sử dụng scroll bar riêng của sidebar */
        background: #fff;
        z-index: 1050;
        transition: left 0.3s ease;
    }

        .tkc-sidebar.show {
            left: 0;
        }

    .tkc-overlay.show{
        display: block;
    }
}

.tkc-menu-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tkc-submenu {
    display: none;
    padding-left: 15px;
}

.has-children.open .tkc-submenu {
    display: block;
}

.tkc-sidebar-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    z-index: 1060;
}

    /* hover cho dễ thấy */
    .tkc-sidebar-resizer:hover {
        background: rgba(0,0,0,0.1);
    }



/* TOPBAR MENU */
.topbar{
    z-index: 1100;
}
@media (max-width: 991.98px) {
    #topNavbar {
        text-align: right;
    }
    .navbar-nav .nav-item {
        border: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}
