﻿@import url('/static/tokens.css');
@import url('/static/layout.css');
@import url('/static/dashboard.css');
@import url('/static/clients.css');
@import url('/static/utilities.css');
.nav-link-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sidebar-submenu {
    display: none;
    margin-left: 0.6rem;
}

.sidebar-submenu.is-open {
    display: block;
}

.nav-sublink {
    padding-left: 1.6rem;
}

.c6-legacy-grid thead th {
    background: #f3d12c;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #d0b21a;
    padding: 2px 4px;
    white-space: nowrap;
}

.c6-legacy-grid tbody td {
    font-size: 12px;
    line-height: 1.1;
    padding: 2px 4px;
    border: 1px solid #d8d8d8;
    white-space: nowrap;
}

.c6-legacy-header h2 {
    background: #f3d12c;
    color: #1e1e1e;
    font-size: 32px;
    line-height: 1.05;
    text-align: center;
    margin: 0;
    padding: 2px 8px;
}

.c6-legacy-search {
    margin: 0;
}

.c6-legacy-search-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.c6-legacy-field {
    display: flex;
    flex-direction: column;
}

.c6-legacy-field label {
    display: block;
    position: static !important;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.c6-legacy-field input,
.c6-legacy-field select {
    width: 100%;
    height: 38px;
    border: 1px solid #9a9a9a;
    border-radius: 0;
    font-size: 16px;
    padding: 6px 8px;
    box-sizing: border-box;
}

.c6-legacy-actions button {
    height: 38px;
    font-size: 16px;
    padding: 6px 14px;
    box-sizing: border-box;
    align-self: end;
}

.c6-legacy-search .clt-actions-right {
    margin-top: 10px !important;
}

.c6-history-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    z-index: 1200;
}

.c6-history-modal {
    width: min(980px, 92vw);
    max-height: 84vh;
    background: #f0f0f0;
    border: 1px solid #b6b6b6;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.c6-history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3d12c;
    padding: 8px 10px;
}

.c6-history-head h3 {
    margin: 0;
    font-size: 22px;
    color: #1b1b1b;
}

.c6-history-close {
    border: 1px solid #8e8e8e;
    background: #ffffff;
    padding: 4px 10px;
    cursor: pointer;
}

.c6-history-meta {
    padding: 8px 10px;
    font-weight: 700;
    border-bottom: 1px solid #c8c8c8;
}

.c6-history-body {
    padding: 10px;
    overflow: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.4;
    background: #ffffff;
}

.c6-history-line {
    margin-bottom: 6px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 6px;
}

.clt-alert-success {
    color: #155724 !important;
    background: #e9f9ee !important;
    border: 1px solid #bfe8ca !important;
}

.nav-icon-c6 {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-width: 34px;
    width: 34px !important;
    height: 28px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.nav-link .nav-icon.nav-icon-c6,
.nav-link:hover .nav-icon.nav-icon-c6,
.nav-link.is-active .nav-icon.nav-icon-c6,
.nav-link-toggle .nav-icon.nav-icon-c6 {
    background: transparent !important;
    color: inherit !important;
}

.nav-icon-c6 img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: block;
}

.c6-brandmark-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 58px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #25272b;
    color: #f1f3f5;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.c6-brandmark-logo--on-dark {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

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

.system-health-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.system-health-hero h2 {
    margin: 4px 0;
    font-size: 30px;
    line-height: 1.1;
}

.system-health-hero p {
    margin: 0;
    color: #64748b;
}

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

.system-health-card {
    display: grid;
    gap: 7px;
    border-left: 5px solid #3b82f6;
}

.system-health-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.system-health-card strong {
    color: #0f172a;
    font-size: 26px;
    line-height: 1.1;
}

.system-health-card small {
    color: #475569;
}

.system-health-card--ok {
    border-left-color: #16a34a;
}

.system-health-card--atencao,
.system-health-card--desconhecido {
    border-left-color: #f59e0b;
}

.system-health-card--erro {
    border-left-color: #dc2626;
}

.system-health-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.system-health-panel {
    overflow: hidden;
}

.system-health-table-wrap {
    overflow: auto;
}

.system-health-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.system-health-badge--atencao,
.system-health-badge--desconhecido {
    background: #fff7ed;
    color: #9a3412;
}

.system-health-badge--erro {
    background: #fef2f2;
    color: #991b1b;
}

.system-health-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.system-health-meta span {
    padding: 7px 9px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.system-health-list {
    display: grid;
    gap: 8px;
}

.system-health-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
}

.system-health-list-item:last-child {
    border-bottom: 0;
}

.system-health-list-item div {
    min-width: 0;
}

.system-health-list-item strong,
.system-health-list-item span {
    display: block;
}

.system-health-list-item strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.system-health-list-item span {
    color: #64748b;
    font-size: 13px;
}

.system-health-log-list {
    display: grid;
    gap: 8px;
}

.system-health-log-line {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.system-health-log-line strong {
    color: #334155;
}

.system-health-log-line code {
    color: #991b1b;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .system-health-grid,
    .system-health-two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .system-health-hero,
    .system-health-list-item {
        align-items: stretch;
        flex-direction: column;
    }

    .system-health-grid,
    .system-health-two {
        grid-template-columns: 1fr;
    }
}
