/* ── Layout ──────────────────────────────────────────────────────────────── */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e293b;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform .25s ease;
    z-index: 1000;
}

.sidebar .nav-link {
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: .9rem;
    transition: background .15s;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,.1);
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,.18);
    font-weight: 600;
}

/* ── Main content ────────────────────────────────────────────────────────── */

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

/* ── Card modulo (dashboard) ─────────────────────────────────────────────── */

.module-card {
    transition: transform .15s, box-shadow .15s;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important;
}

/* ── Tabelle ─────────────────────────────────────────────────────────────── */

.table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        max-width: 100%;
    }
}

/* ── Utilities ───────────────────────────────────────────────────────────── */

.font-monospace {
    font-family: 'Courier New', monospace;
    font-size: .85em;
}

.card {
    border-radius: .75rem;
}

@media print {
    .sidebar, .no-print, footer { display: none !important; }
    .main-content { max-width: 100% !important; }
}
