body {
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 12px;
    border-radius: 7px;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: #dc3545;
}

.main-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .sidebar {
        width: 190px;
    }
}


.invoice-document {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 10px;
}

.invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.invoice-business-name {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.invoice-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invoice-table thead th {
    color: #fff;
    background: #212529;
    border: 0;
}

.invoice-notes {
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media print {
    body {
        background: #fff !important;
    }

    .navbar,
    .sidebar,
    .no-print {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
    }

    .invoice-document {
        max-width: none;
        padding: 0;
        box-shadow: none !important;
        border-radius: 0;
    }
}

.profit-loss-document {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 10px;
}

.profit-loss-table td,
.profit-loss-table th {
    padding: 13px 12px;
}

@media print {
    .profit-loss-document {
        max-width: none;
        padding: 0;
        box-shadow: none !important;
        border-radius: 0;
    }
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            #17191c 0%,
            #343a40 100%
        );
}

.login-card {
    width: 100%;
    max-width: 430px;
    border-radius: 14px;
}

.header-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: #dc3545;
    border-radius: 9px;
    font-size: 20px;
}

.sidebar-heading {
    padding: 0 12px;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    padding: 11px 12px;
    border-radius: 8px;
}

.sidebar .nav-link i {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: #dc3545;
}

.expense-document {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 10px;
}

@media print {
    .expense-document {
        max-width: none;
        padding: 0;
        box-shadow: none !important;
        border-radius: 0;
    }
}

/* Expense details page alignment */
.expense-page-toolbar,
.expense-document,
.expense-action-card {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.expense-page-toolbar {
    margin-bottom: 20px;
}

.expense-document {
    padding: 36px 40px !important;
    margin-bottom: 24px !important;
    overflow: hidden;
}

.expense-document .row {
    margin-left: -10px;
    margin-right: -10px;
}

.expense-document .row > div {
    padding-left: 10px;
    padding-right: 10px;
}

/* Totals area */
.expense-totals {
    max-width: 500px;
    margin-left: auto;
    padding-right: 5px;
}

.expense-totals .d-flex {
    gap: 25px;
}

.expense-totals .d-flex span,
.expense-totals .d-flex strong {
    white-space: nowrap;
}

/* Payment and refund forms */
.expense-action-card {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .expense-page-toolbar,
    .expense-document,
    .expense-action-card {
        width: calc(100% - 20px);
    }

    .expense-document {
        padding: 22px 18px !important;
    }

    .expense-page-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .expense-totals {
        max-width: 100%;
        margin-top: 25px;
    }
}

@media print {
    .expense-document {
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
    }
}