/* Huisstijl JVD Direct Services (jvddirectservices.nl): rood #e41b1d, donkergrijs #333, Poppins. */
:root {
  --brand: #e41b1d;
  --brand-dark: #b5121a;
  --ink: #333;
  --text: #3d3d3d;
  --muted: #666;
  --bg: #f5f5f5;
  --line: #d9d9d9;
  --tint: #f0f0f0;
  --err: #b3261e;
  --font: Poppins, "Segoe UI", system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.page { max-width: 1200px; margin: 0 auto; padding: 1rem; }

/* Header: licht, zoals de website, met rode lijn onderaan (zoals in het logo). */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .5rem 1rem; background: #fff; color: var(--ink); border-bottom: 4px solid var(--brand); }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar .brand { display: flex; align-items: center; gap: .7rem; }
.topbar .brand img { display: block; height: 44px; width: auto; }
.topbar .brand span { font-weight: 600; font-size: 1.1rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .2rem .3rem; flex: 1; }
.topbar nav a { padding: .45rem .7rem; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.topbar nav a:hover { color: var(--brand); }
.topbar nav a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.topbar .user { display: flex; align-items: center; gap: .8rem; margin-left: auto; font-size: .9rem; color: var(--muted); }
.topbar form { margin: 0; }
button.link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
button.link:hover { color: var(--brand); }

/* Kaarten: donkere bovenrand zoals de tegels op de website. */
.card { background: #fff; border-radius: 0 0 6px 6px; border-top: 4px solid var(--ink); padding: 1.2rem 1.4rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.card.narrow { max-width: 420px; margin: 2rem auto; }
.login-logo { display: block; margin: 2rem auto 0; height: 72px; width: auto; }
body.login .card.narrow { margin-top: 1rem; }
body.login h1 { font-size: 1.25rem; text-align: center; }
label { display: block; margin: .8rem 0 .2rem; font-weight: 600; color: var(--ink); }
input[type=text], input[type=password], input[type=email] { width: 100%; padding: .7rem; font-size: 1rem; font-family: inherit; border: 1px solid #8c8c8c; border-radius: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(228, 27, 29, .35); outline-offset: 0; }
button.primary { margin-top: 1rem; width: 100%; padding: .8rem; font-size: 1rem; font-family: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--brand); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
button.primary:hover { background: var(--brand-dark); }
.error, .errorlist { color: var(--err); }
.messages { list-style: none; padding: 0; }
.messages li { background: #fff; border-left: 4px solid var(--ink); padding: .6rem .8rem; margin-bottom: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.messages li.error { background: #fdeceb; border-color: var(--err); }
.messages li.success { border-color: #2e7d32; }
/* Tablet layout: bigger touch targets. */
body.mobile button, body.mobile a.btn { min-height: 48px; }
body.mobile { font-size: 1.1rem; }
select, input[type=date], input[type=number], textarea { width: 100%; padding: .7rem; font-size: 1rem; border: 1px solid #8c8c8c; border-radius: 4px; background: #fff; font-family: inherit; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
table.list th { background: var(--tint); color: var(--ink); border-bottom: 2px solid var(--ink); }
table.list th a { text-decoration: none; color: inherit; }
table.list tr:hover td { background: #fbeaea; }
.toolbar { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin: 1rem 0; }
.toolbar input[type=text] { width: auto; min-width: 16rem; }
.btn, button.btn { display: inline-block; padding: .6rem 1rem; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .95rem; font-family: inherit; font-weight: 600; }
.btn:hover, button.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.danger { border-color: var(--err); color: var(--err); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.2rem; }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pager { margin: 1rem 0; display: flex; gap: 1rem; }
.bigbuttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.bigbuttons .btn { padding: 1.4rem; text-align: center; font-size: 1.1rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
tr.done td { color: var(--muted); background: #f3f8f3; }
form.toggle { margin: 0; }
.toggle-btn { min-width: 2rem; border: 1px solid #8c8c8c; border-radius: 4px; background: #fff; cursor: pointer; padding: .15rem .4rem; }
.toggle-btn.on { background: #dff0df; border-color: #4a9a4a; color: #1d6b1d; font-weight: 700; }
ul.results { list-style: none; margin: .3rem 0; padding: 0; }
ul.results li { padding: .1rem 0; }
button.link-btn { background: none; border: 0; padding: .3rem 0; color: var(--brand-dark); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
dl.card-info { display: grid; grid-template-columns: 11rem 1fr; gap: .2rem 1rem; background: var(--bg); padding: .8rem 1rem; border-radius: 4px; }
dl.card-info dt { font-weight: 600; color: var(--ink); }
dl.card-info dd { margin: 0; }
.pre { white-space: pre-wrap; }
.checks { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.checks label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0; }
.checks input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }
canvas.pad { width: 100%; max-width: 800px; height: auto; border: 2px dashed #8c8c8c; border-radius: 6px; background: #fff; touch-action: none; display: block; }
dl.totals { max-width: 26rem; margin-left: auto; margin-top: 1rem; }
ul.error { margin: .5rem 0; padding-left: 1.2rem; }
/* planning board */
.board-wrap { overflow-x: auto; }
table.board { border-collapse: collapse; width: 100%; min-width: 900px; background: #fff; table-layout: fixed; }
table.board th, table.board td { border: 1px solid var(--line); vertical-align: top; }
table.board thead th { background: var(--ink); color: #fff; padding: .4rem; font-size: .9rem; position: sticky; top: 0; z-index: 1; }
table.board thead th.today, td.cell.today { background: #fff6d6; }
table.board thead th.today { color: var(--ink); border-bottom: 3px solid var(--brand); }
table.board th.who { width: 9rem; text-align: left; background: var(--tint); color: var(--ink); padding: .4rem .5rem; position: sticky; left: 0; }
table.board th.who.unassigned { font-style: italic; color: var(--muted); }
span.total { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
table.board thead span.total { color: #ddd; }
table.board thead th.today span.total { color: var(--muted); }
td.cell { min-height: 4.5rem; height: 4.5rem; padding: .25rem; }
td.cell.over { outline: 3px solid var(--brand); outline-offset: -3px; background: #fdeaea; }
td.cell.full { box-shadow: inset 0 0 0 2px #e8a09a; }
.cell-head { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); }
a.plus { text-decoration: none; font-weight: 700; padding: 0 .35rem; border-radius: 4px; border: 1px solid #bbb; color: var(--brand-dark); }
a.plus:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.plus-demo { padding: 0 .35rem; border-radius: 4px; border: 1px solid #bbb; color: var(--brand-dark); font-weight: 700; }
.job-card { background: var(--tint); border: 1px solid #c8c8c8; border-left: 4px solid var(--ink); border-radius: 4px; padding: .25rem .35rem; margin-top: .25rem; font-size: .8rem; cursor: grab; }
.job-card.dragging { opacity: .4; }
.job-card.done { background: #eef6ee; border-color: #c4dcc4; border-left-color: #6aa66a; color: var(--muted); }
.job-card.next { border-left-color: var(--brand); }
.job-card .slot { font-weight: 700; }
.job-card .meta { color: var(--muted); font-size: .72rem; }
.job-card a { color: inherit; font-weight: 600; text-decoration: none; }
.job-card a:hover { text-decoration: underline; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #2e8b57; vertical-align: middle; }
.board-help { margin-bottom: 1rem; }
.board-search { margin-top: .6rem; }
.board-search input { max-width: 28rem; }
ul.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .5rem 0 0; }
li.chip { background: #fff; border: 1px solid var(--ink); border-radius: 999px; padding: .2rem .7rem; cursor: grab; font-size: .85rem; }
li.chip:hover { border-color: var(--brand); }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 4px; z-index: 10; }
.toast.error { background: var(--err); }
