/* --- LOGIN RESPONSIVO --- */
@media (max-width: 900px) {
    .login-container {
        min-height: 100vh;
        padding: 0 10px;
    }
    .login-form {
        max-width: 95vw;
        padding: 2rem 1rem 1.5rem 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        margin: 20px;
    }
    .login-info {
        padding: 30px;
        min-height: auto;
    }
    .login-form-section {
        padding: 40px 30px;
    }
    .login-form {
        max-width: 100vw;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        border-radius: 8px;
        font-size: 0.98rem;
        gap: 0.8rem;
    }
    .login-form h2 {
        font-size: 1.3rem;
    }
    .login-form button[type="submit"] {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
}

/* --- LAYOUT PRINCIPAL RESPONSIVO --- */
@media (max-width: 900px) {
    aside {
        width: 70px;
        min-width: 70px;
        padding: 10px 4px;
        font-size: 0.9rem;
    }
    main {
        margin-left: 70px;
        padding: 10px 4px;
    }
    .workspace {
        padding: 10px 2vw;
    }
    header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    aside {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 6px 2vw;
    }
    .workspace {
        padding: 6px 1vw;
    }
    header {
        flex-direction: column;
        gap: 6px;
        padding: 6px 0;
    }
}
/* Fondo animado con gradiente oscuro para login */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(120deg, #232526, #414345, #232526, #232526);
    background-size: 400% 400%;
    animation: gradientMove 12s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estilo profesional para el formulario de login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    background: rgba(34, 34, 40, 0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    width: 100%;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

.login-form h2 {
    color: #fff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.login-form label {
    color: #bdbdbd;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    background: #232526;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    outline: none;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    box-shadow: 0 0 0 2px #4e54c8;
}

.login-form button[type="submit"] {
    background: linear-gradient(90deg, #232526 0%, #4e54c8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(78,84,200,0.12);
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #4e54c8 0%, #232526 100%);
    transform: translateY(-2px) scale(1.03);
}

#login-error {
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.2rem;
    font-size: 0.98rem;
    text-align: center;
    min-height: 1.2em;
}
:root {
    /* Paleta Premium */
    --bg-body: #f8fafc;        /* Gris muy claro */
    --bg-sidebar: #0f172a;     /* Azul oscuro profundo */
    --bg-card: #ffffff;
    
    --primary: #4f46e5;        /* Índigo elegante */
    --primary-dark: #4338ca;
    --accent: #0ea5e9;         /* Azul cielo para detalles */
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    --success: #10b981;
    --danger: #ef4444;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --sidebar-width: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* --- SIDEBAR DE LUJO --- */
aside {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px 40px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.brand i { color: var(--primary); font-size: 1.6rem; }

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    margin-bottom: 15px;
    padding-left: 15px;
    font-weight: 600;
}

.menu ul { list-style: none; }

.menu li {
    padding: 14px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu li:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    transform: translateX(5px);
}

.menu li.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* --- CONTENIDO PRINCIPAL --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header flotante */
header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; 
}

.header-title h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.user-avatar {
    width: 35px; height: 35px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 0.9rem;
}

/* Área de trabajo */
.workspace {
    flex: 1;
    padding: 10px 40px 40px 40px;
    overflow-y: auto;
}

/* --- CARDS & KPIS --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Buttons - 3D premium */
.btn-primary {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white; padding: 10px 14px; border-radius: 12px; border: none; cursor: pointer;
    box-shadow: 0 8px 20px rgba(79,70,229,0.18), 0 2px 6px rgba(0,0,0,0.06); font-weight: 600;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary:active { transform: translateY(2px) scale(.998); box-shadow: 0 6px 14px rgba(79,70,229,0.12); }
.btn-primary:hover { filter: brightness(1.03); }

.action-btn { background: linear-gradient(180deg,#fff,#f8fafc); border:1px solid #e6eef9; padding:6px; border-radius:8px; cursor:pointer }

/* 
   ======================================================================
   APARIENCIA DE TARJETA POS (Estilo Referencia)
   ======================================================================
*/
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Contenedor de la imagen/icono */
.product-card div:first-child {
    width: 100%;
    height: 100px;
    background-color: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 3rem;
    color: #cbd5e1;
}

/* Título en mayúsculas y negrita */
.product-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* PRECIO EN VERDE */
.product-card .price {
    color: #10b981; /* Verde */
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.product-card .stock {
    font-size: 0.75rem;
    color: #64748b;
}

.product-card.no-stock {
    opacity: 0.6;
    filter: grayscale(1);
    cursor: not-allowed;
}
/* ====================================================================== */


.card-header { display: flex; justify-content: space-between; align-items: start; }
.card-icon { 
    width: 45px; height: 45px; 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.icon-blue { background: #e0e7ff; color: var(--primary); }
.icon-green { background: #dcfce7; color: var(--success); }
.icon-red { background: #fee2e2; color: var(--danger); }

.card h3 { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 15px; }
.card .value { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text-main); }

/* --- SECCIONES Y CONTENEDORES --- */
.section-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

/* --- ESTILOS PUNTO DE VENTA --- */
.pos-layout { 
    display: flex; 
    gap: 25px; 
    height: calc(100vh - 140px); 
}

.pos-products { 
    flex: 2; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}

.pos-cart { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    border-left: 4px solid var(--primary); 
}

.pos-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 15px; 
}

/* Grid de Productos */
.product-grid-container {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px; 
    overflow-y: auto; 
    padding-right: 5px; 
    flex: 1;
}

/* Ticket / Carrito */
.cart-items-container { 
    flex: 1; 
    overflow-y: auto; 
    border-top: 1px solid #f1f5f9; 
    margin-top: 15px; 
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px; font-size: 0.8rem; color: var(--text-muted); }
.cart-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }

.cart-footer { 
    margin-top: auto; 
    padding-top: 20px; 
    border-top: 2px dashed #e2e8f0; 
}

.total-row { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.4rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

/* --- GRÁFICOS Y TABLAS GENERALES --- */
.charts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.chart-box { height: 320px; position: relative; }

/* Estilo de Tabla Premium */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea al inicio cuando hay flex-wrap */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan a la siguiente línea */
    gap: 15px; /* Espacio entre los elementos de control */
    margin-bottom: 20px;
}

.table-controls > div,
.table-controls > button {
    margin-bottom: 15px; /* Añade un margen inferior para cuando los elementos se envuelven */
}


.search-box {
    position: relative;
    width: 300px;
    flex-shrink: 0; /* Evita que el search-box se encoja demasiado */
}
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s;
}
.search-box input:focus { background: white; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }

thead th {
    text-align: left;
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}
tbody tr:hover { transform: scale(1.005); box-shadow: var(--shadow-md); z-index: 10; position: relative; }

td { padding: 16px 20px; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
td:first-child { border-left: 1px solid #f1f5f9; border-radius: 10px 0 0 10px; }
td:last-child { border-right: 1px solid #f1f5f9; border-radius: 0 10px 10px 0; }

.sku-tag {
    background: #f1f5f9; color: var(--text-muted);
    padding: 4px 8px; border-radius: 6px; font-family: monospace; font-size: 0.85rem;
}

.status-badge {
    padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-low { background: #fee2e2; color: #991b1b; }

/* --- MODAL (GLASSMORPHISM) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px); /* Efecto vidrio */
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 550px;
    max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box { transform: scale(1); }

.form-group label {
    display: block; margin-bottom: 8px;
    font-weight: 500; color: var(--text-main); font-size: 0.9rem;
}
.form-group input, .form-group select {
    width: 100%; padding: 12px;
    border: 2px solid #e2e8f0; border-radius: 10px;
    transition: 0.2s; font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

/* Utilities */
.hidden { display: none !important; }
.text-bold { font-weight: 600; }
.row { display: flex; gap: 20px; margin-bottom: 20px; }
.col { flex: 1; }

/* Botones de acción tabla */
.action-btn {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    margin-right: 5px; transition: 0.2s;
}
.btn-edit { background: #eff6ff; color: var(--primary); }
.btn-edit:hover { background: var(--primary); color: white; }
.btn-del { background: #fef2f2; color: var(--danger); }
.btn-del:hover { background: var(--danger); color: white; }

/* --- CONFIGURACIÓN: BOTONES DE IDIOMA Y TEMA --- */
.lang-btn, .theme-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.lang-btn:hover, .theme-btn:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.lang-btn.active, .theme-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- TEMA OSCURO --- */
body.dark-theme {
    --bg-body: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

body.dark-theme aside {
    background: var(--bg-sidebar);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

body.dark-theme main {
    background: var(--bg-body);
}

body.dark-theme .section-container {
    background: var(--bg-card);
    border-color: #334155;
}

body.dark-theme .card {
    background: var(--bg-card);
    border-color: #334155;
}

body.dark-theme table {
    background: var(--bg-card);
}

body.dark-theme tbody tr {
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-theme .search-box input {
    background: #1e293b;
    border-color: #334155;
    color: var(--text-main);
}

body.dark-theme .search-box input:focus {
    background: #1e293b;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

body.dark-theme .product-card {
    background: #1e293b;
    border-color: #334155;
}

/* Corrección para que el título se vea en modo oscuro */
body.dark-theme .product-card h4 {
    color: #ffffff;
}

body.dark-theme .product-card:hover {
    background: #334155;
    border-color: var(--primary);
}

body.dark-theme .form-group input,
body.dark-theme .form-group select {
    background: #1e293b;
    border-color: #334155;
    color: var(--text-main);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus {
    background: #1e293b;
    border-color: var(--primary);
}

body.dark-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-theme .modal-box {
    background: var(--bg-card);
}

body.dark-theme .lang-btn,
body.dark-theme .theme-btn {
    background: #1e293b;
    border-color: #334155;
    color: var(--text-main);
}

body.dark-theme .lang-btn:hover,
body.dark-theme .theme-btn:hover {
    background: #334155;
    border-color: var(--primary);
}

body.dark-theme .lang-btn.active,
body.dark-theme .theme-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Reglas de impresión: ocultar elementos de navegación y optimizar para imprimir */
@media print {
    aside, header, .menu, .user-profile, .search-box, .table-controls, .btn-primary, .action-btn { display: none !important; }
    main { margin-left: 0 !important; }
    .workspace { width: 100%; }
}

/* Appear animation for product cards */
.product-card { opacity: 0; transform: translateY(8px) scale(.995); transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .25s ease; }
.product-card.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Category bar + buttons */
.category-bar { 
    display:flex; 
    gap:8px; 
    align-items:center; 
    flex-wrap: wrap; /* AÑADIDO: Permite que los botones de categoría bajen de línea */
}
.cat-btn { background:#f1f5f9; border:1px solid #e2e8f0; padding:6px 10px; border-radius:999px; cursor:pointer; transition: all .18s ease; font-size:0.85rem }
.cat-btn:hover { transform: translateY(-2px); background:#fff; box-shadow: var(--shadow-sm); }
.cat-btn.active { background:var(--primary); color:white; border-color:var(--primary); }

/* Client avatar */
.client-avatar { width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:white; font-weight:700; margin-right:10px; box-shadow: 0 6px 18px rgba(2,6,23,0.12); }
.clients-table td.name-cell { display:flex; align-items:center; }

/* User avatar in header refined */
.user-avatar { width:44px; height:44px; border-radius:50%; background: linear-gradient(180deg,var(--primary),var(--primary-dark)); font-weight:700; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: 0 8px 20px rgba(15,23,42,0.12); }

/* --- ESTILOS MEJORADOS PARA LA SECCIÓN DE CONFIGURACIÓN --- */
.config-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Estilo para los grupos de formulario en la sección de configuración */
.config-form-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.config-form-item label {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    min-width: 90px; /* Ancho fijo para las etiquetas */
}

.config-input {
    flex: 1; /* Ocupa el espacio restante */
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.config-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

.config-input-file {
    flex: 1;
    padding: 8px 0; /* Padding diferente para inputs de tipo file */
    border: none; /* Eliminar borde para inputs de tipo file */
    font-size: 0.9rem;
    color: var(--text-main);
}

.biz-logo-preview {
    height: 60px; /* Tamaño un poco más grande para la preview */
    max-width: 150px;
    display: none;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    object-fit: contain; /* Asegura que el logo se ajuste sin distorsionarse */
}

/* Estilos para la forma de añadir impuestos */
.tax-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.tax-add-form .config-input {
    flex: 1;
}

.tax-add-form .tax-rate-input {
    width: 100px; /* Ancho específico para el input de tasa */
    flex: none; /* Desactivar flex para que width funcione */
}

.tax-add-form .btn-primary {
    padding: 10px 15px;
    min-width: 45px; /* Para que el botón + no sea demasiado pequeño */
}

/* Contenedor de la lista de impuestos */
.tax-list-container {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fcfdfe; /* Un fondo ligeramente diferente */
    min-height: 80px; /* Para que siempre tenga un tamaño */
}

.tax-list-container > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e9edf3; /* Separador sutil */
    font-size: 0.95rem;
    color: var(--text-main);
}

.tax-list-container > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; /* No hay borde en el último elemento */
}

.tax-list-container .btn-del {
    margin-left: 15px; /* Espacio entre el nombre y el botón */
}

.tax-list-empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px;
}

/* Dark Theme specific adjustments for new config styles */
body.dark-theme .config-section-title {
    color: var(--text-main);
    border-color: #334155;
}

body.dark-theme .config-form-item label {
    color: var(--text-main);
}

body.dark-theme .config-input {
    background: #1e293b;
    border-color: #334155;
    color: var(--text-main);
}

body.dark-theme .config-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: #1e293b;
}

body.dark-theme .config-input-file {
    color: var(--text-main);
}

body.dark-theme .biz-logo-preview {
    border-color: #334155;
}

body.dark-theme .tax-list-container {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .tax-list-container > div {
    color: var(--text-main);
    border-color: #334155;
}

body.dark-theme .tax-list-empty-msg {
    color: var(--text-muted);
}