:root { --nx-sidebar: #0b1220; --nx-accent: #38bdf8; --nx-sidebar-text: #cbd5e1; }
body { min-height: 100vh; }
.nx-shell { display: flex; min-height: 100vh; }
.nx-sidebar { width: 280px; background: var(--nx-sidebar); color: var(--nx-sidebar-text); flex-shrink: 0; padding: 0.85rem 0.7rem; overflow-x: hidden; }
.nx-brand { display: block; color: white; text-decoration: none; padding: 0 0.2rem 0.75rem; }
.nx-logo-plate { display: block; width: 100%; box-sizing: border-box; background: #000; border-radius: 14px; padding: 0.65rem 0.45rem 0.4rem; }
.nx-logo { display: block; width: 100%; max-width: 100%; height: auto; }
.nx-brand-name { display: block; margin-top: 0.45rem; text-align: center; color: #7dd3fc; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.nx-logo-plate-login { width: min(100%, 420px); margin: 0 auto; padding: 0.85rem 0.7rem 0.55rem; }
.nx-brand-name-login { margin: 0.85rem 0 0.35rem; font-size: 1rem; letter-spacing: 0.18em; }
[data-bs-theme="light"] .nx-brand-name,
[data-bs-theme="dark"] .nx-brand-name { color: #7dd3fc; }
.nx-login { min-height: 100vh; padding: 1.5rem 0; }
.nx-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #0284c7, #22d3ee); color: white; font-weight: 700; }
.nx-section { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin: 1rem 0.7rem 0.35rem; }
.nx-link { display: flex; gap: 0.65rem; align-items: center; color: var(--nx-sidebar-text); text-decoration: none; border-radius: 8px; padding: 0.45rem 0.7rem; margin-bottom: 0.15rem; }
.nx-link:hover, .nx-link.is-active { background: rgba(56, 189, 248, 0.16); color: white; }
[data-bs-theme="light"] .nx-sidebar,
[data-bs-theme="light"] .nx-link,
[data-bs-theme="light"] .nx-section { color: #cbd5e1; }
[data-bs-theme="light"] .nx-sidebar { background: #0b1220; }
[data-bs-theme="light"] .nx-topbar { background: #ffffff; color: #0f172a; }
.nx-main { flex: 1; min-width: 0; }
.nx-topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--bs-border-color); position: sticky; top: 0; background: var(--bs-body-bg); z-index: 10; }
.nx-content { padding: 1.25rem; }
.nx-page-head { margin-bottom: 1rem; }
.nx-page-head h1 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.3rem; }
.nx-page-head p { margin: 0; color: var(--bs-secondary-color); }
.nx-filter { margin-bottom: 1.25rem; }
.nx-filter label { display: block; margin-bottom: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.nx-panel { margin-bottom: 1.25rem; }
.nx-panel:last-child { margin-bottom: 0; }
.nx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--bs-border-color); font-weight: 650; }
.nx-panel .card-body { padding: 1.15rem; }
.nx-audit-table { margin: 0; }
.nx-audit-table th { padding: 0.75rem 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-secondary-color); white-space: nowrap; border-bottom-width: 1px; }
.nx-audit-table td { padding: 0.8rem 1rem; vertical-align: middle; }
.nx-audit-table tbody tr:hover { background: rgba(56, 189, 248, 0.07); }
.nx-audit-table tr.is-current { background: rgba(56, 189, 248, 0.12); }
.nx-audit-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.nx-user-link { font-weight: 650; text-decoration: none; }
.nx-user-sub { margin-top: 0.15rem; color: var(--bs-secondary-color); font-size: 0.8rem; line-height: 1.25; }
.nx-section-title { margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 650; }
.nx-audit-table code { white-space: normal; word-break: break-word; }
.nx-stat { border: 0; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.nx-stat .label { color: var(--bs-secondary-color); font-size: 0.8rem; }
.nx-stat .value { font-size: 1.6rem; font-weight: 650; }
.badge-online { background: #16a34a; }
.badge-offline { background: #dc2626; }
.badge-unknown { background: #64748b; }
pre.nx-config { max-height: 520px; overflow: auto; }
.btn > .bi { margin-right: 0.35rem; line-height: 1; vertical-align: -0.125em; }
.nx-actions { display: inline-flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nx-actions .btn { display: inline-flex; align-items: center; }
.nx-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.55); z-index: 25; }
[x-cloak] { display: none !important; }
nav[role=navigation] svg { width: 1.25rem; height: 1.25rem; }
.nx-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-sidebar nav { overflow-y: auto; }
@media (max-width: 991.98px) {
    .nx-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 88vw); z-index: 30; transform: translateX(-105%); transition: transform .2s ease; overflow-y: auto; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
    .nx-sidebar.is-open { transform: none; }
    .nx-topbar { padding: 0.7rem 0.85rem; }
    .nx-content { padding: 0.85rem; }
    .nx-stat .value { font-size: 1.25rem; }
    .nx-user { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .nx-clock, .nx-user { display: none; }
    .nx-signout span { display: none; }
    .nx-content { padding: 0.7rem; }
    .card-body { padding: 0.85rem; }
}

.form-label.req::after { content: " *"; color: #f87171; }
.nx-page-head h1 .bi { margin-right: 0.45rem; color: var(--nx-accent); }
.nx-device-form .nx-panel-head .bi { margin-right: 0.4rem; color: var(--nx-accent); }
.nx-device-form .input-group-text { color: var(--nx-accent); }
.nx-device-form .field-error { color: #f87171; font-size: 0.82rem; margin-top: 0.3rem; }
.nx-device-form .form-text { color: var(--bs-secondary-color); font-size: 0.8rem; margin-top: 0.35rem; }
.nx-report { display: flex; flex-direction: column; gap: 1.35rem; }
.nx-report > .nx-panel,
.nx-report > .nx-filter,
.nx-report > .row { margin-bottom: 0; }
.nx-report-profile { padding: 1.35rem 1.4rem; }
.nx-report-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(56, 189, 248, 0.16); color: var(--nx-accent); font-size: 1.45rem; flex-shrink: 0; }
.nx-report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.nx-report-stat { border-left: 4px solid var(--nx-accent); }
.nx-report-stat .card-body { padding: 1.05rem 1.15rem 0.95rem; }
.nx-report-stat .label { display: flex; align-items: center; gap: 0.4rem; }
.nx-report-stat .label .bi { font-size: 0.95rem; }
.nx-tone-green { border-left-color: #16a34a; }
.nx-tone-red { border-left-color: #dc2626; }
.nx-tone-blue { border-left-color: #0284c7; }
.nx-tone-amber { border-left-color: #d97706; }
.nx-tone-cyan { border-left-color: #0891b2; }
.nx-tone-violet { border-left-color: #7c3aed; }
.nx-tone-slate { border-left-color: #64748b; }
.nx-report-chart { height: 320px; }
.nx-report .nx-panel-head .bi { margin-right: 0.4rem; color: var(--nx-accent); }
@media (max-width: 1199.98px) {
    .nx-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .nx-report-stats { grid-template-columns: 1fr; }
    .nx-report-chart { height: 260px; }
}

.nx-report { gap: 0.85rem; }
.nx-report-profile { padding: 0.9rem 1rem; }
.nx-report-avatar { width: 40px; height: 40px; font-size: 1.15rem; }
.nx-report-stat .card-body { padding: 0.7rem 0.9rem; }
.nx-report .nx-stat .value { font-size: 1.25rem; }
.nx-report-chart { height: 220px; }
.nx-report .nx-audit-table th,
.nx-report .nx-audit-table td { padding: 0.42rem 0.7rem; }
.nx-report code, .nx-report .nx-detail { color: inherit; background: transparent; font-size: 0.86rem; }

