* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: #0f172a;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: #93c5fd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 32px;
    border-bottom: 1px solid #273449;
    background: #111827;
}

.topbar .brand {
    font-weight: 800;
    color: #f8fafc;
    font-size: 18px;
}

.topbar nav {
    display: flex;
    gap: 20px;
}

.topbar nav a {
    color: #cbd5e1;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 36px auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1,
.card h2 {
    margin-top: 0;
}

.page-header p {
    color: #94a3b8;
    margin-bottom: 0;
}

.title-row,
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card {
    background: #111827;
    border: 1px solid #273449;
    border-radius: 12px;
    padding: 22px;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 18px;
}

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

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

.section-gap {
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid #273449;
    text-align: left;
}

th {
    color: #94a3b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.button {
    appearance: none;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #f8fafc;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    background: #334155;
    text-decoration: none;
}

.button.primary {
    background: #2563eb;
    border-color: #2563eb;
}

.button.primary:hover {
    background: #1d4ed8;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.badge.ok {
    background: #064e3b;
    color: #a7f3d0;
}

.badge.muted {
    background: #334155;
    color: #cbd5e1;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-weight: 700;
}

.field small,
.muted-text {
    color: #94a3b8;
}

.field input,
.field select,
.readonly {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #f8fafc;
    font: inherit;
}

.readonly {
    color: #cbd5e1;
}

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

.alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.alert.error {
    background: #450a0a;
    border: 1px solid #991b1b;
}

.alert.success {
    background: #052e16;
    border: 1px solid #166534;
}

.alert ul {
    margin-bottom: 0;
}

.empty {
    text-align: center;
    padding: 38px;
}

dl {
    margin-bottom: 0;
}

dt {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 14px;
}

dt:first-child {
    margin-top: 0;
}

dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

code {
    color: #c4b5fd;
}

@media (max-width: 820px) {
    .grid-2,
    .grid-3,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

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

    .topbar {
        padding: 0 20px;
    }
}

.badge.warning {
    background: #78350f;
    color: #fde68a;
}


.badge.danger {
    background: #7f1d1d;
    color: #fecaca;
}

.table-subtext {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.operational-card {
    margin-bottom: 18px;
}

.operational-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.operational-header h2 {
    margin-bottom: 6px;
}

.operational-header p {
    margin: 0;
}

.operational-badge {
    font-size: 14px;
    padding: 7px 12px;
    white-space: nowrap;
}

.operational-grid {
    margin-top: 20px;
}

.metric-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.metric-value {
    margin-top: 5px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.operational-file {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .operational-header {
        flex-direction: column;
    }
}


.field input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
}

.alert.warning {
    background: #422006;
    border: 1px solid #a16207;
    color: #fde68a;
}

.status-value {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #f8fafc;
}


.topbar-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.button.compact {
    padding: 6px 10px;
    font-size: 13px;
}

.login-shell {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(440px, 100%);
}

.login-header {
    margin-bottom: 24px;
}

.login-header h1 {
    margin: 0 0 6px;
}

.login-button {
    width: 100%;
}

@media (max-width: 820px) {
    .topbar {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topbar-account {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}


.diagnostic-list {
    margin-top: 18px;
}

.diagnostic-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #273449;
}

.diagnostic-row:last-child {
    border-bottom: 0;
}

.diagnostic-detail {
    margin-top: 5px;
}

.diagnostic-path {
    max-width: 280px;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .diagnostic-row {
        flex-direction: column;
    }
}


/* Dashboard operacional */
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
}

.dashboard-header p {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 16px;
}

.dashboard-updated {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
}

.dashboard-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.dashboard-notice.warning {
    background: #422006;
    border: 1px solid #a16207;
    color: #fde68a;
}

.dashboard-notice a {
    color: #fef3c7;
    font-weight: 700;
    white-space: nowrap;
}

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

.dashboard-metric {
    min-height: 122px;
    padding: 18px 20px;
    border: 1px solid #273449;
    border-radius: 12px;
    background: #111827;
    position: relative;
    overflow: hidden;
}

.dashboard-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #475569;
}

.dashboard-metric.metric-ok::before {
    background: #10b981;
}

.dashboard-metric.metric-waiting::before {
    background: #f59e0b;
}

.dashboard-metric.metric-attention::before {
    background: #ef4444;
}

.dashboard-metric-label {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 14px;
}

.dashboard-metric-value {
    margin-top: 8px;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.dashboard-metric-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.dashboard-section-header h2 {
    margin: 0 0 5px;
}

.dashboard-section-header p {
    margin: 0;
}

.dashboard-operation {
    padding-bottom: 8px;
}

.dashboard-table-wrap {
    margin: 0 -8px;
}

.dashboard-table {
    min-width: 920px;
}

.dashboard-table th {
    padding-top: 10px;
    padding-bottom: 10px;
}

.dashboard-table td {
    vertical-align: middle;
    font-size: 14px;
}

.dashboard-client-name {
    color: #f8fafc;
    font-weight: 700;
}

.dashboard-client-name:hover {
    color: #93c5fd;
}

.dashboard-empty {
    padding: 28px;
}

.dashboard-empty h3 {
    margin-top: 0;
}

.dashboard-version {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

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

.health-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #273449;
    border-radius: 10px;
    background: #0f172a;
}

.health-name {
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.health-detail {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
}

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

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

@media (max-width: 620px) {
    .dashboard-header,
    .dashboard-section-header,
    .dashboard-notice {
        flex-direction: column;
    }

    .dashboard-metrics,
    .health-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metric {
        min-height: auto;
    }
}


.dashboard-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 10px 2px 0;
    border-top: 1px solid #273449;
    color: #64748b;
    font-size: 12px;
}

.dashboard-footer-note strong {
    color: #94a3b8;
}

.dashboard-footer-note a {
    color: #94a3b8;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-footer-note a:hover {
    color: #cbd5e1;
}

@media (max-width: 620px) {
    .dashboard-footer-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* Configurações de relatórios */
.report-section-description {
    margin: 4px 0 0;
}

.report-settings-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.report-logo-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.report-logo-heading {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.report-logo-heading strong {
    color: #f8fafc;
    font-size: 14px;
}


.field input[type="file"] {
    padding: 6px;
    color: #cbd5e1;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    margin-right: 10px;
    border: 1px solid #475569;
    border-radius: 7px;
    background: #1e293b;
    color: #f8fafc;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button:hover {
    background: #334155;
}

.field input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    border: 1px solid #475569;
    border-radius: 7px;
    background: #1e293b;
    color: #f8fafc;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.report-logo-preview {
    min-height: 140px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px dashed #475569;
    border-radius: 10px;
    background: #0f172a;
}

.report-logo-preview img {
    display: block;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.report-logo-placeholder {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
}

.report-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    cursor: pointer;
}

.report-checkbox input {
    flex: 0 0 auto;
}

.report-options {
    padding-top: 18px;
    border-top: 1px solid #273449;
}

.report-options h3 {
    margin: 0 0 14px;
    font-size: 15px;
}

.report-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
}

.report-options-note {
    margin: 14px 0 0;
    font-size: 13px;
}

.color-field {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field input[type="color"] {
    width: 54px;
    min-height: 43px;
    padding: 4px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .report-settings-layout {
        grid-template-columns: 1fr;
    }

    .report-logo-panel {
        max-width: 420px;
    }

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

@media (max-width: 620px) {
    .report-checkbox-grid {
        grid-template-columns: 1fr;
    }
}


.report-preview-note {
    margin: 10px 0 0;
    font-size: 12px;
}

/* Tela de login */
.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #08111f;
}

.login-page-main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr);
    background: #08111f;
}

.login-brand-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(48px, 7vw, 104px);
    border-right: 1px solid rgba(148, 163, 184, .14);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .8)),
        radial-gradient(circle at 18% 16%, rgba(59, 130, 246, .16), transparent 34%);
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .16;
    background-image:
        linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, #000, transparent 80%);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    width: min(520px, 66vw);
    aspect-ratio: 1;
    left: -18%;
    bottom: -28%;
    z-index: -2;
    border-radius: 50%;
    background: var(--login-accent);
    opacity: .12;
    filter: blur(70px);
}

.login-brand-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .13);
}

.login-brand-orb-one {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -100px;
}

.login-brand-orb-two {
    width: 180px;
    height: 180px;
    right: 13%;
    bottom: 10%;
}

.login-brand-content {
    width: min(620px, 100%);
    margin: 0 auto;
}

.login-logo-frame {
    width: fit-content;
    max-width: 340px;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.login-logo-frame img {
    display: block;
    max-width: 300px;
    max-height: 78px;
    object-fit: contain;
}

.login-logo-fallback {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: var(--login-accent);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 38px;
    font-weight: 900;
}

.login-brand-name {
    margin-top: 28px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.login-brand-content h1 {
    max-width: 760px;
    margin: 18px 0 0;
    color: #f8fafc;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.login-brand-text {
    max-width: 650px;
    margin: 24px 0 0;
    color: #aebed0;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.65;
}

.login-form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(32px, 6vw, 84px);
    background:
        radial-gradient(circle at 80% 8%, rgba(37, 99, 235, .08), transparent 28%),
        linear-gradient(180deg, #0b1424 0%, #08111f 100%);
}

.login-form-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: 9%;
    right: 8%;
    border-radius: 50%;
    background: var(--login-accent);
    opacity: .08;
    filter: blur(80px);
    pointer-events: none;
}

.login-form-wrap {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
}

.login-card {
    width: 100%;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 22px;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.login-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(30, 41, 59, .78);
    color: var(--login-accent);
}

.login-card-icon svg,
.login-input-icon svg,
.login-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card-icon svg {
    width: 23px;
    height: 23px;
}

.login-header {
    margin-bottom: 28px;
}

.login-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.login-header p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.55;
}

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

.login-card .field {
    gap: 8px;
}

.login-card .field label {
    color: #cbd5e1;
    font-size: 13px;
    letter-spacing: .01em;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.login-input-icon svg {
    width: 19px;
    height: 19px;
}

.login-card .field input {
    min-height: 50px;
    padding: 12px 14px 12px 46px;
    border-color: #334155;
    border-radius: 11px;
    background: rgba(8, 17, 31, .78);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-card .field input:hover {
    border-color: #475569;
}

.login-card .field input:focus {
    outline: none;
    border-color: var(--login-accent);
    background: #0b1424;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.login-button {
    width: 100%;
    min-height: 50px;
    gap: 10px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: var(--login-accent) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
    font-weight: 800;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 18px;
    height: 18px;
}

.login-card .alert {
    margin-bottom: 20px;
}

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

    .login-brand-panel {
        min-height: auto;
        padding: 42px clamp(24px, 7vw, 64px);
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .14);
    }

    .login-brand-content h1 {
        max-width: 720px;
        font-size: clamp(34px, 7vw, 52px);
    }

    .login-brand-text {
        max-width: 720px;
    }

    .login-form-panel {
        min-height: 560px;
        padding: 48px 24px 64px;
    }
}

@media (max-width: 620px) {
    .login-brand-panel {
        padding: 30px 20px 34px;
    }

    .login-logo-frame {
        max-width: 280px;
        min-height: 76px;
        padding: 12px 16px;
        border-radius: 14px;
    }

    .login-logo-frame img {
        max-width: 245px;
        max-height: 62px;
    }

    .login-logo-fallback {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 30px;
    }

    .login-brand-name {
        margin-top: 22px;
    }

    .login-brand-content h1 {
        margin-top: 12px;
        font-size: 36px;
    }

    .login-brand-text {
        margin-top: 16px;
        font-size: 16px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 34px 16px 42px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 18px;
    }
}

/* v0.23.0 — shell lateral e dashboard premium */
body.dashboard-body {
    background:
        radial-gradient(circle at 78% -8%, rgba(37, 99, 235, .22), transparent 34%),
        radial-gradient(circle at 12% 105%, rgba(29, 78, 216, .13), transparent 28%),
        #07111f;
}

body.dashboard-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(96, 165, 250, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 18px;
    border-right: 1px solid rgba(96, 165, 250, .16);
    background:
        radial-gradient(circle at 50% 88%, rgba(37, 99, 235, .17), transparent 28%),
        linear-gradient(180deg, rgba(7, 18, 36, .99), rgba(5, 15, 31, .99));
    box-shadow: 22px 0 60px rgba(0, 0, 0, .18);
}

.sidebar::after {
    content: "";
    position: absolute;
    left: -15%;
    right: -10%;
    bottom: 18%;
    height: 150px;
    opacity: .35;
    pointer-events: none;
    border-top: 1px solid rgba(59, 130, 246, .55);
    border-radius: 50%;
    transform: rotate(-10deg);
    box-shadow:
        0 -15px 45px rgba(37, 99, 235, .15),
        0 -35px 85px rgba(37, 99, 235, .08);
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 4px 10px 18px;
    color: #f8fafc;
}

.sidebar-brand:hover {
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #58a6ff;
    background:
        radial-gradient(circle at 35% 25%, rgba(96, 165, 250, .28), transparent 55%),
        rgba(16, 38, 77, .75);
    border: 1px solid rgba(59, 130, 246, .25);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .18);
}

.sidebar-brand-icon svg {
    width: 33px;
    height: 33px;
}

.sidebar-brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.sidebar-brand-title strong {
    color: #2f7dff;
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.sidebar-link,
.sidebar-logout {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #a9bde0;
    font: inherit;
    cursor: pointer;
    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.sidebar-link:hover,
.sidebar-logout:hover {
    color: #eef6ff;
    background: rgba(22, 44, 82, .6);
    border-color: rgba(96, 165, 250, .12);
    text-decoration: none;
}

.sidebar-link.active {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(29, 78, 216, .76), rgba(37, 99, 235, .4)),
        rgba(17, 41, 81, .78);
    border-color: rgba(96, 165, 250, .56);
    box-shadow:
        inset 0 0 24px rgba(59, 130, 246, .12),
        0 10px 28px rgba(29, 78, 216, .16);
}

.sidebar-link.active::after {
    content: "";
    width: 3px;
    height: 25px;
    margin-left: auto;
    border-radius: 99px;
    background: #60a5fa;
    box-shadow: 0 0 16px rgba(96, 165, 250, .9);
}

.sidebar-link-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
}

.sidebar-link-icon svg {
    width: 21px;
    height: 21px;
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 14px 4px 0;
    border-top: 1px solid rgba(96, 165, 250, .12);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 10px 15px;
}

.sidebar-user-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #e8f2ff;
    font-weight: 800;
    background: linear-gradient(145deg, #294b80, #162f58);
    border: 1px solid rgba(147, 197, 253, .2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.sidebar-user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-user-text strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text small {
    color: #8095b8;
    font-size: 12px;
}

.sidebar-logout {
    min-height: 46px;
    padding-left: 11px;
    color: #8ea5ca;
}

.app-main {
    min-width: 0;
}

.app-content {
    position: relative;
    width: min(100%, 1660px);
    margin: 0 auto;
    padding: 32px 34px 42px;
}

.app-shell .card {
    border-color: rgba(88, 124, 181, .28);
    background:
        linear-gradient(180deg, rgba(14, 30, 58, .92), rgba(8, 22, 43, .92));
    box-shadow: 0 20px 48px rgba(0, 0, 0, .16);
}

.app-shell .page-header h1 {
    letter-spacing: -.025em;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-hero {
    position: relative;
    isolation: isolate;
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 8px 4px 10px;
    margin-bottom: 2px;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 720px;
    height: 300px;
    top: -150px;
    right: -80px;
    border-radius: 50%;
    opacity: .22;
    background: #2563eb;
    filter: blur(105px);
}

.dashboard-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-hero-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #60a5fa;
    background:
        radial-gradient(circle at 35% 28%, rgba(96, 165, 250, .26), transparent 48%),
        rgba(8, 28, 59, .76);
    border: 1px solid rgba(59, 130, 246, .25);
    box-shadow:
        inset 0 0 28px rgba(37, 99, 235, .08),
        0 16px 40px rgba(0, 0, 0, .2);
}

.dashboard-hero-icon svg {
    width: 48px;
    height: 48px;
}

.dashboard-hero h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(34px, 3vw, 50px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.dashboard-hero p {
    margin: 8px 0 0;
    color: #a7bad9;
    font-size: 17px;
}

.dashboard-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #7189ae;
    font-size: 12px;
}

.dashboard-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 14px rgba(96, 165, 250, .95);
}

.dashboard-new-client {
    min-height: 54px;
    gap: 10px;
    padding-inline: 22px;
    border-radius: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow:
        0 12px 30px rgba(37, 99, 235, .28),
        inset 0 1px rgba(255, 255, 255, .1);
}

.dashboard-new-client span {
    font-size: 22px;
    line-height: 1;
}

.dashboard-metrics.dashboard-metrics-premium {
    gap: 16px;
}

.dashboard-metrics-premium .dashboard-metric {
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    border: 1px solid rgba(88, 124, 181, .28);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(59, 130, 246, .09), transparent 35%),
        linear-gradient(145deg, rgba(13, 31, 61, .97), rgba(8, 21, 42, .97));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}

.dashboard-metrics-premium .dashboard-metric::before {
    content: none;
}

.dashboard-metrics-premium .dashboard-metric::after {
    content: "";
    position: absolute;
    inset: auto -20% -75% 35%;
    height: 170px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(96, 165, 250, .07), transparent 68%);
}

.dashboard-metrics-premium .metric-clients {
    border-color: rgba(59, 130, 246, .62);
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, .08),
        0 16px 38px rgba(0, 0, 0, .16);
}

.dashboard-metrics-premium .metric-ok {
    border-color: rgba(16, 185, 129, .55);
    background:
        radial-gradient(circle at 85% 20%, rgba(16, 185, 129, .1), transparent 36%),
        linear-gradient(145deg, rgba(10, 42, 57, .96), rgba(8, 24, 42, .97));
}

.dashboard-metrics-premium .metric-waiting {
    border-color: rgba(245, 158, 11, .55);
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, .08), transparent 36%),
        linear-gradient(145deg, rgba(43, 35, 25, .93), rgba(11, 24, 43, .97));
}

.dashboard-metrics-premium .metric-attention {
    border-color: rgba(244, 63, 94, .48);
    background:
        radial-gradient(circle at 85% 20%, rgba(244, 63, 94, .09), transparent 36%),
        linear-gradient(145deg, rgba(47, 23, 42, .92), rgba(13, 22, 42, .97));
}

.dashboard-metric-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #94c5ff;
    background: rgba(37, 99, 235, .18);
    box-shadow:
        inset 0 0 0 1px rgba(96, 165, 250, .1),
        0 10px 26px rgba(37, 99, 235, .12);
}

.metric-ok .dashboard-metric-icon {
    color: #5ee5b4;
    background: rgba(16, 185, 129, .18);
    box-shadow: 0 10px 28px rgba(16, 185, 129, .12);
}

.metric-waiting .dashboard-metric-icon {
    color: #fbbf24;
    background: rgba(245, 158, 11, .15);
    box-shadow: 0 10px 28px rgba(245, 158, 11, .11);
}

.metric-attention .dashboard-metric-icon {
    color: #fb7185;
    background: rgba(244, 63, 94, .16);
    box-shadow: 0 10px 28px rgba(244, 63, 94, .1);
}

.dashboard-metric-icon svg {
    width: 29px;
    height: 29px;
}

.dashboard-metrics-premium .dashboard-metric-label {
    color: #dce8fa;
    font-size: 13px;
    font-weight: 750;
}

.dashboard-metrics-premium .dashboard-metric-value {
    margin-top: 5px;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.035em;
}

.dashboard-metrics-premium .dashboard-metric-subtitle {
    margin-top: 8px;
    color: #7790b6;
    font-size: 12px;
}

.dashboard-metric-watermark {
    position: absolute;
    right: 15px;
    bottom: -8px;
    color: rgba(96, 165, 250, .07);
    font-size: 76px;
    font-weight: 900;
    letter-spacing: -.08em;
    pointer-events: none;
}

.dashboard-panel {
    margin-top: 0;
    padding: 22px 18px 16px;
    border-radius: 18px;
}

.dashboard-section-header {
    align-items: center;
    margin-bottom: 18px;
}

.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-section-title h2 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 20px;
}

.dashboard-section-title p {
    margin: 0;
}

.dashboard-section-icon,
.health-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #93c5fd;
    background:
        linear-gradient(145deg, rgba(37, 99, 235, .34), rgba(29, 78, 216, .18));
    border: 1px solid rgba(59, 130, 246, .18);
    box-shadow: inset 0 0 18px rgba(37, 99, 235, .08);
}

.dashboard-section-icon svg,
.health-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-section-action {
    border-radius: 10px;
}

.dashboard-table-wrap {
    margin: 0;
    border: 1px solid rgba(88, 124, 181, .22);
    border-radius: 13px;
    overflow: auto;
    background: rgba(4, 15, 31, .34);
}

.dashboard-table {
    min-width: 940px;
}

.dashboard-table th {
    padding: 13px 14px;
    color: #8198bd;
    font-size: 11px;
    border-bottom-color: rgba(88, 124, 181, .24);
    background: rgba(24, 48, 88, .3);
}

.dashboard-table td {
    padding: 15px 14px;
    color: #cbd8eb;
    border-bottom-color: rgba(88, 124, 181, .16);
}

.dashboard-table tbody tr {
    transition: background .15s ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(30, 64, 112, .17);
}

.dashboard-client-name {
    color: #f1f6fd;
    font-weight: 750;
}

.dashboard-client-name:hover {
    color: #7db8ff;
}

.dashboard-table .badge,
.health-grid-premium .badge {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.dashboard-table .badge.ok,
.health-grid-premium .badge.ok {
    background: linear-gradient(180deg, rgba(5, 150, 105, .8), rgba(4, 100, 78, .76));
    color: #d5fff1;
}

.dashboard-table .badge.warning,
.health-grid-premium .badge.warning {
    background: linear-gradient(180deg, rgba(217, 119, 6, .9), rgba(146, 64, 14, .82));
}

.dashboard-table .badge.danger,
.health-grid-premium .badge.danger {
    background: linear-gradient(180deg, rgba(220, 38, 38, .78), rgba(127, 29, 29, .8));
}

.health-grid.health-grid-premium {
    gap: 12px;
}

.health-grid-premium .health-item {
    min-height: 102px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border-color: rgba(88, 124, 181, .22);
    background:
        linear-gradient(145deg, rgba(9, 25, 49, .9), rgba(6, 18, 36, .86));
}

.health-grid-premium .health-icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 11px;
}

.health-grid-premium .health-icon svg {
    width: 21px;
    height: 21px;
}

.health-grid-premium .health-name {
    margin-bottom: 8px;
    color: #9bb0cf;
    font-size: 10px;
}

.health-grid-premium .health-detail {
    margin-top: 6px;
    color: #7288aa;
    font-size: 11px;
}

.dashboard-version {
    color: #6885b4;
    font-size: 12px;
}

.dashboard-footer-note {
    margin-top: 0;
    padding-bottom: 4px;
}

@media (max-width: 1240px) {
    .app-shell {
        grid-template-columns: 238px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 12px;
    }

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

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

@media (max-width: 920px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 14px 14px 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(96, 165, 250, .16);
    }

    .sidebar::after {
        display: none;
    }

    .sidebar-brand {
        min-height: 58px;
        padding-bottom: 8px;
    }

    .sidebar-brand-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .sidebar-brand-icon svg {
        width: 28px;
        height: 28px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        margin-top: 8px;
    }

    .sidebar-link {
        min-height: 48px;
        justify-content: center;
        padding: 0 9px;
    }

    .sidebar-link.active::after {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .app-content {
        padding: 24px 18px 34px;
    }

    .dashboard-hero {
        align-items: flex-start;
    }

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

@media (max-width: 680px) {
    .sidebar-brand-title {
        font-size: 17px;
    }

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

    .sidebar-link {
        justify-content: flex-start;
    }

    .dashboard-hero {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding-top: 2px;
    }

    .dashboard-hero-main {
        align-items: flex-start;
    }

    .dashboard-hero-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .dashboard-hero-icon svg {
        width: 36px;
        height: 36px;
    }

    .dashboard-hero h1 {
        font-size: 31px;
    }

    .dashboard-hero p {
        font-size: 15px;
    }

    .dashboard-new-client {
        width: 100%;
    }

    .dashboard-metrics.dashboard-metrics-premium,
    .health-grid.health-grid-premium {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics-premium .dashboard-metric {
        min-height: 118px;
    }

    .dashboard-section-header {
        align-items: flex-start;
    }

    .dashboard-section-title {
        align-items: flex-start;
    }

    .dashboard-panel {
        padding: 17px 13px 13px;
    }
}

/* v0.23.1 — normalização dos ícones SVG */
.sidebar-brand-icon svg,
.sidebar-link-icon svg,
.dashboard-hero-icon svg,
.dashboard-metric-icon svg,
.dashboard-section-icon svg,
.health-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sidebar-brand-icon svg ellipse,
.dashboard-hero-icon svg ellipse,
.health-icon svg ellipse {
    fill: none;
}

.sidebar-link,
.sidebar-logout,
.sidebar-brand-icon,
.dashboard-hero-icon,
.dashboard-metric-icon,
.dashboard-section-icon,
.health-icon {
    color-scheme: dark;
}

.dashboard-metric-icon svg circle,
.dashboard-section-icon svg rect,
.health-icon svg rect,
.sidebar-link-icon svg circle {
    fill: none;
}

/* v0.23.2 — acabamento responsivo sem barras horizontais */
body.dashboard-body {
    overflow-x: hidden;
}

.app-main,
.app-content,
.dashboard-page,
.dashboard-panel,
.dashboard-metric,
.health-item {
    min-width: 0;
    max-width: 100%;
}

.app-content {
    width: 100%;
    max-width: 1900px;
    padding-left: clamp(18px, 2.25vw, 38px);
    padding-right: clamp(18px, 2.25vw, 38px);
}

.dashboard-metrics.dashboard-metrics-premium {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.dashboard-metrics-premium .dashboard-metric {
    min-height: clamp(142px, 10vw, 158px);
    padding: clamp(18px, 1.8vw, 24px);
}

.dashboard-metric-icon {
    width: clamp(58px, 4.4vw, 66px);
    height: clamp(58px, 4.4vw, 66px);
    flex-basis: clamp(58px, 4.4vw, 66px);
}

.dashboard-metrics-premium .dashboard-metric-value {
    font-size: clamp(38px, 3vw, 48px);
}

.dashboard-metric-watermark {
    right: clamp(12px, 1.5vw, 22px);
    bottom: -10px;
    font-size: clamp(64px, 5.8vw, 88px);
}

.health-grid.health-grid-premium {
    grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
}

.dashboard-hero {
    gap: clamp(18px, 2vw, 34px);
}

.dashboard-hero h1 {
    font-size: clamp(34px, 3.3vw, 54px);
}

.dashboard-table-wrap {
    overflow-x: visible;
}

.dashboard-table {
    width: 100%;
    min-width: 0;
}

.dashboard-table th,
.dashboard-table td {
    overflow-wrap: anywhere;
}

@media (max-width: 1320px) and (min-width: 981px) {
    .dashboard-table th:nth-child(3),
    .dashboard-table td:nth-child(3),
    .dashboard-table th:nth-child(5),
    .dashboard-table td:nth-child(5) {
        display: none;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    .dashboard-table th {
        font-size: 10px;
    }
}

@media (max-width: 980px) {
    .dashboard-table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .dashboard-table,
    .dashboard-table tbody,
    .dashboard-table tr,
    .dashboard-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tbody {
        display: grid;
        gap: 12px;
    }

    .dashboard-table tbody tr {
        overflow: hidden;
        border: 1px solid rgba(88, 124, 181, .22);
        border-radius: 14px;
        background: rgba(5, 17, 34, .52);
    }

    .dashboard-table tbody td,
    .dashboard-table tbody td:nth-child(3),
    .dashboard-table tbody td:nth-child(5) {
        display: grid;
        grid-template-columns: minmax(108px, .75fr) minmax(0, 1.25fr);
        align-items: center;
        gap: 12px;
        padding: 11px 13px;
        border-bottom: 1px solid rgba(88, 124, 181, .14);
        text-align: left;
    }

    .dashboard-table tbody td:last-child {
        border-bottom: 0;
    }

    .dashboard-table tbody td::before {
        content: attr(data-label);
        color: #7189ae;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .dashboard-table .badge {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .dashboard-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .dashboard-section-header .actions {
        width: 100%;
    }

    .dashboard-section-header .actions .button {
        flex: 1 1 0;
    }

    .dashboard-hero-main {
        min-width: 0;
    }

    .dashboard-updated {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .app-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-hero-main {
        gap: 12px;
    }

    .dashboard-hero-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .dashboard-hero-icon svg {
        width: 31px;
        height: 31px;
    }

    .dashboard-hero h1 {
        font-size: 28px;
    }

    .dashboard-metrics-premium .dashboard-metric {
        min-height: 112px;
    }

    .dashboard-table tbody td,
    .dashboard-table tbody td:nth-child(3),
    .dashboard-table tbody td:nth-child(5) {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 9px;
        padding: 10px 11px;
    }

    .dashboard-panel {
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* v0.24.0 — identidade visual unificada das páginas administrativas */
body.admin-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% -8%, rgba(37, 99, 235, .18), transparent 34%),
        radial-gradient(circle at 8% 105%, rgba(29, 78, 216, .11), transparent 28%),
        #07111f;
}

.admin-page-header {
    align-items: center;
    margin-bottom: 22px;
    padding: 8px 4px 2px;
}

.admin-page-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-page-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #93c5fd;
    background:
        radial-gradient(circle at 30% 25%, rgba(96, 165, 250, .24), transparent 55%),
        linear-gradient(145deg, rgba(37, 99, 235, .28), rgba(16, 37, 73, .7));
    border: 1px solid rgba(96, 165, 250, .24);
    box-shadow:
        inset 0 0 22px rgba(37, 99, 235, .08),
        0 14px 32px rgba(0, 0, 0, .18);
}

.admin-page-icon svg,
.admin-empty-icon svg,
.diagnostic-summary-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-page-header h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 2.7vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.admin-page-header p {
    margin-top: 7px;
    color: #91a7ca;
    font-size: 15px;
}

.admin-primary-action,
.admin-secondary-action {
    min-height: 48px;
    gap: 8px;
    border-radius: 12px;
    font-weight: 750;
}

.button-plus {
    font-size: 21px;
    line-height: 1;
}

.admin-panel,
.settings-panel {
    border-radius: 18px;
    border-color: rgba(88, 124, 181, .26) !important;
    background:
        linear-gradient(180deg, rgba(13, 29, 56, .92), rgba(7, 20, 40, .92)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .14) !important;
}

.table-primary-link {
    color: #f1f6fd;
    font-weight: 750;
}

.table-primary-link:hover {
    color: #7db8ff;
}

.responsive-table-wrap {
    max-width: 100%;
    overflow-x: visible;
    border: 1px solid rgba(88, 124, 181, .2);
    border-radius: 13px;
    background: rgba(4, 15, 31, .3);
}

.responsive-table {
    width: 100%;
    min-width: 0;
}

.responsive-table th {
    padding: 12px 13px;
    color: #8198bd;
    font-size: 10px;
    border-bottom-color: rgba(88, 124, 181, .22);
    background: rgba(24, 48, 88, .28);
}

.responsive-table td {
    padding: 14px 13px;
    color: #cbd8eb;
    font-size: 13px;
    border-bottom-color: rgba(88, 124, 181, .14);
    overflow-wrap: anywhere;
}

.responsive-table tbody tr {
    transition: background .15s ease;
}

.responsive-table tbody tr:hover {
    background: rgba(30, 64, 112, .16);
}

.admin-empty-state {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
}

.admin-empty-state h2,
.admin-empty-state p {
    margin: 0;
}

.admin-empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 20px;
    color: #8fc2ff;
    background: rgba(37, 99, 235, .16);
    border: 1px solid rgba(96, 165, 250, .18);
}

.admin-form-panel {
    max-width: 1180px;
    padding: clamp(20px, 2.4vw, 30px);
    gap: 22px;
}

.app-shell .field label {
    color: #d7e2f3;
    font-size: 13px;
}

.app-shell .field small {
    color: #7087ad;
    line-height: 1.45;
}

.app-shell .field input,
.app-shell .field select,
.app-shell .readonly {
    min-height: 47px;
    border-color: rgba(88, 124, 181, .3);
    border-radius: 11px;
    background: rgba(5, 16, 33, .74);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.app-shell .field input:hover,
.app-shell .field select:hover {
    border-color: rgba(96, 165, 250, .42);
}

.app-shell .field input:focus,
.app-shell .field select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, .72);
    background: rgba(6, 19, 39, .95);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.admin-readonly {
    display: flex;
    align-items: center;
}

.admin-form-actions {
    justify-content: flex-end;
    padding-top: 5px;
    border-top: 1px solid rgba(88, 124, 181, .13);
}

.client-detail-header .title-row h1 {
    margin-bottom: 0;
}

.admin-header-actions {
    justify-content: flex-end;
}

.operational-card-premium {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 2vw, 28px);
}

.operational-card-premium::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -170px;
    right: -80px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .12);
    filter: blur(35px);
    pointer-events: none;
}

.operational-card-premium .operational-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 12px;
}

.operational-card-premium .operational-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(88, 124, 181, .17);
    border-radius: 12px;
    background: rgba(4, 16, 33, .34);
}

.operational-card-premium .metric-value {
    overflow-wrap: anywhere;
}

.admin-info-card {
    min-width: 0;
}

.admin-info-card h2,
.history-panel h2,
.settings-panel h2,
.diagnostics-server-panel h2,
.diagnostics-clients-panel h2,
.diagnostics-note-panel h2 {
    color: #f3f7fd;
    letter-spacing: -.015em;
}

.admin-info-card dl {
    margin-top: 16px;
}

.admin-info-card dt {
    color: #7289ad;
}

.admin-info-card dd {
    color: #dbe6f5;
}

.history-filename {
    max-width: 320px;
    overflow-wrap: anywhere;
}

.settings-page .settings-panel {
    padding: clamp(20px, 2.1vw, 28px);
}

.settings-page .settings-panel + .settings-panel,
.settings-page form + form {
    margin-top: 18px;
}

.settings-page .settings-panel > h2,
.settings-page .settings-panel > .title-row {
    margin-bottom: 8px;
}

.settings-page .settings-panel .title-row {
    align-items: flex-start;
    justify-content: space-between;
}

.settings-page .report-logo-preview {
    border-color: rgba(88, 124, 181, .28);
    border-radius: 14px;
    background: rgba(5, 16, 33, .6);
}

.settings-page .report-options {
    border-top-color: rgba(88, 124, 181, .16);
}

.settings-page .report-checkbox {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(5, 16, 33, .32);
}

.settings-page .actions {
    gap: 9px;
}

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

.admin-section-heading h2 {
    margin: 0 0 5px;
}

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

.diagnostics-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.diagnostic-summary {
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.diagnostic-summary::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -55px;
    bottom: -85px;
    border-radius: 50%;
    opacity: .08;
    background: currentColor;
}

.diagnostic-summary h2 {
    margin: 0 0 5px;
    font-size: 13px;
}

.diagnostic-summary .status-value {
    margin: 0;
    font-size: 38px;
}

.diagnostic-summary .muted-text {
    margin: 6px 0 0;
    font-size: 12px;
}

.diagnostic-summary-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.diagnostic-summary-ok {
    color: #67e8b9;
    border-color: rgba(16, 185, 129, .36) !important;
}

.diagnostic-summary-ok .diagnostic-summary-icon {
    background: rgba(16, 185, 129, .14);
}

.diagnostic-summary-pending {
    color: #facc6b;
    border-color: rgba(245, 158, 11, .34) !important;
}

.diagnostic-summary-pending .diagnostic-summary-icon {
    background: rgba(245, 158, 11, .13);
}

.diagnostic-summary-attention {
    color: #fb8798;
    border-color: rgba(244, 63, 94, .32) !important;
}

.diagnostic-summary-attention .diagnostic-summary-icon {
    background: rgba(244, 63, 94, .13);
}

.diagnostics-server-panel .diagnostic-row {
    padding: 15px 4px;
    border-bottom-color: rgba(88, 124, 181, .14);
}

.diagnostics-server-panel .diagnostic-row strong {
    color: #eaf1fb;
}

.diagnostics-note-panel {
    border-left: 3px solid rgba(96, 165, 250, .52) !important;
}

@media (max-width: 1320px) and (min-width: 981px) {
    .clients-table th:nth-child(2),
    .clients-table td:nth-child(2),
    .clients-table th:nth-child(4),
    .clients-table td:nth-child(4),
    .clients-table th:nth-child(5),
    .clients-table td:nth-child(5) {
        display: none;
    }

    .responsive-table th,
    .responsive-table td {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

    .responsive-table th {
        font-size: 9px;
    }
}

@media (max-width: 980px) {
    .admin-page-header {
        align-items: flex-start;
    }

    .responsive-table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        display: grid;
        gap: 12px;
    }

    .responsive-table tbody tr {
        overflow: hidden;
        border: 1px solid rgba(88, 124, 181, .22);
        border-radius: 14px;
        background: rgba(5, 17, 34, .5);
    }

    .responsive-table tbody td,
    .clients-table tbody td:nth-child(2),
    .clients-table tbody td:nth-child(4),
    .clients-table tbody td:nth-child(5) {
        display: grid;
        grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr);
        align-items: center;
        gap: 12px;
        padding: 11px 13px;
        border-bottom: 1px solid rgba(88, 124, 181, .13);
        text-align: left;
    }

    .responsive-table tbody td:last-child {
        border-bottom: 0;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        color: #7189ae;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .responsive-table .badge {
        justify-self: start;
    }

    .diagnostic-path,
    .history-filename {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .admin-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .admin-primary-action,
    .admin-secondary-action {
        width: 100%;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .admin-header-actions > * {
        flex: 1 1 auto;
    }

    .admin-header-actions form .button {
        width: 100%;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .admin-form-actions .button {
        width: 100%;
    }

    .settings-page .settings-panel .actions {
        align-items: stretch;
    }

    .settings-page .settings-panel .actions .button {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .admin-page-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .admin-page-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 15px;
    }

    .admin-page-icon svg {
        width: 23px;
        height: 23px;
    }

    .admin-page-header h1 {
        font-size: 28px;
    }

    .responsive-table tbody td,
    .clients-table tbody td:nth-child(2),
    .clients-table tbody td:nth-child(4),
    .clients-table tbody td:nth-child(5) {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 9px;
        padding: 10px 11px;
    }

    .diagnostic-summary {
        min-height: 118px;
    }
}

/* v0.24.1 — tipografia fluida da interface administrativa */
.admin-body .app-shell {
    font-size: clamp(14px, calc(10px + 0.32vw), 16px);
}

.admin-body .app-content {
    width: 100%;
    max-width: 2000px;
    padding-left: clamp(16px, 2.2vw, 42px);
    padding-right: clamp(16px, 2.2vw, 42px);
}

.admin-body .sidebar-link,
.admin-body .sidebar-logout {
    font-size: clamp(13px, calc(9px + 0.34vw), 15.5px);
}

.admin-body .sidebar-brand-title {
    font-size: clamp(18px, calc(12px + 0.45vw), 22px);
}

.admin-body .sidebar-user-text strong {
    font-size: clamp(13px, calc(9px + 0.3vw), 15px);
}

.admin-body .sidebar-user-text small {
    font-size: clamp(11.5px, calc(8px + 0.24vw), 13px);
}

.admin-body .admin-page-header h1 {
    font-size: clamp(30px, calc(18px + 1.2vw), 44px);
}

.admin-body .admin-page-header p {
    font-size: clamp(14px, calc(9px + 0.42vw), 17px);
    line-height: 1.5;
}

.admin-body .button {
    font-size: clamp(13px, calc(9px + 0.33vw), 15px);
}

.admin-body .badge {
    padding: clamp(4px, 0.34vw, 6px) clamp(9px, 0.62vw, 12px);
    font-size: clamp(11.5px, calc(8px + 0.28vw), 13.5px);
}

.admin-body .responsive-table th {
    padding:
        clamp(11px, 0.72vw, 15px)
        clamp(10px, 0.75vw, 15px);
    font-size: clamp(10.5px, calc(7px + 0.27vw), 12.5px);
    line-height: 1.35;
}

.admin-body .responsive-table td {
    padding:
        clamp(13px, 0.92vw, 18px)
        clamp(10px, 0.82vw, 16px);
    font-size: clamp(13px, calc(8.5px + 0.38vw), 16px);
    line-height: 1.45;
}

.admin-body .responsive-table .table-primary-link {
    font-size: clamp(14px, calc(9px + 0.4vw), 16.5px);
}

.admin-body .responsive-table code,
.admin-body .responsive-table .table-subtext {
    font-size: clamp(11.5px, calc(7.5px + 0.32vw), 13.5px);
}

.admin-body .settings-panel h2,
.admin-body .admin-info-card h2,
.admin-body .history-panel h2,
.admin-body .diagnostics-server-panel h2,
.admin-body .diagnostics-clients-panel h2,
.admin-body .diagnostics-note-panel h2 {
    font-size: clamp(18px, calc(12px + 0.48vw), 22px);
}

.admin-body .field label,
.admin-body .report-logo-heading strong {
    font-size: clamp(13px, calc(9px + 0.31vw), 15px);
}

.admin-body .field input,
.admin-body .field select,
.admin-body .readonly {
    font-size: clamp(13px, calc(9px + 0.32vw), 15.5px);
}

.admin-body .field small,
.admin-body .muted-text,
.admin-body .report-options-note,
.admin-body .report-preview-note {
    font-size: clamp(12px, calc(8px + 0.3vw), 14px);
}

.admin-body .metric-label,
.admin-body dt,
.admin-body .health-name {
    font-size: clamp(11.5px, calc(7.5px + 0.28vw), 13px);
}

.admin-body .metric-value,
.admin-body dd {
    font-size: clamp(14px, calc(9px + 0.4vw), 17px);
}

@media (min-width: 1700px) {
    .admin-body .responsive-table td {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .admin-body .clients-list-panel,
    .admin-body .diagnostics-clients-panel,
    .admin-body .history-panel {
        padding: clamp(22px, 1.5vw, 30px);
    }
}

@media (max-width: 980px) {
    .admin-body .responsive-table tbody td,
    .admin-body .clients-table tbody td:nth-child(2),
    .admin-body .clients-table tbody td:nth-child(4),
    .admin-body .clients-table tbody td:nth-child(5) {
        font-size: clamp(13.5px, calc(11px + 0.7vw), 15px);
    }

    .admin-body .responsive-table tbody td::before {
        font-size: clamp(10.5px, calc(8.5px + 0.55vw), 12px);
    }
}

@media (max-width: 560px) {
    .admin-body .app-shell {
        font-size: 14px;
    }

    .admin-body .admin-page-header h1 {
        font-size: 28px;
    }

    .admin-body .responsive-table td {
        font-size: 14px;
    }

    .admin-body .badge {
        font-size: 12px;
    }
}

/* v0.24.2 — escala tipográfica progressiva para telas grandes */
@media (min-width: 1440px) {
    .admin-body .sidebar-link,
    .admin-body .sidebar-logout {
        font-size: 15px;
    }

    .admin-body .sidebar-user-text strong {
        font-size: 14.5px;
    }

    .admin-body .sidebar-user-text small {
        font-size: 12.5px;
    }

    .admin-body .admin-page-header p {
        font-size: 16px;
    }

    .admin-body .button {
        font-size: 14.5px;
    }

    .admin-body .badge {
        font-size: 13px;
        padding: 5px 11px;
    }

    .admin-body .responsive-table th {
        font-size: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .admin-body .responsive-table td {
        font-size: 15.5px;
        line-height: 1.5;
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .admin-body .responsive-table .table-primary-link {
        font-size: 16px;
    }

    .admin-body .responsive-table code,
    .admin-body .responsive-table .table-subtext {
        font-size: 13px;
    }

    .admin-body .field label {
        font-size: 14.5px;
    }

    .admin-body .field input,
    .admin-body .field select,
    .admin-body .readonly {
        font-size: 15px;
    }

    .admin-body .field small,
    .admin-body .muted-text {
        font-size: 13.5px;
    }
}

@media (min-width: 1800px) {
    .admin-body .app-shell {
        font-size: 16px;
    }

    .admin-body .sidebar-link,
    .admin-body .sidebar-logout {
        font-size: 16px;
    }

    .admin-body .sidebar-brand-title {
        font-size: 22px;
    }

    .admin-body .sidebar-user-text strong {
        font-size: 15.5px;
    }

    .admin-body .sidebar-user-text small {
        font-size: 13px;
    }

    .admin-body .admin-page-header h1 {
        font-size: 44px;
    }

    .admin-body .admin-page-header p {
        font-size: 17px;
    }

    .admin-body .button {
        font-size: 15.5px;
    }

    .admin-body .badge {
        font-size: 13.5px;
        padding: 6px 12px;
    }

    .admin-body .responsive-table th {
        font-size: 13px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .admin-body .responsive-table td {
        font-size: 17px;
        line-height: 1.5;
        padding-top: 19px;
        padding-bottom: 19px;
    }

    .admin-body .responsive-table .table-primary-link {
        font-size: 17px;
    }

    .admin-body .responsive-table code,
    .admin-body .responsive-table .table-subtext {
        font-size: 14px;
    }

    .admin-body .field label {
        font-size: 15px;
    }

    .admin-body .field input,
    .admin-body .field select,
    .admin-body .readonly {
        font-size: 16px;
    }

    .admin-body .field small,
    .admin-body .muted-text {
        font-size: 14px;
    }
}

/* v0.24.3 — acabamento do detalhe do cliente */
.client-detail-page .client-services-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    align-items: start;
}

.client-detail-page .client-sftp-card,
.client-detail-page .client-reports-card {
    align-self: start;
    min-height: 0;
}

.client-detail-page .client-sftp-card dl,
.client-detail-page .client-reports-card dl {
    margin-top: 14px;
}

.client-detail-page .client-sftp-card dt,
.client-detail-page .client-reports-card dt {
    margin-top: 11px;
}

.client-detail-page .client-sftp-card dt:first-child,
.client-detail-page .client-reports-card dt:first-child {
    margin-top: 0;
}

.client-detail-page .client-sftp-card dd,
.client-detail-page .client-reports-card dd {
    margin-top: 3px;
}

.client-detail-page .client-sftp-card code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #c7b8ff;
}

.client-detail-page .client-sftp-card .actions {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .client-detail-page .client-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .client-detail-page .client-sftp-card,
    .client-detail-page .client-reports-card {
        padding: 18px;
    }
}


/* v0.25.0 — backup do servidor para estação */
.server-backup-panel .title-row {
    justify-content: space-between;
    align-items: flex-start;
}

.server-backup-description {
    max-width: 860px;
    margin: 6px 0 0;
    line-height: 1.55;
}

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

.server-backup-metric {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(88, 124, 181, .2);
    border-radius: 12px;
    background: rgba(5, 17, 34, .48);
}

.server-backup-metric .metric-label {
    display: block;
    margin-bottom: 7px;
}

.server-backup-metric strong {
    display: block;
    color: #eef4fd;
    font-size: clamp(13px, calc(9px + 0.34vw), 16px);
    overflow-wrap: anywhere;
}

.server-backup-filename {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600 !important;
}

.server-backup-actions {
    align-items: stretch;
}

.server-backup-actions form {
    display: inline-flex;
    margin: 0;
}

.server-backup-security-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(88, 124, 181, .14);
    font-size: 12px;
}

@media (max-width: 1180px) {
    .server-backup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .server-backup-grid {
        grid-template-columns: 1fr;
    }

    .server-backup-actions,
    .server-backup-actions form,
    .server-backup-actions .button {
        width: 100%;
    }
}


/* v0.25.2 — hierarquia visual das ações de backup */
.server-backup-actions > a[href="/settings/server-backup/bundle"] {
    min-width: 190px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .18);
}

.server-backup-actions form[action="/settings/server-backup/generate-download"] .button {
    border-color: rgba(96, 165, 250, .52);
    background: rgba(30, 64, 175, .14);
    color: #dbeafe;
    font-weight: 700;
}

.server-backup-actions form[action="/settings/server-backup/generate-download"] .button:hover {
    background: rgba(30, 64, 175, .26);
}

.server-backup-actions > a[href="/settings/server-backup/download"],
.server-backup-actions > a[href="/settings/server-backup/checksum"] {
    border-color: rgba(88, 124, 181, .22);
    background: rgba(5, 17, 34, .34);
    color: #93a9c9;
    font-size: .88em;
}

.server-backup-actions > a[href="/settings/server-backup/download"]:hover,
.server-backup-actions > a[href="/settings/server-backup/checksum"]:hover {
    border-color: rgba(96, 165, 250, .42);
    background: rgba(15, 36, 68, .56);
    color: #dbeafe;
}

@media (max-width: 760px) {
    .server-backup-actions > a,
    .server-backup-actions form,
    .server-backup-actions form .button {
        width: 100%;
    }
}
