:root {
    /* --- Palette Modern --- */
    --primary-color: #2563eb;
    /* Rich Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    /* Slate */
    --success-color: #10b981;
    /* Emerald */
    --danger-color: #ef4444;
    /* Red */
    --warning-color: #f59e0b;
    /* Amber */
    --info-color: #3b82f6;
    /* Blue */

    --bg-body: #f8fafc;
    /* Very light slate */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    /* Dark Slate */
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --transition: all 0.2s ease-in-out;
}

/* --- Global Typography --- */
body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* --- Cards & Containers --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

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

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
}

.btn-success {
    background-color: var(--success-color) !important;
}

.btn-danger {
    background-color: var(--danger-color) !important;
}

.btn-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

/* --- Forms & Inputs --- */
.form-control,
.form-select {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* --- Tables --- */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1rem;
}

.table thead th {
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-top: none;
    padding: 1rem;
}

.table tbody td {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

/* --- Utility / Legacy Overrides --- */

.form-control-checkbox {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    cursor: pointer;
}

.img-icon {
    width: 40px;
    height: 32px;
    object-fit: contain;
}

.breadcrumb-item a {
    text-decoration: none !important;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.author {
    color: var(--text-muted) !important;
    font-weight: 600;
}

.low-stock td {
    background-color: #fee2e2 !important;
    /* Soft Red */
    color: #991b1b !important;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper,
.container-fluid {
    animation: fadeIn 0.4s ease-out forwards;
}

/* --- Select2 Overrides (if used) --- */

/* --- Submenu Navigation --- */
.nav-treeview {
    background-color: rgba(255, 255, 255, 0.05);
    /* Very subtle contrast */
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.nav-treeview .nav-link {
    padding-left: 3rem !important;
    /* Deep indentation */
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.nav-treeview .nav-link:hover,
.nav-treeview .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.05) !important;
    border-left-color: var(--primary-color);
    font-weight: 500 !important;
}

/* ── Modales apilados ───────────────────────────────────────────────────────
   Bootstrap agrega padding-right al body con cada modal. Con varios modales
   abiertos a la vez el padding se acumula y el layout se desplaza.
   Lo fijamos a 0 siempre; el scroll del body ya queda bloqueado por overflow. */
body.modal-open {
    padding-right: 0 !important;
}

.nav-treeview .nav-icon {
    font-size: 0.8rem !important;
    opacity: 0.7;
    margin-right: 0.5rem;
}

/* ===== SIDEBAR PREMIUM ===== */

.app-sidebar {
    background: linear-gradient(180deg, #0B1426 0%, #0f172a 60%, #0d1117 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-brand {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(99, 179, 237, 0.2) !important;
    padding: 1rem 1.25rem !important;
}

.brand-text {
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: -0.01em;
}

/* Thin scrollbar */
.sidebar-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 179, 237, 0.2) transparent;
}
.sidebar-wrapper::-webkit-scrollbar { width: 4px; }
.sidebar-wrapper::-webkit-scrollbar-track { background: transparent; }
.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(99, 179, 237, 0.25);
    border-radius: 99px;
}

/* Section headers */
.nav-header {
    color: rgba(148, 163, 184, 0.45) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    padding: 1.25rem 1.25rem 0.4rem !important;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
}
.nav-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* Level-1 nav links */
.sidebar-menu > .nav-item > .nav-link {
    color: rgba(203, 213, 225, 0.75) !important;
    border-radius: 10px !important;
    margin: 2px 0.75rem !important;
    padding: 0.58rem 0.85rem !important;
    transition: all 0.18s ease !important;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
}
.sidebar-menu > .nav-item > .nav-link:hover {
    background: rgba(99, 179, 237, 0.09) !important;
    color: #e2e8f0 !important;
}
.sidebar-menu > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(59, 130, 246, 0.65)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
}

/* Level-1 icons — rounded square */
.sidebar-menu > .nav-item > .nav-link .nav-icon {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.9rem !important;
    transition: background 0.18s ease;
    flex-shrink: 0;
    margin-right: 0 !important;
}
.sidebar-menu > .nav-item > .nav-link:hover .nav-icon {
    background: rgba(99, 179, 237, 0.14);
}
.sidebar-menu > .nav-item > .nav-link.active .nav-icon {
    background: rgba(255, 255, 255, 0.18);
}

/* Treeview submenu */
.nav-treeview {
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 10px !important;
    margin: 2px 0.75rem 4px 1.4rem !important;
    padding: 4px 0 !important;
    position: relative;
}
/* Subtle vertical guide line for nesting (not a decorative accent) */
.nav-treeview::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.nav-treeview .nav-link {
    padding: 0.42rem 1rem 0.42rem 1.6rem !important;
    color: rgba(148, 163, 184, 0.85) !important;
    font-size: 0.82rem !important;
    border-left: none !important;
    border-radius: 6px !important;
    margin: 1px 0.4rem !important;
    transition: all 0.15s ease !important;
}
.nav-treeview .nav-link:hover {
    background: rgba(99, 179, 237, 0.08) !important;
    color: #cbd5e1 !important;
}
.nav-treeview .nav-link.active {
    background: rgba(37, 99, 235, 0.14) !important;
    color: #93c5fd !important;
    font-weight: 500 !important;
}
.nav-treeview .nav-icon {
    font-size: 0.72rem !important;
    opacity: 0.55;
    background: none !important;
    width: auto !important;
    height: auto !important;
    margin-right: 0.4rem !important;
}

/* Chevron expand arrow */
.nav-arrow {
    margin-left: auto !important;
    font-size: 0.68rem !important;
    opacity: 0.35;
    transition: transform 0.2s ease !important;
}
.nav-item.menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg) !important;
    opacity: 0.65;
}

/* User widget at sidebar bottom */
.sidebar-user-widget {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%) !important;
    margin-top: auto;
    flex-shrink: 0;
}
.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.sidebar-user-name {
    font-size: 0.77rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.sidebar-user-role {
    font-size: 0.67rem !important;
    color: rgba(148, 163, 184, 0.75) !important;
    white-space: nowrap;
}

/* Accent glow strip at very top of sidebar */
.app-sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa, #3b82f6, #1d4ed8);
    background-size: 200% 100%;
    animation: sidebar-glow 4s linear infinite;
    z-index: 1;
}
@keyframes sidebar-glow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.app-sidebar {
    position: relative;
    overflow: visible !important;
    /* Smooth width transition for collapse/expand */
    transition: min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Active item — left glow accent */
.sidebar-menu > .nav-item > .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #60a5fa;
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}
.sidebar-menu > .nav-item > .nav-link {
    position: relative;
}

/* Icon scale on hover */
.sidebar-menu > .nav-item > .nav-link:hover .nav-icon {
    transform: scale(1.1);
}
.sidebar-menu > .nav-item > .nav-link .nav-icon {
    transition: background 0.18s ease, transform 0.18s ease !important;
}

/* ===== MINI SIDEBAR (body.sidebar-collapse) ===== */

/* Permitir que los tooltips salgan del sidebar */
body.sidebar-collapse .app-sidebar,
body.sidebar-collapse .sidebar-wrapper,
body.sidebar-collapse .sidebar-menu {
    overflow: visible !important;
}

/* Desactivar el hover-expand nativo de AdminLTE — usamos tooltips en su lugar */
body.sidebar-mini.sidebar-collapse .app-sidebar:hover {
    min-width: 4.6rem !important;
    max-width: 4.6rem !important;
}
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-link {
    width: auto !important;
}
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-link p,
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .brand-text,
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .nav-arrow {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
}
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-header {
    display: none !important;
}
/* nav-link queda como pill, sin el width fijo de AdminLTE */
body.sidebar-collapse .sidebar-menu .nav-link {
    width: auto !important;
}

body.sidebar-collapse .sidebar-brand .brand-link {
    justify-content: center !important;
}
body.sidebar-collapse .brand-text {
    display: none !important;
}
body.sidebar-collapse .brand-image {
    margin: 0 auto !important;
}
body.sidebar-collapse .nav-header {
    display: none !important;
}

/* Centered pill links */
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link {
    justify-content: center !important;
    padding: 0.65rem !important;
    margin: 3px 0.45rem !important;
}
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link p,
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link .nav-arrow {
    display: none !important;
}

/* Ocultar el accent bar izquierdo en mini mode (queda desplazado al centrar) */
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link.active::before {
    display: none !important;
}

/* Bigger icons in mini mode */
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link .nav-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
    margin: 0 !important;
    border-radius: 10px !important;
}

/* Active icon en mini mode — fondo azul más visible */
body.sidebar-collapse .sidebar-menu > .nav-item > .nav-link.active .nav-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5) !important;
}

/* Hide submenus */
body.sidebar-collapse .nav-treeview {
    display: none !important;
}

/* User widget in mini mode */
body.sidebar-collapse .sidebar-user-widget {
    justify-content: center !important;
    padding: 0.85rem 0.4rem !important;
}
body.sidebar-collapse .sidebar-user-name,
body.sidebar-collapse .sidebar-user-role {
    display: none !important;
}
body.sidebar-collapse .sidebar-user-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
}

/* CSS tooltip shown only in mini mode */
body.sidebar-collapse .sidebar-menu > .nav-item {
    position: relative;
}
body.sidebar-collapse .sidebar-menu > .nav-item:hover > a + .nav-treeview {
    display: none !important;
}
body.sidebar-collapse .sidebar-menu > .nav-item:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    border: 1px solid rgba(99, 179, 237, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: tooltip-pop 0.15s ease forwards;
}
body.sidebar-collapse .sidebar-menu > .nav-item:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #0f172a;
    z-index: 9999;
    pointer-events: none;
}
@keyframes tooltip-pop {
    from { opacity: 0; transform: translateY(-50%) translateX(-6px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ===== HEADER / NAVBAR improvements ===== */
.app-header {
    backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06) !important;
}
.app-header .nav-link {
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease !important;
    padding: 0.4rem 0.6rem !important;
}
.app-header .nav-link:hover {
    background: rgba(0,0,0,0.06);
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    background: var(--bg-body) !important;
}

/* ===== PAGE TITLE / BREADCRUMB ===== */
.app-content-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem !important;
    background: var(--bg-card);
    margin-bottom: 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ===== PREMIUM GENERAL ===== */

/* Global scrollbar */
html { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
html::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Text selection */
::selection { background: rgba(37, 99, 235, 0.15); color: inherit; }

/* Focus ring */
:focus-visible {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
}

/* Breadcrumb bar refinado */
.app-content-header {
    padding: 0.85rem 1.5rem !important;
    box-shadow: 0 1px 0 var(--border-color) !important;
    border-radius: 0 !important;
    margin-bottom: 1.75rem !important;
}
.breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
    content: "›";
    font-size: 1rem;
    line-height: 1;
}
.breadcrumb-item a { color: var(--primary-color); font-weight: 500; }
.breadcrumb-item.active { color: var(--text-muted); font-weight: 500; }

/* Cards — linea accent en el top (signature visual) */
.card {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03) !important;
    position: relative !important;
    overflow: hidden !important;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 1;
    pointer-events: none;
}
.card-header {
    padding: 1rem 1.25rem !important;
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-top: 1.1rem !important;
}
.card-title {
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-title i, .card-title .bi {
    color: var(--primary-color);
    font-size: 1rem;
}
.card-footer {
    padding: 0.85rem 1.25rem !important;
    background: #f8fafc !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* DataTables — search y paginacion */
div.dt-search input,
div.dt-length select {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.45rem 0.85rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.875rem !important;
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
div.dt-search input:focus,
div.dt-length select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}
div.dt-search label,
div.dt-length label {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 500;
}
.dt-paging .page-link {
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    font-size: 0.83rem !important;
    padding: 0.33rem 0.65rem !important;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s ease !important;
}
.dt-paging .page-link:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.dt-paging .page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
    color: #fff !important;
}
.dt-paging .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}
div.dt-info {
    font-size: 0.81rem !important;
    color: var(--text-muted) !important;
}

/* Botones — gradient en primary */
.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38) !important;
    transform: translateY(-1px);
}
.btn { letter-spacing: 0.01em !important; }
.btn .bi, .btn i.bi { margin-right: 0.3rem; vertical-align: -0.05em; }

/* Info-boxes (dashboard KPIs) */
.info-box {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04) !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    margin-bottom: 0 !important;
}
.info-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06) !important;
}
.info-box-icon {
    border-radius: 0 !important;
    width: 72px !important;
    font-size: 1.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.info-box-content { padding: 0.7rem 1rem !important; }
.info-box-number {
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    color: var(--text-main) !important;
}
.info-box-text {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Badges */
.badge {
    border-radius: 99px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 0.25em 0.6em !important;
    letter-spacing: 0.02em !important;
}

/* SweetAlert2 — match brand */
.swal2-popup {
    border-radius: var(--radius-lg) !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    padding: 1.75rem !important;
}
.swal2-title {
    font-weight: 700 !important;
    color: var(--text-main) !important;
    font-size: 1.1rem !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-html-container {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-confirm {
    background: var(--primary-color) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}
.swal2-cancel {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-icon { margin-bottom: 1rem !important; }

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    padding: 0.85rem 1.5rem !important;
    box-shadow: none !important;
}
.app-footer a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.app-footer a:hover { text-decoration: underline !important; }