/* Dashboard Invoices — icopify.co */

body.dashboard-invoices-page .dashboard-layout {
    display: block;
}

body.dashboard-invoices-page .dashboard-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    background: #eef1f6;
    min-height: 100vh;
}

body.dashboard-invoices-page .dashboard-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 250;
    background: #fff;
    justify-content: flex-end;
    min-height: 56px;
}

body.dashboard-invoices-page .dashboard-content {
    padding: 76px 24px 90px;
    max-width: 1100px;
    margin: 0 auto;
}

.dash-invoices-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    min-height: 420px;
}

.dash-invoices-header {
    background: #1e3a5f;
    color: #fff;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.dash-invoices-table-wrap {
    overflow-x: auto;
}

.dash-invoices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dash-invoices-table thead th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: left;
    padding: 12px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.dash-invoices-table thead th:last-child {
    border-right: none;
}

.dash-invoices-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.dash-invoices-table tbody tr:hover:not(.dash-invoices-empty-row) {
    background: #f8fafc;
}

.dash-invoices-table tbody tr:last-child td {
    border-bottom: none;
}

.dash-invoices-empty-row td {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 48px 16px;
    border-bottom: none;
}

.dash-invoices-table .inv-no {
    font-weight: 600;
    color: #1e293b;
}

.dash-invoices-table .inv-bonus {
    display: block;
    font-size: 0.75rem;
    color: #16a34a;
    margin-top: 2px;
}

.dash-invoices-table .inv-row-pending {
    background: #fffbeb;
}

.inv-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.inv-status-credited { background: #dcfce7; color: #166534; }
.inv-status-pending { background: #fef3c7; color: #92400e; }
.inv-status-held { background: #fee2e2; color: #991b1b; }
.inv-status-refunded { background: #e2e8f0; color: #475569; }
.inv-status-rejected { background: #fecaca; color: #7f1d1d; }
.inv-status-default { background: #f1f5f9; color: #475569; }

.btn-inv-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-inv-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.btn-inv-download:hover {
    border-color: #2563eb;
    color: #2563eb;
}

@media (max-width: 992px) {
    body.dashboard-invoices-page .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    body.dashboard-invoices-page .dashboard-header {
        left: 0;
    }
}
