﻿body {
    color: rgb(62, 67, 87);
    background-attachment: fixed;
    background-size: cover;
}

body, .form-control, .btn {
    font-size: 0.8rem;    
}

p, .nav-item {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.uri-container {
    background-color: #F3F0EE !important;
    padding: 10px;
}

.site-footer {
    border-top: 1px solid #dee2e6;
    position: fixed;
    bottom: 0;
    background-color: white;
    margin-bottom: 0;
    padding: 0.4rem 0.8rem 0.4rem 0.4rem;
}

.navbar {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.8rem 0 0.8rem;
}

    .navbar .nav-link[data-toggle="dropdown"]::after {
        content: " ↆ";
    }

    nav .dropdown-menu {
        font-size: 1rem;
        padding: 0 0 0 0;
        top: 1.2vh;
        border-top: 1px solid white;
        border-radius: 0;
    }

nav a {
    color: black;
}

a:hover {
    text-decoration: none;
}

input, .btn, select {
    font-size: 1em!important;
}

.form-group input, .form-group .btn, .form-group select {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

input:focus, button:focus, textarea:focus, select:focus, .select2-container--default.select2-container--focus .select2-selection--multiple {
    outline: none !important;
    box-shadow: none !important;
}

.btn {
    min-width: 0.8rem;
}

.btn-only-i {
    min-width: 0;
}

.btn i, .btn .spinner-border {
    margin-right: 0.5rem;
}

.btn-group-sm i, .btn-only-i i {
    margin-right: 0;
}

.btn-group-sm .btn {
    min-width: 0;
}

.area-alert {
    display: block;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translate(-50%, 0);
    right: 1.5rem;
    z-index: 9999;
    width: 20%;
    min-width: 300px;
}

    .area-alert .alert {
        display: flex;
        align-items: center;
        padding: 0rem 0.5rem;
    }

    .area-alert i {
        font-size: 2rem;
        line-height: 1.5;
        margin-right: 0.8rem;
    }

.preloader {
    position: fixed;
    margin: 0 0 0 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 200 200\"><rect fill=\"%235B76FF\" stroke=\"%235B76FF\" stroke-width=\"10\" width=\"30\" height=\"30\" x=\"25\" y=\"50\"><animate attributeName=\"y\" calcMode=\"spline\" dur=\"1\" values=\"50;120;50;\" keySplines=\".5 0 .5 1;.5 0 .5 1\" repeatCount=\"indefinite\" begin=\"-.4\"></animate></rect><rect fill=\"%235B76FF\" stroke=\"%235B76FF\" stroke-width=\"10\" width=\"30\" height=\"30\" x=\"85\" y=\"50\"><animate attributeName=\"y\" calcMode=\"spline\" dur=\"1\" values=\"50;120;50;\" keySplines=\".5 0 .5 1;.5 0 .5 1\" repeatCount=\"indefinite\" begin=\"-.2\"></animate></rect><rect fill=\"%235B76FF\" stroke=\"%235B76FF\" stroke-width=\"10\" width=\"30\" height=\"30\" x=\"145\" y=\"50\"><animate attributeName=\"y\" calcMode=\"spline\" dur=\"1\" values=\"50;120;50;\" keySplines=\".5 0 .5 1;.5 0 .5 1\" repeatCount=\"indefinite\" begin=\"0\"></animate></rect></svg>");
    background-repeat: no-repeat;
    background-size: 5rem;
    background-position: center;
    pointer-events: auto;
    cursor: wait;
}

.btn-group-sm .btn {
    margin: 0 0 0 0;
}

.form-control, .custom-select, .btn, .alert, .btn-group-sm > .btn, .btn-sm, .card {
    border-radius: 0;
}

.btn-outline-gray {
    background-color: rgb(247, 247, 247);
    border: 1px solid #ced4da;
    color: rgb(62, 67, 87);
}

    .btn-outline-gray:hover {
        background-color: rgb(230, 230, 230);
        border: 1px solid #ced4da;
        color: rgb(62, 67, 87);
    }

.btn-gray {
    background-color: rgb(230, 230, 230);
    border: 1px solid #ced4da;
    color: rgb(62, 67, 87);
}

.modal-right {
    position: fixed;
    right: 0;
    min-height: 100%;
    margin: 0 0 0 0;
}

    .modal-right .modal-content {
        position: absolute;
        height: 100%;
    }

.modal-dialog {
        max-width: 100%;
    }

    .modal-dialog .modal-content {
        border-radius: 0;
        border: 0;
    }

    .modal-dialog .modal-header {
        padding: 0.4rem 0.8rem;
        border-radius: 0 0 0 0;
        background-color: #F7F7F7;
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    }

    .modal-dialog .modal-footer {
        padding: 0 0 0 0;
        padding-right: 0.8rem;
        border-radius: 0 0 0 0;
    }

    .modal-dialog .modal-body {
        overflow-y: auto;
    }

.modal-header .modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2.35rem;
}

.page-content {
    margin-bottom: 2rem;
}

.table {
    border: 1px solid #ced4da;
    margin-bottom: 0;
    color: rgb(62, 67, 87);
}

.table thead {
    background-color: rgb(247, 247, 247);
}

    .table thead th {
        border-bottom: 1px solid #ced4da;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }

    .table td, .table th {
        border-bottom: 1px solid #ced4da;
        padding: 1rem 0.5rem 1rem 0.5rem;
        vertical-align: middle;
        font-weight: normal;
        border-top: none;
    }

.form-inline .search-input {
    width: 10%;
}

.search-input-250 {
    width: 15%;
}

.form-inline .date-input {
    width: 6%;
    min-width: 110px;
}

.pagination {
    border-radius: 0;
    color: #414956;
}

    .pagination a {
        color: #414956;
    }

    .pagination .page-link {
        border-color: #414956;
    }

    .pagination .page-item .page-link:first-child, .pagination .page-item .page-link:last-child {
        border-radius: 0;
    }

    .pagination .record-text {
        padding: .5rem .75rem;
    }

    .pagination .page-item.disabled .page-link {
        color: #414956;
        border-color: #414956;
    }

    .pagination .page-item.active .page-link {
        background-color: #414956;
        border-color: #414956;
    }

    .pagination .page-item .page-link:hover {
        color: white;
    }

    .required::after {
        color: red;
        margin-left: 0.5rem;
        content: "⁕";
    }

.breadcrumb {
    border-radius: 0;
    margin-top: 0.8rem;
    margin-bottom: 0;
    padding: .5rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
}

.datepicker {
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    font-family: inherit;
    z-index: 9999;
}

.flex-right {
    justify-content: flex-end;
}

.bg-pink {
    background-color: #414956!important;
    color: white;
}

    .bg-pink th {
        background-color: #414956 !important;
        border-color: #414956 !important;
    }

table thead tr th {
    font-weight: bold!important;
}

/*Check box*/
/* Customize the label (the container) */
.container-checkbox {
    display: block;
    position: relative;
    padding-left: 27px;
    margin-top: 2px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default checkbox */
    .container-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 5px;
    left: 0;
    height: 20px;
    width: 22px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox input:checked ~ .checkmark {
    background-color: #414956;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/*Scrollbar*/
/*::-webkit-scrollbar {
    width: 0.2%;
    min-width: 5px;
}*/

/* Track */
/*::-webkit-scrollbar-track {
    background: #f1f1f1;
}*/
/* Handle */
/*::-webkit-scrollbar-thumb {
    background: rgb(247, 247, 247);
}*/
    /* Handle on hover */
    /*::-webkit-scrollbar-thumb:hover {
        background-color: #343a40;
    }*/

.col-1st input, .col-2nd input, .col-1st select {
    flex: 1 1 auto;
}

.form-group {
    margin-bottom: 0;
}

.datepicker-dropdown {
    z-index: 9999!important;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    width: auto;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 0.4rem;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        .autocomplete-items div:hover {
            /*when hovering an item:*/
            background-color: #e9e9e9;
        }

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.btn-pink {
    color: white;
    background-color: #414956;
}

    .btn-pink:hover {
        background-color: #343a40;
        color: white;
    }

    .btn-pink:disabled {
        color: white;
        background-color: #414956;
    }

.text-pink {
    color: #414956!important;
}

    .text-pink:hover {
        color: #343a40!important;
        transition: 2s;
    }

.init-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    color: #414956;
    text-align: center;
    padding-top: 20vh;
}

.content-view {
    display: none;
}

.dropdown-menu {
    border-radius: 0;
    font-size: 1em;
    min-width: 15rem;
    padding: 0;
}

.dropdown-menu-select {
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

    .dropdown-menu-select thead {
        position: sticky;
        top: 0;
    }

    .dropdown-menu-select th, .dropdown-menu-select td {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem !important;
    }

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.input-dropdown, .date-input, .custom-select, .select2-container--default .select2-selection--multiple {
    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 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    background-size: 0.85rem 0.6rem;
}

.item-dropdown {
    position: relative;
}

.item-dropdown::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    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 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 0.85rem 0.6rem;
}

    .item-dropdown[aria-expanded="true"]::after {
        transform: rotate(180deg); /* mũi tên lên */
        right: 0.9rem;
        top: 0.8rem;
    }


/*Cột trong bảng*/
.th-10 {
    width: 10%;
}

.th-20 {
    width: 20%;
}

.th-30 {
    width: 30%;
}

.th-40 {
    width: 40%;
}

.th-50 {
    width: 50%;
}

.th-60 {
    width: 60%;
}

.th-70 {
    width: 70%;
}

.th-80 {
    width: 80%;
}

.th-90 {
    width: 90%;
}

.th-5 {
    width: 5%;
}

.th-15 {
    width: 15%;
}

.th-25 {
    width: 25%;
}

.th-35 {
    width: 35%;
}

.th-45 {
    width: 45%;
}

.th-55 {
    width: 55%;
}

.th-65 {
    width: 65%;
}

.th-75 {
    width: 75%;
}

.th-85 {
    width: 85%;
}

.th-95 {
    width: 95%;
}

.no-data {

    background-color: rgb(247,247,247);
    text-align: center;
    padding: 6rem 0 6rem 0 !important;
}

    .no-data i {
        font-size: 5rem;
        display: block;        
    }

.mw-10 {
    display: inline-block;
    min-width: 1rem;
}

.mw-12 {
    display: inline-block;
    min-width: 1.2rem;
}

.mw-15 {
    display: inline-block;
    min-width: 1.5rem;
}

.mw-20 {
    display: inline-block;
    min-width: 2rem;
}

.mw-40 {
    display: inline-block;
    min-width: 4rem;
}

.mw-50 {
    display: inline-block;
    min-width: 4rem;
}

.card .card-body {
    padding: 0.75rem;
}

.modal .w-25 {
    width: 25%;
    min-width: 350px;
}

.modal .w-35 {
    width: 35%;
    min-width: 500px;
}

.w-80 {
    width: 8rem!important;
}

.w-100 {
    width: 10rem !important;
}

.select2-container {
    width: 100%!important;
}

.select2-container--default .select2-selection--multiple, .select2-container--open .select2-dropdown--below, .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-radius: 0 !important;
    border: 1px solid #767676 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    border-color: #80bdff !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    color: rgb(62, 67, 87)!important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1967d2 !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da!important;
}