:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* Global Reset & Typography */
body,
html {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main) !important;
    font-weight: 700;
}

a {
    color: var(--accent);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* Cards & Containers */
.card,
.panel {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.card-header,
.panel-heading {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.card-body,
.panel-body {
    color: var(--text-main) !important;
}

.card-title,
.title {
    color: var(--text-main) !important;
}

/* Sidebar & Navigation base fonts */
.sidebar .nav,
.sidebar .nav li,
.sidebar .nav li a,
.sidebar .nav li a p {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
}

.sidebar .nav .collapse {
    transition: height 0.35s ease;
}

.navbar.navbar-transparent {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-main) !important;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Forms */
.form-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

label {
    color: var(--text-muted) !important;
}

/* Tables */
.table {
    color: var(--text-muted) !important;
}

.table thead tr th {
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr td {
    border-top: 1px solid var(--border-color) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-warning {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #000 !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Loader Style */
#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#loader-screen.hidden-loader,
#loader-screen.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar — track + thumb (sin thumb el scroll queda invisible en WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Navigation & Sidebar Overrides */
.sidebar,
.off-canvas-sidebar {
    background: #0f172a !important;
    /* var(--bg-dark) */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.sidebar:after,
.off-canvas-sidebar:after {
    background: transparent !important;
    /* Remove gradient overlay */
}

.sidebar .nav li>a,
.off-canvas-sidebar .nav li>a {
    margin: 10px 15px 0 !important;
    border-radius: 8px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar .nav li>a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
}

.sidebar .nav li.active>a {
    background: rgba(139, 92, 246, 0.15) !important;
    /* Purple glass */
    color: var(--accent) !important;
    box-shadow: none !important;
}

.sidebar .nav li.active>a i {
    color: var(--accent) !important;
}

.sidebar .logo .simple-text {
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif !important;
}

.sidebar .logo:after {
    background-color: var(--border-color) !important;
}

/* Submenus */
.sidebar .nav li .collapse,
.sidebar .erp-sidebar-submenu {
    margin-left: 20px;
}

.sidebar .nav li .collapse .nav li a,
.sidebar .erp-sidebar-submenu .nav li a {
    font-weight: 400;
    text-transform: none;
    font-size: 0.9rem;
}

.sidebar .erp-sidebar-submenu .nav li.erp-sidebar-submenu-label {
    padding: 10px 15px 4px 45px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
    pointer-events: none;
}

.sidebar .erp-sidebar-submenu .nav li.erp-sidebar-submenu-soon > span {
    display: block;
    padding: 10px 15px 10px 45px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.sidebar .erp-sidebar-submenu .nav li.erp-sidebar-submenu-soon em {
    display: inline-block;
    margin-left: 0.35rem;
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
}

.sidebar .nav li a .erp-sidebar-external-icon {
    font-size: 0.65rem;
    margin-left: 4px;
    vertical-align: super;
    opacity: 0.85;
}

/* FAB — acceso rápido a nueva operación (Dropup) */
.erp-fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.erp-fab-new-operation {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    outline: none;
}

.erp-fab-new-operation:hover,
.erp-fab-new-operation:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.erp-fab-new-operation:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.erp-fab-new-operation__icon {
    font-size: 1.1rem;
    color: #fff !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-fab-container.is-open .erp-fab-new-operation__icon {
    transform: rotate(45deg);
}

.erp-fab-new-operation__label {
    line-height: 1;
    white-space: nowrap;
}

/* Desplegable hacia arriba (Dropup) */
.erp-fab-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #1e293b;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    z-index: 1051;
}

.erp-fab-container.is-open .erp-fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.erp-fab-menu__header {
    padding: 0.4rem 0.65rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.35rem;
}

.erp-fab-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
    color: #f8fafc !important;
}

.erp-fab-menu__item:hover,
.erp-fab-menu__item:focus {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-2px);
    color: #fff !important;
}

.erp-fab-menu__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.erp-fab-menu__icon--factura {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8 !important;
}

.erp-fab-menu__icon--pedido {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399 !important;
}

.erp-fab-menu__icon--presupuesto {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc !important;
}

.erp-fab-menu__icon--more {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
}

.erp-fab-menu__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.erp-fab-menu__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.2;
}

.erp-fab-menu__desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.2;
    margin-top: 0.12rem;
}

.erp-fab-menu__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0.25rem;
}

.erp-fab-menu__arrow {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: auto;
    transition: transform 0.15s ease, color 0.15s ease;
}

.erp-fab-menu__item--more:hover .erp-fab-menu__arrow {
    color: #cbd5e1;
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .erp-fab-container {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .erp-fab-new-operation {
        padding: 0;
        width: 3.5rem;
        height: 3.5rem;
    }

    .erp-fab-new-operation__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .erp-fab-menu {
        width: calc(100vw - 2.5rem);
        max-width: 280px;
    }
}

@media (min-width: 576px) {
    .erp-fab-new-operation {
        padding: 0.875rem 1.35rem;
    }
}

/* Chat IA (FAB owner/supervisor) */
.erp-fab-chat {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 320px;
    height: 420px;
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    z-index: 1051;
    overflow: hidden;
}

.erp-fab-container--chat.is-open .erp-fab-chat {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.erp-fab-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.erp-fab-chat__header-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.erp-fab-chat__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.erp-fab-chat__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.erp-fab-chat__close:hover,
.erp-fab-chat__close:focus,
.erp-fab-chat__expand:hover,
.erp-fab-chat__expand:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.erp-fab-chat__expand {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.erp-fab-chat__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.erp-fab-chat__empty {
    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;
    margin: auto;
    padding: 1rem 0.5rem;
}

.erp-fab-chat__msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.erp-fab-chat__msg--assistant {
    align-self: flex-start;
}

.erp-fab-chat__msg--user {
    align-self: flex-end;
    align-items: flex-end;
}

.erp-fab-chat__author {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0.2rem 0.15rem;
}

.erp-fab-chat__bubble {
    max-width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.erp-fab-chat__bubble--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.erp-fab-chat__bubble--assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.erp-fab-chat__bubble--typing {
    color: #94a3b8;
    font-style: italic;
}

.erp-fab-chat__error {
    margin: 0;
    padding: 0.35rem 0.85rem 0;
    color: #fca5a5;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.erp-fab-chat__form {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.erp-fab-chat__input {
    flex: 1 1 auto;
    resize: none;
    min-height: 2.25rem;
    max-height: 5.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
    outline: none;
}

.erp-fab-chat__input:focus {
    border-color: rgba(139, 92, 246, 0.55);
}

.erp-fab-chat__send {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.erp-fab-chat__send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.erp-fab-container--chat.is-open .erp-fab-new-operation__icon {
    transform: none;
}

@media (max-width: 575.98px) {
    .erp-fab-chat {
        width: calc(100vw - 2.5rem);
        max-width: 340px;
        height: min(70vh, 420px);
    }
}

.erp-chat-chart-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: 0.35rem;
}

.erp-chat-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.tito-chat-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 12rem);
}

.erp-fab-chat--page {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    height: calc(100vh - 13rem);
    min-height: 28rem;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    z-index: 1;
}

.erp-fab-chat--page .erp-chat-chart-wrap {
    height: 260px;
}

.erp-fab-chat--page .erp-fab-chat__messages {
    padding: 1rem 1.1rem;
    gap: 0.65rem;
}

.erp-fab-chat--page .erp-fab-chat__input {
    min-height: 2.75rem;
}

@media (max-width: 575.98px) {
    .erp-fab-chat--page {
        width: 100%;
        max-width: none;
        height: calc(100vh - 10rem);
        min-height: 22rem;
    }
}

/* Navbar */
.navbar.navbar-transparent {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .navbar-brand {
    font-weight: 700 !important;
    font-size: 1.2rem;
}

.navbar .navbar-nav .nav-item .nav-link {
    color: var(--text-muted) !important;
}

.navbar .navbar-nav .nav-item .nav-link:hover {
    color: var(--accent) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #1e293b !important;
    /* Slate 800 */
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-menu .dropdown-item {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(139, 92, 246, 0.1) !important;
    color: var(--accent) !important;
}

/* Remove old data-color effects if possible via CSS */
.sidebar[data-color="green"] .nav li.active>a {
    box-shadow: none !important;
}

/* Login Page Fix - Consistent dark background */
.container,
.wrapper,
body.login-page,
.full-page {
    background-color: var(--bg-dark) !important;
    background-image: none !important;
}

.card-signin {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-color) !important;
}

.full-page .full-page-background {
    display: none !important;
}

.full-page::before,
.full-page::after {
    display: none !important;
}

/* Home Page Fix - Reduce top spacing */
.main-panel .content {
    padding-top: 10px !important;
}

.panel-header.panel-header-sm {
    height: 100px !important;
    min-height: 100px !important;
    padding-top: 0 !important;
    background: var(--bg-dark) !important;
    /* Remove blue gradient */
}

/* Reduce excessive row padding in home page filters */
.row[style*="padding-top: 80px"],
.row[style*="padding-top:80px"] {
    padding-top: 20px !important;
    height: auto !important;
}

/* Force panel-header to reasonable height or hide if empty */
.panel-header {
    padding: 10px !important;
    background: var(--bg-dark) !important;
    /* Global override for blue gradient */
}

.panel-header:empty,
.panel-header canvas:empty {
    display: none !important;
}

/* Mobile improvements for home page filters */
@media (max-width: 768px) {
    .panel-header {
        max-height: 100px !important;
    }

    .main-panel .content {
        padding: 10px !important;
    }
}

/* CRITICAL: Override sidebar blue gradients and main-panel light background */
.sidebar:before,
.sidebar:after,
.sidebar[data-color="blue"]:after,
.sidebar[data-color="green"]:after,
.off-canvas-sidebar:before,
.off-canvas-sidebar:after {
    background: var(--bg-dark) !important;
    background-image: none !important;
}

.sidebar,
.off-canvas-sidebar {
    background: var(--bg-dark) !important;
}

.main-panel {
    background-color: var(--bg-dark) !important;
    background: var(--bg-dark) !important;
}

/* Login page - full page wrapper fix */
.wrapper.wrapper-full-page,
.full-page.login-page,
.full-page[data-filter-color="black"],
.full-page[data-color="blue"],
.full-page {
    background: var(--bg-dark) !important;
    background-color: var(--bg-dark) !important;
    background-image: none !important;
}

.full-page::before,
.full-page::after,
.full-page .page-header::before,
.full-page .content::before {
    background: transparent !important;
    display: none !important;
}

/* Remove blue/green accent gradients on sidebar */
.sidebar .sidebar-background:after,
.sidebar.sidebar-background,
.sidebar-background::after {
    background: var(--bg-dark) !important;
    opacity: 1 !important;
}

/* Footer and wrapper fixes for full dark background */
.wrapper {
    background: var(--bg-dark) !important;
    min-height: 100vh !important;
}

.main-panel {
    min-height: 100vh !important;
}

.footer {
    background: var(--bg-dark) !important;
    border-top: 1px solid var(--border-color) !important;
}

.footer .copyright,
.footer a {
    color: var(--text-muted) !important;
}

/* Ensure no white gaps at bottom */
html,
body {
    min-height: 100vh !important;
}

.content {
    min-height: calc(100vh - 200px) !important;
}

/* SweetAlert2: estilos en assets/css/modern-global.css (paleta ERP) */

/* Modal Overrides */
.modal-content {
    background-color: #1e293b !important;
    /* Slate 800 */
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    color: var(--text-main) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

.modal-title {
    color: var(--text-main) !important;
    font-weight: 700 !important;
}

.modal-header .close {
    color: var(--text-muted) !important;
    text-shadow: none !important;
    opacity: 0.8 !important;
}

.modal-header .close:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}