/* ============================================================
   Polimento visual — área do cliente (huraga)
   Carregado após o bundle do tema; sobrevive a redeploys (volume)
   ============================================================ */
:root {
    --idv-accent: #2563eb;
    --idv-accent-dark: #1d4ed8;
    --idv-ink: #0f172a;
    --idv-muted: #64748b;
    --idv-bg: #f1f5f9;
    --idv-border: #e2e8f0;
    --idv-radius: 14px;
}

body {
    background: var(--idv-bg) !important;
    color: var(--idv-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- cartões ---------- */
.card {
    border: 1px solid var(--idv-border);
    border-radius: var(--idv-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04),
        0 12px 28px -16px rgba(15, 23, 42, .14);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

/* ---------- botões ---------- */
.btn {
    border-radius: 9px;
    font-weight: 600;
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--idv-accent);
    border-color: var(--idv-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--idv-accent-dark);
    border-color: var(--idv-accent-dark);
}

/* ---------- breadcrumb / topo ---------- */
.breadcrumb {
    font-size: .85rem;
}

.breadcrumb a {
    color: var(--idv-accent);
    text-decoration: none;
}

/* ============================================================
   Página da fatura
   ============================================================ */

/* faixa de destaque no cartão principal da fatura */
body.invoice-invoice .card.mb-4 {
    border-top: 4px solid var(--idv-accent);
}

body.invoice-invoice .card-header h5 {
    font-weight: 700;
    letter-spacing: -.01em;
}

/* numero da fatura em evidencia */
body.invoice-invoice .card-body h4.fw-light {
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: var(--idv-ink);
    font-size: 1.6rem;
}

/* blocos de informacao (fatura / empresa / cliente) */
body.invoice-invoice .well {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: 100%;
}

body.invoice-invoice .well h5 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--idv-muted);
    margin-bottom: .75rem;
}

body.invoice-invoice .well dt {
    font-weight: 500;
    color: var(--idv-muted);
}

body.invoice-invoice .well dd {
    font-weight: 600;
    color: var(--idv-ink);
}

/* status como "pill" */
body.invoice-invoice .badge {
    border-radius: 999px;
    padding: .45em 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .68rem !important;
}

body.invoice-invoice .badge.bg-warning {
    background: #fef3c7 !important;
    color: #92400e;
}

body.invoice-invoice .badge.bg-success {
    background: #d1fae5 !important;
    color: #065f46;
}

/* ---------- métodos de pagamento ---------- */
body.invoice-invoice .invoice-gateway {
    border: 2px solid var(--idv-border);
    border-radius: 12px;
    padding: .9rem 1.4rem !important;
    background: #fff;
    transition: border-color .15s ease, transform .15s ease,
        box-shadow .15s ease;
    cursor: pointer;
}

body.invoice-invoice .invoice-gateway:hover {
    border-color: var(--idv-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .45);
}

body.invoice-invoice .invoice-gateway label {
    min-width: 110px;
    min-height: 34px;
}

/* ---------- tabela de itens ---------- */
body.invoice-invoice .table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--idv-muted);
    border-bottom: 2px solid var(--idv-border);
    background: #f8fafc;
}

body.invoice-invoice .table td {
    vertical-align: middle;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

body.invoice-invoice .table a {
    color: var(--idv-accent);
    font-weight: 600;
    text-decoration: none;
}

/* total em destaque */
body.invoice-invoice .table-striped tr:last-child td {
    font-size: 1.15rem;
    background: #eff6ff !important;
    border-radius: 8px;
    color: var(--idv-accent-dark);
}

/* ---------- impressão ---------- */
@media print {
    body {
        background: #fff !important;
    }

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