/* ==== TIPOGRAFIA PREMIUM E VARIAVEIS ==== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta leve inspirada no maCOS/Apple */
    --bg-color-main: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    
    --text-primary: #1d1d1f;
    --text-muted: #86868b;
    
    --apple-blue: #0066cc;
    --apple-blue-hover: #0071e3;
    --apple-blue-glow: rgba(0, 102, 204, 0.3);
    
    --navbar-bg: rgba(255, 255, 255, 0.72);
    --overlay-bg: rgba(255, 255, 255, 0.5);
}

body {
    background-color: var(--bg-color-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

/* ==== BRAND HEADER ==== */
.page-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.brand-header {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    min-width: 0;
    flex: 1;
}

.user-session-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(100%, 320px);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(30, 58, 95, 0.12);
    box-shadow: 0 2px 8px rgba(15, 39, 68, 0.06);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.user-session-badge i {
    font-size: 1.1rem;
    color: var(--apple-blue);
}

.user-session-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-session-badge-gmail {
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.28);
}

.user-session-badge-gmail .bi {
    color: #248a3d;
}

.user-session-badge-gmail-pending {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.35);
    color: #a16207;
}

.user-session-badge-gmail-pending .bi {
    color: #a16207;
}

.user-session-badge-sm {
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 500;
    box-shadow: none;
}

.user-session-badge-sm i {
    font-size: 0.82rem;
}

.user-session-badge-danger {
    cursor: pointer;
    font: inherit;
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.18);
    color: #c2410c;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-session-badge-danger .bi {
    color: #dc2626;
}

.user-session-badge-danger:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

.user-session-nav {
    flex-shrink: 0;
    align-self: flex-start;
}

.user-session-nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(30, 58, 95, 0.1);
    box-shadow: 0 2px 10px rgba(15, 39, 68, 0.06);
}

.user-session-nav__item {
    display: flex;
    align-items: center;
}

.user-session-nav__sep {
    width: 1px;
    height: 1.35rem;
    background: rgba(30, 58, 95, 0.14);
    flex-shrink: 0;
}

.user-session-nav__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-session-nav__action:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--apple-blue);
}

.user-session-nav__action--danger {
    color: #c2410c;
}

.user-session-nav__action--danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.user-session-nav__action i {
    font-size: 0.95rem;
}

.user-session-nav .user-session-badge {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.35rem 0.45rem;
    max-width: min(100%, 240px);
}

@media (max-width: 768px) {
    .page-header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .user-session-nav {
        align-self: stretch;
    }

    .user-session-nav__list {
        justify-content: flex-start;
    }

    .user-session-badge {
        align-self: flex-end;
        max-width: 100%;
    }
}

.brand-icon {
    flex-shrink: 0;
    align-self: stretch;
    width: auto;
    aspect-ratio: 1;
    min-width: 84px;
    max-width: 112px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f, #0f2744);
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.25);
    container-type: size;
}

.brand-icon i {
    font-size: clamp(1.9rem, 40cqmin, 2.75rem);
    line-height: 1;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-os {
    color: var(--apple-blue);
}

.brand-control {
    color: #1e3a5f;
}

.brand-tagline {
    margin: 0.45rem 0 0;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.4;
    max-width: 40rem;
    font-weight: 500;
}

.brand-sources {
    margin: 0.65rem 0 0;
    line-height: 1.45;
    max-width: 40rem;
}

.brand-sources-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.24);
    color: #004080;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.08);
}

@media (max-width: 576px) {
    .brand-icon {
        min-width: 64px;
        max-width: 88px;
        border-radius: 16px;
    }

    .brand-icon i {
        font-size: clamp(1.5rem, 34cqmin, 2.1rem);
    }

    .brand-title {
        font-size: 1.65rem;
    }

    .brand-tagline {
        font-size: 0.92rem;
    }

    .brand-sources-pill {
        font-size: 0.85rem;
    }
}

/* ==== LAYOUT BASE ==== */
.main-container {
    padding-top: 40px;
    padding-bottom: 50px;
}

/* Textos e Titulos */
.fw-bold {
    font-weight: 700 !important;
}

.text-gradient {
    background: linear-gradient(120deg, #1d1d1f, #434344);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sf-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.fs-7 { font-size: 0.95rem; }
.fs-8 { font-size: 0.85rem; }

/* ==== CARDS (Glassmorphism) ==== */
.sf-card {
    background: var(--card-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Metric Card Extras */
.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
}

.metric-info {
    flex: 1;
    min-width: 0;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bg-blue {
    background: linear-gradient(135deg, var(--apple-blue), #3b82f6);
    box-shadow: 0 4px 14px var(--apple-blue-glow);
}

.bg-green {
    background: linear-gradient(135deg, #059669, #34d399);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.metric-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin-top: 0.25rem;
}

.metric-summary-value.metric-summary-text {
    font-size: 1.15rem;
    line-height: 1.2;
}

.metric-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-summary-item--wide {
    grid-column: 1 / -1;
}

.metric-summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.metric-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

/* ==== BUTTONS & AUTH ==== */

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #3c4043;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.google-btn:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #3c4043;
}
.google-logo {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.sf-btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-btn-primary {
    background-color: var(--apple-blue);
    color: white;
    box-shadow: 0 4px 10px var(--apple-blue-glow);
}

.sf-btn-primary:hover {
    background-color: var(--apple-blue-hover);
    transform: scale(1.02);
}

.sf-btn-secondary {
    background-color: rgba(0,0,0,0.04);
    color: var(--text-primary);
}

.sf-btn-secondary:hover {
    background-color: rgba(0,0,0,0.08);
}

.sf-btn-excel {
    background-color: rgba(52, 199, 89, 0.16);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.sf-btn-excel:hover,
.sf-btn-excel:focus-visible {
    background-color: rgba(52, 199, 89, 0.26);
    color: #166534;
    border-color: rgba(22, 163, 74, 0.35);
}

/* CTA assinatura PIX (trial / plano expirado) */
.sf-btn-assinatura {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d9488 0%, #059669 55%, #047857 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-align: left;
}

.sf-btn-assinatura:hover,
.sf-btn-assinatura:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45);
    filter: brightness(1.03);
}

.sf-btn-assinatura__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sf-btn-assinatura__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
}

.sf-btn-assinatura__title {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    opacity: 0.95;
    margin-bottom: 0.2rem;
}

.sf-btn-assinatura__price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    line-height: 1;
}

.sf-btn-assinatura__price-prefix {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    opacity: 0.9;
}

.sf-btn-assinatura__price-value {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    line-height: 1;
}

.sf-btn-assinatura--urgent {
    animation: assinatura-cta-pulse 2.4s ease-in-out infinite;
    box-shadow: 0 8px 26px rgba(5, 150, 105, 0.5);
}

@keyframes assinatura-cta-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
    }
    50% {
        box-shadow: 0 10px 32px rgba(5, 150, 105, 0.55);
    }
}


/* ==== TABELA ESTILO DASHBOARD APPLE ==== */
.table-wrapper {
    padding: 0;
    overflow: hidden;
}

.table-wrapper .d-flex {
    padding: 24px 24px 16px;
}

.sf-table-responsive {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-table {
    margin-bottom: 0;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.sf-table thead {
    position: relative;
}

.sf-table thead th {
    background: linear-gradient(180deg, #eef2f7 0%, #e4eaf2 100%);
    border-bottom: 2px solid rgba(30, 58, 95, 0.18);
    border-right: 1px solid rgba(30, 58, 95, 0.08);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 20px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.sf-table thead th:last-child {
    border-right: none;
}

.sf-table tbody tr {
    background-color: #fff;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.sf-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.9);
}

.sf-table tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.07);
    box-shadow: inset 3px 0 0 var(--apple-blue);
}

.sf-table tbody tr:hover td {
    color: #0f172a;
}

.sf-table tbody td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    border-right: 1px solid rgba(15, 23, 42, 0.04);
    padding: 15px 20px;
    font-size: 0.9rem;
    vertical-align: middle;
    text-align: center;
    transition: color 0.18s ease;
}

.sf-table thead th.col-os-numero,
.sf-table tbody td.col-os-numero {
    min-width: 10.5rem;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: left;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.sf-table tbody td.col-os-numero {
    font-weight: 600;
}

.os-numero-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    max-width: 100%;
}

.os-numero-text {
    line-height: 1.25;
    word-break: break-word;
}

.instituicao-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.instituicao-badge--caixa {
    background: rgba(0, 91, 170, 0.12);
    color: #005baa;
    border: 1px solid rgba(0, 91, 170, 0.22);
}

.instituicao-badge--bb {
    background: rgba(255, 199, 44, 0.22);
    color: #8a6d00;
    border: 1px solid rgba(255, 199, 44, 0.45);
}

.instituicao-badge--saeb {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.24);
}

.sf-table .atendimento-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.sf-table .atendimento-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.sf-table .atendimento-toggle-wrap.is-busy .form-check-input {
    pointer-events: none;
    opacity: 0.5;
    cursor: wait;
}

.sf-table .atendimento-status-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #166534;
    line-height: 1;
}

.sf-table thead th.col-data-atendimento {
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.sf-table thead th.col-data-atendimento,
.sf-table tbody td.col-data-atendimento {
    width: 7.25rem;
    min-width: 7.25rem;
    max-width: 8.5rem;
    padding-left: 8px;
    padding-right: 8px;
}

.sf-table .atendimento-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 5.5rem;
}

.sf-table .atendimento-date-picker .atendimento-date-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: 1.15rem;
    color: #64748b;
    z-index: 2;
    line-height: 1;
}

.sf-table .atendimento-date-picker.has-value .atendimento-date-icon {
    display: none;
}

.sf-table .atendimento-date-picker .atendimento-date-input,
.sf-table .atendimento-date-picker input.flatpickr-input.atendimento-date-input {
    width: 100%;
    max-width: 5.5rem;
    min-width: 0;
    min-height: 32px;
    padding: 4px 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.sf-table .atendimento-date-picker.has-value .atendimento-date-input,
.sf-table .atendimento-date-picker.has-value input.flatpickr-input {
    padding-left: 6px;
    padding-right: 6px;
}

/* Calendário popup (Flatpickr) — maior ao clicar */
.flatpickr-calendar.atendimento-flatpickr {
    width: 19.5rem;
    font-size: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border-radius: 12px;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-months {
    padding: 0.35rem 0.25rem;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-current-month {
    font-size: 1.05rem;
    font-weight: 700;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-weekday {
    font-size: 0.8rem;
    font-weight: 600;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-day {
    width: 2.35rem;
    max-width: 2.35rem;
    height: 2.35rem;
    line-height: 2.35rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-prev-month,
.flatpickr-calendar.atendimento-flatpickr .flatpickr-next-month {
    padding: 0.5rem;
}

.flatpickr-calendar.atendimento-flatpickr .flatpickr-prev-month svg,
.flatpickr-calendar.atendimento-flatpickr .flatpickr-next-month svg {
    width: 16px;
    height: 16px;
}

.sf-table .atendimento-date-display {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #166534;
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.22) 0%, rgba(52, 199, 89, 0.12) 100%);
    border: 1px solid rgba(22, 101, 52, 0.35);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(22, 101, 52, 0.12);
    white-space: nowrap;
}

.sf-table .atendimento-toggle-wrap .form-check {
    margin: 0;
    min-height: auto;
    padding: 0;
}

.sf-table tbody td:last-child {
    border-right: none;
}

.sf-table tbody tr:last-child td {
    border-bottom: none;
}

.sf-table tbody tr#emptyTableState:hover {
    background-color: #fff;
    box-shadow: none;
}

.sf-table tbody tr#emptyTableState td {
    border-right: none;
}

/* Pesquisa rápida */
.quick-search-panel {
    padding: 0 24px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.quick-search-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.quick-search-heading {
    min-width: 0;
}

.quick-search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    margin-left: auto;
}

.quick-search-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0;
}

.quick-search-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.quick-search-row .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 39, 68, 0.06);
}

.quick-search-icon {
    background: #f8fafc;
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-right: none;
    color: var(--apple-blue);
}

.quick-search-input {
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
}

.quick-search-input:focus {
    border-color: rgba(30, 58, 95, 0.14);
    box-shadow: none;
}

.quick-search-row .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.quick-search-row .input-group:focus-within .quick-search-icon,
.quick-search-row .input-group:focus-within .quick-search-input,
.quick-search-row .input-group:focus-within .btn {
    border-color: var(--apple-blue);
}

.table-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.table-pagination-info {
    font-size: 0.85rem;
    color: #64748b;
}

.table-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.table-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 95, 0.14);
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.table-pagination .page-btn:hover:not(:disabled) {
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.35);
}

.table-pagination .page-btn.active {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: #fff;
}

.table-pagination .page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Status Pill */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(52, 199, 89, 0.15);
    color: #248a3d;
}

/* Selos de prazo */
.prazo-cell {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prazo-cell-date {
    line-height: 1.3;
}

.prazo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.prazo-badge i {
    font-size: 0.72rem;
}

.prazo-badge-expirado {
    color: #b42318;
    background: rgba(255, 59, 48, 0.12);
    border-color: rgba(255, 59, 48, 0.28);
}

.prazo-badge-24h {
    color: #c2410c;
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.32);
}

.prazo-badge-3dias {
    color: #a16207;
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.38);
}

.prazo-badge-ok {
    color: #248a3d;
    background: rgba(52, 199, 89, 0.14);
    border-color: rgba(52, 199, 89, 0.32);
}

/* Data de atendimento no modal */
.modal-row-data-atendimento {
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0.03) 100%);
    border-radius: 10px;
    margin-top: 0.25rem;
    border-bottom-color: transparent !important;
}

.modal-row-data-atendimento .col-md-4 {
    color: #248a3d !important;
}

.modal-data-atendimento-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: rgba(52, 199, 89, 0.16);
    border: 1px solid rgba(52, 199, 89, 0.38);
    border-radius: 999px;
    color: #1d6f34;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.modal-data-atendimento-badge .bi {
    font-size: 1.1rem;
}

/* Rodapé */
.app-footer-lock {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    margin-top: 0.5rem;
}

.app-footer-copy {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(71, 85, 105, 0.75);
    letter-spacing: -0.01em;
}

.app-footer-meta {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.76rem;
    color: rgba(100, 116, 139, 0.65);
    letter-spacing: 0.01em;
}

.app-footer-bottom {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.65rem;
}

.app-footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.footer-legal-link {
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(71, 85, 105, 0.8);
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: var(--apple-blue);
    text-decoration: underline;
}

.auth-legal-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-legal-link:hover,
.auth-legal-link:focus-visible {
    color: var(--apple-blue);
}

.auth-terms-check .form-check-input {
    margin-top: 0.2rem;
}

.auth-terms-check .form-check-label {
    line-height: 1.45;
}

#cadastroSubmit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.footer-legal-sep {
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.72rem;
    user-select: none;
}

.footer-lock-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(100, 116, 139, 0.35);
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-lock-link:hover {
    color: rgba(100, 116, 139, 0.7);
    background: rgba(15, 23, 42, 0.04);
}

.legal-doc h6 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #1e293b;
}

.legal-doc h6:first-of-type {
    margin-top: 0.5rem;
}

.legal-doc p,
.legal-doc li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}

.legal-doc ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.help-doc-intro {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0.25rem;
}

.help-doc-section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.help-doc-section:first-of-type {
    border-top: none;
    padding-top: 0.5rem;
}

.help-doc h6,
.help-doc-section h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: #1e293b;
}

.help-doc-section p,
.help-doc-section li {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0.65rem;
}

.help-doc-section ul {
    padding-left: 1.2rem;
    margin-bottom: 0.25rem;
}

.help-doc-section h6 .bi {
    color: var(--apple-blue);
}

.legal-table {
    font-size: 0.82rem;
}

.legal-table th {
    font-weight: 600;
    color: #334155;
}

.legal-modal .modal-body {
    padding-top: 0.25rem;
}

.excluir-conta-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.excluir-conta-list li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.excluir-conta-list li:last-child {
    margin-bottom: 0;
}

.auth-footer-lock {
    text-align: center;
    padding: 1rem;
}

.google-btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Admin */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f4f8 0%, #f8fafc 100%);
}

.admin-brand-icon {
    background: linear-gradient(135deg, #475569, #334155) !important;
}

.admin-users-table .form-control-sm {
    max-width: 140px;
    margin: 0 auto;
    font-size: 0.8rem;
}

.admin-users-table td.text-start {
    text-align: left !important;
}

.admin-pagamentos-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.admin-pagamentos-table th,
.admin-pagamentos-table td {
    white-space: nowrap;
    font-size: 0.8rem;
}

.admin-pagamentos-table .font-monospace {
    font-size: 0.72rem;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-success-subtle {
    background: rgba(52, 199, 89, 0.15) !important;
}

.bg-warning-subtle {
    background: rgba(234, 179, 8, 0.18) !important;
}

.bg-secondary-subtle {
    background: rgba(100, 116, 139, 0.12) !important;
}

/* Telas de autenticação (OTP / cadastro / admin) */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 45%, #f8fafc 100%);
}

.auth-page .app-footer-lock {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.auth-container {
    max-width: 440px;
}

.legal-page {
    justify-content: flex-start;
    padding-top: 0;
}

.legal-page-container {
    max-width: 860px;
}

.legal-page-nav {
    flex-shrink: 0;
}

.legal-page-card {
    padding: 2.25rem;
}

.legal-page .app-footer-lock {
    max-width: 860px;
}

.landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 102, 204, 0.12), transparent 34rem),
        linear-gradient(160deg, #f0f4f8 0%, #e8eef5 45%, #f8fafc 100%);
}

.landing-nav {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-brand,
.landing-nav-actions {
    display: inline-flex;
    align-items: center;
}

.landing-brand {
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.landing-brand-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--apple-blue), #38bdf8);
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.22);
}

.landing-nav-actions {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-nav-actions a:not(.btn) {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-nav-actions a:not(.btn):hover {
    color: var(--apple-blue);
}

.landing-hero,
.landing-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.landing-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.landing-kicker {
    color: var(--apple-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.landing-hero h1,
.landing-section h2 {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 0.98;
    max-width: 850px;
    margin-bottom: 1.25rem;
}

.landing-section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.landing-subtitle,
.landing-section p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-subtitle {
    max-width: 720px;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 1rem;
}

.landing-trust-note {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 680px;
}

.landing-trust-note code {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
}

.landing-hero-card,
.landing-feature,
.landing-split,
.landing-plan {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(30, 58, 95, 0.1);
    box-shadow: 0 24px 70px rgba(15, 39, 68, 0.1);
    backdrop-filter: blur(18px);
}

.landing-hero-card {
    border-radius: 28px;
    padding: 1.25rem;
}

.landing-card-header,
.landing-card-footer,
.landing-os-row {
    display: flex;
    align-items: center;
}

.landing-card-header {
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.landing-card-header strong {
    color: var(--apple-blue);
    font-size: 0.8rem;
}

.landing-os-row {
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.86);
    margin-bottom: 0.75rem;
}

.landing-os-row strong,
.landing-os-row small {
    display: block;
}

.landing-os-row strong {
    color: #1e293b;
    font-size: 0.94rem;
}

.landing-os-row small {
    color: #64748b;
    margin-top: 0.18rem;
}

.landing-os-status {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.landing-os-status-ok {
    background: #22c55e;
}

.landing-os-status-warn {
    background: #f59e0b;
}

.landing-card-footer {
    gap: 0.5rem;
    color: #475569;
    font-size: 0.88rem;
    padding: 0.45rem 0.2rem 0;
}

.landing-card-footer i {
    color: var(--apple-blue);
}

.landing-section {
    padding: 4rem 0;
}

.landing-section-heading {
    max-width: 680px;
    margin-bottom: 1.75rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-feature {
    border-radius: 24px;
    padding: 1.35rem;
}

.landing-feature i {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--apple-blue);
    background: rgba(0, 102, 204, 0.1);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.landing-feature h3 {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 750;
    margin-bottom: 0.5rem;
}

.landing-feature p {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.landing-split,
.landing-plan {
    border-radius: 28px;
    padding: 2rem;
}

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 2rem;
    align-items: center;
}

.landing-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.landing-checklist i {
    color: #16a34a;
    margin-top: 0.12rem;
}

.landing-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.landing-page .app-footer-lock {
    width: min(1120px, calc(100% - 2rem));
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav-actions {
        justify-content: flex-start;
    }

    .landing-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .landing-grid,
    .landing-split {
        grid-template-columns: 1fr;
    }

    .landing-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-section {
        padding: 2.75rem 0;
    }

    .landing-split,
    .landing-plan {
        padding: 1.35rem;
    }
}

.auth-card {
    padding: 2rem 1.75rem;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-digit {
    width: 2.75rem;
    height: 3.25rem;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px var(--apple-blue-glow);
}

@media (max-width: 400px) {
    .otp-input-group {
        gap: 0.35rem;
    }

    .otp-digit {
        width: 2.35rem;
        height: 2.85rem;
        font-size: 1.25rem;
    }
}

/* Telefones no modal */
.contact-with-phones {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.contact-name {
    font-weight: 600;
    color: var(--text-primary);
}

.phone-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.15rem 0.65rem 0.15rem 0;
    flex-wrap: wrap;
}

.phone-action-link {
    color: var(--apple-blue);
    font-weight: 600;
    text-decoration: none;
}

.phone-action-link:hover {
    color: var(--apple-blue-hover);
    text-decoration: underline;
}

.phone-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.14);
    color: #128c7e;
    font-size: 1.1rem;
    text-decoration: none;
}

.phone-whatsapp:hover {
    background: rgba(37, 211, 102, 0.28);
    color: #075e54;
    text-decoration: none;
}

/* ==== LOADING OVERLAY ==== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-overlay.active {
    opacity: 1;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    animation: sf-spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

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

/* ==== TOAST PREMIUM ==== */
.premium-toast {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ==== ANIMATIONS ==== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== REVISÃO / EVIDÊNCIAS ==== */
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;
}

.review-badge--warn {
    background: rgba(255, 149, 0, 0.18);
    color: #b35c00;
}

.review-count-badge {
    background: rgba(255, 149, 0, 0.85);
    color: #fff;
    font-size: 0.65rem;
    margin-left: 0.35rem;
}

.quick-search-revisar .form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ordem-evidence-panel {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.45);
    height: 100%;
    min-height: 280px;
}

.ordem-evidence-panel h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ordem-review-alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
}

.os-cell-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.assinatura-qr {
    max-width: 240px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.12);
}

.assinatura-modal-dialog {
    max-width: 420px;
}

.assinatura-modal-content {
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 48px rgba(15, 39, 68, 0.18);
    overflow: hidden;
}

.assinatura-modal-header {
    position: relative;
    padding: 1.5rem 1.5rem 0.5rem;
}

.assinatura-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

.assinatura-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(52, 199, 89, 0.14));
    color: var(--apple-blue);
    font-size: 1.65rem;
}

.assinatura-modal-body {
    padding: 0.5rem 1.5rem 1rem;
}

.assinatura-modal-footer {
    padding: 0 1.5rem 1.5rem;
}

.assinatura-valor-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 1.25rem;
    border-radius: 14px;
    background: rgba(0, 102, 204, 0.06);
    border: 1px solid rgba(0, 102, 204, 0.12);
}

.assinatura-valor-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.assinatura-valor-amount {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--apple-blue);
    line-height: 1.1;
}

.assinatura-qr-panel {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.assinatura-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.assinatura-loading-spinner {
    width: 36px;
    height: 36px;
}

.assinatura-pix-copia,
#assinaturaPixCopia {
    width: 100%;
    margin: 0;
    text-align: left;
    font-size: 0.72rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 160px;
    overflow: auto;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(245, 245, 247, 0.95);
    border: 1px dashed rgba(15, 39, 68, 0.12);
    color: #334155;
}

.assinatura-status-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(0, 102, 204, 0.07);
    border: 1px solid rgba(0, 102, 204, 0.14);
}

.assinatura-status-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--apple-blue);
    font-size: 1rem;
}

.assinatura-status-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #334155;
}

.assinatura-btn-copiar {
    font-weight: 600;
}

/* ==== STATUS ÚLTIMA BUSCA GMAIL ==== */
.gmail-sync-status {
    max-width: 22rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.06);
    border: 1px solid rgba(0, 102, 204, 0.14);
    text-align: center;
}

.gmail-sync-status__ultima {
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.gmail-sync-status__resumo {
    margin-top: 0.35rem !important;
}

.gmail-sync-status__cooldown {
    margin-top: 0.4rem !important;
    color: #b45309;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
