﻿/* 
    Folha de estilo para definir classes não existentes no bootstrap
    Classes de bootstrap já existentes e que se deseje mudar cor ou imagens devem ser definidas
    no bootstrap-theme-xxx
*/
.box {
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    border-radius: 4px;
    border: 1px solid transparent;
}

.box .row .breadcrumb
{
    margin-left: -15px;
    margin-bottom: 10px;
    margin-top: -8px;
}

.box .breadcrumb ~ h1,
.box .breadcrumb ~ h2,
.box .breadcrumb ~ h3
{
    margin-top: 10px;
    margin-bottom: 0;
}

#container-scroll {
    overflow-x: hidden;
}

.table-btb > thead > tr > td,
.table-btb > thead > tr > th,
.table-btb > tbody > tr.GridCabec > td,
.table-btb > tbody > tr.GridCabec > th {
    text-transform: uppercase;
    font-weight: bold;
}

.table-btb > tfoot > tr > td,
.table-btb > tfoot > tr > th,
.table-btb > thead > tr > td,
.table-btb > thead > tr > th,
.table-btb > tbody > tr.GridGroupFooter > td,
.table-btb > tbody > tr.GridGroupFooter > th,
.table-btb > tbody > tr.GridFooter > td,
.table-btb > tbody > tr.GridFooter > th
{
    white-space: nowrap;
}

.table-btb-footer-wrap > tfoot > tr > td,
.table-btb-footer-wrap > tfoot > tr > th,
.table-btb-header-wrap > thead > tr > td,
.table-btb-header-wrap > thead > tr > th,
.table-btb-footer-wrap > tbody > tr.GridGroupFooter > td,
.table-btb-footer-wrap > tbody > tr.GridGroupFooter > th,
.table-btb-footer-wrap > tbody > tr.GridFooter > td,
.table-btb-footer-wrap > tbody > tr.GridFooter > th,
.table-btb-body-wrap > tbody > tr > td {
    white-space: initial;
}

.table-btb > tfoot > tr > td:hover,
.table-btb > tfoot > tr > th:hover,
.table-btb > thead > tr > td:hover,
.table-btb > thead > tr > th:hover,
.table-btb > tbody > tr.GridGroupFooter > td,
.table-btb > tbody > tr.GridGroupFooter > th,
.table-btb > tbody > tr.GridFooter > td,
.table-btb > tbody > tr.GridFooter > th
{
    max-width:unset;
}

.table-btb > tbody > tr > td,
.table-btb > tbody > tr > th,
.table-btb > tfoot > tr > td,
.table-btb > tfoot > tr > th,
.table-btb > thead > tr > td,
.table-btb > thead > tr > th {
    text-align: center;
    max-height: 50px;
    max-width: 300px;
    text-overflow: ellipsis;
    /*overflow:hidden;*/
    vertical-align: middle
}

.table-readmore:not(.table-readmore-ready) > tbody > tr > td {
    white-space: nowrap;
}

.table-readmore > tbody > tr > td > div.readmore {
	text-align: center;
	max-height: 50px;
	max-width: 300px;
	text-overflow: ellipsis;
	overflow: hidden;
	vertical-align: middle;
	white-space: initial;
}

.table-readmore > tbody > tr > td > div.open {
    max-height: initial;
    white-space: pre-line;
}

.table-readmore > tbody > tr > td > div.right {
    text-align: right;
}

/* apenas como referência para formatação dos controles do grid */
.table-btb-form {
}

.panel-title
{
    font-size: 18px;
}

.panel-body {
    max-height: calc(70vh); /* por compatibilidade */
}

.panel-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.panel-body-followedbyfooter {
    max-height: calc(100vh - 200px);
}

.panel-body-full {
    max-height: initial;
    overflow-y: unset;
}

.panel-heading label {
	margin-bottom: initial;
}

/* ================================================================================================ */

.GridGroupHeader,
.GridGroupHeader:hover,
.table-hover>tbody>tr.GridGroupHeader:hover
{
    height: 38px;
    text-align: center;
    font-size: 16px;
}

small .GridGroupHeader,
small .GridGroupHeader:hover,
small .table-hover>tbody>tr.GridGroupHeader:hover
{
    font-size: 85%;
}

.table-btb > tbody > tr.GridGroupHeader > td,
.table-btb > tbody > tr.GridGroupHeader > th,
.table-btb > tfoot > tr.GridGroupHeader > td,
.table-btb > tfoot > tr.GridGroupHeader > th,
.table-btb > thead > tr.GridGroupHeader > td,
.table-btb > thead > tr.GridGroupHeader > th,
.GridGroupHeader td
{
    text-align: left;
    font-size: 16px;
    font-weight: bold;
}

.small .table-btb > tbody > tr.GridGroupHeader > td,
.small .table-btb > tbody > tr.GridGroupHeader > th,
.small .table-btb > tfoot > tr.GridGroupHeader > td,
.small .table-btb > tfoot > tr.GridGroupHeader > th,
.small .table-btb > thead > tr.GridGroupHeader > td,
.small .table-btb > thead > tr.GridGroupHeader > th,
.small .GridGroupHeader td
{
    font-size: 85%;
}

.table-btb input[type=text],
.table-btb select
{
    min-width: 150px;
}

/* ================================================================================================ */

.table-hover>tbody>tr.GridGroupFooter:hover,
.GridGroupFooter
{
    font-weight: bold;
}

/* ================================================================================================ */

.table-hover>tbody>tr.GridFooter:hover,
.GridFooter
{
    font-weight: bold;
}

/* ================================================================================================ */

.table-hover>tbody>tr.GridPager:hover,
.GridPager,
.GridPager:hover
{
    vertical-align: middle;
}

.GridPager td,
.GridPager td a {
    font-weight: bold;
}

.GridPager > td > table
{
    margin:auto;
}

.GridPager > td > table > tr > td,
.GridPager > td > table > tbody > tr > td
{
    padding: 0 2px;
}

/* ================================================================================================ */

.details-striped .row div[class*="col-xs-"]:nth-child(odd),
.details-striped .row div[class*="col-sm-"]:nth-child(odd),
.details-striped .row div[class*="col-md-"]:nth-child(odd),
.details-striped .row div[class*="col-lg-"]:nth-child(odd)
{
}

@media (min-width: 768px)
{
    .details-striped .row:nth-child(odd) div[class*="col-xs-"]:nth-child(odd),
    .details-striped .row:nth-child(odd) div[class*="col-sm-"]:nth-child(odd),
    .details-striped .row:nth-child(odd) div[class*="col-md-"]:nth-child(odd),
    .details-striped .row:nth-child(odd) div[class*="col-lg-"]:nth-child(odd) {
    }

    .details-striped .row:nth-child(even) div[class*="col-xs-"]:nth-child(even),
    .details-striped .row:nth-child(even) div[class*="col-sm-"]:nth-child(even),
    .details-striped .row:nth-child(even) div[class*="col-md-"]:nth-child(even),
    .details-striped .row:nth-child(even) div[class*="col-lg-"]:nth-child(even) {
    }
}

.btn-group-flex {
    display: flex;
}

/* ================================================================================================ */
/* Implementação de glyphicon rotativo
    Assim não é necessário usar um gif animado
    Retirado de:
    http://bootsnipp.com/snippets/featured/glyphicon-animate-rotation-and-flip
*/
.gly-spin {
  -webkit-animation: spin 2s infinite linear;
  -moz-animation: spin 2s infinite linear;
  -o-animation: spin 2s infinite linear;
  animation: spin 2s infinite linear;
}
@-moz-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
  }
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
  }
}
@-o-keyframes spin {
  0% {
    -o-transform: rotate(0deg);
  }
  100% {
    -o-transform: rotate(359deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

/* The Overlay (background) */
.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.7);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.overlay-show {
    height: 100%;
}

.overlay-highlight {
    z-index: 4 !important;
}

td.overlay-highlight {
    background-color: #fff;
}

.overlay-background-color {
    background-color: #fff;
}

.quadroflutuantedireita {
    position: fixed;
    right: 36px;
    top: 160px;
}

.maxbody50vh {
    max-height: 50vh;
    overflow-y: scroll;
}


table.rotated {
    display: block;
    overflow-y: auto;
    position: relative;
    width: 100%;
    border: none;
}

table.rotated > thead {
    display: block;
    float: left;
}

table.rotated > tbody {
    display: -webkit-box;
    overflow-x: auto;
}

table.rotated > thead > tr,
table.rotated > thead > tr > th,
table.rotated > thead > tr > td,
table.rotated > tbody > tr,
table.rotated > tbody > tr > th,
table.rotated > tbody > tr > td,
table.rotated > tr,
table.rotated > tr > th,
table.rotated > tr > td {
    display: block;
}

table.rotated > thead > tr > th,
table.rotated > thead > tr > td,
table.rotated > tbody > tr > th,
table.rotated > tbody > tr > td,
table.rotated > tr > th,
table.rotated > tr > td {
    height: 40px !important;
    overflow-y: hidden;
}

table.rotated > thead > tr > td input[type=text],
table.rotated > tbody > tr > td input[type=text],
table.rotated > thead > tr > td select,
table.rotated > tbody > tr > td select {
    width: 140px;
}

.img-loading {
	display: inline-block;
	background-image: url("/Content/Images/loading_32.gif");
	background-repeat: no-repeat;
	width: 32px;
	height: 32px;
}

.input-group-addon-right {
    width: unset;
}

.cursor-pointer {
    cursor:pointer
}

.RegraJsonError {
    background-color: rgb(255, 0, 0);
}