@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

html, body {
    width: 100vw;
    min-width: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
    background: linear-gradient(135deg, #1ec6b6, #17a2b8);
    background-size: auto;
    background-position: center center;
    margin: 0;
    padding: 0;
}
body.dark-mode {
    background: linear-gradient(135deg, #096e64, #033d46) !important;
    color: #e0e0e0 !important;
}
.container {
    max-width: 100vw;
    width: fit-content;
    margin: 50px auto auto auto; /* Aumentado el margen superior para la nueva navbar */
    background: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 40px 40px 40px;
}
body.dark-mode .container {
    background: #23272b;
    color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
h1 {
    color: #2c3e50;
    margin-bottom: 24px;
}
body.dark-mode h1, body.dark-mode th {
    color: #e0e0e0;
}
a.button {
    display: inline-block;
    background: #1ec6b6;
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 18px;
    font-weight: 500;
    transition: background 0.2s;
}
a.button:hover {
    background: #0e5e5a;
    color: #fff;
    border-color: #1ec6b6;
}
/* Estilos generales de inputs comentados para evitar conflictos con vistas de producto */
/*
input[type="text"], input[type="number"], select, textarea {
    padding: 7px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 1em;
    font-family: inherit;
}
*/
/* Mantener solo estilos para dark mode de inputs generales */
body.dark-mode input:not(.form-input):not(.price-input), 
body.dark-mode select:not(.form-select), 
body.dark-mode textarea {
    background: #23272b;
    color: #e0e0e0;
    border: 1px solid #444;
}
/* Estilos generales de botones comentados para evitar conflictos con vistas de producto */
/*
button {
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Arial, sans-serif !important;
    background: #1ec6b6;
    color: #fff;
    border: 1.5px solid #0e5e5a;
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #0e5e5a;
    color: #fff;
}
*/
/* table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fafbfc;
} */
body.dark-mode table {
    background: #23272b;
}
th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
body.dark-mode td {
    border-bottom: 1px solid #333;
}
th {
    background: #f0f4f8;
    color: #2c3e50;
    vertical-align: middle;
    text-align: left;
    align-items: center;
}
body.dark-mode th {
    background: #23272b;
    color: #e0e0e0;
}
tr:last-child td {
    border-bottom: none;
}
.acciones a, .acciones form {
    display: inline-block;
    margin-right: 6px;
}
.acciones form {
    margin: 0;
}
/* === NAVBAR MODERNA === */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(14, 94, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 198, 182, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

body.dark-mode .navbar {
    background: rgba(35, 39, 43, 0.95);
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-title {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 1;
    min-width: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 198, 182, 0.1), rgba(14, 94, 90, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.logo-container:hover::before {
    opacity: 1;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1ec6b6, #17a2b8);
    border-radius: 12px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 198, 182, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logo-container:hover .logo-icon::before {
    left: 100%;
}

.logo-container:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(30, 198, 182, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.logo-container:hover .logo-text {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
}

.main-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 1.4em;
    font-weight: 900;
    color: #0e5e5a;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1ec6b6, #0e5e5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

body.dark-mode .main-title {
    background: linear-gradient(135deg, #1ec6b6, #33fce8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .logo-icon {
    background: linear-gradient(135deg, #1ec6b6, #17a2b8);
    box-shadow: 0 4px 12px rgba(51, 252, 232, 0.3);
}

body.dark-mode .logo-container:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(51, 252, 232, 0.4);
}

body.dark-mode .logo-container::before {
    background: linear-gradient(135deg, rgba(30, 198, 182, 0.15), rgba(51, 252, 232, 0.1));
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7em;
    color: #1ec6b6;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

body.dark-mode .subtitle {
    color: #33fce8;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

/* Dark Mode Toggle Moderno */
.switch-darkmode {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Tooltip para el switch */
.switch-darkmode::before {
    content: "Cambiar tema";
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(14, 94, 90, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    pointer-events: none;
}

/* Flecha del tooltip */
.switch-darkmode:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.switch-darkmode input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    border: 2px solid rgba(30, 198, 182, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Iconos de fondo del slider - Sol a la izquierda */
.slider::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Círculo deslizante del switch con icono de sol */
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231ec6b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

/* Agregar segundo pseudo-elemento para el icono de luna */
.switch-darkmode::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.switch-darkmode input:checked + .slider {
    background: linear-gradient(135deg, #1ec6b6, #17a2b8);
    border-color: rgba(30, 198, 182, 0.4);
}

.switch-darkmode input:checked + .slider::after {
    opacity: 0.15;
}

.switch-darkmode input:checked + .slider:before {
    transform: translateX(26px);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e5e5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.switch-darkmode input:checked::after {
    opacity: 0.5;
}

/* Botones de Acción Modernos */
.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1ec6b6, #17a2b8);
    border: none;
    box-shadow: 0 4px 12px rgba(30, 198, 182, 0.3);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    flex-shrink: 0;
}

.icon-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 198, 182, 0.4);
    background: linear-gradient(135deg, #17a2b8, #0e5e5a);
}

.icon-btn svg {
    transition: all 0.3s ease;
    stroke: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    width: 24px;
    height: 24px;
}

.icon-btn:hover svg {
    stroke: #33fce8;
    transform: scale(1.1);
}

/* Tooltips Animados */
.icon-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(14, 94, 90, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    pointer-events: none;
}

.icon-btn::before {
    content: '';
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(14, 94, 90, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    pointer-events: none;
}

.icon-btn:hover::after,
.icon-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

body.dark-mode .icon-btn::after {
    background: rgba(255, 255, 255, 0.95);
    color: #0e5e5a;
}

body.dark-mode .icon-btn::before {
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

/* Tooltip del switch en modo oscuro */
body.dark-mode .switch-darkmode::before {
    background: rgba(255, 255, 255, 0.95);
    color: #0e5e5a;
}
/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 65px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .main-title {
        font-size: 1.2em;
    }
    
    .subtitle {
        font-size: 0.65em;
    }
    
    .navbar-actions {
        gap: 6px;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .switch-darkmode {
        width: 48px;
        height: 26px;
        margin-right: 8px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        left: 2px;
        top: 2px;
    }
    
    .switch-darkmode input:checked + .slider:before {
        transform: translateX(22px);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .logo-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .main-title {
        font-size: 1.1em;
    }
    
    .subtitle {
        font-size: 0.6em;
    }
    
    .navbar-actions {
        gap: 4px;
    }
    
    .icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .switch-darkmode {
        width: 44px;
        height: 24px;
        margin-right: 6px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
    }
    
    .switch-darkmode input:checked + .slider:before {
        transform: translateX(20px);
    }
    
    /* Tooltips más pequeños en móvil */
    .icon-btn::after {
        font-size: 0.7em;
        padding: 6px 10px;
        bottom: -50px;
    }
    
    .icon-btn::before {
        bottom: -40px;
        border-left-width: 5px;
        border-right-width: 5px;
        border-bottom-width: 5px;
    }
    
    /* Tooltip del switch en móvil */
    .switch-darkmode::before {
        font-size: 0.7em;
        padding: 6px 10px;
        bottom: -50px;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0 12px;
    }
    
    .main-title {
        font-size: 1.2em;
    }
    
    .subtitle {
        font-size: 0.6em;
    }
    
    .navbar-actions {
        gap: 3px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .switch-darkmode {
        width: 40px;
        height: 22px;
        margin-right: 4px;
    }
    
    .slider:before {
        height: 16px;
        width: 16px;
        left: 2px;
        top: 2px;
    }
    
    .switch-darkmode input:checked + .slider:before {
        transform: translateX(18px);
    }
}
/* Estilos específicos para formularios de producto están ahora embebidos en las vistas individuales */
/* Fuente uniforme para la sección principal (excepto navbar) */
.uniform-font {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
}

/* Input de búsqueda moderno */
.modern-search {
    padding: 10px 16px;
    border: 1.5px solid #1ec6b6;
    border-radius: 24px;
    font-size: 1.08em;
    background: #f4f6fa;
    color: #0e5e5a;
    transition: border 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    outline: none;
    margin-right: 10px;
}
.modern-search:focus {
    border-color: #0e5e5a;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    background: #fff;
}

/* Centrar el contenido de los formularios en la sección de búsqueda */
.container.uniform-font form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.container.uniform-font form > * {
    margin-bottom: 8px;
}

.container.uniform-font h1, .container.uniform-font h3 {
    text-align: center;
}

.exchange-rate-card {
    max-width: 400px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 32px 24px 32px;
    text-align: center;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
body.dark-mode .exchange-rate-card {
    background: #23272b;
    color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.tasa-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 0 0;
    font-size: 1.15em;
}
.tasa-label {
    font-weight: 600;
    color: #1ec6b6;
}
.tasa-value {
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 700;
}
.tasa-promedio {
    border-top: 1px solid #e0e0e0;
    margin-top: 22px;
    padding-top: 16px;
    font-size: 1.18em;
}
.tasa-fecha {
    margin-top: 18px;
    font-size: 0.98em;
    color: #888;
}
body.dark-mode .tasa-label {
    color: #1ec6b6;
}
body.dark-mode .tasa-fecha {
    color: #aaa;
}

/* --- MODO OSCURO: Mejor contraste y elegancia en formularios de producto --- */
body.dark-mode .form-group label,
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    color: #e0e0e0 !important;
}
body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="number"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #23272b !important;
    color: #e0e0e0 !important;
    border: transparent;
    box-shadow: none !important;
    transition: border 0.18s, background 0.18s;
}
body.dark-mode .form-group input[type="text"]::placeholder,
body.dark-mode .form-group input[type="number"]::placeholder {
    color: #b0b8be !important;
    opacity: 1;
}
body.dark-mode .form-group input[type="text"]:focus,
body.dark-mode .form-group input[type="number"]:focus,
body.dark-mode .form-group select:focus {
    border-color: #1ec6b6 !important;
    background: #23272b !important;
    color: #fff !important;
}
body.dark-mode .form-group input[type="text"]:hover,
body.dark-mode .form-group input[type="number"]:hover,
body.dark-mode .form-group select:hover {
    background: #23272b !important;
    color: #fff !important;
}
body.dark-mode .form-group input[type="file"] {
    background: transparent !important;
    color: #e0e0e0 !important;
}
body.dark-mode .form-group .add-car-btn {
    background: #23272b !important;
    color: #1ec6b6 !important;
    border: 1.5px solid #1ec6b6 !important;
}
body.dark-mode .form-group .add-car-btn:hover {
    background: #1ec6b6 !important;
    color: #fff !important;
}
/* --- Fin de mejoras modo oscuro formularios producto --- */

/* === RESPONSIVE DESIGN LEGACY === */
@media (max-width: 700px) {
    .container { 
        padding: 10px; 
        max-width: 100vw; 
        margin-top: 80px; /* Ajuste para navbar más alta */
    }
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    th, td { 
        padding: 8px 4px; 
    }
}

@media (max-width: 600px) {
    .container { 
        padding: 4px;
        margin-top: 75px; /* Ajuste para navbar más alta */
    }
}

/* Descripción más pequeña y campo flexible */
td.descripcion-col input[type="text"] {
    font-size: 0.95em;
    width: 100%;
    min-width: 80px;
    max-width: 350px;
    box-sizing: border-box;
    white-space: normal;
}

/* Ajuste para la columna de descripción */
td.descripcion-col {
    width: 35%;
    min-width: 120px;
    max-width: 350px;
}