/* =====================================================
   MARANDÚ - Estilos Principales
   V.1.0.0 - Zamworg International., Ltd
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #de5305;
    --primary-dark: #b84400;
    --primary-light: #ff7b3a;
    --secondary: #1e293b;
    --secondary-dark: #0f172a;
    --secondary-light: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-width: 260px;
    --header-height: 64px;
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --transition: all .2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 14px;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== LOGIN ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--primary-dark) 100%);
    padding: 20px;
}
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.auth-logo p {
    color: var(--gray-500);
    font-size: 13px;
}
.auth-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
    text-align: center;
}

/* ===== LAYOUT ===== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}
.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.sidebar-brand h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.sidebar-brand span {
    font-size: 10px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-nav {
    padding: 12px 0;
}
.nav-section {
    padding: 8px 24px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-top: 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-item:hover {
    background: rgba(255,255,255,.05);
    color: white;
}
.nav-item.active {
    background: rgba(222,83,5,.15);
    color: var(--primary);
    border-left-color: var(--primary);
}
.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: .7;
}
.nav-item.active svg { opacity: 1; }
.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 500;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-left h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); }
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--gray-600);
}
.header-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.header-btn svg { width: 20px; height: 20px; }
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: var(--transition);
}
.user-menu:hover { background: var(--gray-50); }
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.user-info { text-align: right; }
.user-info .name { font-size: 13px; font-weight: 600; color: var(--secondary); }
.user-info .role { font-size: 11px; color: var(--gray-400); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Page Content */
.page-content {
    padding: 28px;
    flex: 1;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-body { padding: 24px; }
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.orange { background: rgba(222,83,5,.1); color: var(--primary); }
.stat-icon.green { background: rgba(16,185,129,.1); color: var(--success); }
.stat-icon.blue { background: rgba(59,130,246,.1); color: var(--info); }
.stat-icon.red { background: rgba(239,68,68,.1); color: var(--danger); }
.stat-icon.yellow { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-info h4 { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.stat-info .value { font-size: 28px; font-weight: 800; color: var(--secondary); line-height: 1.2; }
.stat-info .change { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat-info .change.up { color: var(--success); }
.stat-info .change.down { color: var(--danger); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    transition: var(--transition);
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(222,83,5,.1);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-text { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group .form-control {
    border-radius: 8px 0 0 8px;
}
.input-group-text {
    padding: 0 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-700); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
}
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: var(--gray-50);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    vertical-align: middle;
}
.table tr:hover td { background: var(--gray-50); }
.table .actions { display: flex; gap: 6px; }
.table .text-right { text-align: right; }
.table .text-center { text-align: center; }
.table .text-money { font-weight: 600; font-family: 'Inter', monospace; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: rgba(16,185,129,.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,.1); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.1); color: var(--warning); }
.badge-info { background: rgba(59,130,246,.1); color: var(--info); }
.badge-orange { background: rgba(222,83,5,.1); color: var(--primary); }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid;
}
.alert-success { background: rgba(16,185,129,.08); color: #065f46; border-color: var(--success); }
.alert-danger { background: rgba(239,68,68,.08); color: #991b1b; border-color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.08); color: #92400e; border-color: var(--warning); }
.alert-info { background: rgba(59,130,246,.08); color: #1e40af; border-color: var(--info); }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-500);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}
.pagination a:hover { background: var(--gray-100); }
.pagination .active {
    background: var(--primary);
    color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: .5; }
.empty-state h4 { font-size: 16px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

/* ===== FOOTER ===== */
.app-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
    flex-wrap: wrap;
    gap: 8px;
}
.app-footer a { color: var(--primary); font-weight: 500; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    z-index: 1500;
    display: none;
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-item svg { width: 18px; height: 18px; color: var(--gray-400); }
.dropdown-divider { border-top: 1px solid var(--gray-100); margin: 4px 0; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: white;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn .3s ease;
    border-left: 4px solid;
}
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--gray-700); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== LOADING ===== */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-content { padding: 16px; }
    .header { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .auth-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .user-info { display: none; }
    .btn-group { flex-direction: column; }
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
}
.search-bar input {
    padding-left: 40px;
}
.search-bar svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

/* ===== PROGRESS ===== */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
}
.progress-bar.orange { background: var(--primary); }
.progress-bar.green { background: var(--success); }
.progress-bar.red { background: var(--danger); }

/* ===== INGREDIENT ROW ===== */
.ingredient-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px 40px;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}
.ingredient-row .form-group { margin-bottom: 0; }
.remove-ingredient {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--danger);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.remove-ingredient:hover { background: #dc2626; }

/* ===== SUMMARY BOX ===== */
.cost-summary {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-top: 20px;
}
.cost-summary h4 { font-size: 16px; margin-bottom: 16px; }
.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
}
.cost-row:last-child { border-bottom: none; }
.cost-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--primary);
    border-bottom: none;
}
.cost-row .label { color: var(--gray-300); }
.cost-row .value { font-weight: 600; }
.cost-row.profit .value { color: var(--success); }
.cost-row.price .value { color: var(--primary-light); font-size: 22px; }

/* Notification Panel */
.notification-panel {
    position: fixed;
    right: -380px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}
.notification-panel.open { right: 0; }
.notification-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notification-list { flex: 1; overflow-y: auto; }
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}
.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { border-left: 3px solid var(--primary); }
.notification-item h5 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.notification-item p { font-size: 12px; color: var(--gray-500); }
.notification-item .time { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-bar .form-control {
    width: auto;
    min-width: 160px;
}

/* Print styles */
@media print {
    .sidebar, .header, .app-footer, .btn, .actions { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
