/* Caminho: /app/views/static/css/theme.css */
/* Design system RPark: tokens, sobreposicoes do Bootstrap, layout com sidebar e componentes compartilhados. */

:root {
    --rp-ink: #141A21;
    --rp-ink-2: #2A323C;
    --rp-ink-3: #3D4652;
    --rp-muted: #5B6470;
    --rp-bg: #F3F4F1;
    --rp-surface: #FFFFFF;
    --rp-surface-2: #F6F7F4;
    --rp-line: #E2E4DE;
    --rp-line-2: #DADDD6;
    --rp-line-soft: #EEF0EB;

    --rp-nav: #111A24;
    --rp-nav-2: #172230;
    --rp-nav-3: #223042;
    --rp-nav-line: #263445;
    --rp-nav-text: #C4CCD6;
    --rp-nav-muted: #8F9AA8;

    --rp-accent: #F2B705;
    --rp-accent-hover: #DCA604;
    --rp-plate-blue: #1E4FA8;

    --rp-ok: #1F4E79;
    --rp-ok-bg: #E4EDF6;
    --rp-free: #2E7D4F;
    --rp-free-ink: #245C3B;
    --rp-free-bg: #DDF0E3;
    --rp-free-line: #6FA884;
    --rp-late: #C2410C;
    --rp-late-ink: #9A3412;
    --rp-late-bg: #FBE3D6;
    --rp-today: #D79E00;
    --rp-today-ink: #7A4A00;
    --rp-today-bg: #FEF0C3;
    --rp-soon: #2F5BD3;
    --rp-soon-ink: #1E40AF;
    --rp-soon-bg: #E0E9FB;
    --rp-maint: #6B7280;
    --rp-maint-ink: #374151;
    --rp-maint-bg: #E5E7EB;
    --rp-whats: #166534;

    --rp-font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --rp-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --rp-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
    --rp-radius: 16px;
    --rp-radius-sm: 11px;

    --bs-body-font-family: var(--rp-font);
    --bs-body-font-size: .92rem;
    --bs-body-bg: var(--rp-bg);
    --bs-body-color: var(--rp-ink);
    --bs-emphasis-color: var(--rp-ink);
    --bs-secondary-color: var(--rp-muted);
    --bs-tertiary-bg: var(--rp-surface-2);
    --bs-border-color: var(--rp-line);
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-xl: 1.2rem;
    --bs-link-color: var(--rp-ok);
    --bs-link-color-rgb: 31, 78, 121;
    --bs-link-hover-color: #123252;
    --bs-link-hover-color-rgb: 18, 50, 82;
}

body {
    min-height: 100vh;
    background: var(--rp-bg);
    color: var(--rp-ink);
    font-family: var(--rp-font);
}

h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .rp-display {
    font-family: var(--rp-display);
    letter-spacing: -.015em;
}

h1, .h3 { font-weight: 700; }
.text-secondary { color: var(--rp-muted) !important; }

/* ---------- Layout: sidebar + conteudo ---------- */

.rp-app {
    display: flex;
    min-height: 100vh;
}

.rp-sidebar {
    --bs-offcanvas-width: 280px;
    --bs-offcanvas-bg: var(--rp-nav);
    --bs-offcanvas-color: var(--rp-nav-text);
    color: var(--rp-nav-text);
}

.rp-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.rp-sidebar__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    padding: 18px 14px;
    background: var(--rp-nav);
}

.rp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}

.rp-brand img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    /* O PNG tem fundo preto; "lighten" o funde ao fundo escuro da sidebar. */
    mix-blend-mode: lighten;
}

.rp-unit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid var(--rp-nav-line);
    border-radius: 12px;
    background: var(--rp-nav-2);
    color: #fff;
    text-decoration: none;
}

.rp-unit:hover { color: #fff; border-color: #34465c; }
.rp-unit__label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--rp-nav-muted); }
.rp-unit__name { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; }

.rp-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rp-nav__group {
    padding: 14px 12px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rp-nav-muted);
}

.rp-nav__group:first-child { padding-top: 4px; }

.rp-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--rp-nav-text);
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.rp-nav__link .bi { font-size: 1.05rem; width: 20px; text-align: center; }
.rp-nav__link:hover { background: var(--rp-nav-2); color: #fff; }
.rp-nav__link.active { background: var(--rp-nav-3); color: #fff; }
.rp-nav__link:focus-visible { outline: 2px solid var(--rp-accent); outline-offset: 2px; }

.rp-nav__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--rp-nav-muted);
}

.rp-nav__count--alert {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--rp-late);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-sidebar__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--rp-nav-2);
    font-size: 12.5px;
    line-height: 1.35;
}

.rp-sidebar__foot .bi { font-size: 1.2rem; color: var(--rp-accent); }
.rp-sidebar__foot strong { display: block; color: #fff; font-weight: 600; font-size: 13.5px; }

.rp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rp-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--rp-nav);
}

.rp-topbar img { height: 40px; width: auto; mix-blend-mode: lighten; }

.rp-topbar__menu {
    width: 44px;
    height: 44px;
    border: 1px solid var(--rp-nav-line);
    border-radius: 11px;
    background: var(--rp-nav-2);
    color: #fff;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-content {
    flex: 1;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 26px 32px 32px;
}

.rp-footer {
    padding: 0 32px 24px;
    text-align: center;
    color: var(--rp-muted);
    font-size: 12.5px;
}

@media (min-width: 992px) {
    .rp-sidebar {
        position: sticky;
        top: 0;
        flex: 0 0 248px;
        width: 248px;
        height: 100vh;
        overflow-y: auto;
        background: var(--rp-nav) !important;
    }
}

@media (max-width: 575.98px) {
    .rp-content { padding: 18px 16px 24px; }
    .rp-footer { padding: 0 16px 20px; }
}

/* ---------- Cabecalho de pagina ---------- */

.rp-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.rp-page-head h1 {
    margin: 0 0 4px;
    font-size: 30px;
    letter-spacing: -.02em;
}

.rp-page-head > :first-child { flex: 1 1 320px; min-width: 0; }
.rp-page-head p { margin: 0; color: var(--rp-muted); }
.rp-page-head__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }

/* ---------- Bootstrap: botoes ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--rp-radius-sm);
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(17, 26, 36, .18);
}

.btn-sm {
    --bs-btn-border-radius: 9px;
    --bs-btn-padding-x: .7rem;
    --bs-btn-padding-y: .32rem;
}

.btn-primary,
.btn-dark {
    --bs-btn-bg: var(--rp-nav);
    --bs-btn-border-color: var(--rp-nav);
    --bs-btn-hover-bg: #223042;
    --bs-btn-hover-border-color: #223042;
    --bs-btn-active-bg: #0b1118;
    --bs-btn-active-border-color: #0b1118;
    --bs-btn-disabled-bg: #5f6b78;
    --bs-btn-disabled-border-color: #5f6b78;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-accent {
    --bs-btn-bg: var(--rp-accent);
    --bs-btn-border-color: var(--rp-accent);
    --bs-btn-color: var(--rp-nav);
    --bs-btn-hover-bg: var(--rp-accent-hover);
    --bs-btn-hover-border-color: var(--rp-accent-hover);
    --bs-btn-hover-color: var(--rp-nav);
    --bs-btn-active-bg: #c99703;
    --bs-btn-active-border-color: #c99703;
    --bs-btn-active-color: var(--rp-nav);
    --bs-btn-disabled-bg: #f3d77c;
    --bs-btn-disabled-border-color: #f3d77c;
    --bs-btn-disabled-color: var(--rp-ink-3);
}

.btn-success {
    --bs-btn-bg: var(--rp-whats);
    --bs-btn-border-color: var(--rp-whats);
    --bs-btn-hover-bg: #14532d;
    --bs-btn-hover-border-color: #14532d;
    --bs-btn-active-bg: #0f3f22;
    --bs-btn-active-border-color: #0f3f22;
}

.btn-outline-dark,
.btn-outline-secondary,
.btn-light {
    --bs-btn-color: var(--rp-ink-2);
    --bs-btn-bg: var(--rp-surface);
    --bs-btn-border-color: var(--rp-line-2);
    --bs-btn-hover-color: var(--rp-ink);
    --bs-btn-hover-bg: var(--rp-surface-2);
    --bs-btn-hover-border-color: #c4c8bf;
    --bs-btn-active-color: var(--rp-ink);
    --bs-btn-active-bg: #eceee9;
    --bs-btn-active-border-color: #c4c8bf;
}

.btn-outline-success,
.btn-whats {
    --bs-btn-color: var(--rp-whats);
    --bs-btn-bg: var(--rp-surface);
    --bs-btn-border-color: #1B7A43;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--rp-whats);
    --bs-btn-hover-border-color: var(--rp-whats);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #14532d;
    --bs-btn-active-border-color: #14532d;
}

.btn-outline-danger {
    --bs-btn-color: var(--rp-late-ink);
    --bs-btn-border-color: #e3a07f;
    --bs-btn-hover-bg: var(--rp-late);
    --bs-btn-hover-border-color: var(--rp-late);
}

.btn-outline-primary {
    --bs-btn-color: var(--rp-ok);
    --bs-btn-border-color: #a9bfd6;
    --bs-btn-hover-bg: var(--rp-ok);
    --bs-btn-hover-border-color: var(--rp-ok);
    --bs-btn-hover-color: #fff;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Bootstrap: cards, tabelas, formularios, modais ---------- */

.card {
    --bs-card-border-color: var(--rp-line);
    --bs-card-border-radius: var(--rp-radius);
    --bs-card-inner-border-radius: calc(var(--rp-radius) - 1px);
    --bs-card-cap-bg: var(--rp-surface);
    box-shadow: none !important;
}

.rp-content .card.border-0 { border: 1px solid var(--rp-line) !important; }
.card-header { border-bottom-color: var(--rp-line-soft); }
.card-header .h5, .card-header h2 { font-family: var(--rp-display); font-weight: 700; }

.table {
    --bs-table-border-color: var(--rp-line-soft);
    --bs-table-hover-bg: rgba(17, 26, 36, .025);
}

.table > :not(caption) > * > * { padding: .85rem .75rem; }

.table-light,
.table thead.table-light {
    --bs-table-bg: var(--rp-surface-2);
    --bs-table-color: var(--rp-ink-3);
    --bs-table-border-color: var(--rp-line);
}

.table thead th {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--rp-ink-3);
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: var(--rp-line-2);
    border-radius: 10px;
    background-color: var(--rp-surface);
}

.form-control:focus,
.form-select:focus {
    border-color: #2C3B4E;
    box-shadow: 0 0 0 .2rem rgba(17, 26, 36, .12);
}

.form-label { font-weight: 500; color: var(--rp-ink-2); }

.modal {
    --bs-modal-border-radius: 18px;
    --bs-modal-border-width: 0;
    --bs-modal-header-border-color: var(--rp-line-soft);
    --bs-modal-footer-border-color: var(--rp-line-soft);
}

.modal-title { font-family: var(--rp-display); font-weight: 700; }

.offcanvas { --bs-offcanvas-border-color: var(--rp-line); }

.alert {
    --bs-alert-border-radius: 12px;
    border-width: 1px;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--rp-nav);
    --bs-nav-pills-border-radius: 8px;
    --bs-nav-link-color: var(--rp-ink-3);
    --bs-nav-link-hover-color: var(--rp-ink);
}

.badge { font-weight: 600; }

/* Pilulas de situacao financeira, reaproveitadas em varias telas. */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill-danger { color: var(--rp-late-ink); background: var(--rp-late-bg); }
.status-pill-warning { color: var(--rp-today-ink); background: var(--rp-today-bg); }
.status-pill-primary { color: var(--rp-soon-ink); background: var(--rp-soon-bg); }
.status-pill-success { color: var(--rp-free-ink); background: var(--rp-free-bg); }
.status-pill-info { color: var(--rp-ok); background: var(--rp-ok-bg); }
.status-pill-secondary { color: var(--rp-maint-ink); background: var(--rp-maint-bg); }

/* ---------- Componentes RPark ---------- */

.rp-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    padding: 20px;
}

.rp-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rp-card__title {
    margin: 0;
    font-family: var(--rp-display);
    font-size: 20px;
    font-weight: 700;
}

.rp-card__sub { color: var(--rp-muted); font-size: 13px; }

.rp-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.rp-kpi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--rp-surface);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
}

.rp-kpi__label { color: var(--rp-muted); font-weight: 500; }
.rp-kpi__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rp-kpi__value { font-family: var(--rp-display); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; }
.rp-kpi__value--late { color: #B23C0A; }
.rp-kpi__meta { color: var(--rp-muted); }
.rp-kpi__foot { color: var(--rp-muted); font-size: 13px; }
.rp-kpi a { font-weight: 600; font-size: 13px; }

.rp-progress {
    display: flex;
    height: 8px;
    border-radius: 99px;
    background: #ECEEE9;
    overflow: hidden;
}

.rp-progress__bar { background: var(--rp-nav); }
.rp-progress__bar--accent { background: var(--rp-accent); }

.rp-split {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.rp-split__wide { flex: 2 1 560px; min-width: 0; }
.rp-split__narrow { flex: 1 1 320px; min-width: 0; }

/* Placa no padrao Mercosul */
.rp-plate {
    display: inline-flex;
    flex-direction: column;
    border: 1.5px solid #1F2937;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    vertical-align: middle;
}

.rp-plate::before {
    content: "";
    height: 4px;
    background: var(--rp-plate-blue);
}

.rp-plate__text {
    padding: 1px 7px;
    font-family: var(--rp-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--rp-ink);
}

.rp-plate--sm::before { height: 3px; }
.rp-plate--sm .rp-plate__text { font-size: 12px; padding: 1px 6px; letter-spacing: .06em; }
.rp-plate--lg::before { height: 5px; }
.rp-plate--lg .rp-plate__text { font-size: 15px; padding: 2px 9px; }

.rp-code { font-family: var(--rp-mono); font-weight: 500; color: var(--rp-ink-2); }

/* Abas segmentadas */
.rp-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: #ECEEE9;
}

.rp-segment__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rp-ink-3);
    font-weight: 500;
}

.rp-segment__btn:hover { color: var(--rp-ink); }
.rp-segment__btn.active,
.rp-segment__btn[aria-pressed="true"] { background: var(--rp-surface); color: var(--rp-ink); box-shadow: 0 1px 2px rgba(17, 26, 36, .12); }
.rp-segment--dark .rp-segment__btn.active,
.rp-segment--dark .rp-segment__btn[aria-pressed="true"] { background: var(--rp-nav); color: #fff; box-shadow: none; }
.rp-segment__count { font-size: 12px; opacity: .78; }

/* Lista de cobrancas */
.rp-charge-list { display: flex; flex-direction: column; }

.rp-charge {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(130px, 1fr) minmax(150px, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 4px;
    border-top: 1px solid var(--rp-line-soft);
}

.rp-charge__who,
.rp-charge__vehicle,
.rp-charge__money { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-charge__vehicle,
.rp-charge__money { align-items: flex-start; }
.rp-charge__name { font-weight: 600; }
.rp-charge__phone,
.rp-charge__spot { font-size: 13px; color: var(--rp-muted); }
.rp-charge__value { font-weight: 600; }
.rp-charge__actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 767.98px) {
    .rp-charge { grid-template-columns: minmax(0, 1fr) auto; }
    .rp-charge__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.rp-empty { padding: 18px 4px; color: var(--rp-muted); border-top: 1px solid var(--rp-line-soft); }

/* Barras de ocupacao por galpao */
.rp-occ { display: flex; flex-direction: column; gap: 16px; }
.rp-occ__row { display: flex; flex-direction: column; gap: 8px; }
.rp-occ__top { display: flex; justify-content: space-between; gap: 8px; }
.rp-occ__bar { display: flex; gap: 3px; height: 14px; }
.rp-occ__bar span { border-radius: 4px; }
.rp-occ__busy { background: var(--rp-nav); }
.rp-occ__maint { background: repeating-linear-gradient(135deg, #C9CDC5 0 4px, #E4E6E1 4px 8px); }
.rp-occ__free { background: #CBE7D5; flex: 1; }

.rp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--rp-muted); }
.rp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Grafico de recebimentos */
.rp-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 220px;
    padding: 0 4px;
    border-bottom: 1px solid var(--rp-line-2);
}

.rp-chart__col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.rp-chart__value { font-size: 12px; font-weight: 600; color: var(--rp-ink-2); white-space: nowrap; }
.rp-chart__bar { width: 100%; max-width: 64px; border-radius: 8px 8px 0 0; background: #2C3B4E; }

.rp-chart__goal {
    width: 100%;
    max-width: 64px;
    display: flex;
    align-items: flex-end;
    border: 1.5px dashed #9AA19A;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.rp-chart__goal .rp-chart__bar { max-width: none; border-radius: 6px 6px 0 0; background: var(--rp-accent); }
.rp-chart__labels { display: flex; gap: 14px; padding: 8px 4px 0; }
.rp-chart__labels span { flex: 1; text-align: center; color: var(--rp-muted); font-size: 13px; }

/* Fila de espera */
.rp-queue { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.rp-queue__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--rp-surface-2);
}

.rp-queue__pos {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 99px;
    background: var(--rp-nav);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.rp-queue__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rp-queue__who strong { font-weight: 600; }
.rp-queue__who span, .rp-queue__time { font-size: 13px; color: var(--rp-muted); }

/* ---------- Mapa de vagas ---------- */

.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.rp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--rp-line-2);
    border-radius: 99px;
    background: var(--rp-surface);
    color: var(--rp-ink-2);
    font-weight: 500;
}

.rp-chip:hover { border-color: #c4c8bf; }
.rp-chip[aria-pressed="true"] { background: var(--rp-nav); border-color: var(--rp-nav); color: #fff; }
.rp-chip__dot { width: 10px; height: 10px; border-radius: 99px; }
.rp-chip__count { font-size: 12px; opacity: .75; }

.rp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 320px;
    max-width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rp-line-2);
    border-radius: 11px;
    background: var(--rp-surface);
    color: var(--rp-muted);
}

.rp-search:focus-within { border-color: #2C3B4E; box-shadow: 0 0 0 .2rem rgba(17, 26, 36, .12); }
.rp-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--rp-ink); }

.rp-map {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.rp-map__zones { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.rp-zone__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.rp-slot {
    --slot-bg: var(--rp-surface);
    --slot-line: #D5D9D2;
    --slot-dot: var(--rp-ok);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-height: 102px;
    padding: 10px 11px;
    border: 1.5px solid var(--slot-line);
    border-radius: 12px;
    background: var(--slot-bg);
    color: var(--rp-ink);
    text-align: left;
    transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}

.rp-slot:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17, 26, 36, .08); }
.rp-slot:focus-visible,
.rp-slot[aria-pressed="true"] { outline: 3px solid var(--rp-nav); outline-offset: 2px; }
.rp-slot.is-dim { opacity: .28; }

.rp-slot__top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.rp-slot__code { font-family: var(--rp-display); font-weight: 700; font-size: 15px; }
.rp-slot__dot { width: 9px; height: 9px; border-radius: 99px; background: var(--slot-dot); }
.rp-slot__name { max-width: 100%; overflow: hidden; font-size: 12px; color: var(--rp-ink-3); white-space: nowrap; text-overflow: ellipsis; }
.rp-slot__state { margin-top: auto; font-size: 13px; font-weight: 600; }

.rp-slot--em_dia,
.rp-slot--a_vencer { --slot-bg: #fff; --slot-line: #D5D9D2; --slot-dot: var(--rp-ok); }
.rp-slot--vence_hoje { --slot-bg: #FFF8E1; --slot-line: var(--rp-today); --slot-dot: var(--rp-today); }
.rp-slot--vence_amanha { --slot-bg: #EEF3FD; --slot-line: #7E9DE3; --slot-dot: var(--rp-soon); }
.rp-slot--vencido { --slot-bg: #FDEEE6; --slot-line: #D9622B; --slot-dot: var(--rp-late); }
.rp-slot--livre { --slot-bg: #F3FAF5; --slot-line: var(--rp-free-line); --slot-dot: var(--rp-free); border-style: dashed; color: var(--rp-free-ink); }
.rp-slot--manutencao {
    --slot-line: #C8CCC4;
    --slot-dot: var(--rp-maint);
    background: repeating-linear-gradient(135deg, #EEEFEC 0 8px, #E4E6E1 8px 16px);
    color: var(--rp-ink-3);
}

/* Painel de detalhe: lateral fixa em telas grandes, gaveta em telas menores. */
.rp-detail {
    --bs-offcanvas-width: min(380px, 100vw);
}

.rp-detail__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rp-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rp-detail__title { font-family: var(--rp-display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.rp-detail__person { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--rp-surface-2); }

.rp-avatar {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 99px;
    background: var(--rp-nav);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.rp-facts dt { font-size: 12px; font-weight: 500; color: var(--rp-muted); margin-bottom: 4px; }
.rp-facts dd { margin: 0; }
.rp-facts__big { font-family: var(--rp-display); font-weight: 700; font-size: 22px; }

.rp-history { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.rp-history__item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--rp-muted); }
.rp-history__box { width: 100%; height: 26px; border-radius: 6px; background: var(--rp-surface-2); border: 1.5px dashed #9AA19A; }
.rp-history__box--pago { background: #2C3B4E; border-color: #2C3B4E; }
.rp-history__box--atrasado { background: var(--rp-late); border-color: var(--rp-late); }

.rp-detail__placeholder { color: var(--rp-muted); line-height: 1.5; }

@media (min-width: 1200px) {
    .rp-detail.offcanvas-xl {
        position: sticky;
        top: 24px;
        flex: 1 1 340px;
        max-width: 380px;
        background: var(--rp-surface) !important;
        border: 1px solid var(--rp-line);
        border-radius: var(--rp-radius);
    }

    .rp-detail.offcanvas-xl .offcanvas-body { display: block; padding: 20px; }
}

/* ---------- Listas em grade com ficha lateral (Mensalistas, Financeiro) ---------- */

.min-w-0 { min-width: 0; }

.rp-table {
    background: var(--rp-surface);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    overflow-x: auto;
}

.rp-table__inner { min-width: 640px; }

.rp-table__head,
.rp-table__row {
    display: grid;
    grid-template-columns: var(--rp-cols);
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
}

.rp-table__head {
    background: var(--rp-surface-2);
    border-bottom: 1px solid var(--rp-line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rp-ink-3);
}

.rp-table__row {
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    border: 0;
    border-bottom: 1px solid var(--rp-line-soft);
    background: var(--rp-surface);
    color: var(--rp-ink);
    text-align: left;
    transition: background-color .12s ease;
}

.rp-table__row:hover { background: #FAFBF8; }
.rp-table__row:focus-visible { outline: 3px solid var(--rp-nav); outline-offset: -3px; }
.rp-table__row[aria-pressed="true"] { background: #F2F4EF; box-shadow: inset 3px 0 0 var(--rp-nav); }
.rp-table__row:last-of-type { border-bottom: 0; }

.rp-avatar--sm { flex: 0 0 38px; height: 38px; font-size: 13px; }
.rp-avatar--lg { flex: 0 0 52px; height: 52px; font-size: 17px; }

.rp-vcard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
}

.rp-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1.5px dashed #9AA19A;
    border-radius: 11px;
    background: var(--rp-surface-2);
    color: var(--rp-ink-2);
    font-weight: 600;
    text-decoration: none;
}

.rp-add-card:hover { color: var(--rp-ink); border-color: var(--rp-ink-3); }

.rp-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.rp-mini-list__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--rp-line-soft);
}

/* Seletor de forma de pagamento em pilulas (radio) */
.rp-pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-pay-options input { position: absolute; opacity: 0; pointer-events: none; }

.rp-pay-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid var(--rp-line-2);
    border-radius: 10px;
    background: var(--rp-surface);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.rp-pay-options input:checked + label { background: var(--rp-nav); border-color: var(--rp-nav); color: #fff; }
.rp-pay-options input:focus-visible + label { outline: 3px solid var(--rp-accent); outline-offset: 2px; }

.rp-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #F0D27A;
    border-radius: 14px;
    background: #FFF8E1;
}

.rp-month {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--rp-line-2);
    border-radius: 11px;
    background: var(--rp-surface);
}

.rp-month a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--rp-ink);
    text-decoration: none;
}

.rp-month a:hover { background: var(--rp-surface-2); }
.rp-month input { width: 150px; min-height: 36px; border: 0; background: transparent; font-weight: 600; text-align: center; }

/* ---------- Lista de espera em quadro ---------- */

.rp-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.rp-board__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--rp-radius);
    background: #E9EBE6;
}

.rp-board__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.rp-board__title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.rp-board__title i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }

.rp-ticket {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    background: var(--rp-surface);
}

.rp-ticket__top { display: flex; align-items: flex-start; gap: 10px; }
.rp-ticket__time { font-size: 12.5px; color: var(--rp-muted); white-space: nowrap; }

/* ---------- Novo mensalista em etapas ---------- */

.rp-steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.rp-step {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--rp-line-2);
    border-radius: 12px;
    background: var(--rp-surface);
    color: var(--rp-ink-2);
    font-weight: 600;
    text-align: left;
}

.rp-step__num {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ECEEE9;
    color: var(--rp-ink-3);
    font-size: 13px;
}

.rp-step[aria-current="step"] { background: var(--rp-nav); border-color: var(--rp-nav); color: #fff; }
.rp-step[aria-current="step"] .rp-step__num { background: var(--rp-accent); color: var(--rp-nav); }
.rp-step.is-done .rp-step__num { background: var(--rp-free-bg); color: var(--rp-free-ink); }

.rp-found {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--rp-ok-bg);
    color: #123252;
}

.rp-spot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.rp-spot-picker input { position: absolute; opacity: 0; pointer-events: none; }

.rp-spot-picker label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 62px;
    padding: 8px 10px;
    border: 1.5px dashed var(--rp-free-line);
    border-radius: 10px;
    background: #F3FAF5;
    color: var(--rp-free-ink);
    cursor: pointer;
}

.rp-spot-picker label small { font-size: 12px; opacity: .85; }
.rp-spot-picker label strong { font-family: var(--rp-display); font-size: 15px; }
.rp-spot-picker input:checked + label { background: var(--rp-nav); border: 1.5px solid var(--rp-nav); color: #fff; }
.rp-spot-picker input:focus-visible + label { outline: 3px solid var(--rp-accent); outline-offset: 2px; }

.rp-summary { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.rp-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-summary dt { font-weight: 400; color: var(--rp-muted); }
.rp-summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Tela de login (versao Web): patio 3D animado ---------- */

.rp-login {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #070B12;
    color: #F4F6F8;
}

.rp-login__brilho {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 45% 55%, rgba(242, 183, 5, .09), transparent 70%);
    pointer-events: none;
}

.rp-login__cena {
    position: fixed;
    inset: 0;
    /* Camadas fixas: a maquete 3D fica sempre atras do conteudo, mesmo inclinada em direcao a tela. */
    z-index: 0;
    overflow: hidden;
    perspective: 2000px;
    pointer-events: none;
}

.rp-login__patio {
    --rx: 55deg;
    --rz: -38deg;
    position: absolute;
    left: 50%;
    top: 52%;
    width: 1344px;
    height: 1248px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(var(--rx)) rotateZ(var(--rz)) scale(1.08);
    transition: transform .3s ease-out;
}

.rp-login__bloco { display: flex; flex-direction: column; margin-bottom: 24px; }
.rp-login__fileira { display: flex; }

.rp-login__vaga {
    position: relative;
    flex: 0 0 96px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px solid rgba(255, 255, 255, .12);
}

.rp-login__fileira--cima .rp-login__vaga { border-bottom: 2px solid rgba(255, 255, 255, .12); }
.rp-login__fileira--baixo .rp-login__vaga { border-top: 2px solid rgba(255, 255, 255, .12); }

.rp-login__carro,
.rp-login__movel {
    width: 56px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-radius: 14px;
    box-shadow: 9px 9px 0 rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.rp-login__carro i,
.rp-login__movel i { display: block; width: 42px; height: 18px; border-radius: 6px 6px 3px 3px; background: rgba(7, 11, 18, .55); }
.rp-login__carro i + i,
.rp-login__movel i + i { height: 14px; border-radius: 3px 3px 6px 6px; background: rgba(7, 11, 18, .45); }

.rp-login__codigo {
    position: absolute;
    left: 8px;
    font-family: var(--rp-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, .30);
}

.rp-login__fileira--cima .rp-login__codigo { top: 8px; }
.rp-login__fileira--baixo .rp-login__codigo { bottom: 8px; }

.rp-login__corredor { height: 100px; display: flex; align-items: center; gap: 26px; padding-left: 16px; }
.rp-login__corredor span { flex: 0 0 30px; height: 4px; border-radius: 2px; background: rgba(242, 183, 5, .45); box-shadow: 0 0 10px rgba(242, 183, 5, .35); }

/* Vaga que o carro amarelo ocupa: brilha em verde enquanto esta livre. */
.rp-login__alvo { position: absolute; left: 480px; top: 250px; width: 96px; height: 150px; animation: rp-vaga-livre 14s ease-in-out infinite; }

.rp-login__movel { position: absolute; left: 0; top: 0; box-shadow: 9px 9px 0 rgba(0, 0, 0, .4), 0 -14px 30px rgba(255, 224, 130, .45); }
.rp-login__movel--estaciona { background: linear-gradient(160deg, #FFD54A, #F2B705); animation: rp-estacionar 14s ease-in-out infinite; }
.rp-login__movel--ida { background: linear-gradient(160deg, #5E86F5, #2F5BD3); animation: rp-passar-ida 13s linear -3s infinite; }
.rp-login__movel--volta { background: linear-gradient(160deg, #C5CEDA, #8A97A6); animation: rp-passar-volta 19s linear -12s infinite; }
.rp-login__movel--baixo { background: linear-gradient(160deg, #FF8A65, #E2563A); animation: rp-passar-baixo 16s linear -6s infinite; }

.rp-login__sensor {
    position: absolute;
    left: -20px;
    width: 1384px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(242, 183, 5, .9), transparent);
    box-shadow: 0 0 18px 4px rgba(242, 183, 5, .35);
    animation: rp-varrer 9s ease-in-out infinite;
}

@keyframes rp-estacionar {
    0% { transform: translate(-220px, 150px) rotate(90deg); opacity: 0; }
    4% { opacity: 1; }
    38% { transform: translate(500px, 150px) rotate(90deg); }
    52% { transform: translate(500px, 275px) rotate(180deg); }
    88% { transform: translate(500px, 275px) rotate(180deg); opacity: 1; }
    96%, 100% { transform: translate(500px, 275px) rotate(180deg); opacity: 0; }
}

@keyframes rp-vaga-livre {
    0%, 44%, 100% { background: rgba(52, 211, 153, .16); box-shadow: inset 0 0 0 2px rgba(52, 211, 153, .75), 0 0 28px rgba(52, 211, 153, .35); }
    52%, 92% { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
}

@keyframes rp-passar-ida { from { transform: translate(-220px, 574px) rotate(90deg); } to { transform: translate(1560px, 574px) rotate(90deg); } }
@keyframes rp-passar-volta { from { transform: translate(1560px, 150px) rotate(-90deg); } to { transform: translate(-220px, 150px) rotate(-90deg); } }
@keyframes rp-passar-baixo { from { transform: translate(1560px, 998px) rotate(-90deg); } to { transform: translate(-220px, 998px) rotate(-90deg); } }
@keyframes rp-varrer { 0% { top: -10px; opacity: 0; } 8%, 92% { opacity: 1; } 100% { top: 1250px; opacity: 0; } }

/* Mantem o texto legivel sobre a maquete. */
.rp-login__sombra {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 45% 75% at 18% 50%, rgba(7, 11, 18, .78), transparent 70%),
        linear-gradient(180deg, rgba(7, 11, 18, .35), transparent 22%, transparent 78%, rgba(7, 11, 18, .45));
    pointer-events: none;
}

.rp-login__conteudo {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: 40px clamp(20px, 6vw, 96px);
}

.rp-login__lado {
    flex: 1 1 360px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.rp-login__topo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; animation: rp-subir .6s ease both; }

.rp-login__logo {
    display: block;
    width: auto;
    height: 84px;
    /* O PNG tem fundo preto; "lighten" o funde ao fundo escuro da tela. */
    mix-blend-mode: lighten;
}

.rp-login__selo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 99px;
    background: rgba(7, 11, 18, .35);
    color: #C8D0D9;
    font-size: 12.5px;
}

.rp-login__selo i { width: 7px; height: 7px; border-radius: 99px; background: #34D399; animation: rp-ponto 1.8s ease-in-out infinite; }

.rp-login__chamada { display: flex; flex-direction: column; gap: 20px; }

.rp-login__chamada h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-shadow: 0 6px 30px rgba(7, 11, 18, .6);
    animation: rp-subir .7s ease .12s both;
}

/* Palavra que gira: vaga. -> mensalista. -> cobranca. */
.rp-login__palavras { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; color: var(--rp-accent); }
.rp-login__palavras > span { display: flex; flex-direction: column; animation: rp-palavra 9s cubic-bezier(.7, 0, .3, 1) infinite; }
.rp-login__palavras > span > span { height: 1.1em; }

.rp-login__chamada p { margin: 0; max-width: 440px; color: #B6C0CC; font-size: 17px; line-height: 1.55; animation: rp-subir .7s ease .25s both; }

.rp-login__avisos { position: relative; width: 320px; height: 66px; animation: rp-subir .7s ease .4s both; }

.rp-login__aviso-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(17, 26, 36, .62);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    animation: rp-aviso 12s ease infinite;
}

.rp-login__aviso-item strong { display: block; font-size: 13.5px; font-weight: 600; color: #F4F6F8; }
.rp-login__aviso-item small { display: block; font-size: 12px; color: #9AA6B4; }

.rp-login__aviso-icone {
    flex: 0 0 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
}

.rp-login__aviso-icone--verde { background: rgba(52, 211, 153, .18); color: #6EE7B7; }
.rp-login__aviso-icone--amarelo { background: rgba(242, 183, 5, .18); color: var(--rp-accent); }
.rp-login__aviso-icone--azul { background: rgba(94, 134, 245, .2); color: #A5BCFA; }
.rp-login__aviso-icone--laranja { background: rgba(253, 186, 140, .18); color: #FDBA8C; }

.rp-login__lado-cartao { flex: 0 1 430px; width: 100%; align-self: center; animation: rp-surgir .8s cubic-bezier(.2, .8, .2, 1) .3s both; }

/* Cartao de vidro escuro. */
.rp-login__cartao {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px 34px 26px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    /* Vidro quase solido: o patio aparece so como textura, sem atrapalhar a leitura dos campos. */
    background: rgba(12, 18, 27, .86);
    backdrop-filter: blur(22px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.rp-login__cartao.is-erro { animation: rp-tremer .45s ease; }
.rp-login__cartao h2 { margin: 0 0 6px; font-size: 30px; }
.rp-login__subtitulo { margin: 0; color: #9AA6B4; }

.rp-login__alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(253, 186, 140, .35);
    border-radius: 12px;
    background: rgba(194, 65, 12, .16);
    color: #FDBA8C;
    font-weight: 600;
    animation: rp-subir .3s ease both;
}

.rp-login__alerta--info,
.rp-login__alerta--success { border-color: rgba(165, 188, 250, .35); background: rgba(47, 91, 211, .18); color: #C7D5FB; }

/* Campos com rotulo flutuante. */
.rp-login__flutua { position: relative; display: block; }

.rp-login__flutua input {
    width: 100%;
    height: 58px;
    padding: 22px 48px 6px 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: #F4F6F8;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.rp-login__flutua input:focus { outline: 0; border-color: var(--rp-accent); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(242, 183, 5, .18); }
.rp-login__flutua input:-webkit-autofill { -webkit-text-fill-color: #F4F6F8; box-shadow: 0 0 0 40px #1A2430 inset; }

.rp-login__flutua label {
    position: absolute;
    left: 46px;
    top: 19px;
    color: #9AA6B4;
    font-size: 15px;
    pointer-events: none;
    transition: all .15s ease;
}

.rp-login__flutua input:focus + label,
.rp-login__flutua input:not(:placeholder-shown) + label { top: 9px; font-size: 11.5px; color: var(--rp-accent); letter-spacing: .02em; }

.rp-login__icone { position: absolute; left: 15px; top: 20px; color: #9AA6B4; }

.rp-login__olho {
    position: absolute;
    right: 6px;
    top: 9px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9AA6B4;
}

.rp-login__olho:hover { background: rgba(255, 255, 255, .08); color: #F4F6F8; }
.rp-login__olho-fechado,
.rp-login__olho[aria-pressed="true"] .rp-login__olho-aberto { display: none; }
.rp-login__olho[aria-pressed="true"] .rp-login__olho-fechado { display: block; }

.rp-login__entrar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: var(--rp-accent);
    color: #070B12;
    font-weight: 700;
    font-size: 16px;
    transition: transform .15s ease, background-color .15s ease;
}

/* Brilho que atravessa o botao ao passar o mouse. */
.rp-login__entrar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.rp-login__entrar:hover { background: #FFC61A; }
.rp-login__entrar:hover::after { left: 120%; }
.rp-login__entrar:active { transform: scale(.98); }
.rp-login__seta { transition: transform .2s ease; }
.rp-login__entrar:hover .rp-login__seta { transform: translateX(5px); }
.rp-login__entrar:focus-visible,
.rp-login__olho:focus-visible { outline: 3px solid var(--rp-accent); outline-offset: 2px; }

.rp-login__carregando {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(7, 11, 18, .25);
    border-top-color: #070B12;
    border-radius: 99px;
    animation: rp-girar .8s linear infinite;
}

.rp-login__entrar.is-carregando .rp-login__carregando { display: inline-block; }
.rp-login__entrar.is-carregando .rp-login__seta { display: none; }

.rp-login__ajuda { margin: 0; text-align: center; color: #9AA6B4; font-size: 13px; }

.rp-login__seguro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: #8793A1;
    font-size: 12px;
}

.rp-login__seguro span { display: inline-flex; align-items: center; gap: 6px; }

@keyframes rp-aviso {
    0% { opacity: 0; transform: translateY(14px) scale(.97); }
    3%, 22% { opacity: 1; transform: none; }
    25%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes rp-palavra {
    0%, 27% { transform: translateY(0); }
    33%, 60% { transform: translateY(-1.1em); }
    66%, 93% { transform: translateY(-2.2em); }
    100% { transform: translateY(-3.3em); }
}

@keyframes rp-subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rp-surgir { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rp-tremer { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes rp-girar { to { transform: rotate(360deg); } }
@keyframes rp-ponto { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 991.98px) {
    .rp-login__lado { max-width: none; gap: 28px; }
    .rp-login__avisos { display: none; }
    .rp-login__sombra { background: rgba(7, 11, 18, .7); }
}

@media (max-width: 575.98px) {
    .rp-login__conteudo { padding: 24px 16px; }
    .rp-login__logo { height: 56px; }
    .rp-login__cartao { padding: 28px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-login *,
    .rp-login *::after { animation: none !important; transition: none !important; }
    .rp-login__aviso-item:first-child { opacity: 1; }
    .rp-login__movel { display: none; }
}

/* Usuario logado no rodape da sidebar */
.rp-user {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--rp-nav-2);
}

.rp-sidebar__foot + .rp-user { margin-top: 0; }
.rp-user__quem { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-user__quem strong { display: block; color: #fff; font-weight: 600; font-size: 13.5px; }
.rp-user__quem small { display: block; color: var(--rp-nav-muted); font-size: 12px; }
.rp-user .rp-avatar { flex: 0 0 34px; height: 34px; font-size: 12.5px; background: #2C3B4E; }
.rp-user__acoes { display: flex; gap: 6px; }

.rp-user__acoes a,
.rp-user__acoes button {
    flex: 1;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    white-space: nowrap;
    border: 1px solid var(--rp-nav-line);
    border-radius: 9px;
    background: transparent;
    color: var(--rp-nav-text);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}

.rp-user__acoes a:hover,
.rp-user__acoes button:hover { background: var(--rp-nav-3); color: #fff; }

/* ---------- Impressao: recibos e relatorios sem a moldura do sistema ---------- */

@media print {
    .rp-sidebar,
    .rp-topbar,
    .rp-footer { display: none !important; }

    .rp-app { display: block; }
    .rp-content { max-width: none; padding: 0; }
    body { background: #fff; }
}
