@font-face {
    font-family: 'Ethnocentric Rg';
    src: local('Ethnocentric Rg'), 
         url('https://fonts.cdnfonts.com/s/6220/ethnocentric%20rg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #0A0A0B;
    --bg-card: rgba(20, 20, 22, 0.85); /* Slightly darker for better contrast */
    --bg-nav: rgba(10, 10, 11, 0.9);
    --primary: #FFCE00; /* Neon Yellow signage */
    --primary-glow: rgba(255, 206, 0, 0.5);
    --secondary: #E5B03B;
    --accent: #FFFFFF;
    --text-main: #F4F4F4;
    --text-muted: #B0B0B5;
    --success: #27C96B;
    --danger: #FF3B30;
    --radius: 0px; /* Sharp industrial corners like the sign */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ethnocentric Rg', sans-serif !important;
}

/* Chrome, Safari, Edge, Opera: Quitar flechas de inputs de tipo number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield !important;
}

body, html, input, button, select, textarea, span, div, p, h1, h2, h3, h4, .btn {
    font-family: 'Ethnocentric Rg', sans-serif !important;
}

body {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('../img/background_new.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Ethnocentric Rg', sans-serif !important;
    letter-spacing: 0.5px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 100px; /* Espacio para la barra de contactos fija */
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    background-color: transparent; /* Removido el fondo para evitar el efecto de recuadro */
    padding: 2rem 0;
    border-bottom: none; /* Removido el borde inferior */
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Borde decorativo removido para limpieza total */

.client-greeting-title {
    font-family: 'Ethnocentric Rg', sans-serif; 
    color: var(--primary); 
    font-size: 1.5rem; 
    text-shadow: 0 0 15px var(--primary-glow);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Admin Service Actions */
.service-actions-admin {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.service-actions-admin button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.2rem;
    filter: grayscale(1);
}

.service-actions-admin button:hover {
    transform: scale(1.2);
    filter: grayscale(0);
}

.header-logo-container {
    background: transparent; /* Removido el fondo negro para que sea transparente */
    padding: 0;
    display: block;
    margin: -2rem -2rem 1.5rem -2rem;
    overflow: hidden;
    height: auto; /* Altura proporcional */
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
}



/* Cards */
.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

@media (max-width: 600px) {
    .card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 15px var(--primary-glow);
    border-color: rgba(255, 206, 0, 0.3);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    background-color: #3D3D3F;
    border: 1px solid #4D4D4F;
    color: white;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #4D4D4F;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Ethnocentric Rg', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

/* Service Detail List */
.service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.service-date {
    font-weight: 700;
    color: var(--primary);
}

.service-km {
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.service-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-details strong {
    color: #eee;
}

/* Alerts */
.alert-banner {
    background: linear-gradient(90deg, #FF4B2B, #FF416C); /* Rojo vibrante */
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* QR Code Section */
#qrcode-container {
    background: white;
    padding: 1rem;
    display: inline-block;
    border-radius: 8px;
    margin-top: 1rem;
}

.qr-card {
    text-align: center;
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility */
.hidden { display: none !important; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flex-center { display: flex; justify-content: center; align-items: center; min-height: 70vh; flex-direction: column; text-align: center; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.7rem; }

/* Totals Dashboard */
.totals-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.total-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.total-value {
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Category Selection Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.category-card {
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.category-card:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.category-content h3 {
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.category-content p {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 600px) {
    .totals-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .total-item {
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 1rem;
    }
    .total-item:last-child {
        border-bottom: none;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        height: 140px;
    }
}

/* Footer Summary Planilla */
.footer-summary {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.modal-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
}

.modal-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
}

/* Filter Selector */
.filter-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 0.5rem; /* Reduced horizontal padding for better fit */
    cursor: pointer;
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 0.75rem; /* Slightly smaller for long texts */
    text-transform: uppercase;
    transition: var(--transition);
    flex: 1;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.filter-chip.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Specific Active Colors */
.filter-chip.chip-service.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.filter-chip.chip-distribucion.active {
    background: #00d4ff;
    color: #000;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.filter-chip.chip-tren.active {
    background: #ff8c00;
    color: #000;
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.filter-chip.chip-frenos.active {
    background: #808080;
    color: #fff;
    border-color: #808080;
    box-shadow: 0 0 15px rgba(128, 128, 128, 0.5);
}

.filter-chip.chip-reparacion.active {
    background: #27C96B;
    color: #fff;
    border-color: #27C96B;
    box-shadow: 0 0 15px rgba(39, 201, 107, 0.5);
}

@media (max-width: 600px) {
    .filter-chip {
        min-width: calc(50% - 0.4rem);
    }
}

/* Agenda Table */
.agenda-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--text-main);
}

.agenda-table th {
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
    padding: 1rem;
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.agenda-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.agenda-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Botones de acción de agenda (todos del mismo tamaño) ── */
.acciones-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

a.btn-accion,
button.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 34px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: 'Ethnocentric Rg', sans-serif;
    line-height: 1;
}
a.btn-accion:hover,
button.btn-accion:hover { transform: translateY(-2px); }

a.btn-accion-wa,
button.btn-accion-wa {
    background: #25D366 !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(37,211,102,.35);
}
a.btn-accion-wa:hover,
button.btn-accion-wa:hover { background: #1da851 !important; box-shadow: 0 5px 12px rgba(37,211,102,.5); }

a.btn-accion-qr,
button.btn-accion-qr {
    background: #9b59b6 !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(155,89,182,.35);
}
a.btn-accion-qr:hover,
button.btn-accion-qr:hover { background: #8e44ad !important; }

a.btn-accion-edit,
button.btn-accion-edit {
    background: #3498db !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(52,152,219,.35);
}
a.btn-accion-edit:hover,
button.btn-accion-edit:hover { background: #2980b9 !important; }

a.btn-accion-del,
button.btn-accion-del {
    background: #e74c3c !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(231,76,60,.35);
}
a.btn-accion-del:hover,
button.btn-accion-del:hover { background: #c0392b !important; }

/* Mantener compatibilidad con código antiguo */
.btn-ws-agenda {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}
.btn-ws-agenda:hover { background: #128C7E; transform: translateY(-2px); }

.btn-danger {
    background: #e74c3c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-danger:hover { background: #c0392b; transform: translateY(-2px); }

/* Work Badges */
.work-badges-container {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-badge {
    background: var(--primary); /* Default */
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.badge-service { background: var(--primary); color: #000; box-shadow: 0 0 8px var(--primary-glow); }
.badge-distribucion { background: #00d4ff; color: #000; box-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
.badge-tren { background: #ff8c00; color: #000; box-shadow: 0 0 8px rgba(255, 140, 0, 0.4); }
.badge-frenos { background: #808080; color: #fff; box-shadow: 0 0 8px rgba(128, 128, 128, 0.4); }
.badge-reparacion { background: #27C96B; color: #fff; box-shadow: 0 0 8px rgba(39, 201, 107, 0.5); }

/* Public Next KM Highlights */
.public-next-km {
    font-size: 1.2rem !important;
    text-shadow: 0 0 15px var(--glow-color);
    border: 2px solid var(--border-color);
    padding: 1rem !important;
    border-radius: 8px;
    margin: 1rem 0 !important;
    background: var(--bg-color) !important;
    text-align: center;
    box-shadow: inset 0 0 20px var(--glow-color);
    animation: alert-pulse 2s infinite;
}

@keyframes alert-pulse {
    0% { transform: scale(1); box-shadow: inset 0 0 20px var(--glow-color); }
    50% { transform: scale(1.02); box-shadow: inset 0 0 35px var(--glow-color); }
    100% { transform: scale(1); box-shadow: inset 0 0 20px var(--glow-color); }
}

/* Contact Bar (Fixed Bottom) */
.header-contacts {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 206, 0, 0.3);
    flex-wrap: wrap;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
    .header-contacts {
        gap: 0.5rem;
        padding: 0.6rem;
    }
    .contact-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-main);
}

.contact-item img, .contact-item svg {
    width: 20px;
    height: 20px;
}

.btn-contact-action {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-contact-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary-glow);
}

.contact-link-wa {
    color: #25D366;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link-wa:hover {
    text-decoration: underline;
}

/* Responsive Agenda */
@media (max-width: 600px) {
    .agenda-table thead {
        display: none;
    }
    .agenda-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
    }
    .agenda-table td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    .agenda-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: var(--primary);
    }
}
/* Intro View */
#view-intro {
    animation: fadeIn 0.8s ease-out;
}

.intro-content {
    animation: scalePulse 2s ease-in-out infinite;
}

.intro-logo {
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-top: 1rem;
    letter-spacing: 5px;
    opacity: 0.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Archive Details */
.history-archive {
    margin-top: 2rem;
    border-top: 2px dashed rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.history-archive summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    list-style: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.history-archive summary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.history-archive[open] summary {
    margin-bottom: 1.5rem;
    border-color: var(--primary);
}

.btn-green-click {
    background: #25D366;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    margin-left: 0.5rem;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
    display: inline-block;
    vertical-align: middle;
}

.highlight-auto {
    color: #FFDE00;
    font-weight: 900;
    font-family: 'Ethnocentric Rg', sans-serif;
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0 0 15px rgba(255, 222, 0, 0.4);
    display: inline-block;
}

/* Edit Mode Highlighting */
.edit-mode-active {
    background-color: rgba(255, 206, 0, 0.1) !important;
    backdrop-filter: blur(20px);
    border-color: var(--primary) !important;
    box-shadow: 0 0 40px rgba(255, 206, 0, 0.2), var(--shadow) !important;
    position: relative;
}

.edit-mode-active h2 {
    text-shadow: 0 0 10px var(--primary-glow);
}
/* QR Result Styling */
.qr-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.qr-actions-grid .btn {
    width: 100%;
    margin: 0;
    padding: 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wa-alt { background-color: #25D366 !important; color: white !important; }
.btn-print { background-color: var(--secondary) !important; color: white !important; }
.btn-new { background-color: var(--primary) !important; color: black !important; }


/* Los estilos de impresión se manejan al final del archivo para evitar conflictos */


/* Institutional Modal Styles */
.btn-link-special {
    background: #2A2A2B; /* Gris Plomo oscuro industrial */
    color: var(--primary); /* Letras Amarillas */
    border: 1px solid rgba(255, 206, 0, 0.5);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-link-special:hover {
    background: #3A3A3B;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.history-modal-card {
    max-width: 900px !important;
    width: 95% !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.history-content-scroll {
    overflow-y: auto;
    padding-right: 1.5rem;
    margin-right: -1.5rem;
}

.history-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.history-content-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.history-image-main img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.history-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: justify;
}

.history-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.5rem;
    text-align: center;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
    .history-image-main {
        order: -1;
    }
}
.history-section-header {
    color: var(--primary);
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
}

.history-list {
    list-style: none;
    margin-top: 1rem;
}

.history-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-main);
}

.history-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.history-highlight {
    color: var(--primary);
    font-weight: 700;
}


/* Professional Technical Blocks (Public Portal) */
.tech-block {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-left: 4px solid var(--primary);
}

.tech-block-header {
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.block-service { border-left-color: var(--primary); }
.block-distribucion { border-left-color: #00d4ff; }
.block-tren { border-left-color: #ff8c00; }
.block-frenos { border-left-color: #808080; }
.block-reparacion { border-left-color: #27C96B; }
.block-obs { border-left-color: #ffffff; background: rgba(255,255,255,0.05); }

.block-service .tech-block-header { color: var(--primary); }
.block-distribucion .tech-block-header { color: #00d4ff; }
.block-tren .tech-block-header { color: #ff8c00; }
.block-frenos .tech-block-header { color: #808080; }
.block-reparacion .tech-block-header { color: #27C96B; }
.block-obs .tech-block-header { color: #ffffff; }

.tech-block p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* Edit Mode - Selective Tabs */
.work-chip.has-data {
    position: relative;
    border-style: dashed;
}

.work-chip.has-data::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.work-chip.active.has-data::after {
    background: #000;
    box-shadow: none;
}

/* Cost Toggle Button */
.btn-toggle-costs {
    background: #1a1a1a;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 206, 0, 0.1);
}

.btn-toggle-costs:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 206, 0, 0.4);
    transform: translateY(-2px);
}

.btn-toggle-costs.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 206, 0, 0.4);
}

.currency-symbol {
    font-size: 1.5rem;
    font-weight: 800;
}

/* PRINT STYLES - ULTIMATE CENTERING V4 (No extra page) */
/* PRINT STYLES - COMPATIBLE CON MÓVILES */
@media print {
    @page { 
        margin: 0.5cm; 
        size: portrait; 
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Ocultar todo menos el resultado del QR */
    body > *:not(main), 
    main > *:not(#qr-result),
    #qr-result > *:not(#qrcode-container),
    .qr-actions-grid, 
    .btn-print,
    .btn-secondary,
    #qr-url-text { 
        display: none !important; 
    }
    
    #qr-result {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: white !important;
        box-shadow: none !important;
    }

    #qrcode-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
    }

    .qr-final-composite {
        display: block !important;
        width: 90% !important;
        max-width: 90% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}
/* Global Button Font Enforcement (as requested) */
button, .btn, .btn-accion, .btn-link-special, .filter-chip, .btn-primary, .btn-secondary, .btn-contact-action, .btn-green-click {
    font-family: 'Ethnocentric Rg', sans-serif !important;
    font-weight: 800;
}

/* Provider Buttons specifically use Ethnocentric */
.big-btn h2, .big-btn span, .big-btn p {
    font-family: 'Ethnocentric Rg', sans-serif !important;
}

/* Dashboard Button Backgrounds - CSS Driven (Root Fix) */
.btn-bg-v2 {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #111 !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 0 !important;
    visibility: visible !important;
    filter: brightness(1.25) contrast(1.05) !important;
    transition: filter 0.3s ease, transform 0.3s ease !important;
}

/* Specific button backgrounds - Resetting paths to absolute-like or confirmed relative */
.btn-venta-diaria .btn-bg-v2 { background-image: url('../img/venta_diaria_bg.png?v=2.2') !important; }
.btn-nuevo-service .btn-bg-v2 { background-image: url('../img/nuevo_service_bg.png?v=2.2') !important; }
.btn-agenda .btn-bg-v2        { background-image: url('../img/agenda_bg.png?v=2.2') !important; }
.btn-stock .btn-bg-v2         { background-image: url('../img/shell_lubricant_bg.png?v=2.2') !important; }
.btn-proveedores .btn-bg-v2   { background-image: url('../img/proveedores_bg.png?v=2.2') !important; }
.btn-admin .btn-bg-v2         { background-image: url('../img/administracion_bg.png?v=2.2') !important; }
.btn-lista-precios .btn-bg-v2 { background-image: url('../img/lista_precios_bg.png?v=1.0') !important; }
.btn-precio-filtros .btn-bg-v2 { background-image: url('../img/filters_bg_stock_1777157537772.jpg?v=1.1') !important; }
.btn-precio-aceites .btn-bg-v2 { background-image: url('../img/oils_bg_stock.png?v=1.0') !important; }
.btn-precio-escobillas .btn-bg-v2 { background-image: url('../img/wipers_bg_stock_1777157563944.jpg?v=1.1') !important; }
.btn-precio-articulos .btn-bg-v2 { background-image: url('../img/articulos_precios_bg.png?v=1.0') !important; }

.menu-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    max-width: 1000px; 
    margin: 5vh auto 0 auto; 
}
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .big-btn { height: 140px !important; aspect-ratio: auto !important; }
}

.big-btn {
    aspect-ratio: 1 / 1; border-radius: 15px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; border: 2px solid rgba(255,255,255,0.2); transition: 0.3s;
    position: relative; overflow: hidden; 
    background-color: #1a1a1a;
}
.big-btn:hover { transform: scale(1.02); border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.big-btn:hover .btn-bg-v2 { filter: brightness(1.55) contrast(1.1) !important; transform: scale(1.06) !important; }
.big-btn h2 { 
    position: relative; z-index: 2; 
    text-shadow: 2px 2px 10px #000; 
    font-size: 0.95rem; 
    color: #fff; margin: 0; 
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.15); z-index: 1; transition: 0.3s; pointer-events: none; }
.big-btn:hover .overlay { background: rgba(0,0,0,0.0); }

/* Planilla & Tables */
.section-box { 
    background: rgba(10, 10, 12, 0.98); 
    padding: 15px 10px; /* Reduced horizontal padding */
    border-radius: 15px; 
    border: 1px solid var(--primary); 
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
    margin-bottom: 20px; 
    width: 100%;
    box-sizing: border-box;
}

.planilla-header { 
    display: grid; 
    grid-template-columns: 75px 75px 70px 1fr 70px 70px 85px 55px; /* Narrower columns + Marca */
    gap: 3px; 
    padding: 10px 2px; 
    color: var(--primary); 
    font-size: 0.45rem; 
    font-weight: bold; 
    text-transform: uppercase; 
}

.row-item { 
    display: grid; 
    grid-template-columns: 75px 75px 70px 1fr 70px 70px 85px 55px; /* Matching header */
    gap: 3px; 
    background: rgba(255,255,255,0.02); 
    padding: 3px; 
    margin-bottom: 3px; 
    border-radius: 4px; 
    align-items: center; 
    border: 1px solid rgba(255,255,255,0.05); 
}

@media (max-width: 650px) {
    .planilla-header { display: none; } /* Hide header on mobile */
    .row-item {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 15px;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--primary);
        margin-bottom: 15px;
    }
    .row-item > div:nth-child(4) { grid-column: span 2; } /* Trabajo expands full width */
    .row-item > div::before {
        content: attr(data-label);
        display: block;
        font-size: 0.5rem;
        color: var(--primary);
        margin-bottom: 4px;
        font-family: 'Ethnocentric Rg', sans-serif;
    }
}

/* Footer Summary */

.totals-dashboard { display: flex; gap: 25px; align-items: center; }
.total-item { display: flex; flex-direction: column; align-items: flex-end; }
.total-label { color: #aaa; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 1px; }
.total-value { color: #fff; font-size: 1rem; font-weight: bold; }
.total-highlight { color: var(--success); font-size: 1.3rem; }

.filter-bar { display: flex; gap: 10px; align-items: center; }
.filter-bar label { font-size: 0.6rem; color: var(--primary); font-weight: bold; margin-right: 5px; }

/* Mobile Adaptations for Planilla */
@media (max-width: 900px) {
    .planilla-header { display: none !important; }
    .row-item { grid-template-columns: 1fr !important; padding: 15px !important; border: 1px solid var(--primary) !important; margin-bottom: 15px !important; }
    .row-item div { display: flex !important; justify-content: space-between !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; padding: 5px 0 !important; }
    .row-item div::before { content: attr(data-label); color: var(--primary); font-size: 0.6rem; font-weight: bold; }
    .row-item .input-mini { width: 60% !important; text-align: right !important; border:none !important; background:transparent !important; }

    .footer-summary {
        flex-direction: column !important;
        border-radius: 15px !important;
        padding: 15px !important;
        bottom: 10px !important;
        gap: 15px !important;
        width: 95% !important;
    }
    .filter-bar { width: 100% !important; justify-content: center !important; flex-wrap: wrap !important; gap: 10px !important; }
    .totals-dashboard { width: 100% !important; justify-content: space-around !important; gap: 10px !important; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
    .total-item { align-items: center !important; }
}

/* Stock Badges */
.stock-badge-low {
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse-stock 1.5s infinite;
}
@keyframes pulse-stock {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pedido-container {
    margin-top: 20px;
    background: rgba(255, 59, 48, 0.05);
    border: 1px dashed var(--danger);
    padding: 15px;
    border-radius: 10px;
}
.pedido-title { color: var(--danger); font-size: 0.7rem; margin-bottom: 10px; }
.pedido-list { font-size: 0.8rem; line-height: 1.6; }

/* Provider Specific Buttons */
#pantalla-proveedores .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 600px;
    margin: 0 auto;
}

.big-btn.btn-belpe, .big-btn.btn-maxoil, .big-btn.btn-valvoline, 
.big-btn.btn-sergio, .big-btn.btn-beral, .big-btn.btn-kq, 
.big-btn.btn-ruta7, .big-btn.btn-eliggi {
    background-image: none !important;
}

.btn-belpe { background-color: #ffffff !important; border: 3px solid #ff0000 !important; }
.btn-belpe h2 { color: #ff0000 !important; text-shadow: none !important; }

.btn-maxoil { background-color: #00a19c !important; border: 4px solid #000000 !important; }
.btn-maxoil h2 { color: #ffffff !important; -webkit-text-stroke: 1px #000000; text-shadow: none !important; }

.btn-valvoline { background-color: #002d72 !important; border: 3px solid #ffffff !important; }
.btn-valvoline h2 { color: #ffffff !important; text-shadow: 0 0 10px rgba(0,0,0,0.5) !important; }

.btn-sergio { background-color: #808080 !important; border: 3px solid #ffffff !important; }
.btn-sergio h2 { color: #ff0000 !important; text-shadow: 1px 1px 0 #fff !important; }

.btn-beral { background-color: #ff7900 !important; border: 4px solid #000000 !important; }
.btn-beral h2 { color: #ffffff !important; -webkit-text-stroke: 1px #000000; text-shadow: none !important; }

.btn-kq { background-color: #ffffff !important; border: 3px solid #555555 !important; }
.btn-kq h2 { text-shadow: none !important; }

.btn-ruta7 { background-color: #00bfff !important; border: 3px solid #000000 !important; }
.btn-ruta7 h2 { color: #ffffff !important; -webkit-text-stroke: 1.5px #000; text-shadow: none !important; }

/* 2-Line Design for Planilla (Desktop Only) */
@media (min-width: 901px) {
    #pantalla-taller .planilla-header { display: none !important; }

    #lista-trabajos .row-item {
        display: grid !important;
        grid-template-areas: 
            "fecha patente marca trabajo accion"
            ". mobra repuesto total accion";
        grid-template-columns: 100px 140px 140px 1fr 90px !important;
        gap: 10px;
        background: rgba(255,255,255,0.03);
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.08);
        align-items: end;
    }

    #lista-trabajos .row-item > div {
        display: flex;
        flex-direction: column;
    }

    #lista-trabajos .row-item > div:nth-child(1) { grid-area: fecha; }
    #lista-trabajos .row-item > div:nth-child(2) { grid-area: patente; }
    #lista-trabajos .row-item > div:nth-child(3) { grid-area: marca; }
    #lista-trabajos .row-item > div:nth-child(4) { grid-area: trabajo; }
    #lista-trabajos .row-item > div:nth-child(5) { grid-area: mobra; }
    #lista-trabajos .row-item > div:nth-child(6) { grid-area: repuesto; }
    #lista-trabajos .row-item > div:nth-child(7) { grid-area: total; justify-content: center; }
    #lista-trabajos .row-item > div:nth-child(8) { grid-area: accion; flex-direction: row; gap: 8px; justify-content: center; height: 100%; align-items: center; }

    #lista-trabajos .row-item > div::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6rem;
        color: var(--primary);
        margin-bottom: 6px;
        font-family: 'Ethnocentric Rg', sans-serif;
        text-transform: uppercase;
    }

    #lista-trabajos .row-item > div:nth-child(8)::before { display: none; }

    #lista-trabajos .row-item .input-mini, 
    #lista-trabajos .row-item input {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 1rem !important;
        padding: 10px !important;
        background: rgba(0,0,0,0.5) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        color: #fff !important;
        border-radius: 4px !important;
        text-align: left !important;
        height: 40px !important;
    }

    #lista-trabajos .row-item > div[data-label="Fecha"] input { text-align: center !important; }

    #lista-trabajos .row-item .total-col {
        font-size: 1.5rem !important;
        text-align: right !important;
        padding-right: 15px;
        background: transparent !important;
        border: none !important;
    }
}

/* Mobile Responsive Stock Cards */
@media (max-width: 900px) {
    .stock-table {
        display: block !important;
        width: 100% !important;
    }
    
    .stock-table thead, .stock-table tbody {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .stock-table thead tr:first-child {
        display: none !important;
    }
    
    .stock-table thead tr:last-child {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 206, 0, 0.05) !important;
        border: 1px solid rgba(255, 206, 0, 0.3) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .stock-table thead tr:last-child td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(1)::before {
        content: "CÓDIGO:" !important;
        font-size: 0.6rem !important;
        color: var(--primary) !important;
        font-family: 'Ethnocentric Rg', sans-serif !important;
        margin-right: 10px !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(2)::before {
        content: "CANTIDAD:" !important;
        font-size: 0.6rem !important;
        color: var(--primary) !important;
        font-family: 'Ethnocentric Rg', sans-serif !important;
        margin-right: 10px !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(3)::before {
        content: "DESEABLE:" !important;
        font-size: 0.6rem !important;
        color: var(--primary) !important;
        font-family: 'Ethnocentric Rg', sans-serif !important;
        margin-right: 10px !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(4) {
        display: none !important;
    }
    
    .stock-table thead tr:last-child input {
        width: 60% !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        background: rgba(0,0,0,0.5) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 4px !important;
        color: #fff !important;
        box-sizing: border-box !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(5) {
        justify-content: flex-end !important;
        padding-top: 6px !important;
        border-top: 1px dashed rgba(255, 206, 0, 0.2) !important;
    }
    
    .stock-table thead tr:last-child td:nth-child(5) button {
        width: 100% !important;
        height: 30px !important;
        font-size: 0.7rem !important;
    }
    
    .stock-table tbody tr {
        display: grid !important;
        grid-template-areas: 
            "codigo estado"
            "valores accion" !important;
        grid-template-columns: 1fr auto !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-left: 4px solid var(--primary) !important;
        border-radius: 8px !important;
        padding: 10px !important;
        gap: 8px !important;
        align-items: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .stock-table tbody tr td {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    .stock-table tbody tr td:nth-child(1) {
        grid-area: codigo;
        font-size: 0.8rem !important;
        text-align: left !important;
    }
    
    .stock-table tbody tr td:nth-child(2) {
        grid-area: valores;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 0.75rem !important;
    }
    
    .stock-table tbody tr td:nth-child(2)::before {
        content: "CANT: " !important;
        font-size: 0.55rem !important;
        color: #888 !important;
        font-family: 'Ethnocentric Rg', sans-serif !important;
    }
    
    .stock-table tbody tr td:nth-child(3) {
        grid-area: valores;
        display: flex !important;
        align-items: center !important;
        margin-left: 70px !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
    }
    
    .stock-table tbody tr td:nth-child(3)::before {
        content: "DESEABLE: " !important;
        font-size: 0.55rem !important;
        color: #666 !important;
        font-family: 'Ethnocentric Rg', sans-serif !important;
    }
    
    .stock-table tbody tr td:nth-child(4) {
        grid-area: estado;
        text-align: right !important;
    }
    
    .stock-table tbody tr td:nth-child(4) span {
        min-width: 70px !important;
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        border-radius: 4px !important;
        text-align: center !important;
    }
    
    .stock-table tbody tr td:nth-child(5) {
        grid-area: accion;
        text-align: right !important;
    }
    
    .stock-table tbody tr td:nth-child(5) button {
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        height: 24px !important;
        line-height: 1 !important;
    }
}
