/* B&S Teamruimte: rustige zwarte werkruimte met voelbare, lichte randen. */
:root {
  --bs-border: #626262;
  --portal-border: #777;
  --portal-muted: #c0c0c0;
  --portal-bevel: inset 0 1px 0 #ffffff1c, inset 0 -1px 0 #000c;
  --portal-shadow: 0 5px 0 #030303, 0 9px 18px #0009;
}

body { background: #000; }
button, a, input, select, textarea { touch-action: manipulation; }
button, .button, .back-link, input, select { min-height: 44px; }
button, .button, .card, .nav, .dropzone, .project-tile {
  transition: background-color .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }
button:disabled:active { transform: none; }
button:not(:disabled):active, .button:not(:disabled):active { transform: translateY(2px); }
p, .card-meta, .card-bottom, .sidebar-bottom small, .small-meta,
.tile-caption, .selection-hint, .stats div div > span { color: var(--portal-muted); }
.button.primary, .button.secondary, .button.danger,
.card, .nav, .tabs button, .icon-button, .dropzone {
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-bevel), 0 3px 8px #0009;
}
.button.primary { background: linear-gradient(#333, #202020); border-color: #b0b0b0; }
.button.secondary { background: linear-gradient(#1b1b1b, #0e0e0e); }
.button.danger { background: #202020; border-color: #aaa; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled),
.tabs button:hover:not(:disabled), .nav:hover:not(:disabled) {
  background: #303030;
  border-color: #eee;
  box-shadow: inset 0 1px 0 #ffffff30, 0 4px 10px #000a;
}
.nav { background: linear-gradient(#131313, #0c0c0c); margin-bottom: 8px; min-width: 0; }
.nav.active, .tabs button.selected {
  background: linear-gradient(#373737, #242424);
  border-color: #d7d7d7;
  box-shadow: inset 3px 0 0 #fff, var(--portal-bevel), 0 3px 8px #0009;
}
.nav.active { font-weight: 650; }
.nav > span:first-child { flex-shrink: 0; }
.tabs { flex-wrap: wrap; gap: 8px; }
.tabs button { background: #121212; padding-inline: 14px; }
.icon-button { min-width: 44px; padding: 5px 10px; background: #151515; }
.card { background: #101010; }
.card:hover { border-color: #e0e0e0; box-shadow: var(--portal-bevel), var(--portal-shadow); }
.dropzone { border-style: dashed; background: linear-gradient(#131313, #080808); }
.dropzone:hover, .dropzone.drag { border-color: #fff; background: #252525; }
.delete { min-width: 44px; min-height: 44px; }
.content, .stats > div { border-color: #666; box-shadow: var(--portal-bevel), 0 5px 16px #0008; }
.toolbar { border-color: #555; }
input, textarea, select, #search { border-color: #7b7b7b; }
input:hover, textarea:hover, select:hover { border-color: #bcbcbc; }
.sidebar { border-color: #626262; overflow-y: auto; }
.sidebar .current-employee {
  margin: 22px 0 4px;
  padding: 14px 12px;
  border: 1px solid #747474;
  border-radius: 10px;
  background: linear-gradient(125deg, #232323, #101010);
  box-shadow: var(--portal-bevel);
  min-width: 0;
}
.current-employee small { display: block; color: #bfbfbf; font-size: 11px; letter-spacing: .9px; text-transform: uppercase; margin-bottom: 6px; }
#active-name { display: block; font-size: 15px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.sidebar-bottom { margin-top: 24px; }

/* Startpagina */
.home-view { width: 100%; max-width: 1220px; margin: 0 auto; padding: 4px 0 10px; }
.home-top, .section-heading, .page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.home-top { height: auto; padding: 0 0 28px; border-bottom: 1px solid #575757; background: transparent; }
.home-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.home-brand img { width: 190px; height: auto; max-height: 86px; object-fit: contain; display: block; }
.home-brand span { font-size: 14px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; color: #ddd; line-height: 1.6; }
.home-hero { margin: 45px 0 36px; max-width: 720px; }
.home-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -1.5px; margin: 12px 0 14px; }
.home-hero p { font-size: 16px; line-height: 1.7; margin: 0; max-width: 610px; color: #c5c5c5; }
.home-hero .eyebrow { color: #bdbdbd; }
.section-heading { margin: 34px 0 17px; }
.section-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.25px; }
.section-heading p { font-size: 13px; margin: 4px 0 0; }
.section-heading .small-meta { font-size: 12px; }
.employee-grid, .shortcut-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.employee-tile, .shortcut-tile, .project-tile {
  position: relative;
  min-width: 0;
  border: 1px solid #909090;
  border-radius: 13px;
  background: linear-gradient(135deg, #212121 0%, #111 62%, #0d0d0d 100%);
  color: #fff;
  box-shadow: var(--portal-bevel), var(--portal-shadow);
  text-align: left;
}
.employee-tile, .shortcut-tile { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 23px; }
.employee-tile { min-height: 180px; padding-right: 45px; }
.employee-tile:hover:not(:disabled), .shortcut-tile:hover:not(:disabled), .project-tile:hover {
  background: linear-gradient(135deg, #313131, #171717);
  border-color: #f2f2f2;
  box-shadow: inset 0 1px 0 #ffffff38, 0 6px 0 #080808, 0 12px 24px #000b;
  transform: translateY(-3px);
}
.employee-tile:active:not(:disabled), .shortcut-tile:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--portal-bevel), 0 2px 0 #080808;
}
.initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 47px;
  height: 47px;
  margin-bottom: 20px;
  border: 1px solid #a9a9a9;
  border-radius: 12px;
  background: linear-gradient(#3c3c3c, #202020);
  box-shadow: inset 0 1px 0 #ffffff35, 0 3px 5px #0006;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .7px;
}
.tile-label { display: block; width: 100%; font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.3px; overflow-wrap: anywhere; }
.tile-caption { display: block; font-size: 13px; font-weight: 400; line-height: 1.6; margin-top: 6px; overflow-wrap: anywhere; }
.tile-arrow { position: absolute; right: 20px; bottom: 23px; color: #ededed; font-size: 24px; line-height: 1; }
.tile-arrow svg { display: block; width: 20px; height: 20px; }
.tile-add { border-style: dashed; background: #090909; justify-content: center; box-shadow: inset 0 1px 0 #ffffff0f, 0 4px 12px #0008; }
.tile-add .initials { background: #151515; border-color: #777; font-size: 27px; font-weight: 300; }
.tile-add .tile-label { font-size: 16px; color: #eee; }
.shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.shortcut-tile { min-height: 178px; padding: 21px; padding-right: 30px; border-color: #767676; }
.shortcut-tile .tile-label { font-size: 15px; letter-spacing: -.1px; }
.shortcut-tile .tile-caption { font-size: 12px; padding-right: 5px; }
.tile-icon { display: block; width: 26px; height: 26px; margin-bottom: 25px; color: #fff; flex-shrink: 0; }
.tile-icon svg { display: block; width: 100%; height: 100%; }
.shortcut-tile .tile-arrow { right: 15px; bottom: 18px; font-size: 18px; }
.empty-panel { grid-column: 1 / -1; padding: 28px; border: 1px dashed #777; border-radius: 12px; background: #0c0c0c; color: #c9c9c9; line-height: 1.65; }
.empty-panel p { margin: 6px 0 0; }
.start-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 38px; padding-top: 21px; border-top: 1px solid #555; font-size: 12px; color: #a7a7a7; line-height: 1.6; }

/* Geselecteerde werknemer en werkoverzichten */
.page-top { align-items: flex-start; margin-bottom: 25px; }
.page-top > :first-child { min-width: 0; }
.page-top h1 { overflow-wrap: anywhere; }
.page-top p { margin: 8px 0 0; font-size: 15px; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.profile-banner { display: flex; align-items: center; gap: 17px; padding: 20px 24px; margin: 0 0 24px; background: linear-gradient(120deg, #232323, #0c0c0c); border: 1px solid #808080; border-radius: 12px; box-shadow: var(--portal-bevel), 0 5px 12px #0008; }
.profile-banner .initials { margin: 0; }
.profile-banner > div { min-width: 0; }
.profile-banner strong, .profile-banner h2 { overflow-wrap: anywhere; line-height: 1.5; }
.profile-banner p { margin: 4px 0 0; font-size: 13px; }
.employee-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.employee-strip .button { font-size: 13px; }
.employee-strip .selected, .employee-strip [aria-pressed="true"] { border-color: #fff; background: #353535; box-shadow: inset 0 -2px 0 #fff; }
.selection-hint { font-size: 13px; line-height: 1.6; margin: 10px 0 20px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1px solid #777; border-radius: 7px; padding: 8px 13px; font-size: 13px; color: #e8e8e8; box-shadow: var(--portal-bevel); }
.back-link:hover { border-color: #fff; background: #252525; }
.small-meta { font-size: 12px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.project-tile { overflow: hidden; }
.project-open { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; width: 100%; min-height: 148px; text-align: left; color: #fff; border: 0; background: transparent; padding: 23px; }
.project-open .tile-icon { margin-bottom: 9px; }
.project-open strong { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; max-width: 100%; }
.project-open:focus-visible { outline-offset: -6px; border-radius: 12px; }
.project-open p { margin: 0; font-size: 13px; }
.project-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid #666; background: #0b0b0b; color: #c0c0c0; font-size: 12px; }
.project-tile-footer > :first-child { min-width: 0; overflow-wrap: anywhere; }
.project-tile-footer button { flex-shrink: 0; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.two-fields label { min-width: 0; }
.two-fields input, .two-fields select { width: 100%; min-width: 0; }

/* Brede tabellen blijven op een telefoon horizontaal toegankelijk. */
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #777; border-radius: 12px; background: #0d0d0d; box-shadow: var(--portal-bevel), 0 5px 16px #0008; scrollbar-color: #777 #161616; }
.data-table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.5; }
.data-table th { padding: 15px 18px; background: #242424; border-bottom: 1px solid #929292; color: #eee; font-size: 11px; font-weight: 650; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 16px 18px; border-bottom: 1px solid #464646; color: #ddd; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #1b1b1b; }
.data-table td:first-child { color: #fff; }
.data-table td strong { font-weight: 600; }
.data-table td .small-meta { display: block; margin-top: 4px; }
.data-table td .button, .data-table td .delete { white-space: nowrap; }
.data-table td:last-child { max-width: 400px; overflow-wrap: anywhere; }
.data-table td p { margin: 0; }
.log-kind, .tool-status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 9px; border: 1px solid #868686; border-radius: 5px; color: #eee; background: #202020; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tool-status::before { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.tool-status.available { background: #313131; border-color: #c2c2c2; color: #fff; }
.tool-status.issued { border-style: dashed; color: #d6d6d6; }
.tool-status.maintenance { background: #111; border-width: 2px; }

@media (min-width: 1500px) {
  .employee-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .employee-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-top { flex-direction: column; }
  .page-actions { justify-content: flex-start; }
  .home-brand { gap: 18px; }
  .home-brand img { width: 160px; }
  .home-brand span { font-size: 12px; }
}
@media (max-width: 700px) {
  .sidebar { overflow: visible; border-bottom: 1px solid #626262; }
  .sidebar nav { gap: 8px; padding: 4px 2px 8px; }
  .sidebar nav .nav { margin-bottom: 0; }
  .sidebar .current-employee { margin-top: 16px; padding: 10px 12px; }
  .home-view { padding-top: 0; }
  .home-top { gap: 14px; flex-wrap: wrap; padding-bottom: 22px; }
  .home-brand { gap: 15px; }
  .home-brand img { width: 133px; }
  .home-brand span { font-size: 11px; letter-spacing: .8px; max-width: 120px; }
  .home-top .small-meta { font-size: 11px; }
  .home-hero { margin: 31px 0 27px; }
  .home-hero h1 { letter-spacing: -1px; }
  .home-hero p { font-size: 14px; }
  .section-heading { gap: 12px; flex-wrap: wrap; margin: 27px 0 15px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .button { font-size: 12px; padding-inline: 11px; }
  .employee-grid, .shortcut-grid, .project-grid { gap: 13px; }
  .employee-tile { min-height: 171px; padding: 18px 27px 18px 17px; }
  .initials { width: 42px; height: 42px; border-radius: 10px; font-size: 15px; margin-bottom: 16px; }
  .tile-label { font-size: 16px; }
  .tile-caption { font-size: 12px; }
  .tile-arrow { right: 11px; bottom: 22px; font-size: 19px; }
  .shortcut-tile { padding: 18px 23px 18px 17px; min-height: 181px; }
  .shortcut-tile .tile-label { font-size: 14px; }
  .shortcut-tile .tile-caption { font-size: 12px; }
  .tile-icon { width: 25px; height: 25px; margin-bottom: 20px; }
  .page-top h1 { font-size: 29px; }
  .page-actions { width: 100%; gap: 8px; }
  .page-actions .button { flex: 1 1 auto; padding-inline: 12px; }
  .profile-banner { padding: 17px; gap: 14px; }
  .start-footer { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 29px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-open { min-height: 132px; padding: 21px; }
  .two-fields { grid-template-columns: 1fr; }
  .data-table td, .data-table th { padding-inline: 14px; }
  dialog { padding: 22px 18px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { flex: 1; }
}
@media (max-width: 380px) {
  .employee-grid { grid-template-columns: 1fr; }
  .employee-tile { min-height: 150px; }
  .shortcut-tile { padding: 17px 15px; }
  .shortcut-tile .tile-arrow { display: none; }
  .home-brand img { width: 114px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .card:hover, .employee-tile:hover:not(:disabled), .shortcut-tile:hover:not(:disabled),
  .project-tile:hover, button:not(:disabled):active, .button:not(:disabled):active { transform: none; }
}

/* The home page stands on its own, outside the workspace sidebar. */
.home-view { max-width: 1280px; padding: 34px 36px 28px; }
.home-view .employee-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#workspace-back { margin-bottom: 20px; }
#workspace-view .actions { flex-wrap: wrap; }
.current-employee > div:last-child { min-width: 0; }
.sidebar .current-employee { display: flex; }
.home-view .tile-caption, .home-view .section-heading .small-meta { font-size: 14px; }
.project-open .tile-icon { font-size: 28px; }
.table-wrap .empty-panel { margin: 0; border: 0; }
@media (max-width: 700px) {
 .home-view { padding: 22px 18px; }
 .home-view .employee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .home-brand span { font-size: 13px; max-width: 190px; }
 .home-top .local-label { display: none; }
 .home-view .employee-tile { padding-right: 22px; }
 .breadcrumb { min-width: 0; }
 .breadcrumb > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36vw; }
 #profile-label { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .home-view .shortcut-tile .tile-label { font-size: 15px; }
 .home-view .shortcut-tile .tile-caption { font-size: 13px; }
}
@media (max-width: 380px) { .home-view .employee-grid { grid-template-columns: 1fr; } }
