﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:            #F5F6F8;
    --surface:       #FFFFFF;
    --primary:       #37769C;
    --primary-tint:  #EAF1F6;
    --white:         #FFFFFF;
    --btn-ink:        #ffffff;
    --back-btn-ink:   #ffffff;
    --back-btn-bg:    rgba(255, 255, 255, 0.12);
    --text:              #1A2733;
    --text-muted:        #6B7785;
    /* Texto sobre fundos sempre brancos (cards, inputs, modais).
       Não muda com o tema , surface é sempre #FFFFFF. */
    --text-on-surface:       #1A2733;
    --text-muted-on-surface: #6B7785;
    --border:      #E4E8EC;
    --success:     #1F8A4C;
    --danger:      #C8392F;
    --card-shadow: 0 1px 2px rgba(20,40,60,0.04), 0 4px 12px rgba(20,40,60,0.04);
    --btn-shadow:  0 2px 6px rgba(20,40,60,0.10), 0 8px 16px rgba(45,106,142,0.18);
    --radius:      14px;
    --radius-sm:   10px;
    --radius-lg:   20px;
}

body {
    background-color: var(--bg);
    font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    height: 100vh;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ===== HOME ===== */

body.home {
    background: var(--bg);
}

.home-hero {
    padding: 32px 24px 22px;
}

.home-partner-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.home-partner-logo {
    height: 110px;
    max-width: 282px;
    width: auto;
    object-fit: contain;
}

.home-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.home-heading {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.home-subheading {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
}

.home-card-wrap {
    padding: 0;
}

.home-location-card {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border-top: 1px solid #E4E8EC;
    border-bottom: 1px solid #E4E8EC;
    margin-bottom: 18px;
    overflow: hidden;
}

.home-box-col {
    min-width: 110px;
    padding: 14px 22px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-right: 1px solid #E4E8EC;
}

.home-box-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-on-surface);
    margin-bottom: 3px;
}

.home-box-number {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-on-surface);
}

.home-status-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}
.home-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.home-status-badge--checking { background: rgba(0,0,0,0.06); color: #888; }
.home-status-badge--online   { background: rgba(46,125,50,0.13); color: #2E7D32; }
.home-status-badge--offline  { background: rgba(198,40,40,0.13); color: #C62828; }

.home-info-col {
    padding: 12px 18px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.home-info-label {
    font-size: 10px;
    font-weight: 700;
    color: #6B7785;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.home-info-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-on-surface);
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.home-info-addr {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.home-info-addr i {
    font-size: 9px;
    color: #6B7785;
    margin-top: 3px;
    flex-shrink: 0;
}

.home-info-addr-lines {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-on-surface);
    line-height: 1.35;
}

.home-spacer { height: 18px; flex-shrink: 0; }

.home-btn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 22px 22px;
}

.home-btn {
    width: 100%;
    height: 70px;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--btn-shadow);
}

.home-btn:active {
    transform: scale(0.985) translateY(1px);
    box-shadow: none;
}

.home-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.home-btn > span { flex: 1; text-align: left; }

.home-btn--correios {
    background: var(--primary);
    color: var(--btn-ink);
}

.home-btn--diversos {
    background: var(--primary);
    color: var(--btn-ink);
}

/* ── Modal entregadores diversos ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    transition: background 0.22s ease;
}
.modal-overlay.is-open {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: all;
}
.modal-sheet {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 22px 36px;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.is-open .modal-sheet {
    transform: translateY(0);
}
.modal-handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 14px auto 22px;
}
.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-on-surface);
    text-align: center;
    margin: 0 0 18px;
}
.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.modal-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    height: 58px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--btn-ink);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.modal-opt:active { opacity: 0.82; }
.modal-opt > span { flex: 1; text-align: left; }
.modal-opt-icon {
    font-size: 22px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.modal-cancel {
    width: 100%;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--text-muted-on-surface);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-btn-img {
    height: 26px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.home-btn--diversos .home-btn-img {
    height: 36px;
}

.home-btn-fa {
    font-size: 20px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.home-flex-fill { flex: 1; }

/* ===== Páginas ===== */

.page-header {
    background-color: var(--primary);
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--btn-ink);
    opacity: 0.50;
}

.back-btn {
    background: var(--back-btn-bg);
    border: none;
    color: var(--back-btn-ink);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 22px;
    font-size: 17px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, transform 0.08s ease;
}

.back-btn:active {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0.92);
}

.page-title {
    flex: 1;
    color: var(--btn-ink);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.2px;
}

.page-header-spacer {
    width: 44px;
    flex-shrink: 0;
}

.location-subheader {
    background-color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 12px;
    flex-shrink: 0;
}

.location-subheader i {
    color: var(--btn-ink);
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.75;
}

.location-subheader span {
    color: var(--btn-ink);
    opacity: 0.8;
    font-size: 13px;
    font-weight: 600;
}

/* Form pages (matrícula, senha) */
.form-section {
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0 22px;
    font-size: 26px;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-on-surface);
    background: var(--surface);
    outline: none;
    letter-spacing: 4px;
    transition: border-color 0.2s;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(20,40,60,0.04);
}

.form-input:focus {
    border-color: var(--primary);
}

.form-input.password-input {
    font-size: 22px;
    letter-spacing: 8px;
}

.form-error {
    display: none;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: #c0392b;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-error:not(:empty) {
    display: block;
    margin-top: 10px;
}

.continue-btn {
    width: 100%;
    height: 68px;
    background-color: var(--primary);
    color: var(--btn-ink);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: 8px;
    box-shadow: var(--btn-shadow);
}

.continue-btn:active {
    box-shadow: none;
    transform: scale(0.985) translateY(1px);
}

.continue-btn:disabled {
    background: #C8CFD6;
    box-shadow: none;
    pointer-events: none;
}

/* List pages (alas, blocos, apartamentos, etc) */
.filter-section {
    padding: 14px 18px;
    background: var(--bg);
    position: sticky;
    top: 64px;
    z-index: 9;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.filter-wrapper {
    position: relative;
}

.filter-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-on-surface);
    font-size: 15px;
    pointer-events: none;
}

.filter-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 18px 0 46px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-on-surface);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(20,40,60,0.03);
}

.filter-input:focus {
    border-color: var(--primary);
}

.list-section {
    padding: 18px 18px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.list-item-btn {
    width: 100%;
    min-height: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 18px;
    font-size: 17px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-on-surface);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.08s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--card-shadow);
}

.list-item-btn:active {
    transform: scale(0.985);
    box-shadow: none;
}
.list-item-btn--occupied {
    position: relative;
    cursor: not-allowed;
}
.list-item-btn--occupied:active {
    transform: none;
    box-shadow: var(--card-shadow);
}
.list-item-btn--occupied .list-item-leading,
.list-item-btn--occupied .list-item-text-group,
.list-item-btn--occupied .item-chevron {
    opacity: 0.35;
}
.list-item-occupied-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #E05A50;
    color: #fff;
    border: 1.5px solid #C8392F;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.list-item-btn .item-text {
    flex: 1;
    min-width: 0;
}

.list-item-btn .item-chevron {
    color: var(--text-muted-on-surface);
    font-size: 14px;
    flex-shrink: 0;
}

.list-item-leading {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.list-item-leading img,
.confirm-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.list-item-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.list-item-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


.qty-badge {
    display: inline-flex;
    align-items: center;
    background: #E6F4EC;
    color: #1F8A4C;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-item-sublabel {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted-on-surface);
}

/* Loading / error / empty states */
.state-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 24px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.state-message i {
    font-size: 36px;
    opacity: 0.6;
}

.spinner {
    width: 56px;
    height: 56px;
    position: relative;
    animation: spin 1.2s linear infinite;
    flex-shrink: 0;
}

.spinner span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--primary);
    transform-origin: 5px 28px;
}

.spinner span:nth-child(1) { opacity: 0.30; transform: rotate(0deg);   }
.spinner span:nth-child(2) { opacity: 0.55; transform: rotate(120deg); }
.spinner span:nth-child(3) { opacity: 0.80; transform: rotate(240deg); }

.spinner-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted-on-surface);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: var(--btn-ink);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Página confirmação */
.confirm-section {
    padding: 20px 18px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.confirm-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
}

.confirm-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.confirm-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.confirm-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted-on-surface);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.confirm-card-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-on-surface);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.confirm-card-sublabel {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted-on-surface);
    margin-top: 1px;
}

.confirm-submit-btn {
    width: 100%;
    height: 68px;
    background-color: var(--primary);
    color: var(--btn-ink);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    gap: 10px;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: 8px;
    box-shadow: var(--btn-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.confirm-submit-btn:active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transform: scale(0.985) translateY(1px);
}

.cancel-delivery-btn {
    width: 100%;
    height: 68px;
    background-color: var(--primary);
    color: var(--btn-ink);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    gap: 10px;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--btn-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cancel-delivery-btn:active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transform: scale(0.985) translateY(1px);
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}

.loading-overlay--visible {
    display: flex;
}

/* Resultado da entrega (success / error) */
.delivery-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 22px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.delivery-result-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    animation: popIn 0.55s cubic-bezier(.34, 1.56, .64, 1) both;
}

.delivery-result-icon--success {
    width: 120px;
    height: 120px;
    background: var(--success);
    box-shadow: 0 12px 36px rgba(31, 138, 76, 0.35);
}

.delivery-result-icon--error {
    width: 96px;
    height: 96px;
    background: var(--danger);
    box-shadow: 0 12px 30px rgba(200, 57, 47, 0.35);
}

.delivery-result-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulse 1.6s ease-out infinite;
}

.delivery-result-pulse--error {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    animation: pulse 1.6s ease-out infinite;
}

.delivery-result-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.delivery-result-message {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted-on-surface);
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 8px;
}

.delivery-result-message--error {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
    max-width: 300px;
    line-height: 1.35;
    margin-bottom: 28px;
}

@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes pulse {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0;   }
}

@keyframes slideOutLeft {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(-32px); opacity: 0; }
}

@keyframes slideInFromRight {
    from { transform: translateX(32px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.slide-in {
    animation: slideInFromRight 140ms ease both;
}

/* Grupo de botões empilhados */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    margin-top: 8px;
}

.btn-group .confirm-submit-btn,
.btn-group .cancel-delivery-btn {
    margin-top: 0;
}

.btn-secondary {
    width: 100%;
    height: 68px;
    background-color: var(--surface);
    color: var(--text-on-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    gap: 10px;
    transition: transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active {
    transform: scale(0.985) translateY(1px);
}

/* Comprovante */
.page-header--centered {
    justify-content: center;
}

.comprovante-section {
    padding: 20px 18px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.comprovante-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px 18px;
    box-shadow: var(--card-shadow);
}

.comprovante-seal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E6F4EC;
    color: #1F8A4C;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.comprovante-row {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.comprovante-seal + .comprovante-row {
    border-top: none;
    padding-top: 0;
}

.comprovante-row-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted-on-surface);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.comprovante-row-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-on-surface);
    line-height: 1.4;
    word-break: break-word;
}

.comprovante-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download {
    width: 100%;
    height: 68px;
    background-color: var(--primary);
    color: var(--btn-ink);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--btn-shadow);
}

.btn-download:active {
    box-shadow: none;
    transform: scale(0.985) translateY(1px);
}