/* base.css - Variables y estilos base del sistema ArchivoFiscal */

:root {
    /* Colores oficiales */
    --thunderbird: #b21826;
    --martinique: #312a47;
    --manatee: #8d85a1;
    --quill-gray: #e5e6e3;
    
    /* Semánticos */
    --primary-color: var(--martinique);
    --danger-color: var(--thunderbird);
    --light-color: var(--quill-gray);
    --secondary-color: var(--manatee);
    
    /* Layout */
    --sidebar-width: 250px;
    --logo-bg: #f5f5f5;
}

/* Temas */
[data-bs-theme="dark"] {
    --footer-bg: #212529;
    --footer-text: var(--light-color);
    --border-color: #495057;
    --hamburger-color: var(--light-color);
    --card-bg: #2c3034;
    --body-bg: #1a1a1a;
}

[data-bs-theme="light"] {
    --footer-bg: white;
    --footer-text: #6c757d;
    --border-color: #dee2e6;
    --hamburger-color: var(--primary-color);
    --card-bg: white;
    --body-bg: #f8f9fa;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--body-bg, #f8f9fa);
    color: var(--bs-body-color, #212529);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilidades de color */
.text-primary { color: var(--primary-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

/* Utilidades de layout */
.content-wrapper {
    flex: 1;
    padding: 2rem;
}

/* Formularios base */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(49, 42, 71, 0.25);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--danger-color);
    text-decoration: underline;
}
/* Permitir que el dropdown se muestre fuera de la tabla */
.table-responsive {
    overflow: visible !important;
}

.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Opcional: ajustar la altura de la tabla */
.card-body.p-0 {
    overflow: visible !important;
}