﻿/*body {
    padding-top: 50px;
    padding-bottom: 20px;
}*/

/* Set padding to keep content from hitting the edges */
/*.body-content {
    padding-left: 15px;
    padding-right: 15px;
}*/

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/



/******************************************************
    START: Page Layout CSS
*******************************************************/
.main-page-header {
}

.main-page-content {
    min-height: 100vh;
    /*background-color: #f4f4f9;*/
    /*background-color: #ebeced;*/
    background-color: #f3f3f4;
    /*background-color: #EEF0F8;*/ /*Metronic 7*/
    text-align: justify;
}


.modal-header {
    background-color: #f1f2f3 !important;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}


.bootbox.modal .modal-header {
    background-color: transparent !important;
    display: none;
}

.bootbox.modal .modal-body {
    text-align: center;
}

.bootbox.modal .modal-footer {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    justify-content: center;
    background-color: #f1f2f3;
}
/******************************************************/




/******************************************************
    START: Card Layout CSS
*******************************************************/
.card-header {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

    .card-header > * {
        margin: 5px 0;
    }

    .card-header h5,
    .card-header h4,
    .card-header h3,
    .card-header h2,
    .card-header h1 {
        margin: 0 !important;
        color: #0d6efd;
    }

    .card-header i.fa {
        font-size: 85%;
    }

.card {
    --bs-card-spacer-x: 1.5rem !important;
    --bs-card-cap-padding-x: 1.5rem;
}

.card-filter-form .card-header {
    /*background-color: #f1f2f3 !important;*/
}


.card-filter-form {
    margin: 0 0 1.5rem 0;
    /*border: 1px solid #0d6efd;*/
    border-left: 5px solid #0d6efd;
    background-color: #fff !important;
}

.card.card-filter-form .card-header {
    display: none;
}

.search-result-count {
    color: #999;
    font-weight: normal;
    margin-left: 1rem;
    font-size: 75%;
}

.card-search-result {
}

    .card-search-result .card-header {
        background-color: transparent;
    }

.card-body.card-body-brd-bottom {
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.card-body.card-body-brd-top {
    border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

@media print {
    .card-filter-form,
    .btn-modal-close {
        display: none !important
    }
}
/******************************************************/





/******************************************************
    START: Bootstrap Table
*******************************************************/
.table-header-light thead > tr > th,
.table-header-light thead > tr > td,
.table-footer-light tfoot > tr > th,
.table-footer-light tfoot > tr > td {
    background-color: #f1f2f3 !important;
    /*background-color: #f8f8f8 !important;*/
}

tbody, td, tfoot, th, thead, tr {
    border-right-style: dashed;
    /*border-right-color: #eef0f2;*/
}



.g-tbl-col-group-border {
    border-left: 2px solid #555 !important;
}

.g-tbl-col-group-border-right {
    border-right: 2px solid #555 !important;
}

.g-tbl-row-group-border {
    border-top: 2px solid #555 !important;
}

.g-tbl-row-group-border-bottom {
    border-bottom: 2px solid #555 !important;
}

table.table-view tbody tr > td:first-child,
table.table-view thead tr > th:first-child {
    text-align: right;
}

table.table-view tbody tr > td:nth-child(2) {
    color: #007adb;
}

.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.5rem;
}


table.table-thead-gray thead th,
table.table-thead-gray thead td {
    background-color: #eee !important;
}

table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable td:last-child,
table.table-bordered.dataTable td:last-child {
    border-right-width: 0px;
}

table.table-bordered.dataTable th:first-child,
table.table-bordered.dataTable th:first-child,
table.table-bordered.dataTable td:first-child,
table.table-bordered.dataTable td:first-child {
    border-left-width: 0px;
}
/******************************************************/




/******************************************************
    START: Datatable
*******************************************************/
.card-body .card-table {
    margin: 0 calc(var(--bs-card-cap-padding-x) * -1);
}

.card-table .datatable-header {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.card-table .datatable-footer {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin-top: 1rem;
    padding: 0 1.5rem;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
}

div.dataTables_wrapper div.dataTables_filter input {
    min-height: auto !important;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: var(--bs-border-radius);
}

div.dataTables_wrapper div.dataTables_length select {
    min-height: auto !important;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: var(--bs-border-radius);
    width: 60%;
}

div.dataTables_wrapper div.dt-row {
    margin: 1rem -10px;
}
/******************************************************/




/******************************************************
    START: Form Controls CSS
*******************************************************/
:root, [data-bs-theme=light] {
    --bs-border-color-translucent: #dee2e6;
}

.required {
    color: #dc3545;
}

    .required:after {
        content: " *";
        color: #dc3545;
    }

.form-control {
    color: #0d6efd !important;
}

    .form-control::placeholder {
        /* Chrome, Firefox, Opera, Safari 10.1+ */
        opacity: 0.5; /* Firefox */
    }

.select2-selection__rendered {
    color: #0d6efd !important;
}

.form-check {
    margin-top: .5rem;
}

form .form-group {
    margin-bottom: 0.7rem;
    min-width: 300px;
}

.filter-form .form-group {
    margin-bottom: 0.7rem;
}

    .filter-form .form-group > label {
        font-weight: 600;
        font-size: 85%;
        color: #000 !important;
        margin-bottom: 2px;
    }

.datepicker-dropdown {
    box-shadow: 0px 2px 15px #99999999;
}

.datepicker td, .datepicker th {
    text-align: center;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: none;
}

/* For Highlighting Searched Term in Select2 */
mark {
    padding: 0;
    background-color: transparent;
    font-weight: 700;
    text-decoration: underline;
    color: #dc3545;
}


.form-section {
    border-bottom: 1px dashed #cdd0d4;
    margin: 2rem 0 1rem 0;
}

    .form-section > span {
        border-bottom: 2px solid #555;
        background-color: #555;
        color: #ffffff;
        padding: 1px 10px;
        border-radius: 6px 6px 0 0;
        font-size: small;
    }
/******************************************************/


/******************************************************
    START: Buttons & Labels CSS
*******************************************************/
.btn.btn-light {
    background-color: #f1f2f3;
    border-color: #d3d4d5;
    margin-left: 0.25rem;
}

    .btn.btn-light:hover {
        background-color: #d3d4d5;
        border-color: #d3d4d5;
    }

label.col-form-label {
    text-align: right;
}

.form-addedit input:not([type=submit]):not([type=reset]):not([type=button]) {
    color: #007adb;
}

.btn-icon {
    padding: 0.3rem 0;
    font-size: 0.8rem;
    width: 1.8rem;
    line-height: 1;
}

.btn-list {
    padding: 0.3rem 0.3rem;
    font-size: 0.8rem;
    line-height: 1;
}

.btn-info, .btn-warning {
    color: white !important;
}

/*Alert Dialog Close Button*/
.alert-error-message .btn-close {
    width: 0.7em;
    height: 0.7em;
    margin-left: 1rem;
}

.alert-error-message.alert {
    --bs-alert-margin-bottom: 1.5rem;
}


.label-icon {
    border-radius: 2rem;
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 0.85rem;
    width: 1.8rem;
    line-height: 1;
}

.label-success {
    color: #198754;
    background-color: rgba(114, 192, 44, 0.1) !important;
}

.label-danger {
    color: #dc3545;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

.label-warning {
    color: #ffc107;
    background-color: rgba(255, 247, 225, 1) !important;
}

.label-success.label-solid {
    background-color: #198754 !important;
    color: white !important;
}

.label-danger.label-solid {
    background-color: #dc3545 !important;
    color: white !important;
}

.label-warning.label-solid {
    background-color: #ffc107 !important;
    color: white !important;
}

.bootbox-close-button {
    display: none;
}
/******************************************************/




/******************************************************
    START: Utility Classes
*******************************************************/
.text-orientation-top-down {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.g-color-brand {
    color: #d10233 !important;
}

.text-justify {
    text-align: justify;
}

.g-text-underline-none {
    text-decoration: none;
}

.g-text-underline--hover:hover {
    text-decoration: underline;
}

.dtfc-fixed-left {
    z-index: 1;
}

.list-group {
    --bs-list-group-bg: #e4e4e4;
}

.toast-bottom-center {
    bottom: 0;
    right: 25vw;
    width: 50vw;
}

#toast-container.toast-bottom-center > div,
#toast-container.toast-top-center > div {
    width: 100%;
    margin: auto;
}

.alert-error-message ul {
    margin: 0;
}
/******************************************************/
/******************************************************
    START: CSS for Select2 AJAX
*******************************************************/
.ajax-select2 .select2 .selection .select2-selection {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ajax-select2-filterform .select2 .selection .select2-selection {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.ajax-select2 .select2 .selection .select2-selection, .ajax-select2-filterform .select2 .selection .select2-selection {
    height: 34px !important;
    border: 1px solid #ced4da !important;
    padding: 2px 2px;
}

.ajax-select2 .select2-container--default .select2-selection--single .select2-selection__arrow, .ajax-select2-filterform .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 4px;
    right: 1px;
    width: 20px;
}

.ajax-select2 .select2-selection__placeholder, .ajax-select2-filterform .select2-selection__placeholder {
    color: #292122 !important;
}
/******************************************************/




/******************************************************
    START: CSS for Dashboard Count
*******************************************************/
.du-dsb-section-separator {
    border-top: 1px solid #111 !important;
    margin: 2rem 0 4rem 0;
}

.du-dsb-count-group {
    border-left: 1px dashed #CCC;
    padding-left: 1rem;
    margin-bottom: 1rem;
    margin-right: 3rem;
}

.du-dsb-count {
    margin-bottom: 1rem;
    /*padding-right: calc(var(--bs-gutter-x)* .5);*/
    padding-right: 1rem;
    /*padding-left: calc(var(--bs-gutter-x)* .5);*/
}

.du-dsb-count-title {
    white-space: nowrap;
    line-height: 1.2;
}

.du-dsb-count-data {
    font-weight: 700;
    font-size: calc(1.275rem + .3vw) !important;
    line-height: 1.2;
}

.du-dsb-count-sign {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* https://getbootstrap.com/docs/5.3/layout/breakpoints/ */
/* `md` applies to small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .du-dsb-count-group {
        border: none;
        border-top: 1px dashed #CCC;
        padding-top: 1rem;
        padding-left: 0;
        margin-right: 0;
    }

    .du-dsb-section-heading {
        margin-bottom: 2rem;
        background-color: #DDD;
        text-align: center;
        padding: .25rem 0;
        border-radius: 5px;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .col-12 {
        padding-right: 0;
    }

    .du-dsb-section-separator {
        display: none;
    }
}

.du-dsb-statistics-group-label {
    margin: 0 0 5px 0;
    display: inline-block;
    border-radius: 2px;
    background-color: #dddddd;
    padding: 0 4px;
    font-size: 80%;
    font-weight: 700;
}

.du-dsb-statistics-group-item {
    margin: 0 20px 5px 0;
}

bolder {
    font-weight: bolder;
}
/******************************************************/




/******************************************************
    START: CSS for Line Chart 
*******************************************************/
.g-height-3 {
    height: 3px !important;
}
/******************************************************/
