/* Painel SysNF: mesmo visual do saxweb (azul petróleo, Poppins, cantos de 10px) */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap");

:root { --petroleo: #2b3a4a; --petroleo-topo: #243241; --destaque: #516480; --marcador: #9ec3e6; }
body { font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.main-sidebar.sidebar-dark-primary {
    background: var(--petroleo); font-family: "Poppins", system-ui, sans-serif;
    box-shadow: 1px 0 0 rgba(0, 0, 0, .12), 4px 0 18px rgba(16, 24, 40, .10) !important;
}
.main-sidebar .brand-link {
    display: flex; align-items: center; gap: 10px; background: var(--petroleo-topo);
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important; color: #fff;
}
.main-sidebar .brand-link:hover { background: #1f2c39; color: #fff; }
.brand-modulo { display: flex; flex-direction: column; line-height: 1.2; }
.brand-modulo small { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #a9b9c8; }
.brand-modulo strong { font-size: 13.5px; font-weight: 600; color: #fff; }
.brand-icone { font-size: 1.5rem; color: var(--marcador); }
.nav-sidebar .nav-link { border-radius: 10px; color: #d7e0e9; font-size: 14px; position: relative; }
.nav-sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-sidebar .nav-link .nav-icon { color: #9fb3c6; }
.nav-sidebar > .nav-item > .nav-link.active, .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: rgba(159, 195, 230, .18); color: #fff; box-shadow: none;
}
.nav-sidebar .nav-link.active::before {
    content: ""; position: absolute; left: -.5rem; top: 20%; bottom: 20%; width: 3px;
    background: var(--marcador); border-radius: 0 3px 3px 0;
}
.main-sidebar .sidebar { padding: 0 .5rem 1rem; }

.content-wrapper { background: #f4f6f9; }
.content-header h1 { font-size: 1.5rem; font-weight: 600; }
.card { border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); border: 0; }
.card-header { background: #fff; border-bottom: 1px solid #edf0f3; border-radius: 10px 10px 0 0 !important; }
.card-header .card-title { font-weight: 600; color: var(--petroleo); }
.btn { border-radius: 8px; }
.btn-petroleo { background: var(--destaque); border-color: var(--destaque); color: #fff; }
.btn-petroleo:hover { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
.form-control { border-radius: 8px; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7a8c; border-top: 0; }
.table td { vertical-align: middle; }
.linha-link { cursor: pointer; }
.linha-link:hover { background: #f5f8fb; }

.caixa-numero { border-radius: 10px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.caixa-numero .valor { font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.caixa-numero .rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7a8c; }

pre.xml {
    background: #1e2a36; color: #d7e0e9; border-radius: 10px; padding: 14px; font-size: 12.5px;
    max-height: 560px; overflow: auto; white-space: pre; margin: 0;
}
.erro-item { border-left: 4px solid #dc3545; background: #fff5f5; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; }
.erro-item .codigo { font-weight: 600; color: #b02a37; }
.chave { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.moldura-pdf { width: 100%; height: 72vh; border: 1px solid #dde2e8; border-radius: 10px; background: #fff; }
.rotulo-campo { font-size: 12px; color: #6b7a8c; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 0; }
.valor-campo { font-weight: 500; word-break: break-word; }
