*:focus,
*:active {
  outline: none !important;
  box-shadow: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #1e293b;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 55px;
  overflow-x: hidden;
}

.rpt-spin {
  display: inline-block;
  animation: rpt-spin-anim 0.8s linear infinite;
  -webkit-animation: rpt-spin-anim 0.8s linear infinite;
}
@keyframes rpt-spin-anim {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@-webkit-keyframes rpt-spin-anim {
  from { -webkit-transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  background-color: #1e293b;
}

/* Estilos para el spinner */
.spinner {
  width: 18px; /* Tamaño reducido */
  height: 18px; /* Tamaño reducido */
  border: 3px solid #f3f3f3; /* Borde exterior */
  border-top: 3px solid #3498db; /* Borde superior (azul) */
  border-radius: 50%; /* Hace que el spinner sea circular */
  animation: spin 1s linear infinite; /* Animación de rotación */
  display: inline-block; /* Para que se alinee con el texto */
  margin-right: 8px; /* Espacio entre el spinner y el texto */
  margin-bottom: -4px;
}

/* Animación para girar el spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.glyphicon-refresh-animate {
  -animation: spin 0.7s infinite linear;
  -webkit-animation: spin2 0.7s infinite linear;
}

@-webkit-keyframes spin2 {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

.error {
  color: #a94442;
}

.input-error {
  border-color: #a94442;
}

.alin-btn {
  margin-top: 27px;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .open > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/*--------LOGIN-----------*/
#login {
  background: url(../img/conten/login.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.login-top {
  margin-top: 20%;
}

.login-fondo {
  background: #fff;
}

/*--------END LOGIN-----------*/

footer.footer-principal {
  width: 100%;
  background: #1e293b;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.table-responsive {
  background: transparent;
  overflow-x: auto;
  margin-top: 0px; /* Removido para arreglar el espacio superior en las tablas rediseñadas */
  margin-bottom: 30px;
  border: none;
  box-shadow: none;
  padding: 0;
}

table.table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 0px !important;
  color: #2d3748;
}

table.table thead {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

table.table thead tr th {
  font-weight: 600;
  font-size: 12px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border: none !important;
  vertical-align: middle;
}

table.table tbody tr {
  transition: all 0.2s ease-in-out;
  border-bottom: 1px solid #edf2f7;
}

table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fcfcfd;
}

table.table-hover tbody tr:hover {
  background-color: #fbfbfc !important;
  box-shadow: inset 3px 0 0 #c62828;
}

table.table tbody tr td {
  padding: 14px 20px;
  vertical-align: middle !important;
  font-size: 14px;
  color: #4a5568;
  border: none !important;
}

.table-bordered {
  border: none !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: none;
}

.vr {
  border-left: 1px solid #bbb;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  padding: 15px;
}

hr {
  border-top: 1px solid #bbb;
}

@media screen and (max-width: 768px) {
  .vr {
    border-bottom: 1px solid #bbb;
    margin-bottom: 15px;
  }
}

/* -------- Login  --------*/
.login {
  width: 100%;
  height: 100%;
  background-image: url("/img/conten/login.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #464646;
  color: white;
}

.login .panel {
  color: white;
  margin-top: 35%;
  margin-bottom: 97%;
}

.login .panel-default .panel-heading {
  background: #061d29;
  color: white;
  padding: 10px;
  border-radius: 4px 4px 0px 0px;
}

.login .panel-default .panel-body {
  background: #165577;
  padding: 10%;
  padding-bottom: 3px;
}

/*---- NAVEGADOR ------*/

.navbar {
  font-size: 14px;
  border-radius: 0;
  border: none;
  min-height: 55px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.25);
}

.navbar-inverse {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 60%, #d32f2f 100%);
}

.navbar-header {
  width: 240px;
  background: #7f0000;
  display: flex;
  align-items: center;
  float: left;
}

/* Hamburger toggle en navbar */
.navbar-sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin: 7px 16px 8px 0;
  float: left;
  transition: background 0.2s;
}
.navbar-sidebar-toggle:hover,
.navbar-sidebar-toggle:focus {
  background: rgba(255,255,255,0.2);
  outline: none;
}
.navbar-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.navbar-sidebar-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-sidebar-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-sidebar-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-inverse .navbar-brand {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  height: 55px;
  padding: 0 0 0 18px;
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar-right {
  margin-right: 10px;
}

.navbar-inverse .navbar-nav > li > a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  height: 55px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.navbar-inverse .navbar-nav > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
  border-color: rgba(255,255,255,0.1);
}

/*-----DROPDOWN MENU - SALIR------*/
.navbar-nav > li > .dropdown-menu {
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 210px;
}

.navbar-nav > li > .dropdown-menu > li > a {
  padding: 10px 20px;
  color: #4a5568;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus {
  background: #fff5f5;
  color: #c62828;
}

.navbar-nav > li.open > a.dropdown-toggle,
.navbar-nav > li.open > a.dropdown-toggle:hover,
.navbar-nav > li.open > a.dropdown-toggle:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav .open > a,
.nav .open > a:focus,
.nav .open > a:hover {
  background: rgba(255,255,255,0.12);
  border-color: transparent;
}

/*-----MENU VERTICAL------*/

.container-menu {
  font-size: 13px;
  background: linear-gradient(180deg, #b71c1c 0%, #7f0000 100%);
  position: fixed;
  height: 100%;
  left: 0;
  width: 240px;
  top: 55px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
}

.ocultar {
  left: -240px;
}

.container-menu::-webkit-scrollbar { width: 3px; }
.container-menu::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.container-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.boton {
  display: none;
}

.boton:hover {
  display: none;
}

/* Sidebar header */
.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sidebar-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.sidebar-brand-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.sidebar-user-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 5px 12px;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  box-sizing: border-box;
}

/* Navigation */
.container-menu .navegador ul {
  list-style: none;
  background: transparent;
  padding: 8px 0;
  margin: 0;
}

#menu_principal {
  padding: 0;
}

#menu_principal > li {
  border-bottom: none;
}

#menu_principal li a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  padding: 12px 18px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 13px;
  border-left: 3px solid transparent;
  text-decoration: none;
}

#menu_principal li a:hover,
#menu_principal li a:focus {
  text-decoration: none;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: rgba(255,255,255,0.65);
}

#menu_principal li img {
  display: none;
}

.menu-activo {
  display: none;
}

.span-menu {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-right: 10px;
  width: 18px;
  text-align: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

#menu_principal li a:hover .span-menu,
#menu_principal li a:focus .span-menu {
  color: #fff;
}

/* Sub-menu */
.sub-menu-drawer {
  background: rgba(0,0,0,0.2) !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
}

.sub-menu-drawer li {
  border-bottom: none !important;
}

.sub-menu-drawer li a {
  padding: 9px 18px 9px 46px !important;
  font-size: 12px;
  color: rgba(255,255,255,0.6) !important;
  border-left: 3px solid transparent !important;
  text-decoration: none !important;
  outline: none !important;
}

.sub-menu-drawer li a:hover,
.sub-menu-drawer li a:focus {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.95) !important;
  border-left-color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
  outline: none !important;
}

.span-menu-sub {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin-right: 8px;
  width: 14px;
  text-align: center;
  transition: color 0.2s ease;
}

.sub-menu-drawer li a:hover .span-menu-sub {
  color: rgba(255,255,255,0.85);
}

/* Backup button */
.backup-container {
  padding: 14px 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

.boton-inferior {
  width: 100%;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 8px !important;
  padding: 9px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.boton-inferior:hover,
.boton-inferior:focus {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.boton-inferior .glyphicon {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .container-menu {
    width: 240px;
    top: 55px;
  }
  .ocultar {
    left: -240px;
  }
}

/*----- CONTENIDO DEL APP----*/
.cuerpo {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 0;
  flex: 1;
  min-width: 0;
  background-color: #f1f5f9;
  transition: margin-left 0.35s ease;
}

.menu-container {
  margin-left: 240px;
}

.pie {
  margin-left: 0;
  width: 100%;
}

.pie-container {
  margin-left: 240px;
  width: calc(100% - 240px);
}

/* ===== FOOTER PROFESIONAL ===== */

.footer-cuerpo {
  display: flex;
  gap: 20px;
  padding: 20px 30px 12px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

/* Col 1 — Marca */
.footer-marca-nombre {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.footer-marca-sub {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-marca-linea {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #b71c1c 0%, #ef5350 100%);
  border-radius: 2px;
  margin-top: 12px;
}

/* Col 2 y 3 — Título de sección */
.footer-col-titulo {
  font-size: 11px;
  font-weight: 700;
  color: #ef5350;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.footer-col-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.footer-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-valor {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 1px;
}

.footer-empresa-nombre {
  color: #fca5a5;
}

.footer-dev-nombre {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2px;
}

/* Línea inferior de copyright */
.footer-copyright {
  border-top: 1px solid #334155;
  padding: 7px 30px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.3px;
}

/* ===== FIN FOOTER ===== */

@media screen and (max-width: 768px) {
  .menu-container {
    margin-left: 0;
  }
  .pie-container {
    margin-left: 0;
    width: 100%;
  }
  .cuerpo {
    margin-top: 55px;
  }
  .footer-cuerpo {
    flex-direction: column;
    gap: 28px;
    padding: 30px 20px 20px;
  }
  .footer-col {
    min-width: 100%;
  }
  .footer-copyright {
    padding: 14px 20px;
  }
}

.contenido {
  padding: 35px 2% 20px 2%;
}

.scroll {
  height: 200px;
  overflow: scroll;
}

.lista-comentario {
  border-bottom: 1px solid #777;
}

/*----Formularios (Rediseño Empresarial)-----*/

.caja-frm {
  margin: 15px 0px 35px 0px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.caja-cabeza-frm {
  color: #2d3748;
  padding: 15px 0px 15px 5px; /* Alineación forzada a la izquierda con línea de caja */
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.caja-cabeza-frm h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: #4a5568;
}

.caja-cabeza-frm h3 .glyphicon {
  color: #c62828; /* Acento de marca sutil */
  margin-right: 12px;
  font-size: 15px;
  background-color: #fce4e4;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 5px rgba(198, 40, 40, 0.1);
}

.caja-cuerpo-frm {
  padding: 25px;
  background: #ffffff;
}

/*----Pestañas Corporativas (Nav-Tabs)-----*/
.nav-tabs {
  border-bottom: 2px solid #edf2f7;
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
}

.nav-tabs > li {
  margin-bottom: -2px;
}

.nav-tabs > li > a {
  background-color: transparent;
  border: none !important;
  color: #718096;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  transition: all 0.3s ease;
}

.nav-tabs > li > a:hover {
  background-color: transparent !important;
  color: #c62828 !important;
  border-bottom: 2px solid #fce4e4 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background-color: transparent !important;
  border: none !important;
  color: #c62828 !important;
  border-bottom: 2px solid #c62828 !important;
}

.tab-content {
  padding-top: 15px; /* Convertido nuevamente a padding ligero en vez de un margen pesado de 30px */
}

.tab-pane {
  background: transparent;
}

/*----Paginación Empresarial (SaaS)-----*/
.pagination {
  margin: 20px 0;
  display: flex !important;
  gap: 8px;
  justify-content: flex-end; /* Alineada a la derecha */
  padding-right: 15px; /* Evita que choque con el borde derecho del contenedor/pantalla */
}

.pagination > li {
  display: inline-flex;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 6px !important;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 8px 14px;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  margin-left: 0 !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  background-color: #fce4e4;
  color: #c62828;
  border-color: #fce4e4;
  z-index: 2;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: #c62828 !important;
  border-color: #c62828 !important;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(198, 40, 40, 0.2);
  z-index: 3;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  color: #a0aec0;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

/*----Comentarios-----*/

.caja-comentario {
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/*------ SWITH BTN ------*/
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 1px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* FORMULARIO DE MANO DE OBRAS, EXTERNOS*/
.frm-servicios {
  margin: 15px;
}

/* MENU EN LA VISTA DE SERVICIO AL LADO DERECHO*/

.btn-navegacion {
  position: fixed;
  right: -5px;
  top: 10%;
  z-index: 2000;
}

/* INDEX DE LOS USUARIOS - REDISEÑO EMPRESARIAL */
.menu-index {
  margin-top: 25px;
}

.item-index {
  background: #ffffff;
  color: #4a5568;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
}

.item-index:hover {
  border-color: #c62828;
  box-shadow: 0 10px 20px rgba(198, 40, 40, 0.15);
  transform: translateY(-3px);
}

.item-index .icon {
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
  margin: 0px;
  padding: 15px 5px;
  height: auto;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
  transition: background 0.3s ease;
}

.item-index:hover .icon {
  background: #c62828;
}

.item-index .icon img {
  max-height: 45px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.item-index:hover .icon img {
  transform: scale(1.1);
}

.item-index .item-cuerpo {
  background: #ffffff;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.item-index .item-cuerpo .item-sesion {
  height: auto;
  color: #2d3748;
}

.item-index .item-cuerpo .item-sesion span {
  font-size: 16px !important;
  font-weight: 700;
}

.item-index .item-cuerpo .item-titulo {
  background: transparent;
  color: #718096;
  padding-top: 5px;
}

.item-index .item-cuerpo .item-titulo b {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

.caja-item a {
  text-decoration: none;
}

/* ---- PAGE HEADER BAR ---- */
.page-header-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #c62828;
  padding: 14px 20px !important;
  margin: 0 0 15px 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  min-height: 72px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: center;
}

.page-header-left > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.page-header-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.25);
  flex-shrink: 0;
}

.page-header-icon svg {
  display: block;
  flex-shrink: 0;
}

.page-header-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.2;
}

.page-header-subtitle {
  font-size: 12px;
  color: #a0aec0;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
}

/* ---- NOTIFICATION BUTTON ---- */
.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-family: inherit;
  white-space: nowrap;
}

.notif-btn:hover,
.notif-btn:focus {
  background: #c62828;
  border-color: #c62828;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.notif-btn-icon {
  display: inline-flex;
  align-items: center;
  color: #c62828;
  flex-shrink: 0;
  transition: color 0.18s;
}

.notif-btn:hover .notif-btn-icon,
.notif-btn:focus .notif-btn-icon {
  color: #ffffff;
}

.notif-btn-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  transition: color 0.18s;
  letter-spacing: 0.1px;
}

.notif-btn:hover .notif-btn-label,
.notif-btn:focus .notif-btn-label {
  color: #ffffff;
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c62828;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 18px;
  border-radius: 9px;
  padding: 0 6px;
  line-height: 1;
  transition: background 0.18s;
}

.notif-btn:hover .notif-badge,
.notif-btn:focus .notif-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- NOTIFICATION MODAL ---- */
#modal_notificaciones .modal-dialog {
  max-width: 460px;
  margin: 60px auto;
}

#modal_notificaciones .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

#modal_notificaciones .modal-header {
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
  padding: 20px 24px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-modal-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-modal-icon .glyphicon {
  color: #ffffff;
  font-size: 15px;
}

.notif-modal-text {
  flex: 1;
}

.notif-modal-text h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.notif-modal-text p {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin: 3px 0 0;
}

#modal_notificaciones .modal-header .close {
  color: #ffffff;
  opacity: 0.8;
  font-size: 20px;
  margin-top: 0;
  text-shadow: none;
  float: none;
}

#modal_notificaciones .modal-header .close:hover {
  opacity: 1;
}

#modal_notificaciones .modal-body {
  padding: 16px;
  background: #f8fafc;
  max-height: 420px;
  overflow-y: auto;
}

#modal_notificaciones .modal-footer {
  background: #ffffff;
  padding: 14px 20px;
  border-top: 1px solid #edf2f7;
}

/* ---- NOTIFICATION ITEMS ---- */
.notif-item {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #e2e8f0;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.notif-item:last-child { margin-bottom: 0; }

.notif-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateX(2px);
}

.notif-item.pedido   { border-left-color: #3182ce; }
.notif-item.enviado  { border-left-color: #38a169; }
.notif-item.devolviendo { border-left-color: #d97706; }

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item.pedido      .notif-item-icon { background: #ebf4ff; color: #3182ce; }
.notif-item.enviado     .notif-item-icon { background: #f0fff4; color: #38a169; }
.notif-item.devolviendo .notif-item-icon { background: #fffbeb; color: #d97706; }

.notif-item-icon .glyphicon { font-size: 14px; }

.notif-item-body { flex: 1; min-width: 0; }

.notif-item-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.notif-item.pedido      .notif-item-label { color: #3182ce; }
.notif-item.enviado     .notif-item-label { color: #38a169; }
.notif-item.devolviendo .notif-item-label { color: #d97706; }

.notif-item-text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 10px;
}

.notif-item-text a { color: #c62828; font-weight: 600; }
.notif-item-text a:hover { text-decoration: underline; }

.notif-item-action { display: flex; align-items: center; gap: 8px; }

.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.notif-action-btn.green  { background: #38a169; }
.notif-action-btn.green:hover  { background: #2f855a; box-shadow: 0 3px 8px rgba(56,161,105,0.3); transform: translateY(-1px); }
.notif-action-btn.orange { background: #d97706; }
.notif-action-btn.orange:hover { background: #b45309; box-shadow: 0 3px 8px rgba(217,119,6,0.3); transform: translateY(-1px); }

.notif-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ebf4ff;
  border: none;
  color: #3182ce;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.notif-action-link:hover { background: #bee3f8; color: #2b6cb0; text-decoration: none; }

/* ---- NOTIFICATION EMPTY STATE ---- */
.notif-empty {
  text-align: center;
  padding: 32px 20px;
}

.notif-empty-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.notif-empty-icon .glyphicon { color: #38a169; font-size: 24px; }

.notif-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 6px;
}

.notif-empty-text {
  font-size: 13px;
  color: #a0aec0;
  margin: 0;
}

.tb_control {
  background: #fff;
  border: solid 1px #cfd8dc;
  border-radius: 4px;
  padding-top: 10px;
  margin-top: 10px;
}

.btn-right {
  margin-right: -15px;
}

/*------Modal-----*/

.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  background: #c62828;
  color: #fff;
  border-radius: 6px 6px 0px 0px;
}

/*---GRAFICA ENTRADAS  --*/
.graficas {
  margin-top: 15px;
  margin-left: 20px;
  border-left: solid 15px #777;
}

/*-----REPORTES--------*/
.reporte {
  border: solid 1px #777;
  margin-bottom: 15px;
}

/*---PANEL AGRUPAR OBJETOS----*/

.text-on-pannel {
  background: #fff none repeat scroll 0 0;
  height: auto;
  padding: 3px 5px;
  position: absolute;
  margin-top: -47px;
  border: 1px solid #337ab7;
  border-radius: 8px;
}

.panel {
  /* for text on pannel */
  margin-top: 27px !important;
}

.panel-body {
  padding-top: 30px !important;
}

canvas {
  display: block;
  margin: 0 auto;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0px 0px 15px 3px #ccc;
  cursor: pointer;
}

/* Backup — duplicado eliminado; estilos definitivos están en .backup-container y .boton-inferior de arriba */

/* Spinner de carga dentro del botón */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
}

/* Ocultar por defecto */
.d-none {
  display: none;
}

/* Animación del spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
