:root {
    --app-primary: #0d6efd;
    --app-dark: #0f172a;
    --app-body: #f4f7fb;
}

/* ── Global overflow guard ─────────────────────── */
/* NOTE: overflow-x:hidden is on body only, NOT html.
   If html also has it, position:sticky breaks on the sidebar. */
body {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-navbar {
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18);
}

.brand-mark,
.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.auth-card {
    backdrop-filter: blur(10px);
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    border-color: #d6dbe4;
}

.form-control:focus,
.form-select:focus {
    border-color: #8bb5ff;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .12);
}

.btn {
    border-radius: 0.85rem;
}

.table thead th,
table.dataTable thead th {
    white-space: nowrap;
}

div.dataTables_filter input {
    min-width: 240px;
}

.metric-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.min-vh-75 {
    min-height: 75vh;
}

/* ── Mobile table scroll ─────────────────────── */
@media (max-width: 767.98px) {
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    div.dataTables_filter input {
        min-width: 160px;
    }
}
