/* ============================================================
   LUBRIGEST PRO — UI Redesign
   Paleta: Azul marino profundo + Naranja vibrante + Blanco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Sidebar */
    --sidebar-width: 255px;
    --sidebar-mini:  64px;
    --sidebar-bg:    #0d1117;
    --sidebar-border:rgba(255,255,255,0.06);
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active-bg: rgba(249,115,22,0.14);
    --sidebar-active-color: #f97316;

    /* Colores primarios */
    --primary:       #f97316;
    --primary-dark:  #ea6c0a;
    --primary-light: rgba(249,115,22,0.12);

    /* Superficie */
    --bg-page:   #f1f4f9;
    --bg-card:   #ffffff;
    --bg-input:  #f8fafc;

    /* Bordes */
    --border:    #e4e9f0;
    --border-sm: #eef1f6;

    /* Texto */
    --text-primary:   #0f172a;
    --text-secondary: #64748b;
    --text-muted:     #94a3b8;

    /* Topbar */
    --topbar-height: 58px;

    /* Sombras */
    --shadow-sm:  0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:  0 4px 12px rgba(15,23,42,0.10), 0 2px 4px rgba(15,23,42,0.06);
    --shadow-lg:  0 10px 30px rgba(15,23,42,0.14);

    /* Gradientes stat cards */
    --grad-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --grad-blue:   linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --grad-green:  linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --grad-red:    linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --grad-cyan:   linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --grad-dark:   linear-gradient(135deg, #334155 0%, #475569 100%);
    --grad-warning:linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 1000;
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1),
                transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar.collapsed { width: var(--sidebar-mini); }

/* Header del sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.sidebar-logo .logo-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

.sidebar-logo .logo-text {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
.sidebar-logo .logo-text span { color: var(--primary); }

.btn-toggle-sidebar {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.btn-toggle-sidebar:hover { background: var(--sidebar-hover); color: #fff; }

/* Usuario */
.sidebar-user {
    padding: 10px 12px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user .user-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.sidebar-user .user-inner:hover { background: var(--sidebar-hover); }

.avatar-circle {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1.5px solid rgba(249,115,22,0.3);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #374151;
    padding: 14px 20px 4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav .nav-item { overflow: hidden; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    color: #9ca3af;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    gap: 11px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.sidebar-nav .nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #e2e8f0;
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
    font-weight: 600;
}
.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}
.sidebar-nav .nav-link.active i { color: var(--primary); }

/* Colapsado */
.sidebar.collapsed .sidebar-logo .logo-text,
.sidebar.collapsed .sidebar-user .user-name,
.sidebar.collapsed .sidebar-user .user-role,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .nav-link span:not(.badge),
.sidebar.collapsed .nav-link .badge { display: none; }

.sidebar.collapsed .sidebar-user .user-inner { justify-content: center; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 11px 10px; gap: 0; }
.sidebar.collapsed .nav-link i { width: auto; }
.sidebar.collapsed .sidebar-section-title { padding: 10px 0; }

/* Tooltip en modo colapsado */
.sidebar.collapsed .nav-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(var(--sidebar-mini) + 8px);
    background: #1e293b;
    color: #e2e8f0;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

/* ================================================================
   LAYOUT PRINCIPAL
   ================================================================ */
#wrapper { display: flex; min-height: 100vh; }

#content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.sidebar-collapsed #content { margin-left: var(--sidebar-mini); }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.topbar .breadcrumb {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.topbar .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.topbar .breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }
.topbar .breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.topbar .breadcrumb a:hover { color: var(--primary); }

#sidebarToggle {
    background: #0d1117;
    border: none;
    color: #9ca3af;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
#sidebarToggle:hover {
    background: #1a2235;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#sidebarToggle .bi {
    font-size: 1.1rem;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content { padding: 22px 24px; flex: 1; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-sm);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px 12px 0 0;
}

.card-body { padding: 18px; }
.card-footer { border-top: 1px solid var(--border-sm); padding: 12px 18px; border-radius: 0 0 12px 12px; background: #fafbfd; }

/* ================================================================
   STAT CARDS
   ================================================================ */
.stat-card {
    border-radius: 14px;
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    opacity: 0.25;
    position: absolute;
    right: 18px; top: 18px;
}
.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}
.stat-card .stat-label {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bg-grad-primary { background: var(--grad-orange); }
.bg-grad-success { background: var(--grad-green); }
.bg-grad-info    { background: var(--grad-blue); }
.bg-grad-danger  { background: var(--grad-red); }
.bg-grad-purple  { background: var(--grad-purple); }
.bg-grad-dark    { background: var(--grad-dark); }
.bg-grad-warning { background: var(--grad-warning); }

/* ================================================================
   TABLAS
   ================================================================ */
.table {
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 0;
}

.table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: #f8fafc;
    border-bottom: 1.5px solid var(--border);
    padding: 11px 14px;
    white-space: nowrap;
}

.table tbody td {
    padding: 11px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-sm);
    color: var(--text-primary);
}

.table tbody tr:last-child td { border-bottom: none; }

.table-hover tbody tr:hover { background: #fafbff; }

.table-responsive { border-radius: 0 0 12px 12px; }

/* ================================================================
   FORMULARIOS
   ================================================================ */
.form-label {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-control, .form-select {
    font-size: 13.5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
    background: #fff;
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.input-group-text {
    background: #f1f4f9;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 13.5px;
}

/* ================================================================
   BOTONES
   ================================================================ */
.btn {
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 8px;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(249,115,22,0.45);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
}
.btn-outline-secondary:hover {
    background: #f1f4f9;
    border-color: #c8d0dc;
    color: var(--text-primary);
}

.btn-success { box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.btn-danger  { box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.btn-info    { box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.btn-warning { box-shadow: 0 2px 8px rgba(245,158,11,0.3); }

.btn-sm { font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.btn-lg { font-size: 15px; padding: 11px 22px; }
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 5px; }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-size: 13.5px;
}
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.alert-light   { background: #f8fafc; color: var(--text-secondary); border-left: 4px solid var(--border); }

/* Flash alert */
.alert-flash {
    position: fixed;
    top: 70px; right: 20px;
    z-index: 9999;
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ================================================================
   NAVEGACIÓN DE TABS
   ================================================================ */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    gap: 2px;
}
.nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    padding: 9px 16px;
    border-radius: 8px 8px 0 0;
    transition: all 0.15s;
}
.nav-tabs .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-tabs .nav-link.active {
    color: var(--primary);
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline-item {
    border-left: 3px solid var(--border);
    padding-left: 16px;
    margin-bottom: 18px;
    position: relative;
}
.timeline-item::before {
    content: '';
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -6.5px; top: 5px;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}
.timeline-item.border-warning { border-left-color: #f59e0b; }
.timeline-item.border-warning::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }

/* ================================================================
   QUICK ACTION CARDS
   ================================================================ */
.quick-action-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: all 0.2s;
}
.quick-action-card:hover {
    border-color: var(--primary);
    background: #fff8f3;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.18);
}
.quick-action-card i { font-size: 1.8rem; margin-bottom: 8px; display: block; color: var(--primary); }
.quick-action-card span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.quick-action-card:hover span { color: var(--primary-dark); }

/* ================================================================
   FORM SECTION TITLE
   ================================================================ */
.form-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--border-sm);
    margin-bottom: 14px;
    margin-top: 6px;
}

/* ================================================================
   LOGIN
   ================================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 60% 40%, #1e293b 0%, #0d1117 70%);
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

/* ================================================================
   STOCK
   ================================================================ */
.granel-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}
.stock-ok   { color: #059669; font-weight: 600; }
.stock-bajo { color: #dc2626; font-weight: 600; }
.stock-cero { color: #7f1d1d; font-weight: 700; }

/* ================================================================
   PROGRESS
   ================================================================ */
.progress { background: #e9ecf3; border-radius: 99px; }
.progress-bar { border-radius: 99px; }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d9e6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a8b4c8; }

/* ================================================================
   SIDEBAR OVERLAY (mobile)
   ================================================================ */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    backdrop-filter: blur(3px);
    transition: opacity 0.25s;
}
#sidebarOverlay.active { display: block; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Mobile y tablet: sidebar se desliza desde la izquierda */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
        position: fixed;
        z-index: 1050;
        box-shadow: none;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.5);
    }
    #content {
        margin-left: 0 !important;
    }
    .topbar { padding: 0 12px; }
    .main-content { padding: 14px 12px; }

    .stat-card { padding: 16px 18px; }
    .stat-card .stat-value { font-size: 1.35rem; }
    .stat-card .stat-icon { font-size: 1.8rem; }

    .quick-action-card { padding: 14px 8px; }
    .quick-action-card i { font-size: 1.5rem; }
    .quick-action-card span { font-size: 11px; }

    /* Ocultar columnas opcionales */
    .col-mobile-hidden { display: none !important; }

    /* Modales full width */
    .modal-dialog { margin: 8px; }

    /* Topbar botón siempre visible */
    #sidebarToggle { display: inline-flex !important; }
}

/* Tablet — ajustes de padding */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-content { padding: 18px 16px; }
    .stat-card .stat-value { font-size: 1.45rem; }
}

/* Desktop: toggle colapsa el sidebar */
@media (min-width: 992px) {
    #sidebarToggle { display: inline-flex; }
    body.sidebar-collapsed .sidebar { width: var(--sidebar-mini); }
    body.sidebar-collapsed #content { margin-left: var(--sidebar-mini); }
}

/* ================================================================
   IMPRESIÓN
   ================================================================ */
@media print {
    .sidebar, .topbar, .no-print,
    #sidebarToggle, #sidebarOverlay,
    .alert-flash { display: none !important; }
    #content { margin-left: 0 !important; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; border: 1px solid #e0e0e0 !important; }
}

/* ================================================================
   MISC
   ================================================================ */
.card-link-hover { transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.card-link-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }

.badge-stock-bajo { background: #fee2e2; color: #dc2626; }

/* List groups */
.list-group-item {
    border-color: var(--border-sm);
    font-size: 13.5px;
    padding: 10px 16px;
}
.list-group-item:hover { background: #fafbff; }

/* Select2 / dropdowns */
.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    font-size: 13.5px;
    padding: 6px;
}
.dropdown-item {
    border-radius: 7px;
    padding: 8px 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.dropdown-item:hover { background: #f1f4f9; color: var(--primary); }
.dropdown-item:active { background: var(--primary-light); color: var(--primary); }

/* Modales */
.modal-content {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-sm);
    padding: 16px 20px;
    border-radius: 14px 14px 0 0;
}
.modal-footer {
    border-top: 1px solid var(--border-sm);
    padding: 14px 20px;
}

/* Códigos */
code {
    background: #f1f4f9;
    color: #e85d04;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
}

/* DL rows */
dl.row dt { color: var(--text-secondary); font-weight: 600; font-size: 13px; }
dl.row dd { font-size: 13.5px; }
