label.required:before {
    content: "* ";
    color: red;
}

.dtsp-searchIcon {
    height: 36px;
}

.dtsp-titleRow {
    display: none;
}

button {
    --bs-btn-padding-y: 0.25rem!important;
    --bs-btn-padding-x: 0.5rem!important;
    --bs-btn-font-size: 0.875rem!important;
    --bs-btn-border-radius: var(--bs-border-radius-sm) !important;
}

.btn {
    --bs-btn-padding-y: 0.25rem!important;
    --bs-btn-padding-x: 0.5rem!important;
    --bs-btn-font-size: 0.875rem!important;
    --bs-btn-border-radius: var(--bs-border-radius-sm) !important;
}

.btn-super-sm {
    --bs-btn-padding-y: 0.05rem !important;
    --bs-btn-padding-x: 0.3rem !important;
    --bs-btn-font-size: 0.650rem !important;
}

.table>:not(caption)>*>* {
    padding: .3rem .3rem !important;
}

.nav-borders .nav-link.active {
    color: #0061f2;
    border-bottom-color: #0061f2;
}
.nav-borders .nav-link {
    color: #69707a;
    border-bottom-width: 0.125rem;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0;
    padding-right: 0;
    margin-left: 1rem;
    margin-right: 1rem;
}

:root {
    --sidebar-width: 220px;
    --background-dark: #000000;
    --background-light: #000000;
    --text-color: white;
    --active-submenu-color: #3a3a3a;
    --bs-body-bg: #000000;
    font-size: 13px;
}

/*SIDEBAR*/
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 78px;
    --header-height: 64px;
    --app-bg: #070b12;
    --app-surface: #111827;
    --app-surface-2: #151f2e;
    --app-border: rgba(148, 163, 184, 0.18);
    --app-muted: #94a3b8;
    --app-text: #f8fafc;
    --app-accent: #38bdf8;
    --app-accent-soft: rgba(56, 189, 248, .14);
}

body.ec-dark {
    background: var(--app-bg);
    color: var(--app-text);
}

#main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 24px 30px;
    transition: margin-left .28s ease, padding .28s ease;
}

.sidebar {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .12), transparent 18rem),
        linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(7, 11, 18, .98));
    border-right: 1px solid var(--app-border);
    bottom: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .28);
    color: var(--app-text);
    display: flex;
    flex-direction: column;
    left: 0;
    overflow: visible;
    padding: 14px;
    position: fixed;
    top: 0;
    transition: width .28s ease, transform .28s ease, box-shadow .28s ease;
    width: var(--sidebar-width);
    z-index: 1035;
}

.sidebar__header {
    align-items: center;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 4px 4px 14px;
}

.sidebar__brand,
.sidebar__brand:hover {
    align-items: center;
    color: var(--app-text);
    display: flex;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.sidebar__brand-mark {
    align-items: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, .24), rgba(167, 139, 250, .18));
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 14px;
    color: var(--app-accent);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.sidebar__brand-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar__close {
    align-items: center;
    background: rgba(148, 163, 184, .08);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    color: var(--app-muted);
    display: none;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sidebar__close:hover,
.sidebar__close:focus-visible {
    background: rgba(248, 113, 113, .12);
    border-color: rgba(248, 113, 113, .32);
    color: #fecaca;
}

.sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 2px 18px;
    scrollbar-color: rgba(148, 163, 184, .38) transparent;
    scrollbar-width: thin;
}

.sidebar__section {
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    display: grid;
    gap: 4px;
    padding: 8px 0 12px;
}

.sidebar__section:last-child {
    border-bottom: 0;
}

.sidebar__section-title {
    color: var(--app-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    padding: 0 12px 4px;
    text-transform: uppercase;
    transition: opacity .2s ease;
}

.sidebar__item,
.sidebar__subitem {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #cbd5e1;
    display: flex;
    gap: 10px;
    min-height: 42px;
    position: relative;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.sidebar__item {
    background: transparent;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.sidebar__item:hover,
.sidebar__item:focus-visible,
.sidebar__subitem:hover,
.sidebar__subitem:focus-visible {
    background: rgba(148, 163, 184, .1);
    border-color: rgba(148, 163, 184, .18);
    color: #fff;
    outline: none;
}

.sidebar__item.active,
.sidebar__subitem.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(167, 139, 250, .12));
    border-color: rgba(56, 189, 248, .38);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--app-accent);
}

.sidebar__icon {
    color: var(--app-muted);
    flex: 0 0 22px;
    font-size: 1rem;
    text-align: center;
    transition: color .2s ease, margin .2s ease;
}

.sidebar__item.active .sidebar__icon,
.sidebar__item:hover .sidebar__icon,
.sidebar__item:focus-visible .sidebar__icon {
    color: var(--app-accent);
}

.sidebar__label {
    flex: 1;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar__badge {
    flex: 0 0 auto;
}

.sidebar__chevron {
    color: var(--app-muted);
    flex: 0 0 auto;
    font-size: .72rem;
    transition: transform .2s ease;
}

.sidebar__item--toggle[aria-expanded="true"] .sidebar__chevron {
    transform: rotate(180deg);
}

.sidebar__submenu {
    display: grid;
    gap: 3px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-left: 24px;
    transition: max-height .24s ease, opacity .2s ease, margin .2s ease;
}

.sidebar__submenu.show {
    margin: 2px 0 4px;
    max-height: 520px;
    opacity: 1;
}

.sidebar__subitem {
    font-size: .92rem;
    min-height: 34px;
    padding: 6px 10px;
}

.sidebar-backdrop {
    background: rgba(2, 6, 23, .72);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .24s ease;
    z-index: 1030;
}

@media (min-width: 1200px) {
    #main,
    #footer {
        margin-left: var(--sidebar-width);
    }

    .header {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }

    body.sidebar-collapsed .header {
        left: var(--sidebar-collapsed-width);
        width: calc(100% - var(--sidebar-collapsed-width));
    }

    body.sidebar-collapsed #main,
    body.sidebar-collapsed #footer {
        margin-left: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar {
        padding-left: 10px;
        padding-right: 10px;
        width: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar__brand-text,
    body.sidebar-collapsed .sidebar__section-title,
    body.sidebar-collapsed .sidebar__label,
    body.sidebar-collapsed .sidebar__badge,
    body.sidebar-collapsed .sidebar__chevron,
    body.sidebar-collapsed .sidebar__submenu {
        display: none;
    }

    body.sidebar-collapsed .sidebar__header {
        justify-content: center;
    }

    body.sidebar-collapsed .sidebar__item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    body.sidebar-collapsed .sidebar__icon {
        margin: 0;
    }

    body.sidebar-collapsed .sidebar__item::after {
        background: #0f172a;
        border: 1px solid var(--app-border);
        border-radius: 10px;
        box-shadow: 0 14px 40px rgba(0, 0, 0, .36);
        color: var(--app-text);
        content: attr(data-tooltip);
        left: calc(100% + 12px);
        opacity: 0;
        padding: 7px 10px;
        pointer-events: none;
        position: absolute;
        top: 50%;
        transform: translate3d(-4px, -50%, 0);
        transition: opacity .16s ease, transform .16s ease;
        white-space: nowrap;
        z-index: 1060;
    }

    body.sidebar-collapsed .sidebar__item:hover::after,
    body.sidebar-collapsed .sidebar__item:focus-visible::after {
        opacity: 1;
        transform: translate3d(0, -50%, 0);
    }
}

@media (max-width: 1199.98px) {
    #main {
        margin-left: 0;
        padding: 18px 16px;
    }

    .sidebar {
        max-width: min(88vw, var(--sidebar-width));
        transform: translateX(-104%);
        width: var(--sidebar-width);
    }

    .header {
        left: 0;
        width: 100%;
    }

    .sidebar__close {
        display: inline-flex;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

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

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        padding: 12px;
    }

    #main {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/*EINDE SIDEBAR*/

/*HEADER BAR*/
.header {
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, .1), transparent 26rem),
        rgba(15, 23, 42, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
    height: var(--header-height);
    padding: 0 22px;
    right: 0;
    transition: left .28s ease, width .28s ease, padding .28s ease;
    z-index: 1025;
}

.header__inner {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    height: 100%;
    margin: 0 auto;
    max-width: 1680px;
    width: 100%;
}

.header__start,
.header__title-row,
.header__center,
.user-menu__trigger,
.user-menu__avatar {
    align-items: center;
    display: flex;
}

.header__start {
    gap: 14px;
    min-width: 0;
}

.toggle-sidebar-btn {
    align-items: center;
    background: rgba(148, 163, 184, .08);
    border: 1px solid var(--app-border);
    border-radius: 14px;
    color: var(--app-text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.45rem;
    height: 42px;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    width: 42px;
}

.toggle-sidebar-btn:hover,
.toggle-sidebar-btn:focus-visible {
    background: var(--app-accent-soft);
    border-color: rgba(56, 189, 248, .38);
    color: var(--app-accent);
    outline: none;
    transform: translateY(-1px);
}

.header__context {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.header__eyebrow {
    color: var(--app-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}

.header__title-row {
    gap: 10px;
    min-width: 0;
}

.header__section {
    color: var(--app-text);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__status {
    align-items: center;
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .18);
    border-radius: 999px;
    color: #86efac;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    gap: 6px;
    padding: 3px 8px;
}

.header__status svg {
    font-size: .45rem;
}

.header__center {
    background: rgba(148, 163, 184, .06);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 999px;
    justify-content: center;
    min-height: 38px;
    min-width: 220px;
    padding: 7px 14px;
}

.header__welcome {
    color: var(--app-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-nav {
    justify-self: end;
    min-width: 0;
}

.header-nav ul,
.header-nav>ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-menu {
    position: relative;
}

.user-menu__trigger {
    background: rgba(148, 163, 184, .08);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: var(--app-text);
    gap: 9px;
    min-height: 40px;
    padding: 5px 12px 5px 6px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.user-menu__avatar {
    background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(167, 139, 250, .16));
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 50%;
    color: var(--app-accent);
    height: 30px;
    justify-content: center;
    width: 30px;
}

.user-menu__name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__chevron {
    color: var(--app-muted);
    font-size: .72rem;
}

.user-menu__trigger:hover,
.user-menu__trigger:focus-visible {
    background: var(--app-accent-soft);
    border-color: rgba(56, 189, 248, .34);
    outline: none;
    transform: translateY(-1px);
}

.user-dropdown {
    background: #0f172a;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .36);
    display: none;
    min-width: 180px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1050;
}

.user-dropdown a {
    align-items: center;
    border-radius: 10px;
    color: #cbd5e1;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown a:focus-visible {
    background: rgba(148, 163, 184, .1);
    color: #fff;
    outline: none;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

@media (max-width: 991.98px) {
    .header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .header__center {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header__inner {
        gap: 10px;
    }

    .header__eyebrow,
    .header__status {
        display: none;
    }

    .header__section {
        font-size: 1rem;
    }

    .user-menu__name {
        max-width: 96px;
    }
}

@media (max-width: 480px) {
    .header__context {
        display: none;
    }

    .user-menu__name,
    .user-menu__chevron {
        display: none;
    }

    .user-menu__trigger {
        padding-right: 6px;
    }
}
/*EINDE HEADER BAR*/

.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header {
    background-color: #2a2c2d;
}

.card-body {
    background-color: #242424;
}

.card-body input, .card-body select {
    background-color: #242424;
}

/*Calendar*/
.ec-all-day .ec-event-title, .ec-day-grid .ec-event-title, .ec-timeline .ec-event-title {
    font-size: 0.9rem!important;
}
.ec-button.ec-active, .ec-button:not(:disabled):hover {
    background-color: #373f4b!important;
}
.agenda-shell {
    margin-bottom: 24px;
}

.agenda-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

.agenda-toolbar h2 {
    margin-bottom: 0;
}

.agenda-legend {
    align-items: center;
    color: #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
}

.legend-dot {
    border-radius: 999px;
    display: inline-flex;
    height: 10px;
    margin-right: 6px;
    width: 10px;
}

.legend-dot--project { background: #22c55e; }
.legend-dot--appointment { background: #38bdf8; }

.agenda-calendar {
    min-height: 680px;
}

.agenda-day-cell {
    position: relative;
}

.agenda-quick-add {
    bottom: 6px;
    position: absolute;
    right: 6px;
    z-index: 5;
}


.agenda-sidepanel .compact-list {
    gap: 8px;
}

.agenda-sidepanel .compact-list > span {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 12px;
    color: #cbd5e1;
    display: block;
    padding: 10px 12px;
}

.agenda-sidepanel .compact-list > span strong {
    color: #f8fafc;
    display: block;
}

.ec {
    --ec-bg-color: rgba(15, 23, 42, 0.9);
    --ec-border-color: rgba(148, 163, 184, 0.18);
    --ec-today-bg-color: rgba(56, 189, 248, .12);
    --ec-now-indicator-color: #f43f5e;
    --ec-button-bg-color: rgba(30, 41, 59, .85);
    --ec-button-border-color: rgba(148, 163, 184, .28);
    --ec-button-text-color: #e2e8f0;
    --ec-button-active-bg-color: rgba(56, 189, 248, .2);
    --ec-event-bg-color: rgba(56, 189, 248, .16);
    --ec-event-border-color: rgba(56, 189, 248, .5);
    --ec-page-bg-color: transparent;
    color: #f8fafc;
}
/* Modern daily dashboard */
.dashboard-shell {
    --dash-bg: #070b12;
    --dash-surface: #111827;
    --dash-surface-2: #151f2e;
    --dash-border: rgba(148, 163, 184, 0.18);
    --dash-muted: #94a3b8;
    --dash-text: #f8fafc;
    --dash-blue: #38bdf8;
    --dash-green: #34d399;
    --dash-orange: #fb923c;
    --dash-purple: #a78bfa;
    --dash-cyan: #22d3ee;
    color: var(--dash-text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .14), transparent 32rem),
        radial-gradient(circle at 80% 0%, rgba(167, 139, 250, .12), transparent 28rem),
        var(--dash-bg);
    border-radius: 24px;
    margin: -4px -10px 24px;
    padding: 24px;
}

.dashboard-hero,
.quick-link-strip,
.dashboard-card,
.kpi-card {
    border: 1px solid var(--dash-border);
    background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(15, 23, 42, .88));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 16px;
}

.dashboard-hero--compact {
    border-radius: 22px;
    gap: 16px;
    padding: 18px 20px;
}

.dashboard-hero__intro {
    min-width: 0;
}

.dashboard-eyebrow {
    color: var(--dash-blue);
    display: inline-flex;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    margin: 6px 0;
}

.dashboard-hero--compact .dashboard-title {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin: 0 0 4px;
}

.dashboard-hero--compact .dashboard-subtitle {
    margin-bottom: 0;
}

.dashboard-hero--compact .dashboard-actions {
    gap: 8px;
}

.dashboard-subtitle,
.dashboard-card small,
.kpi-card span,
.kpi-card a,
.empty-state span {
    color: var(--dash-muted);
}

.dashboard-actions,
.quick-link-strip,
.status-pills,
.stock-summary,
.external-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-link-strip {
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

.quick-link-strip a,
.external-link-grid a {
    align-items: center;
    background: rgba(148, 163, 184, .08);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    color: #e2e8f0;
    display: inline-flex;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
}

.quick-link-strip a:hover,
.external-link-grid a:hover,
.compact-list a:hover,
.timeline-item:hover,
.activity-feed a:hover {
    background: rgba(56, 189, 248, .12);
    border-color: rgba(56, 189, 248, .32);
    color: #fff;
}

.kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 20px;
}

.kpi-card {
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    min-height: 138px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.kpi-card::before {
    content: '';
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.kpi-card--accent-blue::before { background: var(--dash-blue); }
.kpi-card--accent-green::before { background: var(--dash-green); }
.kpi-card--accent-orange::before { background: var(--dash-orange); }
.kpi-card--accent-purple::before { background: var(--dash-purple); }
.kpi-card--accent-cyan::before { background: var(--dash-cyan); }

.kpi-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin: 10px 0;
}

.kpi-card i {
    color: rgba(226, 232, 240, .45);
    font-size: 2.4rem;
}

.kpi-label {
    display: block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-grid--primary {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr) minmax(300px, .8fr);
}

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

.dashboard-card {
    border-radius: 24px;
    overflow: hidden;
    padding: 20px;
}

.dashboard-card__header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-card__header h2 {
    font-size: 1.18rem;
    font-weight: 800;
    margin: 4px 0 0;
}

.timeline-list,
.task-list,
.alert-stack,
.compact-list,
.activity-feed {
    display: grid;
    gap: 10px;
}

.timeline-item,
.task-row,
.alert-item,
.compact-list a,
.activity-feed a,
.mini-calendar__row,
.stock-location-card {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 16px;
    color: #f8fafc;
    text-decoration: none;
}

.timeline-item {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 12px;
}

.timeline-date {
    background: rgba(56, 189, 248, .14);
    border-radius: 12px;
    color: #bae6fd;
    font-weight: 800;
    padding: 8px;
    text-align: center;
}

.timeline-content,
.timeline-content small,
.task-row small,
.compact-list small,
.activity-feed small {
    display: block;
    min-width: 0;
}

.mini-calendar {
    margin-top: 16px;
}

.mini-calendar__header,
.section-divider {
    color: #cbd5e1;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 18px 0 10px;
    text-transform: uppercase;
}

.mini-calendar__row,
.task-row,
.compact-list a,
.activity-feed a {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.status-pills span,
.stock-summary span,
.project-status-grid div {
    background: rgba(148, 163, 184, .08);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    color: var(--dash-muted);
    padding: 10px 12px;
}

.status-pills strong,
.stock-summary strong,
.project-status-grid strong {
    color: #f8fafc;
    display: block;
    font-size: 1.15rem;
}

.task-row__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.priority {
    border-radius: 999px;
    color: #e2e8f0;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 8px;
}

.priority--laag { background: rgba(52, 211, 153, .18); }
.priority--normaal { background: rgba(56, 189, 248, .18); }
.priority--hoog { background: rgba(251, 146, 60, .2); }
.priority--urgent { background: rgba(248, 113, 113, .22); }

.alert-item {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.alert-item strong {
    display: block;
}

.alert-item--danger { border-color: rgba(248, 113, 113, .35); }
.alert-item--danger i { color: #f87171; }
.alert-item--warning { border-color: rgba(251, 191, 36, .35); }
.alert-item--warning i { color: #fbbf24; }

.project-status-grid,
.stock-location-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.revenue-panel {
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(167, 139, 250, .14));
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 20px;
    padding: 18px;
}

.revenue-panel strong {
    display: block;
    font-size: 2rem;
    margin: 4px 0;
}

.stock-summary span {
    flex: 1 1 150px;
}

.stock-location-grid {
    margin-top: 14px;
}

.stock-location-card {
    padding: 14px;
}

.stock-location-card span,
.stock-location-card small {
    color: var(--dash-muted);
    display: block;
}

.activity-dot {
    background: var(--dash-green);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, .12);
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.empty-state {
    align-items: center;
    background: rgba(148, 163, 184, .07);
    border: 1px dashed rgba(148, 163, 184, .25);
    border-radius: 18px;
    color: #e2e8f0;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.empty-state i {
    color: var(--dash-blue);
    font-size: 2rem;
}

.empty-state--compact {
    display: block;
    padding: 14px;
}

@media (max-width: 1399px) {
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-grid--primary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 991px) {
    .dashboard-shell { margin: 0 0 20px; padding: 16px; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .dashboard-hero--compact { padding: 16px; }
    .dashboard-grid--secondary { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-grid { grid-template-columns: 1fr; }
    .agenda-calendar { min-height: 560px; }
}

@media (max-width: 575px) {
    .dashboard-actions .btn,
    .quick-link-strip a { width: 100%; justify-content: center; }
    .kpi-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 1fr; }
    .task-row,
    .mini-calendar__row,
    .compact-list a,
    .activity-feed a { align-items: flex-start; flex-direction: column; }
    .task-row__meta { justify-content: flex-start; }
}

/* Auth screens */
.auth-shell {
    align-items: center;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    padding-inline: 8px;
}

.auth-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, .97), rgba(15, 23, 42, .9));
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
    padding: 1.4rem;
}

.auth-card__header {
    margin-bottom: 1.25rem;
}

.auth-logo {
    max-width: 220px;
}

.auth-title {
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    font-weight: 800;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: .96rem;
}

.auth-form .form-label {
    color: #cbd5e1;
    font-weight: 600;
}

.auth-form .form-control {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 12px;
    color: #f8fafc;
    min-height: 48px;
    padding: .75rem .9rem;
}

.auth-form .form-control:focus {
    background: rgba(15, 23, 42, .95);
    border-color: rgba(56, 189, 248, .65);
    box-shadow: 0 0 0 .2rem rgba(56, 189, 248, .22);
    color: #fff;
}

.auth-form .form-check-input {
    margin-top: .2rem;
}

.auth-submit {
    min-height: 46px;
}

.auth-alert {
    align-items: flex-start;
    display: flex;
    gap: .55rem;
}

.auth-link {
    align-items: center;
    color: #7dd3fc;
    display: inline-flex;
    gap: .45rem;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus-visible {
    color: #bae6fd;
    text-decoration: underline;
}

.auth-card__footer {
    border-top: 1px solid rgba(148, 163, 184, .18);
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.1rem;
    margin-top: 1.25rem;
    padding-top: .9rem;
}

.auth-link--inline {
    font-size: .92rem;
}

@media (max-width: 576px) {
    .auth-card {
        border-radius: 18px;
        padding: 1.05rem;
    }
}

/* Account / profile screens */
.account-shell { max-width: 1180px; margin: 0 auto; }

.account-tabs {
    background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(15, 23, 42, .88));
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .6rem;
}

.account-tab {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #cbd5e1;
    display: inline-flex;
    gap: .45rem;
    min-height: 42px;
    padding: .5rem .85rem;
    text-decoration: none;
}

.account-tab:hover,
.account-tab:focus-visible { background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .22); color: #fff; }
.account-tab.active { background: rgba(56, 189, 248, .15); border-color: rgba(56, 189, 248, .4); color: #e0f2fe; }

.account-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, .97), rgba(15, 23, 42, .9));
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 1.25rem;
}

.account-card__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.account-avatar { border: 2px solid rgba(148, 163, 184, .35); border-radius: 999px; height: 140px; object-fit: cover; width: 140px; }

.account-form .form-label { color: #cbd5e1; font-weight: 600; }
.account-form .form-control,
.account-form .form-select,
.account-form input[type="date"] {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 12px;
    color: #f8fafc;
    min-height: 46px;
}

.account-form .form-control:focus,
.account-form .form-select:focus,
.account-form input[type="date"]:focus {
    background: rgba(15, 23, 42, .94);
    border-color: rgba(56, 189, 248, .65);
    box-shadow: 0 0 0 .2rem rgba(56, 189, 248, .22);
}

.account-list { color: #cbd5e1; display: grid; gap: .55rem; padding-left: 1rem; }
.account-submit { min-height: 44px; }

@media (max-width: 576px) {
    .account-card { border-radius: 16px; padding: 1rem; }
    .account-tab { flex: 1 1 calc(50% - .55rem); justify-content: center; }
}

.account-profile-card { text-align: center; }
.account-profile-card__avatar-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.account-status-pill {
    align-items: center;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 999px;
    color: #bae6fd;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .4rem;
    padding: .38rem .7rem;
}
.account-section-label {
    background: rgba(148, 163, 184, .14);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .26rem .6rem;
    text-transform: uppercase;
}
.account-form .form-text { color: #94a3b8; }
.account-form input[type='checkbox'] { margin-right: .45rem; }
.user-menu__avatar {
    align-items: center;
    display: inline-flex;
    overflow: hidden;
    position: relative;
}

.user-menu__avatar-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.agenda-modal-content {
    background: linear-gradient(145deg, rgba(17, 24, 39, .98), rgba(15, 23, 42, .92));
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 20px;
    color: #f8fafc;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
}

.agenda-modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.agenda-modal-body { padding: 1.1rem; }

.agenda-modal-form .form-label,
.agenda-modal-form .form-check-label,
.agenda-modal-form .form-floating > label { color: #cbd5e1; }

.agenda-modal-form .form-control,
.agenda-modal-form .form-select {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    color: #f8fafc;
    min-height: 46px;
}

.agenda-modal-form .form-control:focus,
.agenda-modal-form .form-select:focus {
    background: rgba(15, 23, 42, .96);
    border-color: rgba(56, 189, 248, .62);
    box-shadow: 0 0 0 .2rem rgba(56, 189, 248, .2);
}

/* Customer module dashboard styling */
.customer-shell .dashboard-card h2 {
    margin-bottom: 0;
}

.customer-filter-form .form-label,
.customer-form .form-label {
    color: #e2e8f0;
    font-weight: 600;
}

.customer-filter-card,
.customer-table-card,
.customer-form .dashboard-card,
.customer-danger-zone {
    border-radius: 20px;
}

.customer-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-table-wrap {
    overflow-x: auto;
}

.customer-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(148, 163, 184, .14);
    --bs-table-hover-bg: rgba(56, 189, 248, .08);
}

.customer-table thead th {
    border-bottom: 1px solid rgba(148, 163, 184, .24);
    color: #94a3b8;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-table td {
    border-color: rgba(148, 163, 184, .12);
}

.customer-table-card__header {
    align-items: center;
}

.customer-form .form-control,
.customer-form .form-select,
.customer-form .form-check-input,
.customer-filter-form .form-control,
.customer-filter-form .form-select {
    background-color: rgba(15, 23, 42, .85);
    border-color: rgba(148, 163, 184, .22);
    color: #f8fafc;
}

.customer-form .form-control::placeholder,
.customer-filter-form .form-control::placeholder {
    color: #94a3b8;
}

.customer-form .invalid-feedback,
.customer-form .form-error-message {
    color: #fca5a5;
}

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

.customer-detail-list {
    display: grid;
    gap: 12px;
}

.customer-detail-list div {
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 14px;
    padding: 12px;
}

.customer-detail-list dt {
    color: #94a3b8;
    font-size: .8rem;
    margin-bottom: 4px;
}

.customer-detail-list dd {
    margin: 0;
}

.customer-note-block {
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 14px;
    padding: 12px;
}

.customer-empty-state {
    margin-top: 6px;
}

@media (max-width: 991px) {
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .customer-table thead {
        display: none;
    }

    .customer-table,
    .customer-table tbody,
    .customer-table tr,
    .customer-table td {
        display: block;
        width: 100%;
    }

    .customer-table tr {
        border: 1px solid rgba(148, 163, 184, .16);
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 10px;
    }

    .customer-table td {
        border: 0;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        text-align: right;
    }

    .customer-table td::before {
        color: #94a3b8;
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
    }

    .customer-table td .small {
        text-align: right;
    }
}

.orders-shell { margin-bottom: 24px; }
.orders-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orders-toolbar-card { margin-bottom: 14px; }
.orders-toolbar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(160px, 1fr)) auto; gap: 12px; align-items: end; }
.orders-filter-field { display: grid; gap: 6px; font-size: .82rem; color: var(--dash-muted); }
.orders-filter-field .form-control,
.orders-filter-field .form-select,
.orders-table-wrap .form-control { background: rgba(15, 23, 42, .72); border-color: rgba(148, 163, 184, .2); color: #e2e8f0; }
.orders-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.supplier-card { margin-bottom: 14px; padding: 0; overflow: hidden; }
.supplier-card__header { padding: 16px 18px 8px; margin-bottom: 0; }
.orders-table-wrap { padding: 0 14px 14px; }
.orders-table-wrap .table { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(148,163,184,.04); --bs-table-hover-bg: rgba(56, 189, 248, .09); }
.orders-table-wrap thead th { border-bottom-color: rgba(148,163,184,.35); color: #cbd5e1; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.orders-table-wrap tbody td { border-color: rgba(148,163,184,.15); }

@media (max-width: 991.98px) {
  .orders-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .orders-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-toolbar { grid-template-columns: 1fr; }
  .orders-table-wrap { padding: 0; }
  .orders-table-wrap table,
  .orders-table-wrap thead,
  .orders-table-wrap tbody,
  .orders-table-wrap th,
  .orders-table-wrap td,
  .orders-table-wrap tr { display: block; }
  .orders-table-wrap thead { display: none; }
  .orders-table-wrap tr { border-bottom: 1px solid rgba(148,163,184,.16); padding: 10px 14px; }
  .orders-table-wrap td { border: 0; padding: 4px 0; }
  .orders-table-wrap td.text-end { text-align: left !important; }
}
.two-factor-qr { background: #fff; border-radius: 18px; max-width: 100%; padding: .75rem; }
.recovery-code-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.recovery-code-grid code { background: rgba(15, 23, 42, .9); border: 1px solid rgba(148, 163, 184, .25); border-radius: 12px; color: #e0f2fe; display: block; padding: .85rem; text-align: center; }
