/* AZUL CONTSE: #122e63, subido #142a53 */
/* VERDE CONTSE: #8fb438, subido #769138 */

:root {
  --deca-superficie-marca: #76b700;
  --deca-superficie-marca-alta: #76b700;
  --deca-superficie-marca-hover: #629700;
  --deca-superficie-marca-borde: #69a200;
  --deca-accion: #76b700;
  --deca-accion-alta: #629700;
  --deca-accion-borde: #69a200;
  --deca-texto-marca: #ffffff;
  --deca-overlay: rgba(255, 255, 255, 0.7);
  --deca-overlay-texto: #000000;
  --deca-superficie-login: #ffffff;
  --deca-superficie-sugerencias: #ffffff;
  --deca-superficie-sugerencias-hover: #f2f6eb;
  --deca-sombra-sugerencias: 0 4px 12px rgba(0, 0, 0, 0.15);
  --deca-peligro: #dd4b39;
}

[data-bs-theme="dark"] {
  --deca-superficie-marca: #2f4a00;
  --deca-superficie-marca-alta: #3f6200;
  --deca-superficie-marca-hover: #4f7a00;
  --deca-superficie-marca-borde: #4f7a00;
  --deca-accion: #5a8c00;
  --deca-accion-alta: #4f7a00;
  --deca-accion-borde: #4f7a00;
  --deca-texto-marca: #ffffff;
  --deca-overlay: rgba(10, 14, 10, 0.75);
  --deca-overlay-texto: #ffffff;
  --deca-superficie-login: #212529;
  --deca-superficie-sugerencias: #2b3035;
  --deca-superficie-sugerencias-hover: #343a40;
  --deca-sombra-sugerencias: 0 4px 12px rgba(0, 0, 0, 0.5);
  --deca-peligro: #ea868f;
}

.table-verde-ipg .ipg_grid_change_orden {
  color: var(--deca-texto-marca);
  text-decoration: none;
}

.table-verde-ipg .ipg_grid_change_orden:focus, .ipg_grid_change_orden:hover {
  color: #ebebeb;
}

.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
  color: var(--deca-texto-marca);
  background-color: var(--deca-accion);
  border-color: var(--deca-accion-borde);
}

.pagination > .active > input, .pagination > .active > input:focus, .pagination > .active > input:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
  color: var(--deca-texto-marca);
  background-color: var(--deca-accion);
  border-color: var(--deca-accion-borde);
}

.nav-pills > li > a {
  color: #122e63; 
  background-color: #FFFFFF; 
  border: 1px solid #122e63;
}

.nav-pills > li > a:focus,.nav-pills > li > a:hover {
  color: #122e63;
  background-color: #122e631A;
  border-color: #122e63;
}

.nav-pills > li.active > a, .nav-pills > li.active > a:focus, .nav-pills > li.active > a:hover {
  color: #fff; 
  background-color: #122e63; 
  border-color: #142a53; 
}

.navbar-fixed-top,
.navbar-fixed-bottom
{
  margin-top: 0px !important;
}

.navbar-fixed-bottom > small,
.navbar-fixed-bottom > div
{
  margin: 0 5px;
}

.navbar-footer,
.navbar-footer-msg
{
  background-color: var(--deca-superficie-marca);
  position: fixed;
  bottom: 0;
  width: 100%;
}
.navbar-footer .nav-link,
.navbar-footer-msg .nav-link
{
  color: var(--deca-texto-marca);
  text-align: center;
  display: block;
}
.navbar-footer .nav-link:hover,
.navbar-footer-msg .nav-link:hover
{
  color: var(--deca-texto-marca);
}
.navbar-footer .nav-item,
.navbar-footer-msg .nav-item
{
  flex: 1;
}
.navbar-footer .bi,
.navbar-footer-msg .bi
{
  font-size: 1.5rem;
  display: block;
}

input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control {
	line-height: inherit !important;
}
/* COPY&PASTE */

#ipg_grid_loader
{
  visibility: hidden;
}
/* .box > .overlay,
.overlay-wrapper > .overlay,
.box > .loading-img,
.overlay-wrapper > .loading-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.box .overlay,
.overlay-wrapper .overlay {
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
}
.box .overlay > .fa,
.overlay-wrapper .overlay > .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  color: #000;
  font-size: 30px;
}
.box .overlay.dark,
.overlay-wrapper .overlay.dark {
  background: rgba(0, 0, 0, 0.5);
} */

.overlay {
  position: fixed;   /* antes absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;     /* mucho más alto que el modal */
  background: var(--deca-overlay);
}

.overlay > .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  color: var(--deca-overlay-texto);
  font-size: 30px;
}

.text-green {
  color: #76b700 !important;
}
.text-red {
  color: var(--deca-peligro) !important;
}

[data-bs-theme="dark"] .text-danger {
  color: var(--bs-danger-text-emphasis) !important;
}

.filtro-activo
{
  color: var(--deca-peligro);
}

.user-image 
{
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  margin-top: -2px;
  background-color: gray;
}

.card 
{
  margin-top: 20px;
}
.card-modal
{
  margin-top: 0px;
}
.badge-counter 
{
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: red;
  color: white;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px; /* Bordes redondeados para el estilo rectangular */
}

.btn-light
{
  border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .btn-light
{
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: var(--bs-tertiary-bg);
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-hover-color: var(--bs-emphasis-color);
  --bs-btn-hover-bg: var(--bs-secondary-bg);
  --bs-btn-hover-border-color: var(--bs-border-color);
  --bs-btn-active-color: var(--bs-emphasis-color);
  --bs-btn-active-bg: var(--bs-secondary-bg);
  --bs-btn-active-border-color: var(--bs-border-color);
  --bs-btn-disabled-color: var(--bs-secondary-color);
  --bs-btn-disabled-bg: var(--bs-tertiary-bg);
  --bs-btn-disabled-border-color: var(--bs-border-color);
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}

.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary .badge {
  color: #122e63;
  background-color: #fff;
}

.navbar > .container {
  display: block; /* Sobrescribe display: flex de Bootstrap */
}

.navbar-top {
  height: 53px;
  background-color: var(--deca-superficie-marca);
}

.navbar-top .navbar-titulo {
  margin-top: 5px;
  color: var(--deca-texto-marca);
}

.card-menus {
  background-color: var(--deca-superficie-marca-alta);
  color: var(--deca-texto-marca);
  text-align: center;
  position: relative;
  border-radius: 10px;
}
.card-menus .icon img {
  max-height: 90px;
  margin-top: 20px;
}
.card-menus .count {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffcc66;
  color: #fff;
  border-radius: 50%;
  padding: 5px 10px;
  font-weight: bold;
}
.card-menus .title {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.card-menus:hover,
.card-menus:active{
  color: var(--deca-texto-marca) !important;
  background-color: var(--deca-superficie-marca-hover) !important;
  border-color: var(--deca-superficie-marca-borde) !important;
}

.page-link {
  color: var(--bs-body-color);
}

.page-link:hover {
  color: var(--bs-body-color);
}

.body-index
{
  background-image: url('../images/fondo-app-oficina-pg.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding-top: 50px;
}
@media (max-width: 767px) {
  .body-index {
    background-image: url('../images/fondo-app-oficina.jpg');
  }
}

[data-bs-theme="dark"] .body-index
{
  background-image: linear-gradient(rgba(6, 10, 6, 0.72), rgba(6, 10, 6, 0.72)), url('../images/fondo-app-oficina-pg.jpg');
}

@media (max-width: 767px) {
  [data-bs-theme="dark"] .body-index
  {
    background-image: linear-gradient(rgba(6, 10, 6, 0.72), rgba(6, 10, 6, 0.72)), url('../images/fondo-app-oficina.jpg');
  }
}

.login-container 
{
  background: var(--deca-superficie-login);
  border: 1px solid transparent;
  padding: 30px;
  padding-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
  margin-top: 20px;
}

[data-bs-theme="dark"] .login-container
{
  border-color: var(--bs-border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.login-container .footer-img 
{
  max-height: 60px;
}

.logo-tema-oscuro
{
  display: none;
}

[data-bs-theme="dark"] .logo-tema-claro
{
  display: none;
}

[data-bs-theme="dark"] .logo-tema-oscuro
{
  display: inline-block;
}

.footer-notifi 
{
  justify-content: space-around;
  align-items: center;
}

.footer-notifi .icono 
{
  position: relative;
}

.footer-notifi .icono .notification-badge 
{
  position: absolute;
  top: -5px;
  right: -18px;
  background-color: #ffcc66;
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 12px;
}

.celda-fija
{
  width: 30px;
}

.td-chk
{
  width:16px;
}

.ipg_grid_edit
{
  cursor: pointer;
}

.persiana {
  color: #76b700 !important;
}

.persiana:hover {
  color: #69a200 !important;
}

.btn-verde-ipg {
  color: var(--deca-texto-marca) !important;
  background-color: var(--deca-accion) !important;
  border-color: var(--deca-accion-borde) !important;
}

.btn-verde-ipg:hover,
.btn-verde-ipg:active{
  color: var(--deca-texto-marca) !important;
  background-color: var(--deca-accion-alta) !important;
  border-color: var(--deca-accion-borde) !important;
}

.table-verde-ipg{
  --bs-table-color: var(--deca-texto-marca);
  --bs-table-bg: var(--deca-superficie-marca-alta);
  --bs-table-border-color: var(--deca-superficie-marca-borde);
  color: var(--deca-texto-marca) !important;
  border-color: var(--deca-superficie-marca-borde) !important;
}

.nav-link.active{
  color: var(--bs-emphasis-color) !important;
  font-weight: 500 !important;
}

.nav-link-verde-ipg{
  color: #76b700 !important;
  font-weight: 500 !important;
}

#viewer_pdf canvas {
  max-width: 90%;
  max-height: 90%;
  display: block;
  margin: 0 auto;
}

.card-verde-ipg {
  color: var(--deca-texto-marca) !important;
  background-color: var(--deca-superficie-marca-alta) !important;
  border-color: var(--deca-superficie-marca-borde) !important;
}

.text-bg-success {
  color: var(--deca-texto-marca) !important;
  background-color: var(--deca-accion) !important;
  border-color: var(--deca-accion-borde) !important;
}

.list-group.suggestions {
  background-color: var(--deca-superficie-sugerencias);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: var(--deca-sombra-sugerencias);
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}

.list-group.suggestions .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--bs-border-color);
  border-radius: 3px;
  padding: 5px 8px;
  margin: 0;
  text-align: left;
  background-color: var(--deca-superficie-sugerencias);
}

.list-group.suggestions .list-group-item:last-child {
  border-bottom: 0;
}

.list-group.suggestions .list-group-item:hover {
  background-color: var(--deca-superficie-sugerencias-hover);
}

.list-group.suggestions .list-group-item strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.1;
  margin: 0;
}

.list-group.suggestions .list-group-item small {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  line-height: 1.1;
  margin: 0;
}