:root {
    --brand-primary: #ea580c;
    --brand-primary-hover: #c2410c;
    --brand-soft: #fff7ed;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --page-bg: #f8fafc;
}

body {
    background-color: var(--page-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.app-wrapper {
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: #e2e8f0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-offcanvas {
    background-color: var(--sidebar-bg);
    color: #e2e8f0;
    width: 260px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sidebar .nav-link,
.sidebar-offcanvas .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

.sidebar .nav-link.active,
.sidebar-offcanvas .nav-link.active {
    background-color: var(--brand-primary);
    color: #fff;
}

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #fff;
}

.kpi-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-clean {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.invoice-sheet {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    max-width: 920px;
    margin: 0 auto;
}

.invoice-header-accent {
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

@media print {
    body {
        background: #fff !important;
    }
    .no-print {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    .container-fluid {
        padding: 0 !important;
    }
    .invoice-sheet {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
}
