/* styles-template.css */
/* Algemene stijlen voor de hele site (header, menu, etc.) */


body {
    margin: 0;
    padding-left: 5px; /* Voeg extra padding toe aan de linkerkant om ruimte te creëren voor het zwarte logo */
    background-image: url("/Image/Zonsondergang.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Century Gothic", sans-serif;
}

.nd-main-content {
    margin-top: 62px; /* Ruimte onder de nd-header */
    padding-left: 50px; /* Voeg hier extra padding toe als de inhoud verder van de linkerkant moet staan */
    overflow-y: auto; /* Verticale scrollbar indien nodig */
    overflow-x: hidden; /* Verwijdert horizontale scrollbar */
    height: calc(100vh - 62px); /* Volledige hoogte minus de nd-header */
    flex-grow: 1;
    scrollbar-gutter: stable; /* Reserveer ruimte voor de scrollbar */
    overflow-y: scroll; /* Forceer altijd een scrollbar */
}

/* Scrollbar Stijlen */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: black;
}
::-webkit-scrollbar-thumb {
    background-color: orange;
    border-radius: 16px;
    border: none;
}
.scrollbar-color-orange ::-webkit-scrollbar-thumb {
    background-color: orange;
}
.scrollbar-color-green ::-webkit-scrollbar-thumb {
    background-color: green;
}
.scrollbar-color-blue ::-webkit-scrollbar-thumb {
    background-color: blue;
}
.scrollbar-color-orange * {
    scrollbar-color: orange black;
}
.scrollbar-color-green * {
    scrollbar-color: green black;
}
.scrollbar-color-blue * {
    scrollbar-color: blue black;
}
* {
    scrollbar-width: thick;
    scrollbar-color: orange black;
}

/* ================== HEADER STYLES ===================== */

/* Hoofdcontainer header: links logo/titel, rechts alles via flexbox */
.nd-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    background: linear-gradient(
        to right, 
        #000 0%, 
        rgba(0,0,0,0.97) 25%, 
        rgba(0,0,0,0.87) 55%, 
        rgba(0,0,0,0.78) 80%, 
        rgba(0,0,0,0.72) 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 50000;
    padding: 0 10px;
}



/* ============= RECHTERKANT HEADER: flexbox voor dropdown, iconen, afdeling ============= */
.nd-header-flexbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 50010;
}

/* Dropdown links in flexbox */
.nd-header-dropdown-container {
    display: flex;
    align-items: center;
}

/* Iconen in het midden van de flexbox */
.nd-header-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Afdelingsnaam helemaal rechts, afgerond RECHTS, strak tegen rand */
.nd-header-active-afdeling {
    padding: 7px 19px;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 1em;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.23);
    border: 2px solid #fff3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center; /* Of flex-end voor helemaal rechts */
    margin-right: 0;
}


/* ============= LINKERKANT HEADER: Logo & Titel ============ */
.nd-header h1,
.nd-title {
    font-size: 24px;
    margin-left: 130px;  /* Logo-breedte + wat ruimte (stel evt. bij) */
    padding-left: 0;     /* Geen extra padding meer nodig */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: white;
    line-height: 60px;   /* Optioneel: netjes gecentreerd in header-hoogte */
}
.nd-logo-left {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: visible;
}
.nd-logo-left img {
    max-width: 100px;
    max-height: 100px;
    z-index: 3000;
    display: block;
    margin-right: -35px;
    margin-bottom: -45px;
}
/* ===================== DROPDOWN STIJLEN ======================= */
.nd-dropdown {
    z-index: 1001;
    position: relative;
    min-width: 145px;
    width: 180px;
}
.nd-dropdown-selected {
    padding: 5px;
    cursor: pointer;
    background-color: black;
    color: white;
    border-radius: 5px;
    width: 100%;
}
.nd-dropdown-options {
    display: none;
    position: absolute;
    background-color: black;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    min-width: 160px;
    z-index: 1002;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}
.nd-dropdown.nd-open .nd-dropdown-options {
    display: block;
}
.nd-dropdown-option {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.nd-dropdown-option:hover {
    background-color: orange;
}
.nd-dropdown-selected:after {
    content: '▼';
    float: right;
    margin-left: 5px;
}

/* ===================== MENUICONEN IN HEADER ======================= */
.nd-menu-item-link {
    text-decoration: none;
    color: white;
    margin-right: 0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.nd-menu-item-link img {
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

/* =========================================================
   ACCOUNTMENU IN NOORDDUINE STIJL
   ========================================================= */

.nd-account-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 99999;
}

.nd-account-menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 100000;
    padding: 5px 10px;
    margin: 0;
}

.nd-account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* iets strakker */
    right: 0;
    min-width: 210px;
    max-width: 235px;
    background: #000000;

    border: 1px solid rgba(255,255,255,0.06); /* subtiel i.p.v. hard zwart */
    border-radius: 6px; /* klein beetje rond → moderner */

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.75),
        0 6px 14px rgba(0, 0, 0, 0.45);

    overflow: visible;
    display: none;
    z-index: 100001;

    padding-top: 0; /* ❌ weg → geen zwevend gevoel meer */
}



.nd-account-menu-dropdown.nd-open {
    display: block;
}

.nd-account-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #000000;
    border-top: 1px solid orange;
    border-left: 1px solid orange;
    transform: rotate(45deg);
    z-index: 100002;
}

/* =========================================================
   ACCOUNT STATUS (INGELOGD BLOK - COMPACT + GOED LEESBAAR)
   ========================================================= */

.nd-account-menu-dropdown {
    padding-top: 0;
}

.nd-account-menu-dropdown::before {
    top: -6px;
}

.nd-account-menu-status {
    margin: 0;
    padding: 8px 12px 7px 12px;
    background: linear-gradient(180deg, #1f1f1f 0%, #111111 100%);
    border-bottom: 1px solid rgba(255, 165, 0, 0.28);
    position: relative;
    z-index: 2;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -3px 6px rgba(0,0,0,0.45);
}

/* label bovenaan */
.nd-account-menu-status-label {
    color: rgba(255, 165, 0, 0.95);
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 3px;
    display: block;
    line-height: 1;
}

.nd-account-menu-status-label::before {
    content: "● ";
    color: #4cff88;
    font-size: 0.9em;
}

/* naam gebruiker */
.nd-account-menu-status-name {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    display: block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* oranje accentlijntje */
.nd-account-menu-status::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: orange;
    margin-top: 6px;
    border-radius: 2px;
}

/* =========================================================
   ACCOUNT MENU ITEMS
   ========================================================= */

.nd-account-menu-list {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.nd-account-menu-item {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.90em;
    font-weight: 500;
    background: #111111;
    border-bottom: 1px solid rgba(255, 165, 0, 0.18);
    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

/* hover iets “lift” effect zoals kaart */
.nd-account-menu-item:hover {
    background: linear-gradient(90deg, #ffa600 0%, #ff7b00 100%);
    color: #ffffff;
    transform: translateX(4px) translateY(-1px);

    box-shadow:
        0 4px 10px rgba(255, 140, 0, 0.25),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* =========================================================
   HOVER MENU ITEMS – PREMIUM NOORDDUINE STYLE
   ========================================================= */

.nd-account-menu-item {
    position: relative;
    overflow: hidden;
    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* subtiele glow + gradient */
.nd-account-menu-item:hover {
    background: linear-gradient(90deg, #ffa600 0%, #ff7b00 100%);
    color: #ffffff;

    transform: translateX(4px); /* kleine shift naar rechts */
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 4px 10px rgba(255, 140, 0, 0.25);
}

/* animatie streep van links */
.nd-account-menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255,255,255,0.15);
    transition: width 0.2s ease;
}

.nd-account-menu-item:hover::before {
    width: 100%;
}

/* extra scherp randje links (accent) */
.nd-account-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.nd-account-menu-item:hover::after {
    background: #ffffff;
}

.nd-account-menu-divider {
    height: 1px;
    background: rgba(255, 165, 0, 0.34);
    position: relative;
    z-index: 2;
}

.nd-account-logout-form {
    margin: 0;
    padding: 10px;
    background: #111111;
    position: relative;
    z-index: 2;
}

.nd-account-logout-button {
    width: 100%;
    padding: 9px 14px; /* iets compacter */
    border: 1px solid orange;
    border-radius: 0;
    background: #1a1a1a;
    color: orange;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.nd-account-logout-button:hover {
    background: orange;
    color: #ffffff;
    border-color: orange;
}

/* =========================================================
   DISABLED MENU ITEMS – CLEAN RIGHT ALIGN (FIXED)
   ========================================================= */

.nd-account-menu-item.nd-disabled {
    color: rgba(255,255,255,0.35);
    background: #0d0d0d;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
}

/* geen hover */
.nd-account-menu-item.nd-disabled:hover {
    background: #0d0d0d;
    transform: none;
    box-shadow: none;
}

/* oude hover-overlay uitzetten */
.nd-account-menu-item.nd-disabled::before {
    display: none !important;
}

/* BELANGRIJK: absolute positioning van de algemene ::after resetten */
.nd-account-menu-item.nd-disabled::after {
    content: "Binnenkort 🔒";
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    background: none;
    transform: none;

    font-size: 0.70em;
    font-weight: 600;
    color: rgba(255,165,0,0.8);
    padding: 0;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===================== ORANJE LIJN ONDER HEADER ======================= */
.nd-header-line {
    height: 4px;
    background-color: orange;
    width: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1999;
}

/* ============= Responsive gedrag ============= */
@media (max-width: 1050px) {
    .nd-header-flexbox {
        gap: 10px;
        right: 6px;
    }
    .nd-header-active-afdeling {
        padding: 6px 10px;
        font-size: 0.94em;
    }
    .nd-dropdown {
        min-width: 120px;
        width: 140px;
    }
}
@media (max-width: 850px) {
    .nd-header-flexbox {
        gap: 4px;
        top: 5px;
        right: 5px;
    }
    .nd-header-active-afdeling {
        min-width: 70px;
        font-size: 0.89em;
        padding: 5px 7px;
    }
    .nd-dropdown {
        min-width: 90px;
        width: 110px;
    }
}
@media (max-width: 600px) {
    .nd-header-flexbox {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        position: static;
        right: 0;
        top: 0;
    }
    .nd-header-active-afdeling,
    .nd-header-icons,
    .nd-header-dropdown-container {
        margin: 0 !important;
        min-width: 0 !important;
        width: 100%;
        justify-content: flex-end;
    }
    .nd-header-active-afdeling {
        border-radius: 8px;
        padding: 4px 6px;
        font-size: 0.87em;
    }
    .nd-dropdown {
        width: 95vw;
        min-width: 0;
    }
}



/* MENU BAR Stijlen */
.nd-menu-bar {
    background-color: black;
    width: 50px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    box-shadow: 10px 0 5px -5px rgba(0, 0, 0, 0.5);
    overflow-x: visible;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nd-menu-bar.nd-expanded {
    width: var(--menu-expanded-width, 200px);
}

.nd-menu-toggle {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: linear-gradient(to bottom, #ffa600 0%, #f67300 100%);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: left 0.3s ease;
}

.nd-menu-bar.nd-expanded .nd-menu-toggle {
    left: calc(var(--menu-expanded-width, 200px));
}



.nd-toggle-icon {
    font-size: 16px;
    color: white;
    transition: transform 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nd-toggle-rotate {
    transform: rotate(180deg) !important;
}

.nd-menu-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.nd-menu-bar.nd-expanded .nd-menu-content {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nd-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.nd-menu-list {
    list-style-type: none;
    padding: 0;
    margin: 60px 0 0 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nd-menu.nd-expanded ul {
    opacity: 1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1001;
}

/* --- AANPASSING: breedte menu-items --- */
.nd-menu li {
    width: 50px;
    transition: width 0.3s;
    display: block;
}
.nd-menu-bar.nd-expanded .nd-menu li {
    width: var(--menu-expanded-width, 200px);
}

/* --- AANPASSING: minder hoge blokken door minder padding --- */
.nd-menu li a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s, width 0.3s, padding 0.3s;
    overflow: visible;
    background-color: transparent;
}

.nd-menu li a img {
    max-width: 20px;
    max-height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.nd-menu li:hover a,
.nd-menu-item:hover:not(.active) a {
    /* Helder oranje gradient */
    background: linear-gradient(to bottom, #ffc24b 0%, #ffa600 100%);
    padding: 6px 10px; /* Zorgt dat hover dezelfde hoogte houdt */
}

.nd-menu-item.active a {
    /* Donkerder oranje gradient */
    background: linear-gradient(to bottom, #f67300 0%, #ff8700 100%);
    padding: 6px 10px; /* Zorgt dat active dezelfde hoogte houdt */
    position: relative; /* Zorg dat de ::after goed positioneert */
}

.nd-menu-item.active a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;      /* Hoger maken (was 13px) */
    border-bottom: 18px solid transparent;   /* Hoger maken (was 13px) */
    border-left: 12px solid #ff8700;         /* Zelfde breedte als voorheen */
    margin-right: -12px;                     /* Zelfde als voorheen */
    z-index: 2;
    pointer-events: none;
}

.nd-menu-item-container {
    display: flex;
    align-items: center;
    padding: 2px 0;
    width: 100%;
}

.nd-menu-item-text {
    color: white;
    visibility: hidden;
    opacity: 0;
    margin-left: 8px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    overflow: visible;
    flex-grow: 1;
}

.nd-menu.nd-expanded .nd-menu-item-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s;
}


/* =========================================================
   RECHTER ZIJMENU – BASIS LAYOUT
   ========================================================= */

.nd-menu-bar-right {
    background-color: #0d0d0d;
    width: 15px;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(.4,1,.3,1);
    box-shadow: -10px 0 5px -5px rgba(0,0,0,0.38);
    overflow-x: visible;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.nd-menu-bar-right.nd-expanded {
    width: 318px;
}

/* Toggle-knop aan de rechterzijde */
.nd-menu-toggle-right {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    width: 32px;
    height: 58px;
    background: linear-gradient(to bottom, #ffa600 0%, #f67300 100%);
    border-top-left-radius: 29px;
    border-bottom-left-radius: 29px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.23);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: left 0.3s, top 0.3s, transform 0.3s;
}
.nd-toggle-icon-right {
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s;
    pointer-events: none;
    user-select: none;
}
.nd-toggle-rotate-right {
    transform: rotate(180deg) !important;
}

/* Badge op de toggle */
.nd-right-alert-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,80,80,0.95);
  border: 2px solid rgba(0,0,0,0.55);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  pointer-events: none;
  user-select: none;
}

/* Toggle pulse animatie */
@keyframes ndRightPulse {
  0%   { transform: translate(-100%, -50%) scale(1); filter: brightness(1); }
  35%  { transform: translate(-100%, -50%) scale(1.07); filter: brightness(1.2); }
  70%  { transform: translate(-100%, -50%) scale(0.98); filter: brightness(1); }
  100% { transform: translate(-100%, -50%) scale(1); }
}

.nd-menu-toggle-right.nd-right-pulse{
  animation: ndRightPulse 0.55s ease-in-out 0s 3;
}

/* Extra: subtiele glow tijdens pulse */
.nd-menu-toggle-right.nd-right-pulse{
  box-shadow: 0 2px 10px rgba(0,0,0,0.23), 0 0 0 6px rgba(255,80,80,0.18);
}



/* Hoofdcontainer binnen het zijmenu */
.nd-menu-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    font-size: 1em;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

/* Content tonen/verbergen o.b.v. expanded-state */
.nd-menu-bar-right.nd-expanded .nd-menu-right-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-content,
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-datumvak,
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-body {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

/* Scrollend deel, datum + tabs zitten daarbóven */
.nd-menu-right-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 12px;
}

/* =========================================================
   DATUMBLOK BOVENAAN (STICKY)
   ========================================================= */

.nd-menu-right-datumvak {
    width: 100%;
    padding-top: 22px;
    padding-bottom: 4px;
    text-align: center;
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #0d0d0d;
}

.nd-menu-right-datum {
    color: #fff;
    font-size: 1.09em;
    font-weight: bold;
    letter-spacing: 0.01em;
    display: inline-block;
    background: none;
}

.nd-menu-right-lijn {
    border: none;
    border-top: 2px solid orange !important;
    margin: 7px auto 13px auto;
    width: 78%;
    max-width: 190px;
}
.nd-menu-right-lijn-boven {
    margin-bottom: 10px;
    margin-top: 0;
}

/* =========================================================
   FILTER-TABS (VOLLEDIG / INDELING / KAART / EETLIJSTJE)
   ========================================================= */

/* Label boven de knoppen (optioneel, puur voor structuur) */
.nd-tab-label {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    padding-left: 4px;
    margin-bottom: 4px;
}

/* Container met verticale tab-knoppen */
.nd-menu-right-tabs {
    padding: 0 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Basisstijl van alle tab-knoppen */
.nd-right-tab {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.18);
    background: #181818;
    color: #e5e5e5;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nd-right-tab:hover {
    background: #202020;
    border-color: rgba(255,255,255,0.32);
}

/* Hoofdknop 'Volledig' – iets prominenter */
.nd-right-tab--primary {
    margin-top: 2px;
    background: #111;
    border-left: 3px solid #ffa600;
    border-radius: 6px;
    font-weight: 600;
}

/* Actieve subtabs (Indeling/Kaart/Eetlijstje) */
.nd-right-tab.nd-right-tab--active:not(.nd-right-tab--primary) {
    background: #ffa600;
    border-color: #ffa600;
    color: #000;
}

/* Actieve hoofdtab 'Volledig' – met gouden gradient */
.nd-right-tab--primary.nd-right-tab--active {
    background: linear-gradient(90deg, #ffb300, #ff8800);
    color: #000;
    border-color: #ffa600;
    border-left-color: #ffe39a;
}

/* Extra nadruk op Volledig-tekst */
.nd-right-tab[data-tab="all"] {
    font-weight: 600;
}

/* =========================================================
   NIEUW: INKLAPBARE FILTERS OP KLEINERE SCHERMEN
   ========================================================= */

/* Op kleine schermen: toon alleen actieve filter, tik op actieve filter om open/dicht te klappen */
/* Inklapbare filters op lagere schermhoogte (1080p en lager) */
@media (max-height: 1080px) {

  /* standaard: alleen actieve tab zichtbaar */
  .nd-menu-right-tabs .nd-right-tab:not(.nd-right-tab--active) {
    display: none;
  }

  /* als open: alles zichtbaar */
  .nd-menu-right-tabs.nd-filters-open .nd-right-tab {
    display: block;
  }

  /* caret op de actieve tab */
  .nd-menu-right-tabs .nd-right-tab--active::after {
    content: " ▾";
    float: right;
    opacity: 0.85;
    font-size: 0.9em;
  }
  .nd-menu-right-tabs.nd-filters-open .nd-right-tab--active::after {
    content: " ▴";
  }

  /* compacter zodat het minder hoogte kost */
  .nd-menu-right-tabs { gap: 4px; padding: 0 8px 6px 8px; }
  .nd-tab-label { margin-bottom: 2px; font-size: 0.62rem; }
  .nd-right-tab { padding: 5px 10px; font-size: 0.70rem; }
}


/* =========================================================
   BLOKKEN IN ZIJMENU (INDELING / KAART / EETLIJSTJE)
   ========================================================= */

.nd-menu-right-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 12px;
}

/* Algemene kaart-stijl per blok */
.nd-menu-right-block {
    background: rgba(30,30,30,0.94);
    border-radius: 9px;
    padding: 30px 0 14px 0;   /* ruimte boven voor de titlebox */
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(255, 144, 0, 0.09);
    border: 1.2px solid rgba(255,165,0,0.19);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: background 0.22s, border 0.18s, transform 0.13s, box-shadow 0.13s;
    cursor: pointer;
    min-height: 38px;
    overflow: visible;
}

.nd-menu-right-block:hover {
    background: rgba(30,30,30,0.94);
    border: 1.2px solid orange;
    color: #fff;
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 4px 12px rgba(255,144,0,0.13);
}

/* Titel-badge boven elk blok */
.nd-menu-right-block-titlebox {
    background: #181818;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.01em;
    padding: 7px 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(255,144,0,0.07);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    min-width: 76px;
    max-width: 90%;
    text-align: center;
    border-bottom: 2px solid orange;
    z-index: 2;
    display: block;
    letter-spacing: 0.04em;
}

/* Plus-/potlood-knop onderaan elk blok */
.nd-menu-right-plus {
    position: relative;
    left: auto;
    bottom: auto;
    width: 27px;
    height: 27px;
    background: rgba(255,165,0,0.13);
    border-radius: 50%;
    color: orange;
    font-size: 1.34em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.5px 4px rgba(255,165,0,0.11);
    z-index: 3;
    cursor: pointer;
    transition: background 0.18s, color 0.13s, box-shadow 0.15s;
    margin-top: 12px;
    align-self: center;
}
.nd-menu-right-block:hover .nd-menu-right-plus {
    background: orange;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,165,0,0.23);
    transition-delay: 0.05s;
}

/* Responsive breedte zijmenu op kleine schermen */
@media (max-width: 500px) {
    .nd-menu-bar-right.nd-expanded { width: 96vw; }
    .nd-menu-right-block-titlebox { width: 92%; font-size: 0.98em; }
    .nd-menu-right-block { margin: 0 4vw; }
}

/* =========================================================
   GENERIEKE MODAL-STIJLEN (INDDELING / EETLIJSTJE)
   ========================================================= */

.nd-modal-bg {
    position: fixed;
    z-index: 999999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(5, 5, 5, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ndModalBgFadeIn 0.18s;
}
@keyframes ndModalBgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.nd-modal-window {
    background: linear-gradient(180deg, #171717 0%, #111111 100%);
    border-radius: 18px;
    box-shadow:
        0 18px 70px rgba(0,0,0,0.58),
        0 3px 14px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.05);
    max-width: 380px;
    width: 94vw;
    padding: 0;
    animation: ndModalShowUp 0.22s cubic-bezier(.35,1.2,.45,1);
    overflow: hidden;
    border: 1px solid rgba(255,166,0,0.75);
    position: relative;
    z-index: 1000000; /* optioneel extra zekerheid */
}
@keyframes ndModalShowUp {
    from { transform: translateY(30px) scale(.97); opacity: 0.4; }
    to   { transform: none; opacity: 1; }
}

.nd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    padding: 0 18px 0 22px;
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border-bottom: 1px solid rgba(255,166,0,0.55);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}
.nd-modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.nd-modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffb347;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        transform 0.12s ease;
    padding: 0;
    line-height: 1;
}

.nd-modal-close:hover {
    background: rgba(255,166,0,0.12);
    color: #ffffff;
    border-color: rgba(255,166,0,0.22);
}

.nd-modal-close:active {
    transform: scale(0.96);
}

.nd-modal-body {
    padding: 14px;
    background: linear-gradient(180deg, #202020 0%, #1c1c1c 100%);
    color: #fff;
    font-size: 1em;
    border-radius: 0 0 18px 18px;
}

.nd-modal-form-row {
    margin-bottom: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.nd-modal-form-row label {
    font-weight: 500;
    color: orange;
    margin-bottom: 4px;
    font-size: 0.97em;
    letter-spacing: 0.02em;
}
.nd-modal-form-row input[type="date"],
.nd-modal-form-row select {
    background: #191919;
    color: #fff;
    border: 1.3px solid orange;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 1em;
    width: 100%;
    outline: none;
    margin-bottom: 0;
}
.nd-modal-form-row input[type="date"]:focus,
.nd-modal-form-row select:focus {
    border-color: #fff;
    background: #151515;
}

.nd-modal-save-btn {
    background: linear-gradient(90deg, orange 0%, #f69400 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 11px 23px;
    font-size: 1.06em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,144,0,0.10);
    transition: background 0.19s, color 0.13s;
}
.nd-modal-save-btn:hover {
    background: linear-gradient(90deg, #f69400 0%, orange 100%);
    color: #fff;
}

/* =========================================================
   EETLIJSTJE-LIJST IN RECHTER BLOK
   ========================================================= */

#nd-eetlijstje-list .nd-eet-skel {
    color:#ddd;
    font-size:.95em;
    opacity:.9;
    padding:6px 4px;
}

.nd-eet-list {
    display:flex;
    flex-direction:column;
    gap:10px;
    width: 100%;
}

/* Eén tijdslot in het zijmenu */
.nd-eet-item {
    background: #202020;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Tijden bovenaan een slot */
.nd-eet-time {
    font-weight:700;
    color:#ffa600;
    margin-bottom:6px;
    font-size:.95em;
    letter-spacing:.02em;
}

/* Namen: standaard 2 kolommen */
.nd-eet-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
    box-sizing: border-box;
}

/* ✅ ALS MENU UITGEKLAPT IS: 3 kolommen */
.nd-menu-bar-right.nd-expanded .nd-eet-names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Naam-chip */
.nd-eet-chip {
    position: relative;
    background: #2a2a2a;
    border: none;
    color: #fff;
    border-radius: 8px;

    /* 🔽 iets kleiner zodat namen passen */
    font-size: .80em;
    line-height: 1.15;

    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    padding: 5px 9px 5px 12px;

    /* 1 regel, netjes afkappen */
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Nog een tikje compacter als menu uitgeklapt is (3 kolommen) */
.nd-menu-bar-right.nd-expanded .nd-eet-chip {
    font-size: .76em;
}

/* Kleurstreepje */
.nd-eet-chip::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--dept, #ffa600);
}

.nd-eet-chip.nd-eet-chip--no-color::before {
    background: #666;
}


/* iets compacter bij uitgeklapt zijmenu */
.nd-menu-bar-right.nd-expanded .nd-eet-item {
    padding: 8px 9px;
}


/* =========================================================
   INDELING-LIJST IN RECHTER BLOK (aangepast: meer zoals EETLIJSTJE + volle breedte)
   ========================================================= */

/* ✅ Alleen bij INDELING: children mogen volle breedte pakken */
#nd-blk-indeling.nd-menu-right-block {
    align-items: stretch; /* was center via .nd-menu-right-block */
}

/* Skeleton / laadtekst */
#nd-indeling-list .nd-indeling-skel {
    color:#ddd;
    font-size:.95em;
    opacity:.9;
    padding:6px 4px;
}

/* ✅ BELANGRIJK: wrapper (dit is je #nd-indeling-list in de HTML) */
#nd-indeling-list {
    width: 100%;
    padding: 0 12px 2px 12px;   /* zelfde “inset” als eetlijstje */
    box-sizing: border-box;
    align-self: stretch;        /* forceer stretch in flex parent */
}

/* Wrapper rond de shift-toggle (Middag / Avond) */
.nd-indeling-toggle-wrapper,
.nd-indeling-sort-wrapper {
    width: 100%;
    padding: 0 12px 6px 12px;
    box-sizing: border-box;
    align-self: stretch;
}

#nd-indeling-toggle,
#nd-indeling-sort-toggle {
    width: 100%;
}

/* Segment-achtige toggle-balk (iets subtieler) */
.nd-indeling-toggle-bar {
    display: flex;
    gap: 4px;
    background: #202020;
    border-radius: 999px;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,165,0,0.16);
}

/* Knop in de toggle (Middag / Avond) */
.nd-indeling-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #bbbbbb;
    font-size: .82em;
    font-weight: 600;
    padding: 5px 0;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.16s, color 0.12s, box-shadow 0.15s, transform 0.12s;
}
.nd-indeling-toggle-btn:hover {
    color: #ffffff;
}
.nd-indeling-toggle-btn--active {
    background: linear-gradient(90deg, #ffa600 0%, #f69400 100%);
    color: #111;
    box-shadow: 0 2px 8px rgba(255,165,0,0.28);
    transform: translateY(-1px);
}

.nd-indeling-toggle-bar--sort {
    background: #1b1b1b;
    border-color: rgba(255,255,255,0.10);
}

.nd-indeling-sort-btn {
    font-size: .74em;
    padding: 4px 0;
}

.nd-indeling-sort-wrapper {
    padding-top: 0;
    padding-bottom: 8px;
}


/* =========================================================
   INDELING – SORTEREN LABEL + LIJN
   ========================================================= */

.nd-indeling-sort-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-bottom: 4px;
    margin-top: 2px;
}

/* subtiel oranje streepje */
.nd-indeling-sort-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto 6px auto;
    background: linear-gradient(
        90deg,
        rgba(255,165,0,0) 0%,
        rgba(255,165,0,0.55) 50%,
        rgba(255,165,0,0) 100%
    );
    border-radius: 1px;
    opacity: 0.7;
}

/* Lijst met vakken */
.nd-indeling-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Eén vak als kaartje, nu zoals eetlijstje item */
.nd-indeling-vak {
    background: #202020;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Kopje van een vak, nu zoals eetlijstje time */
.nd-indeling-vak-title {
    font-weight: 700;
    color: #ffa600;
    margin-bottom: 6px;
    font-size: .95em;
    letter-spacing: .02em;
    text-align: left;
    padding: 0;
    border-bottom: none;
}

/* Namen onder een vak, nu grid zoals eetlijstje namen */
.nd-indeling-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
    box-sizing: border-box;
}

/* ✅ ALS MENU UITGEKLAPT IS: 3 kolommen (zelfde gedrag als eetlijstje) */
.nd-menu-bar-right.nd-expanded .nd-indeling-names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Naam-chip, nu subtiel rechthoekig zoals eetlijstje chip */
.nd-indeling-name-chip {
    position: relative;
    background: #2a2a2a;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: .80em;
    line-height: 1.15;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    padding: 5px 9px 5px 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nd-indeling-name-chip--vak {
    background: rgba(255,165,0,0.10);
    color: #fff;
    border: 1px solid rgba(255,165,0,0.18);
}

/* Nog een tikje compacter als menu uitgeklapt is (3 kolommen) */
.nd-menu-bar-right.nd-expanded .nd-indeling-name-chip {
    font-size: .76em;
}

/* compacter bij uitgeklapt zijmenu */
.nd-menu-bar-right.nd-expanded .nd-indeling-vak {
    padding: 8px 9px;
}

/* ✅ plus/potlood knop blijft netjes in het midden (omdat parent nu stretch is) */
#nd-blk-indeling .nd-menu-right-plus {
    align-self: center;
}



/* =========================================================
   NAAST DE KAART – STRAK & ZAKELIJK (FINALE CSS v10)
   ========================================================= */

/* Wrapper van kaartlijst netjes binnen blok houden */
#nd-kaart-list {
    width: 100%;
    padding: 6px 12px 2px 12px;
    box-sizing: border-box;
    align-self: stretch;
}

/* Skeleton */
#nd-kaart-list .nd-kaart-skel {
    color: #ddd;
    font-size: .95em;
    opacity: .9;
    padding: 6px 4px;
}

/* Lijst */
.nd-kaart-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 2px;
    box-sizing: border-box;
}

/* Item */
.nd-kaart-item {
    position: relative;
    padding: 10px 10px 4px 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Divider tussen gerechten */
.nd-kaart-item + .nd-kaart-item {
    padding-top: 22px;
}
.nd-kaart-item + .nd-kaart-item::before {
    content: "";
    display: block;
    width: 72%;
    height: 1px;
    margin: 2px auto 8px auto;
    background: rgba(255,255,255,0.10);
}

/* Header en titelrij moeten mogen krimpen */
.nd-kaart-header,
.nd-kaart-title-row {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Titel + oranje streep, altijd binnen de beschikbare breedte */
.nd-kaart-name {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-weight: 800;
    color: #ffa600;
    font-size: .95em;
    line-height: 1.15;
    margin: 0;
    text-align: center;
    box-sizing: border-box;

    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    padding: 0 10px 6px 10px;
    border-bottom: 2px solid rgba(255,165,0,0.95);
}

.nd-kaart-underline { display: none !important; }

@media (max-width: 420px) {
    .nd-kaart-name { font-size: .90em; }
}

/* V-strip toggle */
.nd-kaart-toggle {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    margin: 6px 0 4px 0;
    padding: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nd-kaart-toggle::before {
    content: "";
    width: 7px;
    height: 7px;

    border-right: 2px solid rgba(255,255,255,0.55);
    border-bottom: 2px solid rgba(255,255,255,0.55);

    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform .16s ease;

    display: block;
}

.nd-kaart-item--expanded .nd-kaart-toggle::before {
    transform: rotate(-135deg);
}

.nd-kaart-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

/* Bijgerechten */
.nd-kaart-bijpanel {
    width: 100%;
    padding-top: 6px;
    overflow: hidden;

    max-height: 260px;
    opacity: 1;

    transition: max-height .22s ease, opacity .18s ease, padding-top .18s ease;
    box-sizing: border-box;
}

.nd-kaart-item--expanded .nd-kaart-bijpanel {
    margin-bottom: 10px;
}

.nd-kaart-item--collapsed .nd-kaart-bijpanel {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-bottom: 0;
}

.nd-kaart-bijchips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.nd-kaart-bijchip {
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    font-size: .76em;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

/* Footer */
.nd-kaart-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.70fr 0.70fr;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 2px;
    min-width: 0;
    box-sizing: border-box;
}

.nd-kaart-box {
    height: 30px;
    font-weight: 900;
    font-size: .83em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    min-width: 0;
    box-sizing: border-box;
}

.nd-kaart-box--price {
    background: rgba(255,194,75,0.12);
    border-color: rgba(255,194,75,0.26);
    color: #fff;
}

.nd-kaart-box--count {
    background: rgba(255,165,0,0.11);
    border-color: rgba(255,165,0,0.24);
    color: orange;
}

/* ✅ Low stock: aantal-box andere kleur */
.nd-kaart-box--count.nd-kaart-box--low{
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 80, 80, 0.38);
  color: rgba(255, 120, 120, 0.98);
}

/* ✅ Low stock tekst onder de footer */
.nd-kaart-lowtext{
  margin-top: 6px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 90, 90, 0.98);
  text-align: center;
  opacity: 0.98;
}

.nd-kaart-beschikbaar-vanaf{
  margin-top: 7px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255, 90, 90, 0.98);
  text-align: center;
  line-height: 1.25;
}

.nd-kaart-box--status {
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nd-kaart-box--status:hover {
    transform: translateY(-1px);
}

.nd-kaart-box--status:active {
    transform: translateY(0);
}

.nd-kaart-box--status svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nd-kaart-datum { display: none !important; }

.nd-menu-right-block#nd-blk-kaart .nd-kaart-list {
    margin-top: -8px;
}
.nd-menu-right-block#nd-blk-kaart .nd-kaart-item:first-child {
    padding-top: 4px;
}

/* Kaart modal, strakker en meer windows-achtig */
#kaartModalWindow.nd-modal-window{
    width: min(1040px, 94vw);
    max-width: 1040px;
    height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(180deg, #151515 0%, #101010 100%);
    border: 1px solid rgba(255,166,0,0.78);
    box-shadow:
        0 22px 80px rgba(0,0,0,0.60),
        0 6px 22px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

#kaartModalWindow .nd-modal-header{
    min-height: 60px;
    padding: 0 18px 0 22px;
    background: linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
    border-bottom: 1px solid rgba(255,166,0,0.55);
}

#kaartModalBody.nd-modal-body{
    padding: 12px 14px 14px 14px;
    background: linear-gradient(180deg, #1f1f1f 0%, #191919 100%);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#kaartModalBody .modal-kaart-container{
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background: transparent;
    border: none;
}

#kaartModalBody .modal-kaart-flex{
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    gap: 12px;
}

#kaartModalBody .modal-kaart-divider{
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.01) 0%,
        rgba(255,166,0,0.26) 18%,
        rgba(255,166,0,0.26) 82%,
        rgba(255,255,255,0.01) 100%
    );
}

#kaartModalBody .modal-kaart-deel,
#kaartModalBody .modal-kaart-deel-links,
#kaartModalBody .modal-kaart-deel-rechts{
    min-height: 0;
    height: auto;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.022) 0%, rgba(255,255,255,0.012) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

#kaartModalBody .modal-kaart-items,
#kaartModalBody .modal-kaart-form{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
}

/* Extra hoogte op kleinere schermen */
@media (max-height: 950px){
    #kaartModalWindow.nd-modal-window{
        height: 94vh;
    }
}

@media (max-height: 820px){
    #kaartModalWindow.nd-modal-window{
        height: 96vh;
    }
}

@media (max-width: 900px){
    #kaartModalBody .modal-kaart-flex{
        flex-direction: column;
    }

    #kaartModalBody .modal-kaart-divider{
        display: none;
    }

    #kaartModalWindow.nd-modal-window{
        width: min(720px, 96vw);
    }
}

.nd-kaart-box--status.nd-kaart-box--ok {
    background: rgba(57,211,83,0.18);
    border-color: rgba(57,211,83,0.40);
    color: #39d353;
}

.nd-kaart-box--status.nd-kaart-box--no {
    background: rgba(255,80,80,0.16);
    border-color: rgba(255,80,80,0.36);
    color: rgba(255,120,120,0.95);
}

.nd-kaart-box--bord.nd-kaart-box--ok {
    background: rgba(57,211,83,0.18);
    border-color: rgba(57,211,83,0.40);
    color: #39d353;
}

.nd-kaart-box--bord.nd-kaart-box--no {
    background: rgba(255,80,80,0.16);
    border-color: rgba(255,80,80,0.36);
    color: rgba(255,120,120,0.95);
}

.nd-kaart-box--online.nd-kaart-box--ok {
    background: rgba(69,156,255,0.18);
    border-color: rgba(69,156,255,0.34);
    color: #67b0ff;
}

.nd-kaart-box--online.nd-kaart-box--no {
    background: rgba(255,80,80,0.16);
    border-color: rgba(255,80,80,0.36);
    color: rgba(255,120,120,0.95);
}

.modal-kaart-btnrow--top{
  margin-top: 2px;
}

.modal-kaart-btn--danger{
  background: rgba(255, 80, 80, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 80, 80, 0.40);
  font-weight: 800;
}

.modal-kaart-btn--danger:hover{
  background: rgba(255, 80, 80, 0.26);
}

.modal-kaart-btn--danger:disabled{
  opacity: 0.55;
  cursor: default;
  filter: grayscale(1);
}

.nd-kaart-category {
  margin-top: 12px;
  margin-bottom: 4px;
}

.nd-kaart-category-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nd-kaart-category-line {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 4px;
}

.nd-code-box{
    width:44px;
    height:52px;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:10px;
    background:#111;
    color:#fff;
    text-align:center;
    font-size:1.15rem;
    font-weight:700;
    outline:none;
}

.nd-code-pad-btn{
    min-height:46px;
    border:none;
    border-radius:10px;
    background:#1a1a1a;
    color:#fff;
    font-size:1rem;
    font-weight:700;
    cursor:pointer;
    transition:background .15s ease, transform .12s ease;
}

.nd-code-pad-btn:hover{
    background:#242424;
    transform:translateY(-1px);
}

.nd-code-pad-btn--ok{
    background:linear-gradient(90deg, orange 0%, #f69400 100%);
    color:#fff;
}

.nd-code-pad-btn--alt{
    background:rgba(255,255,255,0.08);
}
/* =========================================================
   EETLIJSTJE – SUBTIELE INFO (ALLERGIEËN + OPMERKING)
   ========================================================= */

.nd-eet-meta{
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nd-eet-meta-line{
  display: flex;
  gap: 6px;
  align-items: baseline;
  text-align: left;
  font-size: 0.72em;
  line-height: 1.25;
  color: rgba(255,255,255,0.78);
}

.nd-eet-meta-name{
  color: rgba(255,165,0,0.92);
  font-weight: 700;
  white-space: nowrap;
}

.nd-eet-meta-text{
  color: rgba(255,255,255,0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Opmerking iets “zachter”, maar wel duidelijk */
.nd-eet-meta-opm .nd-eet-meta-name{
  color: rgba(255,255,255,0.70);
  font-weight: 700;
}
.nd-eet-meta-opm .nd-eet-meta-text{
  color: rgba(255,255,255,0.82);
}
/* =========================================================
   EETLIJSTJE – OPMERKING TEKST (MEERREGELIG + CURSIEF)
   ========================================================= */

.nd-eet-meta-opm .nd-eet-meta-text{
  white-space: normal;        /* ⬅️ meerdere regels toestaan */
  overflow: visible;
  text-overflow: unset;

  font-style: italic;         /* ⬅️ schuingedrukt */
  line-height: 1.35;
}


/* =========================================
   Code bevestiging modal, zelfde stijl als accountmenu
========================================= */

.nd-code-modal-bg {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nd-code-modal-window {
    width: 100%;
    max-width: 430px;
    border: 1px solid rgba(255, 176, 0, 0.35);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(24, 24, 24, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 176, 0, 0.06) inset;
    overflow: hidden;
}

.nd-code-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px 18px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96) 0%, rgba(18, 18, 18, 0.96) 100%);
    border-bottom: 1px solid rgba(255, 176, 0, 0.12);
}

.nd-code-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nd-code-modal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #18c454;
    box-shadow: 0 0 8px rgba(24, 196, 84, 0.65);
    flex: 0 0 auto;
}

.nd-code-modal-title {
    color: #ffffff;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.nd-code-modal-close {
    color: #d9d9d9;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nd-code-modal-close:hover {
    color: #ffb000;
    transform: scale(1.06);
}

.nd-code-modal-accent-line {
    width: 58px;
    height: 2px;
    background: #ffb000;
    margin-left: 18px;
}

.nd-code-modal-body {
    padding: 18px;
}

.nd-code-modal-text {
    color: rgba(255, 255, 255, 0.84);
    text-align: left;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.nd-code-error {
    min-height: 20px;
    margin-bottom: 12px;
    color: #ff7f7f;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.nd-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.nd-code-box {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 176, 0, 0.35);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
    pointer-events: none;
}

.nd-code-box.filled {
    border-color: rgba(255, 176, 0, 0.8);
    background: rgba(255, 176, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 176, 0, 0.08);
}

.nd-code-show-wrap {
    margin-bottom: 14px;
}

.nd-code-show-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.nd-code-show-label input[type="checkbox"] {
    accent-color: #ffb000;
    cursor: pointer;
}

.nd-code-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nd-code-pad-btn {
    height: 46px;
    border: 1px solid rgba(255, 176, 0, 0.35);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.nd-code-pad-btn:hover {
    background: rgba(255, 176, 0, 0.10);
    border-color: rgba(255, 176, 0, 0.75);
    color: #ffb000;
    transform: translateY(-1px);
}

.nd-code-pad-btn:active {
    transform: translateY(0);
}

.nd-code-pad-btn--alt {
    color: #e8e8e8;
}

.nd-code-pad-btn--ok {
    background: rgba(255, 176, 0, 0.14);
    border-color: rgba(255, 176, 0, 0.75);
    color: #ffb000;
}

.nd-code-pad-btn--ok:hover {
    background: rgba(255, 176, 0, 0.22);
    color: #ffffff;
}

@media (max-width: 520px) {
    .nd-code-modal-window {
        max-width: calc(100vw - 24px);
    }

    .nd-code-box {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .nd-code-pad-btn {
        height: 42px;
        font-size: 17px;
    }

    .nd-code-modal-title {
        font-size: 24px;
    }
}

.nd-modal-body.is-loading-content {
  visibility: hidden;
  opacity: 0;
}

.nd-modal-body {
  opacity: 1;
  transition: opacity 0.18s ease;
}