:root {
    --fincore-navy: #0b1f3a;
    --fincore-navy-light: #102c50;
    --fincore-blue: #1d4ed8;
    --fincore-blue-hover: #1e40af;
    --fincore-green: #059669;
    --fincore-green-hover: #047857;
    --fincore-amber: #f59e0b;
    --fincore-red: #dc2626;
    --fincore-red-hover: #b91c1c;
    --fincore-background: #f4f7fb;
    --fincore-surface: #ffffff;
    --fincore-surface-soft: #f8fafc;
    --fincore-border: #dce5f0;
    --fincore-text: #0f172a;
    --fincore-muted: #64748b;
    --fincore-white: #ffffff;
    --fincore-danger: #dc2626;
    --fincore-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --sidebar-width: 280px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--fincore-text);
    background: var(--fincore-background);
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--fincore-text);
}

h1 {
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 22px;
    font-weight: 850;
}

p {
    margin: 0;
    color: var(--fincore-muted);
}

/* =========================
   Estrutura principal
   ========================= */

.fincore-shell {
    display: flex;
    min-height: 100vh;
}

.fincore-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: var(--sidebar-width);
    height: 100dvh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fincore-navy) 0%, #071a31 100%);
    color: white;
    box-shadow: 4px 0 16px rgba(11, 31, 58, 0.14);
}

.fincore-workspace {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.fincore-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    color: white;
    background: linear-gradient(90deg, var(--fincore-blue), #0754c9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    color: var(--fincore-navy);
    background: white;
    font-size: 22px;
    cursor: pointer;
}

.header-product {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.header-subtitle {
    display: block;
    margin-top: 2px;
    color: #dbeafe;
}

.header-login {
    display: inline-flex;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    color: white;
    font-weight: 700;
}

.header-company-logo {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 12px;
    background: white;
}

.header-company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.organization-logo-editor {
    align-items: end;
    margin: 1rem 0;
}

.organization-logo-preview {
    display: grid;
    place-items: center;
    width: 150px;
    height: 82px;
    padding: .5rem;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: white;
}

.organization-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-center {
    position: relative;
}

.notification-button {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;
    color: #fff;
    background: rgba(4, 43, 112, .22);
    cursor: pointer;
}

.notification-button:hover,
.notification-button:focus-visible {
    background: rgba(255, 255, 255, .16);
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.notification-bell {
    font-size: 21px;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #1558d6;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 10px;
    font-weight: 900;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1300;
    width: min(420px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    color: #0b1f3a;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.notification-panel-header strong,
.notification-panel-header span {
    display: block;
}

.notification-panel-header span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.notification-panel-header button {
    padding: 7px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.notification-list {
    max-height: min(62vh, 520px);
    overflow-y: auto;
    scrollbar-color: #64748b #e2e8f0;
}

.notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    background: #fff;
}

.notification-item:hover,
.notification-item:focus-visible {
    background: #f8fafc;
    outline: none;
}

.notification-item.is-unread {
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    background: #eff6ff;
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #dbeafe;
}

.notification-item strong,
.notification-item small {
    display: block;
    overflow-wrap: anywhere;
}

.notification-item small {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
}

.notification-empty {
    margin: 0;
    padding: 28px 18px;
    color: #64748b;
    text-align: center;
}

.header-user > div {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--fincore-blue);
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.user-information strong,
.user-information span {
    display: block;
}

.user-information strong {
    max-width: 220px;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-information span {
    margin-top: 2px;
    color: #dbeafe;
    font-size: 11px;
}

.fincore-content {
    width: 100%;
    padding: 28px;
}

:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.7);
    outline-offset: 2px;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
    outline: none;
}

/* =========================
   Menu lateral
   ========================= */

.sidebar-container {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    object-fit: contain;
}

.sidebar-brand .operlync-wordmark {
    display: block;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.04em;
}

.sidebar-brand .operlync-wordmark span,
.sidebar-brand .operlync-wordmark b {
    display: inline;
    margin: 0;
    color: #fff;
    font-size: inherit;
}

.sidebar-brand .operlync-wordmark b {
    color: #00d2ff;
}

.sidebar-brand > div > span {
    display: block;
    margin-top: 5px;
    color: #bfdbfe;
    font-size: 12px;
}

.sidebar-navigation {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 5px;
    padding: 18px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .sidebar-navigation::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-navigation::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
    }

.sidebar-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #e5edf8;
    transition: 150ms ease;
}

    .sidebar-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar-link.active {
        color: white;
        background: linear-gradient(90deg, var(--fincore-blue), #0f5ed7);
        box-shadow: 0 5px 14px rgba(29, 78, 216, 0.28);
    }

    .sidebar-link span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.sidebar-icon {
    width: 24px;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
    color: #dbeafe;
    font-size: 19px;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--fincore-red);
    border-radius: 10px;
    color: #fca5a5;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

    .logout-button:hover {
        color: white;
        background: rgba(220, 38, 38, 0.18);
    }

/* =========================
   Páginas de módulos
   ========================= */

.module-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.module-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

    .module-subtitle,
    .module-header p {
        margin-top: 8px;
        color: var(--fincore-muted);
        font-size: 16px;
    }

/* =========================
   Cards de resumo
   ========================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.summary-card {
    min-height: 118px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--fincore-border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

    .summary-card > div:last-child {
        min-width: 0;
    }

.summary-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    font-size: 24px;
}

    .summary-blue,
    .summary-icon.blue {
        color: var(--fincore-blue);
        background: #dbeafe;
    }

    .summary-green,
    .summary-icon.green {
        color: var(--fincore-green);
        background: #dcfce7;
    }

    .summary-yellow,
    .summary-amber,
    .summary-icon.amber {
        color: var(--fincore-amber);
        background: #fef3c7;
    }

    .summary-red,
    .summary-icon.red {
        color: var(--fincore-red);
        background: #fee2e2;
    }

.summary-card span {
    display: block;
    color: var(--fincore-muted);
    font-size: 14px;
    font-weight: 700;
}

.summary-card strong {
    display: block;
    max-width: 100%;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--fincore-text);
    font-size: 26px;
    font-weight: 850;
    line-height: 1.15;
}

.summary-card small {
    display: block;
    margin-top: 5px;
    color: var(--fincore-green);
    font-size: 13px;
}

/* =========================
   Painéis, filtros e formulários
   ========================= */

.panel-card,
.filter-card,
.form-card,
.table-card {
    border: 1px solid var(--fincore-border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.panel-card,
.form-card {
    padding: 24px;
}

.filter-card {
    padding: 18px;
}

.form-card-header,
.form-section-header {
    margin-bottom: 18px;
}

    .form-card-header p,
    .form-section-header p {
        margin-top: 6px;
        font-size: 15px;
    }

.form-grid {
    display: grid;
    gap: 16px;
}

    .form-grid.two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.form-group,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .form-group.full,
    .form-field.full {
        grid-column: 1 / -1;
    }

label {
    color: #1f2a44;
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea,
.form-control,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: var(--fincore-text);
    background: white;
    transition: 150ms ease;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus {
        border-color: var(--fincore-blue);
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
    }

.form-help {
    color: var(--fincore-muted);
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

/* =========================
   Filtros padrão
   ========================= */

.filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) minmax(160px, 0.7fr) auto;
    gap: 1rem;
    align-items: end;
}

.filter-action {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

    .filter-action .btn-primary {
        min-width: 170px;
        height: 56px;
        white-space: nowrap;
    }

/* =========================
   Tela de contas
   ========================= */

.accounts-filter-card {
    padding: 1.5rem;
}

.accounts-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) minmax(160px, 0.7fr) 180px;
    gap: 1rem;
    align-items: end;
}

    .accounts-filter-grid .form-field {
        min-width: 0;
    }

    .accounts-filter-grid .filter-action {
        display: flex;
        align-items: end;
        justify-content: flex-end;
    }

        .accounts-filter-grid .filter-action .btn-primary {
            width: 100%;
            height: 56px;
            white-space: nowrap;
        }

.accounts-total-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

    .accounts-total-preview div {
        border: 1px solid var(--fincore-border);
        border-radius: 1rem;
        padding: 1rem;
        background: var(--fincore-surface-soft);
    }

    .accounts-total-preview span {
        display: block;
        color: var(--fincore-muted);
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .accounts-total-preview strong {
        color: var(--fincore-navy);
        font-size: 1.3rem;
    }

/* =========================
   Tela de veículos
   ========================= */

.vehicles-filter-card {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.3fr) minmax(180px, 1fr) minmax(100px, 0.5fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(140px, 0.7fr) minmax(170px, auto);
    gap: 1rem;
    align-items: end;
    overflow: visible;
}

    .vehicles-filter-card .form-group,
    .vehicles-filter-card .form-field {
        min-width: 0;
    }

    .vehicles-filter-card .filter-action {
        display: flex;
        align-items: end;
        justify-content: flex-end;
        height: 100%;
    }

    .vehicles-filter-card .new-unit-button,
    .vehicles-filter-card .btn-primary {
        width: 100%;
        min-width: 160px;
        height: 56px;
        padding-left: 22px;
        padding-right: 22px;
        white-space: nowrap;
    }

/* =========================
   Botões
   ========================= */

button,
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--fincore-blue);
    font-weight: 800;
    cursor: pointer;
    transition: 150ms ease;
}

    button:hover,
    .btn:hover {
        background: var(--fincore-blue-hover);
    }

    button:disabled,
    .btn:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-primary {
    color: white;
    background: var(--fincore-blue);
}

.btn-secondary {
    color: var(--fincore-blue);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

    .btn-secondary:hover {
        color: white;
        background: var(--fincore-blue);
    }

/* =========================
   Alertas
   ========================= */

.alert,
.alert-success,
.alert-error,
.alert-danger,
.alert-info {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.alert-success {
    border: 1px solid #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.alert-error,
.alert-danger {
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.alert-info {
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    background: #eff6ff;
}

/* =========================
   Tabelas
   ========================= */

.table-card {
    overflow: hidden;
}

.table-header,
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--fincore-border);
}

    .table-header h2,
    .table-card-header h2 {
        font-size: 22px;
    }

    .table-header span,
    .table-card-header span {
        color: var(--fincore-muted);
        font-weight: 700;
    }

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .data-table thead {
        color: white;
        background: var(--fincore-navy);
    }

    .data-table th,
    .data-table td {
        padding: 14px 16px;
        text-align: left;
        border-bottom: 1px solid var(--fincore-border);
        vertical-align: middle;
    }

    .data-table th {
        font-size: 13px;
        font-weight: 850;
    }

    .data-table td {
        font-size: 14px;
        word-break: normal;
    }

    .data-table tbody tr:hover {
        background: #f8fafc;
    }

    .data-table td > strong,
    .data-table td strong {
        display: block;
        font-weight: 850;
        line-height: 1.2;
    }

    .data-table td > span,
    .data-table td span {
        color: var(--fincore-muted);
        line-height: 1.25;
    }

    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5),
    .data-table th:nth-child(6),
    .data-table td:nth-child(6) {
        min-width: 130px;
    }

.entity-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entity-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--fincore-blue);
    background: #dbeafe;
    font-size: 18px;
}

.entity-cell strong,
.entity-title {
    display: block;
    color: var(--fincore-text);
    font-weight: 850;
}

.entity-cell span,
.entity-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--fincore-muted);
    font-size: 12px;
}

.type-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 850;
}

.status-cell {
    min-width: 92px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-toggle {
    width: 36px;
    height: 20px;
    position: relative;
    display: inline-block;
    flex: 0 0 36px;
    border-radius: 999px;
    background: #cbd5e1;
}

    .status-toggle::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: white;
        transition: 150ms ease;
    }

    .status-toggle.active {
        background: var(--fincore-green);
    }

        .status-toggle.active::after {
            left: 19px;
        }

    .status-toggle.inactive {
        background: #cbd5e1;
    }

.status-cell strong {
    display: inline-block;
    color: var(--fincore-text);
    white-space: nowrap;
}

.empty-table,
.empty-state {
    padding: 34px 18px;
    text-align: center;
    color: var(--fincore-muted);
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: var(--fincore-muted);
    font-size: 13px;
}

/* =========================
   Ações da tabela
   ========================= */

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-table,
.action-button {
    min-width: 88px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--fincore-blue);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    transition: 150ms ease;
}

    .btn-table:hover,
    .action-button:hover {
        background: var(--fincore-blue-hover);
    }

    .action-button.edit {
        color: white;
        background: var(--fincore-blue);
    }

    .action-button.danger {
        color: white;
        background: var(--fincore-blue);
    }

        .action-button.danger:hover {
            background: var(--fincore-red);
        }

    .action-button.success {
        color: white;
        background: var(--fincore-green);
    }

        .action-button.success:hover {
            background: var(--fincore-green-hover);
        }

.table-actions .btn-table,
.table-actions .action-button {
    min-width: 92px;
    white-space: nowrap;
}

.data-table th:last-child,
.data-table td:last-child {
    min-width: 190px;
}

/* =========================
   Validação
   ========================= */

.validation-message {
    display: block;
    margin-top: 5px;
    color: var(--fincore-red);
    font-size: 12px;
}

.invalid {
    border-color: var(--fincore-red) !important;
}

/* =========================
   Erro Blazor
   ========================= */

#blazor-error-ui {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    background: var(--fincore-red);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

    #blazor-error-ui .reload {
        margin-left: 10px;
        color: white;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss {
        min-height: auto;
        margin-left: 10px;
        padding: 2px 6px;
        background: transparent;
    }

/* =========================
   Correções gerais
   ========================= */

.module-header h1,
.module-page h1 {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Quando o filter-card tiver campos diretos dentro dele */
.filter-card > .form-group,
.filter-card > .form-field {
    min-width: 0;
}

.filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(160px, 0.7fr) auto;
    gap: 1rem;
    align-items: end;
}

    .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action {
        display: flex;
        align-items: end;
        justify-content: flex-end;
    }

        .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action .btn-primary,
        .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action .new-unit-button {
            min-width: 180px;
            height: 56px;
            white-space: nowrap;
        }

/* =========================
   Responsividade
   ========================= */

.sidebar-overlay {
    display: none;
}

@media (max-width: 1500px) {
    .summary-card strong {
        font-size: 22px;
    }
}

@media (max-width: 1400px) {
    .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card),
    .vehicles-filter-card {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }

        .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action,
        .vehicles-filter-card .filter-action {
            justify-content: flex-start;
        }
}

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid,
    .accounts-filter-grid,
    .accounts-total-preview {
        grid-template-columns: 1fr 1fr;
    }

    .filter-action {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .fincore-sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
    }

        .fincore-sidebar.is-open {
            transform: translateX(0);
        }

    .fincore-workspace {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 950;
        display: block;
        border: 0;
        border-radius: 0;
        background: rgba(15, 23, 42, 0.55);
    }

    .fincore-content {
        padding: 20px 16px;
    }

    .header-subtitle {
        display: none;
    }

    .user-information {
        display: none;
    }

    .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card),
    .vehicles-filter-card,
    .accounts-filter-grid {
        grid-template-columns: 1fr;
    }

        .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action .btn-primary,
        .filter-card:not(.accounts-filter-card):not(.vehicles-filter-card) .filter-action .new-unit-button,
        .vehicles-filter-card .filter-action .btn-primary,
        .vehicles-filter-card .filter-action .new-unit-button {
            width: 100%;
        }
}

@media (max-width: 520px) {
    .fincore-header {
        padding: 0 14px;
    }

    .header-product {
        font-size: 16px;
    }

    .header-login {
        padding: 9px 14px;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 28px;
    }

    .summary-grid,
    .filter-grid,
    .accounts-filter-grid,
    .accounts-total-preview,
    .form-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .module-header {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-action,
    .accounts-filter-grid .filter-action {
        justify-content: stretch;
    }

        .filter-action .btn-primary,
        .accounts-filter-grid .filter-action .btn-primary {
            width: 100%;
        }

    .data-table {
        min-width: 900px;
    }

    .table-actions {
        flex-wrap: wrap;
    }

    .data-table th:last-child,
    .data-table td:last-child {
        min-width: 170px;
    }
}
