:root {
    color-scheme: light;
    --ink: #17211d;
    --muted: #62706a;
    --paper: #f4f1e8;
    --surface: #fffdf7;
    --line: #d8d7ce;
    --green: #173f35;
    --green-soft: #dce9df;
    --lime: #d6eb6f;
    --orange: #f0a45c;
    --shadow: 0 22px 70px rgba(26, 50, 41, 0.13);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(214, 235, 111, 0.22), transparent 30rem),
        var(--paper);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-shell {
    padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.app-container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.welcome-grid {
    display: grid;
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 48px);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 11vw, 6.3rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.88;
}

h1 span {
    color: var(--green);
}

h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 5vw, 2.55rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.lead {
    max-width: 540px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: clamp(1rem, 2.6vw, 1.16rem);
    line-height: 1.65;
}

.connection-note,
.operator-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(23, 63, 53, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.72);
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #3da56d;
    box-shadow: 0 0 0 4px rgba(61, 165, 109, 0.13);
}

.selection-card,
.notice-card {
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 247, 0.94);
    box-shadow: var(--shadow);
}

.card-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number,
.action-number {
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

fieldset {
    min-width: 0;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

legend {
    width: 100%;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.choice-grid {
    display: grid;
    gap: 9px;
}

.choice-grid-operators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid-sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-tile {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.choice-tile:has(input:checked) {
    border-color: var(--green);
    background: var(--green-soft);
}

.choice-tile:active {
    transform: scale(0.985);
}

.choice-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-mark {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 1.5px solid #9aa49f;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 4px white;
}

.choice-tile input:checked + .choice-mark {
    border-color: var(--green);
    background: var(--green);
}

.choice-tile input:focus-visible + .choice-mark {
    outline: 3px solid rgba(23, 63, 53, 0.25);
    outline-offset: 3px;
}

.choice-sector small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 500;
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 62px;
    padding: 15px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(23, 63, 53, 0.2);
}

.primary-button:hover {
    background: #0f342b;
}

.privacy-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
}

.form-errors {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 4px solid #ba452f;
    border-radius: 8px;
    background: #fce7e0;
    color: #762c1e;
    font-size: 0.85rem;
}

.form-errors p {
    margin: 0;
}

.topbar {
    display: flex;
    width: min(1120px, 100%);
    margin: 0 auto 54px;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.86rem;
}

.brand-sign {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--green);
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.operation-layout {
    display: grid;
    gap: 24px;
}

.operation-intro h1 {
    max-width: 760px;
    font-size: clamp(3.2rem, 10vw, 6.8rem);
}

.action-panel,
.quick-stats {
    display: grid;
    gap: 12px;
}

.action-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 98px;
    padding: 20px;
    border: 1px solid rgba(23, 63, 53, 0.14);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(26, 50, 41, 0.06);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(26, 50, 41, 0.11);
}

.action-primary {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.action-primary .action-number,
.action-primary .action-copy small {
    color: var(--lime);
}

.action-search {
    min-height: 80px;
    background: rgba(255, 253, 247, 0.66);
}

.action-search .action-copy strong {
    font-size: 1.22rem;
}

.action-copy strong {
    display: block;
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.action-copy small {
    color: var(--muted);
}

.action-arrow {
    font-size: 1.5rem;
}

.quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    min-height: 155px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--green-soft);
    color: var(--green);
    text-decoration: none;
}

.stat-warning {
    background: #f7dfc7;
    color: #733d16;
}

.stat-label,
.stat-card small {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin: 9px 0 12px;
    font-family: Georgia, serif;
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1;
}

.operation-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.operation-footer p {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0;
}

.text-button,
.back-link {
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(23, 63, 53, 0.3);
    text-underline-offset: 4px;
}

.centered-page {
    display: grid;
    place-items: center;
}

.compact-container {
    width: min(580px, 100%);
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.notice-card h1 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
}

.notice-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
}

.operator-chip-static {
    margin-top: 14px;
}

.button-link {
    margin-top: 22px;
    text-decoration: none;
}

.compact-topbar {
    margin-bottom: 34px;
}

.compact-topbar .back-link {
    margin: 0;
}

.entry-container,
.receipt-container {
    width: min(820px, 100%);
    margin: 0 auto;
}

.entry-heading {
    margin-bottom: 28px;
}

.entry-heading h1,
.receipt-success h1 {
    margin-bottom: 10px;
    font-size: clamp(3rem, 10vw, 5rem);
}

.entry-heading > p:last-child,
.receipt-success > div > p:last-child {
    margin: 0;
    color: var(--muted);
}

.entry-form {
    display: grid;
    gap: 14px;
}

.form-section,
.optional-details {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 247, 0.94);
}

.field-label {
    display: block;
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.field-help,
.field-error {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.field-error {
    color: #a23827;
    font-weight: 750;
}

.plate-input {
    width: 100%;
    height: 84px;
    padding: 8px 18px;
    border: 2px solid var(--line);
    border-radius: 15px;
    outline: none;
    background: white;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2.2rem, 11vw, 4.1rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.plate-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, 0.1);
}

.plate-input::placeholder {
    color: #c3c8c4;
}

.vehicle-choice-grid,
.payment-status-grid,
.payment-method-grid {
    display: grid;
    gap: 9px;
}

.vehicle-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-choice,
.compact-choice {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.vehicle-choice:has(input:checked),
.compact-choice:has(input:checked) {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: inset 0 0 0 1px var(--green);
}

.vehicle-choice:active,
.compact-choice:active {
    transform: scale(0.985);
}

.vehicle-choice input,
.compact-choice input {
    position: absolute;
    opacity: 0;
}

.vehicle-choice:has(input:focus-visible),
.compact-choice:has(input:focus-visible) {
    outline: 3px solid rgba(23, 63, 53, 0.22);
    outline-offset: 2px;
}

.vehicle-choice-copy strong,
.vehicle-choice-copy small {
    display: block;
}

.vehicle-choice-copy strong {
    margin-bottom: 3px;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.vehicle-choice-copy small {
    color: var(--muted);
    font-size: 0.7rem;
}

.vehicle-price {
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.value-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.value-row .field-label,
.value-row .field-help {
    margin: 0;
}

.money-input-wrap {
    display: flex;
    align-items: center;
    min-width: 150px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
}

.money-input-wrap span {
    padding-left: 14px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.money-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 8px 12px 8px 7px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--green);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: right;
}

.payment-title,
.payment-methods > .field-label {
    margin-top: 28px;
}

.payment-status-grid,
.payment-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-choice {
    min-height: 54px;
    justify-content: center;
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.compact-choice-warning:has(input:checked) {
    border-color: #b56c28;
    background: #f7dfc7;
    box-shadow: inset 0 0 0 1px #b56c28;
}

.pix-reference {
    margin-top: 14px;
}

.pix-reference label,
.optional-fields label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.pix-reference label span,
.optional-fields label span {
    color: var(--muted);
    font-weight: 500;
}

.pix-reference input,
.optional-fields input,
.optional-fields textarea {
    width: 100%;
    min-height: 51px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: white;
    color: var(--ink);
}

.optional-fields textarea {
    min-height: 88px;
    resize: vertical;
}

.pix-reference input:focus,
.optional-fields input:focus,
.optional-fields textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.09);
}

.optional-details {
    padding: 0;
    overflow: hidden;
}

.optional-details summary {
    display: flex;
    min-height: 76px;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-weight: 850;
}

.optional-details summary::-webkit-details-marker {
    display: none;
}

.optional-details summary::after {
    content: "+";
    color: var(--green);
    font-size: 1.5rem;
}

.optional-details[open] summary::after {
    content: "−";
}

.optional-details summary small {
    display: none;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.optional-fields {
    display: grid;
    gap: 16px;
    padding: 4px 22px 24px;
}

.two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.entry-submit-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: white;
}

.entry-submit-bar > div strong,
.entry-submit-bar > div small {
    display: block;
}

.entry-submit-bar > div small {
    margin-top: 3px;
    color: #b9c2be;
    font-size: 0.74rem;
}

.entry-submit {
    width: min(270px, 100%);
    flex: 0 0 auto;
    background: var(--lime);
    color: var(--green);
    box-shadow: none;
}

.entry-submit:hover {
    background: #e2f28a;
}

.secondary-button {
    display: flex;
    min-height: 54px;
    padding: 13px 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 63, 53, 0.24);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-weight: 850;
    text-decoration: none;
}

.duplicate-overlay {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
    background: rgba(16, 27, 23, 0.72);
    backdrop-filter: blur(8px);
}

.duplicate-dialog {
    width: min(500px, 100%);
    padding: clamp(24px, 6vw, 38px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.duplicate-dialog h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 8vw, 3.1rem);
}

.duplicate-dialog > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.duplicate-dialog > p strong {
    color: var(--green);
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
}

.duplicate-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.is-hidden {
    display: none !important;
}

.receipt-container {
    padding-bottom: 30px;
}

.receipt-success {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 20px 0 30px;
}

.success-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green);
    font-size: 1.35rem;
    font-weight: 900;
}

.receipt-card {
    border: 1px solid rgba(23, 63, 53, 0.14);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.receipt-header,
.receipt-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--green);
    color: white;
}

.receipt-header > div {
    display: flex;
    gap: 11px;
    align-items: center;
}

.receipt-header .brand-sign {
    background: var(--lime);
    color: var(--green);
}

.receipt-header p {
    margin: 0;
    font-size: 0.84rem;
}

.receipt-sector {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
}

.receipt-body {
    padding: clamp(20px, 5vw, 34px);
}

.receipt-qr {
    text-align: center;
}

.receipt-qr img {
    display: block;
    width: min(310px, 100%);
    height: auto;
    margin: 0 auto 12px;
    image-rendering: pixelated;
}

.receipt-qr p {
    margin-bottom: 0;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 850;
}

.receipt-qr-unavailable {
    padding: 22px;
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.receipt-qr-unavailable small {
    color: var(--muted);
}

.withdrawal-code {
    margin: 24px 0;
    padding: 18px;
    border: 2px dashed rgba(23, 63, 53, 0.24);
    border-radius: var(--radius-sm);
    background: var(--paper);
    text-align: center;
}

.withdrawal-code span,
.withdrawal-code small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.withdrawal-code strong {
    display: block;
    margin: 7px 0;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2.3rem, 12vw, 4.1rem);
    letter-spacing: 0.14em;
    line-height: 1;
}

.receipt-summary {
    display: grid;
    gap: 22px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.receipt-plate span,
.receipt-plate small,
.receipt-summary dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.receipt-plate strong {
    display: block;
    margin: 3px 0;
    color: var(--green);
    font-family: ui-monospace, monospace;
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.receipt-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.receipt-summary dd {
    margin: 4px 0 0;
    font-size: 0.88rem;
    font-weight: 850;
}

.receipt-footer {
    align-items: flex-start;
    background: #ecf1ed;
    color: var(--muted);
    font-size: 0.7rem;
}

.receipt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.receipt-actions .button-link {
    margin: 0;
}

.consultation-container,
.detail-container {
    width: min(880px, 100%);
    margin: 0 auto;
    padding-bottom: 36px;
}

.consultation-heading,
.detail-hero {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.consultation-heading h1 {
    margin-bottom: 8px;
    font-size: clamp(3.2rem, 11vw, 5.7rem);
}

.consultation-heading > div > p:last-child,
.detail-hero > div > p:last-child {
    margin: 0;
    color: var(--muted);
}

.consultation-heading > div > p:last-child strong,
.detail-hero > div > p:last-child strong {
    color: var(--ink);
}

.compact-action {
    min-width: 126px;
    flex: 0 0 auto;
}

.pending-total {
    min-width: 178px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: #f7dfc7;
    color: #733d16;
}

.pending-total small,
.pending-total strong {
    display: block;
}

.pending-total small {
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 750;
}

.pending-total strong {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(23, 63, 53, 0.16);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 28px rgba(26, 50, 41, 0.07);
}

.search-bar input {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: #8c9691;
}

.search-bar:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, 0.09);
}

.search-bar button {
    min-width: 100px;
    padding: 10px 17px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 850;
}

.consultation-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0 18px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(23, 63, 53, 0.08);
}

.consultation-tabs a {
    min-height: 43px;
    display: grid;
    padding: 9px 12px;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.consultation-tabs a.is-active {
    background: white;
    color: var(--green);
    box-shadow: 0 4px 14px rgba(26, 50, 41, 0.08);
}

.consultation-tabs a.tab-warning.is-active {
    color: #733d16;
}

.list-order-note {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vehicle-list {
    display: grid;
    gap: 10px;
}

.vehicle-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.8fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 126px;
    padding: 18px 20px;
    border: 1px solid rgba(23, 63, 53, 0.13);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(26, 50, 41, 0.05);
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 63, 53, 0.32);
    box-shadow: 0 14px 32px rgba(26, 50, 41, 0.1);
}

.vehicle-card-pending {
    border-left: 5px solid var(--orange);
}

.vehicle-card-main,
.vehicle-card-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.vehicle-card-topline,
.detail-labels {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.vehicle-type,
.payment-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 25px;
    padding: 5px 8px;
    align-items: center;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-badge {
    background: #e9edea;
    color: #4d5c55;
}

.payment-pendente {
    background: #f7dfc7;
    color: #733d16;
}

.payment-pago {
    background: var(--green-soft);
    color: var(--green);
}

.payment-cortesia {
    background: #e8e0f2;
    color: #5b3f72;
}

.payment-cancelado {
    background: #f2dfdc;
    color: #84382b;
}

.vehicle-plate {
    overflow: hidden;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.7rem, 6vw, 2.25rem);
    letter-spacing: 0.07em;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.vehicle-owner {
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-owner-muted {
    color: var(--muted);
    font-weight: 500;
}

.vehicle-card-meta {
    gap: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.vehicle-card-meta strong {
    color: var(--ink);
}

.vehicle-value {
    color: var(--green);
    font-weight: 900;
}

.vehicle-card-arrow {
    color: var(--green);
    font-size: 1.45rem;
}

.empty-state {
    display: grid;
    width: min(520px, 100%);
    min-height: 330px;
    margin: 18px auto 0;
    padding: 34px;
    place-items: center;
    align-content: center;
    border: 1px dashed rgba(23, 63, 53, 0.24);
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-state > span:first-child {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 900;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 390px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.empty-state .button-link {
    width: min(310px, 100%);
}

.search-heading {
    align-items: flex-start;
}

.search-bar-large input {
    min-height: 60px;
    font-size: 1.08rem;
}

.search-shortcuts {
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 253, 247, 0.65);
    color: var(--muted);
}

.search-shortcuts > span {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-shortcuts ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding-left: 20px;
    font-size: 0.88rem;
}

.search-result-heading {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin: 28px 0 12px;
}

.search-result-heading p {
    margin: 0;
    color: var(--muted);
}

.search-result-heading p strong {
    color: var(--ink);
}

.search-result-heading > span {
    color: var(--green);
    font-family: ui-monospace, monospace;
    font-weight: 850;
}

.detail-hero {
    padding: clamp(22px, 5vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--green);
    color: white;
}

.detail-hero h1 {
    margin-bottom: 8px;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(3rem, 12vw, 5.8rem);
    font-weight: 900;
    letter-spacing: 0.07em;
}

.detail-hero > div > p:last-child,
.detail-hero > div > p:last-child strong {
    color: #dbe4df;
}

.detail-price {
    flex: 0 0 auto;
    padding-bottom: 5px;
    text-align: right;
}

.detail-price small,
.detail-price strong {
    display: block;
}

.detail-price small {
    color: #b9c9c2;
    font-size: 0.72rem;
    font-weight: 750;
}

.detail-price strong {
    margin-top: 4px;
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 1.65rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-card {
    padding: 22px;
    border: 1px solid rgba(23, 63, 53, 0.13);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.detail-code {
    grid-column: 1 / -1;
    padding-block: 25px;
    text-align: center;
}

.detail-code span,
.detail-code small {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
}

.detail-code strong {
    display: block;
    margin: 8px 0;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2.4rem, 9vw, 4rem);
    letter-spacing: 0.16em;
    line-height: 1;
}

.detail-list {
    display: grid;
    gap: 13px;
    margin: 0;
}

.detail-list > div {
    display: flex;
    gap: 15px;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.detail-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.76rem;
}

.detail-list dd {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 850;
    text-align: right;
}

.detail-notes {
    grid-column: 1 / -1;
}

.detail-notes > p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-wrap;
}

.detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.5fr);
    gap: 10px;
    margin-top: 14px;
}

.detail-actions .button-link {
    margin: 0;
}

.success-banner {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(23, 63, 53, 0.18);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 800;
}

.success-banner span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
}

.exit-container,
.exit-confirm-container {
    width: min(880px, 100%);
    margin: 0 auto;
    padding-bottom: 36px;
}

.exit-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.exit-heading h1 {
    margin-bottom: 14px;
    font-size: clamp(3.4rem, 12vw, 6rem);
}

.exit-heading > p:last-child {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.exit-methods {
    display: grid;
    gap: 14px;
}

.camera-card,
.manual-exit-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.42fr);
    gap: 18px;
    align-items: center;
    padding: clamp(20px, 4vw, 30px);
    border-radius: var(--radius-lg);
}

.camera-card {
    background: var(--green);
    color: white;
    box-shadow: 0 20px 54px rgba(23, 63, 53, 0.2);
}

.camera-card .section-kicker {
    color: var(--lime);
}

.camera-card h2 {
    margin-bottom: 5px;
    color: white;
}

.camera-card p:last-child {
    margin: 0;
    color: #c6d2cd;
    font-size: 0.82rem;
    line-height: 1.45;
}

.camera-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--lime);
    font-size: 1.6rem;
}

.camera-button {
    min-height: 58px;
    background: var(--lime);
    color: var(--green);
    box-shadow: none;
}

.camera-button:hover {
    background: #e2f28a;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.file-input:focus-visible + * {
    outline: 3px solid var(--lime);
}

.method-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.method-divider::before,
.method-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.manual-exit-card {
    display: block;
    border: 1px solid rgba(23, 63, 53, 0.13);
    background: var(--surface);
}

.exit-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.exit-search-row input {
    width: 100%;
    min-width: 0;
    height: 64px;
    padding: 11px 15px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: white;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.exit-search-row input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, 0.09);
}

.exit-search-row button {
    min-width: 125px;
    padding: 12px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 850;
}

.manual-exit-card > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.73rem;
}

.manual-exit-card .field-error {
    margin-bottom: 0;
}

.exit-help {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 18px;
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    background: rgba(247, 223, 199, 0.55);
    color: #6c4d34;
    font-size: 0.79rem;
    line-height: 1.5;
}

.exit-help strong {
    flex: 0 0 auto;
    color: #733d16;
}

.exit-vehicle-hero {
    position: relative;
    margin-bottom: 12px;
    padding: clamp(24px, 5vw, 38px);
    border-radius: var(--radius-lg);
    background: var(--green);
    color: white;
    overflow: hidden;
}

.exit-vehicle-hero h1 {
    margin: 8px 0 16px;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(3.2rem, 13vw, 6.2rem);
    font-weight: 900;
    letter-spacing: 0.07em;
}

.exit-vehicle-hero .eyebrow {
    color: #c7d3ce;
}

.exit-proof {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px;
}

.exit-proof > span {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.proof-ok {
    background: var(--lime);
    color: var(--green);
}

.proof-warning {
    background: var(--orange);
    color: #512b0f;
}

.exit-proof small {
    color: #c7d3ce;
    font-size: 0.74rem;
}

.exit-vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exit-vehicle-meta span {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #dce5e1;
    font-size: 0.73rem;
    font-weight: 750;
}

.exit-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.exit-check-card {
    display: flex;
    min-height: 132px;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(23, 63, 53, 0.13);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.exit-check-card strong,
.exit-check-card span {
    display: block;
}

.exit-check-card strong {
    margin-bottom: 5px;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.exit-check-card span {
    color: var(--muted);
    font-size: 0.8rem;
}

.text-pendente {
    color: #a45d1d;
}

.text-pago {
    color: var(--green);
}

.pending-exit-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    padding: 22px;
    border: 1px solid #e1ad79;
    border-radius: var(--radius-md);
    background: #f7dfc7;
    color: #613616;
}

.pending-exit-alert .section-kicker {
    color: #8a4a19;
}

.pending-exit-alert h2 {
    margin-bottom: 5px;
}

.pending-exit-alert p:last-child {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.pending-exit-alert .primary-button {
    margin: 0;
    background: #7b4218;
}

.exit-confirm-form {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 4vw, 26px);
    border-radius: var(--radius-md);
    background: var(--ink);
    color: white;
}

.exit-confirm-form .form-errors {
    margin-bottom: 0;
}

.confirmation-check {
    display: flex;
    gap: 13px;
    padding: 15px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.confirmation-check:has(input:checked) {
    border-color: var(--lime);
    background: rgba(214, 235, 111, 0.09);
}

.confirmation-check input {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    accent-color: var(--lime);
}

.confirmation-check strong,
.confirmation-check small {
    display: block;
}

.confirmation-check strong {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.confirmation-check small {
    color: #b9c2be;
    font-size: 0.72rem;
    line-height: 1.45;
}

.exit-observation {
    display: grid;
    gap: 7px;
    margin-top: 4px;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
}

.exit-observation > span {
    color: #aeb8b3;
    font-weight: 500;
}

.exit-observation textarea {
    width: 100%;
    min-height: 76px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    outline: none;
    background: #26332e;
    color: white;
    resize: vertical;
}

.exit-observation textarea:focus {
    border-color: var(--lime);
}

.exit-final-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.5fr);
    gap: 10px;
    margin-top: 4px;
}

.exit-confirm-button {
    background: var(--lime);
    color: var(--green);
    box-shadow: none;
}

.exit-final-actions .secondary-button {
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.receipt-payment-container .entry-heading > p:last-child strong {
    color: var(--green);
}

.inline-plate {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.06em;
}

.receipt-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-choice-courtesy:has(input:checked) {
    border-color: #70518a;
    background: #e8e0f2;
    box-shadow: inset 0 0 0 1px #70518a;
}

.receipt-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr);
    gap: 10px 20px;
    align-items: center;
    margin-top: 24px;
}

.receipt-value .field-label {
    margin: 0;
}

.receipt-value .field-error {
    grid-column: 1 / -1;
}

.exit-complete-page {
    display: grid;
    place-items: center;
}

.exit-complete-container {
    width: min(620px, 100%);
}

.exit-complete-card {
    padding: clamp(26px, 6vw, 46px);
    border: 1px solid rgba(23, 63, 53, 0.13);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.complete-mark {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green);
    font-size: 1.7rem;
    font-weight: 900;
}

.exit-complete-card h1 {
    margin-bottom: 10px;
    font-size: clamp(3rem, 11vw, 5rem);
}

.complete-lead {
    color: var(--muted);
}

.complete-plate {
    margin: 26px 0;
    padding: 18px;
    border: 2px dashed rgba(23, 63, 53, 0.24);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--green);
    font-family: ui-monospace, monospace;
    font-size: clamp(2.3rem, 11vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
}

.complete-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    text-align: left;
}

.complete-summary > div {
    padding: 13px;
    border-radius: 10px;
    background: var(--paper);
}

.complete-summary dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.complete-summary dd {
    margin: 4px 0 0;
    font-size: 0.84rem;
    font-weight: 850;
}

.complete-actions {
    display: grid;
    gap: 9px;
}

.complete-actions .button-link {
    margin: 0;
}

@media (min-width: 760px) {
    .welcome-grid {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.78fr);
        gap: clamp(42px, 7vw, 100px);
    }

    .operation-layout {
        grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
        gap: 22px 46px;
        align-items: start;
    }

    .operation-intro {
        grid-column: 1;
    }

    .action-panel {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding-top: 36px;
    }

    .quick-stats,
    .operation-footer {
        grid-column: 1;
    }

    .optional-details summary small {
        display: block;
    }

    .receipt-summary {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: end;
    }
}

@media (max-width: 520px) {
    .page-shell {
        padding-inline: 14px;
    }

    .welcome-grid {
        padding-block: 18px;
    }

    .welcome-copy h1 {
        font-size: clamp(3.25rem, 17vw, 5rem);
    }

    .selection-card {
        border-radius: 22px;
    }

    .choice-grid-operators {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        margin-bottom: 38px;
    }

    .topbar-brand > span:last-child {
        display: none;
    }

    .operator-chip {
        max-width: calc(100% - 48px);
        flex-wrap: wrap;
    }

    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        min-height: 142px;
        padding: 16px;
    }

    .operation-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .entry-heading h1,
    .receipt-success h1 {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .vehicle-choice-grid,
    .payment-status-grid,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-choice {
        min-height: 62px;
    }

    .value-row,
    .entry-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .money-input-wrap {
        width: 100%;
    }

    .two-fields,
    .receipt-actions {
        grid-template-columns: 1fr;
    }

    .entry-submit-bar {
        position: sticky;
        z-index: 5;
        bottom: max(8px, env(safe-area-inset-bottom));
    }

    .entry-submit {
        width: 100%;
    }

    .receipt-success {
        gap: 12px;
    }

    .success-mark {
        width: 40px;
        height: 40px;
    }

    .receipt-footer {
        flex-direction: column;
    }

    .consultation-heading,
    .detail-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .consultation-heading {
        gap: 15px;
    }

    .compact-action {
        width: 100%;
    }

    .pending-total {
        min-width: 0;
    }

    .search-bar {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .search-bar input {
        padding-inline: 8px;
        font-size: 0.91rem;
    }

    .search-bar button {
        min-width: 0;
        padding-inline: 10px;
    }

    .vehicle-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px;
    }

    .vehicle-card-meta {
        grid-column: 1;
        gap: 3px;
    }

    .vehicle-card-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .empty-state {
        min-height: 290px;
        padding: 26px 18px;
    }

    .search-shortcuts ul {
        grid-template-columns: 1fr;
    }

    .search-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-hero {
        gap: 12px;
    }

    .detail-hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.4rem);
    }

    .detail-price {
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        text-align: left;
    }

    .detail-grid,
    .detail-actions {
        grid-template-columns: 1fr;
    }

    .camera-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    .camera-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .exit-search-row {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .exit-search-row button {
        min-width: 0;
        padding-inline: 10px;
    }

    .exit-help,
    .pending-exit-alert {
        align-items: stretch;
        flex-direction: column;
    }

    .exit-help {
        display: flex;
    }

    .exit-check-grid,
    .pending-exit-alert,
    .exit-final-actions,
    .receipt-status-grid,
    .receipt-value {
        grid-template-columns: 1fr;
    }

    .exit-vehicle-hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.5rem);
    }

    .receipt-value .field-error {
        grid-column: auto;
    }

    .complete-summary {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Administração */
.admin-entry-link {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-align: center;
    text-underline-offset: 4px;
}

.operation-footer-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.operation-footer-actions form {
    margin: 0;
}

.admin-login-page,
.admin-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(214, 235, 111, 0.17), transparent 30rem),
        #eef0e8;
}

.admin-login-shell {
    display: grid;
    width: min(620px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: max(22px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
    align-content: center;
}

.admin-back-link {
    position: absolute;
    top: max(22px, env(safe-area-inset-top));
    color: #48645b;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-login-card {
    padding: clamp(26px, 7vw, 54px);
    border: 1px solid rgba(16, 46, 40, 0.12);
    border-radius: 30px;
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 30px 90px rgba(16, 46, 40, 0.16);
}

.admin-lock-mark {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 26px;
    border-radius: 15px;
    place-items: center;
    background: var(--green);
    color: var(--lime);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.admin-login-card h1 {
    margin-bottom: 18px;
    font-size: clamp(3.1rem, 11vw, 5.2rem);
}

.admin-login-lead {
    max-width: 500px;
    margin-bottom: 27px;
    color: var(--muted);
    line-height: 1.65;
}

.admin-pin-form {
    display: grid;
    gap: 16px;
}

.admin-pin-form label {
    display: grid;
    gap: 8px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-pin-form input {
    width: 100%;
    min-height: 62px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: white;
    color: var(--ink);
    font-size: 1.5rem;
    letter-spacing: 0.22em;
}

.admin-pin-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, 0.1);
}

.admin-pin-form .primary-button {
    margin-top: 4px;
}

.admin-security-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.admin-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    min-height: 70px;
    padding: max(12px, env(safe-area-inset-top)) max(22px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(16, 46, 40, 0.1);
    background: rgba(238, 240, 232, 0.92);
    backdrop-filter: blur(18px);
}

.admin-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-self: start;
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
}

.admin-brand > span {
    display: grid;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    place-items: center;
    background: var(--green);
    color: var(--lime);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.admin-nav {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(23, 63, 53, 0.07);
}

.admin-nav a {
    min-height: 36px;
    padding: 9px 13px;
    border-radius: 9px;
    color: #52645e;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-nav a.is-active {
    background: white;
    color: var(--green);
    box-shadow: 0 4px 13px rgba(16, 46, 40, 0.08);
}

.admin-topbar form {
    justify-self: end;
}

.admin-logout {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #52645e;
    cursor: pointer;
    font-size: 0.79rem;
    font-weight: 800;
}

.admin-container {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(38px, 7vw, 82px) 0 70px;
}

.admin-heading {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(3.4rem, 9vw, 6.7rem);
}

.admin-heading > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.admin-heading-compact h1 {
    font-size: clamp(3.2rem, 8vw, 5.8rem);
}

.admin-settings-notice,
.admin-settings-success,
.admin-settings-error {
    padding: 18px 22px;
    border-radius: 16px;
    background: #e8efdf;
    color: #173f35;
    line-height: 1.6;
}

.admin-settings-error { background: #fbe9e3; color: #812e23; }
.admin-settings-shortcuts { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.admin-settings-shortcuts a { color: var(--green); font-weight: 750; }
.admin-settings-card { padding: clamp(22px, 4vw, 42px); margin: 24px 0; border: 1px solid var(--line); border-radius: 24px; background: #fffdf8; scroll-margin-top: 24px; }
.admin-settings-card header > p:last-child { color: var(--muted); max-width: 65ch; line-height: 1.6; }
.admin-settings-form { display: grid; gap: 20px; margin-top: 24px; max-width: 760px; }
.admin-settings-form label { display: grid; gap: 8px; font-weight: 700; }
.admin-settings-form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; min-width: 0; padding: 14px; border: 1px solid #c9d3cd; border-radius: 10px; background: white; color: #102e28; font: inherit; }
.admin-settings-form small { color: var(--muted); font-weight: 400; line-height: 1.5; }
.admin-settings-form .primary-button { width: fit-content; min-width: 180px; }
.admin-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-settings-list { margin-top: 24px; }
.admin-settings-item { padding: 18px 0; border-bottom: 1px solid #dfe5df; }
.admin-settings-item summary { cursor: pointer; }
.admin-settings-item summary span { display: inline-block; margin-left: 14px; color: var(--muted); font-size: .85rem; }
.admin-settings-new { margin-top: 25px; }
.admin-settings-new summary { cursor: pointer; color: var(--green); font-weight: 800; }
.admin-settings-form .admin-settings-toggle { display: flex; align-items: center; gap: 12px; }
.admin-settings-toggle input { width: 20px; height: 20px; accent-color: #173f35; }

.session-pin-field {
    display: grid;
    gap: 8px;
    margin: -6px 0 24px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.session-pin-field input {
    width: 100%;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: 0;
    background: white;
    color: var(--green);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: .22em;
}

.session-pin-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, .1);
}

.session-pin-field small {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.admin-history-edit {
    color: var(--green);
    font-size: .72rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.admin-edit-container {
    max-width: 980px;
}

.admin-correction-form {
    display: grid;
    gap: 4px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.admin-edit-grid label,
.admin-danger-card label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 750;
}

.admin-edit-grid label > span,
.admin-danger-card label > span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-edit-grid input,
.admin-edit-grid select,
.admin-edit-grid textarea,
.admin-settings-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #c9d3cd;
    border-radius: 10px;
    outline: 0;
    background: white;
    color: var(--ink);
    font: inherit;
}

.admin-edit-grid input:focus,
.admin-edit-grid select:focus,
.admin-edit-grid textarea:focus,
.admin-settings-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 63, 53, .09);
}

.admin-edit-grid small {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 500;
}

.admin-edit-wide {
    grid-column: 1 / -1;
}

.admin-confirm-card {
    background: #edf4ec;
}

.admin-danger-card {
    border-color: #e2b8af;
    background: #fff7f4;
}

.danger-button {
    width: fit-content;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 11px;
    background: #9f382d;
    color: white;
    cursor: pointer;
    font-weight: 850;
}

.admin-backup-list {
    display: grid;
    gap: 9px;
    margin-top: 28px;
}

.admin-backup-list article {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.admin-backup-list article div {
    display: grid;
    gap: 4px;
}

.admin-backup-list small {
    color: var(--muted);
}

.admin-backup-list a {
    color: var(--green);
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.backup-restore-note,
.report-definition {
    margin-top: 25px;
    padding: 17px 19px;
    border-left: 4px solid var(--lime);
    border-radius: 10px;
    background: #f0f3e9;
}

.backup-restore-note p,
.report-definition p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
}

.report-toolbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 253, 247, .72);
}

.report-toolbar > a,
.report-print,
.report-toolbar form button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
}

.report-toolbar form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}

.report-toolbar form label {
    display: grid;
    gap: 5px;
}

.report-toolbar form label span {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.report-toolbar input {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    font: inherit;
}

.report-print,
.report-toolbar form button {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.report-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .report-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-toolbar form { grid-column: 1 / -1; grid-row: 1; }
    .report-print { grid-column: 1 / -1; }
    .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .admin-edit-grid { grid-template-columns: 1fr; }
    .admin-edit-wide { grid-column: auto; }
    .admin-backup-list article { align-items: flex-start; flex-direction: column; }
    .report-toolbar { grid-template-columns: 1fr 1fr; }
    .report-toolbar form { grid-template-columns: 1fr; }
    .report-metrics { grid-template-columns: 1fr; }
}

@media print {
    .admin-topbar, .report-toolbar, .admin-logout { display: none !important; }
    .admin-page { background: white; }
    .admin-container { width: 100%; padding: 0; }
    .admin-revenue, .admin-metric, .admin-list-card { break-inside: avoid; box-shadow: none; }
}
.admin-confirm-pin { padding-top: 16px; border-top: 1px dashed #c9d3cd; }

@media (max-width: 680px) {
    .admin-settings-fields { grid-template-columns: 1fr; }
    .admin-settings-form .primary-button { width: 100%; }
    .admin-topbar { grid-template-columns: 1fr auto; gap: 10px; }
    .admin-topbar .admin-nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; max-width: 100%; }
    .admin-topbar .admin-nav a { flex-shrink: 0; white-space: nowrap; }
    .admin-topbar > form { grid-column: 2; grid-row: 1; }
}

.admin-heading-compact > p strong {
    color: var(--green);
    font-size: 1.35rem;
}

.admin-revenue {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 70px);
    padding: clamp(28px, 6vw, 52px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(214, 235, 111, 0.2), transparent 23rem),
        #102e28;
    color: white;
    box-shadow: 0 26px 70px rgba(16, 46, 40, 0.2);
}

.admin-revenue p,
.admin-revenue small {
    color: #b8cbc4;
}

.admin-revenue p {
    margin-bottom: 14px;
    font-size: 0.79rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-revenue > div:first-child > strong {
    display: block;
    margin-bottom: 13px;
    color: var(--lime);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.admin-payment-breakdown {
    display: grid;
    align-content: center;
}

.admin-payment-breakdown article {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-payment-breakdown article:last-child {
    border-bottom: 0;
}

.admin-payment-breakdown span {
    color: #b8cbc4;
    font-size: 0.85rem;
}

.admin-payment-breakdown strong {
    font-size: 1.03rem;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-metric,
.admin-list-card,
.admin-sensitive-card,
.admin-history-item,
.admin-filter,
.admin-audit-intro,
.admin-audit-event,
.admin-empty-state {
    border: 1px solid rgba(16, 46, 40, 0.1);
    background: rgba(255, 253, 247, 0.88);
}

.admin-metric {
    min-height: 185px;
    padding: 23px;
    border-radius: 20px;
}

.admin-metric > span {
    display: block;
    min-height: 34px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-metric > strong {
    display: block;
    margin: 14px 0 18px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 0.75;
}

.admin-metric small {
    color: var(--muted);
    line-height: 1.4;
}

.admin-metric-primary {
    background: var(--green-soft);
}

.admin-metric-warning {
    background: #fff2df;
}

.admin-metric-warning > strong {
    color: #a75c25;
}

.admin-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-list-card {
    padding: 26px;
    border-radius: 20px;
}

.admin-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.admin-card-title p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-card-title h2 {
    font-size: 1.8rem;
}

.admin-card-title > span {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.admin-ranking > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.87rem;
}

.admin-ranking strong {
    color: var(--green);
    font-size: 1rem;
}

.admin-empty-line {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-sensitive-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 25px;
    align-items: center;
    margin-top: 12px;
    padding: 23px 26px;
    border-radius: 20px;
}

.admin-sensitive-card div p,
.admin-sensitive-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-sensitive-card div strong {
    display: block;
    margin-top: 3px;
    color: var(--green);
    font-size: 1.6rem;
}

.admin-sensitive-card a {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
}

.admin-filter label {
    display: grid;
    gap: 7px;
}

.admin-filter label > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-filter input,
.admin-filter select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: white;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
}

.admin-filter input:focus,
.admin-filter select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.09);
}

.admin-filter button {
    min-height: 48px;
    padding: 10px 22px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 850;
}

.admin-history-list,
.admin-audit-list {
    display: grid;
    gap: 9px;
}

.admin-history-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(280px, 1.25fr) minmax(130px, 0.55fr);
    gap: 25px;
    align-items: center;
    padding: 21px 23px;
    border-radius: 17px;
}

.admin-history-main > div {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
}

.admin-status {
    display: inline-flex;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e8ece8;
    color: #496158;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-no_patio,
.payment-pago {
    background: #deeedf;
    color: #24613e;
}

.status-cancelado,
.payment-cancelado {
    background: #f6dddd;
    color: #8c382e;
}

.payment-pendente {
    background: #fff0d6;
    color: #8c571f;
}

.payment-cortesia {
    background: #e4e6f6;
    color: #474a84;
}

.admin-history-main h2 {
    margin: 9px 0 5px;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.admin-history-main p,
.admin-history-times p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-history-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-history-times p {
    display: grid;
    gap: 4px;
}

.admin-history-times span,
.admin-history-payment small {
    color: #819089;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-history-times strong {
    color: var(--ink);
    font-size: 0.78rem;
}

.admin-history-times small {
    color: var(--muted);
}

.admin-history-payment {
    display: grid;
    gap: 7px;
    justify-items: end;
    text-align: right;
}

.admin-history-payment > strong {
    color: var(--green);
    font-size: 1.05rem;
}

.admin-limit-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.73rem;
    text-align: center;
}

.admin-empty-state {
    padding: 60px 24px;
    border-radius: 20px;
    text-align: center;
}

.admin-empty-state strong {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.admin-empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-audit-intro {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 17px 20px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.admin-audit-intro > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    place-items: center;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}

.admin-audit-intro p {
    margin: 0;
}

.admin-audit-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    padding: 21px;
    border-radius: 17px;
}

.admin-audit-number {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    place-items: center;
    background: var(--green);
    color: var(--lime);
    font-size: 0.75rem;
    font-weight: 850;
}

.admin-audit-copy > p:first-child {
    display: flex;
    gap: 15px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}

.admin-audit-copy > p:first-child strong {
    color: var(--green);
    font-size: 1rem;
}

.admin-audit-copy > p:first-child span,
.admin-audit-copy > p:nth-child(2) {
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-audit-copy > p:nth-child(2) {
    margin-bottom: 0;
}

.admin-audit-copy details {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.admin-audit-copy summary {
    color: var(--green);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-audit-copy details div {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.admin-audit-copy details p {
    display: grid;
    gap: 5px;
    margin: 0;
}

.admin-audit-copy details span {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-audit-copy code {
    overflow-wrap: anywhere;
    padding: 9px;
    border-radius: 8px;
    background: #eff0eb;
    color: #405049;
    font-size: 0.72rem;
    white-space: pre-wrap;
}

@media (max-width: 850px) {
    .admin-topbar {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding-inline: 16px;
    }

    .admin-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 3;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .admin-nav a {
        flex: 0 0 auto;
        text-align: center;
    }

    .admin-topbar form {
        grid-column: 2;
        grid-row: 1;
    }

    .admin-revenue,
    .admin-history-item {
        grid-template-columns: 1fr;
    }

    .admin-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-history-times {
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .admin-history-payment {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        padding-top: 16px;
        border-top: 1px solid var(--line);
        text-align: left;
    }

    .admin-history-payment small {
        justify-self: end;
    }
}

@media (max-width: 560px) {
    .operation-footer-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .admin-back-link {
        position: static;
        margin-bottom: 18px;
    }

    .admin-login-shell {
        align-content: start;
    }

    .admin-login-card {
        border-radius: 23px;
    }

    .admin-brand {
        font-size: 0;
    }

    .admin-container {
        width: min(100% - 28px, 1120px);
        padding-top: 35px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .admin-heading h1,
    .admin-heading-compact h1 {
        font-size: clamp(3rem, 16vw, 4.7rem);
    }

    .admin-heading > p {
        margin: 0;
    }

    .admin-revenue {
        padding: 25px 21px;
        border-radius: 23px;
    }

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

    .admin-metric {
        min-height: 155px;
    }

    .admin-sensitive-card {
        grid-template-columns: 1fr auto;
    }

    .admin-sensitive-card > p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .admin-filter {
        grid-template-columns: 1fr;
    }

    .admin-filter button {
        width: 100%;
    }

    .admin-history-item {
        gap: 17px;
        padding: 18px;
    }

    .admin-history-times {
        grid-template-columns: 1fr;
    }

    .admin-history-payment {
        grid-template-columns: 1fr auto;
    }

    .admin-history-payment small {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-audit-event {
        grid-template-columns: 1fr;
    }

    .admin-audit-copy > p:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Pátio pesquisável e comprovante recuperável */
.search-filter-form {
    display: grid;
    gap: 10px;
}

.advanced-search {
    overflow: hidden;
    border: 1px solid rgba(23, 63, 53, 0.13);
    border-radius: 16px;
    background: rgba(255, 253, 247, 0.78);
}

.advanced-search summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 14px 17px;
    color: var(--green);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 850;
    list-style: none;
}

.advanced-search summary::-webkit-details-marker {
    display: none;
}

.advanced-search summary::after {
    content: "+";
    color: var(--green);
    font-size: 1.2rem;
}

.advanced-search[open] summary::after {
    content: "−";
}

.advanced-search summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.advanced-search-grid label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.advanced-search-grid label > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.advanced-search-grid input,
.advanced-search-grid select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: white;
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
}

.advanced-search-grid input:focus,
.advanced-search-grid select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.09);
}

.advanced-search-wide {
    grid-column: span 2;
}

.advanced-search-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 18px 18px;
}

.advanced-search-actions a {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-underline-offset: 4px;
}

.advanced-search-actions button {
    min-height: 43px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 850;
}

.search-scope-note {
    margin-top: 13px;
    padding: 12px 15px;
    border-left: 3px solid var(--lime);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.52);
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.5;
}

.search-results-section {
    margin-top: 2px;
}

.search-result-heading > a {
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.vehicle-description {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-code-visible {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.03em;
}

.vehicle-code-visible strong {
    color: var(--green);
    letter-spacing: 0.08em;
}

.detail-code-access {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 7vw, 80px);
    align-items: center;
    padding: clamp(24px, 6vw, 45px);
    background:
        radial-gradient(circle at 100% 0%, rgba(214, 235, 111, 0.26), transparent 20rem),
        var(--surface);
}

.detail-qr-copy > span,
.detail-qr-copy > small,
.detail-qr-image small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.detail-qr-copy > strong {
    display: block;
    margin: 10px 0 16px;
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2.8rem, 10vw, 5.2rem);
    letter-spacing: 0.15em;
    line-height: 0.9;
}

.detail-qr-copy > small {
    max-width: 470px;
}

.detail-qr-image {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.detail-qr-image img {
    display: block;
    width: 190px;
    height: 190px;
    padding: 8px;
    border: 1px solid rgba(23, 63, 53, 0.14);
    border-radius: 15px;
    background: white;
}

.detail-qr-image small {
    text-align: center;
}

@media (max-width: 800px) {
    .advanced-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .advanced-search summary small {
        display: none;
    }

    .advanced-search-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .advanced-search-wide {
        grid-column: auto;
    }

    .advanced-search-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 0 15px 15px;
        text-align: center;
    }

    .advanced-search-actions button {
        width: 100%;
    }

    .detail-code-access {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .detail-qr-copy > strong {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .detail-qr-image img {
        width: min(230px, 75vw);
        height: auto;
    }
}
