/*
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 */

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;
}

.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;
}

.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;
}

.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 #bbb;
    border-radius: 8px;
    height: 90px;
    width: 180px;
    display: flex;
    --accent: white;
    box-shadow: inset 5px 0 0 0 var(--accent);
}

.info-box.primary { --accent: var(--bs-primary); }
.info-box.success { --accent: var(--bs-success); }
.info-box.warning { --accent: var(--bs-warning); }
.info-box.danger { --accent: var(--bs-danger); }
.info-box.secondary { --accent: var(--bs-secondary); }
.info-box.dark { --accent: var(--bs-dark); }
.info-box.light { --accent: var(--bs-light); }

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

.info-box-title {
    color: #666;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.info-box-value {
    color: #111;
    font-size: 24px;
    line-height: 22px;
}

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

.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%;
    }
}

/*
 * jQuery UI Datepicker 1.10.3
 *
 * Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://jqueryui.com/datepicker/
 */
.ui-datepicker {
    width: 17em;
    padding: .2em .2em 0;
    display: none;
    background-color: #ffffff;
}
.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: .2em 0;
    border: 0;
    font-weight: bold;
    width: 100%;
    padding: 4px 0;
    background-color: #f5f5f5;
    color: #808080;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 2px;
    width: 1.8em;
    height: 1.8em;
}
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    /*top: 1px;*/
}
.ui-datepicker .ui-datepicker-prev {
    left: 2px;
}
.ui-datepicker .ui-datepicker-next {
    right: 2px;
}
.ui-datepicker .ui-datepicker-prev-hover {
    /*left:1px;*/
}
.ui-datepicker .ui-datepicker-next-hover {
    /*right:1px;*/
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -8px;
}
.ui-datepicker .ui-datepicker-title {
    margin: 0 2.3em;
    line-height: 1.8em;
    text-align: center;
}
.ui-datepicker .ui-datepicker-title select {
    font-size: 1em;
    margin: 1px 0;
}
.ui-datepicker select.ui-datepicker-month-year {
    width: 100%;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 49%;
}
.ui-datepicker table {
    width: 100%;
    font-size: .9em;
    border-collapse: collapse;
    margin: 0 0 .4em;
}
.ui-datepicker th {
    padding: .7em .3em;
    text-align: center;
    font-weight: bold;
    border: 0;
}
.ui-datepicker td {
    border: 0;
    padding: 1px;
}
.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: .2em;
    text-align: right;
    text-decoration: none;
}
.ui-datepicker .ui-datepicker-buttonpane {
    background-image: none;
    margin: .7em 0 0 0;
    padding: 0 .2em;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}
.ui-datepicker .ui-datepicker-buttonpane button {
    float: right;
    margin: .5em .2em .4em;
    cursor: pointer;
    padding: .2em .6em .3em .6em;
    width: auto;
    overflow: visible;
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: left;
}
/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi {
    width: auto;
}
.ui-datepicker-multi .ui-datepicker-group {
    float: left;
}
.ui-datepicker-multi .ui-datepicker-group table {
    width: 95%;
    margin: 0 auto .4em;
}
.ui-datepicker-multi-2 .ui-datepicker-group {
    width: 50%;
}
.ui-datepicker-multi-3 .ui-datepicker-group {
    width: 33.3%;
}
.ui-datepicker-multi-4 .ui-datepicker-group {
    width: 25%;
}
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header {
    border-left-width: 0;
}
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
    border-left-width: 0;
}
.ui-datepicker-multi .ui-datepicker-buttonpane {
    clear: left;
}
.ui-datepicker-row-break {
    clear: both;
    width: 100%;
    font-size: 0em;
}
/* RTL support */
.ui-datepicker-rtl {
    direction: rtl;
}
.ui-datepicker-rtl .ui-datepicker-prev {
    right: 2px;
    left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next {
    left: 2px;
    right: auto;
}
.ui-datepicker-rtl .ui-datepicker-prev:hover {
    right: 1px;
    left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next:hover {
    left: 1px;
    right: auto;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane {
    clear: right;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
    float: left;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: right;
}
.ui-datepicker-rtl .ui-datepicker-group {
    float: right;
}
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header {
    border-right-width: 0;
    border-left-width: 1px;
}
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
    border-right-width: 0;
    border-left-width: 1px;
}
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
    display: none;
    display: block;
    position: absolute;
    z-index: -1;
    filter: mask();
    top: -4px;
    left: -4px;
    width: 200px;
    height: 200px;
}
.ui-datepicker th {
    font-weight: bold;
    color: gray;
}
.ui-datepicker-today a:hover {
    background-color: #808080;
    color: #ffffff;
}
.ui-datepicker-today a {
    background-color: #BFBFBF;
    cursor: pointer;
    padding: 0 4px;
    margin-bottom: 0;
}
.ui-datepicker td a {
    margin-bottom: 0;
    border: 0;
}
.ui-datepicker td:hover {
    color: #ffffff;
}
.ui-datepicker td .ui-state-default {
    border: 0;
    background: none;
    margin-bottom: 0;
    padding: 5px;
    color: gray;
    text-align: center;
    filter: none;
}
.ui-datepicker td .ui-state-highlight {
    color: #ffffff;
    background-color: #A90329;
    border-color: #46b8da;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    -webkit-border-radius: 0px;
    /* Safari 4 */
    -moz-border-radius: 0px;
    /* Firefox 3.6 */
    border-radius: 0px;
}
.ui-datepicker td .ui-state-active {
    color: #333333;
    background-color: #ebebeb;
    border-color: #adadad;
    margin-bottom: 0;
    font-size: normal;
    text-shadow: 0;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    -webkit-border-radius: 0px;
    /* Safari 4 */
    -moz-border-radius: 0px;
    /* Firefox 3.6 */
    border-radius: 0px;
}
.ui-datepicker td .ui-state-hover {
    color: #ffffff;
    background: #428bca;
    background-color: #428bca;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    border-color: #357ebd;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    -webkit-border-radius: 0px;
    /* Safari 4 */
    -moz-border-radius: 0px;
    /* Firefox 3.6 */
    border-radius: 0px;
}

h2 {
    font-size: 1.2em;
}

/** JARVIS WIDGETS */
div.jarviswidget {
    border: 1px solid #DADADA;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

div.jarviswidget header {
    padding: 10px;
    border-bottom: 1px solid #DADADA;
    background-color: #FAFAFA;
    font-size: 1.2rem;
}

div.jarviswidget header h2 {
    margin-bottom: 0;
    font-size: 1em;
    font-weight: normal;
    display: inline-block;
}

div.jarviswidget div.widget-body {
    padding: 10px;
}

div.jarviswidget div.form-actions {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 10px;
    margin: 10px -10px -10px -10px;
    text-align: right;
}

/** BOOTSTRAP OVERRIDES */

.list-group.list-group-compact .list-group-item {
    padding: 7px;
}

.list-group small {
    font-weight: bold;
}

.list-group.list-group-horizontal-flush {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.list-group.list-group-horizontal-flush .list-group-item {
    flex-grow: 1;
    border-radius: 0;
    border: 1px solid #eee !important;
}

/* ICONS */

.small svg.icon {
    height: 1em;
}

.btn svg.icon {
    height: 1.2em;
    width: 1.2em;
}

a.btn-svg {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}
