:root {
  --cattleya: #3c8dbc;
  --cattleya-2: #55a6d4;
  --cattleya-dark: #3f6791;
  --primary: #3c8dbc;
  --success: #00a65a;
  --info: #00c0ef;
  --window-height: 640px;
  --dt-table-height: 40vh;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/*.table {
	font-size: 20px;
}*/
.p-0-5 {
  padding: 5px !important;
}
.pl-0-5,
.px-0-5 {
  padding-left: 5px !important;
}
.pr-0-5,
.px-0-5 {
  padding-right: 5px !important;
}
.pt-0-5,
.py-0-5 {
  padding-top: 5px !important;
}
.pb-0-5,
.py-0-5 {
  padding-bottom: 5px !important;
}

.m-0-5 {
  margin: 5px !important;
}
.ml-0-5,
.mx-0-5 {
  margin-left: 5px !important;
}
.mr-0-5,
.mx-0-5 {
  margin-right: 5px !important;
}
.mt-0-5,
.my-0-5 {
  margin-top: 5px !important;
}
.mb-0-5,
.my-0-5 {
  margin-bottom: 5px !important;
}

/*[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: rgba(255,255,255,.9)!important;
    color: #343a40;
}*/

.tableFP thead th {
  font-size: 10px;
}
.tableFP tbody td > * {
  font-size: 12px;
  padding: 0px 3px;
}
.tableFP tbody td:has(input, select, .btn) {
  font-size: 12px;
  padding: 0px;
}
.table thead th, .nav-link.active2 {
	background-color: var(--primary) !important;
	color: #FFF;
}
.table tbody td label {
  margin-bottom: 0;
}

.page-item.active .page-link {
    z-index: 3;
    color: #ffffff;
    background-color: var(--primary)!important;
    border-color: var(--primary)!important;
}

.navbar-cattleya {
	background-color: var(--primary);
    color: #ffffff;
}

/* .card .card-header {
   background-color: var(--primary)!important;
    color: #ffffff;
}*/

.msgAlert {
    position: fixed;
    overflow: hidden;
    float: right;
    right: -300px;
    z-index: 1400;
    top: 8%;
    margin: 0px auto;
    text-align: left;
    /* display: none; */
    box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.5);
}
.modo-tab:not(.mobile-device) .IframeMostrar:not(.Maximiza) {
  height: calc(100vh - 10rem);
  /* max-height: calc(99vh - 10rem); */
}
.modo-tab:not(.mobile-device) .IframeMostrar {
  height: calc(95vh - 5rem);
  /* max-height: calc(99vh - 10rem); */
}
.mobile-device .IframeMostrar {
  height: calc(95vh - 10rem);
  /* max-height: calc(99vh - 10rem); */
}
#siteFavoritosContent {
  padding: 5px;
}
/* .modo-tab div#siteFavoritosContent {
  padding: 15px;
} */

#DivBloqueo .modal-dialog {
	display: table;
	position: relative;
	margin: 0 auto;
	top: calc(50% - 24px);
}

#DivBloqueo .modal-dialog .modal-content {
	background-color: transparent!important;
	border: none!important;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0);
}
#DivBloqueo .fa-spin {
	animation: fa-spin 0.5s infinite linear;
}

.btnClaseIndex {
  display: none;
}

.BtnBuscar:hover {
	background-color: #00a65a;
	border-color: #008d4c;
	color: #FFF;
}
.BtnAgregar:hover {
	background-color: #00c0ef;
	border-color: #337ab7;
	color: #FFF;
}

.fas option {
    font-weight: 900;
}

hr {
	margin-top: 1rem;
	margin-bottom: 1rem;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.has-feedback {
    position: relative;
}

.os-padding {
    z-index: auto !important;
}

/* DataTables */
table.dataTable tbody td.highlight {
  box-shadow: 0px 0px 4px 1px rgba(15,15,15,0.56) !important;
  /* background-color: #f5f5f57d !important; */
}
.dark-mode table.dataTable tbody td.highlight {
  background-color: rgba(var(--dt-row-hover), 0.082) !important;
}

table.dataTable thead th {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  text-align: center;
  vertical-align: middle !important;
}

table.dataTable thead .dt-body-center {
  text-align: center !important;
}

table.dataTable tbody .dt-body-right {
  text-align: right;
}
table.dataTable tbody .dt-body-center {
  text-align: center !important;
}

table.dataTable tbody td.child {
  padding: 10px 15px 15px 10px;
  /* background-color: #d3d3d333; */
  box-shadow: inset 0 0 5px 1px rgb(110 109 109);
}
table.dataTable tbody td.child table {
  background-color: #FFF;
  width: 100%;
}

table.dataTable tbody tr {
  cursor: pointer;
}

table.dataTable tbody td>.badge {
  font-weight: bold;
  width: 100%;
}

table.dataTable tbody tr.selected td>.badge {
  opacity: 1;
  background-color: #ffffffb8;
}

table.dataTable tbody tr.selected td:has(>.btn) {
  /* transition-property: background-color;
  transition-duration: 1s; */
  /* box-shadow: inset 0 0 0 9999px rgb(219, 218, 218) !important; */
}

div.dataTables_wrapper {
  /* font-size: 12px !important; */
  font-size: 0.8rem !important;
}
div.dataTables_wrapper div.dataTables_processing {
    /*background-color: #FFF;
    border: 0.1px solid #cdd1d4;*/
    color: var(--cattleya-2);
    z-index: 999;
    /* position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 1em 0; */
}

/* table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    bottom: 0.5em !important;
} */

div.dataTables_wrapper div.dataTables_filter,
div.dt-container .dt-search {
  text-align: left !important;
  margin-bottom: 0.5em !important;
}
div.dataTables_wrapper div.dataTables_filter input,
div.dt-container .dt-search input {
  margin: 0 !important;
}

div.dataTables_scrollHeadInner,
div.dt-scroll-headInner {
  width: 100% !important;
}
div.dataTables_scroll,
div.dt-scroll {
  border: 0.1px solid #dee2e6;
  margin-bottom: 10px;
}
div.dataTables_scroll .table,
div.dt-scroll .table {
  width: 100% !important;
  margin-top: 0 !important;
}

.mobile-device #revenue-chart {
  max-height: calc(var(--window-height) - 24rem);
}
.modo-tab .mobile-device #revenue-chart {
  max-height: calc(var(--window-height) - 20rem);
}

.table-responsive {
  height: var(--dt-table-height);
}

.table-responsive,
div.dataTables_scrollBody,
div.dt-scroll-body {
  /* height: var(--dt-table-height); */
  min-height: calc(var(--dt-table-height) - 23.5em);
  /* min-height: calc(39vh - 16rem); */
  /* min-height: calc(70vh - 10rem); */
  /* max-height: calc(var(--window-height) - 20rem); */
}

.modo-tab:not(.mobile-device) .table-responsive,
.modo-tab:not(.mobile-device) div.dataTables_wrapper div.dataTables_scrollBody,
.modo-tab:not(.mobile-device) div.dt-container div.dt-scroll-body {
  /* height: var(--dt-table-height); */
  min-height: calc(var(--window-height) - 24rem) !important;
}

div.dataTables_wrapper div.dataTables_info,
div.dt-container div.dt-info,
div.dataTables_wrapper div.dataTables_paginate,
div.dt-container div.dt-paging,
div.dataTables_length {
  padding-top: 0 !important;
}
table.dataTable > tbody > tr.selected > * {
  box-shadow: inset 0 0 0 9999px var(--cattleya) !important;
  /* box-shadow: inset 0 0 0 9999px rgb(var(--dt-row-selected)); */
  /* color: rgb(255, 255, 255);
  color: rgb(var(--dt-row-selected-text)); */
}
table.dataTable.table-hover > tbody > tr.selected:hover > * {
  box-shadow: inset 0 0 0 9999px var(--cattleya-dark) !important;
  /* box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-selected), 0.975); */
}
.dark-mode table.dataTable > tbody > tr.selected > * {
  box-shadow: inset 0 0 0 9999px var(--cattleya-dark) !important;
  /* box-shadow: inset 0 0 0 9999px rgba(11, 46, 99, 0.9); */
  /* box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-selected), 0.9); */
  /* color: rgb(255, 255, 255); */
  /* color: rgb(var(--dt-row-selected-text)); */
}

.dark-mode table.dataTable.table-hover > tbody > tr.selected:hover > *,
.dark-mode table.dataTable.display > tbody > tr.selected:hover {
  box-shadow: inset 0 0 0 9999px var(--cattleya) !important;
  /* box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-selected), 1) !important; */
}
/* end DataTables */

.fa-spin {
  -webkit-animation: fa-spin 1s infinite linear !important;
  animation: fa-spin 1s infinite linear !important;
}
@-webkit-keyframes fa-spin {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    } 
}
  
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

            
.input-group-prepend .btn,
.input-group-append .btn {
  font-size: 0.8rem !important;
}
.input-group-prepend:has(+ .input-group-text), /* :has(i:first-child),*/
.input-group-append:has(+ .input-group-text) {
  border: 0px solid #ced4da;
}
.input-group-prepend > .input-group-text:not(.btn),
.input-group-append > .input-group-text:not(.btn) {
    height: 30px;
    padding: 5px;
}

section.content.modo-tab {
  padding: 5px 0px 0px 0px;
}

/* Mobile Landscape */
@media (min-width: 340px) and (max-width: 700px) {
  .content-wrapper > .content {
    /* padding: 8px 0px 0px 0px !important; */
    padding: 5px 10px 0px 5px !important;
  }
  .content-wrapper > .content .card-header {
    padding: 0.75rem 0.5rem;
  }
  .content-wrapper > .content .card-body {
    padding: 1rem 0.5rem;
  }
}

@media (min-height: 700px) {
  /* div.dataTables_scrollBody {
    min-height: calc(var(--window-height) - 24.33rem);
  } */
}
/* Mobile portrait */
@media (max-width: 330px) {
  .content-wrapper > .content .card-header {
    padding: 0.75rem 0.5rem;
  }
  .content-wrapper > .content .card-body {
    padding: 1rem 0.5rem !important;
  }
}
/* Mobile portrait - 2 */
@media (min-width: 340px) and (max-width: 480px) {
  .table-responsive,
  div.dataTables_scrollBody,
  div.dt-scroll-body {
    min-height: calc(var(--window-height) - 24.33rem);
  }
}

/* Tablet Portrait */
@media (min-width: 480px) and (max-width: 768px) {
  .modo-tab.mobile-device .table-responsive,
  .modo-tab.mobile-device div.dataTables_wrapper div.dataTables_scrollBody,
  .modo-tab.mobile-device div.dt-container div.dt-scroll-body {
    /* height: var(--dt-table-height) !important; */
    min-height: calc(var(--window-height) - 24rem) !important;
    max-height: calc(var(--window-height) - 24rem) !important;
  }
}

@media (max-height: 700px) and (max-width: 500px) {
  .content-wrapper > .content {
    padding: 10px 0px 0px 0px;
  }
  
  .table .table-responsive,
  div.dataTables_scrollBody,
  div.dt-scroll-body {
    min-height: calc(var(--window-height) - 21.33rem);
    /* min-height: calc(39vh - 16rem) !important; */
    /* max-height: calc(85vh - 5rem) !important; */
  }

  .layout-footer-fixed .wrapper .main-footer {
    font-size: small;
  }
}

/* @media (min-height: 700px) and (max-width: 720px) {
  div.dataTables_scrollBody {
    min-height: calc(var(--window-height) - 23.33rem);
  }
} */

.dtr-bs-modal .modal-body .btn:not(.btn-sm):has(> span),
table.dataTable .child .btn:not(.btn-sm) {
  /* font-size: 10px; */
  font-size: 2rem !important;
  margin: 0.4rem 0.24rem;
}

@media (min-width: 768px) {
  table.dataTable {
    /* font-size: 12px;*/
    font-size: 0.8rem;
  }
  table.dataTable .btn {
    /* font-size: 10px; */
    /* font-size: 0.7rem;
    min-width: 24px; */
  }
  table.dataTable tbody tr td {
    padding: 3px;
  }

  div.dataTables_scrollBody {
    /* min-height: calc(55vh - 16em) !important;
    max-height: calc(85vh - 10rem) !important; */
  }
}

@media (max-width: 720px) {
  div.dataTables_wrapper div.dataTables_info,
  div.dt-container div.dt-info,
  div.dataTables_wrapper div.dataTables_paginate,
  div.dt-container div.dt-paging {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  table.dataTable thead th {
    /*font-size: 12px;*/
    font-size: 0.8rem;
    padding: 8px 3px;
  }
  table.dataTable tbody tr td:not(.child) {
    /*font-size: 14px;*/
    font-size: 0.9rem;
    padding: 5px;
  }

  .form-group.row {
    line-height: 1.8;
  }
}
@media (max-width: 600px) and (max-height: 550px) {
  div.dataTables_scrollBody:has(> .os-padding .os-viewport div.os-content > table.dataTable > tbody > tr:not(.dt-hasChild)) {
    /* min-height: calc(var(--dt-table-height) - (20 * 1rem)) !important; */
    /* min-height: 200px !important; */
    /* max-height: calc(var(--window-height) - 10rem) !important; */
  }
  div.dataTables_scrollBody:has(> .os-padding .os-viewport div.os-content > table.dataTable > tbody > tr.dt-hasChild) {
    /* min-height: calc(var(--dt-table-height) - (10 * 1rem)) !important; */
    /* min-height: 200px !important; */
    /* max-height: calc(var(--window-height) - 10rem) !important; */
  }
}
@media (min-width: 601px) and (min-height: 800px) {
  div.dataTables_scrollBody:has(> .os-padding .os-viewport div.os-content > table.dataTable > tbody > tr:not(.dt-hasChild)) {
    /* height: var(--window-height) !important; */
    /* min-height: 100% !important; */ 
    /* calc(var(--window-height) - (35 * 1rem)) !important; */
    /* min-height: 200px !important; */
    /* max-height: calc(var(--window-height) - 10rem) !important; */
  }
  div.dataTables_scrollBody:has(> .os-padding .os-viewport div.os-content > table.dataTable > tbody > tr.dt-hasChild) {
    /* min-height: calc(var(--window-height) - 24rem) !important; */
    /* min-height: calc(39vh - 16rem) !important; */
    /* max-height: calc(var(--window-height) - 5rem) !important; */
  }
  .modo-tab.mobile-device .table-responsive,
  .modo-tab.mobile-device div.dataTables_wrapper div.dataTables_scrollBody,
  .modo-tab.mobile-device div.dt-container div.dt-scroll-body {
    height: var(--dt-table-height) !important;
    min-height: calc(var(--window-height) - 29rem) !important;
    max-height: calc(var(--window-height) - 29rem) !important;
  }
}

@media (min-width: 601px) and (max-height: 800px) {
  /* .modo-tab.mobile-device div.dataTables_wrapper div.dataTables_scrollBody {
    height: var(--dt-table-height) !important;
    min-height: calc(var(--window-height) - 10rem) !important;
    max-height: calc(var(--window-height) - 10rem) !important;
  } */
}

/* Minimum height */
/* @media (max-width: 600px) and (max-height: 550px) {
  div {
    background: yellow;
  }
} */

/* Maximum height */
/* @media (min-width: 601px) and (min-height: 451px) {
  div {
    border: 1px solid blue;
  }
} */