﻿/* Fix UI for TAM
-------------------------------------------------- */
/* Default font */
body {
    font-family: "Roboto";
    font-size: 14px;
}

.form-control {
    font-size: 14px;
}

.table th, .table td {
    padding: 8px;
    vertical-align: top;
    border-top: 1px solid #555 !important;
}

.main-header {
    border-bottom: 1px solid #d2d6de;
    z-index: 1034;
}

.main-sidebar {
    border-right: 1px solid #d2d6de;
}

.main-footer {
    background: #fff;
    padding: 15px;
    color: #444;
    border-top: 1px solid #d2d6de;
}

.brand-link {
    border-bottom: 1px solid #d2d6de;
}

/* Content */
.content-wrapper .container-fluid {
    padding-top: 0px !important;
}

.content-header h1 {
    font-size: 24px;
}

.content-header .breadcrumb {
    font-size: 13px;
}

/* Card */
.card {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 1rem;
    width: 100%;
    box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 0.75rem 1rem;
}

/* Label set to right for form horizontal */
@media (min-width: 768px) {
    .form-horizontal .col-form-label {
        text-align: right;
    }
}

/* Button text color */
.btn-primary, .btn-info, .btn-warning, .btn-danger {
    color: #ffffff !important;
}

/* Button size */
.btn-group-xs > .btn, .btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-sm, .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Button close icon size */
.close {
    font-size: 1.5rem;
}

/* Modal ui */
.modal {
    background-color: transparent;
    background-color: transparent;
}

.modal-content {
    width: 90%;
}

    .modal-content .modal-header {
        color: #fff;
        background-color: #6c757d;
    }

/* Button default */
.btn-default {
    border-color: #ddd;
}

/* Size show entries dataTables */
.custom-select-sm {
    font-size: 90%;
}

/* Icon sorting dataTable */
table.dataTableIcon thead .sorting,
table.dataTableIcon thead .sorting_asc,
table.dataTableIcon thead .sorting_desc,
table.dataTableIcon thead .sorting_asc_disabled,
table.dataTableIcon thead .sorting_desc_disabled {
    padding-right: 5px;
    background: 0 0;
}

    table.dataTableIcon thead .sorting_asc:after {
        opacity: 0.5;
        content: "\f15d";
        float: right;
        /*font-family: fontawesome;*/
        color: #333333;
    }

    table.dataTableIcon thead .sorting_desc:after {
        opacity: 0.5;
        content: "\f15e";
        float: right;
        /*font-family: fontawesome;*/
        color: #333333;
    }

    table.dataTableIcon thead .sorting:after {
        opacity: 0.2;
        content: "\f0dc";
        float: right;
        /*font-family: fontawesome;*/
        color: #333333;
    }

/* Form input */
.input-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Pagination */
.pagination {
    margin: 15px 0;
}

.pagination-info {
    text-align: right;
    margin-top: 20px;
}

/* Form input */
.input-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.custom-checkbox {
    margin-top: 0.5rem;
}

/* Select2 */
.form-group-sm .select2-container .select2-selection--single,
.input-group-sm .select2-container .select2-selection--single {
    font-size: 14px;
    height: 30px;
    padding: 5px;
    border: 1px solid #ced4da;
}

    .form-group-sm .select2-container .select2-selection--single .select2-selection__rendered,
    .input-group-sm .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 24px;
    }

    .form-group-sm .select2-container .select2-selection--single .select2-selection__arrow,
    .input-group-sm .select2-container .select2-selection--single .select2-selection__arrow {
        height: 24px;
    }

.select2-search--inline {
    display: contents; /*this will make the container disappear, making the child the one who sets the width of the element*/
}

.select2-search__field:placeholder-shown {
    width: 100% !important; /*makes the placeholder to be 100% of the width while there are no options selected*/
}

.notyf__toast {
    z-index: 999999999;
}

/*not responsive if had multiple value and go to the next row*/
/*.select2-selection {
    height: calc(2.25rem + 2px)!important;
}*/


pre {
    outline: 1px solid #ccc;
    padding: 5px;
    margin: 5px;
}

.string {
    color: lightgreen;
    font-weight: 700;
}

.number {
    color: darkorange;
    font-weight: 700;
}

.boolean {
    color: darkorange;
    font-weight: 700;
}

.null {
    color: magenta;
    font-weight: 700;
}

.key {
    color: white;
    font-weight: 700;
}

/* Select2 Small height*/
div.input-group-sm span.select2-selection {
    height: calc(1.8125rem + 2px) !important;
}
/* Handle pop up Date*/
div.table-responsive {
    overflow-y: visible;
    min-height: 70vh;
}
    /* Handle Verticel align if content is overheight*/
    div.table-responsive td {
        vertical-align: middle;
    }

.ratio-4-3 {
    width: 100%;
    position: relative;
    background: url() 50% 50% no-repeat;
    background-size: cover;
    background-clip: content-box;
}

    .ratio-4-3:before {
        display: block;
        content: "";
        padding-top: 75%;
    }

/*Handle select2 multiple value text color from white to black (in system > recepient email achievment*/
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: black;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #209687;
    color: #ffffff;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff !important;
    background-color: #209687 !important;
    border-color: #209687 !important;
}

.page-link {
    color: #333333;
}

.page-link:hover {
    color: #209687;
}