/* innovation.haus — Documenten (urenstaat, offerte, factuur)
   Alle stijlen gescopet onder .ihu-root zodat ze het thema niet raken. */

.ihu-root{
  --ink:#0F172A; --body:#334155; --muted:#6B7280; --faint:#9AA1AB;
  --hair:#E7E9EE; --hairLight:#EEF2F7; --green:#00CA48; --surface:#F7F9F8;
  --indigo:#4F46E5; --ph:#AEB3BB;
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--body); font-size:13px; line-height:1.55;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.ihu-root *{ margin:0; padding:0; box-sizing:border-box; }
.ihu-root img,.ihu-root svg{ display:block; max-width:100%; }
.ihu-root button{ font:inherit; cursor:pointer; }
.ihu-root .tnum{ font-variant-numeric:tabular-nums; font-feature-settings:"tnum"; }
.ihu-root .label{ font-size:8.6px; letter-spacing:.18em; text-transform:uppercase; font-weight:600; color:var(--faint); }
.ihu-root .ink{ color:var(--ink); }
.ihu-root [contenteditable]{ outline:none; border-radius:3px; }
.ihu-root [contenteditable]:empty:before{ content:attr(data-ph); color:var(--ph); font-weight:400; }
@media screen{
  .ihu-root [contenteditable]:hover{ background:#F1F5F4; }
  .ihu-root [contenteditable]:focus{ background:#ECFDF3; box-shadow:0 0 0 2px rgba(0,202,72,.25); }
}

/* ── Toolbar ── */
.ihu-root .bar{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; background:#0F172A; padding:11px 14px; border-radius:10px 10px 0 0; }
.ihu-root .bar .t{ font-size:12px; color:#9FB0C4; }
.ihu-root .bar .t b{ color:#fff; font-weight:600; }
.ihu-root .bar .sp{ flex:1; }
.ihu-root .bar .status{ font-size:11px; color:#7Fd8a0; min-width:74px; text-align:right; }
.ihu-root .bar button,.ihu-root .bar select{ font-size:12px; font-weight:500; border-radius:6px; padding:7px 12px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#E6EDF5; }
.ihu-root .bar select{ -webkit-appearance:none; appearance:none; padding-right:26px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23E6EDF5' stroke-width='1.6'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat:no-repeat; background-position:right 10px center; }
.ihu-root .bar select option{ color:#0F172A; }
.ihu-root .bar button:hover{ background:rgba(255,255,255,.13); }
.ihu-root .bar button.primary{ background:var(--green); border-color:var(--green); color:#03351A; font-weight:600; }
.ihu-root .bar .nav{ display:flex; align-items:center; gap:6px; }
.ihu-root .bar .nav .per{ font-size:12px; color:#fff; font-weight:600; min-width:96px; text-align:center; }
.ihu-root .bar .nav button{ padding:6px 10px; }

/* ── Sheet / page ── */
.ihu-root .sheet{ background:#fff; max-width:860px; margin:0 auto; }
.ihu-root .page{ padding:42px 48px 30px; position:relative; }
@media screen{
  .ihu-root .sheet{ box-shadow:0 1px 3px rgba(15,23,42,.12),0 12px 40px rgba(15,23,42,.10); margin:0 auto; border-radius:0 0 10px 10px; }
}

.ihu-root .mast{ display:flex; justify-content:space-between; align-items:center; padding-bottom:18px; }
.ihu-root .mast .brand{ display:flex; align-items:center; gap:12px; }
.ihu-root .mast .brand img{ height:34px; width:34px; }
.ihu-root .mast .brand .wm{ font-size:18px; font-weight:600; letter-spacing:-.02em; color:var(--ink); }
.ihu-root .mast .doc{ text-align:right; }
.ihu-root .mast .doc .kind{ font-size:8.6px; letter-spacing:.22em; text-transform:uppercase; font-weight:600; color:var(--ink); }
.ihu-root .mast .doc .num{ font-size:12px; color:var(--muted); margin-top:5px; letter-spacing:.02em; }
.ihu-root .rule{ height:1px; background:var(--ink); opacity:.92; }
.ihu-root .rule-hair{ height:1px; background:var(--hair); }

.ihu-root .hero{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:26px 0 22px; }
.ihu-root .hero .lead .label{ margin-bottom:11px; }
.ihu-root .hero .amount{ font-size:46px; font-weight:600; letter-spacing:-.035em; line-height:.92; color:var(--ink); }
.ihu-root .hero .amount .cur{ font-size:25px; font-weight:500; color:var(--muted); margin-right:8px; vertical-align:5px; }
.ihu-root .hero .amount .unit{ font-size:24px; font-weight:500; color:var(--muted); margin-left:10px; vertical-align:4px; letter-spacing:-.01em; }
.ihu-root .hero .amount .dot{ display:inline-block; width:9px; height:9px; background:var(--green); border-radius:2px; margin-left:8px; vertical-align:5px; }
.ihu-root .hero .sub{ font-size:12.5px; color:var(--muted); margin-top:13px; }
.ihu-root .hero .sub b{ color:var(--ink); font-weight:500; }
.ihu-root .hero .meta{ text-align:right; min-width:200px; }
.ihu-root .hero .meta .row{ display:flex; justify-content:space-between; gap:26px; padding:5px 0; }
.ihu-root .hero .meta .row .k{ font-size:11.5px; color:var(--faint); }
.ihu-root .hero .meta .row .v{ font-size:11.5px; color:var(--ink); font-weight:500; }
.ihu-root .meta input.datum{ width:auto; min-width:108px; font-size:11.5px; padding:1px 2px 1px 4px; color:var(--ink); font-weight:500; text-align:right; }
.ihu-root .meta .datum-print{ font-size:11.5px; color:var(--ink); font-weight:500; }

.ihu-root .parties{ display:flex; gap:48px; padding:22px 0 4px; }
.ihu-root .parties .col{ flex:1; }
.ihu-root .parties .label{ margin-bottom:10px; }
.ihu-root .parties .name{ font-size:14px; font-weight:600; color:var(--ink); letter-spacing:-.01em; }
.ihu-root .parties .line{ font-size:12.5px; color:var(--muted); margin-top:2px; }

.ihu-root .sec{ display:flex; align-items:center; gap:9px; margin:26px 0 4px; }
.ihu-root .sec .sq{ width:6px; height:6px; background:var(--green); border-radius:1.5px; }
.ihu-root .sec .label{ color:var(--ink); letter-spacing:.2em; }

.ihu-root table{ width:100%; border-collapse:collapse; }
.ihu-root thead th{ font-size:8.6px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--faint); text-align:left; padding:14px 0 11px; border-bottom:1.4px solid var(--ink); }
.ihu-root thead th.r{ text-align:right; } .ihu-root thead th.c{ text-align:center; }
.ihu-root tbody td{ padding:12px 0; border-bottom:1px solid var(--hair); font-size:13px; color:var(--ink); vertical-align:top; }
.ihu-root tbody td .ix{ color:#B6BAC2; font-size:11px; margin-right:13px; }
.ihu-root tbody td.r{ text-align:right; color:var(--body); }
.ihu-root tbody td.c{ text-align:center; color:var(--body); }
.ihu-root tbody td.amt{ color:var(--ink); }
.ihu-root .rm{ width:34px; text-align:right; padding-left:8px; }
.ihu-root button.x{ width:23px; height:23px; border:1px solid var(--hair); background:#fff; color:#9AA1AB; font-size:13px; line-height:1; border-radius:6px; }
.ihu-root button.x:hover{ border-color:#E24B4A; color:#E24B4A; background:#FCEBEB; }
.ihu-root .dag{ color:var(--body); }
.ihu-root input.datum{ font-family:inherit; font-size:13px; color:var(--ink); border:none; background:transparent; padding:2px 4px 2px 0; font-variant-numeric:tabular-nums; width:142px; border-radius:4px; }
.ihu-root input.datum:focus{ outline:none; background:#ECFDF3; box-shadow:0 0 0 2px rgba(0,202,72,.25); }
@media screen{ .ihu-root input.datum:hover{ background:#F1F5F4; } .ihu-root .datum-print{ display:none; } }
@media print{ .ihu-root input.datum{ display:none; } .ihu-root .datum-print{ display:inline; } }

.ihu-root .addrow{ margin-top:12px; }
.ihu-root button.addbtn{ border:1px dashed #C7CBD2; background:none; color:var(--muted); font-size:12px; font-weight:500; padding:9px 14px; border-radius:7px; width:100%; }
.ihu-root button.addbtn:hover{ border-color:var(--green); color:var(--ink); }

.ihu-root .totwrap{ display:flex; justify-content:flex-end; padding-top:16px; }
.ihu-root .totals{ width:54%; min-width:300px; }
.ihu-root .totals .row{ display:flex; justify-content:space-between; padding:7px 0; font-size:13px; }
.ihu-root .totals .row .k{ color:var(--muted); } .ihu-root .totals .row .v{ color:var(--ink); }
.ihu-root .totals .grand{ display:flex; justify-content:space-between; align-items:baseline; margin-top:9px; padding-top:16px; border-top:1.4px solid var(--green); }
.ihu-root .totals .grand .k{ display:flex; align-items:center; gap:8px; }
.ihu-root .totals .grand .k .sq{ width:6px; height:6px; background:var(--green); border-radius:1.5px; }
.ihu-root .totals .grand .k span{ font-size:8.8px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--ink); white-space:nowrap; }
.ihu-root .totals .grand .v{ font-size:25px; font-weight:600; letter-spacing:-.02em; color:var(--ink); white-space:nowrap; }

.ihu-root .pay{ margin-top:26px; border-left:2.5px solid var(--green); background:var(--surface); padding:16px 20px; }
.ihu-root .pay .label{ margin-bottom:8px; }
.ihu-root .pay p{ font-size:12.5px; color:var(--body); }
.ihu-root .pay b{ color:var(--ink); font-weight:600; }
.ihu-root .intro{ font-size:13.5px; color:var(--body); line-height:1.7; }
.ihu-root .intro i{ color:var(--muted); font-style:italic; }
.ihu-root .terms .item{ display:flex; gap:16px; padding:6px 0; font-size:12.5px; }
.ihu-root .terms .item .t{ color:var(--ink); font-weight:600; flex:0 0 120px; }
.ihu-root .terms .item .d{ color:var(--muted); }
.ihu-root .sign{ display:flex; gap:46px; margin-top:34px; }
.ihu-root .sign .col{ flex:1; }
.ihu-root .sign .col .ln{ border-bottom:1.2px solid var(--ink); height:30px; }
.ihu-root .sign .col .label{ margin-top:9px; }
.ihu-root .sign .col .dt{ font-size:11.5px; color:var(--muted); margin-top:11px; }
.ihu-root .note{ font-size:11.5px; color:var(--faint); margin-top:14px; }
.ihu-root .thanks{ font-size:14px; color:var(--ink); font-weight:600; margin-top:26px; }
.ihu-root .thanks .dot{ display:inline-block; width:7px; height:7px; background:var(--green); border-radius:1.5px; margin-left:6px; vertical-align:1px; }

.ihu-root .foot{ margin-top:26px; padding-top:14px; }
.ihu-root .foot .rule-hair{ margin-bottom:9px; }
.ihu-root .foot .fr{ text-align:center; font-size:9.5px; color:var(--faint); letter-spacing:.02em; }
.ihu-root .foot .fr.l2{ margin-top:3px; }
.ihu-root .foot .fr b{ color:var(--muted); font-weight:600; }

.ihu-root .ihu-empty{ padding:26px 0; text-align:center; color:var(--faint); font-size:12.5px; }
.ihu-root .ihu-login{ background:var(--surface); border:1px solid var(--hair); border-radius:12px; padding:28px; text-align:center; color:var(--body); }
.ihu-root .ihu-login a{ color:var(--indigo); font-weight:600; }

/* ── Print ── */
@media print{
  .ihu-root .bar,.ihu-root .noprint,.ihu-root .addrow{ display:none !important; }
  .ihu-root .sheet{ box-shadow:none; max-width:none; margin:0; border-radius:0; }
  .ihu-root .page{ padding:10mm 14mm 8mm; }
  /* compacter bij printen zodat alles (incl. footer) op één pagina past */
  .ihu-root .hero{ padding:16px 0 14px; }
  .ihu-root .parties{ padding:16px 0 2px; }
  .ihu-root .sec{ margin:18px 0 3px; }
  .ihu-root tbody td{ padding:9px 0; }
  .ihu-root .totwrap{ padding-top:12px; }
  .ihu-root .pay{ margin-top:18px; }
  .ihu-root .sign{ margin-top:22px; }
  .ihu-root .foot{ margin-top:16px; padding-top:9px; }
}
/* marge 0 => de browser tekent géén eigen kop-/voettekst (datum, titel, URL);
   de documentmarges komen uit de .page-padding hierboven. */
@page{ size:A4; margin:0; }
