:root {
    --app-bg: #edf1f4;
    --panel-bg: #ffffff;
    --sidebar-bg: #1f2a33;
    --sidebar-bg-2: #273744;
    --sidebar-text: #d8e3ea;
    --sidebar-muted: #8fa4b4;
    --accent: #1ca6df;
    --line: #d4dde4;
    --text-main: #22313a;
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    background: var(--app-bg);
    color: var(--text-main);
}

.app-shell {
    min-height: 100vh;
}

.app-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-brand {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.app-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--sidebar-bg), #1a242d);
    color: var(--sidebar-text);
    border-right: 1px solid #1b252e;
}

.app-sidebar-header {
    height: 56px;
    border-bottom: 1px solid #334554;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
}

.app-nav {
    padding: 10px 0;
}

.app-nav-group {
    color: var(--sidebar-muted);
    font-size: 11px;
    text-transform: uppercase;
    padding: 8px 14px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.app-nav-link {
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 10px 14px;
    border-left: 3px solid transparent;
    font-weight: 600;
    font-size: 14px;
}

.app-nav-link:hover,
.app-nav-link.active {
    background: var(--sidebar-bg-2);
    color: #fff;
    border-left-color: var(--accent);
}

.app-content {
    flex: 1;
    min-width: 0;
}

.app-main {
    padding: 18px;
}

.card {
    border: 1px solid #cfd9e1;
    border-radius: 0;
    box-shadow: none !important;
}

.card .card-body {
    padding: 1rem;
}

.table > :not(caption) > * > * {
    border-bottom-color: #d8e1e8;
}

.table thead th {
    font-weight: 700;
    white-space: nowrap;
}

.btn {
    border-radius: 2px;
}

.flash-wrap {
    margin-bottom: 12px;
}

.impersonation-banner {
    background: #e8fff0;
    border: 1px solid #8be0a3;
    color: #1c6f33;
    padding: 8px 12px;
    margin: 0 0 12px;
}

@media (max-width: 991.98px) {
    .app-main {
        padding: 12px;
    }
}

