/* Mijn Digitaal Publiceren: own customer environment, independent of the shop theme. */
:root { --dps-blue: #2986b6; --dps-blue-dark: #226f98; --dps-ink: #1f2937; --dps-muted: #5b6673; --dps-line: #d6dee8; --dps-bg: #f4f7fa; --dps-card: #ffffff; --dps-ok: #1f7a4d; --dps-ok-bg: #e6f4ec; --dps-err: #b42318; --dps-err-bg: #fdecea; }
* { box-sizing: border-box; }
html { background: var(--dps-bg); }
body.dps-portal { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--dps-ink); background: var(--dps-bg); min-height: 100vh; display: flex; flex-direction: column; }
.dps-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.dps-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--dps-blue); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.dps-skip:focus { left: 8px; outline: 3px solid var(--dps-blue); }
.dps-header { background: #fff; border-bottom: 1px solid var(--dps-line); }
.dps-header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; flex-wrap: wrap; }
.dps-brand img { display: block; height: 40px; width: auto; }
.dps-wordmark { font-weight: 800; font-size: 1.25em; color: var(--dps-blue); letter-spacing: -0.01em; }
.dps-header-title { font-weight: 600; color: var(--dps-muted); }
.dps-header-user { margin-left: auto; color: var(--dps-muted); font-size: 0.95em; }
.dps-nav { background: var(--dps-blue); }
.dps-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.dps-nav a { display: block; padding: 12px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95em; border-bottom: 3px solid transparent; }
.dps-nav a:hover, .dps-nav a:focus-visible { background: var(--dps-blue-dark); outline: none; }
.dps-nav a:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.dps-nav a[aria-current='page'] { border-bottom-color: #fff; background: var(--dps-blue-dark); }
.dps-main { flex: 1 0 auto; padding: 28px 20px 48px; }
.dps-main:focus { outline: none; }
.dps-main h1 { font-size: 1.75em; margin: 0 0 18px; letter-spacing: -0.01em; }
.dps-main h2 { font-size: 1.25em; margin: 28px 0 10px; }
.dps-main h3 { font-size: 1.1em; margin: 0 0 8px; }
.dps-main h4 { font-size: 1em; margin: 14px 0 6px; }
.dps-main a { color: var(--dps-blue); }
.dps-lead { font-size: 1.05em; max-width: 60ch; }
.dps-muted { color: var(--dps-muted); }
.dps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.dps-card { display: flex; flex-direction: column; gap: 4px; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--dps-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); transition: box-shadow .15s, border-color .15s; }
.dps-card:hover, .dps-card:focus-visible { border-color: var(--dps-blue); box-shadow: 0 4px 14px rgba(41, 134, 182, 0.18); outline: none; }
.dps-card-num { font-size: 2.2em; font-weight: 800; line-height: 1; color: var(--dps-blue); }
.dps-card-label { color: var(--dps-muted); }
.dps-card-action { margin-top: 8px; font-weight: 600; color: var(--dps-blue); }
.dps-card-action::after { content: ' \2192'; }
.dps-form { background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; padding: 20px 22px; margin: 0 0 20px; }
.dps-form-narrow { max-width: 460px; }
.dps-form p { margin: 0 0 14px; }
.dps-form label { display: block; font-weight: 600; margin: 0 0 4px; font-size: 0.95em; }
.dps-form input[type='text'], .dps-form input[type='email'], .dps-form input[type='password'], .dps-form input[type='tel'], .dps-form input[type='file'], .dps-form select, .dps-form textarea,
.dps-credit-upload input[type='text'], .dps-credit-upload input[type='file'], .dps-credit-upload textarea, .dps-order-lookup input[type='text'] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c5d3; border-radius: 6px; background: #fff; color: var(--dps-ink); }
.dps-form input:focus, .dps-form select:focus, .dps-form textarea:focus, .dps-credit-upload input:focus, .dps-credit-upload textarea:focus, .dps-order-lookup input:focus { outline: 3px solid rgba(41, 134, 182, 0.35); border-color: var(--dps-blue); }
.dps-check label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.dps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.dps-btn, .dps-portal button.button, .dps-portal .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 6px; border: 2px solid var(--dps-blue); background: var(--dps-blue); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2; }
.dps-btn:hover, .dps-portal button.button:hover, .dps-portal .button:hover { background: var(--dps-blue-dark); border-color: var(--dps-blue-dark); color: #fff; }
.dps-btn:focus-visible, .dps-portal button.button:focus-visible { outline: 3px solid rgba(41, 134, 182, 0.4); outline-offset: 2px; }
.dps-btn-secondary { background: #fff; color: var(--dps-blue); }
.dps-btn-secondary:hover { background: #eef6fb; color: var(--dps-blue-dark); }
.dps-btn-small { padding: 4px 10px; font-size: 0.85em; margin-left: 6px; }
.dps-table { width: 100%; border-collapse: collapse; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; overflow: hidden; margin: 0 0 16px; }
.dps-table th, .dps-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dps-line); vertical-align: top; }
.dps-table th { background: #eef3f8; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dps-muted); }
.dps-table tr:last-child td { border-bottom: 0; }
.dps-running-order, .dps-renewal-overview, .dps-renewal-confirmation { background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; padding: 18px 22px; margin: 0 0 18px; }
.dps-running-order + hr, .dps-portal hr { display: none; }
.dps-open-credit { margin: 0 0 10px; }
.dps-running-order[data-open='0'] .dps-open-credit { color: var(--dps-muted); }
.dps-credit-order, .dps-single-order { border-top: 1px solid var(--dps-line); padding-top: 10px; margin-top: 10px; }
.dps-credit-history { padding-left: 18px; }
.dps-credit-upload { margin-top: 12px; padding: 14px 16px; background: var(--dps-bg); border-radius: 8px; }
.dps-credit-upload p { margin: 0 0 10px; }
.dps-credit-upload label { display: block; font-weight: 600; font-size: 0.95em; margin: 0 0 4px; }
.dps-order-lookup { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.dps-order-lookup label { font-weight: 600; width: 100%; }
.dps-order-lookup input[type='text'] { width: 180px; }
.dps-renewal-overview ul { list-style: none; padding: 0; margin: 0; }
.dps-renewal-overview li { padding: 12px 0; border-top: 1px solid var(--dps-line); }
.dps-renewal-overview li:first-child { border-top: 0; }
.dps-renewal-overview li > a:first-child { font-weight: 700; font-size: 1.05em; }
.dps-portal .woocommerce-message, .dps-portal .woocommerce-error, .dps-portal .woocommerce-info, .dps-portal .wc-block-components-notice-banner { list-style: none; margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.dps-portal .woocommerce-message, .dps-portal .wc-block-components-notice-banner.is-success { background: var(--dps-ok-bg); border-color: var(--dps-ok); color: var(--dps-ok); }
.dps-portal .woocommerce-error, .dps-portal .wc-block-components-notice-banner.is-error { background: var(--dps-err-bg); border-color: var(--dps-err); color: var(--dps-err); }
.dps-portal .woocommerce-info, .dps-portal .wc-block-components-notice-banner.is-info { background: #eef6fb; border-color: var(--dps-blue); color: var(--dps-blue-dark); }
.dps-portal .wc-block-components-notice-banner svg { display: none; }
.dps-portal p[role='alert'] { color: var(--dps-err); }
.dps-footer { border-top: 1px solid var(--dps-line); background: #fff; color: var(--dps-muted); font-size: 0.9em; padding: 18px 0; }
.dps-footer p { margin: 4px 0; }
.dps-footer a { color: var(--dps-blue); }
@media (max-width: 720px) {
  .dps-header-inner { min-height: 60px; gap: 10px; }
  .dps-header-title { display: none; }
  .dps-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .dps-nav a { padding: 10px 12px; font-size: 0.9em; border-bottom: 1px solid rgba(255, 255, 255, 0.15); border-left: 3px solid transparent; }
  .dps-nav a[aria-current='page'] { border-left-color: #fff; border-bottom-color: rgba(255, 255, 255, 0.15); }
  .dps-main { padding: 20px 16px 36px; }
  .dps-table thead { display: none; }
  .dps-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--dps-line); }
  .dps-table td { display: flex; gap: 10px; border: 0; padding: 4px 12px; }
  .dps-table td::before { content: attr(data-label); flex: 0 0 96px; font-weight: 600; color: var(--dps-muted); }
  .dps-order-lookup input[type='text'] { width: 100%; }
}

/* Huisstijl van de site en configurator (blauw, inkt, lijnen, Lora-koppen) en mobiel compacter (hoofdstuk 477). */
:root { --dps-blue: #1f5ed8; --dps-blue-dark: #174bb0; --dps-ink: #0b1a30; --dps-muted: #5b6b85; --dps-line: #c6d2e6; --dps-bg: #edf2fa; }
body.dps-portal { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dps-main h1, .dps-main h2, .dps-renewal-confirmation h2 { font-family: Lora, Georgia, serif; font-weight: 500; letter-spacing: 0; }
.dps-main h1 { font-size: 2em; }
.dps-card-num { color: var(--dps-ink); }
.dps-card:hover, .dps-card:focus-visible { box-shadow: 0 4px 14px rgba(31, 94, 216, .15); }
.dps-form input[type='text'], .dps-form input[type='email'], .dps-form input[type='password'], .dps-form input[type='tel'], .dps-form select, .dps-credit-upload input[type='text'], .dps-order-lookup input[type='text'] { min-height: 46px; border-color: var(--dps-line); border-radius: 4px; }
.dps-portal select { -webkit-appearance: none; appearance: none; min-height: 46px; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.dps-portal input[type='checkbox'], .dps-portal input[type='radio'] { width: 18px; height: 18px; accent-color: var(--dps-blue); flex: 0 0 auto; margin: 0; }
.dps-btn, .dps-portal button.button, .dps-portal .button { min-height: 46px; border-radius: 4px; }
.dps-credit-history .button, .dps-credit-history button { min-height: 0; padding: 4px 10px; font-size: .85em; background: #fff; color: var(--dps-blue); border-width: 1px; }
.dps-credit-history .button:hover, .dps-credit-history button:hover { background: #eef3fc; color: var(--dps-blue-dark); }
.dps-credit-history li { margin: 0 0 10px; }
.dps-view-publicaties .dps-renewal-overview > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dps-renewal-overview li { line-height: 1.6; }
.dps-renewal-overview li > a:first-child { display: inline-block; margin-bottom: 4px; color: var(--dps-ink); }
.dps-renewal-overview [data-field='renew'] a { display: inline-flex; align-items: center; min-height: 40px; margin: 6px 0; padding: 6px 14px; border-radius: 4px; background: var(--dps-blue); color: #fff; font-weight: 600; text-decoration: none; }
@media (max-width: 720px) {
  .dps-header-user { display: none; }
  .dps-brand img { height: 34px; }
  .dps-nav ul { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dps-nav ul::-webkit-scrollbar { display: none; }
  .dps-nav li { flex: 0 0 auto; }
  .dps-nav a, .dps-nav a[aria-current='page'] { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; white-space: nowrap; font-size: .9em; }
  .dps-nav a[aria-current='page'] { background: #fff; color: var(--dps-blue); border-color: #fff; }
  .dps-main h1 { font-size: 1.7em; }
  .dps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dps-card { padding: 12px; }
  .dps-card-num { font-size: 1.8em; }
  .dps-card-label { font-size: .85em; line-height: 1.3; }
  .dps-card-action { display: none; }
  .dps-form, .dps-running-order, .dps-renewal-overview, .dps-renewal-confirmation { padding: 16px; }
}
.dps-renewal-overview [data-field='renew'] { display: block; margin: 4px 0; }
.dps-renewal-overview [data-field='renew'] small { display: block; color: var(--dps-muted); }
.dps-done-orders { margin: 8px 0 18px; }
.dps-done-orders > summary { cursor: pointer; padding: 12px 16px; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; font-weight: 600; color: var(--dps-muted); list-style-position: inside; }
.dps-done-orders[open] > summary { margin-bottom: 12px; }

/* Leesstatistieken (hoofdstuk 567) */
.dps-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dps-stats-periods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dps-stats-table { margin-bottom: 8px; }
.dps-stats-link { word-break: break-all; }
.dps-stats-chart { display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom-width: 1px; height: 180px; padding: 12px 12px 34px; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; overflow-x: auto; }
.dps-stats-bar { position: relative; flex: 1 0 14px; max-width: 64px; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.dps-stats-bar span { display: block; width: 78%; background: var(--dps-blue); border-radius: 4px 4px 0 0; }
.dps-stats-bar small { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--dps-muted); white-space: nowrap; }
.dps-stats-chart .dps-stats-bar:nth-child(odd) small { display: none; }
@media (min-width: 720px) { .dps-stats-chart .dps-stats-bar:nth-child(odd) small { display: inline; } }
.dps-stats-all summary { cursor: pointer; color: var(--dps-blue); margin: 6px 0 12px; }
.dps-amb-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
.dps-amb-link input { flex: 1 1 280px; padding: 10px 12px; border: 1px solid var(--dps-line); border-radius: 8px; font: inherit; background: #fff; }
/* Knoppen als link in de inhoud: witte tekst (".dps-main a" maakte ze blauw op blauw, o.a. "Afrekenen"). */
.dps-main a.dps-btn:not(.dps-btn-secondary), .dps-main a.dps-btn:not(.dps-btn-secondary):hover { color: #fff; }
.dps-stats-periods .dps-btn-small { margin-left: 0; }
.dps-stats-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #e8f3fa; border: 1px solid #b9dcef; color: var(--dps-ink); }
.dps-stats-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dps-stats-tools .dps-btn-small { margin-left: 0; }
.dps-stats-shares { display: grid; gap: 8px; margin: 0 0 12px; padding: 14px 16px; background: var(--dps-card); border: 1px solid var(--dps-line); border-radius: 10px; }
.dps-stats-share { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 12px; align-items: center; }
.dps-stats-share-bar { height: 10px; background: var(--dps-bg); border-radius: 5px; overflow: hidden; }
.dps-stats-share-bar span { display: block; height: 100%; background: var(--dps-blue); }
.dps-stats-share small { color: var(--dps-muted); }
@media (max-width: 560px) { .dps-stats-share { grid-template-columns: 1fr auto; } .dps-stats-share-bar { grid-column: 1 / -1; order: 3; } }
@media print {
  .dps-header, .dps-nav, .dps-footer, .dps-skip, .dps-viewas, .dps-cart-note, .dps-stats-tools, .dps-stats-periods, .dps-main > p > a[href*="statistieken"] { display: none !important; }
  body.dps-portal, html { background: #fff; }
  .dps-stats-chart, .dps-stats-shares, .dps-card { break-inside: avoid; }
  .dps-stats-all { display: block; } .dps-stats-all > summary { display: none; }
  .dps-stats-bar span, .dps-stats-share-bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
