/* ============================================================
   RESET - Rehabilitation Management System
   Main Stylesheet | Developed by AHM VERTEX
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES - LIGHT THEME
   ============================================================ */
:root {
    --primary:        #0d6efd;
    --primary-dark:   #0a58ca;
    --primary-light:  #e7f0ff;
    --secondary:      #6c757d;
    --success:        #198754;
    --danger:         #dc3545;
    --warning:        #ffc107;
    --info:           #0dcaf0;

    --bg-body:        #f0f4f8;
    --bg-card:        #ffffff;
    --bg-sidebar:     #0f172a;
    --bg-topbar:      #ffffff;
    --bg-hover:       #f8fafc;
    --bg-table-alt:   #f8fafc;

    --text-primary:   #0f172a;
    --text-secondary: #64748b;
    --text-muted:     #94a3b8;
    --text-sidebar:   #cbd5e1;
    --text-sidebar-active: #ffffff;

    --border-color:   #e2e8f0;
    --border-radius:  10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;

    --sidebar-width:  260px;
    --topbar-height:  64px;

    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:         0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);

    --font-family:    'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-active-bg: rgba(255,255,255,0.12);
    --menu-label-color:  #475569;
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] {
    --bg-body:        #0f172a;
    --bg-card:        #1e293b;
    --bg-sidebar:     #020617;
    --bg-topbar:      #1e293b;
    --bg-hover:       #334155;
    --bg-table-alt:   #1a2744;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --text-sidebar:   #94a3b8;

    --border-color:   #334155;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.3);
    --shadow:         0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg:      0 10px 15px rgba(0,0,0,0.4);

    --primary-light:  #1e3a5f;
    --menu-label-color: #64748b;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: var(--topbar-height);
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.brand-text { flex: 1; min-width: 0; }
.brand-name { display: block; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.brand-sub { display: block; font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }

.sidebar-close { background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; padding: 4px; margin-left: auto; }

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

.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.user-info .user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.user-info .user-role {
    font-size: 10px; background: rgba(13,110,253,0.2); color: #60a5fa;
    padding: 2px 8px; border-radius: 20px; font-weight: 500;
}

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

.menu-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--menu-label-color);
    padding: 16px 10px 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-sidebar);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--transition);
    cursor: pointer;
}

.menu-item:hover {
    background: var(--sidebar-active-bg);
    color: #e2e8f0;
}

.menu-item.active {
    background: rgba(13, 110, 253, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

.menu-item.active i { color: #3b82f6; }
.menu-item i { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg-topbar);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.sidebar-toggle {
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 22px; cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }

.breadcrumb { font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }

.theme-toggle {
    background: none; border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 16px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--primary); border-color: var(--primary); }

.topbar-date {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary);
    background: var(--bg-hover);
    padding: 6px 12px; border-radius: 8px;
}

.user-menu-btn {
    background: none; border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 8px;
    cursor: pointer; color: var(--text-primary);
    font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.user-menu-btn:hover { background: var(--bg-hover); }
.user-menu-btn::after { display: none; }

.user-avatar-sm {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container { padding: 16px 24px 0; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { flex: 1; padding: 24px; }

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0; }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin: 2px 0 0; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0; }
.card-body { padding: 20px; }
.card-footer { background: transparent; border-top: 1px solid var(--border-color); padding: 12px 20px; }

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.teal   { background: #ccfbf1; color: #0d9488; }

[data-theme="dark"] .stat-icon.blue   { background: #1e3a5f; color: #60a5fa; }
[data-theme="dark"] .stat-icon.green  { background: #14532d; color: #4ade80; }
[data-theme="dark"] .stat-icon.orange { background: #431407; color: #fb923c; }
[data-theme="dark"] .stat-icon.purple { background: #3b0764; color: #c084fc; }
[data-theme="dark"] .stat-icon.red    { background: #450a0a; color: #f87171; }
[data-theme="dark"] .stat-icon.teal   { background: #042f2e; color: #2dd4bf; }

.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 11px; margin-top: 4px; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { border-radius: var(--border-radius); overflow: hidden; }

.table {
    --bs-table-bg: var(--bg-card);
    --bs-table-striped-bg: var(--bg-table-alt);
    --bs-table-hover-bg: var(--bg-hover);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    margin-bottom: 0;
    font-size: 13px;
}

.table thead th {
    background: var(--bg-table-alt);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table td { padding: 12px 16px; vertical-align: middle; border-color: var(--border-color); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-label .required { color: var(--danger); }

.form-control, .form-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    padding: 8px 12px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled, .form-select:disabled { background: var(--bg-table-alt); color: var(--text-muted); }

.input-group-text {
    background: var(--bg-table-alt);
    border-color: var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { border-radius: var(--border-radius-sm); font-size: 13px; font-weight: 500; padding: 8px 16px; transition: var(--transition); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 15px; }
.btn i { font-size: 14px; }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ============================================================
   BADGES
   ============================================================ */
.badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }

.badge-active    { background: #dcfce7; color: #15803d; }
.badge-inactive  { background: #fee2e2; color: #b91c1c; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-completed { background: #dbeafe; color: #1d4ed8; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.badge-discharged{ background: #e0e7ff; color: #4338ca; }

[data-theme="dark"] .badge-active    { background: #14532d; color: #4ade80; }
[data-theme="dark"] .badge-inactive  { background: #450a0a; color: #f87171; }
[data-theme="dark"] .badge-pending   { background: #422006; color: #fbbf24; }
[data-theme="dark"] .badge-completed { background: #1e3a5f; color: #60a5fa; }
[data-theme="dark"] .badge-cancelled { background: #1f2937; color: #9ca3af; }
[data-theme="dark"] .badge-discharged{ background: #312e81; color: #818cf8; }

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    font-size: 13px;
    padding: 6px;
}

.dropdown-item {
    border-radius: 6px;
    color: var(--text-primary);
    padding: 7px 10px;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item-text { color: var(--text-secondary); padding: 7px 10px; }
.dropdown-divider { border-color: var(--border-color); }

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    background: var(--bg-topbar);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-dev { color: var(--primary); font-weight: 600; }
.footer-version { background: var(--bg-hover); padding: 2px 8px; border-radius: 20px; }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.modal-header {
    background: var(--bg-table-alt);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 16px 20px;
}

.modal-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--border-color); background: var(--bg-table-alt); }
.btn-close { filter: var(--btn-close-filter, none); }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { gap: 4px; }
.page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    border-radius: 6px !important;
    font-size: 13px;
    padding: 6px 12px;
}
.page-link:hover { background: var(--bg-hover); border-color: var(--border-color); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-item.disabled .page-link { background: var(--bg-table-alt); color: var(--text-muted); }

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box { position: relative; }
.search-box .form-control { padding-left: 36px; }
.search-box .search-icon {
    position: absolute; left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px; pointer-events: none;
}

/* ============================================================
   PRINT BUTTON & PRINT STYLES
   ============================================================ */
.btn-print { background: #f97316; border-color: #f97316; color: #fff; }
.btn-print:hover { background: #ea580c; border-color: #ea580c; color: #fff; }

@media print {
    .sidebar, .topbar, .page-actions, .sidebar-overlay,
    .app-footer, .flash-container, .btn, .pagination,
    .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    body { background: white !important; color: black !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .table { font-size: 11px; }
    .print-header { display: block !important; }
    @page { margin: 1cm; }
}

.print-header {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d6efd;
}
.print-header h2 { font-size: 20px; font-weight: 800; color: #0d6efd; }
.print-header p { font-size: 12px; color: #666; margin: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-custom { color: var(--text-primary); }
.text-secondary-custom { color: var(--text-secondary); }
.bg-card { background: var(--bg-card); }
.border-custom { border-color: var(--border-color) !important; }
.fw-800 { font-weight: 800; }
.gap-2 { gap: 8px; }

/* Avatar initials */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }

/* Info List */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.info-list li:last-child { border-bottom: none; }
.info-list .info-label { color: var(--text-secondary); min-width: 130px; font-weight: 500; }
.info-list .info-value { color: var(--text-primary); font-weight: 500; }

/* Progress */
.progress { background: var(--bg-table-alt); border-radius: 20px; height: 6px; }
.progress-bar { border-radius: 20px; }

/* Empty State */
.empty-state {
    text-align: center; padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.4; }
.empty-state h5 { color: var(--text-secondary); font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -20px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--bg-card);
}
.timeline-content { background: var(--bg-table-alt); border-radius: 8px; padding: 12px 14px; }
.timeline-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.timeline-date { font-size: 11px; color: var(--text-muted); }
.timeline-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.show { display: block; }
    .main-wrapper { margin-left: 0; }
}

@media (max-width: 767.98px) {
    .page-content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-actions { justify-content: flex-start; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }
    .flash-container { padding: 12px 16px 0; }
}

@media (max-width: 575.98px) {
    .page-content { padding: 12px; }
    .stat-icon { width: 44px; height: 44px; font-size: 18px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.fade-in { animation: fadeIn 0.3s ease forwards; }

.card { animation: fadeIn 0.3s ease; }
.stat-card { animation: fadeIn 0.3s ease; }

/* Notification dot */
.notif-dot {
    width: 8px; height: 8px; background: var(--danger);
    border-radius: 50%; display: inline-block;
    position: absolute; top: -2px; right: -2px;
}

/* ============================================================
   INVOICE PRINT SPECIFIC
   ============================================================ */
.invoice-header { border-bottom: 3px solid var(--primary); padding-bottom: 20px; margin-bottom: 20px; }
.invoice-logo { font-size: 28px; font-weight: 800; color: var(--primary); }
.invoice-to { background: var(--bg-table-alt); padding: 14px; border-radius: 8px; }
.invoice-total-box { background: var(--primary); color: #fff; padding: 16px; border-radius: 8px; }
.invoice-total-box .label { opacity: 0.8; font-size: 12px; }
.invoice-total-box .amount { font-size: 24px; font-weight: 800; }
