﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.92)),
        #0f172a;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo h1 {
    color: #111827;
    font-size: 26px;
    margin-bottom: 6px;
}

.login-logo p {
    color: #7f1d1d;
    font-weight: bold;
    font-size: 15px;
}

form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #374151;
}

form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 15px;
}

form input:focus {
    outline: none;
    border-color: #7f1d1d;
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.12);
}

button {
    width: 100%;
    border: none;
    background: #7f1d1d;
    color: #ffffff;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #991b1b;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

.app-body {
    background: #f4f6f9;
    min-height: 100vh;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a, #1f2937);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.sidebar-brand {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
    font-size: 20px;
    font-weight: bold;
}

.brand-subtitle {
    font-size: 13px;
    color: #fca5a5;
    margin-top: 4px;
}

.sidebar-nav {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
}

.sidebar-nav a:hover {
    background: rgba(127, 29, 29, 0.7);
    color: #ffffff;
}

.sidebar-footer {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-box {
    margin-bottom: 14px;
}

.user-box strong {
    display: block;
    font-size: 14px;
}

.user-box span {
    display: block;
    font-size: 12px;
    color: #d1d5db;
    margin-top: 3px;
}

.logout-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: #7f1d1d;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.logout-link:hover {
    background: #991b1b;
}

.main-content {
    margin-left: 270px;
    padding: 30px;
    width: calc(100% - 270px);
}

.topbar {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 6px;
}

.topbar p {
    color: #6b7280;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.info-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border-left: 5px solid #1f2937;
}

.info-card span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.info-card strong {
    font-size: 34px;
    color: #111827;
}

.info-card.danger {
    border-left-color: #7f1d1d;
}

.panel {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.panel h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.panel p {
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
    }

    .app-wrapper {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   VISUAL ESCURO - PADRÃO SISTEMA DE CHAMADOS INOVA
   ========================================================= */

.app-body {
    background:
        radial-gradient(circle at top right, rgba(127, 29, 29, 0.32), transparent 32%),
        linear-gradient(135deg, #020403 0%, #050706 45%, #17030d 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

.main-content {
    background: transparent;
}

.sidebar {
    background: rgba(2, 6, 23, 0.88);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
    color: #ffffff;
}

.brand-subtitle {
    color: #fca5a5;
}

.sidebar-nav a {
    color: #d1d5db;
}

.sidebar-nav a:hover {
    background: rgba(127, 29, 29, 0.72);
    color: #ffffff;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-link {
    background: #8b1230;
}

.logout-link:hover {
    background: #a3163a;
}

.topbar {
    background: rgba(7, 12, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.topbar h1 {
    color: #ffffff;
}

.topbar p {
    color: #cbd5e1;
}

.info-card {
    background: rgba(7, 12, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.info-card span {
    color: #cbd5e1;
}

.info-card strong {
    color: #ffffff;
}

.info-card.danger {
    border-left-color: #8b1230;
}

.panel {
    background: rgba(7, 12, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.panel h2 {
    color: #ffffff;
}

.panel p {
    color: #cbd5e1;
}

.alert-success {
    background: rgba(22, 101, 52, 0.22);
    color: #bbf7d0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 6, 23, 0.55);
    color: #ffffff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b1230;
    box-shadow: 0 0 0 3px rgba(139, 18, 48, 0.18);
}

.form-actions {
    display: flex;
    align-items: end;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    color: #e5e7eb;
}

.data-table th {
    color: #cbd5e1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-ativo {
    background: rgba(22, 101, 52, 0.26);
    color: #bbf7d0;
}

.status-inativo {
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
}

.inline-form {
    display: inline;
}

.btn-small {
    width: auto;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.muted {
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-span-2 {
    grid-column: span 2;
}

.form-span-4 {
    grid-column: span 4;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

@media (max-width: 1100px) {
    .form-span-2,
    .form-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .form-span-2,
    .form-span-4 {
        grid-column: span 1;
    }
}

.status-revogado {
    background: rgba(100, 116, 139, 0.26);
    color: #cbd5e1;
}

.status-condicao-otimo {
    background: rgba(22, 101, 52, 0.30);
    color: #bbf7d0;
}

.status-condicao-bom {
    background: rgba(37, 99, 235, 0.25);
    color: #bfdbfe;
}

.status-condicao-regular {
    background: rgba(202, 138, 4, 0.25);
    color: #fef08a;
}

.status-condicao-ruim {
    background: rgba(234, 88, 12, 0.25);
    color: #fed7aa;
}

.status-condicao-critico {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.status-manutencao {
    background: rgba(202, 138, 4, 0.25);
    color: #fef08a;
}

.status-substituido,
.status-descartado {
    background: rgba(100, 116, 139, 0.26);
    color: #cbd5e1;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.details-grid div {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.details-grid span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 6px;
}

.details-grid strong {
    color: #ffffff;
    font-size: 14px;
}

.timeline {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
}

.timeline-date {
    color: #94a3b8;
    font-size: 13px;
    padding-top: 4px;
}

.timeline-content {
    background: rgba(2, 6, 23, 0.35);
    border-left: 4px solid #8b1230;
    border-radius: 12px;
    padding: 16px;
}

.timeline-content h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 17px;
}

.timeline-content p {
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.5;
}

.timeline-meta {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 8px;
}

.btn-link,
.btn-link-table {
    display: inline-block;
    text-decoration: none;
    background: #1f2937;
    color: #ffffff;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
}

.btn-link:hover,
.btn-link-table:hover {
    background: #374151;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.status-validacao-normal {
    background: rgba(22, 101, 52, 0.30);
    color: #bbf7d0;
}

.status-validacao-atencao {
    background: rgba(202, 138, 4, 0.25);
    color: #fef08a;
}

.status-validacao-critico {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.status-ativa {
    background: rgba(22, 101, 52, 0.30);
    color: #bbf7d0;
}

.status-expirada {
    background: rgba(100, 116, 139, 0.26);
    color: #cbd5e1;
}

.status-revogada {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.sidebar-clock-box {
    margin: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(7, 12, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.clock-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.sidebar-clock {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.log-details {
    margin-top: 10px;
    min-width: 360px;
}

.log-details pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(2, 6, 23, 0.55);
    color: #cbd5e1;
    padding: 10px;
    border-radius: 8px;
    margin: 6px 0 12px;
    font-size: 12px;
}


.log-section-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    margin: 12px 0 8px;
}

.log-key-value {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.log-kv-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.log-kv-row:last-child {
    border-bottom: none;
}

.log-kv-key {
    color: #94a3b8;
    font-size: 12px;
    font-weight: bold;
}

.log-kv-value {
    color: #e5e7eb;
    font-size: 12px;
    word-break: break-word;
}


.report-header-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.report-date-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 220px;
    text-align: right;
}

.report-date-box span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 5px;
}

.report-date-box strong {
    color: #f8fafc;
    font-size: 14px;
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.report-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.report-card span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

.report-card strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.condition-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
}

.condition-summary div {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 14px;
}

.condition-summary span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

.condition-summary strong {
    color: #f8fafc;
    font-size: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-ok {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.badge-good {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.badge-critical {
    background: rgba(127, 29, 29, 0.55);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.13);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1200px) {
    .report-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .condition-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .report-header-panel {
        flex-direction: column;
    }

    .report-date-box {
        width: 100%;
        text-align: left;
    }

    .report-cards-grid,
    .condition-summary {
        grid-template-columns: 1fr;
    }
}


.btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.95);
}

.report-date-box small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .sidebar,
    .no-print {
        display: none !important;
    }

    .main-content,
    .content,
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .panel,
    .report-card,
    .report-date-box,
    .condition-summary div {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, p, span, strong, td, th {
        color: #000000 !important;
    }

    .data-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .data-table th,
    .data-table td {
        border: 1px solid #cccccc !important;
        color: #000000 !important;
        font-size: 10px !important;
        padding: 6px !important;
    }

    .status-badge {
        border: 1px solid #999999 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
}


/* =========================================================
   RELATÓRIO INTERNO POR CLIENTE - VISUAL V2
   ========================================================= */

.report-header-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at top right, rgba(127, 29, 29, 0.24), transparent 36%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.report-header-panel::before {
    content: "RELATÓRIO INTERNO";
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(248, 250, 252, 0.07);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    pointer-events: none;
}

.report-header-panel h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.report-header-panel p {
    margin: 5px 0;
}

.report-date-box {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 15px 18px;
    min-width: 230px;
    text-align: right;
}

.report-date-box span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: #94a3b8;
}

.report-date-box strong {
    color: #ffffff;
    font-size: 15px;
}

.report-date-box small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 11px;
}

/* Cards principais */

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 14px;
    margin: 16px 0 20px;
}

.report-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76));
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 18px;
    padding: 17px 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.report-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #991b1b, rgba(153, 27, 27, 0.15));
}

.report-card span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 9px;
}

.report-card strong {
    display: block;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

/* Seções do relatório */

.panel {
    border-radius: 18px;
}

.panel h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    margin-bottom: 16px;
}

.panel h2::before {
    content: "";
    width: 6px;
    height: 22px;
    border-radius: 999px;
    background: #991b1b;
    display: inline-block;
}

.panel p {
    line-height: 1.45;
}

/* Resumo por condição */

.condition-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
}

.condition-summary div {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    padding: 15px;
}

.condition-summary span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.condition-summary strong {
    color: #ffffff;
    font-size: 25px;
}

/* Tabelas */

.table-responsive {
    border-radius: 14px;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.25);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: rgba(15, 23, 42, 0.95);
    color: #cbd5e1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 12px 10px;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    vertical-align: top;
    line-height: 1.35;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.22);
}

.data-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.38);
}

.data-table tbody td:first-child {
    font-weight: 800;
    color: #f8fafc;
}

/* Badges */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-ok {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.badge-good {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.32);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.badge-danger,
.badge-critical {
    background: rgba(127, 29, 29, 0.45);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.36);
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Botões */

.btn-secondary {
    background: rgba(15, 23, 42, 0.88);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.98);
}

/* Responsividade */

@media (max-width: 1200px) {
    .report-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .condition-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .report-header-panel {
        flex-direction: column;
    }

    .report-date-box {
        width: 100%;
        text-align: left;
    }

    .report-cards-grid,
    .condition-summary {
        grid-template-columns: 1fr;
    }
}

/* Impressão mais limpa */

@media print {
    @page {
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px !important;
    }

    .sidebar,
    .no-print {
        display: none !important;
    }

    .main-content,
    .content,
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .topbar {
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    .topbar h1 {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }

    .topbar p {
        font-size: 12px !important;
    }

    .panel,
    .report-header-panel,
    .report-card,
    .report-date-box,
    .condition-summary div {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #d0d0d0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .report-header-panel::before,
    .report-card::after,
    .panel h2::before {
        display: none !important;
    }

    .report-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .condition-summary {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px !important;
    }

    .report-card,
    .condition-summary div {
        padding: 10px !important;
    }

    .report-card span,
    .condition-summary span {
        color: #333333 !important;
        font-size: 9px !important;
    }

    .report-card strong,
    .condition-summary strong {
        color: #000000 !important;
        font-size: 18px !important;
    }

    h1, h2, h3, p, span, strong, small, td, th {
        color: #000000 !important;
    }

    .table-responsive {
        overflow: visible !important;
        border: none !important;
        background: #ffffff !important;
    }

    .data-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    .data-table th,
    .data-table td {
        border: 1px solid #cfcfcf !important;
        color: #000000 !important;
        font-size: 8.5px !important;
        padding: 5px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .data-table thead th {
        background: #f2f2f2 !important;
        font-weight: 800 !important;
    }

    .status-badge {
        border: 1px solid #999999 !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 2px 5px !important;
        font-size: 8px !important;
        min-width: auto !important;
    }
}


/* =========================================================
   RELATÓRIO INTERNO - DIVISÓRIAS DE TABELA
   ========================================================= */

.data-table thead th {
    border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.data-table thead th:last-child {
    border-right: none;
}

.data-table tbody td {
    border-right: 1px solid rgba(148, 163, 184, 0.10);
}

.data-table tbody td:last-child {
    border-right: none;
}

/* Dá mais presença para a primeira coluna de cada tabela */
.data-table tbody td:first-child {
    background: rgba(15, 23, 42, 0.18);
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

/* Melhora a leitura das células com conteúdo curto */
.data-table td,
.data-table th {
    min-height: 38px;
}

/* Cabeçalho mais separado visualmente */
.data-table thead th {
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.16);
}

/* Ajuste sutil para não ficar parecendo planilha branca */
.data-table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.data-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.34);
}

/* Mantém badges centralizadas visualmente dentro das células */
.data-table td .status-badge {
    margin-top: -2px;
}

/* Impressão com divisórias mais visíveis */
@media print {
    .data-table thead th,
    .data-table tbody td {
        border-right: 1px solid #cfcfcf !important;
        border-bottom: 1px solid #cfcfcf !important;
    }

    .data-table thead th:last-child,
    .data-table tbody td:last-child {
        border-right: 1px solid #cfcfcf !important;
    }

    .data-table tbody td:first-child {
        background: #f7f7f7 !important;
        font-weight: 800 !important;
    }
}


/* =========================================================
   RELATÓRIO INTERNO - PONTOS DE ATENÇÃO
   ========================================================= */

.section-heading-with-note {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.section-heading-with-note h2 {
    margin-bottom: 4px;
}

.attention-counter {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 11px 14px;
    min-width: 90px;
    text-align: center;
}

.attention-counter span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.attention-counter strong {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.report-attention-panel {
    border-color: rgba(245, 158, 11, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.82)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 32%);
}

.attention-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
}

.attention-item {
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-left: 4px solid rgba(245, 158, 11, 0.75);
    border-radius: 14px;
    padding: 13px 14px;
}

.attention-label {
    display: block;
    color: #fcd34d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.attention-item strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 7px;
}

.attention-item p {
    color: #cbd5e1;
    font-size: 12px;
    margin: 0 0 9px;
    line-height: 1.45;
}

.attention-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.empty-attention-box {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .attention-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .section-heading-with-note {
        flex-direction: column;
    }

    .attention-counter {
        width: 100%;
        text-align: left;
    }

    .attention-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .section-heading-with-note {
        display: flex !important;
        justify-content: space-between !important;
    }

    .attention-counter,
    .attention-item,
    .empty-attention-box,
    .report-attention-panel {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        box-shadow: none !important;
    }

    .attention-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .attention-label,
    .attention-item strong,
    .attention-item p,
    .attention-counter span,
    .attention-counter strong {
        color: #000000 !important;
    }
}

/* =========================================================
   RELATÓRIO INTERNO POR CLIENTE - AJUSTE FINAL V3
   Tela + Impressão/PDF
   ========================================================= */

/* Melhor separação visual entre blocos na tela */
.report-header-panel,
.report-attention-panel,
.panel {
    margin-bottom: 16px;
}

.report-cards-grid {
    margin-top: 16px;
    margin-bottom: 18px;
}

/* Evita que tabelas fiquem com sensação de texto solto */
.data-table th,
.data-table td {
    border-left: 1px solid rgba(148, 163, 184, 0.08);
}

.data-table th:first-child,
.data-table td:first-child {
    border-left: none;
}

/* Melhora campos curtos */
.data-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* =========================================================
   IMPRESSÃO FINAL
   ========================================================= */

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .sidebar,
    .no-print {
        display: none !important;
    }

    .main-content,
    .content,
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .topbar {
        border: none !important;
        box-shadow: none !important;
        margin: 0 0 8px 0 !important;
        padding: 0 0 6px 0 !important;
        background: #ffffff !important;
    }

    .topbar h1 {
        font-size: 21px !important;
        line-height: 1.1 !important;
        margin: 0 0 4px 0 !important;
        color: #000000 !important;
    }

    .topbar p {
        font-size: 10.5px !important;
        margin: 0 !important;
        color: #333333 !important;
    }

    .panel,
    .report-header-panel,
    .report-attention-panel {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 12px !important;
        margin: 0 0 8px 0 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .report-header-panel::before,
    .report-card::after,
    .panel h2::before {
        display: none !important;
    }

    .report-header-panel {
        display: flex !important;
        justify-content: space-between !important;
        gap: 14px !important;
        align-items: flex-start !important;
    }

    .report-header-panel h2 {
        font-size: 16px !important;
        margin: 0 0 5px 0 !important;
        color: #000000 !important;
    }

    .report-header-panel p {
        font-size: 10px !important;
        margin: 2px 0 !important;
        color: #000000 !important;
    }

    .report-date-box {
        min-width: 190px !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 8px !important;
        padding: 9px 10px !important;
        text-align: left !important;
        box-shadow: none !important;
    }

    .report-date-box span,
    .report-date-box small {
        color: #333333 !important;
        font-size: 8.5px !important;
        letter-spacing: 0.03em !important;
    }

    .report-date-box strong {
        color: #000000 !important;
        font-size: 11px !important;
    }

    .report-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 6px !important;
        margin: 0 0 8px 0 !important;
    }

    .report-card {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 8px 9px !important;
        min-height: auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .report-card span {
        color: #333333 !important;
        font-size: 7.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 4px !important;
    }

    .report-card strong {
        color: #000000 !important;
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .section-heading-with-note {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }

    .panel h2,
    .section-heading-with-note h2 {
        font-size: 14px !important;
        margin: 0 0 8px 0 !important;
        color: #000000 !important;
    }

    .panel p,
    .section-heading-with-note p {
        color: #333333 !important;
        font-size: 9.5px !important;
        margin: 0 !important;
    }

    .attention-counter,
    .attention-item,
    .empty-attention-box {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 8px !important;
    }

    .attention-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .attention-label,
    .attention-item strong,
    .attention-item p,
    .attention-counter span,
    .attention-counter strong {
        color: #000000 !important;
    }

    .condition-summary {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }

    .condition-summary div {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 8px !important;
        padding: 8px !important;
        box-shadow: none !important;
    }

    .condition-summary span {
        color: #333333 !important;
        font-size: 7.5px !important;
        font-weight: 800 !important;
        margin-bottom: 4px !important;
    }

    .condition-summary strong {
        color: #000000 !important;
        font-size: 16px !important;
    }

    .table-responsive {
        overflow: visible !important;
        border: none !important;
        background: #ffffff !important;
        border-radius: 0 !important;
    }

    .data-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: auto !important;
        margin: 0 !important;
    }

    .data-table thead {
        display: table-header-group !important;
    }

    .data-table tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .data-table th,
    .data-table td {
        border: 1px solid #bfbfbf !important;
        color: #000000 !important;
        padding: 4px 5px !important;
        font-size: 7.6px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        vertical-align: top !important;
    }

    .data-table th {
        background: #f1f1f1 !important;
        font-weight: 900 !important;
        font-size: 7px !important;
        letter-spacing: 0.03em !important;
        text-transform: uppercase !important;
    }

    .data-table td:first-child {
        background: #fafafa !important;
        font-weight: 800 !important;
        color: #000000 !important;
    }

    .data-table tbody tr:nth-child(even),
    .data-table tbody tr:hover td {
        background: #ffffff !important;
    }

    .muted {
        color: #333333 !important;
    }

    .status-badge {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #777777 !important;
        border-radius: 999px !important;
        padding: 2px 5px !important;
        font-size: 7px !important;
        font-weight: 800 !important;
        min-width: auto !important;
        white-space: nowrap !important;
    }

    h1,
    h2,
    h3,
    p,
    span,
    strong,
    small,
    td,
    th {
        color: #000000 !important;
    }
}


.backup-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.backup-info-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 15px;
}

.backup-info-card span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.backup-info-card strong {
    color: #f8fafc;
    font-size: 13px;
    word-break: break-word;
}

.backup-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-radius: 14px;
    padding: 13px 15px;
    margin: 14px 0 18px;
    line-height: 1.45;
}

.code-box {
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
    border-radius: 12px;
    padding: 13px;
    overflow-x: auto;
    font-size: 13px;
}

@media (max-width: 760px) {
    .backup-info-grid {
        grid-template-columns: 1fr;
    }
}


.alert-success {
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-error {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fecaca;
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.backup-register-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 210px;
}

.backup-register-form textarea {
    min-height: 64px;
    resize: vertical;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 9px;
    color: #e5e7eb;
    font-size: 12px;
}

.backup-register-form button {
    background: #991b1b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.backup-register-form button:hover {
    background: #7f1d1d;
}


/* =========================================================
   CONFIGURAÇÕES DO SISTEMA
   ========================================================= */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.settings-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 15px;
}

.settings-card span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.settings-card strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    word-break: break-word;
}

.settings-note {
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 15px;
}

.settings-note p {
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.5;
}

.settings-note p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DASHBOARD V2
   ========================================================= */

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88)),
        radial-gradient(circle at top right, rgba(153, 27, 27, 0.20), transparent 34%);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-eyebrow {
    display: inline-block;
    color: #fca5a5;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.dashboard-hero h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.dashboard-hero p {
    max-width: 760px;
    color: #cbd5e1;
}

.dashboard-hero-meta {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 220px;
    text-align: right;
}

.dashboard-hero-meta span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.dashboard-hero-meta strong {
    color: #ffffff;
    font-size: 14px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.dashboard-kpi-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-left: 4px solid rgba(148, 163, 184, 0.32);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.dashboard-kpi-card.warning {
    border-left-color: rgba(245, 158, 11, 0.85);
}

.dashboard-kpi-card.danger {
    border-left-color: rgba(239, 68, 68, 0.9);
}

.dashboard-kpi-card span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.dashboard-kpi-card strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 7px;
}

.dashboard-kpi-card small {
    color: #cbd5e1;
    font-size: 11px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-attention-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-attention-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 13px 14px;
}

.dashboard-attention-row strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    margin-bottom: 4px;
}

.dashboard-attention-row span {
    color: #94a3b8;
    font-size: 12px;
}

.dashboard-attention-row b {
    color: #ffffff;
    font-size: 24px;
    min-width: 42px;
    text-align: right;
}

.dashboard-backup-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 14px;
}

.dashboard-backup-box strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    margin-bottom: 6px;
}

.dashboard-backup-box span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 3px;
}

.dashboard-backup-note {
    margin-top: 12px;
}

.dashboard-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.dashboard-actions-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(153, 27, 27, 0.85);
    color: #ffffff;
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 800;
    text-decoration: none;
    font-size: 12px;
}

.dashboard-actions-inline a:hover {
    background: rgba(127, 29, 29, 0.95);
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 12px;
}

.dashboard-shortcuts a {
    display: block;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dashboard-shortcuts a:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(248, 113, 113, 0.28);
}

.dashboard-shortcuts strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 6px;
}

.dashboard-shortcuts span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 1280px) {
    .dashboard-kpi-grid,
    .dashboard-shortcuts {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero-meta {
        width: 100%;
        text-align: left;
    }

    .dashboard-kpi-grid,
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DASHBOARD - LINKS OPERACIONAIS
   ========================================================= */

.dashboard-kpi-link,
.dashboard-attention-link {
    text-decoration: none;
    color: inherit;
}

.dashboard-kpi-link {
    display: block;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dashboard-kpi-link:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(30, 41, 59, 0.88);
}

.dashboard-attention-link {
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dashboard-attention-link:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(30, 41, 59, 0.55);
}

.dashboard-kpi-link:hover span,
.dashboard-attention-link:hover strong {
    color: #ffffff;
}

/* =========================================================
   FILTROS ATIVOS
   ========================================================= */

.filter-active-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.filter-active-box strong {
    display: block;
    color: #fef3c7;
    font-size: 14px;
    margin-bottom: 4px;
}

.filter-active-box span {
    color: #fde68a;
    font-size: 12px;
}

.filter-active-box a {
    background: rgba(153, 27, 27, 0.88);
    color: #ffffff;
    border-radius: 10px;
    padding: 9px 13px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.filter-active-box a:hover {
    background: rgba(127, 29, 29, 0.95);
}

@media (max-width: 760px) {
    .filter-active-box {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   SIDEBAR - MENU ORGANIZADO POR GRUPOS
   ========================================================= */

.sidebar-section {
    margin-bottom: 14px;
}

.sidebar-section-title {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 14px 0 7px;
    padding: 0 12px;
}

.sidebar-nav a {
    position: relative;
}

.sidebar-nav a.active {
    background: rgba(153, 27, 27, 0.28);
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.28);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: #ef4444;
}

/* =========================================================
   AJUSTE FINO DA SIDEBAR - ESPAÇAMENTO E ORGANIZAÇÃO
   ========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.sidebar-section-title {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 8px 0 4px;
    padding: 0 12px;
}

.sidebar-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    margin: 0;
}

.sidebar-nav a + a {
    margin-top: 2px;
}

.sidebar-nav a.active {
    background: rgba(153, 27, 27, 0.28);
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.28);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: #ef4444;
}

/* =========================================================
   SIDEBAR - REFINAMENTO VISUAL FINAL
   ========================================================= */

.sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.10);
}

.sidebar-brand {
    padding-bottom: 18px;
    margin-bottom: 10px;
}

.brand-title {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 3px;
    color: #fca5a5;
    font-size: 12px;
}

.sidebar-clock-box {
    margin: 14px 12px 22px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.clock-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-clock {
    margin-top: 5px;
    font-size: 13px;
    color: #f8fafc;
    font-weight: 800;
}

.sidebar-nav {
    padding: 0 12px;
    gap: 20px;
}

.sidebar-section {
    gap: 7px;
    margin-bottom: 2px;
}

.sidebar-section-title {
    padding: 0 2px;
    margin: 0 0 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.sidebar-nav a:hover {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.15);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(153, 27, 27, 0.72), rgba(153, 27, 27, 0.36));
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.25);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.18);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: #ef4444;
}

.sidebar-footer {
    padding: 16px 12px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.user-box {
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 14px;
    padding: 11px 12px;
    margin-bottom: 12px;
}

.user-box strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 3px;
}

.user-box span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    background: rgba(153, 27, 27, 0.88);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.logout-link:hover {
    background: rgba(127, 29, 29, 0.98);
    transform: translateY(-1px);
}


/* =========================================================
   ACESSO NEGADO
   ========================================================= */

.access-denied-panel {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.90)),
        radial-gradient(circle at top right, rgba(153, 27, 27, 0.16), transparent 34%);
    border: 1px solid rgba(248, 113, 113, 0.20);
}

.access-denied-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 16px;
    background: rgba(153, 27, 27, 0.88);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(127, 29, 29, 0.25);
}

.access-denied-content {
    flex: 1;
}

.access-denied-label {
    display: inline-block;
    color: #fca5a5;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.access-denied-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.access-denied-content p {
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 760px;
}

.access-denied-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.access-denied-details div {
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 13px 14px;
}

.access-denied-details span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.access-denied-details strong {
    color: #ffffff;
    font-size: 14px;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.access-denied-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: rgba(153, 27, 27, 0.88);
    color: #ffffff;
    border-radius: 11px;
    padding: 9px 14px;
    font-weight: 900;
    text-decoration: none;
}

.access-denied-actions a:hover {
    background: rgba(127, 29, 29, 0.98);
}

.access-denied-actions a.secondary {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.20);
}

.access-denied-actions a.secondary:hover {
    background: rgba(30, 41, 59, 0.92);
}

.access-denied-note {
    margin-top: 16px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .access-denied-panel {
        flex-direction: column;
    }

    .access-denied-details {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LOGS DO SISTEMA - AUDITORIA VISUAL
   ========================================================= */

.logs-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.logs-summary-card {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.20);
}

.logs-summary-card span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.logs-summary-card strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 7px;
}

.logs-summary-card small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.logs-summary-card.danger {
    border-color: rgba(248, 113, 113, 0.28);
}

.logs-summary-card.info {
    border-color: rgba(96, 165, 250, 0.26);
}

.logs-summary-card.warning {
    border-color: rgba(251, 191, 36, 0.26);
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.logs-table td {
    vertical-align: top;
}

.log-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.72);
    color: #e2e8f0;
}

.log-badge.danger {
    background: rgba(153, 27, 27, 0.24);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.28);
}

.log-badge.warning {
    background: rgba(120, 53, 15, 0.28);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.26);
}

.log-badge.info {
    background: rgba(30, 64, 175, 0.22);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.24);
}

.log-badge.success {
    background: rgba(22, 101, 52, 0.22);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.22);
}

.log-badge.neutral {
    background: rgba(30, 41, 59, 0.72);
    color: #e2e8f0;
}

.log-details-box summary {
    cursor: pointer;
    color: #fca5a5;
    font-weight: 900;
    font-size: 12px;
}

.log-details {
    min-width: 360px;
    max-width: 620px;
    margin-top: 10px;
    background: rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    padding: 12px;
}

.log-section-title {
    color: #f8fafc;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 12px 0 8px;
}

.log-section-title:first-child {
    margin-top: 0;
}

.log-key-value {
    display: grid;
    gap: 7px;
}

.log-kv-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.log-kv-key {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.log-kv-value {
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
}

.log-raw {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    color: #e5e7eb;
    padding: 10px;
    font-size: 12px;
    white-space: pre-wrap;
}

@media (max-width: 1100px) {
    .logs-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-title-row {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .logs-summary-grid {
        grid-template-columns: 1fr;
    }

    .log-kv-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   LOGS - AJUSTE FINO DE TABELA
   ========================================================= */

.logs-table th,
.logs-table td {
    font-size: 12px;
}

.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 110px;
}

.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
    width: 150px;
}

.logs-table th:nth-child(3),
.logs-table td:nth-child(3) {
    width: 180px;
}

.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
    width: 200px;
}

.logs-table th:nth-child(5),
.logs-table td:nth-child(5) {
    width: 70px;
    text-align: center;
}

.logs-table th:nth-child(6),
.logs-table td:nth-child(6) {
    width: 90px;
    text-align: center;
}

.logs-table th:nth-child(8),
.logs-table td:nth-child(8) {
    width: 120px;
    white-space: nowrap;
}

.logs-table td:nth-child(7) {
    max-width: 360px;
    line-height: 1.4;
}


/* =========================================================
   LOGS - BOTÃO LIMPAR FILTROS
   ========================================================= */

.panel-title-row .btn-link {
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
}

.panel-title-row .btn-link:hover {
    background: rgba(30, 41, 59, 0.95);
}





/* Ajuste sidebar - rolagem em telas menores */
.sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 16px;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Melhor visual da barra de rolagem lateral */
.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Corre��o definitiva - rolagem independente da sidebar e do conte�do */
html,
body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1 1 auto;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    padding-bottom: 20px;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: 16px;
    padding-bottom: 18px;
}

.main-content {
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Barra de rolagem visual da sidebar */
.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* =========================================================
   CORRECAO FINAL SIDEBAR - ROLAGEM INDEPENDENTE
   ========================================================= */

html,
body {
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
}

.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-brand,
.sidebar-clock-box {
    flex: 0 0 auto !important;
}

.sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 14px !important;
}

.sidebar-footer {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
    background: #070b16 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.main-content {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Scroll visual apenas no menu lateral */
.sidebar-nav::-webkit-scrollbar {
    width: 7px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* =========================================================
   DASHBOARD V3 PREMIUM - CENTRAL DE GESTAO INOVA
   ========================================================= */

.dashboard-v3 {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 30px;
}

.dash-v3-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.25), transparent 32%),
        radial-gradient(circle at 92% 20%, rgba(126, 34, 206, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.dash-v3-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -170px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    filter: blur(8px);
}

.dash-v3-hero-main,
.dash-v3-status-card {
    position: relative;
    z-index: 1;
}

.dash-v3-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-v3-hero h1 {
    margin: 14px 0 10px;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dash-v3-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.dash-v3-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.dash-v3-hero-actions a,
.dash-v3-panel-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.76);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-hero-actions a:first-child {
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.44);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.9));
}

.dash-v3-hero-actions a:hover,
.dash-v3-panel-head a:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.46);
    background: rgba(30, 41, 59, 0.92);
}

.dash-v3-status-card {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-v3-status-card span,
.dash-v3-status-card small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.dash-v3-status-card > strong {
    display: block;
    margin: 8px 0 5px;
    color: #f8fafc;
    font-size: 30px;
    line-height: 1;
}

.dash-v3-status-card.ok > strong { color: #86efac; }
.dash-v3-status-card.warning > strong { color: #fde68a; }
.dash-v3-status-card.danger > strong { color: #fca5a5; }

.dash-v3-status-lines {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dash-v3-status-lines div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.38);
}

.dash-v3-status-lines b {
    color: #f8fafc;
    font-size: 24px;
}

.dash-v3-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dash-v3-kpi {
    min-height: 136px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.13), transparent 36%), rgba(15, 23, 42, 0.86);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.22), transparent 36%), rgba(15, 23, 42, 0.96);
}

.dash-v3-kpi.warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 36%), rgba(15, 23, 42, 0.86);
}

.dash-v3-kpi.danger {
    border-color: rgba(239, 68, 68, 0.34);
    background: radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.16), transparent 36%), rgba(15, 23, 42, 0.86);
}

.dash-v3-kpi span,
.dash-v3-kpi small {
    display: block;
    color: #94a3b8;
}

.dash-v3-kpi span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-v3-kpi strong {
    display: block;
    margin: 14px 0 6px;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
}

.dash-v3-kpi small {
    font-size: 12px;
}

.dash-v3-grid {
    display: grid;
    gap: 18px;
}

.dash-v3-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-v3-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-v3-panel-span-2 { grid-column: span 2; }

.dash-v3-panel {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    padding: 20px;
    overflow: hidden;
}

.dash-v3-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.dash-v3-panel-head.compact {
    margin-bottom: 12px;
}

.dash-v3-panel-head span {
    display: block;
    margin-bottom: 4px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-v3-panel-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.dash-v3-attention {
    display: grid;
    gap: 12px;
}

.dash-v3-attention-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.36);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-attention-item:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(30, 41, 59, 0.56);
}

.dash-v3-attention-item strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
}

.dash-v3-attention-item span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.dash-v3-attention-item b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    color: #f8fafc;
    background: rgba(37, 99, 235, 0.18);
    font-size: 24px;
}

.dash-v3-mini-list {
    display: grid;
    gap: 12px;
}

.dash-v3-mini-list > div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 17px;
    background: rgba(2, 6, 23, 0.32);
}

.dash-v3-mini-list span,
.dash-v3-mini-list small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.dash-v3-mini-list strong {
    display: block;
    margin: 6px 0 3px;
    color: #f8fafc;
    font-size: 15px;
}

.dash-v3-shortcuts {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.dash-v3-shortcuts a {
    min-height: 92px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-shortcuts a:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(30, 41, 59, 0.56);
}

.dash-v3-shortcuts strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.dash-v3-shortcuts span {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.dash-v3-table {
    margin-top: 0;
}

.dash-v3-table th {
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .dash-v3-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-v3-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .dash-v3-hero,
    .dash-v3-grid-2,
    .dash-v3-grid-3 {
        grid-template-columns: 1fr;
    }

    .dash-v3-panel-span-2 {
        grid-column: auto;
    }

    .dash-v3-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-v3-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dash-v3-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .dash-v3-hero-actions {
        flex-direction: column;
    }

    .dash-v3-hero-actions a {
        width: 100%;
    }

    .dash-v3-kpis,
    .dash-v3-shortcuts {
        grid-template-columns: 1fr;
    }

    .dash-v3-panel {
        padding: 16px;
        border-radius: 20px;
    }
}

/* =========================================================
   DASHBOARD V3 PREMIUM - CENTRAL DE GESTAO INOVA
   ========================================================= */

.dashboard-v3 {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 30px;
}

.dash-v3-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.25), transparent 32%),
        radial-gradient(circle at 92% 20%, rgba(126, 34, 206, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.dash-v3-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -170px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    filter: blur(8px);
}

.dash-v3-hero-main,
.dash-v3-status-card {
    position: relative;
    z-index: 1;
}

.dash-v3-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-v3-hero h1 {
    margin: 14px 0 10px;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dash-v3-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.dash-v3-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.dash-v3-hero-actions a,
.dash-v3-panel-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.76);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-hero-actions a:first-child {
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.44);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.9));
}

.dash-v3-hero-actions a:hover,
.dash-v3-panel-head a:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.46);
    background: rgba(30, 41, 59, 0.92);
}

.dash-v3-status-card {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-v3-status-card span,
.dash-v3-status-card small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.dash-v3-status-card > strong {
    display: block;
    margin: 8px 0 5px;
    color: #f8fafc;
    font-size: 30px;
    line-height: 1;
}

.dash-v3-status-card.ok > strong { color: #86efac; }
.dash-v3-status-card.warning > strong { color: #fde68a; }
.dash-v3-status-card.danger > strong { color: #fca5a5; }

.dash-v3-status-lines {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dash-v3-status-lines div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.38);
}

.dash-v3-status-lines b {
    color: #f8fafc;
    font-size: 24px;
}

.dash-v3-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dash-v3-kpi {
    min-height: 136px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.13), transparent 36%), rgba(15, 23, 42, 0.86);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.22), transparent 36%), rgba(15, 23, 42, 0.96);
}

.dash-v3-kpi.warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 36%), rgba(15, 23, 42, 0.86);
}

.dash-v3-kpi.danger {
    border-color: rgba(239, 68, 68, 0.34);
    background: radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.16), transparent 36%), rgba(15, 23, 42, 0.86);
}

.dash-v3-kpi span,
.dash-v3-kpi small {
    display: block;
    color: #94a3b8;
}

.dash-v3-kpi span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-v3-kpi strong {
    display: block;
    margin: 14px 0 6px;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
}

.dash-v3-kpi small {
    font-size: 12px;
}

.dash-v3-grid {
    display: grid;
    gap: 18px;
}

.dash-v3-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-v3-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-v3-panel-span-2 { grid-column: span 2; }

.dash-v3-panel {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    padding: 20px;
    overflow: hidden;
}

.dash-v3-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.dash-v3-panel-head.compact {
    margin-bottom: 12px;
}

.dash-v3-panel-head span {
    display: block;
    margin-bottom: 4px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-v3-panel-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.dash-v3-attention {
    display: grid;
    gap: 12px;
}

.dash-v3-attention-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.36);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-attention-item:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(30, 41, 59, 0.56);
}

.dash-v3-attention-item strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
}

.dash-v3-attention-item span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.dash-v3-attention-item b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    color: #f8fafc;
    background: rgba(37, 99, 235, 0.18);
    font-size: 24px;
}

.dash-v3-mini-list {
    display: grid;
    gap: 12px;
}

.dash-v3-mini-list > div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 17px;
    background: rgba(2, 6, 23, 0.32);
}

.dash-v3-mini-list span,
.dash-v3-mini-list small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.dash-v3-mini-list strong {
    display: block;
    margin: 6px 0 3px;
    color: #f8fafc;
    font-size: 15px;
}

.dash-v3-shortcuts {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.dash-v3-shortcuts a {
    min-height: 92px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-v3-shortcuts a:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(30, 41, 59, 0.56);
}

.dash-v3-shortcuts strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.dash-v3-shortcuts span {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.dash-v3-table {
    margin-top: 0;
}

.dash-v3-table th {
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .dash-v3-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-v3-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .dash-v3-hero,
    .dash-v3-grid-2,
    .dash-v3-grid-3 {
        grid-template-columns: 1fr;
    }

    .dash-v3-panel-span-2 {
        grid-column: auto;
    }

    .dash-v3-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-v3-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dash-v3-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .dash-v3-hero-actions {
        flex-direction: column;
    }

    .dash-v3-hero-actions a {
        width: 100%;
    }

    .dash-v3-kpis,
    .dash-v3-shortcuts {
        grid-template-columns: 1fr;
    }

    .dash-v3-panel {
        padding: 16px;
        border-radius: 20px;
    }
}

/* =========================================================
   DASHBOARD PREMIUM CONVERTIDO DO PROTOTIPO HTML
   ========================================================= */

.dash-premium {
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 36px;
}

.dash-premium-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dash-premium-title h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.dash-premium-title p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

.dash-premium-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-premium-btn {
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.76);
    color: #f8fafc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}

.dash-premium-btn.primary {
    background: rgba(153, 27, 27, 0.88);
    border-color: rgba(248, 113, 113, 0.24);
    box-shadow: 0 14px 30px rgba(153, 27, 27, 0.22);
}

.dash-premium-hero {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.94)),
        radial-gradient(circle at top right, rgba(153, 27, 27, 0.22), transparent 40%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.dash-premium-hero h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.dash-premium-hero p {
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 880px;
    font-size: 15px;
}

.dash-premium-health-card {
    background: rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 19px;
    padding: 17px;
}

.dash-premium-health-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.dash-premium-health-top span {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-premium-health-top strong {
    font-size: 34px;
    letter-spacing: -0.05em;
}

.dash-premium-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.13);
    overflow: hidden;
    margin-bottom: 13px;
}

.dash-premium-progress div {
    height: 100%;
}

.dash-premium-progress .green {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.dash-premium-progress .amber {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.dash-premium-progress .red {
    background: linear-gradient(90deg, #ef4444, #991b1b);
}

.dash-premium-health-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
}

.dash-premium-health-row strong {
    color: #cbd5e1;
}

.dash-premium-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dash-premium-kpi {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    padding: 17px;
    min-height: 132px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
    text-decoration: none;
    transition: all 0.16s ease;
}

.dash-premium-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.22);
}

.dash-premium-kpi.warning {
    border-color: rgba(251, 191, 36, 0.24);
}

.dash-premium-kpi.danger {
    border-color: rgba(248, 113, 113, 0.28);
}

.dash-premium-kpi.info {
    border-color: rgba(96, 165, 250, 0.24);
}

.dash-premium-kpi span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-premium-kpi strong {
    display: block;
    margin-top: 11px;
    color: #f8fafc;
    font-size: 31px;
    letter-spacing: -0.05em;
}

.dash-premium-kpi small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

.dash-premium-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 20px;
}

.dash-premium-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.18);
}

.dash-premium-panel-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dash-premium-panel-head h3 {
    margin: 0;
    position: relative;
    padding-left: 13px;
    color: #f8fafc;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.dash-premium-panel-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 3px;
    width: 3px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.86);
}

.dash-premium-panel-head p {
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.dash-premium-attention-list,
.dash-premium-security-grid,
.dash-premium-quick-stack {
    display: grid;
    gap: 10px;
}

.dash-premium-attention-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 16px;
    padding: 13px;
    text-decoration: none;
}

.dash-premium-attention-item:hover {
    background: rgba(15, 23, 42, 0.62);
}

.dash-premium-attention-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(153, 27, 27, 0.22);
    color: #fecaca;
    font-weight: 950;
}

.dash-premium-attention-item strong {
    display: block;
    color: #f8fafc;
    font-size: 13px;
}

.dash-premium-attention-item span {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 12px;
}

.dash-premium-mini-badge,
.dash-premium-badge {
    border-radius: 999px;
    padding: 6px 9px;
    min-width: 28px;
    text-align: center;
    font-size: 11px;
    font-weight: 950;
    border: 1px solid rgba(148, 163, 184, 0.13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.dash-premium-mini-badge.red,
.dash-premium-badge.red {
    background: rgba(153, 27, 27, 0.24);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.24);
}

.dash-premium-mini-badge.amber,
.dash-premium-badge.amber {
    background: rgba(120, 53, 15, 0.28);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.24);
}

.dash-premium-mini-badge.blue,
.dash-premium-badge.blue {
    background: rgba(30, 64, 175, 0.24);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.24);
}

.dash-premium-badge.green {
    background: rgba(22, 101, 52, 0.22);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.22);
}

.dash-premium-security-card {
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(2, 6, 23, 0.38);
    border-radius: 16px;
    padding: 14px;
}

.dash-premium-security-card small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-premium-security-card strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 15px;
}

.dash-premium-security-card span {
    display: block;
    margin-top: 7px;
    color: #cbd5e1;
    font-size: 12px;
}

.dash-premium-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dash-premium-chart-box {
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    padding: 16px;
    min-height: 270px;
}

.dash-premium-chart-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.dash-premium-chart-title strong {
    font-size: 13px;
    color: #f8fafc;
}

.dash-premium-chart-title span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.dash-premium-bar-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    height: 205px;
    align-items: end;
    padding: 14px 12px 0;
}

.dash-premium-bar-item {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 9px;
}

.dash-premium-bar-track {
    position: relative;
    height: 100%;
    border-radius: 10px 10px 4px 4px;
    background: rgba(148, 163, 184, 0.10);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dash-premium-bar {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    min-height: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 7px;
    color: white;
    font-size: 12px;
    font-weight: 950;
}

.dash-premium-bar.green { background: linear-gradient(180deg, #22c55e, rgba(22, 101, 52, 0.35)); }
.dash-premium-bar.blue { background: linear-gradient(180deg, #60a5fa, rgba(30, 64, 175, 0.35)); }
.dash-premium-bar.amber { background: linear-gradient(180deg, #f59e0b, rgba(120, 53, 15, 0.35)); }
.dash-premium-bar.red { background: linear-gradient(180deg, #ef4444, rgba(153, 27, 27, 0.35)); }
.dash-premium-bar.purple { background: linear-gradient(180deg, #a78bfa, rgba(88, 28, 135, 0.35)); }

.dash-premium-bar-label {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 750;
}

.dash-premium-donut-area {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    min-height: 205px;
    padding: 8px 10px 0;
}

.dash-premium-donut {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background:
        conic-gradient(
            #22c55e 0deg 240deg,
            #f59e0b 240deg 320deg,
            #ef4444 320deg 360deg
        );
    position: relative;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.dash-premium-donut::after {
    content: "";
    position: absolute;
    inset: 35px;
    background: #020617;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.dash-premium-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    text-align: center;
}

.dash-premium-donut-center strong {
    display: block;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dash-premium-donut-center span {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.dash-premium-legend {
    display: grid;
    gap: 13px;
}

.dash-premium-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.dash-premium-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.dash-premium-legend-dot.green { background: #22c55e; }
.dash-premium-legend-dot.amber { background: #f59e0b; }
.dash-premium-legend-dot.red { background: #ef4444; }

.dash-premium-quick-link {
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(2, 6, 23, 0.38);
    border-radius: 16px;
    padding: 15px;
    text-decoration: none;
    color: #f8fafc;
    transition: all 0.16s ease;
}

.dash-premium-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(15, 23, 42, 0.62);
}

.dash-premium-quick-link strong {
    display: block;
    font-size: 14px;
}

.dash-premium-quick-link span {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.dash-premium-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-premium-table th {
    text-align: left;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.88);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.dash-premium-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: #e5e7eb;
    font-size: 13px;
    vertical-align: top;
}

.dash-premium-table tr:hover td {
    background: rgba(15, 23, 42, 0.28);
}

.dash-premium-muted {
    color: #94a3b8;
    font-size: 12px;
}

.dash-premium-quick-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dash-premium-bottom-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.58);
    padding: 17px;
    min-height: 86px;
    text-decoration: none;
    color: #f8fafc;
    transition: all 0.16s ease;
}

.dash-premium-bottom-card:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.22);
}

.dash-premium-bottom-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.dash-premium-bottom-card span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1340px) {
    .dash-premium-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-premium-hero,
    .dash-premium-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .dash-premium-kpi-grid,
    .dash-premium-charts-grid,
    .dash-premium-quick-grid-bottom {
        grid-template-columns: 1fr;
    }

    .dash-premium-donut-area {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .dash-premium-topbar {
        flex-direction: column;
    }
}

/* Ajuste barra Sa�de Geral da Opera��o - degrad� igual ao prot�tipo */
.dash-premium-progress {
    height: 10px !important;
    border-radius: 999px !important;
    background: rgba(148, 163, 184, 0.13) !important;
    overflow: hidden !important;
    margin-bottom: 13px !important;
}

.dash-premium-progress div,
.dash-premium-progress .green,
.dash-premium-progress .amber,
.dash-premium-progress .red {
    height: 100% !important;
    border-radius: 999px !important;
    background: linear-gradient(
        90deg,
        #22c55e 0%,
        #22c55e 42%,
        #f59e0b 68%,
        #ef4444 100%
    ) !important;
}

