/* PDC B2B - the same feel as new.proteaboekhuis.co.za (values copied from Protea Books 1.9.0 protea-books.css). */
:root {
	--pdc-blue: #2a3e92;
	--pdc-blue-dark: #1e2d6e;
	--pdc-blue-tint: #eef1f9;
	--pdc-ink: #1f2733;
	--pdc-muted: #5b6675;
	--pdc-line: #e5e9f0;
	--pdc-bg: #f7f9fc;
	--pdc-card: #ffffff;
	--pdc-radius: 14px;
	--pdc-shadow: 0 6px 24px rgba(9, 71, 146, .08);
	--pdc-serif: Georgia, 'Times New Roman', serif;
	--pdc-ok: #1e7b46;
	--pdc-error: #b42318;
	--pdc-gutter: clamp(16px, 4vw, 40px);
}

body.pdc-site { background: var(--pdc-bg); color: var(--pdc-ink); }
body.pdc-site .site-content,
body.pdc-site .ast-container { background: transparent; }
body.pdc-site h1, body.pdc-site h2, body.pdc-site h3,
body.pdc-site .entry-title { font-family: var(--pdc-serif); color: var(--pdc-blue); }

/* Astra's own header and footer give way to ours */
body.pdc-site #masthead,
body.pdc-site .site-header,
body.pdc-site #colophon,
body.pdc-site .site-footer,
body.pdc-site .ast-small-footer { display: none !important; }

/* ---------------------------------------------------------------- header */
.pdc-header {
	position: sticky; top: 0; z-index: 1000;
	background: var(--pdc-blue); color: #fff;
	box-shadow: 0 2px 14px rgba(9, 20, 60, .18);
}
.pdc-header__wrap {
	max-width: 1400px; margin: 0 auto; padding: 0 var(--pdc-gutter);
	display: flex; align-items: center; gap: 20px; min-height: 74px;
}
.pdc-header__brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.pdc-header__brand img { height: 52px; width: auto; display: block; }   /* two-line logo: PROTEA / DISTRIBUTION */
.pdc-header__name { font-family: var(--pdc-serif); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: .3px; }
.pdc-header__nav { margin-left: auto; }
.pdc-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.pdc-menu a {
	color: rgba(255, 255, 255, .92); text-decoration: none; font-weight: 600; font-size: .98rem;
	padding: 6px 0; transition: color .15s ease;
}
.pdc-menu a:hover { color: #fff; }
.pdc-nav-check { display: none; }
.pdc-header__toggle { display: none; cursor: pointer; padding: 8px; margin-left: auto; }
.pdc-header__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

@media (max-width: 900px) {
	.pdc-header__toggle { display: block; }
	.pdc-header__nav {
		position: fixed; inset: 74px 0 auto 0; background: var(--pdc-blue);
		padding: 10px 0 20px; margin: 0; display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
	}
	.pdc-nav-check:checked ~ .pdc-header__nav { display: block; }
	.pdc-menu { flex-direction: column; gap: 0; width: 100%; align-items: stretch; }
	.pdc-menu a { display: block; padding: 14px var(--pdc-gutter); border-bottom: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------------------------------------------------------------- footer */
.pdc-footer { background: var(--pdc-blue-dark); color: #fff; margin-top: 48px; }
.pdc-footer__wrap {
	max-width: 1400px; margin: 0 auto; padding: 40px var(--pdc-gutter) 24px;
	display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start;
}
.pdc-footer__name { font-family: var(--pdc-serif); font-size: 1.2rem; font-weight: 700; }
.pdc-footer__tag { opacity: .85; font-size: .95rem; margin: 8px 0 0; max-width: 360px; }
.pdc-footer__links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.pdc-footer__links a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.pdc-footer__links a:hover { color: #fff; text-decoration: underline; }
.pdc-footer__contact { font-size: .92rem; line-height: 1.5; max-width: 320px; }
.pdc-footer__contact p { margin: 0 0 6px; }
.pdc-footer__contact a { color: rgba(255, 255, 255, .88); text-decoration: none; overflow-wrap: anywhere; }
.pdc-footer__contact a:hover { color: #fff; text-decoration: underline; }
.pdc-footer__head { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: .75; margin-bottom: 8px !important; }
.pdc-footer__rep { margin-bottom: 12px !important; }
.pdc-footer__away { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 700; }
.pdc-footer__bar { border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; padding: 16px; font-size: .85rem; opacity: .8; }

/* ---------------------------------------------------------------- order screens */
.pdc-card {
	background: var(--pdc-card); border: 1px solid var(--pdc-line); border-radius: var(--pdc-radius);
	box-shadow: var(--pdc-shadow); padding: 20px 22px; margin: 0 0 20px; color: var(--pdc-ink);
}
.pdc-card.pdc-ok { border-left: 4px solid var(--pdc-ok); }
.pdc-card.pdc-error { border-left: 4px solid var(--pdc-error); }
.pdc-card ul { margin: 8px 0 0 18px; }

.pdc-form label {
	display: block; margin: 0 0 6px;
	font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pdc-muted); font-weight: 600;
}
.pdc-form textarea,
.pdc-form input[type="text"] {
	width: 100%; box-sizing: border-box; margin: 0 0 16px;
	border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 12px;
	background: #fff; color: var(--pdc-ink); font-size: .95rem;
}
.pdc-form textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pdc-form textarea:focus,
.pdc-form input[type="text"]:focus { outline: 2px solid var(--pdc-blue-tint); border-color: var(--pdc-blue); }
.pdc-row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
@media (max-width: 600px) { .pdc-row { grid-template-columns: 1fr; gap: 0; } }

.pdc-btn {
	display: inline-block; background: var(--pdc-blue); color: #fff; border: 0; border-radius: 8px;
	padding: 11px 22px; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
}
.pdc-btn:hover { background: var(--pdc-blue-dark); color: #fff; }

.pdc-table { width: 100%; border-collapse: collapse; }
.pdc-table th,
.pdc-table td { padding: 10px 12px; border-bottom: 1px solid var(--pdc-line); text-align: left; vertical-align: top; }
.pdc-table th { color: var(--pdc-muted); font-weight: 600; font-size: .85rem; }
.pdc-table .pdc-num { text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .pdc-card { overflow-x: auto; padding: 16px; } }

.pdc-card__title { margin: 0 0 12px; font-size: 1.15rem; }
.pdc-muted { color: var(--pdc-muted); font-size: .88rem; }
.pdc-account { background: linear-gradient(160deg, #34489e, var(--pdc-blue)); color: #fff; border: 0; }
.pdc-account__label { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; font-weight: 600; }
.pdc-account__value { margin: 6px 0 0; font-family: var(--pdc-serif); font-size: 2rem; font-weight: 700; }
.pdc-account__note { margin: 8px 0 0; font-size: 1rem; }
.pdc-account__note--small { font-size: .85rem; opacity: .85; }
.pdc-account .pdc-muted { color: rgba(255, 255, 255, .8); font-family: inherit; font-size: .85rem; font-weight: 400; }
.pdc-spec th { width: 38%; }

/* ---------------------------------------------------------------- browse (0.1.5) */
/* [hidden] must win over display rules like .pdc-btn's inline-block, or hidden buttons still show */
.pdc-browse [hidden], .pdc-dialog [hidden], .pdc-basket-bar[hidden] { display: none !important; }
.pdc-btn--ghost { background: #fff; color: var(--pdc-blue); box-shadow: inset 0 0 0 1px var(--pdc-blue); }
.pdc-btn--ghost:hover { background: var(--pdc-blue-tint); color: var(--pdc-blue); }
.pdc-btn--small { padding: 8px 14px; font-size: .88rem; }
.pdc-btn:disabled { opacity: .55; cursor: wait; }

.pdc-browse { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pdc-browse__main { min-width: 0; }
.pdc-browse--view { grid-template-columns: 1fr; }   /* staff view: no order panel */
.pdc-staff-note { border-left: 4px solid var(--pdc-blue); }
.pdc-item__free { display: inline-block; margin-left: 8px; font-size: .78rem; font-weight: 700; color: var(--pdc-muted); }
@media (max-width: 960px) { .pdc-browse { grid-template-columns: 1fr; } }

.pdc-filters { display: grid; grid-template-columns: 1fr 2fr 2fr auto; gap: 12px 16px; align-items: end; }
.pdc-filters__field label { display: block; margin: 0 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pdc-muted); font-weight: 600; }
.pdc-filters__field input { width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 12px; font-size: .95rem; background: #fff; color: var(--pdc-ink); }
.pdc-filters__field input:focus { outline: 2px solid var(--pdc-blue-tint); border-color: var(--pdc-blue); }
.pdc-filters__check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; padding: 9px 0; white-space: nowrap; }
.pdc-filters__check input { width: 16px; height: 16px; accent-color: var(--pdc-blue); }
.pdc-filters__count { grid-column: 1 / -1; margin: 0; color: var(--pdc-muted); font-size: .88rem; min-height: 1.2em; }
@media (max-width: 760px) { .pdc-filters { grid-template-columns: 1fr 1fr; } .pdc-filters__field:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pdc-filters { grid-template-columns: 1fr; } }

.pdc-results { display: grid; gap: 12px; }
.pdc-item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center;
	background: var(--pdc-card); border: 1px solid var(--pdc-line); border-radius: var(--pdc-radius); padding: 12px 16px; box-shadow: var(--pdc-shadow);
}
.pdc-item__cover { width: 64px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--pdc-blue-tint); display: flex; align-items: center; justify-content: center; }
.pdc-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdc-item__nocover { font-size: .65rem; color: var(--pdc-blue); opacity: .6; text-align: center; }
.pdc-item__body p { margin: 0; }
.pdc-item__title { font-family: var(--pdc-serif); font-size: 1.02rem; line-height: 1.25; color: var(--pdc-ink); }
.pdc-item__author { color: var(--pdc-muted); font-size: .88rem; }
.pdc-item__isbn { color: var(--pdc-muted); font-size: .78rem; margin: 2px 0 6px !important; }
.pdc-item__back { color: var(--pdc-muted); font-size: .82rem; margin-top: 4px !important; }
.pdc-item__inbasket { color: var(--pdc-ok); font-size: .82rem; font-weight: 600; margin-top: 4px !important; }
.pdc-item__buy { display: flex; gap: 8px; align-items: center; }
.pdc-item__buy input { width: 72px; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 8px 10px; font-size: .95rem; text-align: right; }
@media (max-width: 560px) {
	.pdc-item { grid-template-columns: 56px minmax(0, 1fr); }
	.pdc-item__cover { width: 56px; }
}
.pdc-more-wrap { text-align: center; margin: 16px 0 0; }

.pdc-basket { position: sticky; top: 90px; }
@media (max-width: 960px) { .pdc-basket { position: static; } }
.pdc-basket__count { color: var(--pdc-muted); font-family: inherit; font-size: .95rem; font-weight: 400; }
.pdc-basket__lines { list-style: none; margin: 0 0 12px; padding: 0; max-height: 50vh; overflow-y: auto; }
.pdc-basket__line { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--pdc-line); }
.pdc-basket__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdc-basket__title { font-weight: 600; font-size: .92rem; }
.pdc-basket__qty { font-size: .85rem; color: var(--pdc-ink); }
.pdc-basket__back, .pdc-basket__warn { font-size: .78rem; color: var(--pdc-muted); }
.pdc-basket__warn { color: var(--pdc-error); }
.pdc-basket__remove { background: none; border: 0; color: var(--pdc-blue); font-size: .82rem; cursor: pointer; padding: 2px 0; text-decoration: underline; flex-shrink: 0; }
.pdc-basket__send label { display: block; margin: 10px 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pdc-muted); font-weight: 600; }
.pdc-basket__send input { width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 12px; font-size: .95rem; }
.pdc-basket__place { width: 100%; margin-top: 14px; }
.pdc-req { color: var(--pdc-error); }
.pdc-basket__send input.pdc-invalid { border-color: var(--pdc-error); box-shadow: 0 0 0 1px var(--pdc-error); }
.pdc-note { border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: .9rem; }
.pdc-note p, .pdc-note ul { margin: 6px 0 0; }
.pdc-note ul { padding-left: 18px; }
.pdc-note a { color: var(--pdc-blue); font-weight: 600; display: inline-block; margin-top: 6px; }
.pdc-note--ok { background: #e5f4ec; border-left: 4px solid var(--pdc-ok); }
.pdc-note--error { background: #fde8e7; border-left: 4px solid var(--pdc-error); }

.pdc-basket-bar { display: none; }
@media (max-width: 960px) {
	.pdc-browse { padding-bottom: 72px; }   /* room under the last card for the "Your order" bar */
	.pdc-basket-bar:not([hidden]) {
		display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
		background: var(--pdc-blue); color: #fff; text-align: center; padding: 12px; border-radius: 999px;
		font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(9, 20, 60, .3);
	}
}

.pdc-dialog { border: 0; border-radius: var(--pdc-radius); padding: 22px 24px; max-width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(9, 20, 60, .35); color: var(--pdc-ink); }
.pdc-dialog::backdrop { background: rgba(9, 20, 60, .45); }
.pdc-dialog__title { font-family: var(--pdc-serif); font-size: 1.25rem; font-weight: 700; color: var(--pdc-blue); margin: 0 0 8px; }
.pdc-dialog__buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------------------------------------------------------------- my orders (0.1.8) */
.pdc-orders [hidden] { display: none !important; }
.pdc-filters--orders { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdc-filters--orders .pdc-filters__check { grid-column: span 1; }
@media (max-width: 960px) { .pdc-filters--orders { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pdc-filters--orders .pdc-filters__field:first-child { grid-column: auto; } }
@media (max-width: 480px) { .pdc-filters--orders { grid-template-columns: 1fr; } }
.pdc-filters__field input[type="date"] { width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 8px 10px; font-size: .95rem; background: #fff; color: var(--pdc-ink); }
.pdc-order {
	background: var(--pdc-card); border: 1px solid var(--pdc-line); border-radius: var(--pdc-radius);
	box-shadow: var(--pdc-shadow); margin: 0 0 12px; overflow: hidden;
}
.pdc-order__summary {
	display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none;
}
.pdc-order__summary::-webkit-details-marker { display: none; }
.pdc-order__summary::before { content: "\25B8"; color: var(--pdc-blue); font-size: .9rem; transition: transform .15s ease; }
.pdc-order[open] > .pdc-order__summary::before { transform: rotate(90deg); }
.pdc-order[open] > .pdc-order__summary { border-bottom: 1px solid var(--pdc-line); background: var(--pdc-blue-tint); }
.pdc-order__ref { font-family: var(--pdc-serif); font-weight: 700; color: var(--pdc-blue); font-size: 1.02rem; }
.pdc-order__date, .pdc-order__po, .pdc-order__omni, .pdc-order__count, .pdc-order__account { color: var(--pdc-muted); font-size: .88rem; }
.pdc-order__account { color: var(--pdc-ink); font-weight: 600; }
.pdc-order__status { font-weight: 600; font-size: .88rem; }
.pdc-order__bo { background: #fde8e7; color: var(--pdc-error); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.pdc-order__body { padding: 8px 18px 16px; overflow-x: auto; }
.pdc-order__title { display: block; font-weight: 600; }
.pdc-order__author { display: block; color: var(--pdc-muted); font-size: .82rem; }
.pdc-order__open { color: var(--pdc-error); font-size: .88rem; }

/* ---------------------------------------------------------------- quick order (0.1.8) */
.pdc-quick__file { margin: 4px 0 16px; }
.pdc-quick__file input[type="file"] { display: block; margin: 0 0 6px; }
.pdc-quick__file a { color: var(--pdc-blue); font-weight: 600; }
.pdc-q-table td, .pdc-q-table th { font-size: .88rem; }
.pdc-q-table select { border: 1px solid var(--pdc-line); border-radius: 6px; padding: 4px 6px; font-size: .85rem; max-width: 100%; }
.pdc-q-ok { color: var(--pdc-ok); font-weight: 600; }
.pdc-q-warn { color: var(--pdc-blue); font-weight: 600; }
.pdc-q-bad { color: var(--pdc-error); font-weight: 600; }
.pdc-q-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; font-size: .88rem; }
.pdc-q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------------------------------------------------------------- prices + indicators (0.1.9) */
.pdc-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pdc-price { text-align: right; line-height: 1.25; }
.pdc-price__mine { display: block; font-weight: 700; font-size: 1.05rem; color: var(--pdc-blue); white-space: nowrap; }
.pdc-price__rrp { display: block; color: var(--pdc-muted); font-size: .78rem; white-space: nowrap; }
.pdc-price__none { color: var(--pdc-muted); font-size: .85rem; }
@media (max-width: 560px) {
	.pdc-item__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
	.pdc-price { text-align: left; }
}
.pdc-ind { display: inline-block; margin: 0 0 0 6px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; vertical-align: middle; }
.pdc-order__title + .pdc-ind, .pdc-order__author + .pdc-ind, td > .pdc-ind:first-of-type { margin-left: 0; }
.pdc-basket__price { font-size: .82rem; color: var(--pdc-muted); }
.pdc-basket__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding-top: 4px; font-size: .95rem; }
.pdc-basket__total strong { font-size: 1.1rem; color: var(--pdc-blue); }
.pdc-order__total { font-weight: 700; font-size: .88rem; color: var(--pdc-blue); }
.pdc-order__totlabel, .pdc-order__totval { font-weight: 700; }
.pdc-order__body tfoot td { border-top: 2px solid var(--pdc-line); border-bottom: 0; }

/* stock level badges (never the exact figure) */
.pdc-level { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pdc-level--none { background: #fde8e7; color: var(--pdc-error); }
.pdc-level--low { background: #fff; color: var(--pdc-blue); box-shadow: inset 0 0 0 1px var(--pdc-blue); }   /* no orange/gold */
.pdc-level--medium { background: var(--pdc-blue-tint); color: var(--pdc-blue); }
.pdc-level--high { background: #e5f4ec; color: var(--pdc-ok); }

/* ---------------------------------------------------------------- reps' pages (0.1.11) */
.pdc-orders [hidden], .pdc-rep [hidden] { display: none !important; }
.pdc-filters select { width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 10px; font-size: .95rem; background: #fff; color: var(--pdc-ink); }
.pdc-filters__export { margin: 0; justify-self: end; grid-column: -2 / -1; }
.pdc-filters__chip { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.pdc-filters__field--wide { grid-column: span 2; }
.pdc-away { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; }
.pdc-away__until { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.pdc-away__until input { border: 1px solid var(--pdc-line); border-radius: 8px; padding: 6px 8px; }
@media (max-width: 760px) { .pdc-filters__field--wide { grid-column: 1 / -1; } .pdc-filters__export { justify-self: start; grid-column: 1 / -1; } }
.pdc-order__status--processing, .pdc-order__status--picked, .pdc-order__status--dispatched { color: var(--pdc-blue); }
.pdc-order__status--delivered { color: var(--pdc-ok); }
.pdc-order__status--cancelled { color: var(--pdc-error); }

.pdc-rep-order { margin: 6px 0 12px; padding: 12px 14px; background: var(--pdc-bg); border: 1px solid var(--pdc-line); border-radius: 10px; }
.pdc-rep-order__facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; font-size: .9rem; }
.pdc-rep-order__facts dt { color: var(--pdc-muted); font-weight: 600; }
.pdc-rep-order__facts dd { margin: 0; }
.pdc-rep-order__stage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pdc-rep-order__stage label { font-weight: 600; font-size: .9rem; }
.pdc-rep-order__stage select, .pdc-rep-order__stage input { border: 1px solid var(--pdc-line); border-radius: 8px; padding: 8px 10px; font-size: .92rem; background: #fff; color: var(--pdc-ink); }
.pdc-rep-order__stage input { flex: 1 1 200px; min-width: 0; }
.pdc-rep-order__msg { font-size: .88rem; color: var(--pdc-muted); }
.pdc-rep-order__log { margin: 10px 0 0; padding: 0 0 0 18px; font-size: .85rem; color: var(--pdc-muted); }

.pdc-sales__totals, .pdc-profile__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.pdc-stat { display: flex; flex-direction: column; gap: 2px; }
.pdc-stat__label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pdc-muted); font-weight: 600; }
.pdc-stat__value { font-family: var(--pdc-serif); font-size: 1.5rem; font-weight: 700; color: var(--pdc-blue); }
.pdc-stat__note { flex-basis: 100%; margin: 0; }
.pdc-table-wrap { overflow-x: auto; }
.pdc-sales tfoot td { font-weight: 700; border-top: 2px solid var(--pdc-line); border-bottom: 0; }
.pdc-sales__name { display: block; font-weight: 600; }
.pdc-sales__key { display: block; color: var(--pdc-muted); font-size: .82rem; }
a.pdc-sales__name { color: var(--pdc-blue); text-decoration: none; }
a.pdc-sales__name:hover { text-decoration: underline; }

.pdc-customers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.pdc-customers__list { display: grid; gap: 8px; }
.pdc-customers__profile { position: sticky; top: 16px; }
@media (max-width: 960px) { .pdc-customers { grid-template-columns: minmax(0, 1fr); } .pdc-customers__profile { position: static; order: -1; min-width: 0; } }
.pdc-profile .pdc-spec td { overflow-wrap: anywhere; }
.pdc-cust { display: block; width: 100%; text-align: left; background: var(--pdc-card); border: 1px solid var(--pdc-line); border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--pdc-ink); font: inherit; }
.pdc-cust:hover, .pdc-cust.is-current { border-color: var(--pdc-blue); background: var(--pdc-blue-tint); }
.pdc-cust__top { display: flex; justify-content: space-between; gap: 10px; }
.pdc-cust__name { font-weight: 700; }
.pdc-cust__acc { color: var(--pdc-muted); font-size: .85rem; white-space: nowrap; }
.pdc-cust__meta { display: block; color: var(--pdc-muted); font-size: .84rem; margin-top: 2px; }
.pdc-badge { display: inline-block; margin: 6px 6px 0 0; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--pdc-line); color: var(--pdc-ink); }
.pdc-badge--warn { background: #fde8e7; color: var(--pdc-error); }
.pdc-profile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pdc-profile__name { margin: 0; font-size: 1.4rem; }
.pdc-profile__stats { margin: 14px 0; }
.pdc-profile__sub { margin-top: 18px; }
.pdc-profile__orders { overflow-x: auto; }
.pdc-profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.pdc-pre { white-space: pre-line; }

/* ---------------------------------------------------------------- 0.1.12: reps add customers + logins */
.pdc-addc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 14px 0 6px; }
.pdc-addc__field--wide { grid-column: 1 / -1; }
.pdc-addc__field label { display: block; margin: 0 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pdc-muted); font-weight: 600; }
.pdc-addc__field input, .pdc-addc__field select, .pdc-addc__field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 12px;
	font: inherit; font-size: .95rem; background: #fff; color: var(--pdc-ink);
}
.pdc-addc__field input:focus, .pdc-addc__field select:focus, .pdc-addc__field textarea:focus { outline: 2px solid var(--pdc-blue-tint); border-color: var(--pdc-blue); }
.pdc-addc__hint { display: block; margin-top: 4px; font-size: .8rem; }
.pdc-addc__send { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; white-space: normal; }
.pdc-addc__send input { flex: 0 0 auto; margin-top: 2px; }
.pdc-addc__msg:empty { display: none; }
.pdc-addc__logins { margin-top: 6px; }
.pdc-addc__login { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--pdc-line); }
.pdc-addc__who { min-width: 0; overflow-wrap: anywhere; }
.pdc-addc__login .pdc-error { flex-basis: 100%; margin: 0; }
.pdc-addc--login { margin-top: 10px; padding: 12px 14px; background: var(--pdc-bg); border: 1px solid var(--pdc-line); border-radius: 10px; }
@media (max-width: 560px) { .pdc-addc__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 0.1.13: edit customers, publishers, stock upload */
.pdc-addc__msg.pdc-ok { color: var(--pdc-ok); font-weight: 600; }
.pdc-addc__field input[readonly] { background: var(--pdc-bg); color: var(--pdc-muted); }
.pdc-changes { margin-top: 6px; }
.pdc-changes td { font-size: .88rem; vertical-align: top; overflow-wrap: anywhere; }
.pdc-changes__at { white-space: nowrap; color: var(--pdc-muted); }
.pdc-p-bq { width: 100%; box-sizing: border-box; border: 1px solid var(--pdc-line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: .95rem; margin: 4px 0 10px; }
#pdc-p-panel .pdc-table td:first-child, #pdc-p-panel .pdc-table th:first-child { width: 28px; }
.pdc-upload input[type="file"] { display: block; max-width: 100%; margin: 4px 0 6px; }
.pdc-upload__list { margin: 10px 0 0; }
.pdc-upload__list summary { cursor: pointer; font-weight: 600; }
.pdc-upload__list ul { margin: 8px 0 0 18px; font-size: .9rem; overflow-wrap: anywhere; }
.pdc-upload__go { margin-top: 16px; }
.pdc-contact { margin-top: 0; }
/* 0.1.20: Download for Omni */
.pdc-rep-order__omni { margin: 10px 0; font-size: .88rem; }
/* 0.1.17: branch nr = head office nr + 3 digits */
.pdc-addc__acc { display: flex; align-items: stretch; }
.pdc-addc__prefix { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--pdc-line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--pdc-bg); color: var(--pdc-ink); font-weight: 600; white-space: nowrap; }
.pdc-addc__prefix[hidden] { display: none; }
.pdc-addc__prefix:not([hidden]) + input { border-radius: 0 8px 8px 0; min-width: 0; }
/* 0.1.14: delete account, hidden books */
.pdc-btn.pdc-btn--danger { color: var(--pdc-error); border-color: var(--pdc-error); }
.pdc-btn.pdc-btn--danger:hover { background: var(--pdc-error); color: #fff; }
.pdc-p-hide { white-space: nowrap; font-size: .88rem; }
#pdc-p-panel tr.is-hidden td:not(:nth-child(5)) { opacity: .5; }

/* ---------------------------------------------------------------- 0.1.12: Terms of trade, Privacy notice */
.pdc-missing { color: var(--pdc-error); font-weight: 600; }
.pdc-legal__details { max-width: 640px; margin: 10px 0 18px; }
.pdc-footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 22px; font-size: .9rem; }
@media (max-width: 900px) { .pdc-header__nav--out { display: block; position: static; background: none; box-shadow: none; padding: 0; margin-left: auto; } .pdc-header__nav--out .pdc-menu a { border: 0; padding: 6px 0; } }
