/* Federatie Workflow – design system. Calm, dense-enough, mobile-friendly. No build step. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1a1f29;
  --muted: #66707f;
  --line: #e2e6ec;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --accent-soft: #e7ecff;
  --danger: #d6336c;
  --danger-soft: #fde8ef;
  --ok: #2b9348;
  --ok-soft: #dcf5e4;
  --warn: #c77700;
  --warn-soft: #fff1d6;

  /* planning states */
  --st-available: #cdeed8;
  --st-available-line: #7fcf9b;
  --st-unavailable: #e6e8ec;
  --st-absent: #fbd9bd;
  --st-absent-line: #f0a35e;
  --st-unknown: transparent;
  --st-hold: #fff0b3;
  --st-hold-line: #e3b81f;
  --st-requested: #cfe0ff;
  --st-requested-line: #6c97f0;
  --st-confirmed: #3b5bdb;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(20 28 45 / 6%), 0 4px 14px rgb(20 28 45 / 6%);
  --shadow-lg: 0 12px 40px rgb(20 28 45 / 22%);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --sidebar: 232px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --surface: #1a1f28;
    --surface-2: #232933;
    --text: #e8ebf0;
    --muted: #94a0b2;
    --line: #2c3340;
    --accent: #7c97ff;
    --accent-ink: #0d1020;
    --accent-soft: #263055;
    --danger: #ff7aa8;
    --danger-soft: #3a1f2b;
    --ok: #5fd382;
    --ok-soft: #1c3526;
    --warn: #f2b34c;
    --warn-soft: #3a2f16;
    --st-available: #1f4a30;
    --st-available-line: #3c8d5b;
    --st-unavailable: #2b313c;
    --st-absent: #5a3a1c;
    --st-absent-line: #b9762f;
    --st-hold: #5c4d12;
    --st-hold-line: #c9a017;
    --st-requested: #243b73;
    --st-requested-line: #5b82da;
    --st-confirmed: #5876f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 25%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 1.5rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 0 0 .5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.nav-group { margin: 14px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: none; align-items: center; justify-content: space-between; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.page { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.menu-btn { display: none; }
.menu-btn svg { width: 24px; height: 24px; flex: none; }
.menu-btn { min-width: 44px; min-height: 44px; padding: 0 10px; color: var(--text); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / 35%); z-index: 30; }
  .topbar { display: flex; }
  .menu-btn { display: inline-flex; }
  .page { padding: 16px 16px 40px; }
}

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; min-height: 38px; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: .85rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=search], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; min-height: 40px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
select[multiple] { min-height: 120px; }
.error { color: var(--danger); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-select label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .88rem; background: var(--surface); }
.chip-select input { accent-color: var(--accent); }
.chip-select label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=search], .filters select { width: auto; min-width: 150px; }

/* ---------- tables & lists ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }

/* ---------- badges / avatar ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--accent-soft); color: var(--accent); flex: none; }
.avatar.freelancer { background: var(--warn-soft); color: var(--warn); }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }

/* ---------- flash / toast ---------- */
.flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.flash-success { border-left: 4px solid var(--ok); }
.flash-danger { border-left: 4px solid var(--danger); }
.flash-info { border-left: 4px solid var(--accent); }
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgb(10 14 22 / 40%); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .18s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); z-index: 70;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column;
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
.drawer-close { font-size: 1.4rem; line-height: 1; padding: 4px 10px; }
.section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.section-title:first-child { margin-top: 0; }
.override { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius-sm); padding: 12px; margin-top: 10px; }
.override ul { margin: 0 0 8px 18px; padding: 0; }

/* ---------- state pills (shared) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid transparent; }
.pill.available { background: var(--st-available); border-color: var(--st-available-line); }
.pill.unavailable { background: var(--st-unavailable); }
.pill.absent { background: var(--st-absent); border-color: var(--st-absent-line); }
.pill.unknown { border: 1px dashed var(--line); color: var(--muted); }
.pill.hold { background: var(--st-hold); border: 1px dashed var(--st-hold-line); }
.pill.requested { background: var(--st-requested); border: 1px dashed var(--st-requested-line); }
.pill.confirmed { background: var(--st-confirmed); color: #fff; }
.pill.declined, .pill.withdrawn, .pill.replaced, .pill.expired, .pill.closed { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }

/* ---------- planning board ---------- */
.board-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.board-toolbar .spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 12px; color: var(--text); font-weight: 600; font-size: .88rem; }
.seg a.active { background: var(--accent-soft); color: var(--accent); }
.seg a:hover { text-decoration: none; background: var(--surface-2); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; border: 1px solid transparent; }

.board-scroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: calc(100vh - 230px); }
table.board { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.board th, .board td { padding: 0; }
.board thead th {
  position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; padding: 6px 0; min-width: 46px;
}
.board thead th.today { color: var(--accent); background: var(--accent-soft); }
.board thead th.weekend, .board td.weekend { background-image: linear-gradient(rgb(128 128 128 / 7%), rgb(128 128 128 / 7%)); }
.board thead th b { display: block; font-size: .95rem; color: var(--text); }
.board thead th.today b { color: var(--accent); }
.board .who {
  position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 190px; max-width: 190px;
  padding: 6px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left;
}
.board thead th.who { z-index: 4; background: var(--surface-2); text-align: left; }
.board .who a { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: .88rem; }
.board .who a:hover { text-decoration: none; color: var(--accent); }
.board .who .avatar { width: 26px; height: 26px; font-size: .68rem; }
.board tr.group td { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 12px; position: sticky; left: 0; }
.board td.day { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 3px; vertical-align: middle; }
.board td.day.holiday { background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgb(128 128 128 / 14%) 5px 10px); }
.board td.day.today { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); }
.cell-stack { display: grid; gap: 2px; }
.seg-btn {
  height: 15px; border-radius: 4px; border: 1px solid transparent; padding: 0; cursor: pointer; width: 100%;
  font-size: .6rem; line-height: 13px; font-weight: 700; color: rgb(0 0 0 / 55%); background: var(--st-unknown);
  border-color: rgb(128 128 128 / 22%); border-style: dotted;
}
.seg-btn:hover { outline: 2px solid var(--accent); outline-offset: 0; z-index: 1; position: relative; }
.seg-btn.available { background: var(--st-available); border: 1px solid var(--st-available-line); }
.seg-btn.unavailable { background: var(--st-unavailable); border: 1px solid transparent; background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgb(128 128 128 / 22%) 3px 4px); }
.seg-btn.absent { background: var(--st-absent); border: 1px solid var(--st-absent-line); }
.seg-btn.hold { background: var(--st-hold); border: 1px dashed var(--st-hold-line); color: var(--text); }
.seg-btn.requested { background: var(--st-requested); border: 1px dashed var(--st-requested-line); color: var(--text); }
.seg-btn.confirmed { background: var(--st-confirmed); border: 1px solid var(--st-confirmed); color: #fff; }
.seg-btn.multi::after { content: "+"; }
.legend .l-available { background: var(--st-available); border-color: var(--st-available-line); }
.legend .l-unavailable { background: var(--st-unavailable); }
.legend .l-absent { background: var(--st-absent); border-color: var(--st-absent-line); }
.legend .l-hold { background: var(--st-hold); border: 1px dashed var(--st-hold-line); }
.legend .l-requested { background: var(--st-requested); border: 1px dashed var(--st-requested-line); }
.legend .l-confirmed { background: var(--st-confirmed); }

/* ---------- availability editor ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; }
.cal .day {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  min-height: 74px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit;
}
.cal .day:hover { border-color: var(--accent); }
.cal .day.out { visibility: hidden; }
.cal .day.weekend { background: var(--surface-2); }
.cal .day.holiday { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgb(128 128 128 / 14%) 6px 12px); }
.cal .day.today .num { background: var(--accent); color: var(--accent-ink); }
.cal .day.selected { outline: 2px solid var(--accent); }
.cal .num { font-size: .8rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cal .bars { display: grid; gap: 2px; margin-top: auto; }
.cal .bar { height: 10px; border-radius: 3px; border: 1px dotted rgb(128 128 128 / 40%); }
.cal .bar.available { background: var(--st-available); border: 1px solid var(--st-available-line); }
.cal .bar.unavailable { background: var(--st-unavailable); border: 1px solid transparent; }
.cal .bar.absent { background: var(--st-absent); border: 1px solid var(--st-absent-line); }
.cal .bar.booked { background: var(--st-confirmed); border: 1px solid var(--st-confirmed); }
.cal .bar.requested { background: var(--st-requested); border: 1px dashed var(--st-requested-line); }
.cal .bar.hold { background: var(--st-hold); border: 1px dashed var(--st-hold-line); }
.cal .hname { font-size: .62rem; color: var(--muted); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.opt-group { display: flex; gap: 4px; flex-wrap: wrap; }
.opt-group button { flex: 1; min-width: 70px; padding: 8px 6px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; color: var(--text); }
.opt-group button.on.available { background: var(--st-available); border-color: var(--st-available-line); }
.opt-group button.on.unavailable { background: var(--st-unavailable); border-color: var(--muted); }
.opt-group button.on.absent { background: var(--st-absent); border-color: var(--st-absent-line); }
.opt-group button.on.clear { background: var(--surface-2); border-color: var(--muted); }
.pattern-grid { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 4px; align-items: center; }
.pattern-grid .p-cell { height: 34px; border-radius: var(--radius-sm); border: 1px dotted var(--line); background: var(--surface); cursor: pointer; font-size: .75rem; color: var(--muted); }
.pattern-grid .p-cell.available { background: var(--st-available); border: 1px solid var(--st-available-line); color: var(--text); }
.pattern-grid .p-cell.unavailable { background: var(--st-unavailable); border: 1px solid transparent; color: var(--text); }
.pattern-grid .dow { text-align: center; font-size: .72rem; color: var(--muted); }
.mode-note { background: var(--accent-soft); color: var(--accent); padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; margin-bottom: 10px; }

/* ---------- candidates ---------- */
.cand { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cand:last-child { border-bottom: 0; }
.cand.dim { opacity: .55; }
.cand .grow { flex: 1; min-width: 0; }
.cand .why { color: var(--muted); font-size: .8rem; }
.cand .why.bad { color: var(--danger); }

/* ---------- auth + portal ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-card .brand { justify-content: center; padding-bottom: 18px; }
.auth-card.wide { width: min(640px, 100%); }
.lang-switch { text-align: center; margin-top: 14px; font-size: .85rem; }
.portal { max-width: 640px; margin: 0 auto; padding: 16px 16px 90px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 16px; }
.tiles { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); font-weight: 700; font-size: 1.05rem; }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.tile svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.tile .count { margin-left: auto; }
@media (max-width: 560px) { .cal .day { min-height: 62px; padding: 4px; } .cal { gap: 4px; } .hname { display: none; } }
/* On phones the day sheet is a bottom sheet so it is always in view. */
@media (max-width: 700px) {
  #avail-root [data-sheet] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; border-radius: 16px 16px 0 0;
    max-height: 72vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding-bottom: 28px;
  }
  #avail-root [data-sheet].hidden { display: none !important; }
  #avail-root .sheet-row { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
  #avail-root .sheet-row strong { font-size: .8rem; color: var(--muted); }
  #avail-root .opt-group { flex-wrap: nowrap; }
  #avail-root .opt-group button { min-width: 0; padding: 10px 2px; font-size: .78rem; }
  #avail-root { padding-bottom: 40px; }
}

.company-switch { padding: 0 10px 12px; display: grid; gap: 4px; }
.company-switch select { padding: 6px 8px; min-height: 34px; }

/* aanvragen in het zzp-portaal */
.request-form { margin-top: 10px; display: grid; gap: 8px; }
.request-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.big { padding: 14px 10px; font-size: 1rem; }
.request-form input[type=text] { width: 100%; }

/* kandidatenpaneel: uitzetten naar meerdere */
.offer-bar { position: sticky; bottom: 0; display: grid; gap: 6px; padding: 10px 0; background: var(--surface); border-top: 1px solid var(--line); }
.offer-bar input { width: 100%; }
