/* Hubble Social — schermen bovenop de Hubble-huisstijl (app.css) */
:root { --blue: #3569A8; --blue-50: #EAF0F8; }
/* standaardmaat voor iconen (specifiekere regels hieronder gaan voor) */
.ic { width: 18px; height: 18px; flex: none; }
.notice > svg.ic { margin-top: 1px; color: var(--orange-d); }
.notice.warn > svg.ic { color: var(--amber); }
h2.sec > svg.ic { width: 20px; height: 20px; color: var(--orange-d); }
.up { color: var(--green); } .down { color: var(--red); }
.err { color: var(--red); font-size: 13px; min-height: 0; margin: 6px 0; }
.err:empty { display: none; }
.prewrap { white-space: pre-wrap; word-break: break-word; }
.req { font-size: 11px; font-weight: 700; color: var(--orange-d); text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.iconbtn { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--muted); flex: none; }
.iconbtn:hover { background: var(--sand); color: var(--ink); }
.iconbtn .ic { width: 17px; height: 17px; }
.pill.blauw { background: var(--blue-50); color: var(--blue); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.back:hover { color: var(--ink); } .back .ic { width: 16px; height: 16px; }
.empty-sm { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.subh { font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.sticky { position: sticky; top: 18px; }
.modal.wide { width: min(880px, 100%); }
.foot.space { align-items: center; }
.linkbox { display: flex; gap: 8px; margin: 14px 0 8px; }
.problems { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.kvs { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 13.5px; align-items: center; }
.kvs > span:nth-child(odd) { color: var(--muted); }

/* zijbalk */
.nav-item .badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--ink); font: 700 11.5px var(--body); display: grid; place-items: center; }
.nav-new { margin: 6px 0; background: var(--orange); color: var(--ink) !important; font-weight: 700; }
.nav-new:hover, .nav-new.is-active { background: #FF7A42; }
.nav-new .ic, .nav-new.is-active .ic { color: var(--ink) !important; }
.who { display: flex; align-items: center; gap: 10px; color: #EDE9E0; }
.who b { display: block; font-size: 13px; } .who small { color: #8F8A80; font-size: 11.5px; }
.who .iconbtn { color: #8F8A80; } .who .iconbtn:hover { background: #2A2825; color: #fff; }
.sidebar-foot .av { background: #34322E; color: #EDE9E0; }
.demo-flag { margin-top: 10px; padding: 6px 10px; border-radius: 8px; background: #3A2A12; color: #F2C26B; font-size: 11.5px; font-weight: 600; text-align: center; }

/* inloggen */
body.is-login .sidebar { display: none; }
body.is-login .app { grid-template-columns: 1fr; }
body.is-login .view { max-width: none; padding: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; }
.login-card { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.login-card h1 { font-size: 38px; margin: 34px 0 6px; } .login-card h1 .dot { color: var(--orange); }
.login-card > p.muted { margin: 0 0 26px; }
.login-logo { width: 150px; } .login .brand-sub { margin: 8px 0 0 2px; }
.login-card form .check-inline { margin: 2px 0 16px; }
.login-art { background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.login-art img { width: 70%; max-width: 640px; opacity: .9; }

/* platform-badges, kleurstip, avatar */
.pb { display: inline-grid; place-items: center; border-radius: 28%; background: var(--pc); color: #fff; flex: none; }
.pb svg { width: 72%; height: 72%; }
.pbs { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pbs.big { gap: 8px; }
.pb-warn { position: relative; } .pb-warn::after { content: ''; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 9px; background: var(--orange); border: 2px solid #fff; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 9px; margin-right: 7px; vertical-align: middle; flex: none; }
.av { border-radius: 99px; background: var(--sand-2); color: var(--ink-2); display: inline-grid; place-items: center; font: 700 12px var(--body); object-fit: cover; flex: none; }

/* KPI's */
.kpis { margin-bottom: 18px; }
.kpi .delta { font-size: 12.5px; vertical-align: middle; margin-left: 6px; }
.delta { font-family: var(--body); font-weight: 700; font-style: normal; white-space: nowrap; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--muted-2); }
.link-kpi { transition: transform .15s, border-color .15s; }
.link-kpi:hover { transform: translateY(-2px); border-color: #D6CEBE; }
.link-kpi.hot { border-color: var(--orange); background: var(--orange-50); }
.link-kpi.warn { border-color: #E9C98A; background: var(--amber-50); }
.small-kpis .kpi-value { font-size: 24px; }

/* postlijsten */
.plist { padding: 6px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.prow:hover { background: var(--paper); }
.prow + .prow { border-top: 1px solid var(--line); border-radius: 0; }
.prow .grow { min-width: 0; }
.prow-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.cname { display: inline-flex; align-items: center; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.prow-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.prow-when small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mthumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--sand); flex: none; position: relative; display: grid; place-items: center; color: var(--muted-2); }
.mthumb img, .mthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb.lg { width: 72px; height: 72px; }
.mthumb .vbadge { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 5px; background: rgba(25,25,25,.7); color: #fff; display: grid; place-items: center; }
.mthumb .vbadge .ic { width: 12px; height: 12px; }
.mthumb .ic { width: 20px; height: 20px; }
.dash { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.clist { display: flex; flex-direction: column; gap: 10px; }
.crow { padding: 16px 18px; display: block; transition: border-color .15s; }
.crow:hover { border-color: #D6CEBE; }
.crow + .crow { margin-top: 0; }
.crow-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.crow-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.crow-stats b { display: block; color: var(--ink); font: 700 17px var(--heading); }
.crow-stats em { font-style: normal; font-weight: 700; }
.crow-stats .hot b { color: var(--orange-d); }

/* kalender */
.cal-bar { margin-bottom: 14px; }
.monthnav { display: flex; align-items: center; gap: 8px; }
.monthnav b { font: 700 20px var(--heading); min-width: 170px; text-align: center; text-transform: capitalize; }
.monthnav .btn-sm { width: 34px; padding: 0; }
.segb { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); }
.segb .ic { width: 15px; height: 15px; }
.segb.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg button .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.cal-h { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.cal-h span { padding: 9px 10px; font: 600 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cday { min-height: 128px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cday:nth-child(7n) { border-right: 0; }
.cday.out { background: #FCFBF8; } .cday.out .cday-h .dn { color: var(--muted-2); }
.cday-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; font-weight: 600; font-size: 13px; }
.cday-h > span { display: inline-flex; align-items: center; gap: 6px; }
.cday-h .wd { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.cday.today .cday-h .dn { background: var(--orange); color: var(--ink); border-radius: 99px; width: 24px; height: 24px; display: grid; place-items: center; margin-left: -4px; }
.cadd { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--muted-2); opacity: 0; transition: opacity .15s; }
.cday:hover .cadd, .cadd:focus-visible { opacity: 1; } .cadd:hover { background: var(--orange-50); color: var(--orange-d); }
.cadd .ic { width: 15px; height: 15px; }
.cchip { display: flex; align-items: center; gap: 5px; padding: 4px 6px 4px 8px; border-radius: 7px; background: var(--paper); border-left: 3px solid var(--cc); font-size: 12px; min-width: 0; transition: background .15s; }
.cchip:hover { background: var(--sand); }
.cchip .ct { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.cchip .pbs { flex: none; gap: 2px; }
.cchip .cx { color: var(--ink-2); min-width: 0; }
.cchip.draft { background: transparent; border: 1px dashed var(--sand-2); border-left: 3px dashed var(--cc); color: var(--muted); }
.cchip.fail { background: var(--red-50); }
.cchip.done .cx { color: var(--muted); }
.cchip.busy { background: var(--orange-50); }
.cmore { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 6px; }
.dayh { font: 700 15px var(--heading); margin: 22px 0 8px; text-transform: capitalize; }

/* post maken */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.col-main > * + * { margin-top: 16px; }
.col-main .card + .card { margin-top: 16px; }
.accpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.accb { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; text-align: left; background: var(--white); transition: border-color .15s, background .15s; position: relative; }
.accb:hover { border-color: #D6CEBE; }
.accb b { display: block; font-size: 13.5px; } .accb small { color: var(--muted); font-size: 12px; }
.accb > span:not(.pb) { min-width: 0; flex: 1; } .accb b, .accb small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accb .tick { width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--sand-2); display: grid; place-items: center; color: transparent; flex: none; }
.accb .tick .ic { width: 13px; height: 13px; }
.accb.is-on { border-color: var(--orange); background: var(--orange-50); }
.accb.is-on .tick { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.accb.warn small { color: var(--amber); }
#allacc { margin-top: 10px; }
.counters { display: flex; gap: 6px; flex-wrap: wrap; }
.counter-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px 3px 4px; border-radius: 99px; background: var(--sand); font-variant-numeric: tabular-nums; }
.counter-chip.near { background: var(--amber-50); color: var(--amber); }
.counter-chip.bad { background: var(--red-50); color: var(--red); }
.caption { font-size: 15px; min-height: 150px; }
.mlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mitem { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.mitem .grow { min-width: 0; } .mitem b { display: block; font-size: 13.5px; } .mitem small { color: var(--muted); font-size: 12px; }
.mact { display: flex; gap: 2px; }
.upl { display: grid; grid-template-columns: minmax(0, 1fr) 160px 90px; gap: 12px; align-items: center; font-size: 13px; padding: 8px 4px; }
.upl .bar { margin: 0; } .upl small { color: var(--muted); text-align: right; }
label.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
label.dropzone .ic { width: 26px; height: 26px; color: var(--orange-d); }
label.dropzone small { color: var(--amber); font-weight: 600; }
.qblock + .qblock { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; min-width: 0; }
.qhead .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.qrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.qrow + .qrow { border-top: 1px dashed var(--line); }
.qrow .st { width: 22px; height: 22px; font-size: 12px; flex: none; margin-top: 1px; }
.qrow .pb { margin-top: 1px; }
.qrow b { font-size: 13.5px; }
.st-goed { background: var(--green-50); color: var(--green); } .st-waarschuwing { background: var(--amber-50); color: var(--amber); } .st-fout { background: var(--red-50); color: var(--red); }
.qissues { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); }
.qissues li.fout { color: var(--red); font-weight: 600; }
.qnote { font-size: 12.5px; color: var(--green); margin-top: 4px; font-weight: 500; }
.qnote.warn { color: var(--amber); }
.tcard { border: 1px solid var(--line); border-radius: 12px; }
.tcard + .tcard { margin-top: 8px; }
.tcard > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.tcard > summary::-webkit-details-marker { display: none; }
.tcard > summary b small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.tcard .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.tcard[open] .chev { transform: rotate(90deg); }
.tbody { padding: 4px 16px 16px 50px; }
.tbody .textarea { margin-top: 8px; }
.checks-row { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.plan-seg button { padding: 9px 16px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--sand); font-weight: 600; }
.chip:hover { background: var(--orange-50); color: var(--orange-d); }
.plan-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.plan-actions .btn { height: 44px; padding: 0 20px; }

/* voorbeeld */
.pvcard { padding: 18px; }
.pvtabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pvtabs button { padding: 4px; border-radius: 10px; border: 2px solid transparent; opacity: .55; }
.pvtabs button.is-on { border-color: var(--orange); opacity: 1; }
.phone { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; font-family: -apple-system, 'Segoe UI', Inter, sans-serif; font-size: 13.5px; position: relative; }
.pvhead { display: flex; align-items: center; gap: 10px; padding: 12px; }
.pvhead b { display: block; font-size: 13.5px; } .pvhead small { color: #8A8D91; font-size: 11.5px; }
.pvtext { padding: 2px 12px 12px; line-height: 1.45; word-break: break-word; }
.pvtext .more, .vtext .more { color: #8A8D91; }
.pvmedia { background: #000; position: relative; }
.pvmedia img, .pvmedia video { width: 100%; display: block; max-height: 420px; object-fit: contain; }
.pvmedia.sq img, .pvmedia.sq video { aspect-ratio: 4 / 5; object-fit: cover; max-height: none; }
.pv-instagram .pvtext { padding-top: 10px; }
.pvbar { display: flex; gap: 18px; padding: 10px 14px; border-top: 1px solid #EFF0F2; color: #65676B; font-size: 16px; }
.pv-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.phone.vert { aspect-ratio: 9 / 16; background: #000; max-height: 560px; margin: 0 auto; }
.vmedia { position: absolute; inset: 0; } .vmedia img, .vmedia video { width: 100%; height: 100%; object-fit: cover; }
.vover { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.vuser { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .vuser .av { background: rgba(255,255,255,.3); color: #fff; }
.vtext { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* post bekijken */
.trow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow .grow { min-width: 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.mbig { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); position: relative; display: block; }
.mbig img, .mbig video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mbig .vbadge { display: none; }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ilist { padding: 6px; max-height: calc(100vh - 230px); overflow: auto; position: sticky; top: 18px; }
.irow { display: flex; gap: 12px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 12px; align-items: flex-start; }
.irow:hover { background: var(--paper); }
.irow.is-on { background: var(--orange-50); }
.irow .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.irow.open .itop b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 9px; background: var(--orange); margin-right: 6px; vertical-align: 2px; }
.iav { position: relative; flex: none; }
.ipb { position: absolute; right: -4px; bottom: -4px; border: 2px solid #fff; border-radius: 7px; line-height: 0; }
.itop { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.itop small { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.itxt { font-size: 13px; color: var(--ink-2); }
.tiny-ic { width: 13px; height: 13px; vertical-align: -2px; color: var(--muted-2); }
.imeta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; }
.imeta .cdot { width: 7px; height: 7px; margin-right: 5px; }
.imeta .hot { color: var(--orange-d); margin-left: 3px; }
.idetail { padding: 0; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.dhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dhead b { display: block; } .dhead small { color: var(--muted); font-size: 12px; display: flex; align-items: center; }
.dhead .cdot { width: 7px; height: 7px; margin: 0 4px 0 6px; }
.dbody { padding: 16px; flex: 1; overflow: auto; max-height: calc(100vh - 380px); }
.pctx { display: flex; gap: 12px; padding: 10px 12px; background: var(--paper); border-radius: 12px; margin-bottom: 16px; font-size: 13px; }
.pctx img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.pctx small { color: var(--muted); font-size: 11.5px; } .pctx p { margin: 2px 0 0; color: var(--ink-2); }
.thread { display: flex; flex-direction: column; gap: 12px; }
.tmsg { display: flex; gap: 10px; font-size: 13.5px; }
.tmsg p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
.tmsg small { color: var(--muted-2); font-size: 11.5px; }
.tmsg.reply { margin-left: 40px; }
.tmsg.focus > div { background: var(--orange-50); border-radius: 10px; padding: 6px 10px; margin: -6px -10px; }
.tmsg.own b { color: var(--orange-d); }
.tmsg.pending { opacity: .7; }
.dreply { display: flex; gap: 10px; padding: 12px 16px 6px; border-top: 1px solid var(--line); align-items: flex-end; }
.dreply .textarea { min-height: 46px; }
.dreply .btn { height: 46px; }
.dhint { padding: 0 16px 12px; margin: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.bubble { max-width: 76%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.bubble.out { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble small { display: block; font-size: 11px; opacity: .6; margin-top: 3px; }
.only-mobile { display: none; }

/* cijfers en grafieken */
.chart-card { margin-bottom: 18px; }
.chartbox { position: relative; width: 100%; }
svg.chart { display: block; font: 500 11.5px var(--body); }
svg.chart text { fill: var(--muted); font-variant-numeric: tabular-nums; }
svg.chart text.val { fill: var(--ink); font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 2; }
.tip small { display: block; color: #BDB8AE; font-size: 11.5px; }
.chart-empty { height: 180px; display: grid; place-items: center; color: var(--muted); border: 1.5px dashed var(--sand-2); border-radius: 12px; font-size: 13.5px; }
.tableview { margin-top: 10px; } .tableview summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tableview .table-wrap { max-height: 300px; margin-top: 8px; }
.acell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pcell { max-width: 380px; } .pcell .acell { display: flex; } .pcell .link { display: inline-block; margin-top: 2px; }
.ibar-wrap { display: flex; align-items: center; gap: 8px; }
.ibar { display: inline-block; width: 90px; height: 7px; background: var(--sand); border-radius: 9px; overflow: hidden; flex: none; }
.ibar i { display: block; height: 100%; background: #E8551A; border-radius: 9px; }
.table-wrap.flat { border: 0; border-radius: 0; }
.tbl td.num small { font-weight: 700; }

/* rapportages */
.reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.repcard { display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s; }
.repcard:hover { transform: translateY(-2px); border-color: #D6CEBE; }
.repcard h3 { text-transform: capitalize; font-size: 20px; }
.repcard + .repcard { margin-top: 0; }
.repcard.big { flex-direction: row; align-items: center; gap: 16px; } .repcard.big > .ic { width: 34px; height: 34px; color: var(--orange-d); }
.repcard.big p { margin: 2px 0 0; }
.report { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.rpage { width: 210mm; max-width: 100%; min-height: 297mm; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16mm 15mm 22mm; position: relative; display: flex; flex-direction: column; }
.rpage h2 { font-size: 19px; margin: 18px 0 10px; } .rpage h2:first-child { margin-top: 0; }
.rpage .tbl { font-size: 12.5px; }
.rtop { display: flex; justify-content: space-between; align-items: center; } .rtop img { width: 120px; }
.rtop span { font: 600 10.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cover { background: linear-gradient(180deg, #fff 0%, #fff 58%, var(--paper) 100%); }
.rhero { margin: 30mm 0 12mm; }
.rhero .eyebrow { color: var(--rc); font-size: 13px; }
.rhero h1 { font-size: 64px; line-height: 1; text-transform: capitalize; letter-spacing: -.03em; }
.rhero h1 span { color: var(--orange); }
.rlead { font-size: 15px; color: var(--ink-2); max-width: 560px; margin: 14px 0 0; }
.rtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rtile { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.rtile span { font-size: 12px; color: var(--muted); } .rtile b { font: 700 28px var(--heading); letter-spacing: -.02em; }
.rtile .delta { font-size: 12px; }
.rnote { margin-top: 16px; padding: 16px 18px; background: var(--orange-50); border-radius: 14px; }
.rnote h3 { font-size: 15px; margin-bottom: 8px; } .rnote p { margin: 0; font-size: 13.5px; }
.printonly { display: none; }
.rfoot { position: absolute; left: 15mm; right: 15mm; bottom: 9mm; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--muted); }
.rfoot img { width: 18px; }
.rposts { display: flex; flex-direction: column; gap: 6px; }
.rpost { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rpost .grow { min-width: 0; } .rpost p { margin: 3px 0 0; font-size: 12.5px; }
.rn { width: 22px; height: 22px; border-radius: 99px; background: var(--orange); color: var(--ink); display: grid; place-items: center; font: 800 11.5px var(--body); flex: none; }
.rpm { text-align: right; min-width: 74px; } .rpm b { display: block; font: 700 17px var(--heading); } .rpm small { font-size: 10.5px; color: var(--muted); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rplanned { margin-top: 18px; padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.rplanned .ic { width: 16px; height: 16px; color: var(--orange-d); }

/* klanten */
.pbs.big .pb { box-shadow: 0 0 0 2px #fff; }
.cgrid { align-items: start; }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.conb { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 13px; text-align: left; position: relative; }
.conb:hover { border-color: var(--orange); background: var(--orange-50); }
.conb small { position: absolute; right: 8px; top: 4px; font-size: 10px; color: var(--muted-2); font-weight: 500; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 28px; height: 28px; border-radius: 99px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw.is-on { box-shadow: 0 0 0 2px var(--ink); }

/* klantportaal */
.portal-acc { margin: -8px 0 20px; }
.acc-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; }
.acc-chip b { display: block; font-size: 13px; } .acc-chip small { color: var(--muted); font-size: 11.5px; }

@media (max-width: 1200px) { .composer { grid-template-columns: 1fr; } .col-side .sticky { position: static; } .dash { grid-template-columns: 1fr; } }
@media (max-width: 1000px) {
  .inbox { grid-template-columns: 1fr; }
  .ilist { position: static; max-height: none; }
  .idetail { display: none; } .idetail.show { display: flex; position: fixed; inset: 0; z-index: 30; border-radius: 0; }
  .idetail.show .dbody { max-height: none; }
  .only-mobile { display: inline-grid; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; } .login-art { display: none; } .login-card { padding: 40px 22px; }
  .cal-h span { padding: 6px 4px; font-size: 10px; text-align: center; }
  .cday { min-height: 74px; padding: 3px; }
  .cchip { padding: 3px; border-left-width: 3px; } .cchip .cx, .cchip .pbs { display: none; } .cchip .ct { font-size: 10.5px; }
  .monthnav b { min-width: 0; font-size: 17px; }
  .upl { grid-template-columns: 1fr 80px; } .upl small { display: none; }
  .tbody { padding-left: 16px; }
  .kvs { grid-template-columns: 1fr; gap: 2px 0; } .kvs > span:nth-child(even) { margin-bottom: 8px; }
  .rtiles { grid-template-columns: repeat(2, 1fr); } .rhero h1 { font-size: 44px; }
  .rpage { min-height: 0; padding: 22px 18px 50px; }
  .who small { display: none; }
  .sidebar-foot { display: block; border-top: 0; padding: 10px 0 0; }
  .nav-item .t { font-size: 13px; }
}

/* afdrukken: alleen het rapport */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .sidebar, .noprint, .jobbox, .toast, #overlay { display: none !important; }
  .view { padding: 0 !important; animation: none; }
  .report { gap: 0; display: block; }
  .rpage { border: 0; box-shadow: none; width: 210mm; height: 297mm; min-height: 0; break-after: page; overflow: hidden; }
  .rpage:last-child { break-after: auto; }
  .printonly { display: block; }
  .rnote:has(#noteview:empty) { display: none; }
  .tip { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* werkbalk: keuzelijsten niet over de hele breedte */
.toolbar .select { width: auto; min-width: 170px; max-width: 260px; }
@media (max-width: 820px) { .toolbar .select { flex: 1; max-width: none; } }
/* kolommen nooit breder laten worden dan het scherm (lange teksten mogen niet oprekken) */
@media (max-width: 1200px) { .dash, .composer { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .split, .inbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .kpis.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 24px; }
  .trow { flex-wrap: wrap; } .trow .grow { flex-basis: 60%; }
  .card-head { align-items: flex-start; }
  .page-head h1 { word-break: break-word; }
}
