.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.language-picker select{min-width:70px;padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:700;cursor:pointer}
@media(max-width:850px){.language-picker{width:100%}.language-picker select{width:100%}}

/*
|--------------------------------------------------------------------------
| Tabelas da área do cliente
|--------------------------------------------------------------------------
*/

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table-wrap th,
.table-wrap td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table-wrap th {
    background: var(--cream);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.table-wrap td {
    color: var(--ink);
    font-size: 0.92rem;
}

.table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.table-wrap tbody tr:hover {
    background: #f9f7f2;
}

/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
*/

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f7ef;
    color: #19734b;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {
    .table-wrap th,
    .table-wrap td {
        padding: 13px 14px;
    }

    .table-wrap table {
        min-width: 650px;
    }
}

/*
|--------------------------------------------------------------------------
| Fatura
|--------------------------------------------------------------------------
*/

.invoice-page {
    background: #f1f3f6;
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.invoice-sheet {
    max-width: 920px;
    margin: 0 auto;
    padding: 54px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgb(16 36 62 / 10%);
}

.invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--ink);
}

.invoice-header h1 {
    margin: 28px 0 0;
    font: 500 2.7rem/1.1 Georgia, serif;
    color: var(--ink);
}

.invoice-number {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.invoice-number span,
.invoice-meta span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invoice-number strong {
    font-size: 1rem;
}

.invoice-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.invoice-meta > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 35px 0;
}

.invoice-parties h2,
.invoice-customer-address h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invoice-parties p,
.invoice-customer-address p {
    margin: 0;
    line-height: 1.8;
}

.invoice-customer-address {
    padding: 24px;
    border-radius: 12px;
    background: var(--cream);
}

.invoice-items {
    margin-top: 35px;
    overflow-x: auto;
}

.invoice-items table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-items th,
.invoice-items td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.invoice-items th:last-child,
.invoice-items td:last-child {
    text-align: right;
    white-space: nowrap;
}

.invoice-items thead th {
    background: var(--ink);
    color: #ffffff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.invoice-items tfoot th {
    border-bottom: 0;
    font-size: 1.15rem;
}

.invoice-paid {
    margin-top: 30px;
    padding: 18px;
    border-left: 4px solid #23865d;
    background: #eaf8f1;
    color: #19734b;
}

/*
|--------------------------------------------------------------------------
| Fatura em telas menores
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {
    .invoice-actions {
        flex-direction: column;
    }

    .invoice-actions .button {
        width: 100%;
    }

    .invoice-sheet {
        padding: 28px 20px;
        border-radius: 10px;
    }

    .invoice-header {
        flex-direction: column;
    }

    .invoice-number {
        text-align: left;
    }

    .invoice-meta,
    .invoice-parties {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Impressão e PDF
|--------------------------------------------------------------------------
*/

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #ffffff;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .invoice-page,
    .invoice-page .section,
    .invoice-page .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    .invoice-sheet {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .invoice-header,
    .invoice-meta,
    .invoice-parties,
    .invoice-customer-address,
    .invoice-items {
        break-inside: avoid;
    }

    .invoice-items thead th {
        background: #10243e !important;
        color: #ffffff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .invoice-customer-address,
    .invoice-paid {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}