:root {
    --sidebar-width: 240px;
    --brand-blue: #0d6efd;
}

body {
    background-color: #f4f6f9;
}

/* ---------- App shell layout ---------- */
.app-wrapper {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.app-sidebar .nav-link {
    padding: .65rem 1.25rem;
    border-left: 3px solid transparent;
    opacity: .85;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, .08);
    border-left-color: var(--brand-blue);
    opacity: 1;
}

.app-main {
    min-width: 0;
}

.sidebar-footer {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1040;
        transition: left .2s ease;
    }

    .app-sidebar.show {
        left: 0;
    }
}

/* ---------- Login page ---------- */
.login-page {
    background: linear-gradient(135deg, #0d6efd 0%, #0a3d91 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
}

/* ---------- Status badges (used from Phase 6 / inventory onward) ---------- */
.badge-active    { background-color: #198754 !important; }
.badge-sold      { background-color: #dc3545 !important; }
.badge-returned  { background-color: #ffc107 !important; color: #212529 !important; }
.badge-inactive  { background-color: #6c757d !important; }
.badge-cancelled { background-color: #212529 !important; }

/* ---------- Print layouts (purchase orders, invoices, receipts) ---------- */
@media print {
    .app-sidebar,
    .navbar,
    .d-print-none {
        display: none !important;
    }

    .app-main {
        width: 100% !important;
    }

    body {
        background: #fff !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .print-header-card .card-body {
        padding: 0 !important;
    }

    .container-fluid {
        padding: 0 !important;
    }
}
