:root {
    --att-blue: #0b4a86;
    --att-dark: #07345f;
    --att-darker: #052844;
    --background: #eef3f8;
    --white: #ffffff;
    --text: #1f2933;
    --muted: #6b7b8c;
    --border: #d9e2ea;
    --success: #178346;
    --warning: #b7791f;
    --danger: #b42318;
    --shadow: 0 10px 28px rgba(7, 52, 95, .10);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    background: var(--background);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, var(--att-dark), var(--att-darker));
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-brand {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    color: var(--att-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: -1px;
}

.sidebar-brand-text {
    min-width: 0;
    flex: 1;
}

.sidebar-brand-text strong,
.sidebar-brand-text small {
    display: block;
}

.sidebar-brand-text strong {
    font-size: 18px;
}

.sidebar-brand-text small {
    margin-top: 4px;
    color: #c9d9e8;
}

.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

.sidebar-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section-title {
    display: block;
    padding: 0 12px 8px;
    color: #9fb8cf;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #eaf2f8;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

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

.sidebar-link.active {
    background: var(--white);
    color: var(--att-dark);
    font-weight: 700;
}

.sidebar-icon {
    width: 22px;
    text-align: center;
    flex: 0 0 auto;
    font-family:
        "Segoe UI Emoji",
        "Apple Color Emoji",
        "Noto Color Emoji",
        Arial,
        sans-serif;
    font-style: normal;
    font-variant-emoji: emoji;
}

.sidebar-counter {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: var(--white);
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 13px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-footer small {
    display: block;
    padding: 8px 12px 0;
    color: #9fb8cf;
}

.sidebar-logout {
    color: #ffd9d6;
}

.sidebar-backdrop {
    display: none;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 84px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 620px) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--att-dark);
    cursor: pointer;
}

.page-heading {
    min-width: 0;
}

.page-heading h1 {
    margin: 0;
    color: var(--att-dark);
    font-size: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.global-search {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.global-search:focus-within {
    border-color: var(--att-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(11, 74, 134, .10);
}

.global-search-icon {
    color: var(--muted);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-action-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--att-dark);
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
}

.topbar-action-button:hover {
    background: #f4f8fb;
}

.topbar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 9px 5px 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--att-blue);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.user-menu-details {
    min-width: 0;
    text-align: left;
}

.user-menu-details strong,
.user-menu-details small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-details small {
    margin-top: 2px;
    color: var(--muted);
}

.user-menu-arrow {
    color: var(--muted);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 270px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 1200;
}

.user-dropdown-header {
    padding: 15px 16px;
    background: #f7fafc;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-header strong,
.user-dropdown-header small {
    display: block;
    overflow-wrap: anywhere;
}

.user-dropdown-header small {
    margin-top: 4px;
    color: var(--muted);
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: #f5f8fb;
}

.user-dropdown-divider {
    border-top: 1px solid var(--border);
}

.dropdown-logout {
    color: var(--danger);
}

.notification-panel {
    position: fixed;
    top: 92px;
    right: 22px;
    z-index: 1100;
    width: min(390px, calc(100vw - 32px));
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
}

.notification-panel-header button {
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.notification-panel-content {
    padding: 17px;
}

.notification-item {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #17324d;
    font-weight: 700;
    text-decoration: none;
}

.notification-item:hover,
.notification-item:focus-visible {
    background: #eef5fb;
    color: #07345f;
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-empty {
    margin: 0;
    color: var(--muted);
}

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 24px;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert.success {
    background: #e8f8ef;
    border-color: #b8e5ca;
    color: var(--success);
}

.alert.error {
    background: #fff0ef;
    border-color: #f4c7c3;
    color: var(--danger);
}

.alert.warning {
    background: #fff7e8;
    border-color: #f2d49a;
    color: var(--warning);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.dashboard-grid.single {
    grid-template-columns: 1fr;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card,
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(7, 52, 95, .05);
}

.card {
    padding: 20px;
}

.card-icon {
    font-size: 28px;
}

.card h2 {
    margin: 12px 0 3px;
    color: var(--att-dark);
    font-size: 29px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.panel {
    padding: 21px;
}

.panel h2 {
    margin: 0 0 16px;
    color: var(--att-dark);
}

.dashboard-grid section > .panel {
    margin-top: 20px;
}

.online-list {
    display: grid;
    gap: 13px;
}

.online-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.online-user strong,
.online-user small {
    display: block;
}

.online-user small {
    margin-top: 3px;
    color: var(--muted);
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(23, 131, 70, .10);
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.button,
button {
    border: 0;
    border-radius: 9px;
    background: var(--att-blue);
    color: var(--white);
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button:hover,
button:hover {
    filter: brightness(.96);
}

.table-panel {
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: #f7f9fb;
    color: var(--att-dark);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.actions form {
    display: inline;
}

.actions button,
.actions a {
    display: inline-block;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 13px;
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 5px 8px;
    margin: 2px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.success,
.badge.online {
    background: #dcfae6;
    color: var(--success);
}

.badge.danger {
    background: #fee4e2;
    color: var(--danger);
}

.form-panel {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.form-grid h2,
.form-grid fieldset,
.form-grid > div:last-child {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--att-blue);
    box-shadow: 0 0 0 3px rgba(11, 74, 134, .10);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0;
    font-weight: 400;
}

.checkbox input {
    width: auto;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.connection-notice {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 2000;
    transform: translate(-50%, -150%);
    opacity: 0;
    background: var(--success);
    color: var(--white);
    padding: 11px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: .25s ease;
}

.connection-notice.offline {
    background: var(--danger);
}

.connection-notice.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2100;
    display: grid;
    gap: 10px;
}

@media (max-width: 1200px) {
    .topbar {
        grid-template-columns: minmax(200px, 1fr) minmax(220px, 420px) auto;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        transform: translateX(-102%);
        transition: transform .25s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 950;
        background: rgba(15, 23, 42, .48);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .topbar-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .topbar {
        padding: 12px 14px;
        gap: 12px;
    }

    .page-heading p,
    .user-menu-details,
    .user-menu-arrow {
        display: none;
    }

    .page-heading h1 {
        font-size: 20px;
    }

    .topbar-actions {
        gap: 5px;
    }

    .page-content {
        padding: 14px;
    }

    .cards,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid h2,
    .form-grid fieldset,
    .form-grid > div:last-child {
        grid-column: auto;
    }

    .app-footer {
        flex-direction: column;
        padding: 16px 14px;
    }
}
/* ===== Loginpagina ===== */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin-left: 120px;
    padding: 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.auth-card h1 {
    margin: 0 0 10px;
    color: #0d6efd;
    font-size: 32px;
    text-align: center;
}

.auth-card p {
    margin: 0 0 30px;
    color: #666666;
    text-align: center;
}

.auth-card label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

.auth-card input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
}

.auth-card button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-card button:hover {
    background: #0b5ed7;
}

.auth-card a {
    display: block;
    margin-top: 18px;
    color: #0d6efd;
    text-align: center;
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 18px;
    }

    .auth-card {
        max-width: 100%;
        margin-left: 0;
        padding: 25px;
    }

    .auth-card h1 {
        font-size: 28px;
    }
}

/* ATT locatiekleur-vakjes */
.sidebar-location-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.75);
    flex: 0 0 14px;
}

.brabo-location-box {
    background: #2563eb;
}

.wintam-location-box {
    background: #dc2626;
}

.nlw-location-box {
    background: #16a34a;
}

/* ATT_MODERN_SIDEBAR_2026 */
.sidebar {
    width: 300px;
    background:
        linear-gradient(
            180deg,
            #073b66 0%,
            #052f52 52%,
            #042743 100%
        );
    border-right: 1px solid rgba(255,255,255,.12);
    box-shadow: 16px 0 45px rgba(2,18,35,.26);
}

.sidebar-brand {
    flex: 0 0 auto;
    gap: 12px;
    min-height: 0;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(2,35,61,.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sidebar-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #e6f2fb
        );
    color: #06385f;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.sidebar-brand-text {
    min-width: 0;
    line-height: 1.15;
}

.sidebar-brand-text strong {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.3px;
}

.sidebar-brand-text small {
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    transition:
        background .18s ease,
        transform .18s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,.17);
    transform: rotate(4deg);
}

.sidebar-navigation {
    flex: 1 1 auto;
    padding: 12px 11px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.22)
        transparent;
}

.sidebar-navigation::-webkit-scrollbar {
    width: 5px;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.22);
}

.sidebar-section {
    margin: 0 0 14px;
}

.sidebar-section-title {
    display: block;
    margin: 0;
    padding: 8px 11px 5px;
    color: rgba(210,231,247,.64);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.25px;
    line-height: 1.2;
    text-transform: uppercase;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 3px 0;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(245,250,255,.9);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease,
        transform .16s ease;
}

.sidebar-link:hover {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.09);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-link.active {
    border-color: rgba(255,255,255,.2);
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.2),
            rgba(255,255,255,.11)
        );
    color: #fff;
    box-shadow:
        0 8px 20px rgba(0,16,31,.18),
        inset 3px 0 0 #5bbcff;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    font-size: 17px;
    line-height: 1;
}

.sidebar-link.active .sidebar-icon {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.16);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.sidebar-counter {
    min-width: 22px;
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 11px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(2,29,51,.46);
}

.sidebar-footer .sidebar-logout {
    border-color: rgba(251,113,133,.16);
    background: rgba(190,24,93,.1);
    color: #ffd9e0;
}

.sidebar-footer .sidebar-logout:hover {
    border-color: rgba(251,113,133,.3);
    background: rgba(190,24,93,.18);
}

.sidebar-footer small {
    display: block;
    padding: 8px 10px 2px;
    color: rgba(210,231,247,.52);
    font-size: 11px;
}

.sidebar-backdrop {
    background: rgba(2,18,35,.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

@media (max-width: 980px) {
    .sidebar {
        width: min(84vw, 310px);
    }

    .sidebar-brand {
        padding:
            calc(14px + env(safe-area-inset-top))
            14px
            14px;
    }

    .sidebar-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .sidebar-brand-text strong {
        font-size: 19px;
    }

    .sidebar-link {
        min-height: 44px;
        font-size: 14px;
    }

    .sidebar-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 16px;
    }
}
/* Sidebar sluitknop exact centreren */
.sidebar-close {
    display: grid;
    place-items: center;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    line-height: 1;
}

/* ATT_SIDEBAR_MODERN_COLLAPSE_2026 */

/* modernere sidebar */
.sidebar {
    background:
        linear-gradient(
            180deg,
            #082f57 0%,
            #062b4c 55%,
            #05233d 100%
        ) !important;
    box-shadow: 8px 0 28px rgba(5, 35, 61, .10);
}

.sidebar-brand {
    min-height: 78px !important;
    padding: 13px 14px !important;
    gap: 11px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.sidebar-logo {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.14) !important;
}

.sidebar-brand-text strong {
    font-size: 18px !important;
}

.sidebar-brand-text small {
    font-size: 11px !important;
}

.sidebar-navigation {
    padding: 12px 10px 18px !important;
}

.sidebar-section {
    margin-bottom: 12px !important;
}

.sidebar-section-title {
    padding: 7px 11px 6px !important;
    color: rgba(210,228,243,.62) !important;
    font-size: 10px !important;
    letter-spacing: .12em !important;
}

.sidebar-link {
    min-height: 43px !important;
    gap: 11px !important;
    margin-bottom: 3px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    color: rgba(245,250,255,.90) !important;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease !important;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.09) !important;
    transform: translateX(2px);
}

.sidebar-link.active {
    background: rgba(255,255,255,.96) !important;
    color: #07345f !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.sidebar-icon {
    width: 24px !important;
    font-size: 17px;
}

.sidebar-footer {
    padding: 11px 10px 14px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.sidebar-footer small {
    color: rgba(210,228,243,.55) !important;
}

/* sluitknop ook op desktop zichtbaar */
@media (min-width: 901px) {
    .sidebar-close {
        display: grid !important;
        place-items: center;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 11px !important;
        font-size: 24px !important;
    }

    body.sidebar-collapsed .app-shell {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.sidebar-collapsed .sidebar {
        display: none !important;
    }

    body.sidebar-collapsed .mobile-menu-button {
        display: grid !important;
        place-items: center;
    }
}

/* ATT MOBILE FULL PAGE TITLE 2026 */
@media (max-width: 680px) {
    .topbar-left {
        gap: 8px;
        min-width: 0;
    }

    .topbar-left .page-heading {
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar-left .page-heading h1 {
        font-size: 17px;
        line-height: 1.15;
        letter-spacing: -0.2px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .topbar-actions {
        flex-shrink: 0;
    }
}

/* ATT MOBILE PAGE TITLE - WRAP WITHOUT ELLIPSIS */
@media (max-width: 680px) {
    .topbar-left .page-heading h1 {
        font-size: 17px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 100% !important;
    }
}

/* ATT MOBILE HAMBURGER ALIGN 2026 */
@media (max-width: 680px) {
    .mobile-menu-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
        font-size: 0 !important;
    }

    .mobile-menu-button::before {
        content: "☰";
        display: block;
        font-size: 25px;
        font-weight: 700;
        line-height: 1;
        transform: translateY(-1px);
    }
}

/*
 * ATT FIXED MOBILE HAMBURGER 2026
 */
@media (max-width: 980px) {
    #mobile-menu-button {
        position: fixed !important;
        left: max(12px, env(safe-area-inset-left)) !important;
        top: max(12px, env(safe-area-inset-top)) !important;
        z-index: 2200 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;

        margin: 0 !important;
        padding: 0 !important;

        pointer-events: auto !important;
        touch-action: manipulation;

        background: var(--white) !important;
        color: var(--att-dark) !important;
        border: 1px solid var(--border) !important;
        border-radius: 11px !important;

        cursor: pointer !important;
    }

    body.sidebar-open #mobile-menu-button {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .topbar-left {
        padding-left: 52px;
    }
}

/* ATT_MOBILE_TITLE_FIX_20261013 */
@media screen and (max-width: 768px) {
    .topbar {
        gap: 8px !important;
    }

    .topbar-left {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .topbar-left .page-heading {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .topbar-left .page-heading h1 {
        font-size: clamp(14px, 3.6vw, 18px) !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
    }

    .topbar-actions {
        flex-shrink: 0 !important;
    }
}
