:root {
    --e-global-color-red: #ed2546;
    --e-global-color-moradopaldaca: #32407b;
    --e-global-color-azulmarino: #141644;
    --e-global-color-azul: #282c89;
}

/* ============================================
   GENERAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ============================================
   AUTHENTICATED LAYOUT - SIDEBAR + CONTENT
   ============================================ */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 230px;
    background-color: var(--e-global-color-moradopaldaca);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-toggle {
    position: absolute;
    top: 15px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    padding: 20px 10px;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
    transition: max-width 0.3s ease;
}

.sidebar.collapsed .sidebar-logo img {
    max-width: 50px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background-color: var(--e-global-color-red);
    color: white;
}

.sidebar-link i {
    width: 24px;
    margin-right: 15px;
    font-size: 18px;
    flex-shrink: 0;
    transition: margin 0.3s ease;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}

.sidebar-link-text {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-link-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 15px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-company-logo img {
    max-width: 50px;
}

/* Main Content Area */
.main-content {
    margin-left: 230px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 70px;
}

/* Top Navbar */
.top-navbar {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--e-global-color-azulmarino);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: var(--e-global-color-azulmarino);
    font-size: 14px;
}

.user-detail {
    font-size: 12px;
    color: #666;
}

.btn-logout {
    background-color: transparent;
    border: 1px solid var(--e-global-color-red);
    color: var(--e-global-color-red);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-logout:hover {
    background-color: var(--e-global-color-red);
    color: white;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 40px;
    background-color: #f5f5f5;
}

/* ============================================
   ADMIN HOME - PROJECTS GRID
   ============================================ */
.admin-home {
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--e-global-color-azulmarino);
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 50px;
    height: 50px;
    background-color: var(--e-global-color-moradopaldaca);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.project-icon i {
    font-size: 24px;
    color: white;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--e-global-color-azulmarino);
    margin-bottom: 8px;
}

.project-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ============================================
   USUARIO HOME
   ============================================ */
.usuario-home {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    background-color: var(--e-global-color-moradopaldaca);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card-header i {
    font-size: 24px;
}

.info-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.info-card-body {
    padding: 20px;
}

.info-card-body p {
    margin-bottom: 10px;
    font-size: 14px;
}

.btn-custom {
    background-color: var(--e-global-color-moradopaldaca);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: var(--e-global-color-azul);
    color: white;
}

/* ============================================
   AUTH LAYOUT (LOGIN/REGISTER)
   ============================================ */
.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Login/Register Card */
.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.register-card {
    max-width: 700px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--e-global-color-moradopaldaca) 0%, var(--e-global-color-azul) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
}

.login-body {
    padding: 40px 30px;
}

.form-label {
    font-weight: 600;
    color: var(--e-global-color-azulmarino);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label i {
    margin-right: 5px;
    color: var(--e-global-color-moradopaldaca);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--e-global-color-moradopaldaca);
    box-shadow: 0 0 0 0.2rem rgba(50, 64, 123, 0.15);
}

.btn-login {
    background: linear-gradient(135deg, var(--e-global-color-moradopaldaca) 0%, var(--e-global-color-azul) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 64, 123, 0.3);
    color: white;
}

.login-footer p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.link-register {
    color: var(--e-global-color-moradopaldaca);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-register:hover {
    color: var(--e-global-color-azul);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar.collapsed {
        width: 70px;
    }
    
    .sidebar-link-text {
        display: none;
    }
    
    .sidebar-link {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-link i {
        margin-right: 0;
    }
    
    .sidebar-logo {
        padding: 20px 10px;
    }
    
    .sidebar-logo img {
        max-width: 50px;
    }
    
    .sidebar-company-logo img {
        max-width: 50px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 70px;
    }
    
    .navbar-content {
        padding: 15px 20px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-title {
        font-size: 16px;
    }
    
    .user-info {
        display: none;
    }
}

/* ============================================
   MÓDULO DE PROYECTOS - ESTILOS ADICIONALES
   ============================================ */

/* Badges de Estado */
.badge-estado-activo {
    background-color: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-estado-inactivo {
    background-color: #6c757d;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-estado-completado {
    background-color: #17a2b8;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-estado-pausado {
    background-color: #ff8c00;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Iconos de Proyecto por Estado */
.proyecto-icon-activo {
    background-color: #28a745;
}

.proyecto-icon-inactivo {
    background-color: #6c757d;
}

.proyecto-icon-completado {
    background-color: #17a2b8;
}

.proyecto-icon-pausado {
    background-color: #ff8c00;
}

/* Metadatos del Proyecto */
.project-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Card con header custom */
.bg-custom {
    background: linear-gradient(135deg, var(--e-global-color-moradopaldaca) 0%, var(--e-global-color-azul) 100%);
}

/* Tabla de proyectos */
.table-responsive {
    overflow-x: auto;
}

.table-hover tbody tr {
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

/* Checkboxes de usuarios */
.usuarios-checkbox-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.usuarios-checkbox-container label {
    display: block;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.usuarios-checkbox-container label:hover {
    background-color: #e9ecef;
}

.usuarios-checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

/* Botones personalizados */
.btn-group .btn {
    border-radius: 5px;
    margin: 0 2px;
}

.btn-custom {
    background: linear-gradient(135deg, var(--e-global-color-moradopaldaca) 0%, var(--e-global-color-azul) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--e-global-color-azul) 0%, var(--e-global-color-moradopaldaca) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Proyecto Detalle */
.proyecto-detalle-container .card-header h3 i {
    margin-right: 10px;
}

.proyecto-detalle-container .list-group-item {
    border-left: 4px solid var(--e-global-color-moradopaldaca);
}

/* Formulario de proyectos */
.proyecto-form-container .card-header {
    color: white;
}

/* Animación de carga para cards */
.project-card {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filtros */
.form-select, .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--e-global-color-moradopaldaca);
    box-shadow: 0 0 0 0.2rem rgba(50, 64, 123, 0.15);
}

/* Responsive para módulo de proyectos */
@media (max-width: 768px) {
    .usuarios-checkbox-container {
        max-height: 200px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin: 2px 0;
    }
}

/* ============================================
   RESPONSIVIDAD MEJORADA
   ============================================ */

/* Laptop grande (1366px+) */
@media (min-width: 1367px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .content-area {
        padding: 40px;
    }
    
    .navbar-content {
        padding: 20px 40px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    /* Timesheet responsive para laptop grande */
    .timesheet-table {
        min-width: 1200px;
        font-size: 14px;
    }
    
    .timesheet-table thead th {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .timesheet-table tbody td {
        padding: 12px 8px;
    }
    
    .hora-input-cell input {
        width: 70px;
        font-size: 14px;
    }
    
    .timesheet-card {
        margin-bottom: 25px;
    }
    
    .timesheet-stats {
        padding: 15px;
    }
    
    .stat-item {
        font-size: 14px;
    }
    
    /* Formularios responsive para laptop grande */
    .formulario-fila .col-md-1 {
        flex: 0 0 10%;
        max-width: 10%;
    }
    
    .formulario-fila .col-md-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    /* Botones responsive para laptop grande */
    .btn-group .btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .btn-custom {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* Modal responsive para laptop grande */
    .modal-dialog.modal-lg {
        max-width: 1000px;
    }
    
    .modal-body .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Laptop mediana (1200px - 1366px) */
@media (max-width: 1366px) and (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }
    
    .content-area {
        padding: 35px;
    }
    
    .navbar-content {
        padding: 18px 35px;
    }
    
    .page-title {
        font-size: 30px;
    }
    
    .project-card {
        padding: 22px;
    }
    
    .project-title {
        font-size: 17px;
    }
    
    .project-description {
        font-size: 13px;
    }
    
    /* Timesheet responsive para laptop mediana */
    .timesheet-table {
        min-width: 1150px;
        font-size: 13px;
    }
    
    .timesheet-table thead th {
        padding: 13px 9px;
        font-size: 13px;
    }
    
    .timesheet-table tbody td {
        padding: 11px 7px;
    }
    
    .hora-input-cell input {
        width: 67px;
        font-size: 13px;
    }
    
    .timesheet-card {
        margin-bottom: 22px;
    }
    
    .timesheet-stats {
        padding: 13px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    /* Formularios responsive para laptop mediana */
    .formulario-fila .col-md-1 {
        flex: 0 0 11%;
        max-width: 11%;
    }
    
    .formulario-fila .col-md-3 {
        flex: 0 0 27%;
        max-width: 27%;
    }
    
    /* Botones responsive para laptop mediana */
    .btn-group .btn {
        font-size: 13px;
        padding: 9px 13px;
    }
    
    .btn-custom {
        font-size: 15px;
        padding: 11px 19px;
    }
    
    /* Modal responsive para laptop mediana */
    .modal-dialog.modal-lg {
        max-width: 950px;
    }
    
    .modal-body .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Laptop pequeña (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .content-area {
        padding: 30px;
    }
    
    .navbar-content {
        padding: 15px 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-description {
        font-size: 13px;
    }
    
    /* Timesheet responsive para laptop */
    .timesheet-table {
        min-width: 1100px;
        font-size: 13px;
    }
    
    .timesheet-table thead th {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .timesheet-table tbody td {
        padding: 10px 6px;
    }
    
    .hora-input-cell input {
        width: 65px;
        font-size: 13px;
    }
    
    .timesheet-card {
        margin-bottom: 20px;
    }
    
    .timesheet-stats {
        padding: 12px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    /* Formularios responsive para laptop */
    .formulario-fila .col-md-1 {
        flex: 0 0 12%;
        max-width: 12%;
    }
    
    .formulario-fila .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Botones responsive para laptop */
    .btn-group .btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .btn-custom {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    /* Modal responsive para laptop */
    .modal-dialog.modal-lg {
        max-width: 900px;
    }
    
    .modal-body .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .content-area {
        padding: 25px;
    }
    
    .navbar-content {
        padding: 15px 25px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .timesheet-table {
        min-width: 1000px;
    }
    
    .timesheet-table-container {
        overflow-x: auto;
    }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-link span {
        display: none;
    }
    
    .sidebar-link {
        justify-content: center;
    }
    
    .sidebar-logo {
        padding: 20px 10px;
    }
    
    .sidebar-logo img {
        max-width: 50px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .navbar-content {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-title {
        font-size: 18px;
        text-align: center;
    }
    
    .navbar-user {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        display: none;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group .btn {
        margin: 2px 0;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Timesheet responsive */
    .timesheet-table {
        min-width: 800px;
        font-size: 12px;
    }
    
    .timesheet-table thead th {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .timesheet-table tbody td {
        padding: 8px 5px;
    }
    
    .hora-input-cell input {
        width: 60px;
        font-size: 12px;
    }
    
    .timesheet-card {
        margin-bottom: 15px;
    }
    
    .timesheet-stats {
        padding: 10px;
    }
    
    .stat-item {
        font-size: 12px;
    }
    
    /* Filtros responsive */
    .row.mb-4 {
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .btn-group.w-100 {
        flex-direction: column;
    }
    
    .btn-group.w-100 .btn {
        margin: 2px 0;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Móvil pequeño (hasta 576px) */
@media (max-width: 576px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-logo img {
        max-width: 40px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .navbar-content {
        padding: 10px;
    }
    
    .navbar-title {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-description {
        font-size: 12px;
    }
    
    .timesheet-table {
        min-width: 700px;
        font-size: 11px;
    }
    
    .timesheet-table thead th {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .timesheet-table tbody td {
        padding: 6px 3px;
    }
    
    .hora-input-cell input {
        width: 50px;
        font-size: 11px;
    }
    
    .btn-custom {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .timesheet-card .card-body {
        padding: 15px;
    }
    
    .timesheet-stats {
        padding: 8px;
    }
    
    .stat-item {
        font-size: 11px;
    }
}

/* Paginación responsive */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Formularios responsive */
@media (max-width: 768px) {
    .formulario-fila .row {
        flex-direction: column;
    }
    
    .formulario-fila .col-md-3,
    .formulario-fila .col-md-1 {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-remove-fila {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 10px;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-dialog.modal-lg {
        max-width: calc(100% - 20px);
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-3,
    .modal-body .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
}