/* ============================================================
   FINIQUITOS DASHBOARD — Professional E-Commerce Style
   ============================================================ */

:root {
    /* Primary palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-100: #eff6ff;

    /* Accent */
    --accent: #059669;
    --accent-dark: #047857;
    --accent-light: #d1fae5;

    /* Status colors */
    --pending: #d97706;
    --pending-light: #fef3c7;
    --process: #7c3aed;
    --process-light: #ede9fe;
    --completed: #059669;
    --completed-light: #d1fae5;

    /* Neutral */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Danger */
    --danger: #dc2626;
    --danger-light: #fee2e2;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- SIDEBAR ---------- */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i { color: var(--primary); font-size: 1.4rem; }

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.08); color: white; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.avatar-placeholder {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 0.9rem; }
.user-role { font-size: 0.75rem; color: var(--gray-400); }

.sidebar-menu {
    list-style: none;
    padding: 12px 12px;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
    margin-bottom: 2px;
}

.menu-item:hover { background: rgba(255,255,255,0.06); color: white; }
.menu-item.active { background: var(--primary); color: white; }
.menu-item i { width: 20px; text-align: center; font-size: 0.95rem; }

.badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* ---------- MAIN WRAPPER ---------- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* ---------- TOPBAR ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: var(--shadow-sm);
}

.topbar-left h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 2px;
}
.breadcrumb span { color: var(--gray-500); }
.breadcrumb span:last-child { color: var(--primary); font-weight: 600; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.search-box:focus-within { background: white; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-box i { color: var(--gray-400); }
.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.85rem;
    width: 200px;
    color: var(--gray-700);
}
.search-box input::placeholder { color: var(--gray-400); }

.btn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}
.btn-icon:hover { background: var(--gray-200); color: var(--gray-800); }

.notification-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* ---------- CONTENT SECTIONS ---------- */
.content-section {
    display: none;
    padding: 28px;
    animation: fadeIn 0.3s ease;
}
.content-section.active { display: block; }

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

/* ---------- STATS GRID ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.stat-total .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-pending .stat-icon { background: var(--pending-light); color: var(--pending); }
.stat-process .stat-icon { background: var(--process-light); color: var(--process); }
.stat-completed .stat-icon { background: var(--completed-light); color: var(--completed); }

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* ---------- CARDS ---------- */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}
.card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-body { padding: 24px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(5,150,105,0.3); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-outline { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- DATA TABLE ---------- */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table thead { background: var(--gray-50); }
.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

.empty-row td {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
    font-style: italic;
}

/* ---------- STATUS BADGES ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-badge.pending { background: var(--pending-light); color: var(--pending); }
.status-badge.process { background: var(--process-light); color: var(--process); }
.status-badge.completed { background: var(--completed-light); color: var(--completed); }

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-badge.pending .status-dot { background: var(--pending); }
.status-badge.process .status-dot { background: var(--process); }
.status-badge.completed .status-dot { background: var(--completed); }

/* ---------- CATALOG GRID (E-Commerce Style) ---------- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.catalog-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.catalog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.catalog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.catalog-card-image .employee-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    color: var(--primary);
}

.catalog-card-image .company-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-700);
    box-shadow: var(--shadow);
}

.catalog-card-body {
    padding: 16px 20px;
}

.catalog-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.catalog-card-body .meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.catalog-card-body .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.catalog-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-card-footer .actions {
    display: flex;
    gap: 8px;
}

.catalog-card-footer .actions button {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}
.btn-view { background: var(--primary-light); color: var(--primary); }
.btn-view:hover { background: var(--primary); color: white; }
.btn-note { background: var(--gray-100); color: var(--gray-600); }
.btn-note:hover { background: var(--gray-200); }
.btn-edit { background: var(--accent-light); color: var(--accent); }
.btn-edit:hover { background: var(--accent); color: white; }
.btn-delete { background: var(--danger-light); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; }

/* ---------- CATALOG CONTROLS ---------- */
.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
}
.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
}
.filter-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.catalog-actions { display: flex; gap: 10px; }

/* ---------- FORM LAYOUT ---------- */
.form-layout { max-width: 800px; }

.form-card { margin-top: 20px; }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.flex-1 { flex: 1; min-width: 200px; }
.flex-2 { flex: 2; min-width: 250px; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.form-group label .required { color: var(--danger); }

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input.error,
.form-group select.error { border-color: var(--danger); }

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.radio-group input[type="radio"] { display: none; }
.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    background: white;
}
.radio-group input:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}
.radio-group label:hover { background: var(--gray-50); }

.error-message {
    color: var(--danger);
    font-size: 0.78rem;
    min-height: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ---------- EXPORT GRID ---------- */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.export-card {
    text-align: center;
    padding: 32px 24px;
    cursor: pointer;
    transition: var(--transition);
}
.export-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.export-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}
.export-card:nth-child(1) .export-icon { background: #dbeafe; color: #2563eb; }
.export-card:nth-child(2) .export-icon { background: #fee2e2; color: #dc2626; }
.export-card:nth-child(3) .export-icon { background: #d1fae5; color: #059669; }
.export-card:nth-child(4) .export-icon { background: #fef3c7; color: #d97706; }

.export-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.export-card p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden { display: none; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlide 0.25s ease;
}
.modal-sm { max-width: 480px; }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }

.modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-500);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Detail view in modal */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item.full { grid-column: 1 / -1; }
.detail-item label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.3px; }
.detail-item span { font-size: 0.9rem; color: var(--gray-800); font-weight: 500; }

/* ---------- NOTES SECTION ---------- */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.note-item:hover { background: var(--gray-100); }

.note-item .note-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.note-item .note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.note-item .note-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.note-item .note-delete:hover { background: var(--danger-light); }

.add-note-form {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}

.add-note-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    resize: vertical;
    font-family: inherit;
    transition: var(--transition);
}
.add-note-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.note-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

/* ---------- TOAST ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gray-800);
    color: white;
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2000;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.hidden { display: none; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

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

/* ---------- DARK MODE ---------- */
body.dark-mode {
    background: #111827;
    color: #f3f4f6;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .topbar {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    background: #4b5563;
}

body.dark-mode .radio-group label {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .radio-group input:checked + label {
    background: #312e81;
    border-color: #6366f1;
}

body.dark-mode .data-table thead {
    background: #374151;
}

body.dark-mode .data-table tbody tr:hover {
    background: #374151;
}

body.dark-mode .catalog-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .catalog-card-body h3 {
    color: #f3f4f6;
}

body.dark-mode .catalog-card-image {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

body.dark-mode .export-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .setting-item {
    border-color: #374151;
}

body.dark-mode .note-item {
    background: #374151;
}

body.dark-mode .modal-container {
    background: #1f2937;
}

body.dark-mode .modal-header {
    border-color: #374151;
}

body.dark-mode .modal-footer {
    border-color: #374151;
}

body.dark-mode .search-box {
    background: #374151;
}

body.dark-mode .search-box input {
    color: #f3f4f6;
}

body.dark-mode .search-box input::placeholder {
    color: #6b7280;
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

body.dark-mode .btn-outline {
    color: #d1d5db;
    border-color: #4b5563;
}

body.dark-mode .btn-outline:hover {
    background: #374151;
}

body.dark-mode .form-actions {
    border-color: #374151;
}

body.dark-mode .detail-item label {
    color: #9ca3af;
}

body.dark-mode .detail-item span {
    color: #f3f4f6;
}

body.dark-mode .tag-monsep {
    background: #1e3a5f;
}

body.dark-mode .catalog-card-footer {
    border-color: #374151;
}

/* ---------- SETTINGS ---------- */
.setting-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.setting-item:last-child { border-bottom: none; }
.setting-item label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.setting-item p, .setting-item code {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.company-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.tag-monsep { background: var(--primary-light); color: var(--primary); }
.tag-cuervos { background: #fce7f3; color: #be185d; }

.status-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.legend-dot.pending { background: var(--pending); }
.legend-dot.process { background: var(--process); }
.legend-dot.completed { background: var(--completed); }

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .catalog-controls { flex-direction: column; align-items: stretch; }
    .catalog-actions { flex-wrap: wrap; }
    .topbar { padding: 0 16px; }
    .search-box input { width: 120px; }
    .detail-grid { grid-template-columns: 1fr; }
    .content-section { padding: 16px; }
}

@media (max-width: 480px) {
    .catalog-actions { flex-direction: column; }
    .form-actions { flex-direction: column; }
    .modal-container { width: 95%; }
}