:root {
    --sidebar-w: 220px;
    --topbar-h: 52px;
    --bg-dark: #1a1d23;
    --bg-sidebar: #20242e;
    --bg-topbar: #252932;
    --accent: #0d6efd;
}

body.jw-body {
    background: #f0f2f5;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Sidebar */
.jw-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    z-index: 100;
    overflow-y: auto;
}

.jw-brand {
    background: var(--bg-dark);
    border-bottom: 1px solid #2e3340;
}

.jw-nav-link {
    color: #adb5c0 !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.jw-nav-link:hover {
    background: #2e3a50;
    color: #fff !important;
}
.jw-nav-link.active {
    background: var(--accent);
    color: #fff !important;
}

/* Main area */
.jw-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

.jw-topbar {
    height: var(--topbar-h);
    background: var(--bg-topbar);
    border-bottom: 1px solid #2e3340;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Cards de dashboard */
.jw-stat-card {
    border: none;
    border-radius: 10px;
    padding: 20px 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}
.jw-stat-card .jw-icon {
    font-size: 2.2rem;
    opacity: .85;
}
.jw-stat-card .jw-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.jw-stat-card .jw-label {
    font-size: 13px;
    opacity: .85;
}

/* Grid morosos */
#tblMorosos {
    font-size: 13px;
}
#tblMorosos thead th {
    background: #252932;
    color: #cfd5de;
    font-weight: 500;
    border: none;
}
#tblMorosos tbody tr:hover {
    background: #e8edf5;
}

/* Botones de pasos */
.jw-step-btn {
    min-width: 180px;
}

/* Consola Telnet */
#consola {
    background: #0d1117;
    color: #58ff7a;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    border-radius: 8px;
    padding: 12px;
    height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
}
