#tb_proyectos td, #tb_proyectos th {
    vertical-align: middle; /* Centrado vertical */
    text-align: center; /* Opcional: Centrado horizontal */
  }

  /* Estilo adicional para la tabla */
  #tb_personaldocente {
    width: 100%;
    border-collapse: collapse;
  }
/* Ajusta el z-index de las notificaciones de Alertify */
.alertify-logs {
  z-index: 1060 !important; /* Mayor que el z-index del modal de Bootstrap (1050) */
}

#cliente, #dni_v, #telefono_v, #direccion_v {
  background-color: transparent !important;
}

#tb_detalleVenta th:nth-child(3), 
#tb_detalleVenta td:nth-child(3), 
#tb_detalleVenta th:nth-child(4), 
#tb_detalleVenta td:nth-child(4) {
    width: 20%; /* Ajusta según necesidad */
    min-width: 150px;
    text-align: right; /* Alinea los montos a la derecha */
}

#tb_descripcion th:nth-child(3), 
#tb_descripcion td:nth-child(3), 
#tb_descripcion th:nth-child(4), 
#tb_descripcion td:nth-child(4) {
    width: 20%; /* Ajusta según necesidad */
    min-width: 150px;
    text-align: right; /* Alinea los montos a la derecha */
}

/* CONTENEDOR */
.fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

/* BOTÓN PRINCIPAL */
.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: transform .35s ease;
}

/* OPCIONES */
.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* ITEM */
.fab-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px) scale(.95);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

/* BOTÓN */
.fab-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* LABEL */
.fab-label {
    background: #494141;
    padding: 6px 12px;
    border-radius: 20px;
    border:#212529 solid 1px;
    margin-right: 10px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    white-space: nowrap;
    color: #fff;
}

/* ACTIVO */
.fab-container.active .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* CUANDO EL FAB ESTÁ ABIERTO, SÍ PERMITIR CLICKS */
.fab-container.active .fab-options {
    pointer-events: auto;
}

/* ASEGURAR QUE EL BOTÓN RECIBA EL CLICK */
.fab-btn {
    pointer-events: auto;
}


/* STAGGER */
.fab-container.active .fab-item:nth-child(1) { transition-delay: .05s }
.fab-container.active .fab-item:nth-child(2) { transition-delay: .12s }
.fab-container.active .fab-item:nth-child(3) { transition-delay: .18s }


/* OPCIONES (ANIMACIÓN) */
.btn-opcion {
    opacity: 0;
    transform: translateY(15px);
}

html, body {
  height: 100%;
  margin: 0;
}

.badge-pink    { background-color: #e83e8c; color: #fff; }
.badge-teal    { background-color: #20c997; color: #fff; }
.badge-orange  { background-color: #fd7e14; color: #fff; }
.badge-indigo  { background-color: #6610f2; color: #fff; }

/* ---------------------- */
.label-over-border {
  position: relative;
  margin-top: 1.5rem;
}

.label-over-border label {
  position: absolute;
  top: -0.75rem;
  left: 0.75rem;
  transform: none;
  background-color: #fff;
  padding: 0 8px;
  font-size: 0.9rem;
  color: #1f2020;
  z-index: 1;
  transition: color 0.3s ease;
}

.label-over-border .form-control {
  border: 1px solid #b2b7bd;
  padding-top: 0.75rem;
  transition: border-color 0.3s ease;
}

/* 🔵 Cambio de color cuando el campo tiene foco */
.label-over-border .form-control:focus {
  border-color: #17a2b8; /* celeste tipo Bootstrap */
}

.label-over-border .form-control:focus ~ label {
  color: #17a2b8; /* mismo color para el label */
}

.solo-lectura {
  background-color: #fff !important; /* fondo blanco */
  color: #212529 !important;         /* texto normal de Bootstrap */
  opacity: 1 !important;             /* evita que se vea desvanecido */
  cursor: default;                   /* cursor normal (no tipo texto) */
}


#carrito_cards .card {
    border-left: 4px solid #007bff;
}
#carrito_cards strong {
    color: #343a40;
}

.is-invalid {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 3px rgba(220, 53, 69, 0.5);
}

/* para actualizar en el sistema*/
@media (max-width: 576px) {
  .dropdown-menu-left {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* ===============================
   BOTONES PERSONALIZADOS
   Compatibilidad visual del sistema
================================ */

/* ORANGE */
.btn-orange {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}
.btn-orange:hover { background-color: #e96b0c; border-color: #dc650b; }
.btn-orange:focus { box-shadow: 0 0 0 .2rem rgba(253,126,20,.5); }

/* PINK */
.btn-pink {
    color: #fff;
    background-color: #e83e8c;
    border-color: #e83e8c;
}
.btn-pink:hover { background-color: #d63384; border-color: #cc2e7a; }
.btn-pink:focus { box-shadow: 0 0 0 .2rem rgba(232,62,140,.5); }

/* PURPLE */
.btn-purple {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}
.btn-purple:hover { background-color: #5e37a6; border-color: #59339d; }
.btn-purple:focus { box-shadow: 0 0 0 .2rem rgba(111,66,193,.5); }

/* INDIGO */
.btn-indigo {
    color: #fff;
    background-color: #6610f2;
    border-color: #6610f2;
}
.btn-indigo:hover { background-color: #520dc2; border-color: #4b0bb6; }
.btn-indigo:focus { box-shadow: 0 0 0 .2rem rgba(102,16,242,.5); }

/* TEAL */
.btn-teal {
    color: #fff;
    background-color: #20c997;
    border-color: #20c997;
}
.btn-teal:hover { background-color: #1ab183; border-color: #18a176; }
.btn-teal:focus { box-shadow: 0 0 0 .2rem rgba(32,201,151,.5); }

/* CYAN */
.btn-cyan {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}
.btn-cyan:hover { background-color: #138496; border-color: #117a8b; }
.btn-cyan:focus { box-shadow: 0 0 0 .2rem rgba(23,162,184,.5); }

/* BROWN */
.btn-brown {
    color: #fff;
    background-color: #795548;
    border-color: #795548;
}
.btn-brown:hover { background-color: #6d4c41; border-color: #5d4037; }
.btn-brown:focus { box-shadow: 0 0 0 .2rem rgba(121,85,72,.5); }

/* DARK GREEN */
.btn-darkgreen {
    color: #fff;
    background-color: #1e7e34;
    border-color: #1e7e34;
}
.btn-darkgreen:hover { background-color: #19692c; border-color: #155724; }
.btn-darkgreen:focus { box-shadow: 0 0 0 .2rem rgba(30,126,52,.5); }

/* DARK */
.btn-dark-custom {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}
.btn-dark-custom:hover { background-color: #23272b; border-color: #1d2124; }
.btn-dark-custom:focus { box-shadow: 0 0 0 .2rem rgba(52,58,64,.5); }

/* ESTADOS COMUNES */
.btn-orange:active,
.btn-pink:active,
.btn-purple:active,
.btn-indigo:active,
.btn-teal:active,
.btn-cyan:active,
.btn-brown:active,
.btn-darkgreen:active,
.btn-dark-custom:active {
    transform: scale(0.97);
}

.btn-orange:disabled,
.btn-pink:disabled,
.btn-purple:disabled,
.btn-indigo:disabled,
.btn-teal:disabled,
.btn-cyan:disabled,
.btn-brown:disabled,
.btn-darkgreen:disabled,
.btn-dark-custom:disabled {
    opacity: .65;
}

.modal-section{
    display: none;
    position: relative;
}

/*--------------------- ESTILOS bg ---------------------*/
.bg-pink-soft{
    background-color: #f8d7da !important;
}

/*--------------------- BOTÓN FLOTANTE ---------------------*/
.btn-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 22px;

    background-color: #007bff;
    color: #fff;
    border: none;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

/* hover */
.btn-flotante:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
}

.btn-flotante i {
    margin: 0;
}

.modal-fullscreen-custom {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.modal-fullscreen-custom .modal-content {
    height: 100vh;
    border-radius: 0;
}

.modal-fullscreen-custom .modal-body {
    overflow-y: auto;
}

.modal-fullscreen-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.modal-fullscreen-app .modal-content {
    height: 100vh;
    border-radius: 0;
}

.modal-fullscreen-app .modal-body {
    overflow-y: auto;
}

@media (max-width: 768px) {
    #hours {
        font-size: 48px !important;
    }

    #asis_marcar {
        font-size: 20px !important;
        height: 55px !important;
    }
}
/* Scanner*/
#scanner-container {
    max-width: 100%;
    overflow: hidden;
}

/* Marco */
#scan-overlay {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 50%;
    border: 3px solid #17a2b8;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Línea tipo láser */
#scan-line {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 3px;
    background: red;
    animation: scanAnimation 2s infinite linear;
}

@keyframes scanAnimation {
    0% { top: 15%; }
    50% { top: 60%; }
    100% { top: 15%; }
}

/* Efecto verde cuando detecta */
.scan-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 20px #28a745 !important;
}

.tabs-modern{
    border-bottom:2px solid #e9ecef;
}

.tabs-modern .nav-link{
    border:none;
    font-weight:500;
    padding:10px 18px;
    position:relative;
    color:#6c757d;
    transition:all .2s ease;
    border-radius:6px 6px 0 0;
}

.tabs-modern .nav-link:hover{
    color:#343a40;
}

.tabs-modern .nav-link.active{
    background:transparent;
}

/* línea inferior dinámica */
.tabs-modern .nav-link.active::after{
    content:"";
    position:absolute;
    bottom:-2px;
    left:0;
    width:100%;
    height:3px;
    background:currentColor;
    border-radius:3px;
}
