:root {
    --bg: #f3efe7;
    --surface: rgba(255, 252, 247, 0.92);
    --surface-strong: #fffdf8;
    --surface-soft: rgba(255, 247, 235, 0.88);
    --line: rgba(130, 91, 45, 0.16);
    --text: #1f2430;
    --muted: #5f6673;
    --heading: #14213d;
    --accent: #a34b2a;
    --accent-dark: #7c3319;
    --accent-soft: rgba(163, 75, 42, 0.12);
    --success-bg: #e3f4e8;
    --success-text: #155b2a;
    --error-bg: #fde8e6;
    --error-text: #8f261f;
    --shadow-lg: 0 24px 60px rgba(27, 31, 38, 0.16);
    --shadow-sm: 0 10px 24px rgba(20, 33, 61, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(163, 75, 42, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 33, 61, 0.14), transparent 26%),
        linear-gradient(160deg, rgba(255, 251, 245, 0.98), rgba(243, 239, 231, 0.96)),
        url('../images/fundo.png') center/cover fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.2;
    pointer-events: none;
}

.page-shell {
    position: relative;
    padding: 32px 18px 56px;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.76), rgba(243, 239, 231, 0.9));
    z-index: -1;
}

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

.public-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(620px, 1.18fr);
    gap: 24px;
    align-items: start;
}

.hero-panel,
.form-panel,
.container-narrow {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
}

.hero-panel {
    position: sticky;
    top: 24px;
    overflow: hidden;
    padding: 32px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 75, 42, 0.22), rgba(163, 75, 42, 0));
    pointer-events: none;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo,
.logo-img {
    display: block;
}

.logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
}

.eyebrow,
.section-tag,
.info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--accent-dark);
}

.hero-panel h1,
.form-header h2,
header h1 {
    margin: 0;
    color: var(--heading);
    line-height: 1.05;
}

.hero-panel h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    max-width: 11ch;
}

.subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
    max-width: 60ch;
}

.hero-highlights {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.highlight-card {
    position: relative;
    padding: 18px 18px 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,247,235,0.92));
    border: 1px solid rgba(130, 91, 45, 0.12);
    box-shadow: var(--shadow-sm);
}

.highlight-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), #d89c55);
}

.highlight-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--heading);
    font-size: 1rem;
}

.highlight-card p,
.info-strip p,
.form-header p,
.section-heading p,
.actions-copy p,
.small-text,
.form-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.info-strip {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(20, 33, 61, 0.04);
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.form-panel {
    padding: 28px;
}

.form-header {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.form-header h2 {
    margin-top: 8px;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
}

.form-note {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    border: 1px solid rgba(163, 75, 42, 0.14);
}

.form-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--heading);
}

.alert {
    padding: 16px 18px;
    margin: 0 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(21, 91, 42, 0.16);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    border-color: rgba(143, 38, 31, 0.16);
    color: var(--error-text);
}

.cadastro-form {
    display: grid;
    gap: 18px;
}

.form-section {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    border: 1px solid rgba(20, 33, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.conditional-section {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 241, 230, 0.96));
}

.consent-section {
    background: linear-gradient(180deg, rgba(250, 245, 238, 0.98), rgba(255, 250, 244, 0.96));
}

.section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--heading), #24385d);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(20, 33, 61, 0.18);
}

h3 {
    margin: 2px 0 6px;
    color: var(--heading);
    font-size: 1.28rem;
}

.row {
    display: grid;
    gap: 16px;
}

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

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

.address-grid {
    grid-template-columns: 1fr 1.6fr 0.5fr;
}

.field {
    min-width: 0;
}

.field-wide {
    grid-column: span 2;
}

.field-small {
    min-width: 120px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 0.94rem;
    font-weight: 700;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid rgba(20, 33, 61, 0.14);
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8f96a2;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(163, 75, 42, 0.65);
    box-shadow: 0 0 0 4px rgba(163, 75, 42, 0.14);
}

.checkbox-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(163, 75, 42, 0.06);
    border: 1px solid rgba(163, 75, 42, 0.12);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.checkbox-group label {
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0 6px;
}

.actions-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--heading);
}

button {
    min-height: 54px;
    padding: 0 28px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(124, 51, 25, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(124, 51, 25, 0.3);
}

button:active {
    transform: translateY(0);
}

.button-secondary {
    background: linear-gradient(135deg, #566173, #394454);
    box-shadow: 0 14px 26px rgba(57, 68, 84, 0.22);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inline-form {
    margin: 0;
}

.container-narrow {
    max-width: 480px;
    padding: 28px;
}

.cep-feedback {
    min-height: 1.35rem;
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.cep-loading {
    color: #245a9a;
}

.cep-success {
    color: #1f7a36;
}

.cep-error {
    color: #b03328;
}

.small-text {
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .public-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        position: relative;
        top: 0;
    }

    .hero-panel h1 {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .page-shell {
        padding: 18px 12px 32px;
    }

    .hero-panel,
    .form-panel,
    .container-narrow {
        padding: 22px;
        border-radius: 22px;
    }

    .form-header,
    .two-columns,
    .three-columns,
    .address-grid,
    .form-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .field-wide {
        grid-column: span 1;
    }

    .form-actions {
        display: grid;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hero-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        width: 136px;
    }

    .hero-panel h1 {
        font-size: 1.9rem;
    }

    .subtitle,
    .highlight-card p,
    .info-strip p,
    .form-header p,
    .section-heading p,
    .actions-copy p,
    .form-note p,
    .checkbox-group label {
        font-size: 0.96rem;
    }

    .form-section {
        padding: 18px;
    }

    input,
    select,
    textarea {
        min-height: 48px;
        padding: 12px 14px;
    }
}

/* Dashboard administrativo */
.dashboard-page {
    background:
        radial-gradient(circle at top left, rgba(26, 61, 104, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(183, 123, 61, 0.12), transparent 20%),
        linear-gradient(180deg, #edf2f7 0%, #e7edf3 46%, #f6f8fb 100%);
}

.dashboard-page::before {
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
}

.dashboard-shell-wrap {
    padding-top: 28px;
    padding-bottom: 40px;
}

.dashboard-shell {
    display: grid;
    gap: 24px;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-kpi-card,
.dashboard-footer {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 74, 110, 0.14), rgba(12, 74, 110, 0));
    pointer-events: none;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-hero__headline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.dashboard-hero h1,
.dashboard-section__heading h2,
.dashboard-panel__header h3 {
    margin: 0;
    color: #0f172a;
}

.dashboard-hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.02;
    max-width: 13ch;
}

.dashboard-hero__subtitle {
    max-width: 68ch;
    margin: 14px 0 0;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}

.dashboard-hero__meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-badge--soft {
    background: rgba(148, 163, 184, 0.16);
    color: #334155;
}

.dashboard-badge--dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
}

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

.dashboard-hero-card {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-hero-card__label,
.dashboard-kpi-card__title,
.dashboard-mini-stat span,
.dashboard-state-item p,
.dashboard-status-item span,
.dashboard-panel__header p,
.dashboard-footer p,
.dashboard-action-card__content span,
.dashboard-activity-item p {
    color: #64748b;
}

.dashboard-hero-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.dashboard-hero-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.dashboard-hero-card p {
    margin: 0;
    line-height: 1.55;
}

.dashboard-hero__actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.dashboard-logout-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-inline: 22px;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.dashboard-icon,
.dashboard-kpi-card__icon,
.dashboard-action-card__icon,
.dashboard-activity-item__icon,
.dashboard-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-icon svg,
.dashboard-kpi-card__icon svg,
.dashboard-action-card__icon svg,
.dashboard-activity-item__icon svg,
.dashboard-empty-state__icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-section,
.dashboard-panel {
    display: grid;
    gap: 18px;
}

.dashboard-section__heading,
.dashboard-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.dashboard-section__heading p,
.dashboard-panel__header p {
    margin: 0;
    max-width: 48ch;
    line-height: 1.6;
}

.dashboard-section__heading h2 {
    margin-top: 6px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    min-height: 156px;
    padding: 20px;
    border-radius: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.dashboard-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.72;
}

.dashboard-kpi-card:hover,
.dashboard-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.dashboard-kpi-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.dashboard-kpi-card__icon svg {
    width: 22px;
    height: 22px;
}

.dashboard-kpi-card__body {
    display: grid;
    align-content: start;
}

.dashboard-kpi-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-kpi-card__value {
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-kpi-card__detail {
    margin: 12px 0 0;
    line-height: 1.55;
}

.dashboard-kpi-card--accent {
    color: #0f766e;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(204, 251, 241, 0.76));
}

.dashboard-kpi-card--slate {
    color: #334155;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.85));
}

.dashboard-kpi-card--ink {
    color: #1d4ed8;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.88));
}

.dashboard-kpi-card--teal {
    color: #0f766e;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(204, 251, 241, 0.82));
}

.dashboard-kpi-card--amber {
    color: #b45309;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 240, 138, 0.38));
}

.dashboard-kpi-card--rose {
    color: #be123c;
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(254, 205, 211, 0.72));
}

.dashboard-kpi-card--violet {
    color: #6d28d9;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(221, 214, 254, 0.82));
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.dashboard-column {
    display: grid;
    gap: 20px;
}

.dashboard-panel {
    padding: 24px;
    border-radius: 26px;
}

.dashboard-panel--actions {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.9));
}

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

.dashboard-action-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-action-card strong,
.dashboard-activity-item__top strong,
.dashboard-empty-state strong,
.dashboard-state-item strong,
.dashboard-status-item strong {
    color: #0f172a;
}

.dashboard-action-card__icon,
.dashboard-activity-item__icon,
.dashboard-empty-state__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dashboard-action-card__content {
    display: grid;
    gap: 6px;
}

.dashboard-action-card__content strong {
    font-size: 1rem;
}

.dashboard-action-card__content span {
    line-height: 1.55;
}

.dashboard-action-card--primary {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
}

.dashboard-action-card--primary .dashboard-action-card__content span,
.dashboard-action-card--primary .dashboard-action-card__content strong,
.dashboard-action-card--primary .dashboard-action-card__icon {
    color: #f8fafc;
}

.dashboard-action-card--secondary {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(15, 118, 110, 0.16));
    color: #0f172a;
}

.dashboard-action-card--ghost {
    background: rgba(248, 250, 252, 0.95);
    color: #0f172a;
}

.dashboard-activity-list,
.dashboard-state-list,
.dashboard-status-list {
    display: grid;
    gap: 12px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-activity-item__body,
.dashboard-state-item,
.dashboard-empty-state {
    display: grid;
    gap: 8px;
}

.dashboard-activity-item__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.dashboard-activity-item__top span,
.dashboard-inline-link {
    font-size: 0.88rem;
}

.dashboard-activity-item p,
.dashboard-empty-state p,
.dashboard-state-item p,
.dashboard-mini-stat span,
.dashboard-status-item span,
.dashboard-footer p {
    margin: 0;
    line-height: 1.55;
}

.dashboard-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px 2px;
    border-radius: 50%;
    background: #94a3b8;
}

.dashboard-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    background: rgba(226, 232, 240, 0.8);
}

.dashboard-inline-link:hover {
    background: rgba(203, 213, 225, 0.95);
}

.dashboard-mini-stats {
    display: grid;
    gap: 12px;
}

.dashboard-mini-stat,
.dashboard-status-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 15px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-mini-stat strong,
.dashboard-status-item strong {
    font-size: 1rem;
}

.dashboard-state-item {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-state-item__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.dashboard-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.65);
    overflow: hidden;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f172a, #0f766e);
}

.dashboard-status-item--success {
    background: rgba(236, 253, 245, 0.92);
}

.dashboard-status-item--warning {
    background: rgba(255, 251, 235, 0.92);
}

.dashboard-empty-state {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
    border: 1px dashed rgba(148, 163, 184, 0.42);
}

.dashboard-empty-state--compact {
    padding: 16px;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-radius: 20px;
}

@media (max-width: 1180px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-content-grid,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .dashboard-shell-wrap {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .dashboard-hero,
    .dashboard-panel,
    .dashboard-footer {
        padding: 22px;
        border-radius: 22px;
    }

    .dashboard-hero__headline,
    .dashboard-section__heading,
    .dashboard-panel__header,
    .dashboard-activity-item,
    .dashboard-footer,
    .dashboard-mini-stat,
    .dashboard-status-item {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-kpi-grid,
    .dashboard-action-grid,
    .dashboard-hero__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero__meta {
        justify-items: start;
    }

    .dashboard-inline-link {
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .dashboard-kpi-grid,
    .dashboard-action-grid,
    .dashboard-hero__summary {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-card,
    .dashboard-action-card,
    .dashboard-empty-state {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-card__icon,
    .dashboard-action-card__icon,
    .dashboard-activity-item__icon,
    .dashboard-empty-state__icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-hero h1 {
        max-width: none;
        font-size: 1.95rem;
    }

    .dashboard-badge {
        white-space: normal;
        justify-content: flex-start;
    }
}

/* Dashboard administrativo - override operacional */
.dashboard-page--compact {
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 22%),
        linear-gradient(180deg, #eef3f8 0%, #f5f7fb 100%);
}

.dashboard-page--compact::before {
    opacity: 0.08;
}

.dashboard-shell-wrap--compact {
    padding: 18px 16px 28px;
}

.dashboard-shell--compact {
    gap: 18px;
}

.dashboard-topbar,
.dashboard-block,
.dashboard-panel--compact,
.dashboard-footer--compact {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 22px;
}

.dashboard-topbar__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-topbar h1,
.dashboard-block__header h2,
.dashboard-panel__header h3 {
    margin: 0;
    color: #0f172a;
}

.dashboard-topbar h1 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.05;
}

.dashboard-topbar p,
.dashboard-block__header p,
.dashboard-panel__header p,
.dashboard-summary-card p,
.dashboard-footer--compact p,
.dashboard-activity-row p,
.dashboard-state-item p,
.dashboard-status-item span,
.dashboard-summary-card > span,
.dashboard-topbar__stamp span {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.dashboard-topbar__main p {
    margin-top: 6px;
    max-width: 72ch;
}

.dashboard-topbar__meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.dashboard-topbar__stamp {
    display: grid;
    gap: 2px;
    text-align: right;
}

.dashboard-topbar__stamp strong {
    color: #0f172a;
    font-size: 0.96rem;
}

.dashboard-topbar__buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dashboard-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
}

.dashboard-toolbar-button__icon,
.dashboard-quick-button__icon,
.dashboard-kpi-card__icon,
.dashboard-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-toolbar-button__icon svg,
.dashboard-quick-button__icon svg,
.dashboard-kpi-card__icon svg,
.dashboard-empty-state__icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-toolbar-button--danger {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}

.dashboard-block,
.dashboard-panel--compact,
.dashboard-footer--compact {
    padding: 18px 20px;
    border-radius: 22px;
}

.dashboard-block__header,
.dashboard-panel__header--tight {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-block__header--tight,
.dashboard-panel__header--tight {
    margin-bottom: 14px;
}

.dashboard-kpi-grid--compact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-kpi-card--compact {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #ffffff;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.dashboard-kpi-card--compact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.85;
}

.dashboard-kpi-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-kpi-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.dashboard-kpi-card__title {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-kpi-card__value {
    display: block;
    color: #0f172a;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-kpi-card__detail {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.dashboard-kpi-card--navy { color: #0f172a; background: linear-gradient(180deg, #ffffff, #f2f6fb); }
.dashboard-kpi-card--slate { color: #475569; background: linear-gradient(180deg, #ffffff, #f7f9fc); }
.dashboard-kpi-card--blue { color: #1d4ed8; background: linear-gradient(180deg, #eff6ff, #dbeafe); }
.dashboard-kpi-card--teal { color: #0f766e; background: linear-gradient(180deg, #f0fdfa, #ccfbf1); }
.dashboard-kpi-card--amber { color: #b45309; background: linear-gradient(180deg, #fffbeb, #fef3c7); }
.dashboard-kpi-card--rose { color: #be123c; background: linear-gradient(180deg, #fff1f2, #ffe4e6); }
.dashboard-kpi-card--violet { color: #6d28d9; background: linear-gradient(180deg, #f5f3ff, #ede9fe); }

.dashboard-content-grid--compact {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.dashboard-column {
    display: grid;
    gap: 16px;
}

.dashboard-actions-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-inline-form-fill {
    width: 100%;
}

.dashboard-inline-form-fill button {
    width: 100%;
}

.dashboard-quick-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
}

.dashboard-quick-button--primary {
    background: #0f172a;
    color: #f8fafc;
}

.dashboard-quick-button--secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.dashboard-quick-button--ghost {
    background: #f8fafc;
    color: #0f172a;
}

.dashboard-quick-button--danger {
    background: #7f1d1d;
    color: #fef2f2;
}

.dashboard-activity-table,
.dashboard-state-list--compact,
.dashboard-status-list--compact,
.dashboard-summary-grid {
    display: grid;
    gap: 10px;
}

.dashboard-activity-row,
.dashboard-summary-card,
.dashboard-state-item--compact,
.dashboard-status-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #f8fafc;
    border-radius: 16px;
}

.dashboard-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
}

.dashboard-activity-row__main strong,
.dashboard-summary-line strong,
.dashboard-state-item__head strong,
.dashboard-status-item strong {
    color: #0f172a;
}

.dashboard-activity-row__main p {
    margin-top: 6px;
}

.dashboard-activity-row__meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.dashboard-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
}

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

.dashboard-summary-card {
    padding: 14px;
}

.dashboard-summary-card > span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-summary-line:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.dashboard-state-item--compact {
    padding: 14px;
}

.dashboard-state-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.dashboard-progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.7);
    overflow: hidden;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0f172a, #2563eb);
}

.dashboard-status-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.dashboard-status-item--success {
    background: #ecfdf5;
}

.dashboard-status-item--warning {
    background: #fffbeb;
}

.dashboard-empty-state--compact {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: #f8fafc;
}

.dashboard-empty-state__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #e2e8f0;
}

.dashboard-footer--compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 1100px) {
    .dashboard-kpi-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-content-grid--compact,
    .dashboard-topbar {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar__meta {
        justify-items: start;
    }

    .dashboard-topbar__stamp {
        text-align: left;
    }
}

@media (max-width: 860px) {
    .dashboard-shell-wrap--compact {
        padding: 14px 12px 24px;
    }

    .dashboard-topbar,
    .dashboard-block,
    .dashboard-panel--compact,
    .dashboard-footer--compact {
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-actions-row,
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-activity-row,
    .dashboard-footer--compact,
    .dashboard-status-item,
    .dashboard-block__header,
    .dashboard-panel__header--tight {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-activity-row__meta {
        justify-items: start;
    }
}

@media (max-width: 620px) {
    .dashboard-kpi-grid--compact,
    .dashboard-actions-row,
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar__buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .dashboard-toolbar-button,
    .dashboard-toolbar-button--danger {
        width: 100%;
    }
}

/* Dashboard administrativo - correção de imagens e ícones */
.dashboard-page--compact img {
    display: block;
    max-width: 100%;
    height: auto;
}

.dashboard-page--compact svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex: 0 0 18px;
}

.dashboard-page--compact .dashboard-kpi-card__icon svg,
.dashboard-page--compact .dashboard-quick-button__icon svg,
.dashboard-page--compact .dashboard-toolbar-button__icon svg,
.dashboard-page--compact .dashboard-empty-state__icon svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.dashboard-page--compact .dashboard-svg-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
    flex: 0 0 18px;
}

/* Lista administrativa de cadastros */
.records-page {
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 22%),
        linear-gradient(180deg, #eef3f8 0%, #f6f8fb 100%);
}

.records-shell {
    display: grid;
    gap: 18px;
}

.records-topbar,
.records-filters-panel,
.records-table-panel,
.records-summary-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.records-topbar,
.records-filters-panel,
.records-table-panel {
    padding: 20px;
    border-radius: 22px;
}

.records-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 18px;
    align-items: center;
}

.records-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.records-topbar h1,
.records-panel-head h2 {
    margin: 0;
    color: #0f172a;
}

.records-topbar h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.records-topbar p,
.records-panel-head p,
.records-summary-card p,
.records-table__stack span,
.records-empty-state p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.records-topbar__main p {
    margin-top: 6px;
    max-width: 70ch;
}

.records-topbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.records-toolbar-link,
.records-button,
.records-inline-action,
.records-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
}

.records-toolbar-link,
.records-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.records-toolbar-link {
    background: #0f172a;
    color: #f8fafc;
}

.records-toolbar-link--secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.records-toolbar-link--ghost,
.records-button--ghost {
    background: #f8fafc;
    color: #0f172a;
}

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

.records-summary-card {
    padding: 16px;
    border-radius: 18px;
}

.records-summary-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.records-summary-card__icon,
.records-input-icon span,
.records-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.records-summary-card__icon,
.records-empty-state__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #0f172a;
}

.records-summary-card__label {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.records-summary-card__value {
    display: block;
    color: #0f172a;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.records-summary-card p {
    margin-top: 8px;
}

.records-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 14px;
}

.records-panel-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.records-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 700;
}

.records-meta-chip--soft {
    background: #e2e8f0;
    color: #0f172a;
}

.records-filters-form,
.records-filters-grid {
    display: grid;
    gap: 12px;
}

.records-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.records-field {
    min-width: 0;
}

.records-field--search {
    grid-column: span 2;
}

.records-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
}

.records-field input,
.records-field select {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #fff;
    color: #0f172a;
}

.records-input-icon {
    position: relative;
}

.records-input-icon span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.records-input-icon input {
    padding-left: 42px;
}

.records-filters-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.records-button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.records-button--primary {
    border: none;
    color: #f8fafc;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.records-table-wrap {
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
}

.records-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
    background: #fff;
}

.records-table thead th {
    padding: 14px 16px;
    text-align: left;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.records-table tbody td {
    padding: 14px 16px;
    color: #0f172a;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    vertical-align: middle;
}

.records-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.95);
}

.records-table__id {
    color: #64748b;
    font-weight: 700;
}

.records-table__stack {
    display: grid;
    gap: 4px;
}

.records-table__stack strong,
.records-empty-state strong {
    color: #0f172a;
}

.records-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.records-badge--blue { background: #dbeafe; color: #1d4ed8; }
.records-badge--teal { background: #ccfbf1; color: #0f766e; }
.records-badge--amber { background: #fef3c7; color: #b45309; }
.records-badge--violet { background: #ede9fe; color: #6d28d9; }
.records-badge--success { background: #dcfce7; color: #15803d; }
.records-badge--muted { background: #e2e8f0; color: #475569; }

.records-inline-action {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #0f172a;
}

.records-empty-state {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    background: #f8fafc;
}

.records-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.records-pagination__link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.records-pagination__link.is-active {
    color: #f8fafc;
    background: #0f172a;
    border-color: #0f172a;
}

.records-svg-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
    flex: 0 0 18px;
}

@media (max-width: 1180px) {
    .records-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .records-field--search {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .records-topbar,
    .records-panel-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .records-topbar,
    .records-filters-panel,
    .records-table-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .records-topbar__actions,
    .records-panel-head__meta {
        justify-content: flex-start;
    }

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

@media (max-width: 620px) {
    .records-summary-grid,
    .records-filters-grid {
        grid-template-columns: 1fr;
    }

    .records-field--search {
        grid-column: span 1;
    }

    .records-topbar__actions,
    .records-filters-actions {
        display: grid;
    }

    .records-toolbar-link,
    .records-button {
        width: 100%;
    }
}
