:root {
    --bg: #f3f6f5;
    --bg-accent: #e4efec;
    --surface: #ffffff;
    --text: #0b1f1c;
    --text-secondary: #2f4a45;
    --muted: #5f746f;
    --primary: #0f7a6c;
    --primary-dark: #0a5c52;
    --primary-light: #d8f3ee;
    --accent: #e8a317;
    --accent-soft: #fff4d6;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --border: #d9e3e0;
    --border-light: #ecf1ef;
    --shadow-sm: 0 1px 2px rgba(11, 31, 28, 0.03);
    --shadow: 0 1px 3px rgba(11, 31, 28, 0.05), 0 4px 14px rgba(11, 31, 28, 0.04);
    --shadow-lg: 0 8px 24px rgba(11, 31, 28, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.18s ease;
    --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    width: min(1680px, calc(100% - 2rem));
    margin: 0 auto;
}

main.container {
    padding-bottom: 2.5rem;
}

/* ── Topbar ── */

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1.75rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.topbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.topbar__logo img {
    display: block;
    height: 36px;
    width: auto;
}

.topbar__nav {
    display: flex;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.topbar__nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.topbar__nav-link:hover {
    color: var(--primary-dark);
    background: var(--bg-accent);
}

.topbar__nav-link--active {
    color: var(--primary-dark);
    background: var(--primary-light);
    box-shadow: none;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0.2rem 0.2rem 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.topbar__user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.topbar__user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}

.topbar__user-role {
    font-size: 0.74rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ── Typography ── */

.page-header {
    margin-bottom: 1.35rem;
}

.page-header h1,
.auth-card h1,
.hero-panel h1 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 1.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.page-header .muted {
    margin: 0;
    font-size: 0.92rem;
}

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

/* ── Cards ── */

.auth-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem 1.4rem;
}

.card {
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: #c8d6d2;
}

.card__title,
.section-header h2,
.card > h2 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.auth-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 2.4rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 0.85rem;
}

.auth-tagline {
    text-align: center;
    margin: 0 0 1.75rem;
}

.auth-page {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.auth-page::before,
.auth-page::after {
    display: none;
}

/* ── Dashboard ── */

.hero-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.hero-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.hero-panel::after {
    display: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel h1 {
    color: var(--text);
    margin-bottom: 0.3rem;
}

.hero-panel .muted,
.hero-panel p {
    color: var(--muted);
    margin: 0;
    max-width: 42rem;
    font-size: 0.95rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 7.5rem;
    padding: 1.1rem 1.2rem 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
    border-left: 3px solid var(--primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: #c5dad4;
    border-left-color: var(--primary-dark);
}

a.stat-card--link {
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
}

a.stat-card--link:hover {
    border-left-color: var(--accent);
}

.stat-card h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--muted);
}

.stat {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.4vw + 1rem, 2rem);
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
    letter-spacing: -0.035em;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
}

.stat-card .link {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.84rem;
    font-weight: 600;
}

.card .stat-card {
    box-shadow: none;
    background: #f8fbfa;
}

/* ── Forms ── */

.form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fbfdfc;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:hover,
select:hover,
textarea:hover {
    border-color: #c3d7d2;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 122, 108, 0.12);
}

input:disabled {
    background: var(--border-light);
    color: var(--muted);
    cursor: not-allowed;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
}

.btn:active {
    transform: none;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    box-shadow: none;
    font-weight: 600;
}

.btn--ghost:hover {
    background: #f4faf8;
    color: var(--text);
    border-color: #c5dad4;
    filter: none;
    box-shadow: var(--shadow-sm);
}

.btn--ghost.btn--danger {
    background: var(--surface);
    color: var(--danger);
    border-color: #fecaca;
}

.btn--ghost.btn--danger:hover {
    background: #fef2f2;
    color: var(--danger-dark);
    border-color: #fca5a5;
}

.btn--sm {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    box-shadow: none;
}

.btn--danger:not(.btn--ghost) {
    background: var(--danger);
    box-shadow: none;
}

.btn--danger:not(.btn--ghost):hover {
    background: var(--danger-dark);
    filter: none;
}

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

.btn--loading {
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
    gap: 0.4rem;
}

.btn__spinner {
    display: none;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
    flex-shrink: 0;
}

.btn--loading .btn__spinner {
    display: inline-block;
}

.btn--loading .btn__label {
    opacity: 0.92;
}

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

/* ── Links ── */

.link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link--plain {
    color: inherit;
}

.link--plain:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ── Alerts & errors ── */

.error {
    color: var(--danger);
    margin: 0;
    font-size: 0.85rem;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: none;
}

.alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Layout helpers ── */

.mt {
    margin-top: 1.5rem;
}

ul {
    padding-left: 1.25rem;
}

.page-header--actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-header__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.form-field--full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ── Filters ── */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters input[type="text"] {
    flex: 1 1 220px;
}

.filters select {
    flex: 0 1 180px;
}

/* ── Tables ── */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 0.8rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table th {
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--muted);
    font-weight: 600;
    background: #f7f9f8;
}

.table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: rgba(216, 243, 238, 0.35);
}

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

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

.table-actions {
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    align-items: center;
}

.table-actions__form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.medidor-inline__input {
    box-sizing: border-box;
    width: 5.65rem;
    height: 2rem;
    padding: 0 0.35rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: center;
    vertical-align: middle;
    appearance: none;
}

.medidor-inline__input::placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 1;
}

.medidor-inline__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.medidor-inline__input--locked {
    background: var(--border-light);
    color: var(--text-secondary);
    cursor: help;
    box-shadow: none;
}

.table-actions--stacked {
    max-width: 30rem;
}

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

.btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.input-inline {
    width: 6.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.contrato-partes {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.contrato-partes__seta {
    color: var(--muted);
    font-weight: 500;
}

.table__actions {
    width: 1%;
    white-space: nowrap;
}

/* ── Badges ── */

.badge {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge--ativo {
    background: #d1fae5;
    color: #065f46;
}

.badge--inativo {
    background: #fee2e2;
    color: #991b1b;
}

.badge--pendente {
    background: #fef3c7;
    color: #92400e;
}

.badge--gerada {
    background: #dbeafe;
    color: #1e40af;
}

.badge--enviada {
    background: #d1fae5;
    color: #065f46;
}

.badge--erro {
    background: #fee2e2;
    color: #991b1b;
}

.badge--pago {
    background: #dcfce7;
    color: #15803d;
}

.badge--vencida {
    background: #fee2e2;
    color: #b91c1c;
}

.financeiro-intro {
    margin-bottom: 0.5rem;
}

.financeiro-stats {
    margin-top: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.financeiro-stats .stat-card {
    min-height: 5.75rem;
    padding: 1rem 1.15rem;
    gap: 0.35rem;
}

.financeiro-stats .stat {
    font-size: clamp(1.5rem, 1vw + 1rem, 1.85rem);
}

.stat--currency {
    font-size: clamp(1.15rem, 0.6vw + 0.95rem, 1.35rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: nowrap;
}

/* ── Detail lists ── */

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 0;
}

.detail-list dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.empty-state {
    color: var(--muted);
    margin: 0;
    padding: 2.4rem 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    background: #f7fbfa;
    border: 1px dashed #cfe0db;
    border-radius: var(--radius-sm);
}

/* ── Section headers ── */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Pagination ── */

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.pagination-nav__link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.88rem;
    transition: background var(--transition), border-color var(--transition);
}

.pagination-nav__link:hover {
    background: var(--primary-light);
    border-color: #99f6e4;
}

.pagination-nav__link--disabled {
    color: var(--muted);
    background: var(--border-light);
    border-color: var(--border-light);
    cursor: default;
}

.pagination-nav__info {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ── Form fieldsets ── */

.form-fieldset {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.form-fieldset legend {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.5rem;
    color: var(--text);
}

.form-fieldset__hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.regularizar-form {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.regularizar-form__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
}

/* ── Vínculos energéticos ── */

.vinculo-grupo__title {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vinculo-item {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.vinculo-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Footer ── */

.app-footer {
    margin-top: 2.5rem;
    padding: 1.25rem 0 1.75rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    background: transparent;
}

/* ── Modal ── */

body.modal-open {
    overflow: hidden;
}

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    animation: modal-fade 0.18s ease;
}

.modal__panel {
    position: relative;
    width: min(440px, 100%);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 1.75rem 1.5rem 1.35rem;
    animation: modal-rise 0.22s ease;
}

.modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    margin-bottom: 1rem;
}

.modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.modal__lead {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal__card {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.65rem;
}

.modal__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.92rem;
}

.modal__row strong {
    text-align: right;
    word-break: break-word;
}

.modal__note {
    margin: 0;
    font-size: 0.85rem;
    color: #0f766e;
    background: var(--primary-light);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
}

.modal__warning {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: #92400e;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-rise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Responsive ── */

@media (max-width: 1100px) {
    .grid,
    .financeiro-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 720px) {
    .grid,
    .financeiro-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat--currency {
        white-space: normal;
        font-size: 1.1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-header--actions {
        flex-direction: column;
    }

    .topbar__user-info {
        display: none;
    }

    .topbar__nav {
        width: 100%;
        overflow-x: auto;
        border-radius: var(--radius-sm);
    }

    .topbar__user {
        padding: 0.25rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.6rem;
    }

    .hero-panel {
        padding: 1.15rem 1.2rem;
    }
}

@media (max-width: 420px) {
    .grid,
    .financeiro-stats {
        grid-template-columns: 1fr;
    }
}
