* {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-rouded {
    border-radius: 16px; !important;
}


/*Laoding Spinner*/

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loading-overlay.show {
    display: flex;
}

.loading-card {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.small-loading-spinner {
    width: 25px;
    height: 25px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #424242;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #2196F3;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-close {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #757575;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loading-close:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #424242;
}

.loading-close:active {
    transform: scale(0.98);
}


.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* TOAST*/

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-card {
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 500px;
}

.toast-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.toast-text {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    flex: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-icon.success {
    color: #4CAF50;
}

.toast-icon.error {
    color: #f44336;
}

.toast-card.success {
    background: #2e7d32;
}

.toast-card.error {
    background: #c62828;
}

/* END TOAST*/

/* FILE INPUT */

.file-input {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Asegurar que la parte de texto (nombres) tenga corte con elipsis */
.file-input input[type="file"] {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    /* algunos navegadores renderizan botón + texto en la misma caja; esto ayuda con la apariencia */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* Estilos para el botón del selector de archivos (estándar y webkit) */
.file-input input[type="file"]::file-selector-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* WebKit / Blink (Chrome, Safari) */
.file-input input[type="file"]::-webkit-file-upload-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Edge / IE fallback */
.file-input input[type="file"]::-ms-browse {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Opcional: cambio de foco para accesibilidad */
.file-input input[type="file"]:focus {
    outline: 2px solid rgba(0,123,255,0.25);
    outline-offset: 2px;
}

/* END FILE INPUT */

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    z-index: 10;
}


/* sort Table */

th.sortable{

    cursor: pointer;

}

th.sortable::after {
    content: '⇅';
    margin-left: 8px;
    color: #9ca3af;
    font-size: 12px;
}

th.sorted-asc::after {
    content: '↑';
    color: #3b82f6;
}

th.sorted-desc::after {
    content: '↓';
    color: #3b82f6;
}

.status-applied {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #10b981;
    color: white;
    font-weight: bold;
}

.status-applied::before {
    content: '✓';
}

.cellViewAction {
    cursor: pointer;
}

/* Notification Badge */

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.55rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Welcome Line Animation */

@keyframes expandLine {
    0% { width: 40px; }
    50% { width: 80px; }
    100% { width: 40px; }
}

.welcome-line {
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    margin: 0 auto 1.2rem auto;
    border-radius: 2px;
    animation: expandLine 3s ease-in-out infinite;
}

/* File Upload Component */
.ar-file-upload-modern {
    margin-bottom: 1.5rem;
}

.ar-file-upload-modern label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.ar-file-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px 15px !important;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
    position: relative;
    min-height: 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ar-file-drop-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.ar-file-drop-zone.ar-dragover {
    border-color: #3b82f6;
    background-color: #dbeafe;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ar-file-drop-zone svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.ar-file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ar-file-info {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ar-file-info strong {
    color: #374151;
}

.ar-file-types {
    color: #9ca3af;
    font-size: 0.75rem;
}

.ar-file-drop-zone.ar-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.ar-error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    background-color: #fee2e2;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

.ar-file-drop-zone.ar-file-selected-state {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.ar-file-drop-zone.ar-file-selected-state svg {
    color: #10b981;
}

.ar-file-drop-zone.ar-file-selected-state .ar-file-info {
    color: #065f46;
}

.ar-file-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 8px;
    border: 1px solid #ef4444;
    border-radius: 50%;
    background: #fff;
    color: #ef4444;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.ar-file-clear-btn:hover {
    background: #ef4444;
    color: #fff;
}

@media (max-width: 640px) {
    .ar-file-drop-zone {
        padding: 1.5rem;
    }

    .ar-file-drop-zone svg {
        width: 36px;
        height: 36px;
    }
}

/* Variant rows in purchase order */
.variant-row td:first-child {
    border-left: 3px solid #2E75B6;
}
.variant-row.group-even {
    background-color: #F5F9FF;
}
.variant-row.group-odd {
    background-color: #FFFFFF;
}
.variant-toggle {
    cursor: pointer;
    margin-right: 5px;
}

/* ===== LANDING PAGE ===== */

/* Animations */
.landing-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.landing-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.landing-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.landing-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.landing-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.landing-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children .landing-fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .landing-fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .landing-fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .landing-fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .landing-fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .landing-fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Hero */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20,20,20,0.85) 0%, rgba(40,40,40,0.6) 50%, rgba(255,206,102,0.3) 100%);
    z-index: 1;
}
.landing-hero-content {
    position: relative;
    z-index: 2;
}
.landing-hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}
.landing-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0.9;
}
.landing-hero-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #ffce66;
    color: #ffce66;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    margin-top: 1.5rem;
}
.landing-hero-cta:hover {
    background: #ffce66;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,206,102,0.3);
    text-decoration: none;
}

/* Floating particles */
.landing-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,206,102,0.15);
    animation: landing-float 20s infinite ease-in-out;
    z-index: 0;
}
.landing-particle:nth-child(1) { width: 300px; height: 300px; top: -50px; right: -100px; animation-delay: 0s; }
.landing-particle:nth-child(2) { width: 200px; height: 200px; bottom: -50px; left: -50px; animation-delay: -5s; }
.landing-particle:nth-child(3) { width: 150px; height: 150px; top: 40%; right: 20%; animation-delay: -10s; }
@keyframes landing-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(10px, -10px) rotate(3deg); }
}

/* Section styles */
.landing-section {
    padding: 100px 0;
    position: relative;
}
.landing-section-alt {
    background: #f8f9fa;
}
.landing-section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.landing-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}
.landing-section-line {
    width: 60px;
    height: 4px;
    background: #ffce66;
    border-radius: 2px;
    margin-bottom: 2rem;
}
.landing-section-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    font-family: 'Roboto', sans-serif;
}

/* Feature cards */
.landing-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffce66, #f0a500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.landing-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.landing-feature-card:hover::before {
    transform: scaleX(1);
}
.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #f0a500;
}
.landing-feature-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}
.landing-feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* Module rows */
.landing-module-img {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 480px;
}
.landing-module-img:hover {
    transform: scale(1.03);
}
.landing-module-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #b8860b;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.landing-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}
.landing-section-dark .landing-module-title {
    color: #fff;
}

/* Contact bar */
.landing-contact-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2.5rem 0;
}
.landing-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.landing-contact-item i {
    color: #ffce66;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.landing-contact-item a {
    color: #ffce66;
    text-decoration: none;
    transition: opacity 0.3s;
}
.landing-contact-item a:hover {
    opacity: 0.8;
    color: #ffce66;
}

/* Reports grid */
.landing-report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.landing-report-item:hover {
    background: rgba(255,206,102,0.1);
    transform: translateX(8px);
    border-color: rgba(255,206,102,0.2);
}
.landing-report-item i {
    color: #ffce66;
    font-size: 0.85rem;
}
.landing-report-item span {
    font-size: 0.95rem;
    font-weight: 400;
}

/* KPI counter */
.landing-kpi-item {
    text-align: center;
    padding: 1.5rem;
}
.landing-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,206,102,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffce66;
    font-size: 1.2rem;
}
.landing-kpi-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Footer */
.landing-footer {
    background: #0d0d1a;
    padding: 3rem 0;
    color: rgba(255,255,255,0.5);
}
.landing-footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.landing-footer-brand span {
    color: #ffce66;
}

/* Navbar */
.landing-nav {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}
.landing-nav.scrolled {
    background: rgba(26,26,46,0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-hero-title { font-size: 2.5rem; }
    .landing-hero-subtitle { font-size: 1rem; }
    .landing-section { padding: 60px 0; }
    .landing-section-title { font-size: 1.8rem; }
    .landing-module-title { font-size: 1.5rem; }
    .landing-module-img { max-width: 100%; margin-bottom: 2rem; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* AI Suggestion Animations */
@keyframes aiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes aiPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

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

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

.ai-spinner-outer {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid #f3e5f5;
    border-top: 3px solid #7b1fa2;
    border-radius: 50%;
    animation: aiSpin 1s linear infinite;
}

.ai-spinner-inner {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border: 3px solid #f3e5f5;
    border-bottom: 3px solid #9c27b0;
    border-radius: 50%;
    animation: aiSpin 1.5s linear infinite reverse;
}

.ai-spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7b1fa2;
    font-size: 20px;
    animation: aiPulse 1.5s ease-in-out infinite;
}

.ai-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ai-step {
    font-size: 11px;
    animation: aiFadeIn 0.5s ease-in forwards;
}

/* Smart Tools Filter Sidebar */
.smart-tools-layout {
    display: flex;
    min-height: 300px;
}

.smart-tools-sidebar {
    width: 200px;
    min-width: 200px;
    border-right: 1px solid #dee2e6;
    background-color: #fafafa;
    padding: 12px;
    overflow-y: auto;
    max-height: 70vh;
}

.smart-tools-sidebar h6 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #757575;
    margin-bottom: 8px;
}

.smart-tools-sidebar .filter-group {
    margin-bottom: 12px;
}

.smart-tools-sidebar .filter-group-title {
    font-size: 11px;
    font-weight: bold;
    color: #424242;
    margin-bottom: 4px;
}

.smart-tools-sidebar .custom-control {
    margin-bottom: 2px;
}

.smart-tools-sidebar .custom-control-label {
    font-size: 12px;
    cursor: pointer;
}

.smart-tools-content {
    flex: 1;
    overflow-y: auto;
    max-height: 70vh;
}

.ai-reason-row td {
    background-color: #f3e5f5;
    border-left: 3px solid #7b1fa2;
}

/* ============================================================
   Report previews (income statement, balance sheet, trial balance)
   ============================================================ */

/* Shared preview toolbar */
.income-statement-preview .preview-toolbar,
.income-statement-year-preview .preview-toolbar,
.balance-sheet-preview .preview-toolbar,
.trial-balance-preview .preview-toolbar,
.cheking-balance-preview .preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.income-statement-preview .preview-meta,
.income-statement-year-preview .preview-meta,
.balance-sheet-preview .preview-meta,
.trial-balance-preview .preview-meta,
.cheking-balance-preview .preview-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Shared section title */
.income-statement-preview .preview-section-title,
.balance-sheet-preview .preview-section-title {
    background: #0d6efd;
    color: #fff;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

/* Shared table base */
.income-statement-preview table,
.balance-sheet-preview table,
.trial-balance-preview table,
.cheking-balance-preview table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.income-statement-preview thead th,
.balance-sheet-preview thead th,
.trial-balance-preview thead th,
.cheking-balance-preview thead th {
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cheking-balance-preview thead th {
    padding: 8px 6px;
}

.income-statement-preview tbody td,
.balance-sheet-preview tbody td,
.trial-balance-preview tbody td,
.cheking-balance-preview tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.cheking-balance-preview tbody td {
    padding: 7px 6px;
}

/* Account-row (clickable row that drills into GLE) */
.income-statement-preview tr.account-row,
.balance-sheet-preview tr.account-row,
.trial-balance-preview tr.account-row,
.cheking-balance-preview tr.account-row {
    cursor: pointer;
}

.income-statement-preview tr.account-row:hover,
.balance-sheet-preview tr.account-row:hover,
.trial-balance-preview tr.account-row:hover,
.cheking-balance-preview tr.account-row:hover {
    background: #f9fafb;
}

/* Nested account-row inside a control-row uses a slightly different hover */
.income-statement-preview tr.account-row:hover {
    background: #f3f4f6;
}

.income-statement-preview tr.account-row .toggle-icon,
.balance-sheet-preview tr.account-row .toggle-icon,
.trial-balance-preview tr.account-row .toggle-icon,
.cheking-balance-preview tr.account-row .toggle-icon {
    transition: transform 0.2s;
}

.income-statement-preview tr.account-row.expanded .toggle-icon,
.balance-sheet-preview tr.account-row.expanded .toggle-icon,
.trial-balance-preview tr.account-row.expanded .toggle-icon,
.cheking-balance-preview tr.account-row.expanded .toggle-icon {
    transform: rotate(90deg);
}

.income-statement-preview tr.account-detail-row > td,
.balance-sheet-preview tr.account-detail-row > td,
.trial-balance-preview tr.account-detail-row > td,
.cheking-balance-preview tr.account-detail-row > td {
    padding: 0;
    background: #fafafa;
}

/* Nested detail row inside a control uses slightly darker bg */
.income-statement-preview tr.account-detail-row > td {
    background: #f3f4f6;
}

.income-statement-preview .account-detail-content,
.balance-sheet-preview .account-detail-content,
.trial-balance-preview .account-detail-content,
.cheking-balance-preview .account-detail-content {
    padding: 8px 16px;
}

/* Control-row (parent account, expands to show child accounts) */
.income-statement-preview tr.control-row {
    cursor: pointer;
}

.income-statement-preview tr.control-row:hover {
    background: #f9fafb;
}

.income-statement-preview tr.control-row .toggle-icon {
    transition: transform 0.2s;
}

.income-statement-preview tr.control-row.expanded .toggle-icon {
    transform: rotate(90deg);
}

/* Totals and utility rows */
.income-statement-preview tr.section-total td,
.balance-sheet-preview tr.section-total td,
.trial-balance-preview tr.total-row td,
.cheking-balance-preview tr.total-row td {
    background: #eef2ff;
    font-weight: 700;
    color: #111827;
}

.income-statement-preview tr.utility-row td {
    background: #ecfdf5;
    font-weight: 700;
    color: #065f46;
    border-top: 2px solid #10b981;
}

.balance-sheet-preview tr.balance-check-row td {
    background: #ecfdf5;
    font-weight: 700;
    color: #065f46;
    border-top: 2px solid #10b981;
    padding: 10px;
}

/* Year preview (12 monthly columns + total) */
.income-statement-year-preview {
    font-size: 11.5px;
}

.income-statement-year-preview .year-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.income-statement-year-preview table {
    width: 100%;
    min-width: 1280px;
    border-collapse: separate;
    border-spacing: 0;
}

.income-statement-year-preview thead th {
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: right;
    white-space: nowrap;
}

.income-statement-year-preview thead th.account-col {
    text-align: left;
}

.income-statement-year-preview tbody td {
    padding: 6px 6px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.income-statement-year-preview tbody td.account-name {
    color: #111827;
    padding-left: 18px;
}

.income-statement-year-preview tr.year-section-header td {
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11px;
    padding: 8px 10px;
}

.income-statement-year-preview tr.year-section-total td {
    background: #eef2ff;
    font-weight: 700;
    color: #111827;
}

.income-statement-year-preview tr.year-utility-total td {
    background: #ecfdf5;
    font-weight: 700;
    color: #065f46;
    border-top: 2px solid #10b981;
}

.income-statement-year-preview tr.account-row {
    cursor: pointer;
}

.income-statement-year-preview tr.account-row:hover {
    background: #f9fafb;
}

.income-statement-year-preview tr.account-row .toggle-icon {
    transition: transform 0.2s;
}

.income-statement-year-preview tr.account-row.expanded .toggle-icon {
    transform: rotate(90deg);
}

.income-statement-year-preview tr.account-detail-row > td {
    padding: 0;
    background: #fafafa;
}

.income-statement-year-preview .account-detail-content {
    padding: 8px 16px;
}


/* ============================================================================
   NUEVO DISEÑO
   ============================================================================ */

/* ── 1. TOKENS (MD3) — fuente de verdad ─────────────────────────────────── */
:root {
    /* PRIMARY (Google Blue) */
    --primary:           #1a73e8;
    --primary-dark:      #1557b0;
    --primary-light:     #4285f4;
    --primary-surface:   #e8f0fe;
    --primary-hover:     #d2e3fc;

    /* NEUTRALES (MD3) */
    --surface:            #ffffff;
    --surface-dim:        #f8f9fa;
    --surface-container:  #f1f3f4;
    --surface-variant:    #e8eaed;
    --on-surface:         #202124;
    --on-surface-variant: #5f6368;
    --outline:            #dadce0;
    --outline-variant:    #e8eaed;

    /* SEMÁNTICOS */
    --success: #34a853;  --success-surface: #e6f4ea;
    --warning: #f9ab00;  --warning-surface: #fef7e0;
    --error:   #ea4335;  --error-surface:   #fce8e6;
    --info:    #4285f4;  --info-surface:    #e8f0fe;

    /* LAYOUT */
    --nav-w:    272px;
    --topbar-h:  56px;

    /* BORDER RADIUS */
    --radius-xs:   8px;
    --radius-sm:  12px;
    --radius-md:  16px;
    --radius-lg:  28px;
    --radius-full: 9999px;

    /* ELEVATION */
    --elevation-1: 0 1px 2px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
    --elevation-2: 0 1px 3px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.06);

    /* ALIAS LEGACY */
    --primary-color: var(--primary);
    --bg-light:      var(--surface-dim);
    --text-muted:    var(--on-surface-variant);
    --border-color:  var(--outline);
    --shadow-sm:     var(--elevation-1);
    --shadow-md:     var(--elevation-2);
    --transition:    all 0.2s ease;

    /* Fuente de display del sistema (usa la ya cargada Google Sans Flex) */
    --font-display: 'Google Sans Flex', 'Google Sans', 'Inter', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── 2. DARK MODE (data-theme="dark" en <html>) ─────────────────────────── */
[data-theme="dark"] {
    --surface:            #292a2d;
    --surface-dim:        #1e1e1f;
    --surface-container:  #3c4043;
    --surface-variant:    #3c4043;
    --on-surface:         #e8eaed;
    --on-surface-variant: #9aa0a6;
    --outline:            #3c4043;
    --outline-variant:    #3c4043;
    --primary:            #8ab4f8;
    --primary-dark:       #a8c7fa;
    --primary-surface:    #1e3a5f;
    --primary-hover:      #253f6b;
    --error-surface:      #4e1f1a;
    --success-surface:    #1a3d24;
    --warning-surface:    #3d2e00;
    --info-surface:       #1e3a5f;
}

/* ── 3. ICONOGRAFÍA (Material Symbols) ──────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── 4. SHELL DE PÁGINA ─────────────────────────────────────────────────── */
.modul-container-height,
.full-remaining-height {
    display: flex;
    flex-flow: row;
    height: 100%;
    overflow: hidden;
}
.b2b-content-area {
    flex: 1;
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    background-color: var(--surface-dim);
}
/* Gutters de página recomendados */
.cb-page { padding: 20px 24px; }

/* ── 5. TOPBAR (.crm-topbar) ────────────────────────────────────────────── */
.crm-topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}
.crm-topbar-left  { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.crm-topbar-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.crm-topbar-toggle,
.crm-topbar-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--on-surface-variant);
    background: transparent;
    border: none;
    transition: background-color 0.2s ease;
    position: relative;
}
.crm-topbar-toggle:hover,
.crm-topbar-btn:hover { background: var(--surface-container); }
.crm-topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.crm-topbar-brand-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-xs);
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px; font-weight: 700;
    flex-shrink: 0;
}
.crm-topbar-brand-name { font-size: 16px; font-weight: 500; color: var(--on-surface); }
.crm-topbar-company {
    font-size: 13px;
    color: var(--on-surface-variant);
    padding-left: 12px;
    border-left: 1px solid var(--outline);
    margin-left: 4px;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crm-topbar-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-container);
    border-radius: 24px;
    padding: 8px 16px;
    width: 400px; max-width: 40vw;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.crm-topbar-search:focus-within {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-surface);
}
.crm-topbar-search input {
    border: none; background: transparent; outline: none;
    font-size: 14px; color: var(--on-surface); width: 100%;
    font-family: var(--font-body);
}
.crm-topbar-search input::placeholder { color: var(--on-surface-variant); }
.crm-topbar-divider { width: 1px; height: 24px; background: var(--outline); margin: 0 4px; }
/* Botón de topbar con label (campana de notificaciones) */
.crm-topbar-btn--labeled {
    width: auto; height: auto;
    flex-direction: column;
    border-radius: var(--radius-xs);
    padding: 4px 8px; gap: 2px;
}
.crm-topbar-btn-label {
    font-family: var(--font-body);
    font-size: 10px; font-weight: 500; line-height: 1;
    color: var(--on-surface-variant);
    white-space: nowrap;
}
.crm-topbar-btn--labeled:hover .crm-topbar-btn-label { color: var(--primary); }

/* ── 6. SIDEBAR (.b2b-nav) ──────────────────────────────────────────────── */
.b2b-nav.sidemenu {
    flex: 0 0 var(--nav-w);
    width: var(--nav-w);
    background: var(--surface);
    border-right: 1px solid var(--outline);
    height: calc(100vh - var(--topbar-h));
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: flex 0.3s ease, width 0.3s ease;
}
.b2b-nav .nav-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--outline-variant);
    flex-shrink: 0;
}
.b2b-nav .nav-brand { display: flex; align-items: center; gap: 12px; }
.b2b-nav .nav-brand-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px; flex-shrink: 0;
}
.b2b-nav .nav-brand-title { font-size: 16px; font-weight: 600; color: var(--on-surface); display: block; }
.b2b-nav .nav-brand-subtitle { font-size: 11px; font-weight: 400; color: var(--on-surface-variant); display: block; }
.b2b-nav .nav-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 12px; }
.b2b-nav .nav-content-spacious { padding: 12px 14px; }
.b2b-nav .nav-section-label {
    font-size: 11px; font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 16px 12px 6px;
    margin: 0; line-height: 1;
}
.b2b-nav .nav-content-spacious .nav-section-label { padding: 20px 12px 8px; font-size: 10px; letter-spacing: 1px; }
.b2b-nav .menu-item-teacher,
.b2b-nav .nav-home-item {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; height: 36px;
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 500;
    font-family: var(--font-body);
    color: var(--on-surface-variant);
    background: transparent; border: none; cursor: pointer;
    text-decoration: none;
    position: relative; overflow: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 2px 0;
    animation: b2b-nav-slide-in 0.3s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 60ms);
    opacity: 0;
}
.b2b-nav .nav-content-spacious .menu-item-teacher { height: 40px; margin: 3px 0; }
.b2b-nav .menu-item-teacher:hover,
.b2b-nav .nav-home-item:hover {
    background: var(--surface-container);
    color: var(--on-surface);
    text-decoration: none;
}
.b2b-nav .menu-item-teacher.active,
.b2b-nav .nav-home-item.active {
    background: var(--primary-surface);
    color: var(--primary);
}
.b2b-nav .menu-item-teacher.active:hover,
.b2b-nav .nav-home-item.active:hover { background: var(--primary-hover); }
.b2b-nav .menu-item-teacher::after {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; background: var(--primary);
    opacity: 0; transition: opacity 0.15s ease; pointer-events: none;
}
.b2b-nav .menu-item-teacher:active::after { opacity: 0.08; }
.b2b-nav .menu-item-teacher .material-symbols-outlined,
.b2b-nav .menu-item-teacher i,
.b2b-nav .nav-home-item .material-symbols-outlined,
.b2b-nav .nav-home-item i { width: 20px; font-size: 20px; flex-shrink: 0; color: inherit; }
.b2b-nav .nav-footer { flex-shrink: 0; padding: 0; border-top: none; }
.b2b-nav .nav-footer-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface-dim);
    border-radius: var(--radius-xs);
}
.b2b-nav .nav-footer-badge {
    font-size: 11px; font-weight: 600;
    color: var(--primary);
    background: var(--primary-surface);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}
.b2b-nav .nav-footer-version { font-size: 11px; color: var(--on-surface-variant); }
@keyframes b2b-nav-slide-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── 7. HEADER DE PÁGINA ────────────────────────────────────────────────── */
.cb-page-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 16px;
}
.cb-page-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 400;
    color: var(--on-surface);
    margin: 0;
    letter-spacing: -0.2px;
}

/* ── 8. BOTONES (cb-btn) — píldora ──────────────────────────────────────── */
.cb-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 14px; font-weight: 500;
    cursor: pointer; border: none; text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4; white-space: nowrap;
}
.cb-btn-filled { background: var(--primary); color: #fff !important; }
.cb-btn-filled:hover { background: var(--primary-dark); box-shadow: var(--elevation-1); color: #fff; text-decoration: none; }
.cb-btn-tonal { background: var(--primary-surface); color: var(--primary); }
.cb-btn-tonal:hover { background: var(--primary-hover); color: var(--primary); text-decoration: none; }
.cb-btn-outlined { background: var(--surface-dim); color: var(--on-surface); border: 1px solid var(--outline); }
.cb-btn-outlined:hover { background: var(--surface-variant); color: var(--on-surface); text-decoration: none; }
.cb-btn-danger { background: var(--error); color: #fff !important; }
.cb-btn-danger:hover { background: #c62828; color: #fff; text-decoration: none; }
.cb-btn-success { background: var(--success); color: #fff !important; }
.cb-btn-success:hover { background: #2c8f46; box-shadow: var(--elevation-1); color: #fff; text-decoration: none; }
.cb-btn-warning { background: var(--warning); color: #fff !important; }
.cb-btn-warning:hover { background: #d99400; box-shadow: var(--elevation-1); color: #fff; text-decoration: none; }
.cb-btn-text {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-full);
    font-family: var(--font-body); font-size: 13px; font-weight: 500;
    color: var(--primary); background: transparent;
    cursor: pointer; border: none; text-decoration: none;
    transition: background-color 0.2s ease;
}
.cb-btn-text:hover { background: var(--primary-surface); color: var(--primary); text-decoration: none; }
.cb-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none; border: none; background: transparent;
}
.cb-icon-btn:hover { background: var(--surface-container); color: var(--primary); text-decoration: none; }
.cb-icon-btn i { font-size: 14px; }

/* ── 9. INPUTS Y CAMPOS ─────────────────────────────────────────────────── */
.cb-label {
    display: block;
    font-family: var(--font-body);
    font-size: 12px; font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 4px;
    text-align: left;
}
.cb-label-required::after { content: ' *'; color: var(--error); }
.cb-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: 13px; font-weight: 400;
    color: var(--on-surface);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 38px;
}
.cb-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-surface); }
.cb-input::placeholder { color: var(--on-surface-variant); }
.cb-textarea { height: auto; min-height: 80px; resize: vertical; }
.cb-form-group   { margin-bottom: 16px; }
.cb-form-row     { display: flex; gap: 12px; margin-bottom: 16px; }
.cb-form-half    { flex: 1; }
.cb-form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; }

/* ── 10. FORMULARIO DE FILTROS ──────────────────────────────────────────── */
.cb-filter-form { padding: 12px 0; }
.cb-filter-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cb-filter-field { flex: 1; min-width: 140px; }
.cb-filter-field-lg { flex: 2; }

/* ── 11. TABLA (cb-table) ───────────────────────────────────────────────── */
.cb-table-wrapper {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    overflow: auto;
}
.cb-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.cb-table thead tr { background: var(--surface-dim); }
.cb-table thead th {
    font-size: 12px;
    /* !important para ganar a clases MDB legacy en los <th> (.white, .dark-grey-text, .font-weight-normal) */
    font-weight: 600 !important;
    color: var(--on-surface-variant) !important;
    text-transform: uppercase; letter-spacing: 0.3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--outline);
    white-space: nowrap;
    position: sticky; top: 0; z-index: 1;
    background: var(--surface-dim) !important;
}
/* La celda <th> de la primera columna del cuerpo (checkbox) no debe verse como cabecera */
.cb-table tbody th {
    background: transparent;
    font-weight: 400;
    padding: 10px 14px;
    vertical-align: middle;
}

/* Cabecera de las tablas editables legacy (.custom-table): solo el <thead th>,
   para que combinen con el diseño sin alterar las celdas compactas del cuerpo
   ni los inputs/ganchos. !important para ganar a .white/.dark-grey-text/.font-weight-normal de MDB. */
table.custom-table thead th {
    background: var(--surface-dim) !important;
    color: var(--on-surface-variant) !important;
    font-weight: 600 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 6px !important;
    border-bottom: 1px solid var(--outline);
    vertical-align: middle;
}

/* Tabla de productos de la factura: compactar <entity-search-input> para que
   iguale la altura de los .form-control-sm de la fila (estilos inline → !important),
   y modernizar los botones de fila (+ / eliminar). Scoped a #invoiceProductTable
   para no afectar el uso a tamaño completo en otros formularios (p.ej. job). */
#invoiceProductTable entity-search-input { display: block; }
#invoiceProductTable .esi-input-row,
#invoiceProductTable .esi-chip {
    padding: 2px 8px !important;
    border-width: 1px !important;
    box-shadow: none !important;
    border-radius: var(--radius-xs) !important;
    gap: 6px !important;
    min-height: 0 !important;
}
#invoiceProductTable .esi-text {
    font-size: 12px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
#invoiceProductTable .esi-search-icon { font-size: 12px !important; }
#invoiceProductTable .esi-chip > .fas,
#invoiceProductTable .esi-chip-text { font-size: 12px !important; }
/* Botón "quitar" del chip más pequeño para no inflar la altura de la fila */
#invoiceProductTable .esi-clear-btn {
    width: 18px !important; height: 18px !important;
}
#invoiceProductTable .esi-clear-btn i { font-size: 10px !important; }

#invoiceProductTable .add-row,
#invoiceProductTable .remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: var(--radius-full);
    cursor: pointer; text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
#invoiceProductTable .add-row,
#invoiceProductTable .add-row i { color: var(--primary) !important; }
#invoiceProductTable .add-row:hover {
    background: var(--primary-surface);
    transform: scale(1.18);
    animation: cb-add-row-pulse 0.9s ease-in-out infinite;
}
#invoiceProductTable .add-row:active { transform: scale(0.9); }
#invoiceProductTable .remove,
#invoiceProductTable .remove i { color: var(--on-surface-variant) !important; }
#invoiceProductTable .remove:hover { background: var(--error-surface); transform: scale(1.12); }
#invoiceProductTable .remove:hover i { color: var(--error) !important; }
#invoiceProductTable .add-row i,
#invoiceProductTable .remove i { font-size: 15px; }

/* Pulso sutil del botón + al pasar el cursor */
@keyframes cb-add-row-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0.0); }
    50%      { box-shadow: 0 0 0 5px rgba(26,115,232,0.14); }
}
.cb-table tbody tr {
    border-bottom: 1px solid var(--outline-variant);
    transition: background-color 0.15s ease;
}
.cb-table tbody tr:hover { background: rgba(26, 115, 232, 0.02); }
.cb-table tbody tr.cb-row-clickable { cursor: pointer; }
.cb-table tbody td {
    font-size: 13px; font-weight: 400;
    color: var(--on-surface);
    padding: 10px 14px;
    vertical-align: middle;
}
.cb-cell-name { font-weight: 500; color: var(--on-surface); }
.cb-cell-sub  { font-size: 12px; color: var(--on-surface-variant); }

/* ── 12. CHIPS DE ESTADO ────────────────────────────────────────────────── */
.cb-chip {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 12px; font-weight: 500;
    white-space: nowrap;
}
.cb-chip-success { background: var(--success-surface); color: var(--success); }
.cb-chip-warning { background: var(--warning-surface); color: #b45309; }
.cb-chip-danger  { background: var(--error-surface);   color: var(--error); }
.cb-chip-info    { background: var(--info-surface);    color: var(--info); }
.cb-chip-primary { background: var(--primary-surface); color: var(--primary); }
.cb-chip-neutral { background: var(--surface-variant); color: var(--on-surface-variant); }
.cb-chip-sm { padding: 2px 8px; font-size: 10px; }

/* ── 13. TARJETAS (cb-card) ─────────────────────────────────────────────── */
.cb-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s ease;
}
.cb-card:hover { box-shadow: var(--elevation-2); }
.cb-card-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 500;
    color: var(--on-surface);
    margin: 0;
}
.cb-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}

/* ── 14. GRID DE KPIs ───────────────────────────────────────────────────── */
.cb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px 0;
}
@media (max-width: 1200px) { .cb-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .cb-kpi-grid { grid-template-columns: 1fr; } }

/* ── 15. EMPTY STATE ────────────────────────────────────────────────────── */
.cb-empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 48px 16px;
    color: var(--on-surface-variant);
}
.cb-empty-icon { font-size: 48px; color: var(--on-surface-variant); margin-bottom: 8px; }
.cb-empty-text { font-size: 14px; color: var(--on-surface-variant); margin: 0; }

/* ── 16. MODAL (cb-modal) — único lugar con gradiente ───────────────────── */
.cb-modal-content {
    border-radius: var(--radius-sm);
    border: none;
    overflow: hidden;
}
.cb-modal-header {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    padding: 16px 20px;
    border-bottom: none;
    /* override de MDB: header centrado + margen negativo + sombra */
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}
.cb-modal-header .cb-modal-title,
.cb-modal-content .cb-modal-title {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 500;
    color: #fff; margin: 0;
    text-align: left;
}
.cb-modal-close { color: rgba(255,255,255,0.8); text-shadow: none; opacity: 1; background: transparent; border: none; }
.cb-modal-close:hover { color: #fff; }
.cb-modal-body   { background: var(--surface); padding: 20px; text-align: left; }
.cb-modal-footer {
    background: #f0f4ff;
    border-top: 1px solid var(--outline-variant);
    padding: 12px 20px;
}

/* ── 17. HELP PANEL inline (cp-help-panel) ──────────────────────────────── */
.cp-help-panel {
    background: var(--info-surface);
    border: 1px solid var(--info);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
}
.cp-help-panel-header {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-body);
    font-size: 12px; font-weight: 600;
    color: var(--info); margin-bottom: 8px;
}
.cp-help-panel-header .material-symbols-outlined { font-size: 15px; }
.cp-help-list { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.cp-help-list li { font-family: var(--font-body); font-size: 12px; color: var(--on-surface-variant); line-height: 1.4; }
.cp-help-list li strong { color: var(--on-surface); font-weight: 600; }

/* ── 18. HELP DRAWER (panel lateral) ────────────────────────────────────── */
.cb-help-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cb-help-overlay.cb-help-open { opacity: 1; visibility: visible; }
.cb-help-drawer {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: 460px; max-width: 100vw;
    background: var(--surface);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9999;
    display: flex; flex-direction: column;
    font-family: var(--font-body);
    border-left: 1px solid var(--outline);
}
.cb-help-drawer.cb-help-open { transform: translateX(0); }
.cb-help-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--outline);
    background: var(--surface);
    flex-shrink: 0;
}
.cb-help-drawer-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 500;
    color: var(--on-surface); margin: 0;
}
.cb-help-drawer-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: none; background: transparent;
    border-radius: var(--radius-full);
    color: var(--on-surface-variant);
    cursor: pointer; transition: background 0.2s ease;
}
.cb-help-drawer-close:hover { background: var(--surface-container); }
.cb-help-drawer-body   { flex: 1; overflow-y: auto; padding: 20px; }
.cb-help-drawer-footer {
    display: flex; align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--outline);
    flex-shrink: 0;
}

/* ── 19. TOGGLE SWITCH ──────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: var(--outline);
    transition: 0.3s; border-radius: 34px;
}
.toggle .slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 4px; bottom: 4px;
    background: var(--surface);
    transition: 0.3s; border-radius: 50%;
}
.toggle input:checked + .slider                  { background-color: var(--primary); }
.toggle input:focus + .slider                    { box-shadow: 0 0 1px var(--primary); }
.toggle input:checked + .slider:before           { transform: translateX(24px); }
.toggle input.toggle-darkmode:checked + .slider  { background-color: var(--on-surface); }
.toggle input.toggle-notifications:checked + .slider { background-color: var(--info); }
.toggle input.toggle-autosave:checked + .slider  { background-color: var(--success); }

/* ── 20. DASHBOARD DE BIENVENIDA (baw-) ─────────────────────────────────── */
.baw-banner {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-top: none;
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    margin-bottom: 20px;
    position: relative; overflow: hidden;
    animation: baw-slideDown 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.baw-banner:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.baw-banner-top-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 5px; background: var(--primary);
    border-radius: 12px 12px 0 0;
}
.baw-greeting-text {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 500; color: var(--on-surface); margin: 0;
}
.baw-subtitle { font-size: 13px; color: var(--on-surface-variant); margin: 0 0 14px; font-weight: 500; }
.baw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.baw-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 500;
    border: 1px solid var(--outline);
    background: var(--surface-dim); color: var(--on-surface-variant);
}
.baw-chip.primary { background: var(--primary-surface); border-color: #c5d8fc; color: var(--primary); }
.baw-chip.success { background: var(--success-surface); border-color: #b7e5c4; color: var(--success); }
.baw-chip.warning { background: var(--warning-surface); border-color: #fde6a0; color: #b45309; }
.baw-chip.danger  { background: var(--error-surface);   border-color: #f5b8b4; color: var(--error); }

.baw-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 20px;
    animation: baw-slideUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}
@media (max-width: 1200px) { .baw-actions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .baw-actions-grid { grid-template-columns: 1fr; } }
.baw-action-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    padding: 16px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.baw-action-card:hover { box-shadow: var(--elevation-2); text-decoration: none; }
.baw-action-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.baw-action-icon-blue    { background: var(--info-surface);    color: var(--info); }
.baw-action-icon-green   { background: var(--success-surface); color: var(--success); }
.baw-action-icon-amber   { background: var(--warning-surface); color: #b45309; }
.baw-action-icon-purple  { background: #f3e8ff;                color: #7c3aed; }
.baw-action-icon-primary { background: var(--primary-surface); color: var(--primary); }
.baw-action-card:hover .baw-action-icon-blue    { background: var(--info);    color: #fff; }
.baw-action-card:hover .baw-action-icon-green   { background: var(--success); color: #fff; }
.baw-action-card:hover .baw-action-icon-amber   { background: var(--warning); color: #fff; }
.baw-action-card:hover .baw-action-icon-purple  { background: #7c3aed;        color: #fff; }
.baw-action-card:hover .baw-action-icon-primary { background: var(--primary); color: #fff; }
.baw-action-content { flex: 1; min-width: 0; }
.baw-action-title {
    font-size: 14px; font-weight: 600; color: var(--on-surface);
    margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.baw-action-desc { font-size: 12px; color: var(--on-surface-variant); margin: 0; }
.baw-action-badge {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-full);
    background: var(--surface-dim); color: var(--on-surface-variant); white-space: nowrap;
}
.baw-action-go { font-size: 18px; color: var(--outline); transition: color 0.2s ease; }
.baw-action-card:hover .baw-action-go { color: var(--on-surface-variant); }

.baw-modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 1200px) { .baw-modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .baw-modules-grid { grid-template-columns: 1fr; } }
.baw-module-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    padding: 14px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; text-align: left; text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    position: relative; overflow: hidden;
    animation: baw-slideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.baw-module-card:nth-child(1) { animation-delay: .10s; }
.baw-module-card:nth-child(2) { animation-delay: .16s; }
.baw-module-card:nth-child(3) { animation-delay: .22s; }
.baw-module-card:nth-child(4) { animation-delay: .28s; }
.baw-module-card:nth-child(5) { animation-delay: .34s; }
.baw-module-card:nth-child(6) { animation-delay: .40s; }
.baw-module-card:hover {
    box-shadow: var(--elevation-2);
    border-color: #c5d8fc;
    transform: translateY(-2px);
    text-decoration: none;
}
.baw-module-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.baw-module-info { flex: 1; min-width: 0; }
.baw-module-title {
    font-size: 13px; font-weight: 600; color: var(--on-surface);
    margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.baw-module-desc {
    font-size: 11px; color: var(--on-surface-variant);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.baw-module-arrow { font-size: 18px; color: var(--outline); flex-shrink: 0; transition: color 0.15s, transform 0.15s; }
.baw-module-card:hover .baw-module-arrow { color: var(--primary); transform: translateX(2px); }
.baw-module-card:has(.baw-featured-badge) {
    animation: baw-featured-pulse 2.5s ease-in-out 0.5s infinite;
    border-color: #c5d8fc;
}
.baw-featured-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-full); letter-spacing: 0.3px;
}

/* baw- keyframes (slideUp/spin/bounce ya existen arriba: no se redefinen) */
@keyframes baw-slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes baw-slideUp   { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes baw-slideRight{ from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes baw-float     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes baw-pulse-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.55; } }
@keyframes baw-shimmer   { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes baw-fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes baw-scaleIn   { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes baw-featured-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } 50% { box-shadow: 0 0 0 5px rgba(26,115,232,0.15); } }
@keyframes baw-news-stagger   { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }

/* ── 21. UTILIDADES DE TEMA (opt-in, NO global) ─────────────────────────── */
/* Aplica el look del sistema (fondo + fuente Inter) solo a contenedores que
   lleven .cb-app, para no restilizar páginas legacy de ERP/DCON. */
.cb-app {
    font-family: var(--font-body);
    background: var(--surface-dim);
    color: var(--on-surface);
}

/* ── Dropdown "Método de pago" (estilo corp moderno) ────────────────────── */
.pm-dropdown-toggle {
    gap: 8px;
    border-radius: 8px;
    padding: 7px 16px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
    cursor: pointer;
}
.pm-dropdown-toggle:hover {
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}
.pm-dropdown-toggle:active {
    transform: translateY(1px);
}
.pm-dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.pm-caret {
    font-size: 9px;
    opacity: 0.85;
    margin-left: 2px;
    transition: transform .15s ease;
}
[aria-expanded="true"] .pm-caret {
    transform: rotate(180deg);
}

/* Botón de ícono sutil (sin fondo de color) para toggles compactos en tablas */
.pm-icon-btn {
    background: transparent;
    border: none;
    color: #374151;
    border-radius: 8px;
    padding: 5px 9px;
    gap: 6px;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.pm-icon-btn:hover {
    background-color: #eff4ff;
    color: #1d4ed8;
}
.pm-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.pm-dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    padding: 6px;
    min-width: 220px;
    margin-top: 6px;
}
.pm-dropdown-item {
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}
.pm-dropdown-item:hover,
.pm-dropdown-item:focus {
    background-color: #eff4ff;
    color: #1d4ed8;
}

/* ── Panel de filtros (sistema MD3 cb-*): compacto, e integrando los inputs
   de los web components legacy (form-control) al look cb-input ───────────── */
.cb-filter-card {
    padding: 14px 16px;          /* mas compacto que el cb-card por defecto */
    box-shadow: var(--elevation-1);
    /* Un solo contenedor flex: los campos de TODAS las filas se empacan juntos
       y solo bajan de linea cuando no caben => mas filtros por fila, menos alto. */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;               /* fila / columna */
}
/* Header y acciones ocupan su propia linea completa */
.cb-filter-card .cb-filter-header,
.cb-filter-card .cb-form-actions {
    flex: 0 0 100%;
    width: 100%;
}
/* Las "filas" dejan de ser cajas (sus campos fluyen directo al contenedor) */
.cb-filter-card .cb-filter-row { display: contents; }
/* Campos mas angostos => caben mas por fila */
.cb-filter-card .cb-filter-field { flex: 1 1 150px; min-width: 150px; }
.cb-filter-card .cb-filter-field-lg { flex: 1 1 230px; min-width: 220px; }

/* Header corp del panel: ícono primario + título + divisor */
.cb-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--outline-variant);
}
.cb-filter-header i { color: var(--primary); font-size: 13px; }
.cb-filter-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--on-surface);
}
.cb-filter-card .cb-label {
    font-size: 11px;
    margin-bottom: 1px;
}
/* Altura/estilo compacto tanto para cb-input como para los form-control legacy */
.cb-filter-card .cb-input,
.cb-filter-card .form-control,
.cb-filter-card .form-control-sm {
    height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--on-surface);
    background: var(--surface);
    box-shadow: none;
}
.cb-filter-card .cb-input:focus,
.cb-filter-card .form-control:focus,
.cb-filter-card .form-control-sm:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-surface);
}
/* Los multi-selects (size=N) conservan su alto, no se aplastan a 32px */
.cb-filter-card select[multiple].cb-input { height: auto; padding: 4px 6px; }
.cb-filter-card .cb-form-actions { padding-top: 4px; }
.cb-filter-card .cb-btn { padding: 6px 18px; font-size: 13px; }

/* ── Mayor (general ledger por cuenta): filas que abren el modal de detalle ──
   Se ven clickeables: cursor + hover en la fila, y el N° de asiento como hyperlink. */
.gle-mayor-table tr.viewAction { cursor: pointer; }
.gle-mayor-table tr.viewAction:hover { background: var(--primary-surface); }
.gle-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gle-mayor-table tr.viewAction:hover .gle-link { color: var(--primary-dark); }

/* Vista "Lista": el asiento usa show-modal-anchor-component → look de hyperlink */
.gle-mayor-table show-modal-anchor-component { cursor: pointer; }
.gle-mayor-table show-modal-anchor-component a {
    color: var(--primary) !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.gle-mayor-table show-modal-anchor-component a:hover { color: var(--primary-dark) !important; }

/* Opción de impresión (ícono + etiqueta) clickeable en todo su ancho */
.pm-print-item {
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: #374151;
    transition: background-color .12s ease, color .12s ease;
}
.pm-print-item:hover,
.pm-print-item:focus {
    background-color: #eff4ff;
    color: #1d4ed8;
}
.pm-print-item i {
    font-size: 12px;
}

/* ── Tabs de detalle (Proyectos / Job): Datos / Bitácora ─────────────────── */
#jobDetailTabs { border-bottom: 2px solid #e8edf3; }
#jobDetailTabs .nav-link {
    font-size: 13px; font-weight: 600; color: #6b7280;
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    margin-bottom: -2px; padding: 8px 16px;
}
#jobDetailTabs .nav-link:hover { color: #0d6efd; }
#jobDetailTabs .nav-link.active {
    color: #0d6efd; background: transparent; border-bottom: 2px solid #0d6efd;
}
