:root {
  --navy: #0F2242;
  --ink: #3E3E3E;
  --secondary: #536679;
  --line: #dce3e9;
  --surface: #f4f6fa;
  --blue: #144B9B;
  --pale-blue: #EBEEF6;
  --mint: #144B9B;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 "Inter", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--surface); }
body.admin { font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .admin .folder, .admin .quiet, .worker .cta { min-height: 40px; }
button, .admin .folder { cursor: pointer; background: white; border: 1px solid #c8d3df; border-radius: 7px; padding: 8px 14px; font-weight: 600; }
button:hover, .folder:hover { background: #f2f6fa; border-color: #9eb0c1; }
button:disabled { cursor: default; opacity: .64; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #3993f5; outline-offset: 2px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.16; }
h1 { font-size: clamp(1.85rem,3.1vw,2.75rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.13rem,1.5vw,1.4rem); letter-spacing: -.035em; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: 10px 11px; min-width: 0; border: 1px solid #bdcad7; border-radius: 7px; background: white; }
select { appearance: none; padding-right: 35px; background: linear-gradient(45deg,transparent 50%,#536679 50%) calc(100% - 15px) center/6px 6px no-repeat,linear-gradient(135deg,#536679 50%,transparent 50%) calc(100% - 10px) center/6px 6px no-repeat,white; }
textarea { resize: vertical; }
label { display: block; margin: 10px 0; font-size: .9rem; font-weight: 550; }
label input:not([type=checkbox]), label select, label textarea { display: block; margin-top: 4px; font-weight: 400; }
input[type=checkbox],progress { accent-color: var(--blue); }
small,.sectionnote,.empty,.muted { color: var(--secondary); }
.empty { margin: 12px 0 0; padding: 10px 0; }
.sectionnote { margin: 5px 0 0; font-size: .875rem; }
.primary, .worker .cta, .worker form button:not(.quiet) { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover,.worker .cta:hover,.worker form button:hover { color: white; background: #064b9f; border-color: #064b9f; }
.sidebar { display: flex; flex-direction: column; width: 216px; position: fixed; inset: 0 auto 0 0; padding: 34px 16px 20px; color: #edf3fb; background: var(--navy); z-index: 4; }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; width: max-content; line-height: 1; color: white; text-decoration: none; }
.sidebar .wordmark { margin: 0 12px 39px; }
.wordmark b { font-family: "Archivo Black","Arial Black",Arial,sans-serif; font-size: 2.85rem; font-weight: 900; letter-spacing: -.1em; transform: skewX(-7deg); padding-right: 5px; }
.wordmark span { font-size: .71rem; text-transform: uppercase; letter-spacing: .085em; font-weight: 700; margin-top: 5px; }
.navgroup { display: grid; gap: 4px; }
.nav { display: flex; align-items: center; gap: 13px; padding: 12px 13px; min-height: 43px; color: #bfccda; text-decoration: none; border-radius: 7px; font-weight: 550; }
.nav:hover { background: #203a55; color: white; }
.nav.on { color: white; background: #144B9B; }
.nav.on svg { color: #9dceff; }
.profile { display: flex; margin-top: auto; align-items: center; gap: 11px; border-top: 1px solid #345069; padding: 20px 7px 0; }
.profile strong,.profile small,.filelink small { display: block; }
.profile small { color: #bacbdc; font-size: .8rem; }
.avatar { display: grid; place-items: center; font-weight: 700; background: #304d6c; color: #ebf5ff; width: 37px; height: 37px; border-radius: 9px; }
.admin main { margin-left: 216px; width: auto; max-width: none; padding: 0 clamp(22px,3.25vw,65px) 50px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; border-bottom: 1px solid #d8e1e9; color: var(--secondary); }
.barbrand { font-size: .84rem; }
.barbrand strong { color: #3e5267; font-weight: 650; }
.crumb { color: #8a9bad; margin: 0 7px; }
.top-actions, .tools, .row { display: flex; align-items: center; gap: 8px; }
.top-actions form { margin: 0; }
.quiet, .top-actions .quiet { display: inline-flex; align-items: center; justify-content: center; background: transparent; padding: 6px 10px; font-size: .85rem; text-decoration: none; color: #42576c; font-weight: 600; border: 0; border-radius: 6px; }
.quiet:hover,.textlink:hover,.link:hover { color: var(--blue); background: var(--pale-blue); }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 30px 0 22px; }
.pagehead h1 { margin: 0; max-width: 24ch; }
.pagehead .tools, .row .tools { flex-wrap: wrap; }
.eyebrow { display: inline-block; color: var(--secondary); font-size: .85rem; margin-bottom: 5px; }
.eyebrow::first-letter { text-transform: uppercase; }
.back { display: inline-block; margin-bottom: 8px; font-size: .88rem; text-decoration: none; }
.projectmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; font-size: .90rem; color: var(--secondary); }
.projectmeta b { font: 600 .86rem ui-monospace,SFMono-Regular,Consolas,monospace; color: #355270; }
.row { justify-content: space-between; }
.row h2 { margin: 0; }
.metrics { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 13px; margin-bottom: 20px; }
.card,.admin section { background: white; border: 1px solid var(--line); border-radius: 12px; }
.card { position: relative; overflow: hidden; padding: 17px 18px 18px; min-height: 126px; }
.metriclabel { display: block; font-size: .9rem; font-weight: 600; }
.card strong { display: block; margin: 12px 0 5px; font-size: clamp(1.65rem,2.25vw,2.5rem); line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.card small { display: block; font-size: .79rem; }
.card.hero { color: white; background: #16395e; border-color: #16395e; }
.card.hero::after { content: ''; position: absolute; right: -43px; bottom: -72px; height: 140px; width: 140px; pointer-events: none; border: 1px solid #487bb1; border-radius: 22px; transform: rotate(35deg); box-shadow: 0 0 0 9px #16395e,0 0 0 10px #3d6891,0 0 0 19px #16395e,0 0 0 20px #365c80; }
.card.hero small { color: #ccdef1; }
.card>* { position: relative; z-index: 1; }
.admin section { padding: clamp(16px,1.7vw,25px); margin: 0 0 16px; }
.textlink,.link { font-weight: 600; color: var(--blue); text-decoration: none; background: transparent; border: 0; padding: 5px 3px; font-size: .87rem; }
.scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 14px; font-size: .89rem; }
th { font-size: .78rem; font-weight: 650; color: #52677e; background: #f4f7fa; }
td,th { padding: 11px 9px; white-space: nowrap; border-bottom: 1px solid #e2e8ee; }
tbody tr:last-child td { border-bottom: 0; }
.projects th, .projects td { padding: 12px 10px; font-variant-numeric: tabular-nums; }
.projects td:first-child { min-width: 170px; max-width: 370px; white-space: normal; }
.projects td:first-child small,.budget small,.taskrow small { display: block; margin-top: 3px; }
.projects tr:hover td { background: #f8fafd; }
.projectname { color: var(--ink); font-weight: 680; text-decoration: none; }
.projectname:hover { text-decoration: underline; color: var(--blue); }
.pill,.count { display: inline-block; padding: 3px 9px; font-size: .78rem; font-weight: 650; border-radius: 12px; color: #41566b; background: #e9eff5; }
.pill[data-status=Actief] { background: #e7f1fc; color: #185994; }
.pill[data-status=Afgerond] { background: #e4f3ed; color: #23634c; }
.pill[data-status=Backlog] { background: #fcf1d9; color: #725416; }
.budget { font-variant-numeric: tabular-nums; }
.budget progress { display: block; width: 80px; height: 5px; margin-top: 4px; }
.budget small { font-size: .73rem; }
.dashgrid,.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.sideitem,.filelink { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e3e9ee; }
.sideitem:last-child,.filelink:last-of-type { border-bottom: 0; }
.taskrow label { display: flex; align-items: center; gap: 11px; margin: 0; font-weight: 400; cursor: pointer; }
.taskrow label b { font-weight: 600; }
.taskrow input:checked+span b { color: var(--secondary); text-decoration: line-through; }
.task { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.taskrow a { white-space: nowrap; }
.weekvalue { margin: 16px 0 5px; font-size: 1.55rem; font-weight: 700; }
.weekvalue small { font-size: .8rem; font-weight: 500; margin-left: 5px; }
.week { display: flex; gap: 7px; align-items: flex-end; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .76rem; color: var(--secondary); }
.day i { display: block; width: 100%; max-width: 34px; background: #3a7bc3; border-radius: 3px 3px 0 0; margin: 4px 0; }
.details,.projecttotal { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 30px; }
.projectfield { flex: 1; min-width: 125px; }
.projectfield small,.projecttotal small { display: block; }
.projecttotal { justify-content: space-between; }
.projecttotal strong { font-size: 1.25rem; }
.filelink a { word-break: break-word; }
.filelink>label { max-width: 125px; font-size: .78rem; font-weight: 400; }
.upload { margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.upload summary { cursor: pointer; width: max-content; color: var(--blue); font-weight: 600; font-size: .9rem; padding: 6px 0; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filters label { min-width: 160px; flex: 1; margin-top: 0; }
.filters label:first-child { flex: 2; }
.row>select,.row>input[type=date] { width: auto; }
.invoicefooter { display: flex; justify-content: flex-end; margin-top: 14px; }
.notice { border-left: 3px solid #2b8466; padding: 13px 15px; color: #194a38; background: #e7f5ed; border-radius: 6px; }
dialog { width: min(570px,94vw); max-height: 87dvh; padding: 22px; color: var(--ink); border: 1px solid #b8c9d8; border-radius: 12px; box-shadow: 0 20px 90px #132a4140; }
dialog::backdrop { background: #12233888; }
dialog .close { border: 0; min-width: 40px; padding: 0; font-size: 1.5rem; }
dialog form>button { margin-top: 8px; }
.entry { display: grid; grid-template-columns: 2fr 2fr .85fr; gap: 6px; margin: 9px 0; }
.invline { display: grid; grid-template-columns: minmax(100px,1fr) minmax(90px,130px) auto; align-items: end; gap: 7px; margin-top: 8px; }
.invline label { margin: 0; }
.sample { padding: 14px; background: var(--pale-blue); border: 1px solid #c9ddf3; border-radius: 8px; margin: 16px 0; }
.sample small { display: block; }
.sample .tools { flex-wrap: wrap; margin-top: 9px; }
.sample a { padding: 6px; font-size: .86rem; }
.dock a { font-size: .78rem; color: #42596e; }
.dock a.current { background: var(--pale-blue); color: #125aab; }
.dock svg { display: block; }
.worker .item { min-height: 50px; }
.clockval { color: var(--navy); }
@media(min-width:1600px) { .admin main { max-width: 1620px; margin-right: auto; } }
@media(max-width:1150px) and (min-width:1025px) { .sidebar { width: 180px; } .admin main { margin-left: 180px; padding-left: 20px; padding-right: 20px; } .card { padding: 14px; } }
@media(max-width:1024px) {
  .admin .sidebar { display: none; }
  body.admin main { margin: 0; padding: 0 clamp(14px,3vw,28px) 95px; }
  body.admin .bar { min-height: 56px; }
  body.admin .adminDock { display: flex; }
  .pagehead { margin-top: 22px; }
}
@media(max-width:720px) {
  .pagehead,.row { flex-wrap: wrap; }
  .dashgrid,.split { display: block; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .card { min-height: 105px; padding: 13px; }
  .card strong { margin-top: 8px; }
  .admin section { padding: 15px; }
  .details { display: grid; grid-template-columns: 1fr 1fr; }
  .adminDock a { font-size: .65rem; }
  .top-actions .quiet { padding: 4px 5px; }
  .projects td:first-child { min-width: 125px; }
  .filelink { align-items: flex-start; }
  .projectfield { min-width: 0; }
  .barbrand { font-size: .78rem; }
  .barbrand .crumb,.barbrand strong { display: none; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; } }

/* GVL planning and project navigation */
.admin .sidebar .wordmark { width: calc(100% - 14px); margin: 0 7px 32px; padding: 12px 11px; background: #fff; border-radius: 6px; }
.wordmark img { width: 100%; height: auto; display: block; object-fit: contain; }
.admin h1,.admin h2,.projectname { color: var(--navy); }
.mobilelogo { display: none; }
.stagechip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 5px; color: #656b72; background: #f1f2f3; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.stagechip.known { color: var(--blue); background: var(--pale-blue); }
.projecttabs { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid #d0d9e5; margin: 0 0 20px; }
.projecttabs a { display: inline-flex; align-items: center; padding: 10px 15px; color: var(--secondary); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.projecttabs a:hover { color: var(--blue); }
.projecttabs a[aria-current=page] { color: var(--blue); border-color: var(--blue); }
.overviewgrid { display:grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; align-items: start; }
.overviewgrid h2 { margin-bottom: 0; }
.overviewgrid .folder { display: inline-flex; align-items: center; color: var(--blue); text-decoration: none; }
.overviewgrid #projectMembers { margin: 17px 0 12px; }
.stagefact { display: grid; gap: 6px; margin-top: 16px; }
.stagefact strong { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; color: var(--navy); }
.stageprogress { display: flex; gap: 4px; margin: 4px 0 1px; }
.stageprogress i { height: 5px; flex: 1; border-radius: 3px; background: var(--pale-blue); }
.stageprogress .past { background: #809bc5; }
.stageprogress .current { background: var(--blue); }
.stagefact small { font-size: .85rem; }
.planfacts,.financetotals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 20px 0 0; }
.planfacts div { border-top: 1px solid var(--line); padding-top: 9px; }
.planfacts dt,.financetotals dt { color: var(--secondary); font-size: .85rem; }
.planfacts dd,.financetotals dd { margin: 3px 0 0; color: var(--navy); font-weight: 650; }
.financetotals { grid-template-columns: repeat(3,minmax(0,1fr)); background: #f5f7fa; padding: 15px; border-radius: 7px; margin-bottom: 16px; }
.financetotals dd { font-size: clamp(1rem,1.4vw,1.4rem); font-variant-numeric: tabular-nums; }
.overviewcounts { margin-top: 16px; }
.overviewcounts a { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.overviewcounts a span { font-size: .85rem; color: var(--secondary); }
.invoicetime summary { cursor: pointer; font-weight: 650; }
.projects th { white-space: normal; line-height: 1.25; }
.projects td small { display: block; margin-top: 3px; }
.projects .budget small { white-space: nowrap; }
.allprojects { table-layout:auto; }
.allprojects caption { text-align:left; color:var(--secondary); font-size:.8rem; padding:0 0 8px; }
.allprojects td,.allprojects th { padding:10px 7px; }
.allprojects th:first-child,.allprojects td:first-child { min-width:0; }
.allprojects .col-name { min-width:130px; max-width:250px; }
.allprojects .col-client { max-width:145px; }
.allprojects .col-name,.allprojects .col-client,.allprojects .col-status { white-space:normal; overflow-wrap:anywhere; }
.allprojects .col-outstanding,.allprojects .col-hours { text-align:right; font-variant-numeric:tabular-nums; }
.allprojects .sorthead { display:inline-flex; align-items:center; justify-content:space-between; gap:4px; min-height:38px; padding:3px 0; border:0; background:transparent; font:inherit; text-align:left; color:inherit; }
.allprojects .sorthead span { color:#677b95; }
.allprojects .sorthead:hover,.allprojects th[aria-sort=ascending] .sorthead,.allprojects th[aria-sort=descending] .sorthead { color:var(--blue); }
.mobile-sort { display:none; }
@media(max-width:960px) {
 .mobile-sort { display:flex; align-items:end; gap:8px; margin-top:10px; }
 .mobile-sort label { margin:0; flex:1; }
 .mobile-sort button { min-height:42px; }
 .allprojects, .allprojects tbody, .allprojects tr, .allprojects td { display:block; }
 .allprojects caption { display:block; }
 .allprojects thead { display:none; }
 .allprojects tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; border-top:1px solid var(--line); padding:15px 0; }
 .allprojects tbody td { border:0; white-space:normal; padding:0; text-align:left; }
 .allprojects tbody .col-name { grid-column:1/-1; grid-row:1; min-width:0; max-width:none; }
 .allprojects .col-client { max-width:none; }
 .allprojects td:not(.col-name)::before { content:attr(data-label); display:block; color:var(--secondary); font-size:.77rem; margin-bottom:2px; }
}
@media(max-width:560px) {
 .allprojects tbody tr { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1024px) {
 .mobilelogo { display: block; max-width: 145px; height: 37px; padding: 3px; object-fit: contain; }
 .barbrand .crumb,.barbrand strong,.barbrand .brandname { display: none; }
 .admin .bar { background: #fff; }
}
@media(max-width:800px) {
 .overviewgrid { grid-template-columns: 1fr; gap: 0; }

}
@media(max-width:620px) {
 .projecttabs { gap: 1px; }
 .projecttabs a { font-size: .87rem; padding: 10px 8px; }
 .financetotals { grid-template-columns: 1fr; gap: 8px; }
 .financetotals>div { display: flex; align-items: center; justify-content: space-between; }
 .dashprojects, .dashprojects tbody, .dashprojects tr, .dashprojects td { display: block; }
 .dashprojects thead { display:none; }
 .dashprojects tr { border-top: 1px solid var(--line); padding: 11px 0; }
 .dashprojects td { border:0; padding: 3px 0; white-space: normal; }
 .dashprojects td:first-child { max-width: none; }
 .dashprojects td:last-child::before { content:"Gereed bij klant op · "; color:var(--secondary); }
}
