/* Faseq app-shell — geïnspireerd op CALQ sidebar */
:root {
    --eq-sidebar-width: 248px;
    --eq-text: #1a202c;
    --eq-muted: #64748b;
    --eq-border: #e2e8f0;
    --eq-accent-soft: var(--b-accent-pale, #eef3fa);
}

.eq-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f4f6f8;
    color: var(--eq-text);
}

.eq-app {
    display: flex;
    min-height: 100vh;
}

.eq-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--eq-sidebar-width);
    background: #fff;
    border-right: 1px solid var(--eq-border);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.eq-sidebar.is-open {
    transform: translateX(0);
}

.eq-app-main {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
}

.eq-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--eq-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.eq-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--eq-border);
    border-radius: 6px;
    background: #fff;
    color: var(--eq-text);
    cursor: pointer;
}

.eq-topbar-titel {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eq-text);
}

.eq-main {
    flex: 1;
    padding: 1.25rem 1.5rem 2rem;
}

.eq-main .home {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.eq-main .home-footer {
    margin-top: 2rem;
}

.eq-main .eq-beheer-kaart {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.eq-sidebar-brand-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.75rem 0.65rem;
    border-bottom: 1px solid var(--eq-border);
}

.eq-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 0.25rem;
}

.eq-sidebar-brand:hover {
    background: #f8fafc;
    text-decoration: none;
}

.eq-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.eq-sidebar-brand-text {
    min-width: 0;
}

.eq-sidebar-brand-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eq-sidebar-brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--eq-muted);
}

.eq-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.5rem 0.75rem;
}

.eq-sidebar-section {
    margin-bottom: 0.85rem;
}

.eq-sidebar-section.is-active-category .eq-sidebar-section__title {
    color: var(--b-accent, #1d4e9e);
}

.eq-sidebar-section.is-collapsible.is-collapsed .eq-sidebar-section__body {
    display: none;
}

.eq-sidebar-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.35rem 0.65rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font: inherit;
}

.eq-sidebar-section__toggle:hover {
    background: #f1f5f9;
}

.eq-sidebar-section__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--eq-muted);
}

.eq-sidebar-section__chevron::after {
    content: "▾";
    font-size: 0.75rem;
    color: var(--eq-muted);
}

.eq-sidebar-section.is-collapsed .eq-sidebar-section__chevron::after {
    content: "▸";
}

.eq-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eq-sidebar-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--eq-text);
    text-decoration: none;
    line-height: 1.35;
}

.eq-sidebar-link:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.eq-sidebar-link.active {
    background: var(--eq-accent-soft);
    color: var(--b-accent, #1d4e9e);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--b-accent, #1d4e9e);
}

.eq-sidebar-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.eq-sidebar-link--nested {
    padding: 0.35rem 0.65rem 0.35rem 1.1rem;
    font-size: 0.8125rem;
}

.eq-sidebar-badge-off {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0 0.3rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9a3412;
    background: #ffedd5;
    vertical-align: middle;
}

.eq-sidebar-foot {
    flex-shrink: 0;
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--eq-border);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #f8fafc;
}

.eq-sidebar-user {
    color: var(--eq-muted);
    font-weight: 600;
    text-decoration: none;
}

.eq-sidebar-user:hover {
    color: var(--b-accent, #1d4e9e);
}

.eq-sidebar-logout {
    color: var(--eq-muted);
    text-decoration: none;
}

.eq-sidebar-logout:hover {
    color: var(--b-accent, #1d4e9e);
}

/* Platformbeheer */
.eq-sheet-banner {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--eq-border);
    border-radius: 12px;
}

.eq-sheet-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    color: var(--eq-text);
}

.eq-sheet-banner__lead {
    margin: 0;
    color: var(--eq-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.eq-sheet-banner__lead a {
    color: var(--b-accent, #1d4e9e);
}

.eq-panel {
    background: #fff;
    border: 1px solid var(--eq-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.eq-block__head {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.eq-muted {
    color: var(--eq-muted);
}

.eq-platform-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.eq-platform-grid {
    display: grid;
    gap: 1rem;
}

.eq-platform-cat {
    border: 1px solid var(--eq-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.eq-platform-cat-head {
    margin-bottom: 0.65rem;
}

.eq-platform-cat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.eq-platform-cat-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--eq-muted);
}

.eq-platform-items {
    display: grid;
    gap: 0.35rem;
    padding-left: 0.25rem;
}

.eq-platform-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.eq-platform-item.is-off span:first-of-type {
    color: var(--eq-muted);
}

.eq-platform-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--eq-muted);
}

.eq-platform-fout,
.eq-platform-succes {
    margin: 0 0 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.eq-platform-fout {
    background: #fde8e8;
    border: 1px solid #e8a0a0;
    color: #a00;
}

.eq-platform-succes {
    background: #e8f7f0;
    border: 1px solid #9fd4b8;
    color: #0d6b42;
}

@media (min-width: 900px) {
    .eq-sidebar {
        transform: translateX(0);
    }

    .eq-app-main {
        margin-left: var(--eq-sidebar-width);
    }

    .eq-topbar-menu {
        display: none;
    }
}

@media (max-width: 899px) {
    .eq-body.eq-sidebar-open .eq-sidebar-backdrop {
        display: block;
    }
}

.eq-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 30;
}
