
 

.mb-3 img {
    max-width: 100%;
}




.estado-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: capitalize;
}

/* Colores por estatus */
.estado-abierto {
    background: #dc3545;   /* rojo */
    color: white;
}

.estado-en-proceso {
    background: #0d6efd;   /* azul */
    color: white;
}

.estado-pendiente-por-supervision{
    background: #fd7e14;   /* naranja */
    color: white;
}

.estado-pendiente-de-repuesto {
    background: #fd7e14;   /* naranja */
    color: white;
}

.estado-pendiente-de-firma {
    background: #20c997;   /* verde agua */
    color: white;
}

.estado-pendiente-de-aprobación {
    background: #20c997;   /* verde agua */
    color: white;
}

.estado-pendiente-cotización {
    background: #ffc107;   /* amarillo */
    color: black;
}


.estado-cierre-parcial {
    background: #28bc78;   /* verde */
    color: white;
}


.estado-terminado {
    background: #198754;   /* verde */
    color: white;
}

.pagination-controls button {
    margin: 2px;
    min-width: 35px;
}

.toast {
  position: fixed;
  top: 160px;
  right: 20px;
  background: #d3d3d3;
  color: #000;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  transform: translateY(20px);
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

span.required{
	color: red;
    font-weight: bold;
}
/* Botón base igual al de Regresar */
.btn-export {
  border: 2px solid #d4af37; /* dorado */
  background: transparent;
  color: #d4af37;
  font-weight: bold;
  padding: 0.375rem 0.75rem; /* igual que Bootstrap btn-sm */
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem; /* tamaño más compacto */
}

/* Cambios al pasar el mouse */
.btn-export:hover {
  background: #d4af37;
  color: #fff;
  text-decoration: none;
}

/* PDF con color rojo */
.btn-export-pdf {
  border-color: #dc3545; /* rojo */
  color: #dc3545;
}
.btn-export-pdf:hover {
  background: #dc3545;
  color: #fff;
}

/* CSV con color verde */
.btn-export-csv {
  border-color: #198754; /* verde */
  color: #198754;
}
.btn-export-csv:hover {
  background: #198754;
  color: #fff;
}

.btn-widget {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    border-left: 6px solid #ffc107;   /* línea amarilla por defecto */
    padding: 20px;
    min-height: 70px;                 
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 140px;
    text-align: center;
    display: flex;        
    align-items: center;  
    justify-content: center;
    cursor: pointer;
}

/* Hover: línea verde */
.btn-widget:hover {
    border-left-color: #28a745;  /* línea verde */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Texto dentro del botón */
.btn-widget span {
    position: relative;
    z-index: 1;
}

/* Estado activo/seleccionado */
.btn-widget.active {
    border-left-color: #28a745;  /* línea verde */
    color: #28a745;              /* texto verde para diferenciarlo */
    font-weight: 600;            /* opcional: un poco más marcado */
}




.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000; /* por encima de todo */
    max-width: 350px;
}

.flash-message {
    animation: fadeIn 0.5s, fadeOut 0.5s 3.5s; /* aparece rápido y se oculta a los 2s */
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/*------------------------------------------------------------------------*/



.form-check-label{
	font-size: 1.2rem;
	margin-left: 3px;
}
.btn-warning{
	color: #000;
    background-color: #eaaf00;
    border-color: #eaaf00;
}
.form-check-input{
	width: 1.5em;
    height: 1.5em;
}
.form-label-check{
	font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.campos-check{
	border-bottom: 1px solid #c7c8c9;
	margin-bottom: 3rem !important;
}

.modal-content{
	border-radius: 20px;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}



.modal-header{
	background: linear-gradient(135deg, #1f4788, #2d5aa0);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.subtipo-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 150px;
    border-left: 4px solid;
}

.subtipo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.subtipo-card.success {
    border-left-color: #28a745;
}

.subtipo-card.warning {
    border-left-color: #ffc107;
}

.subtipo-card .subtipo-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1rem;
}

.subtipo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtipo-icon.success {
    color: #28a745;
}

.subtipo-icon.warning {
    color: #ffc107;
}

.subtipo-page-header {
    background: linear-gradient(135deg, #1f4788, #2d5aa0);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.subtipo-page-header.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.subtipo-page-header.warning {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.subtipos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.subtipo-card-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.subtipo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Estilos para subtipos vacíos (0 equipos) */
.subtipo-vacio {
    opacity: 0.6;
    border: 2px dashed #dee2e6 !important;
    background: #f8f9fa !important;
    color: #6c757d !important;
}

.subtipo-vacio .subtipo-icon {
    opacity: 0.5;
    color: #6c757d !important;
}

.subtipo-vacio:hover {
    opacity: 0.8;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

.subtipo-vacio .card-title {
    color: #6c757d !important;
}

/* Responsive */
@media (max-width: 768px) {
    .subtipo-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .subtipo-card {
        min-height: 140px;
    }
    
    .subtipo-icon {
        font-size: 2rem;
    }
    
    .subtipo-card-title {
        font-size: 1rem;
    }
}

/* Estilos del contenedor principal */
.selector-wrapper {
    background-color: rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Réplica exacta de los estilos del modal-content */
.static-modal-content {
    border-radius: 20px;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 800px;
    width: 100%
}

/* Réplica exacta de los estilos del modal-header */
.static-modal-header {
    background: linear-gradient(135deg, #1f4788, #2d5aa0);
    color: white;
    padding: 1.2rem;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.static-modal-title {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    color: white !important;
}

/* Réplica exacta de los estilos del modal-body */
.static-modal-body {
    padding: 1rem;
}

/* Réplica exacta de los estilos del modal-footer */
.static-modal-footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

/* Todos los estilos originales de las tarjetas se mantienen igual */
.tipo-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    min-height: 220px;
    border-radius: 15px;
    overflow: hidden;
}

.tipo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.tipo-card .card-body {
    position: relative;
}

.tipo-icon {
    font-size: 3.5rem;
}

.tipo-electrico {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.tipo-electrico:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.tipo-combustion {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

.tipo-combustion:hover {
    background: linear-gradient(135deg, #ffc107, #e83e8c);
}

/* Efecto de pulse en los iconos */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tipo-card:hover .tipo-icon {
    animation: pulse 1.5s infinite;
}

/* Responsive - Réplica exacta de los estilos del modal */
@media (max-width: 768px) {
	
	.fecha-reporte{
		width: 100% !important;
	}
    .btn-cabeza {
	  display: flex;
	  flex-direction: column;
	  width: 100%;
	}
	.btn-cabeza div:first-child{
		margin-bottom: 30px;
	}
	
    .static-modal-content {
        margin: 0 auto;
    }
    
    .tipo-card {
        min-height: 180px;
    }
    
    .tipo-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .static-modal-body {
        padding: 1.5rem;
    }
}

/* Colores GMP */
:root {
    --gmp-blue: #1f4788;
    --gmp-yellow: #ffc107;
    --gmp-light-blue: #3498db;
    --gmp-dark: #2c3e50;
    --gmp-light: #ecf0f1;
    --gmp-success: #27ae60;
    --gmp-warning: #f39c12;
    --gmp-danger: #e74c3c;
    --gmp-info: #3498db;
    
    /* Colores específicos para Daily Check */
    --critical-red: #dc3545;
    --critical-bg: #f8d7da;
    --obligatory-orange: #fd7e14;
    --obligatory-bg: #fff3cd;
    --optional-gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--gmp-blue) 0%, var(--gmp-light-blue) 100%);
    min-height: 100vh;
    margin: 0;
}

/* Navbar */
.gmp-navbar {
    background: var(--gmp-blue) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--gmp-yellow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Login Page */
.login-container {
    height: 100vh;             
    display: flex;
    justify-content: center;    
    align-items: center;         
}

.login-card {
    width: 100%;
    max-width: 400px;           
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

html, body {
    height: auto;          /* se ajusta automáticamente */
    min-height: 100vh;     /* garantiza al menos el alto de la pantalla */
    overflow-x: hidden;    /* evita scroll horizontal accidental */
    overflow-y: auto; 
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.gmp-logo {
    margin-bottom: 10px;
}

.gmp-logo i {
    font-size: 3rem;
    color: var(--gmp-blue);
    margin-bottom: 10px;
}

.gmp-logo h1 {
    color: var(--gmp-blue);
    margin: 0;
    font-size: 2.5rem;
}

.subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--gmp-dark);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #b0b2b3;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gmp-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 71, 136, 0.25);
}

.btn-gmp {
    background: linear-gradient(135deg, var(--gmp-blue) 0%, var(--gmp-light-blue) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-gmp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 71, 136, 0.3);
    color: white;
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.role-category {
    margin-bottom: 15px;
}

.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.demo-buttons .btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin: 2px;
}

.assignment-hierarchy {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Dashboard */
.dashboard-container {
    padding: 20px;
}

.widget {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
    margin-top: 2rem;
}


.widget.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border: 2px solid var(--gmp-warning);
}

.widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gmp-blue) 0%, var(--gmp-light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.widget-icon.success {
    background: linear-gradient(135deg, var(--gmp-success) 0%, #2ecc71 100%);
}

.widget-icon.warning {
    background: linear-gradient(135deg, var(--gmp-warning) 0%, #f1c40f 100%);
}

.widget-icon.info {
    background: linear-gradient(135deg, var(--gmp-info) 0%, #3498db 100%);
}

.widget-icon i {
    font-size: 1.8rem;
    color: white;
}

.widget-info h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--gmp-dark);
}

.widget-info h6 {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.widget-trend {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.card-body {
    padding: 25px;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead th {
    background: var(--gmp-blue);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    border-color: #f1f3f4;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-outline-primary{
	background:white;
}

.btn-outline-secondary{
	background:white;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gmp-blue) 0%, var(--gmp-light-blue) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3d73 0%, #2980b9 100%);
}
.campos{
	padding-right: 5%;
}
.bg-warning {
	        color: #3d3d3d !important;
}
/* Status badges */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-operativo {
    background: var(--gmp-success);
    color: white;
}

.status-inoperativo {
    background: var(--gmp-danger);
    color: white;
}

.status-proceso {
    background: var(--gmp-warning);
    color: white;
}

.status-pendiente {
    background: #6c757d;
    color: white;
}

/* Estilos específicos para vista de equipos */
.table-dark th {
    background-color: var(--gmp-blue) !important;
    border-color: var(--gmp-blue) !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(31, 71, 136, 0.05);
    transition: background-color 0.2s ease;
}

/* Mejorar dropdowns de acciones */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gmp-blue);
    color: white;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Mejorar badges y estados */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Mejorar información de asignación */
.assignment-info {
    line-height: 1.4;
}

.assignment-info small {
    display: block;
    margin-bottom: 2px;
}

/* Mejorar filtros */
.equipment-filter {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.equipment-filter:focus {
    border-color: var(--gmp-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 71, 136, 0.25);
}

/* Animación para las estadísticas */
.widget-icon {
    transition: transform 0.2s ease;
}

.widget:hover .widget-icon {
    transform: scale(1.05);
}

/* Estilos específicos para FASE 5 - Notificaciones de Trabajos */
.alert.border-start {
    border-left-width: 4px !important;
}

.alert .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.tiempo-restante {
    font-weight: bold;
}

.tiempo-restante .text-danger {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Estilos para firma digital */
#firmaCanvas {
    cursor: crosshair;
    background: #fafafa;
    border-radius: 8px;
}

#firmaCanvas:hover {
    background: #f0f0f0;
}

/* Responsive Design - Mobile First Approach */

/* Base styles for mobile */
body {
    font-size: 14px;
    line-height: 1.5;
}

/* Touch-friendly buttons */
.btn {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
    touch-action: manipulation;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Enhanced widget responsiveness */
.widget {
    margin-bottom: 20px;
    padding: 20px;
    min-height: 120px;
}

.widget-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.widget-icon i {
    font-size: 1.4rem;
}

.widget-info h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.widget-info h6 {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Card improvements for touch */
.card {
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

.dashboard-title{
	color: white;
}

/* Form improvements */
.form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 15px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Table responsiveness */
.table-responsive {
    border: none;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
	width: 100%;
}

.table {
    min-width: 700px;
}

.table th,
.table td {
    padding: 12px;
    white-space: nowrap;
}

/* Navigation improvements */
.navbar-brand {
    font-size: 1.3rem;
}

.nav-link {
    padding: 10px 15px;
	color: rgba(255, 255, 255, .99) !important;
}

/* Dashboard container */
.dashboard-container {
    padding: 15px;
}

.main-content {
    padding-top: 70px;
}

/* Login improvements */
.login-card {
    padding: 30px;
    margin: 10px;
}

/* Dropdown improvements */
.dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Tablet specific styles */
@media (min-width: 576px) and (max-width: 991px) {
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .widget {
        padding: 25px;
        min-height: 130px;
    }
    
    .widget-icon {
        width: 55px;
        height: 55px;
    }
    
    .widget-icon i {
        font-size: 1.6rem;
    }
    
    .widget-info h3 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .table th,
    .table td {
        padding: 15px;
    }
    
    .dashboard-container {
        padding: 20px;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    body {
        font-size: 15px;
    }
    
    .widget {
        padding: 25px;
        min-height: 140px;
    }
    
    .widget-icon {
        width: 60px;
        height: 60px;
        margin-right: 20px;
    }
    
    .widget-icon i {
        font-size: 1.8rem;
    }
    
    .widget-info h3 {
        font-size: 2.2rem;
    }
    
    .widget-info h6 {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .form-control {
        font-size: 15px;
    }
    
    .dashboard-container {
        padding: 20px;
    }
    
    .main-content {
        padding-top: 80px;
    }
}

/* Large desktop styles */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .widget {
        padding: 30px;
    }
    
    .card-body {
        padding: 30px;
    }
}

/* Mobile specific styles */
@media (max-width: 575px) {

	.fc-header-toolbar {
		display: block !important;
		text-align: center;
	}
	.fc-toolbar-chunk {
		margin: 20px;
	}
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .widget {
        padding: 15px;
        min-height: 100px;
    }
    
    .widget-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .widget-icon i {
        font-size: 1.2rem;
    }
    
    .widget-info h3 {
        font-size: 1.4rem;
    }
    
    .widget-info h6 {
        font-size: 0.75rem;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .dashboard-container {
        padding: 10px;
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .login-card {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        margin-bottom: 15px;
    }
    
    /* Hide less important columns on mobile tables */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Improve modal on mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Better navigation on mobile */
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		color: rgba(255, 255, 255, .85) !important;
    }
}

/* Touch improvements for all devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .widget:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .table tbody tr:hover {
        background-color: rgba(31, 71, 136, 0.05);
        transform: none;
        box-shadow: none;
    }
    
    /* Larger tap targets for touch devices */
    .dropdown-toggle::after {
        margin-left: 0.5em;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Better form experience on touch */
    .form-control:focus {
        border-width: 2px;
        box-shadow: 0 0 0 0.25rem rgba(31, 71, 136, 0.25);
    }
    
    /* Enhanced button feedback */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Better table interaction */
    .table tbody tr {
        cursor: pointer;
    }
}

/* Tablet landscape optimizations */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
	
    .dashboard-container {
        padding: 15px 30px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .widget {
        min-height: 110px;
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    .btn,
    .fab,
    .quick-actions {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Submenu dropdown styles for preventive maintenance */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -3px;
}

/* Ajustes para mobile del submenu */
@media (max-width: 768px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        padding-left: 20px;
        background-color: rgba(0,0,0,0.05);
    }
    
    .dropdown-submenu .dropdown-toggle::after {
        transform: rotate(0deg);
    }
}

/* ==============================================
   DAILY CHECK EXPANDIDO - ESTILOS ESPECÍFICOS
   ============================================== */

/* Indicadores de prioridad de campos */
.campo-grupo .text-danger {
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.campo-grupo .text-warning {
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

/* Radio groups mejorados para Daily Check */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-option {
    position: relative;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 80px;
    text-align: center;
}

.radio-option:hover {
    border-color: var(--gmp-blue);
    background-color: #f8f9fa;
}

.radio-option.selected {
    border-color: var(--gmp-blue);
    background-color: var(--gmp-blue);
    color: white;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
}

/* Estados específicos para opciones críticas */
.radio-option.selected[data-value="M"] {
    background-color: var(--gmp-warning);
    border-color: var(--gmp-warning);
}

.radio-option.selected[data-value="R"] {
    background-color: var(--critical-red);
    border-color: var(--critical-red);
}

.radio-option.selected[data-value="OK"] {
    background-color: var(--gmp-success);
    border-color: var(--gmp-success);
}

.radio-option.selected[data-value="N/A"] {
    background-color: var(--optional-gray);
    border-color: var(--optional-gray);
}

/* Campos pre-llenados */
input.bg-light, select.bg-light {
    background-color: #f8f9fa !important;
    border-color: #e9ecef;
    color: #6c757d;
}

/* Alertas críticas para Daily Check */
.critical-warning {
    border-left: 5px solid var(--critical-red);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Botón de submit dinámico */
#submitBtn.btn-danger {
    animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Canvas de firma mejorado */
.firma-canvas {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    cursor: crosshair;
}

.firma-canvas:hover {
    border-color: var(--gmp-blue);
}

.firma-controls {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Validación de horómetro */
#horometer-validation {
    border-left: 4px solid var(--gmp-info);
}

#horometer-validation .alert {
    margin-bottom: 0;
}

/* Sección de turno dinámico */
#turno-info {
    font-size: 14px;
    line-height: 1.4;
}

/* Secciones del formulario mejoradas */
.formulario-seccion {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.seccion-header {
    background: linear-gradient(135deg, var(--gmp-blue), var(--gmp-light-blue));
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.seccion-body {
    background: white;
    padding: 25px;
}

/* Responsive para Daily Check */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .radio-option {
        min-width: auto;
        text-align: left;
    }
    
    .firma-canvas {
        width: 100%;
        height: 120px;
    }
    
    .seccion-body {
        padding: 15px;
    }
}

/* Indicadores de estado del equipo */
.equipo-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ok {
    background-color: var(--gmp-success);
    color: white;
}

.status-no-usar {
    background-color: var(--critical-red);
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.subtipo-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 150px;
    border-left: 4px solid;
}

.subtipo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.subtipo-card.success {
    border-left-color: #28a745;
}

.subtipo-card.warning {
    border-left-color: #ffc107;
}

.subtipo-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1rem;
}

.subtipo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtipo-icon.success {
    color: #28a745;
}

.subtipo-icon.warning {
    color: #ffc107;
}

.page-header {
    background: linear-gradient(135deg, #1f4788, #2d5aa0);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.page-header.warning {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.subtipos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.card-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Estilos para subtipos vacíos (0 equipos) */
.subtipo-vacio {
    opacity: 0.6;
    border: 2px dashed #dee2e6 !important;
    background: #f8f9fa !important;
    color: #6c757d !important;
}

.subtipo-vacio .subtipo-icon {
    opacity: 0.5;
    color: #6c757d !important;
}

.subtipo-vacio:hover {
    opacity: 0.8;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

.subtipo-vacio .card-title {
    color: #6c757d !important;
}

/* Responsive */
@media (max-width: 768px) {
	
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .subtipo-card {
        min-height: 140px;
    }
    
    .subtipo-icon {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

.lista-custom-btn-regresar {
    border: 2px solid #ffc107;  
    color: #ffc107;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
	    max-height: 70px;
}

.lista-custom-btn-regresar:hover {
    background-color: #ffc107;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-btn-pdf {
    border: 2px solid #a90f1c;  
    color: #a90f1c;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
}

.custom-btn-pdf:hover {
    background-color: #a90f1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-btn-csv {
    border: 2px solid #075104;  
    color: #075104;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
}

.custom-btn-csv:hover {
    background-color: #075104;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lista-custom-btn-crear {
    border: 2px solid #ffffff;  
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
}

.lista-custom-btn-crear:hover {
    background-color: #ffffff;
    color: gray;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}