:root {
  --sidebar-width: 292px;
  --app-bg: #f4f7fb;
  --panel: rgba(255,255,255,.88);
  --panel-solid: #ffffff;
  --border: rgba(15, 23, 42, .09);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, .11);
  --success-soft: rgba(22, 163, 74, .12);
  --warning-soft: rgba(245, 158, 11, .16);
  --danger-soft: rgba(220, 38, 38, .12);
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --radius: 18px;
}

* { text-rendering: optimizeLegibility; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.15), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(14,165,233,.13), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 42%, #eef3f8 100%);
  font-size: .95rem;
}

a { color: var(--primary-dark); }
a:hover { color: #1e40af; }

.app-shell { min-height: 100vh; display: flex; }
.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  background: rgba(255,255,255,.78);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 10px 0 40px rgba(15,23,42,.04);
}
.sidebar-inner { min-height: 100%; display: flex; flex-direction: column; }
.sidebar-scroll { flex: 1; }
.brand { font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
  box-shadow: 0 12px 28px rgba(37,99,235,.25);
}
.nav-section {
  color: var(--muted);
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  margin: .9rem .55rem .3rem;
  font-weight: 800;
}
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .66rem .82rem;
  border-radius: 14px;
  color: #182235;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sidebar-link::before {
  content: attr(data-icon);
  width: 1.35rem;
  text-align: center;
  opacity: .86;
}
.sidebar-link:hover { background: rgba(15,23,42,.055); color: #0f172a; transform: translateX(2px); }
.sidebar-link.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.sidebar-link.active::after {
  content: '';
  position: absolute;
  right: .55rem;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: var(--primary);
}

.sidebar-link-terminal {
  margin: .1rem 0 .45rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0891b2 100%);
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
.sidebar-link-terminal::before { opacity: 1; }
.sidebar-link-terminal:hover {
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 55%, #0e7490 100%);
  transform: translateX(2px);
}
.sidebar-link-terminal .sidebar-link-external {
  margin-left: auto;
  font-size: .82rem;
  opacity: .82;
}

.app-content { flex: 1; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.74);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.page-title { font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; }
.content-wrap { max-width: 1540px; }

.card {
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.card.p-3 { padding: 1.15rem !important; }
.card.p-4 { padding: 1.35rem !important; }
.kpi { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 850; letter-spacing: -.045em; }
.text-secondary { color: var(--muted) !important; }
.badge-soft { background: var(--primary-soft); color: var(--primary-dark); }

.btn { border-radius: 12px; font-weight: 700; }
.btn-sm { border-radius: 10px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
  border: 0;
  box-shadow: 0 12px 24px rgba(37,99,235,.18);
}
.btn-primary:hover { filter: brightness(.97); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark { background: rgba(255,255,255,.58); }
.form-control, .form-select {
  border-radius: 12px;
  border-color: rgba(15,23,42,.13);
  min-height: 42px;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 .22rem rgba(37,99,235,.12);
}
.form-label { color: #334155; font-weight: 700; font-size: .86rem; }

.table { --bs-table-bg: transparent; }
.table thead th {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .055em;
  border-bottom-color: rgba(15,23,42,.10);
  white-space: nowrap;
}
.table tbody td { border-color: rgba(15,23,42,.075); }
.table-hover tbody tr:hover > * { background: rgba(37,99,235,.045); }
.table-responsive { border-radius: 14px; }
.col-tight { width: 90px; min-width: 90px; }
.col-hours { width: 140px; min-width: 140px; }
.col-type { width: 120px; min-width: 120px; }

.alert { border: 0; border-radius: 16px; box-shadow: 0 10px 25px rgba(15,23,42,.06); }
.alert-warning { background: var(--warning-soft); color: #713f12; }
.alert-secondary { background: rgba(100,116,139,.12); color: #334155; }
.alert-danger { background: var(--danger-soft); color: #7f1d1d; }
.alert-success { background: var(--success-soft); color: #14532d; }

.mobile-menu-btn { display: none; }
.sidebar-backdrop { display: none; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.login-panel { width: min(100%, 520px); }
.login-hero {
  text-align: center;
  margin-bottom: 1rem;
}
.login-hero .brand-mark { width: 58px; height: 58px; font-size: 1.25rem; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15,23,42,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-menu-btn { display: inline-flex; }
  .topbar { padding-left: 1rem !important; padding-right: 1rem !important; }
  .container-fluid { padding: 1rem !important; }
}

@media print {
  .app-sidebar, .topbar, .no-print, .sidebar-backdrop { display: none !important; }
  body { background: #fff; }
  .container-fluid { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; background: #fff; }
}

/* Medewerkerkaart: overzichtelijke HR-indeling */
.employee-hero {
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.section-title {
  font-weight: 700;
  margin-bottom: .85rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  color: #1f2a44;
}
.employee-photo {
  width: 100%;
  max-width: 110px;
  border-radius: 10px;
  border: 1px solid #ddd;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.sticky-save {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
}
.action-buttons .btn {
  font-weight: 600;
}

/* Bootstrap modal fix: when a <form> wraps header/body/footer, Bootstrap's
   .modal-dialog-scrollable cannot see .modal-body as a direct child. Make the
   form the scroll container layout so long employee forms keep the footer visible. */
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bs-modal-margin) * 2);
  min-height: 0;
}
.modal-dialog-scrollable .modal-content > form .modal-header,
.modal-dialog-scrollable .modal-content > form .modal-footer {
  flex-shrink: 0;
}
.modal-dialog-scrollable .modal-content > form .modal-body {
  overflow-y: auto;
  min-height: 0;
}
@media (max-width: 575.98px) {
  .modal-dialog-scrollable .modal-content > form {
    max-height: calc(100vh - 1rem);
  }
}

/* Release menu v3: compacte, zakelijke accordeon-navigatie */
.sidebar-scroll {
  gap: .04rem !important;
  padding-bottom: .75rem;
}
.sidebar-link-top {
  margin: 0 0 .16rem;
}
.nav-group {
  margin: 0;
}
.nav-group > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > .nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 38px;
  padding: .42rem .66rem;
  margin: .04rem .08rem;
  border-radius: 11px;
  color: #475569;
  font-size: .72rem;
  letter-spacing: .055em;
  line-height: 1.1;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-group > .nav-section span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.nav-group > .nav-section span::before {
  content: attr(data-icon);
  width: 1.25rem;
  text-align: center;
  font-size: .95rem;
  letter-spacing: 0;
  opacity: .9;
}
.nav-group > .nav-section::after {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
  opacity: .65;
}
.nav-group > .nav-section:hover {
  background: rgba(15,23,42,.045);
  color: #0f172a;
}
.nav-group[open] {
  margin: .06rem 0 .16rem;
}
.nav-group[open] > .nav-section {
  background: rgba(15,23,42,.045);
  color: #334155;
  margin-bottom: .08rem;
}
.nav-group[open] > .nav-section::after {
  transform: rotate(90deg);
}
.nav-group .sidebar-link {
  margin: .02rem .08rem .02rem .56rem;
  padding: .52rem .66rem;
  border-radius: 11px;
}
.nav-group:not([open]) .sidebar-link {
  display: none;
}
.nav-group:has(.sidebar-link.active) > .nav-section {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.nav-group:has(.sidebar-link.active) > .nav-section::after {
  opacity: 1;
}
@media (max-width: 991.98px) {
  .nav-group > .nav-section { min-height: 42px; }
}

/* Coolflow Software rebranding / professional blue theme */
:root {
  --app-bg: #f5f7fa;
  --primary: #2f80ed;
  --primary-dark: #1e3a5f;
  --primary-soft: rgba(47, 128, 237, .12);
  --shadow: 0 18px 48px rgba(30, 58, 95, .10);
}
.brand-mark {
  background: linear-gradient(135deg, #1e3a5f 0%, #2f80ed 58%, #56ccf2 100%);
  box-shadow: 0 14px 30px rgba(30,58,95,.25);
}
.brand { color: #12233a; }
.topbar {
  background: rgba(255,255,255,.82);
}
.app-sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.82));
}
.card {
  border-color: rgba(30,58,95,.08);
}
.login-page-pro {
  place-items: stretch;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.login-shell {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  min-height: min(760px, calc(100vh - 5rem));
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 90px rgba(30,58,95,.18);
  border: 1px solid rgba(255,255,255,.72);
}
.login-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 4.2rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18,35,58,.94), rgba(30,58,95,.78)),
    radial-gradient(circle at 24% 22%, rgba(86,204,242,.42), transparent 17rem),
    linear-gradient(140deg, #1e3a5f 0%, #2f80ed 100%);
}
.login-showcase::before,
.login-showcase::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}
.login-showcase::before { width: 420px; height: 420px; right: -120px; top: -90px; }
.login-showcase::after { width: 260px; height: 260px; left: -80px; bottom: 70px; }
.login-showcase-content { max-width: 560px; }
.login-eyebrow {
  display: inline-flex;
  padding: .42rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 800;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 1rem;
}
.login-showcase h1 {
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: .93;
  letter-spacing: -.075em;
  font-weight: 900;
  margin: 0 0 1rem;
}
.login-showcase p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  max-width: 480px;
  margin-bottom: 1.4rem;
}
.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.login-points span {
  padding: .55rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
  font-size: .88rem;
}
.login-shell .login-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  background:
    radial-gradient(circle at top right, rgba(47,128,237,.12), transparent 18rem),
    #fff;
}
.login-card {
  box-shadow: 0 18px 42px rgba(30,58,95,.10);
  background: rgba(255,255,255,.96);
}
.login-card .form-control {
  min-height: 48px;
  border-radius: 14px;
}
.login-card .btn-primary {
  min-height: 48px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2f80ed 100%);
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-showcase { min-height: 300px; align-items: center; }
  .login-shell .login-panel { padding: 1.25rem; }
}

/* v2.10 - moderne navigatie en compacte klantcontext */
:root {
  --sidebar-width: 308px;
  --sidebar-surface: rgba(250, 252, 255, .96);
  --sidebar-line: rgba(30, 58, 95, .10);
  --nav-hover: rgba(30, 58, 95, .055);
  --nav-active: rgba(47, 128, 237, .12);
}

.app-sidebar {
  overflow: hidden;
  padding: 0 !important;
  background: var(--sidebar-surface);
  border-right: 1px solid var(--sidebar-line);
  box-shadow: 14px 0 38px rgba(30, 58, 95, .055);
}
.sidebar-inner {
  height: 100vh;
  min-height: 0;
  padding: 1rem .8rem .8rem;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: .72rem;
  min-height: 54px;
  padding: 0 .4rem .8rem;
}
.sidebar-brand-copy { min-width: 0; }
.sidebar-brand-copy .brand {
  font-size: 1rem;
  line-height: 1.15;
  white-space: nowrap;
}
.sidebar-version {
  margin-top: .22rem;
  color: #7b8a9e;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.sidebar-version span { margin: 0 .12rem; opacity: .65; }
.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: .92rem;
}

.tenant-context {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .58rem;
  margin: 0 .12rem .76rem;
  padding: .66rem .68rem;
  border: 1px solid rgba(47, 128, 237, .17);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 128, 237, .10), rgba(86, 204, 242, .07));
  box-shadow: 0 8px 22px rgba(30, 58, 95, .055);
}
.tenant-context-support {
  border-color: rgba(245, 158, 11, .28);
  background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .72));
}
.tenant-context-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #2f80ed);
  box-shadow: 0 7px 16px rgba(30, 58, 95, .16);
}
.tenant-context-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.tenant-context-copy span {
  color: #748398;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.tenant-context-copy strong {
  overflow: hidden;
  color: #18304d;
  font-size: .82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant-context-actions {
  display: flex;
  align-items: center;
  gap: .24rem;
}
.tenant-context-actions a,
.tenant-context-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #40536c;
  background: rgba(255, 255, 255, .76);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.tenant-context-actions a:hover,
.tenant-context-actions button:hover {
  color: var(--primary-dark);
  background: #fff;
  transform: translateY(-1px);
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  display: block !important;
  overflow-x: hidden;
  overflow-y: auto;
  padding: .08rem .15rem .75rem .02rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, .24) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, .22);
}
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }

.sidebar-link::before { content: none !important; display: none !important; }
.sidebar-link {
  min-width: 0;
  min-height: 40px;
  gap: .7rem;
  margin: .08rem 0;
  padding: .56rem .68rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #334155;
  font-size: .845rem;
  font-weight: 600;
  line-height: 1.2;
  transform: none;
}
.sidebar-link > i:first-child {
  flex: 0 0 19px;
  width: 19px;
  color: #718096;
  font-size: 1rem;
  text-align: center;
  transition: color .15s ease;
}
.sidebar-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-link:hover {
  color: #17263b;
  background: var(--nav-hover);
  border-color: rgba(30, 58, 95, .055);
  transform: none;
}
.sidebar-link:hover > i:first-child { color: #2f80ed; }
.sidebar-link.active {
  color: #17436f;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(47, 128, 237, .16), rgba(47, 128, 237, .075));
  border-color: rgba(47, 128, 237, .13);
  box-shadow: inset 3px 0 0 #2f80ed;
}
.sidebar-link.active > i:first-child { color: #1f6fd0; }
.sidebar-link.active::after { content: none; }
.sidebar-link-top {
  min-height: 43px;
  margin: 0 0 .42rem;
  padding: .64rem .72rem;
  font-weight: 750;
}
.sidebar-link-top > i:first-child { color: #2f80ed; }

.nav-quick-start {
  margin: 0 0 .48rem;
  padding: .52rem;
  border: 1px solid rgba(47, 128, 237, .12);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(47, 128, 237, .07), rgba(255, 255, 255, .76));
  box-shadow: 0 7px 20px rgba(30, 58, 95, .035);
}
.nav-quick-title {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin: 0 .12rem .44rem;
  color: #17436f;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.nav-quick-title i { color: #d97706; font-size: .78rem; }
.nav-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .34rem;
}
.nav-quick-link {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  padding: .42rem .28rem;
  border: 1px solid rgba(47, 128, 237, .1);
  border-radius: 10px;
  color: #294966;
  background: rgba(255, 255, 255, .78);
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.nav-quick-link i { color: #2f80ed; font-size: 1.05rem; }
.nav-quick-link span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-quick-link:hover {
  color: #17436f;
  border-color: rgba(47, 128, 237, .22);
  background: rgba(47, 128, 237, .1);
  transform: translateY(-1px);
}

.nav-group {
  margin: .16rem 0;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > .nav-section {
  min-height: 43px;
  margin: 0;
  padding: .49rem .6rem;
  border-radius: 12px;
  color: #4b5c72;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .005em;
  text-transform: none;
}
.nav-group > .nav-section span::before,
.nav-group > .nav-section::after { content: none !important; }
.nav-section-main {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: .66rem !important;
}
.nav-section-icon {
  flex: 0 0 29px;
  display: grid !important;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #52657c;
  background: rgba(100, 116, 139, .095);
}
.nav-section-icon i { font-size: .93rem; }
.nav-chevron {
  flex: 0 0 auto;
  color: #8a98aa;
  font-size: .72rem;
  transition: transform .18s ease, color .18s ease;
}
.nav-group > .nav-section:hover {
  color: #19304b;
  background: rgba(30, 58, 95, .045);
}
.nav-group[open] {
  margin: .18rem 0 .28rem;
  padding: .16rem;
  border-color: rgba(30, 58, 95, .075);
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 7px 20px rgba(30, 58, 95, .035);
}
.nav-group[open] > .nav-section {
  margin: 0;
  color: #213a58;
  background: rgba(30, 58, 95, .04);
}
.nav-group[open] .nav-chevron { transform: rotate(90deg); }
.nav-group:has(.sidebar-link.active) {
  border-color: rgba(47, 128, 237, .13);
  background: rgba(47, 128, 237, .035);
}
.nav-group:has(.sidebar-link.active) > .nav-section {
  color: #17436f;
  background: rgba(47, 128, 237, .09);
}
.nav-group:has(.sidebar-link.active) .nav-section-icon {
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #2f80ed);
  box-shadow: 0 6px 14px rgba(47, 128, 237, .17);
}
.nav-group-body {
  padding: .12rem .18rem .24rem;
}
.nav-group .sidebar-link {
  margin: .04rem 0;
  padding: .51rem .62rem;
  border-radius: 10px;
}
.nav-group:not([open]) .nav-group-body { display: none; }
.nav-group:not([open]) .sidebar-link { display: none; }
.nav-subheading {
  margin: .46rem .64rem .18rem;
  color: #8a98aa;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.nav-subheading:first-child { margin-top: .26rem; }
.nav-external {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8ca0b7;
  font-size: .72rem;
}
.nav-count {
  flex: 0 0 auto;
  min-width: 20px !important;
  margin-left: auto;
  padding: .16rem .38rem;
  border-radius: 999px;
  color: #7c4a03;
  background: #fef3c7;
  font-size: .67rem;
  font-weight: 900;
  text-align: center;
}
.nav-group-terminals[open] {
  border-color: rgba(47, 128, 237, .15);
  background: linear-gradient(180deg, rgba(47, 128, 237, .055), rgba(255, 255, 255, .72));
}
.sidebar-link-launch {
  border-color: rgba(47, 128, 237, .08);
  background: rgba(255, 255, 255, .67);
}
.sidebar-link-launch:hover {
  border-color: rgba(47, 128, 237, .17);
  background: rgba(47, 128, 237, .08);
}

.sidebar-user-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: .58rem;
  margin-top: .55rem;
  padding: .62rem .56rem;
  border-top: 1px solid rgba(30, 58, 95, .09);
}
.sidebar-user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #37516e;
  background: rgba(30, 58, 95, .08);
}
.sidebar-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-user-copy strong {
  overflow: hidden;
  color: #20344f;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-copy span {
  color: #8390a1;
  font-size: .68rem;
  text-transform: capitalize;
}
.sidebar-logout {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #7b8a9e;
  text-decoration: none;
}
.sidebar-logout:hover {
  color: #b42318;
  background: rgba(220, 38, 38, .08);
}

.topbar {
  min-height: 70px;
  padding-top: .78rem !important;
  padding-bottom: .78rem !important;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 rgba(30, 58, 95, .035);
}
.page-title { font-size: 1.03rem; }
.content-wrap { padding-top: 1.25rem !important; }

@media (max-width: 991.98px) {
  .app-sidebar { width: min(88vw, 318px); }
  .sidebar-inner { padding-top: .8rem; }
  .topbar { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-chevron,
  .sidebar-link,
  .nav-group,
  .nav-quick-link,
  .tenant-context-actions a,
  .tenant-context-actions button { transition: none !important; }
}
.nav-group.is-active-group {
  border-color: rgba(47, 128, 237, .13);
  background: rgba(47, 128, 237, .035);
}
.nav-group.is-active-group > .nav-section {
  color: #17436f;
  background: rgba(47, 128, 237, .09);
}
.nav-group.is-active-group .nav-section-icon {
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #2f80ed);
  box-shadow: 0 6px 14px rgba(47, 128, 237, .17);
}

/* FruitFlow compacte HTML-editor voor e-mailsjablonen */
.ff-html-editor {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--bs-body-bg, #fff);
}
.ff-html-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  padding: .55rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  background: rgba(248, 249, 250, .92);
}
.ff-editor-btn {
  min-width: 2rem;
  border-color: transparent;
}
.ff-editor-btn:hover,
.ff-editor-btn.active {
  border-color: var(--bs-primary, #0d6efd);
  color: var(--bs-primary, #0d6efd);
  background: #fff;
}
.ff-editor-separator {
  width: 1px;
  height: 1.7rem;
  margin: 0 .15rem;
  background: var(--bs-border-color, #dee2e6);
}
.ff-editor-block {
  width: 9.5rem;
}
.ff-editor-placeholder {
  width: min(15rem, 100%);
}
.ff-html-surface,
.ff-html-source {
  min-height: 18rem;
  width: 100%;
  padding: 1rem;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  resize: vertical;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  line-height: 1.55;
}
.ff-html-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, .18);
}
.ff-html-surface p:first-child,
.ff-html-surface h2:first-child,
.ff-html-surface h3:first-child,
.ff-html-surface h4:first-child {
  margin-top: 0;
}
.ff-html-surface p:last-child,
.ff-html-surface ul:last-child,
.ff-html-surface ol:last-child {
  margin-bottom: 0;
}
.ff-html-source {
  display: block;
  min-height: 18rem;
  font-family: var(--bs-font-monospace, monospace);
  white-space: pre;
}
.ff-translation-status {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.ff-translation-status .badge {
  font-weight: 600;
  padding: .45rem .6rem;
}
@media (max-width: 575.98px) {
  .ff-editor-separator { display: none; }
  .ff-editor-block,
  .ff-editor-placeholder { width: 100%; }
  .ff-html-surface,
  .ff-html-source { min-height: 15rem; }
}

.ff-html-source[hidden], .ff-html-surface[hidden] { display: none !important; }

/* Medewerkersoverzicht v2.21.8 */
.employee-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}
.employee-kpi-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 82px;
  padding: .9rem 1rem;
  border: 1px solid rgba(30, 58, 95, .08);
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(30, 58, 95, .045);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.employee-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 128, 237, .25);
  box-shadow: 0 11px 28px rgba(30, 58, 95, .08);
}
.employee-kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--bs-primary);
  background: rgba(13, 110, 253, .09);
  font-size: 1.05rem;
}
.employee-kpi-card small {
  display: block;
  color: var(--bs-secondary-color);
  font-size: .72rem;
  line-height: 1.15;
}
.employee-kpi-card strong {
  display: block;
  margin-top: .18rem;
  font-size: 1.35rem;
  line-height: 1;
}
.employee-secondary-status {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.employee-secondary-status a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(30, 58, 95, .09);
  border-radius: 999px;
  color: #496079;
  background: rgba(255, 255, 255, .72);
  font-size: .75rem;
  text-decoration: none;
}
.employee-secondary-status a:hover { color: var(--bs-primary); border-color: rgba(13, 110, 253, .24); }
.employee-secondary-status strong { color: #1f3652; }

.employee-filter-card .form-label {
  margin-bottom: .34rem;
  color: #53677d;
  font-size: .73rem;
  font-weight: 750;
}
.employee-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.employee-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .58rem;
  border-radius: 999px;
  color: #17436f;
  background: rgba(47, 128, 237, .09);
  font-size: .72rem;
  font-weight: 650;
  text-decoration: none;
}
.employee-filter-chip:hover { color: #0b5ed7; background: rgba(47, 128, 237, .14); }

.employee-overview-card { overflow: visible; }
.employee-overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(30, 58, 95, .07);
}
.employee-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(13, 110, 253, .12);
  background: rgba(13, 110, 253, .055);
}
.employee-bulk-bar[hidden] { display: none !important; }
.employee-overview-scroll { min-height: 90px; }
.employee-overview-table {
  --employee-select-width: 44px;
  --employee-name-width: 245px;
  min-width: max-content;
  font-size: .78rem;
}
.employee-overview-table > :not(caption) > * > * {
  padding: .67rem .66rem;
  border-color: rgba(30, 58, 95, .07);
  vertical-align: middle;
}
.employee-overview-table thead th {
  position: relative;
  z-index: 4;
  color: #566a80;
  background: #f8fafc;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.employee-overview-table thead th a { color: inherit; text-decoration: none; }
.employee-overview-table thead th a:hover { color: var(--bs-primary); }
.employee-overview-table tbody tr { cursor: pointer; transition: background .12s ease; }
.employee-overview-table tbody tr:hover > td { background: #f7fbff; }
.employee-overview-table tbody tr:focus-visible { outline: 2px solid rgba(13, 110, 253, .45); outline-offset: -2px; }
.employee-overview-table .employee-select-col {
  position: sticky;
  left: 0;
  z-index: 5;
  width: var(--employee-select-width);
  min-width: var(--employee-select-width);
  max-width: var(--employee-select-width);
  text-align: center;
  background: #fff;
}
.employee-overview-table thead .employee-select-col { z-index: 8; background: #f8fafc; }
.employee-overview-table .employee-name-col {
  position: sticky;
  left: var(--employee-select-width);
  z-index: 4;
  width: var(--employee-name-width);
  min-width: var(--employee-name-width);
  max-width: var(--employee-name-width);
  background: #fff;
  box-shadow: 8px 0 16px -16px rgba(30, 58, 95, .7);
}
.employee-overview-table thead .employee-name-col { z-index: 7; background: #f8fafc; }
.employee-overview-table tbody tr:hover .employee-select-col,
.employee-overview-table tbody tr:hover .employee-name-col { background: #f7fbff; }
.employee-overview-table .employee-status-col { min-width: 118px; }
.employee-overview-table .employee-actions-col {
  position: sticky;
  right: 0;
  z-index: 4;
  min-width: 238px;
  background: #fff;
  box-shadow: -8px 0 16px -16px rgba(30, 58, 95, .7);
}
.employee-overview-table thead .employee-actions-col { z-index: 7; background: #f8fafc; }
.employee-overview-table tbody tr:hover .employee-actions-col { background: #f7fbff; }
.employee-person {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.employee-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #1e4d7a;
  background: linear-gradient(145deg, rgba(47, 128, 237, .13), rgba(30, 58, 95, .07));
  font-size: .72rem;
  font-weight: 900;
}
.employee-person-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.employee-person-name {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  color: #172b43;
  font-size: .82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-person-meta {
  overflow: hidden;
  color: #8996a6;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-dossier-alert { flex: 0 0 auto; color: #d97706; }
.employee-dossier-alert .bi-exclamation-octagon-fill { color: #dc3545; }
.employee-file-status {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .26rem .5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.employee-file-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.employee-file-status.is-active { color: #157347; border-color: rgba(25, 135, 84, .18); background: rgba(25, 135, 84, .1); }
.employee-file-status.is-inactive { color: #6c757d; border-color: rgba(108, 117, 125, .18); background: rgba(108, 117, 125, .08); }
.employee-file-status:hover { filter: brightness(.97); }
.employee-cell-primary { display: block; max-width: 180px; color: #253b55; font-weight: 650; }
.employee-activity-text { display: block; max-width: 180px; color: #4c6076; line-height: 1.25; }
.employee-contact-cell { display: flex; max-width: 220px; flex-direction: column; gap: .18rem; }
.employee-contact-cell a {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  color: #405872;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-contact-cell a:hover { color: var(--bs-primary); }
.employee-arrangements { display: flex; flex-wrap: wrap; gap: .35rem; }
.employee-arrangements span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .22rem .42rem;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 750;
}
.employee-arrangements .is-on { color: #0b5ed7; background: rgba(13, 110, 253, .1); }
.employee-arrangements .is-off { color: #7c8998; background: #f1f3f5; }
.employee-season-select { min-width: 145px; }
.employee-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.employee-action-menu { min-width: 210px; }
.employee-action-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.employee-action-menu .dropdown-item i { width: 18px; color: #69809a; }
.employee-action-menu form { margin: 0; }
.employee-action-menu form .dropdown-item { width: 100%; border: 0; background: transparent; text-align: left; }
.employee-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: auto;
  border-radius: 16px;
  color: #6b8098;
  background: #f1f5f9;
  font-size: 1.3rem;
}
.employee-column-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .72rem;
  border: 1px solid rgba(30, 58, 95, .09);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.employee-column-option:hover { border-color: rgba(13, 110, 253, .25); background: #f8fbff; }
.employee-column-option span { font-size: .82rem; font-weight: 650; }

@media (max-width: 1399.98px) {
  .employee-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .employee-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-overview-toolbar,
  .employee-bulk-bar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 575.98px) {
  .employee-kpi-grid { grid-template-columns: 1fr; }
  .employee-kpi-card { min-height: 68px; }
  .employee-overview-table { --employee-name-width: 210px; }
  .employee-row-actions .btn-primary { padding-left: .45rem; padding-right: .45rem; }
  .employee-row-actions .btn-primary .bi { margin-right: 0 !important; }
  .employee-row-actions .btn-primary { font-size: 0; }
  .employee-row-actions .btn-primary .bi { font-size: .8rem; }
}
