/* ============================================================
   ERP UPER NET
   STYLE.CSS COMPLETO
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sidebar-width: 242px;
    --sidebar-bg: #dff2ff;
    --sidebar-bg-2: #edf8ff;
    --primary: #178fe5;
    --primary-hover: #087dcc;
    --background: #f4f9fd;
    --border: #dceaf4;
    --text: #19324a;
    --muted: #70869a;
    --white: #ffffff;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* =========================
   LOGIN
========================= */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #edf8ff, #f8fcff);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 55px rgba(31, 79, 112, 0.14);
}

.login-logo {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo h1 {
    color: #138ff7;
    font-size: 35px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
}

.login-logo span {
    display: block;
    margin-top: 3px;
    color: #547188;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-card h2 {
    margin-bottom: 7px;
    text-align: center;
    font-size: 24px;
}

.login-subtitle {
    margin-bottom: 26px;
    color: var(--muted);
    text-align: center;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d4dde7;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 141, 245, 0.10);
}

.btn-login {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--primary-hover);
}

.login-footer {
    margin-top: 25px;
    color: #91a0b5;
    text-align: center;
    font-size: 12px;
}

.alert-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 7px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 14px;
}

/* =========================
   ESTRUTURA PRINCIPAL
========================= */

.app-layout {
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
    color: #19324a;
    border-right: 1px solid #cce4f4;
    box-shadow: 3px 0 14px rgba(31, 79, 112, 0.04);
    scrollbar-width: thin;
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

/* =========================
   LOGO
========================= */

.sidebar-logo {
    min-height: 92px;
    padding: 20px 22px;
    border-bottom: 1px solid #cce4f4;
}

.sidebar-logo h1 {
    color: #1187da;
    font-size: 29px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
}

.sidebar-logo span {
    display: block;
    margin-top: 2px;
    color: #59768c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================
   MENU LATERAL
========================= */

.sidebar-section-title {
    padding: 18px 20px 7px;
    color: #6c879b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 0 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 39px;
    margin-bottom: 2px;
    padding: 8px 11px;
    border-radius: 6px;
    color: #294a62;
    text-decoration: none;
    font-size: 13px;
    transition: 0.15s ease;
}

.menu-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.72);
    color: #087dcc;
}

.menu-item.active {
    background: #ffffff;
    color: #087dcc;
    box-shadow: 0 3px 10px rgba(31, 79, 112, 0.08), inset 4px 0 0 #178fe5;
}

.sidebar-bottom {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #cce4f4;
}

.sidebar-bottom strong {
    display: block;
    font-size: 13px;
}

.sidebar-bottom small {
    display: block;
    margin-top: 5px;
    color: #7891a4;
    font-size: 11px;
}

/* =========================
   CABEÇALHO
========================= */

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 72px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    min-width: 180px;
}

.topbar-title h2 {
    font-size: 21px;
    font-weight: 700;
}

.topbar-title p {
    margin-top: 4px;
    color: #8a98a9;
    font-size: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-search {
    display: flex;
    width: 285px;
    height: 38px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 7px;
}

.topbar-search input {
    width: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.topbar-search button {
    width: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-icon {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
}

.topbar-icon:hover {
    background: #f1f5f9;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dff2ff;
    color: #087dcc;
    border: 1px solid #c4e5fa;
}

.user-info {
    min-width: 80px;
}

.user-info strong {
    display: block;
    font-size: 12px;
}

.user-info small {
    display: block;
    margin-top: 2px;
    color: #8795a6;
    font-size: 10px;
}

.btn-logout {
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: #edf6fc;
    color: #273444;
    cursor: pointer;
}

.btn-logout:hover {
    background: #dceefa;
}

/* =========================
   CONTEÚDO
========================= */

.page-content {
    width: 100%;
    padding: 24px;
}

.dashboard-content {
    width: 100%;
}

/* =========================
   DASHBOARD
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 98px;
    padding: 17px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-left: 5px solid;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.035);
}

.stat-label {
    color: #526277;
    font-size: 12px;
    font-weight: 600;
}

.stat-value {
    margin-top: 9px;
    color: #111c2e;
    font-size: 29px;
    font-weight: 800;
}

.stat-blue {
    border-left-color: #168df5;
}

.stat-green {
    border-left-color: #22b568;
}

.stat-red {
    border-left-color: #ef4444;
}

.stat-orange {
    border-left-color: #ff8b17;
}

.stat-purple {
    border-left-color: #8754d7;
}

.stat-cyan {
    border-left-color: #0da9b5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}

.panel {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
}

.panel-header {
    min-height: 62px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #edf1f4;
}

.panel-header h3 {
    color: #182337;
    font-size: 14px;
}

.panel-header p {
    margin-top: 4px;
    color: #8a98aa;
    font-size: 11px;
}

.panel-body {
    padding: 17px;
}

.empty-state {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa7b7;
    text-align: center;
    font-size: 13px;
}

.network-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
    font-size: 12px;
}

.network-status:last-child {
    border-bottom: 0;
}

.network-status > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
}

.status-dot.green {
    background: #22b568;
}

.status-dot.red {
    background: #ef4444;
}

.map-preview {
    min-height: 330px;
}

.map-placeholder {
    min-height: 265px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 40%, rgba(22, 141, 245, 0.07), transparent 30%),
        radial-gradient(circle at 70% 65%, rgba(34, 181, 104, 0.06), transparent 30%),
        #f1f7fb;
    text-align: center;
}

.map-icon {
    margin-bottom: 12px;
    font-size: 40px;
}

.map-placeholder h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.map-placeholder p {
    max-width: 550px;
    color: #8291a4;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================
   BOTÕES GERAIS
========================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    border: 0;
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    border: 1px solid #d8e0e8;
    background: #fff;
    color: #344054;
}

.btn-secondary:hover {
    background: #f5f7fa;
}

/* =========================
   LISTA DE CLIENTES
========================= */

.clientes-page {
    width: 100%;
}

.page-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.page-toolbar h3 {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.page-toolbar p {
    margin-top: 5px;
    color: #7c8a9b;
    font-size: 12px;
}

.page-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.clientes-filtros {
    width: 100%;
    padding: 15px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 180px 190px;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #e8edf2;
    background: #fff;
}

.clientes-pesquisa {
    width: 100%;
}

.clientes-pesquisa input {
    width: 100%;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #263445;
    font-size: 13px;
}

.clientes-pesquisa input:focus {
    border-color: #168df5;
    box-shadow: 0 0 0 3px rgba(22, 141, 245, 0.08);
}

.clientes-filtros select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #344054;
    font-size: 12px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.erp-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
}

.erp-table thead {
    background: #edf7fd;
}

.erp-table th {
    padding: 13px 14px;
    border-bottom: 1px solid #e1e7ed;
    color: #66758a;
    text-align: left;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.erp-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f4;
    color: #344054;
    font-size: 12px;
    vertical-align: middle;
}

.erp-table tbody tr:hover {
    background: #f8fbfe;
}

.cliente-nome {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.cliente-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f4ff;
    color: #168df5;
    font-size: 14px;
    font-weight: 800;
}

.cliente-nome strong {
    display: block;
    color: #172033;
    font-size: 12px;
}

.cliente-nome small {
    display: block;
    margin-top: 3px;
    color: #98a4b3;
    font-size: 10px;
}

.erp-table td small {
    color: #8997a8;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-online {
    background: #e5f8ee;
    color: #159455;
}

.badge-offline {
    background: #feecec;
    color: #d93c3c;
}

.badge-neutral {
    background: #eef1f5;
    color: #66758a;
}

.badge-ativo {
    background: #e5f8ee;
    color: #159455;
}

.badge-suspenso {
    background: #fff3dc;
    color: #d17b00;
}

.badge-cancelado {
    background: #feecec;
    color: #d93c3c;
}

.btn-table {
    padding: 6px 11px;
    border: 1px solid #d8e1ea;
    border-radius: 5px;
    background: #fff;
    color: #168df5;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-table:hover {
    border-color: #168df5;
    background: #eef7ff;
}

.erp-table .table-empty {
    height: 300px;
    padding: 40px !important;
    color: #8a98a9;
    text-align: center !important;
    vertical-align: middle;
}

.table-empty-icon {
    margin-bottom: 12px;
    font-size: 40px;
}

.table-empty strong {
    display: block;
    margin-bottom: 7px;
    color: #263445;
    font-size: 15px;
}

.table-empty p {
    color: #8a98a9;
    font-size: 12px;
}

/* =========================
   NOVO CLIENTE
========================= */

.cliente-form-page {
    width: 100%;
}

.cliente-form {
    width: 100%;
}

.cliente-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
}

.cliente-form-main {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.form-tabs {
    display: flex;
    overflow-x: auto;
    background: #edf7fd;
    border-bottom: 1px solid #e5eaf0;
}

.form-tab {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #67758a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.form-tab:hover {
    color: #168df5;
    background: #e5f4fe;
}

.form-tab.active {
    color: #168df5;
    border-bottom-color: #168df5;
    background: #fff;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

.form-section {
    padding: 22px;
}

.form-section-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f4;
}

.form-section-header h4 {
    color: #172033;
    font-size: 16px;
}

.form-section-header p {
    margin-top: 5px;
    color: #8997a8;
    font-size: 12px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.form-col-2 {
    grid-column: 1 / -1;
}

.erp-form-group {
    min-width: 0;
}

.erp-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 41px;
    padding: 9px 11px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #263445;
    font-size: 13px;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-control:focus {
    border-color: #168df5;
    box-shadow: 0 0 0 3px rgba(22, 141, 245, 0.08);
}

.form-error {
    display: block;
    margin-top: 5px;
    color: #d83a3a;
    font-size: 11px;
}

.form-alert {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 12px;
}

.form-alert-error {
    background: #feecec;
    color: #b42318;
    border: 1px solid #f9caca;
}

.form-check-input {
    width: 16px;
    height: 16px;
}

.form-checkbox-card {
    min-height: 41px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    background: #f8fcff;
}

.form-checkbox-card label {
    margin: 0;
    font-weight: 600;
}

.form-actions {
    padding: 16px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #edf1f4;
    background: #fafbfd;
}

/* =========================
   RESUMO LATERAL
========================= */

.cliente-resumo {
    position: sticky;
    top: 92px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cliente-resumo-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf1f4;
}

.cliente-resumo-header h4 {
    font-size: 14px;
}

.cliente-resumo-header span {
    color: #8a98aa;
    font-size: 10px;
}

.cliente-resumo-body {
    padding: 20px;
}

.resumo-status {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #526277;
    font-size: 11px;
}

.resumo-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f5ff;
    color: #168df5;
    font-size: 31px;
}

.cliente-resumo-body h3 {
    margin-bottom: 20px;
    color: #172033;
    text-align: center;
    font-size: 16px;
}

.resumo-grid {
    display: grid;
    gap: 10px;
}

.resumo-item {
    padding: 10px 11px;
    border: 1px solid #edf1f4;
    border-radius: 6px;
    background: #fafbfd;
}

.resumo-item span {
    display: block;
    margin-bottom: 4px;
    color: #8a98aa;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.resumo-item strong {
    display: block;
    overflow: hidden;
    color: #344054;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   ADMINISTRATIVO
========================= */

.administrativo-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-card {
    min-height: 90px;
    padding: 15px;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #f8fcff;
}

.info-card span {
    display: block;
    margin-bottom: 7px;
    color: #8492a4;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.info-card strong {
    color: #344054;
    font-size: 12px;
    line-height: 1.4;
}

/* =========================
   SINAL OPTICO DAS ONTs
   Normal: >= -24.0 dBm
   Alerta: -24.1 ate -25.7 dBm
   Critico: <= -25.8 dBm
========================= */

.optical-signal-normal {
    color: #11834d;
    background: #e7f8ef;
    border: 1px solid #bde9d1;
}

.optical-signal-warning {
    color: #b86e05;
    background: #fff4dc;
    border: 1px solid #f2d18e;
}

.optical-signal-critical {
    color: #c7282f;
    background: #ffe9e9;
    border: 1px solid #efb6b8;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1450px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1180px) {
    .cliente-form-layout {
        grid-template-columns: 1fr;
    }

    .cliente-resumo {
        position: static;
    }
}

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

    .clientes-pesquisa {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .topbar-search {
        display: none;
    }

    .topbar-actions {
        display: none;
    }
}

@media (max-width: 850px) {
    :root {
        --sidebar-width: 205px;
    }

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

    .user-info {
        display: none;
    }
}

@media (max-width: 700px) {
    .page-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-toolbar-actions {
        width: 100%;
    }

    .clientes-filtros,
    .form-grid-2,
    .administrativo-info {
        grid-template-columns: 1fr;
    }

    .clientes-pesquisa,
    .form-col-2 {
        grid-column: auto;
    }

    .form-tabs {
        flex-wrap: nowrap;
    }
}

/* ============================================================
   MAPA DA REDE - FIBRA / VIA RADIO
============================================================ */
.network-map-page{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}
.network-map-sidebar{position:sticky;top:88px;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 5px rgba(15,23,42,.025)}
.network-map-sidebar-title{padding:14px 15px 7px;color:#8a98aa;font-size:9px;font-weight:800;letter-spacing:1px}
.network-map-nav{width:100%;display:flex;align-items:center;gap:10px;padding:11px 14px;border:0;border-left:3px solid transparent;background:#fff;color:#344054;text-align:left;cursor:pointer}
.network-map-nav:hover{background:#eff8fe;color:#087dcc}.network-map-nav.active{border-left-color:#178fe5;background:#e7f5ff;color:#087dcc}
.network-map-nav>span{width:22px;font-size:18px}.network-map-nav div{min-width:0}.network-map-nav strong,.network-map-nav small{display:block}.network-map-nav strong{font-size:12px}.network-map-nav small{margin-top:3px;color:#8a98aa;font-size:9px}
.network-map-info{display:flex;justify-content:space-between;gap:10px;padding:8px 15px;color:#526277;font-size:11px}.network-map-info strong{color:#172033}.network-map-info strong.danger{color:#d92d20}
.status-mini,.legend-dot{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%}.online{background:#22b568}.offline{background:#ef4444}.unknown,.desconhecido{background:#94a3b8}
.network-map-main{min-width:0}.network-map-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.network-map-kpis>div{padding:13px 14px;background:#fff;border:1px solid var(--border);border-radius:9px}.network-map-kpis span,.network-map-kpis small{display:block}.network-map-kpis span{color:#7f8ea0;font-size:9px;font-weight:800}.network-map-kpis strong{display:block;margin:4px 0;color:#172033;font-size:22px}.network-map-kpis small{color:#8a98aa;font-size:9px}.network-map-kpis .kpi-alert{border-color:#fecaca;background:#fff7f7}.network-map-kpis .kpi-alert strong{color:#d92d20}
.fiber-alert-panel{margin-bottom:12px;overflow:hidden;background:#fff;border:1px solid #fecaca;border-radius:9px}.fiber-alert-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fff7f7}.fiber-alert-header strong,.fiber-alert-header small{display:block}.fiber-alert-header strong{color:#b42318;font-size:12px}.fiber-alert-header small{margin-top:3px;color:#9b6a66;font-size:9px}.fiber-alert-header>span{padding:5px 8px;border-radius:20px;background:#fee4e2;color:#b42318;font-size:9px;font-weight:800}.fiber-alert-list{max-height:150px;overflow:auto}.fiber-alert-item{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;border-top:1px solid #f3e7e7}.fiber-alert-item strong,.fiber-alert-item small{display:block}.fiber-alert-item strong{font-size:10px}.fiber-alert-item small{margin-top:2px;color:#7f8ea0;font-size:9px}.fiber-alert-item>span{font-size:8px;font-weight:800}.fiber-alert-item.critico>span{color:#b42318}.fiber-alert-item.atencao>span{color:#b54708}
.network-map-panel{overflow:hidden}.network-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;border-bottom:1px solid #edf1f4}.network-map-toolbar h3{font-size:14px}.network-map-toolbar p{margin-top:3px;color:#8a98aa;font-size:10px}.network-map-legend{display:flex;align-items:center;gap:12px;color:#66758a;font-size:9px}.legend-olt{display:inline-flex;align-items:center;justify-content:center;width:26px;height:20px;margin-right:5px;border-radius:5px;background:#258dca;color:#fff;font-size:7px;font-style:normal;font-weight:800}
#mapa-rede{width:100%;min-height:650px;height:calc(100vh - 260px);background:#eaf3f8}.net-client-marker{width:16px;height:16px;border:3px solid #fff;border-radius:50%;box-shadow:0 1px 6px rgba(0,0,0,.45)}.net-client-marker.online{background:#22b568}.net-client-marker.offline{background:#ef4444}.net-client-marker.desconhecido{background:#94a3b8}.net-olt-marker{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:3px solid #fff;border-radius:10px;background:#258dca;color:#fff;box-shadow:0 2px 9px rgba(0,0,0,.45);font-size:10px;font-weight:900}
.mapa-popup{min-width:245px}.mapa-popup h4{margin:0 0 8px;color:#263445;font-size:13px}.mapa-popup-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 8px;margin-bottom:10px;font-size:10px}.mapa-popup-grid span{color:#7f8ea0}.mapa-popup-grid strong{color:#263445;overflow-wrap:anywhere}.mapa-popup-status{margin-bottom:8px;padding:6px 8px;border-radius:5px;font-size:10px;font-weight:700}.mapa-popup-status.online{background:#effbf4;color:#16834b}.mapa-popup-status.offline{background:#fff1f1;color:#c62828}.mapa-popup-status.desconhecido{background:#f1f4f7;color:#637285}.mapa-popup-link{display:inline-flex;padding:6px 9px;border-radius:5px;background:#178fe5;color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:700}
@media(max-width:1100px){.network-map-page{grid-template-columns:1fr}.network-map-sidebar{position:static}.network-map-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.network-map-kpis{grid-template-columns:1fr 1fr}.network-map-toolbar{align-items:flex-start;flex-direction:column}#mapa-rede{min-height:560px;height:65vh}}
