/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 14/05/2016, 17:17:50
    Author     : danielcosta
*/

/* bootstrap fixes */
:root {
    --bs-font-sans-serif: Roboto, system-ui, sans-serif;
}

.table {
    --bs-table-bg: initial;
}
/* end bootstrap fixes */

html, body {
    background-image: none !important;
    font-size: 14px;
}

a {
    text-decoration: none;
}

div.form-filtro {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #CCC;
    background-color: #EFEFEF;
}

@media screen and (min-width: 768px) {
    .form-filtro div.form-group {
        margin-right: 2em;
    }
}

.form-filtro div.row:not(:last-of-type) {
    margin-bottom: 1em;
}

.table-grid {
    background-color: #FAFAFA;
    border-top: 1px solid silver;
    border-left: 1px solid silver;
}

.table-grid td, .table-grid th {
    padding: 4px;
    border-bottom: 1px solid silver;
    border-right: 1px solid silver;
}

.table-grid tr td:last-of-type, .table-grid tr th:last-of-type {
    border-right: 1px solid silver !important;
}

.table-grid input[type=checkbox] {
    margin-top: auto !important;
}

.table-grid td.input {
    padding: 0;
    background-color: #888;
}

.table-grid td.input input {
    border: 0 !important;
    padding: 4px;
    /* box-sizing: border-box; */
    /* height: 100%; */
    width: 100%;
}

.table-grid th {
    background-color: #F0F0F0;
}

.table-print tr td, .table-print tr th {
    page-break-inside: avoid;
}

@media print {
    .table-print tr td, .table-print tr th {
        font-size: 8pt;
    }
}

table.table-borderless,
table.table-borderless tr,
table.table-borderless td,
table.table-borderless th {
    border: none !important;
    vertical-align: middle !important;
}

table.table-form > tbody > tr > td,
table.table-form > tr > td {
    vertical-align: top;
    padding: 0px 2px;
    border-top-width: 0 !important;
    border-bottom: 0px solid #EEE !important;
}

table.table-form > tbody > tr > td:nth-child(1),
table.table-form > tr > td td:nth-child(1),
table.table-form > tbody > tr > td:nth-child(3),
table.table-form > tr > td td:nth-child(3),
table.table-form > tbody > tr > td:nth-child(5),
table.table-form > tr > td td:nth-child(5) {
    padding-top: 8px;
    padding-right: 20px;
    width: 150px;
    text-align: right;
    font-weight: normal;
    vertical-align: top;
}

table.table-form > tbody > tr > td:nth-child(2),
table.table-form > tr > td td:nth-child(2),
table.table-form > tbody > tr > td:nth-child(4),
table.table-form > tr > td td:nth-child(4),
table.table-form > tbody > tr > td:nth-child(6),
table.table-form > tr > td td:nth-child(6) {
    width: auto;
    vertical-align: top;
    padding: 8px 2px 5px 2px;
}

table.table-form > tbody > tr > td > button,
table.table-form > tr > td > button {
    line-height: normal !important;
}

table.table-form > tbody > tr > td > input:not([type=checkbox]):not([type=radio]),
table.table-form > tr > td > input:not([type=checkbox]):not([type=radio]),
table.table-form > tbody > tr > td > button,
table.table-form > tr > td > button {
    /*height: 24px;*/
    /*line-height: 24px;*/
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin-top: -6px;
}

table.table-form > tbody > tr > td > select,
table.table-form > tr > td > select {
    line-height: 24px;
    height: 24px;
    border-width: 1px;
    padding: 1px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin-top: -6px;
}

table.table-form > tbody > tr > td > textarea,
table.table-form > tr > td > textarea {
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin-top: -3px;
}

.btn-group .btn.btn-default.active {
    color: #fff;
    background-color: #1f496d;
    border-color: #10263a;
}

.btns-subtitle {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.btns-subtitle li {
    display: inline-block;
}

.login-info {
    box-shadow: none !important;
}

label, label.form-label {
    font-weight: 500;
    margin-bottom: 0.1rem;
}

table.table.table-nomargin {
    margin-bottom: 0;
}

#header {
}

.swal-overlay, .swal-modal {
    z-index: 999999 !important;
}

/* correção checkbox dentro de form */
div.form-group div.checkbox {
    margin-top: 7px;
}

div.form-group div.checkbox input[type=checkbox] {
    margin-left: -15px;
    margin-top: 1px;
}

input.is-invalid {
    border-color: red !important;
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    color: #e3342f;
}

.flex, .d-flex {
    display: flex;
}

.flex > * {
    flex: 1;
}

.jarviswidget header.danger {
    color: #ffffff;
    background-color: #c26565;
    text-shadow: none;
}

.form-check .form-check-label {
    font-weight: normal;
}

.ui-datepicker .ui-datepicker-next span, .ui-datepicker .ui-datepicker-prev span {
    color: transparent;
}

@media (min-width: 768px) {
    .mw-md-768px {
        max-width: 768px !important;
    }

    .mw-md-992px {
        max-width: 992px !important;
    }
}

@media (min-width: 992px) {
    .w-lg-200px {
        width: 200px !important;
    }

    .w-lg-300px {
        width: 300px !important;
    }
}

.grow-wrap {
    /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
    display: grid;
}

.grow-wrap::after {
    /* Note the weird space! Needed to preventy jumpy behavior */
    content: attr(data-replicated-value) " ";

    /* This is how textarea text behaves */
    white-space: pre-wrap;

    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
}

.grow-wrap > textarea {
    /* You could leave this, but after a user resizes, then it ruins the auto sizing */
    resize: none;

    /* Firefox shows scrollbar on growth, you can hide like this. */
    overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
    /* Identical styling required!! */
    /*border: 1px solid black;*/
    /*padding: 0.5rem;*/
    font: inherit;

    /* Place on top of each other */
    grid-area: 1 / 1 / 2 / 2;
}

.info-box {
    border: 1px solid #ddd;
    box-shadow: silver 1px 2px 2px;
    display: flex;
    height: 90px;
}

.info-box-icon {
    height: 100%;
    width: 10px;
    font-size: 30pt;
    text-align: center;
}

.info-box-content {
    padding: 10px 30px;
    flex-grow: 1;
}

.info-box-title {
    font-size: 12pt;
}

.info-box-value {
    font-size: 20pt;
}

.profile {
    background-image: url(../img/section_bg.png);
    background-size: cover;
    margin: -10px -14px;
    padding: 20px 20px;
    color: rgb(255, 255, 255, 0.95);
}

.profile-text-holder {
    margin-left: 120px;
}

.profile-image-holder {
    background-color: white;
    padding: 2px;
    position: absolute;
    left: 14px;
    top: 20px;
    border: 1px solid #666;
}

.profile-image-holder img {
    height: 130px;
    width: 90px;
    object-fit: cover;
    /*object-position: center;*/
    /*width: 100%;*/
    /*display: inline-block;*/
    /*margin: -50% auto;*/
    /*vertical-align: middle;*/
    /*text-align: center;*/
}

.dropdown-menu.typeahead {
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.typeahead li {
    list-style-type: none;
    padding: 5px;
    cursor: pointer;
}

.typeahead li.active {
    background-color: #f0f0f0;
}

.typeahead li a {
    color: black;
}

.form-actions {
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
}

.status-badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
    #main .jarviswidget header h1,
    #main .jarviswidget header h2,
    #main .jarviswidget header h3,
    #main .jarviswidget header h4 {
        width: 100%;
    }
}

.jarviswidget > div {
    font-size: 14px;
}
