* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f4f6fa; color: #17233c; font: 16px system-ui, sans-serif; }
header { background: #17233c; color: white; padding: 22px max(5vw, 18px); display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
header strong { font-size: 24px; } header span { color: #ffb078; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-actions a { color: white; }
.brand-header { background: #972622; align-items: center; padding-block: 10px; }
.header-brand { display: flex; gap: 16px; align-items: center; }
.header-brand img { width: 49px; height: 64px; object-fit: contain; }
.header-brand strong { font-size: 19px; }
.brand-header .header-actions button { background: #fff; color: #84201d; border-color: #fff; font-weight: 650; }
.wiki-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wiki-search { max-width: 460px; }
.wiki-layout { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.wiki-layout section > h2 { font-size: 18px; margin-top: 0; }
.wiki-links { display: grid; gap: 5px; margin-bottom: 15px; }
.wiki-links button { text-align: left; }
.wiki-links button[aria-pressed=true], #new { background: #213761; color: white; }
.wiki-article summary { font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.wiki-snippet { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; }
.wiki-article details[open] .wiki-snippet { display: none; }
#wiki-editor { width: min(660px, 94vw); border: 1px solid #cad4e4; border-radius: 12px; }
#wiki-editor form { border: 0; margin: 0; }
@media (max-width: 640px) { .wiki-layout { grid-template-columns: 1fr; gap: 8px; } }
main { max-width: 1160px; margin: auto; padding: 24px 18px; }
.admin-shell { display: grid; grid-template-columns: 215px minmax(0, 1fr); min-height: 100vh; max-width: none; padding: 0; background: #f2f5f7; }
.admin-navigation { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #12282c; color: #f3fbf9; }
.admin-brand { display: flex; align-items: center; gap: 11px; margin: 0 5px 29px; }
.admin-brand strong { font-size: 20px; letter-spacing: -.05em; }
.admin-brand small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #b8d1ce; }
.admin-mark { width: 37px; height: 37px; object-fit: contain; }
.admin-shell nav { display: grid; gap: 4px; padding: 0; border: 0; }
.admin-shell nav button { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; color: #d7e8e5; border-color: transparent; font-size: 15px; }
.admin-shell nav button > span { width: 20px; text-align: center; font-size: 17px; }
.admin-shell nav button[aria-current] { background: #ccece3; color: #153f39; font-weight: 700; }
.admin-account { margin-top: auto; display: grid; gap: 8px; padding: 14px 5px 0; border-top: 1px solid #3b5557; }
.admin-account a { color: #d7e8e5; font-size: 14px; }
.admin-account button { background: transparent; color: #f3fbf9; border-color: #78918e; font-size: 14px; text-align: left; }
.admin-main { min-width: 0; }
.admin-main #notice:empty { display: none; }
.admin-main #notice { margin: 0; padding: 8px 22px; background: #e2f2eb; color: #163f35; }
.admin-title, .admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-title { padding: 20px 24px; background: white; border-bottom: 1px solid #d5deeb; }
.admin-title h1 { font-size: 28px; margin: 0; letter-spacing: -.035em; }
.admin-primary { background: #176557; border-color: #176557; color: white; font-weight: 650; }
.admin-content { display: grid; grid-template-columns: minmax(0, 1fr) clamp(205px, 20vw, 290px); align-items: start; gap: 18px; padding: 22px; }
.admin-content-main { min-width: 0; }
.admin-overview { background: white; border: 1px solid #d5deeb; border-radius: 9px; padding: 16px; font-size: 14px; }
.admin-overview h2 { font-size: 16px; margin: 0 0 15px; }
.admin-overview dl { margin: 0; }
.admin-overview dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 9px 0; border-top: 1px solid #e8edf1; }
.admin-overview dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-overview a { color: #176557; display: inline-block; margin-top: 10px; }
.invoice-bulk { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e8edf1; }
.invoice-bulk button { display: block; width: 100%; margin-top: 8px; text-align: left; }
.invoice-bulk p { margin-bottom: 0; }
.admin-table td input[type=checkbox] { width: 16px; height: 16px; accent-color: #176557; }
.admin-list { border: 1px solid #d5deeb; border-radius: 9px; background: white; overflow: hidden; }
.admin-tools { padding: 12px; }
.admin-tools label { margin: 0 0 0 auto; flex: 0 1 225px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-filters button { display: flex; align-items: center; gap: 7px; padding: 6px 9px; font-size: 14px; }
.admin-filters button[aria-pressed=true] { border-color: #73ad9d; background: #e0f2ec; color: #124a40; }
.admin-filters strong { font-variant-numeric: tabular-nums; }
.admin-tools .order-view { display: flex; align-items: center; gap: 7px; flex: 0 1 auto; margin: 0; font-size: 14px; }
.admin-tools .order-view select { width: auto; }
.order-board-scroll { overflow-x: auto; background: #eaf0f2; border-top: 1px solid #d5deeb; }
.order-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 8px; padding: 8px; }
.order-lane { min-height: 340px; padding: 8px; border: 1px solid #d6e0e3; border-radius: 7px; background: #f4f7f7; }
.order-lane.is-drop-target { background: #d7eee6; border-color: #398575; }
.order-lane h2 { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 10px; font-size: 15px; }
.order-lane h2 span { color: #42625f; }
.order-tile { padding: 10px; margin-bottom: 8px; border: 1px solid #d6e0e3; border-radius: 6px; background: white; cursor: grab; }
.order-tile:active { cursor: grabbing; }
.order-tile h3 { font-size: 15px; margin: 3px 0; overflow-wrap: anywhere; }
.order-tile small, .order-tile p { color: #50617d; font-size: 13px; overflow-wrap: anywhere; }
.order-tile p { margin: 4px 0; }
.order-tile label { font-size: 13px; margin: 8px 0; }
.order-tile select, .order-tile button { font-size: 13px; padding: 4px 6px; }
.admin-list-footer { border-top: 1px solid #dbe3ef; padding: 8px 12px; color: #50617d; font-size: 14px; }
.admin-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-table-scroll { overflow: auto; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 610px; text-align: left; font-size: 14px; }
.admin-table th, .admin-table td { border-top: 1px solid #dbe3ef; padding: 11px 10px; vertical-align: middle; }
.admin-table th { background: #eef2f8; color: #344869; white-space: nowrap; }
.admin-table tbody tr:hover { background: #f4f7fc; }
.admin-table td:first-child { font-weight: 650; white-space: nowrap; }
.admin-table .admin-record-link { border: 0; padding: 2px 0; background: transparent; color: #176557; text-align: left; font-weight: 650; }
.admin-table .admin-record-link:hover { text-decoration: underline; box-shadow: none; }
.admin-table td small { display: block; color: #50617d; }
.admin-table summary { cursor: pointer; white-space: nowrap; }
.admin-table ul { margin: 6px 0; padding-left: 18px; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-row-actions button { padding: 4px 8px; white-space: nowrap; }
.admin-status { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #eaf0fa; color: #324c76; white-space: nowrap; }
.admin-status.positive { background: #e4f2e9; color: #20583b; }
.admin-empty { padding: 0 12px; color: #50617d; }
.admin-extra { margin-top: 14px; }
.admin-extra > form { max-width: 480px; }
#admin-editor > form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
#admin-editor > form > h2, #admin-editor > form > p, #admin-editor > form > button { grid-column: 1 / -1; }
#admin-editor > form > button { justify-self: start; }
.relation-contacts { grid-column: 1 / -1; margin: 8px 0 14px; }
.relation-contact { border: 1px solid #d5deeb; border-radius: 7px; margin: 0 0 10px; padding: 8px 12px; }
@media (max-width: 1120px) { .admin-content { grid-template-columns: minmax(0, 1fr); } .admin-overview { max-width: 500px; } }
@media (max-width: 720px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-navigation { position: static; height: auto; padding: 12px; }
  .admin-brand { margin: 0 0 8px; }
  .admin-shell nav, .admin-account { display: flex; flex-wrap: wrap; }
  .admin-account { align-items: center; margin-top: 8px; padding-top: 8px; }
  .admin-title, .admin-content { padding: 13px; }
}
nav, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
nav { border-bottom: 1px solid #d5deeb; padding-bottom: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #cad4e4; border-radius: 7px; background: white; color: inherit; padding: 8px 13px; }
button[aria-current], form > button { background: #213761; color: white; border-color: #213761; }
button:hover { box-shadow: 0 0 0 2px #cbd9ee; }
:focus-visible { outline: 3px solid #cc5500; outline-offset: 2px; }
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.card, form { background: white; border: 1px solid #dbe3ef; border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.card h2, form h2 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 8px 0; } .actions { margin-top: 12px; }
label { display: block; margin: 10px 0; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: 8px; border: 1px solid #9cacc6; border-radius: 6px; background: white; color: inherit; }
textarea { min-height: 85px; } #notice { color: #213761; }
.muted { color: #50617d; } .brief { white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-date { max-width: 190px; margin-top: 0; }
.sheet-scroll { overflow-x: auto; }
.timesheet { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.timesheet th, .timesheet td { padding: 10px 8px; border-bottom: 1px solid #dbe3ef; overflow-wrap: anywhere; }
.timesheet th:first-child { width: 95px; }
.timesheet th:nth-child(2) { width: 19%; }
.timesheet th:nth-child(3) { width: 26%; }
.entry-row { background: #edf3fa; }
.row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.row-actions button:disabled { opacity: .6; cursor: default; }
.entry-row #save { background: #213761; color: white; }
.employee { font-size: 14px; }
.employee h1 { font-size: 24px; }
.employee h2 { font-size: 16px; }
.employee .card, .employee form { padding: 12px; }
.employee button, .employee input, .employee select { padding: 6px 9px; }
.employee .timer-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 0; border: 0; }
.timer-form label { flex: 1 1 155px; margin: 0; }
.timer-list { list-style: none; margin: 0; padding: 0; }
.timer-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid #dbe3ef; padding: 8px 0; }
.timer-list li > div { flex: 1 1 200px; min-width: 0; }
.timer-list small { display: block; color: #50617d; overflow-wrap: anywhere; }
.timer-list output { font-variant-numeric: tabular-nums; }
.employee .timesheet td, .employee .timesheet th { padding: 6px; }
.day-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#presence { background: #fff1ed; border-color: #dbb2a7; color: #842e20; }
#presence[aria-pressed=true] { background: #e6f4eb; border-color: #93bea3; color: #145335; }
#recent-days { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; margin-bottom: 0; }
.employee dialog { width: min(390px, 92vw); border: 1px solid #cad4e4; border-radius: 12px; color: inherit; }
.employee dialog form { margin: 0; border: 0; }
.employee-roster { max-width: 1540px; }
.employee-tabs { margin-bottom: 14px; }
.employee .team-panel { padding: 16px; }
.roster-toolbar { background: transparent; color: inherit; padding: 0; align-items: center; }
.roster-toolbar h2 { font-size: 23px; margin: 0; }
.roster-toolbar p { margin: 5px 0; }
.roster-toolbar .day-actions { align-items: center; }
.roster-toolbar label { margin: 0; display: flex; align-items: center; gap: 6px; }
.roster-toolbar input[type=date] { width: auto; }
.roster-grid { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 8px; min-width: 1070px; }
.roster-day { border: 1px solid #dbe3ef; border-radius: 9px; background: white; padding: 10px; }
.roster-day.weekend { background: #e9edf4; }
.roster-day[aria-current=date] { background: #fff4d9; border-color: #e3b959; }
.roster-day h3 { font-size: 15px; margin: 0 0 3px; text-transform: capitalize; }
.roster-day ul { list-style: none; padding: 0; margin: 10px 0 0; }
.roster-person { display: flex; align-items: center; gap: 8px; min-height: 53px; border-top: 1px solid #dbe3ef; }
.roster-person strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.roster-status { display: block; font-size: 13px; margin-top: 2px; color: #355474; }
.roster-person[data-status="Vrij"], .roster-person[data-status="ATV"] {
  margin: 3px 0;
  padding: 4px 5px;
  border: 0;
  border-inline-start: 4px solid;
  border-radius: 5px;
}
.roster-person[data-status="Vrij"] { background: #ffe4df; border-inline-start-color: #b73e32; }
.roster-person[data-status="ATV"] { background: #eee2fa; border-inline-start-color: #76449f; }
.roster-status[data-status="Vrij"] { color: #85271e; font-weight: 700; }
.roster-status[data-status="ATV"] { color: #56317d; font-weight: 700; }
.roster-person[data-status="Ziek"] { background: #fff0cf; padding-inline: 5px; border-inline-start: 4px solid #aa631b; }
.roster-status[data-status="Ziek"] { color: #79430e; font-weight: 700; }
.roster-status[data-status="Gesloten"], .roster-closure { color: #4a3b69; font-weight: 700; }
.roster-closure { background: #eee8f6; padding: 5px; border-radius: 4px; overflow-wrap: anywhere; }
.roster-avatar { flex: 0 0 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: #d9e7fa; color: #1d416c; font-weight: 700; font-size: 12px; }
.roster-avatar[data-tone="1"] { background: #d8eee4; color: #235b45; }
.roster-avatar[data-tone="2"] { background: #efdef6; color: #633b75; }
.roster-avatar img { width: 33px; height: 33px; border-radius: inherit; object-fit: cover; }
.roster-avatar { font-size: 19px; }
.profile-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
#work-slip-dialog { width: min(810px, 94vw); max-height: 90vh; padding: 0; border: 1px solid #cad4e4; border-radius: 12px; }
#work-slip-dialog::backdrop { background: #17233c66; }
.work-slip-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; background: #f4f6fa; border-bottom: 1px solid #cad4e4; }
.work-slip-toolbar form { padding: 0; margin: 0; border: 0; background: transparent; }
#work-slip-preview { padding: clamp(14px, 5vw, 42px); overflow-wrap: anywhere; }
.work-slip-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid; }
.work-slip-header h1 { margin: 0; }
.work-slip-brand { display: flex; align-items: center; gap: 8px; }
.work-slip-brand img { width: 42px; height: 42px; }
.work-slip section { border: 1px solid #cad4e4; margin: 12px 0; padding: 12px; }
.work-slip-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.work-slip h2 { font-size: 17px; margin: 0 0 6px; }
.work-slip-notes > div > div { height: 27px; border-bottom: 1px solid #c0c6ce; }
@media (max-width: 720px) { .layout { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: white; color: black; }
  body > header, main, .admin-shell, #work-slip-dialog { display: none; }
  #paper:not([hidden]) { display: block; }
  #paper section { border: 1px solid #aaa; padding: 12px; margin: 10px 0; }
  .work-slip-header { display: flex; justify-content: space-between; align-items: center; gap: 12mm; border-bottom: 2px solid #222; padding-bottom: 4mm; }
  .work-slip-header h1 { font-size: 23pt; margin: 0 0 1mm; }
  .work-slip-header p { margin: 0; font-size: 12pt; }
  .work-slip-brand { display: flex; gap: 3mm; align-items: center; }
  .work-slip-brand img { width: 14mm; height: 14mm; }
  .work-slip { font-size: 10pt; line-height: 1.45; }
  #paper .work-slip section { padding: 3mm 4mm; margin: 4mm 0; border-color: #777; }
  .work-slip-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; overflow-wrap: anywhere; }
  .work-slip h2 { font-size: 12pt; margin: 0 0 1.5mm; }
  .work-slip .brief { margin: 0; }
  #paper .work-slip-notes { break-inside: avoid; }
  .work-slip-notes > div > div { height: 8mm; border-bottom: 1px solid #bbb; }
}
