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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    background-color: #1a1a1a;
    background-image: url('images/login-bg.jpg');
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 40px;
    color: #333;
    position: relative;
}

/* Overlay escuro sobre o fundo (igual à tela de login) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(26, 26, 26, 0.6) 100%),
                rgba(0, 0, 0, 0.25);
    z-index: 0;
}

/* Página de login: ajustes específicos (sem padding, overlay já herdada) */
body.login-page {
    padding: 0;
}

body.login-page::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%),
                rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(40, 40, 45, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
    color: #e8e8e8;
}

.container header h1,
.container .header-app-name,
.container h2,
.container .empty-state h2,
.container .empty-state p {
    color: #e8e8e8;
}

.container .empty-state p {
    color: rgba(232, 232, 232, 0.9);
}

.container header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.container .nav-link {
    color: #e8e8e8;
}

.container .nav-link:hover {
    color: #fff;
}

.container .dropdown-menu {
    background: rgba(50, 50, 55, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.container .dropdown-link {
    color: #e8e8e8;
}

.container .dropdown-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header h1 {
    color: #000000;
    font-size: 16px;
}

.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #ffffff;
}

.alert-success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: rgba(255, 243, 205, 0.9);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: rgba(209, 236, 241, 0.95);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Botão Entrar na página de login - cinza claro com letras pretas */
.auth-box .btn-primary {
    background: #e0e0e0;
    color: #000000;
    border: 1px solid #ccc;
}

.auth-box .btn-primary:hover {
    background: #d0d0d0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Tabela de clientes em linha */
.clientes-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.clientes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clientes-table thead {
    background: #000000;
    color: white;
}

.clientes-table th {
    padding: 9px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.clientes-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.clientes-table tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.clientes-table td {
    padding: 9px 12px;
    vertical-align: middle;
    color: #000000;
}

.clientes-table tbody tr:hover td {
    color: #000000;
}

/* Contas a pagar e listagens: texto preto na tabela (fundo branco) */
.container .clientes-table tbody td {
    color: #000000;
}

.codigo-cell {
    font-weight: bold;
    color: #000000;
    font-family: 'Courier New', monospace;
    width: 80px;
}

.nome-cell {
    font-weight: 600;
    color: #000000;
}

.tipo-cell {
    width: 88px;
    min-width: 88px;
    white-space: nowrap;
    vertical-align: middle;
}

.tipo-cell .tipo-badges {
    flex-wrap: nowrap;
}

.contato-cell {
    color: #000000;
    white-space: nowrap;
    min-width: 200px;
}

.status-cell {
    width: 100px;
}

.actions-cell {
    width: 350px;
    white-space: nowrap;
}

.actions-cell .btn {
    margin-right: 5px;
    margin-bottom: 0;
}

.actions-cell form {
    display: inline-block;
    margin: 0;
}

.cliente-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cliente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cliente-header h2 {
    color: #000000;
    font-size: 16px;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-inativo {
    background: #f8d7da;
    color: #721c24;
}

.status-suspenso {
    background: #fff3cd;
    color: #856404;
}

.cliente-info p {
    margin: 8px 0;
    color: #000000;
}

.cliente-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #000000;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Atalhos da tela principal (ícone + texto, estilo Manager Pro) */
.home-shortcuts {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    min-width: 200px;
}
.home-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-shortcut-icon svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

/* Dashboard Neon – cards da tela inicial */
.home-dashboard-wrap {
    padding: 40px 20px;
    text-align: center;
}

.home-dashboard-title {
    margin: 0 0 20px 0;
}

.home-dashboard-desc {
    font-size: 14px;
    margin: 0 0 30px 0;
}

.home-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .home-dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.home-card {
    height: 140px;
    background: #111827;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.home-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.home-card i {
    font-size: 38px;
    margin-bottom: 10px;
}

.home-card h3 {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin: 0;
}

.home-card:hover {
    transform: translateY(-6px);
}

.home-card--blue i { color: #3b82f6; text-shadow: 0 0 15px #3b82f6; }
.home-card--blue:hover { border-color: #3b82f6; box-shadow: 0 0 20px #3b82f6; }

.home-card--cyan i { color: #06b6d4; text-shadow: 0 0 15px #06b6d4; }
.home-card--cyan:hover { border-color: #06b6d4; box-shadow: 0 0 20px #06b6d4; }

.home-card--purple i { color: #8b5cf6; text-shadow: 0 0 15px #8b5cf6; }
.home-card--purple:hover { border-color: #8b5cf6; box-shadow: 0 0 20px #8b5cf6; }

.home-card--green i { color: #22c55e; text-shadow: 0 0 15px #22c55e; }
.home-card--green:hover { border-color: #22c55e; box-shadow: 0 0 20px #22c55e; }

.home-card--orange i { color: #f97316; text-shadow: 0 0 15px #f97316; }
.home-card--orange:hover { border-color: #f97316; box-shadow: 0 0 20px #f97316; }

/* Página Utilitários */
.utilitarios-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.utilitarios-page-header h2 {
    margin: 0 0 4px 0;
    color: #e8e8e8;
}
.utilitarios-page-sub {
    margin: 0;
    color: rgba(232, 232, 232, 0.72);
    font-size: 14px;
}
.utilitarios-panel {
    background: #fff;
    color: #000;
    border-radius: 10px;
    padding: 6px 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.utilitarios-secao {
    padding: 18px 22px 10px;
}
.utilitarios-secao + .utilitarios-secao {
    border-top: 1px solid #ececec;
}
.utilitarios-secao-titulo {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    color: #6b6b6b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.utilitarios-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}
.utilitario-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin: 0 -6px 6px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.utilitarios-lista .utilitario-row:last-child {
    margin-bottom: 0;
}
.utilitario-row:hover {
    background: #f7f7f8;
    border-color: #ececec;
}
.utilitario-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.utilitario-texto strong {
    font-size: 14px;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 600;
}
.utilitario-texto span {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
.utilitario-acoes {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.utilitario-row > .btn,
.utilitario-acoes .btn {
    flex-shrink: 0;
    min-width: 118px;
    text-align: center;
    border-radius: 6px;
    box-shadow: none;
    transform: none;
}
.utilitario-row > .btn:hover,
.utilitario-acoes .btn:hover {
    transform: none;
    box-shadow: none;
}
.utilitario-badge {
    font-style: normal;
    font-size: 11px !important;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.utilitario-badge--ok {
    background: #eaf7ee;
    color: #1b7a3a;
}
.utilitario-badge--aviso {
    background: #fff4d6;
    color: #8a6a10;
}
@media (max-width: 700px) {
    .utilitario-row {
        flex-direction: column;
        align-items: stretch;
    }
    .utilitario-row > .btn,
    .utilitario-acoes {
        width: 100%;
    }
    .utilitario-acoes .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
}

/* Caixa branca para formulários de cadastro/editar cliente */
.form-cadastro-box {
    background: #fff;
    color: #000;
    padding: 28px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Formulários de cadastro em largura total do container */
.form-cadastro-box.form-cadastro-largo {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.form-cadastro-box.form-cadastro-largo .form-cadastro {
    max-width: none;
    width: 100%;
}
.form-row-tipos-cliente {
    align-items: flex-end;
}
.form-row-tipos-cliente .form-group:first-child {
    flex: 1;
    min-width: 200px;
}
.form-row-tipos-cliente .form-group:last-child {
    flex: 0 0 auto;
    max-width: 300px;
}
.form-row-tipos-cliente .tipo-cliente-opcoes {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.form-row-tipos-cliente .tipo-cliente-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}
.form-cadastro-box .form-select-tipo-servico {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #000;
    font-size: 14px;
}
.form-cadastro-box h1,
.form-cadastro-box .form-group label,
.form-cadastro-box label {
    color: #000 !important;
}
.form-cadastro-box .form-group input,
.form-cadastro-box .form-group textarea,
.form-cadastro-box .form-group select {
    background: #fff;
    color: #000;
    border-color: #ccc;
}

.form-cadastro {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 260px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #000000;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(
        to right,
        #0d0d0d,
        #151515,
        #0d0d0d
    );
    border-top: 1px solid #222;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 12px;
    color: #b8b8b8;
    z-index: 999;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
}

.footer-container span {
    white-space: nowrap;
    color: #ffffff;
    font-weight: 700;
    margin-right: 16px;
}

.footer-container span:last-child {
    margin-right: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11px;
        justify-content: center;
        text-align: center;
    }

    .footer-container span::after {
        display: none;
    }
}

.cliente-detalhes {
    display: grid;
    gap: 20px;
}

.info-box,
.documentos-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Cards do Financeiro (quadrados virando retangulares) */
.info-box.valor-toggle-container {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-box h2,
.documentos-box h2 {
    color: #000000;
    margin-bottom: 15px;
}

.info-box p {
    margin: 10px 0;
    color: #000000;
}

.info-box h3 {
    color: #000000;
}

.documentos-list {
    list-style: none;
}

.documentos-list li {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #000000;
    color: #000000;
}

.documentos-list a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.documentos-list a:hover {
    text-decoration: underline;
}

/* Estilos de Autenticação - caixa de login na altura do risco vermelho (parte inferior) */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    padding: 20px 60px 18vh;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: rgba(58, 58, 62, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 24px 32px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    max-width: 560px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
}

.auth-recuperar-wrap {
    margin-top: 8px;
}

.auth-recuperar {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.auth-recuperar:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-form {
    margin-top: 0;
}

.auth-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.auth-form-row .form-group-inline {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}

.auth-form-row .form-group-senha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Alinha o botão Entrar com os campos Email e Senha (mesma altura dos inputs) */
.auth-btn-wrap {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    padding-top: 22px;
}

.auth-form-row .form-group-inline label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

.auth-form-row .form-group-inline input {
    width: 100%;
    min-width: 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.auth-form input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: border-color 0.3s, background 0.3s;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.auth-btn-entrar {
    padding: 12px 24px;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.auth-messages {
    margin-bottom: 16px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Menu de Usuário */
.header-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
    gap: 0;
}

.header-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Logo com largura igual ou menor que o texto "AS NetManager" */
.header-logo {
    width: 8.5em;
    height: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.header-app-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.header-nav-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-admin {
    background: #000000;
    color: white;
}

.badge-user {
    background: #6c757d;
    color: white;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-mon {
    background-color: #6f42c1;
    color: white;
}

.badge-isp {
    background-color: #198754;
    color: #fff;
}

.badge-asn {
    background-color: #0a58ca;
    color: #fff;
}

.badge-servico {
    background-color: #495057;
    color: #fff;
}

.tipo-badges {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}

.tipo-badges .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: 4px;
}

/* Status Badges com cores (Ativo/Inativo) */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.status-badge.status-ativo {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-inativo {
    background-color: #f8d7da;
    color: #721c24;
}

/* Radio buttons group para status */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* Estilos para campos de autenticação */
.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px;
    width: 100%;
}

.campo-credencial .password-wrapper,
.form-group .password-wrapper {
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #000000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
    z-index: 2;
}

.password-toggle:hover {
    color: #000;
}

.password-toggle:focus {
    outline: none;
    color: #000;
}

.password-toggle .eye-icon {
    display: inline-block;
}

.password-toggle .eye-off-icon {
    display: none;
}

.password-toggle.showing .eye-icon {
    display: none;
}

.password-toggle.showing .eye-off-icon {
    display: inline-block;
}

.password-copy-hint {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.password-wrapper:hover .password-copy-hint {
    opacity: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Tabela de Usuários */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: #000000;
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #000000;
}

.data-table tbody tr:hover td {
    color: #000000;
}

.data-table tbody tr:hover {
    background: #f9f9f9;
}

.text-center {
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="checkbox"] {
    width: auto;
}

/* Navegação Principal */
.main-nav {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Nav inline no header (mesmo nível que título e user menu) */
.main-nav-inline {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #e8e8e8;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.nav-link:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: rgba(42, 42, 46, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    min-width: 230px;
    z-index: 1000;
    margin-top: 0;
    list-style: none;
    padding: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 10px 14px;
    color: #e8e8e8;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 14px;
    position: relative;
    border-radius: 6px;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 14px;
    font-weight: 500;
}

.dropdown-link:hover::before {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        justify-content: flex-start;
        width: 100%;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    header h1 {
        font-size: 16px;
    }
    
    .clientes-grid {
        grid-template-columns: 1fr;
    }
    
    .clientes-table-container {
        overflow-x: auto;
    }
    
    .clientes-table {
        font-size: 14px;
    }
    
    .clientes-table th,
    .clientes-table td {
        padding: 7px 6px;
    }
    
    .actions-cell {
        width: auto;
    }
    
    .actions-cell .btn {
        font-size: 14px;
        padding: 4px 8px;
        margin-right: 3px;
    }
    
    .cliente-actions {
        flex-direction: column;
    }
    
    .cliente-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .auth-container {
        padding: 20px 20px 18vh;
        justify-content: flex-end;
        align-items: center;
    }
    
    .auth-box {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .auth-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auth-form-row .form-group-inline,
    .auth-form-row .form-group-senha {
        min-width: 0;
    }
    
    .auth-btn-wrap {
        width: 100%;
    }
    
    .auth-btn-entrar {
        width: 100%;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .main-nav {
        margin-top: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        border: 1px solid #eee;
    }
}

/* Botão olho: mostrar/ocultar valor — ícone na mesma linha do título, traço quando oculto */
.valor-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.valor-toggle-header h3,
.valor-toggle-header h4,
.valor-toggle-header h5,
.valor-toggle-header .info-box-title {
    margin: 0;
    flex: 1;
}
.btn-toggle-valor {
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px;
    line-height: 0;
    border-radius: 4px;
    color: #000;
    opacity: 0.9;
}
.btn-toggle-valor:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08);
}
.btn-toggle-valor svg {
    display: block;
}
.btn-toggle-valor .icon-eye-strike {
    visibility: hidden;
}
.valor-toggle-container.valor-oculto .btn-toggle-valor .icon-eye-strike {
    visibility: visible;
}
.valor-toggle-container .valor-mask {
    display: none;
    letter-spacing: 0.05em;
}
.valor-toggle-container.valor-oculto .valor-real {
    display: none;
}
.valor-toggle-container.valor-oculto .valor-mask {
    display: inline;
}
.valor-toggle-container.valor-oculto .btn-toggle-valor {
    opacity: 0.8;
}

/* === Tipografia padrão NetManager: títulos 16px / corpo·menus·inputs·botões 14px === */
body:not(.login-page) {
    font-size: 14px;
}

body:not(.login-page) .container,
body:not(.login-page) .main-nav,
body:not(.login-page) .nav-list,
body:not(.login-page) .dropdown-menu,
body:not(.login-page) .documentos-nav,
body:not(.login-page) .info-box,
body:not(.login-page) .documentos-box,
body:not(.login-page) .form-cadastro-box,
body:not(.login-page) table {
    font-size: 14px;
}

body:not(.login-page) h1,
body:not(.login-page) h2,
body:not(.login-page) h3,
body:not(.login-page) h4,
body:not(.login-page) h5,
body:not(.login-page) h6,
body:not(.login-page) .header-app-name,
body:not(.login-page) .home-dashboard-title,
body:not(.login-page) .home-card h3,
body:not(.login-page) .cliente-header h2,
body:not(.login-page) .credenciais-header h2,
body:not(.login-page) .secao-credenciais > h3,
body:not(.login-page) .secao-credenciais h3,
body:not(.login-page) .secao-credenciais h4,
body:not(.login-page) .servidor-titulo,
body:not(.login-page) .dns-titulo,
body:not(.login-page) .rede-titulo,
body:not(.login-page) .vm-titulo,
body:not(.login-page) .vm-item-header h6,
body:not(.login-page) .anotacao-titulo-linha,
body:not(.login-page) .progress-title,
body:not(.login-page) .checklist-menu-title,
body:not(.login-page) .gerador-box h3,
body:not(.login-page) .utilitario-item h3,
body:not(.login-page) .empty-state h2,
body:not(.login-page) .info-box h2,
body:not(.login-page) .info-box h3,
body:not(.login-page) .documentos-box h2,
body:not(.login-page) legend {
    font-size: 16px !important;
    line-height: 1.35;
}

body:not(.login-page) input,
body:not(.login-page) select,
body:not(.login-page) textarea,
body:not(.login-page) button,
body:not(.login-page) .btn,
body:not(.login-page) .btn-sm,
body:not(.login-page) label,
body:not(.login-page) p,
body:not(.login-page) span:not(.badge):not(.dropdown-arrow),
body:not(.login-page) a,
body:not(.login-page) li,
body:not(.login-page) td,
body:not(.login-page) th,
body:not(.login-page) strong,
body:not(.login-page) b,
body:not(.login-page) em,
body:not(.login-page) small,
body:not(.login-page) code,
body:not(.login-page) pre,
body:not(.login-page) .alert,
body:not(.login-page) .nav-link,
body:not(.login-page) .dropdown-link,
body:not(.login-page) .dropdown-toggle,
body:not(.login-page) .form-group,
body:not(.login-page) .campo-credencial,
body:not(.login-page) .campo-credencial label,
body:not(.login-page) .utilitario-desc,
body:not(.login-page) .edit-mode-badge,
body:not(.login-page) .home-dashboard-desc,
body:not(.login-page) .home-shortcut-btn,
body:not(.login-page) .documentos-list a,
body:not(.login-page) .checklist-item label,
body:not(.login-page) .progress-text,
body:not(.login-page) .progress-bar,
body:not(.login-page) .password-toggle,
body:not(.login-page) .secao-actions .btn,
body:not(.login-page) .anotacao-meta,
body:not(.login-page) .saldo-valor {
    font-size: 14px !important;
}

/* Ícones da home permanecem grandes */
body:not(.login-page) .home-card i {
    font-size: 38px !important;
}

/* Badges de alerta no menu ficam compactos */
body:not(.login-page) .badge,
body:not(.login-page) .dropdown-arrow {
    font-size: 11px !important;
}

.multiredes-opcao small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-weight: 400;
}

.redes-bloco .redes-hint {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.92em;
}

.redes-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rede-linha-cadastro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rede-linha-cadastro .rede-linha-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rede-linha-cadastro .rede-linha-info strong {
    color: #111;
}

.rede-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e9ecef;
    color: #333;
}

.rede-linha-acoes,
.rede-adicionar-form,
.redes-toggle-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rede-renomear-inline {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rede-renomear-inline.is-open {
    display: flex;
}

.rede-renomear-inline input[name="nome"] {
    min-width: 180px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.rede-adicionar-form input {
    min-width: 180px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.rede-adicionar-form {
    margin-top: 12px;
}

.rede-seletor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

.rede-seletor-nav {
    margin: 0 8px 0 0;
}

.rede-seletor label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

header .rede-seletor.rede-seletor-nav label {
    color: #fff;
    font-weight: 700;
}

.rede-seletor select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    min-width: 160px;
}

.diagrama-lista {
    margin-top: 8px;
}

.diagrama-novo,
.diagrama-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.diagrama-novo {
    margin-bottom: 16px;
}

.diagrama-novo input,
.diagrama-inline input,
.diagrama-props input {
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    color: #222;
}

.diagrama-novo input {
    min-width: 240px;
}

.diagrama-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.diagrama-vazio {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: #666;
}

.diagrama-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0;
}

.diagrama-toolbar .btn-router,
.diagrama-toolbar .btn-switch,
.diagrama-toolbar .btn-switch-l2,
.diagrama-toolbar .btn-olt,
.diagrama-toolbar .btn-rede-neutra,
.diagrama-toolbar .btn-nota {
    color: #fff;
    border: none;
}

.diagrama-toolbar .btn-router { background: #0b5cab; }
.diagrama-toolbar .btn-router:hover { background: #084a8a; }

.diagrama-toolbar .btn-switch { background: #146c43; }
.diagrama-toolbar .btn-switch:hover { background: #0f5535; }

.diagrama-toolbar .btn-switch-l2 { background: #0e7490; }
.diagrama-toolbar .btn-switch-l2:hover { background: #155e75; }

.diagrama-toolbar .btn-olt { background: #c2410c; }
.diagrama-toolbar .btn-olt:hover { background: #9a3412; }

.diagrama-toolbar .btn-rede-neutra { background: #6d28d9; }
.diagrama-toolbar .btn-rede-neutra:hover { background: #4c1d95; }

.diagrama-toolbar .btn-nota {
    background: #e8b923;
    color: #3f2e04;
}
.diagrama-toolbar .btn-trava {
    background: #b45309;
    color: #fff;
    border: none;
}
.diagrama-toolbar .btn-trava:hover { background: #92400e; }
.diagrama-toolbar .btn-trava.is-locked { background: #15803d; }
.diagrama-toolbar .btn-trava.is-locked:hover { background: #166534; }
.diagrama-toolbar button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.diagrama-editor-page.is-locked .diag-node,
.diagrama-editor-page.is-locked .diag-tag,
.diagrama-editor-page.is-locked .diag-note-handle {
    cursor: default;
}

.diagrama-status {
    color: #d7e7ff;
    font-size: 0.9em;
    min-height: 1em;
}

.diagrama-salvar {
    margin-left: auto;
}

.diagrama-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    min-height: 520px;
}

.diagrama-canvas-wrap {
    background: #f7f8fa;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: auto;
    min-height: 520px;
}

.diagrama-svg {
    width: 1600px;
    height: 900px;
    display: block;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    touch-action: none;
}

.diag-link {
    stroke: #3a4553;
    stroke-width: 2.5;
    cursor: pointer;
    pointer-events: stroke;
}

.diag-link.is-selected {
    stroke: #0b6bcb;
    stroke-width: 4;
}

.diag-node {
    cursor: grab;
}

.diag-caption-bg {
    fill: #f7f8fa;
}

.diag-node.is-selected image {
    outline: 2px solid #0b6bcb;
    outline-offset: 2px;
}

.diag-label,
.diag-ip,
.diag-ip30,
.diag-iface,
.diag-tag-ip,
.diag-mid {
    font-size: 11px;
    font-weight: 400;
    fill: #445;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.diag-link-hit {
    stroke: rgba(0, 0, 0, 0.01);
    stroke-width: 18;
    cursor: pointer;
    pointer-events: stroke;
}

.diagrama-props [hidden] {
    display: none !important;
}

.diag-tag {
    cursor: grab;
}

.diag-note-box {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fffef2;
    border: 1px solid #d0a84a;
    border-radius: 6px;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #445;
}

.diag-note-box.is-selected {
    border-color: #0b6bcb;
}

.diag-note-handle {
    cursor: grab;
    background: #f3e6bf;
    padding: 4px 8px;
    font-size: 11px;
}

.diag-note-box textarea {
    flex: 1;
    width: 100%;
    border: 0;
    resize: none;
    margin: 0;
    padding: 6px 8px;
    background: transparent;
    color: #445;
    font: inherit;
    box-sizing: border-box;
}

.diagrama-props {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 14px;
    color: #222;
}

.diagrama-props h2 {
    font-size: 1rem;
    margin: 0 0 12px;
    color: #222;
}

.diagrama-props label {
    display: block;
    font-weight: 600;
    margin: 8px 0 4px;
}

.diagrama-props input {
    width: 100%;
    box-sizing: border-box;
}

.diagrama-props input:disabled {
    background: #f3f4f6;
}

.diagrama-hint {
    margin-top: 14px;
    color: #555;
    font-size: 0.85em;
    line-height: 1.4;
}

.diagrama-iface-lado {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin: 8px 0 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #344054;
    line-height: 1.3;
    word-break: break-word;
}

.diagrama-iface-lado span {
    flex: 0 0 auto;
    color: #0b6bcb;
}

.diagrama-iface-bloco {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px 10px;
    margin-bottom: 8px;
}

.diagrama-iface-bloco input {
    margin: 0 0 6px;
}

.diagrama-iface-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 22px;
}

.diagrama-iface-rm {
    border: 0;
    background: transparent;
    color: #b42318;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

#btn-add-iface {
    margin-bottom: 8px;
}

@media (max-width: 800px) {
    .diagrama-workspace {
        grid-template-columns: 1fr;
    }
    .diagrama-salvar {
        margin-left: 0;
    }
}
