[hidden] { display: none !important; }
/* Oakvel client area: builds on ../styles.css (navy ink, champagne gold, serif headings) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.p-head-label { font-size: 13px; color: var(--muted); }
.p-client-pick select { min-height: 40px; padding: 6px 10px; border: 1px solid #9caabd; background: #fff; color: var(--ink); max-width: 230px; }
.p-signout { min-height: 40px; padding: 8px 15px; }
.p-main { padding-block: 34px 80px; min-height: 60vh; }
.p-loading { color: var(--muted); }

/* sign-in */
.p-auth { max-width: 440px; margin: 40px auto; }
.p-auth h1 { font-size: clamp(36px, 5vw, 52px); }
.p-auth > p { color: var(--muted); margin-top: 12px; }
.p-form { margin-top: 26px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); display: grid; gap: 14px; }
.p-form label { font-size: 13px; display: grid; gap: 4px; }
.p-form input, .p-form select { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #9caabd; border-radius: 0; background: #fff; color: var(--ink); font-size: 16px; }
.p-form .button { width: 100%; }
.p-link { background: none; border: 0; padding: 0; color: #254873; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; justify-self: start; }
.p-msg { font-size: 14px; min-height: 1.2em; }
.p-msg.err { color: #9b2c1f; }
.p-msg.ok { color: #1d6b45; }

/* tabs */
.p-greet { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.p-greet h1 { font-size: clamp(34px, 4.4vw, 54px); }
.p-greet p { color: var(--muted); margin-top: 8px; }
.p-tabs { display: flex; gap: 4px 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.p-tabs a { flex: none; padding: 12px 0; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-tabs a:hover { color: var(--ink); }
.p-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--gold); font-weight: 650; }

/* stats */
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 34px; }
.p-stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.p-stat:last-child { border-right: 0; }
.p-stat b { display: block; font: 400 clamp(28px, 3.2vw, 40px)/1.05 var(--serif); letter-spacing: -.03em; }
.p-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.p-stat small { display: block; margin-top: 2px; font-size: 12px; color: #466184; }

.p-grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; }
.p-sec { margin-bottom: 38px; }
.p-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.p-sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.p-sec-head a, .p-sec-head button { font-size: 13px; }
.p-empty { padding: 22px; border: 1px dashed #b8c3d1; color: var(--muted); font-size: 14px; }

/* tables */
.p-scroll { overflow-x: auto; }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #455b77; padding: 10px 12px 10px 0; border-bottom: 1px solid #aab9ca; white-space: nowrap; }
.p-table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-table tr.p-row { cursor: pointer; }
.p-table tr.p-row:hover td { background: #f6f8fb; }
.p-table a { color: #254873; text-decoration: underline; text-underline-offset: 3px; }
.p-nowrap { white-space: nowrap; }
.p-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* status badges */
.p-badge { display: inline-block; padding: 3px 9px; font-size: 12px; border: 1px solid #aab9ca; color: var(--ink); background: #fff; white-space: nowrap; }
.p-badge.s-proof { border-color: #bf9a61; background: #fbf6ee; }
.p-badge.s-production { border-color: #6f8db3; background: #eef3f9; }
.p-badge.s-shipped, .p-badge.s-in_transit { border-color: #254873; background: #254873; color: #fff; }
.p-badge.s-delivered, .p-badge.s-paid { border-color: #2f7a55; background: #edf7f1; color: #1d5c3e; }
.p-badge.s-invoiced { border-color: #bf9a61; }
.p-badge.s-cancelled, .p-badge.s-exception, .p-badge.s-low { border-color: #b4473a; background: #fbefed; color: #8f2e22; }

/* order progress */
.p-progress { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p-progress li { position: relative; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.p-progress li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.p-progress li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #b8c3d1; }
.p-progress li.done { color: var(--ink); }
.p-progress li.done::before { background: var(--gold); }
.p-progress li.done::after { background: var(--gold); border-color: var(--gold); }
.p-progress li.now { color: var(--ink); font-weight: 650; }
.p-progress li.now::after { background: var(--ink); border-color: var(--ink); }
.p-mini-progress { display: block; height: 4px; background: var(--line); margin-top: 8px; max-width: 160px; }
.p-mini-progress i { display: block; height: 100%; background: var(--gold); }

/* order detail */
.p-back { font-size: 13px; color: #254873; }
.p-detail-head { margin: 14px 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: end; }
.p-detail-head h1 { font-size: clamp(32px, 4vw, 48px); }
.p-detail-head p { color: var(--muted); margin-top: 6px; }
.p-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); margin: 26px 0 34px; }
.p-facts div { padding: 14px 16px; border-right: 1px solid var(--line); }
.p-facts div:last-child { border-right: 0; }
.p-facts dt { font-size: 12px; color: var(--muted); }
.p-facts dd { margin: 4px 0 0; font-size: 15px; }
.p-note { padding: 14px 16px; background: #f6f8fb; border-left: 2px solid var(--gold); font-size: 14px; margin-bottom: 30px; }
.p-timeline { list-style: none; padding: 0; margin: 0; }
.p-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p-timeline time { color: var(--muted); font-size: 13px; }
.p-ship { border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; font-size: 14px; }
.p-ship .p-ship-to { color: var(--muted); font-size: 13px; }
.p-sizes { color: var(--muted); font-size: 12.5px; }

/* bars */
.p-bars { display: grid; gap: 8px; }
.p-bar { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13px; }
.p-bar-track { height: 18px; background: #f1f4f8; }
.p-bar-fill { height: 100%; background: var(--ink); }
.p-bar .num { text-align: right; font-variant-numeric: tabular-nums; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-actions .button { min-height: 42px; padding: 9px 16px; }
.p-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.p-filters input, .p-filters select { min-height: 42px; padding: 8px 10px; border: 1px solid #9caabd; background: #fff; color: var(--ink); font-size: 15px; }
.p-filters input { flex: 1 1 220px; }
.p-sample { font-size: 12.5px; color: #8a6a3b; margin-top: 4px; }
.p-linkbox { margin-top: 12px; padding: 12px; background: #f6f8fb; font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .p-grid2 { grid-template-columns: 1fr; }
  .p-stats, .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-stat:nth-child(2), .p-facts div:nth-child(2) { border-right: 0; }
  .p-stat:nth-child(-n+2), .p-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 730px) {
  .p-head-label { display: none; }
  .p-client-pick select { max-width: 150px; }
  .p-progress li { font-size: 11px; }
  .p-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .p-bar { grid-template-columns: 56px minmax(0, 1fr) 84px; }
  .p-ship { grid-template-columns: 1fr; }
}

/* demo bar */
.p-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; margin-bottom: 26px; background: #fbf6ee; border: 1px solid #e6d5b8; font-size: 13px; }
.p-demo span { color: #6b5330; margin-right: 4px; }
.p-demo button { min-height: 36px; padding: 6px 12px; border: 1px solid #c8b08a; background: #fff; color: var(--ink); font-size: 13px; }
.p-demo button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.button.p-small { min-height: 38px; padding: 7px 13px; font-size: 12.5px; gap: 8px; }
.p-badge.s-submitted { border-color: #bf9a61; background: #fbf6ee; }
.p-badge.s-approved, .p-badge.s-in_progress, .p-badge.s-ordered { border-color: #6f8db3; background: #eef3f9; }
.p-badge.s-completed { border-color: #2f7a55; background: #edf7f1; color: #1d5c3e; }
.p-badge.s-rejected { border-color: #b4473a; background: #fbefed; color: #8f2e22; }
.p-badge.s-not_invoiced { color: var(--muted); }
.p-bar-wide { grid-template-columns: 150px minmax(0, 1fr) 70px; }
.p-bar-fill.gold { background: var(--gold); }
.p-doc { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p-doc > span { display: block; }

/* forms */
.p-wide { max-width: 760px; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-form textarea { width: 100%; padding: 9px 10px; border: 1px solid #9caabd; border-radius: 0; font-size: 16px; color: var(--ink); resize: vertical; }
.p-form .button { width: auto; justify-self: start; }
.p-auth .p-form .button { width: 100%; }
.p-lines { border: 1px solid var(--line); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
.p-lines legend { font-size: 13px; padding: 0 4px; }
#rq-lines { display: grid; gap: 8px; }
.p-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 90px auto; gap: 8px; align-items: center; }
.p-line input[hidden] { display: none; }
.p-line:has(input[hidden]) { grid-template-columns: minmax(0, 3.4fr) 90px auto; }
.p-inline { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: end; padding: 16px; }
.p-inline .p-msg { grid-column: 1 / -1; }
.p-check { display: flex !important; align-items: center; gap: 8px; font-size: 14px; }
.p-check input, .p-chip input, .p-switch input { width: 18px; height: 18px; min-height: 0; accent-color: #142742; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.p-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

/* dialog */
.p-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid #9caabd; padding: 26px 28px 28px; background: #fff; color: var(--ink); }
.p-dialog::backdrop { background: #14274280; }
.p-dialog h2 { font-size: 32px; padding-right: 40px; }
.p-dialog .p-form { border: 0; padding: 0; margin-top: 18px; }
.p-dlg-close { position: absolute; top: 14px; right: 14px; }
.p-dlg-close button { width: 40px; height: 40px; border: 1px solid #aab9ca; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; color: var(--ink); }
.p-seg { display: flex; margin-top: 18px; border: 1px solid #9caabd; width: fit-content; max-width: 100%; }
.p-seg button { min-height: 40px; padding: 8px 14px; border: 0; border-right: 1px solid #9caabd; background: #fff; color: var(--ink); font-size: 13px; }
.p-seg button:last-child { border-right: 0; }
.p-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.p-hist-h { font-size: 20px; margin: 24px 0 6px; }

.p-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; }
.p-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 730px) {
  .p-two { grid-template-columns: 1fr; }
  .p-line, .p-line:has(input[hidden]) { grid-template-columns: minmax(0, 1fr) 80px auto; }
  .p-line input:not([hidden]):not([type=number]) { grid-column: 1 / -1; order: 2; }
  .p-inline { grid-template-columns: 1fr; }
  .p-bar-wide { grid-template-columns: 110px minmax(0, 1fr) 56px; }
  .p-demo { font-size: 12px; }
}
.p-bar-track, .p-bar-fill { display: block; }
/* product pictures */
.p-art { display: block; flex: none; border-radius: 8px; object-fit: cover; background: #f4f1ec; }
.p-prod { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.p-dlg-pic { margin-bottom: 12px; }
.p-sub-h { font-size: 22px; margin: 26px 0 10px; }
.p-market { border-top: 1px solid var(--line); }
.p-market:last-child { border-bottom: 1px solid var(--line); }
.p-market summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; cursor: pointer; font-size: 15px; list-style: none; }
.p-market summary::-webkit-details-marker { display: none; }
.p-market summary span:first-child::before { content: "+"; display: inline-block; width: 18px; color: var(--gold); }
.p-market[open] summary span:first-child::before { content: "–"; }
/* market panel with map */
.p-marketbar { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 22px; margin-bottom: 20px; background: var(--ink); color: #fff; }
.p-marketbar.with-map { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: center; }
.p-mk-side label { display: block; font: 400 26px/1 var(--serif); margin-bottom: 10px; }
.p-marketbar select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #bf9a61; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.p-marketbar select:disabled { opacity: 1; }
.p-mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2c4670; margin-top: 14px; border: 1px solid #2c4670; }
.p-mk-stat { background: var(--ink); padding: 10px 12px; }
.p-mk-stat b { display: block; font: 400 26px/1.05 var(--serif); }
.p-mk-stat span { font-size: 12px; color: #b9c6d8; }
.p-mk-stat.warn b { color: #f0a08f; }
.p-mk-actions { display: flex; gap: 14px; margin-top: 12px; }
.p-mk-btn { background: none; border: 0; padding: 4px 0; color: #e7c991; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.p-mk-legend { margin-top: 10px; font-size: 12px; color: #b9c6d8; line-height: 1.6; }
.p-mk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 5px 0 0; vertical-align: -1px; }
.p-mk-legend i.ok { background: #d9b27a; } .p-mk-legend i.lo { background: #e0705f; margin-left: 10px; }
.p-mk-map { min-width: 0; }
.om { display: block; width: 100%; height: auto; }
.om-land { fill: #1b3051; stroke: #2a4369; stroke-width: .8; }
.om-us { fill: #213c63; }
.om-lines { fill: none; stroke: #36547f; stroke-width: .8; }
.om-cty { fill: #4d6890; font: 700 13px var(--sans); letter-spacing: .3em; text-anchor: middle; }
.om-dot { cursor: pointer; outline: none; }
.om-c { stroke: #0e1d33; stroke-width: 2; transition: r .15s; }
.om-dot:hover .om-c, .om-dot:focus-visible .om-c { stroke: #fff; }
.om-dot.sel .om-c { stroke: #fff; stroke-width: 3; }
.om-dot.dim { opacity: .45; }
.om-l { fill: #fff; font: 700 15px var(--sans); letter-spacing: .04em; paint-order: stroke; stroke: #142742; stroke-width: 4px; stroke-linejoin: round; }
.om-dot.sel .om-l { fill: #e7c991; font-size: 17px; }
.om-n { fill: #142742; font: 700 11px var(--sans); text-anchor: middle; pointer-events: none; }
.om-pulse { fill: none; stroke: #e0705f; stroke-width: 2; opacity: .55; animation: om-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes om-pulse { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .om-pulse { animation: none; } }
@media (max-width: 900px) { .p-marketbar.with-map { grid-template-columns: 1fr; } .p-mk-map { order: -1; } }
.p-min { width: 84px; min-height: 38px; padding: 6px 8px; border: 1px solid #9caabd; text-align: right; font-size: 15px; color: var(--ink); background: #fff; }
.p-min:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(191,154,97,.45); }
.p-red { color: #8f2e22; }
.p-seg-inline { margin-top: 0; }
.p-mx-wrap { border: 1px solid var(--line); }
.p-matrix th, .p-matrix td { padding: 8px 10px; }
.p-matrix th:first-child, .p-matrix td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 220px; }
.p-matrix th { white-space: normal; min-width: 92px; }
.p-mx button { display: block; width: 100%; border: 0; background: none; padding: 4px 2px; text-align: right; font: 600 15px var(--sans); color: var(--ink); }
.p-mx button small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.p-mx-low { background: #fbefed; }
.p-mx-low button { color: #8f2e22; }
.p-mx-none { color: #b8c3d1; }

.p-grid2 > *, .p-sec, .p-main { min-width: 0; }
@media (max-width: 600px) { .om-l { font-size: 24px; stroke-width: 6px; } .om-dot.sel .om-l { font-size: 26px; } .om-cty { display: none; } .p-marketbar { padding: 14px; } }
@media (max-width: 730px) { .p-bar-wide { grid-template-columns: 96px minmax(0, 1fr) auto; } }

/* ===== compact layout: more on screen, less scrolling ===== */
.p-main { padding-block: 14px 40px; }
.header-inner { min-height: 58px; }
.p-demo { padding: 7px 10px; margin-bottom: 10px; gap: 6px; font-size: 12px; }
.p-demo button { min-height: 30px; padding: 3px 9px; font-size: 12px; }
.p-marketbar { padding: 12px 14px; gap: 14px; margin-bottom: 10px; }
.p-marketbar.with-map { grid-template-columns: 230px minmax(0, 1fr); }
.p-mk-side label { font-size: 20px; margin-bottom: 6px; }
.p-marketbar select { min-height: 36px; padding: 5px 9px; font-size: 14px; }
.p-mk-stats { margin-top: 8px; }
.p-mk-stat { padding: 6px 9px; }
.p-mk-stat b { font-size: 20px; }
.p-mk-stat span { font-size: 11px; }
.p-mk-actions { margin-top: 6px; }
.p-mk-legend { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.p-mk-map { display: flex; justify-content: center; }
.om { max-height: 270px; width: auto; max-width: 100%; }
.p-tabs { margin-bottom: 12px; gap: 2px 20px; }
.p-tabs a { padding: 7px 0; font-size: 13.5px; }
.p-greet { margin-bottom: 10px; gap: 10px; align-items: baseline; }
.p-greet h1 { font-size: clamp(24px, 2.4vw, 30px); }
.p-greet p { margin-top: 2px; font-size: 13px; }
.p-greet .p-sub { display: inline; margin-left: 6px; }
.p-stats { margin-bottom: 14px; }
.p-stat { padding: 9px 14px; }
.p-stat b { font-size: clamp(20px, 2vw, 26px); }
.p-stat span { margin-top: 2px; font-size: 12px; }
.p-stat small { font-size: 11px; }
.p-grid2 { gap: 22px; }
.p-sec { margin-bottom: 18px; }
.p-sec-head { margin-bottom: 6px; }
.p-sec-head h2 { font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -.01em; }
.p-table { font-size: 13px; }
.p-table th { padding: 6px 10px 6px 0; font-size: 10px; }
.p-table td { padding: 6px 10px 6px 0; vertical-align: middle; }
.p-sub { font-size: 11.5px; margin-top: 0; }
.p-prod { gap: 8px; min-width: 150px; }
.p-badge { padding: 1px 7px; font-size: 11px; }
.button.p-small { min-height: 32px; padding: 4px 11px; font-size: 12px; }
.p-filters { margin-bottom: 10px; gap: 8px; }
.p-filters input, .p-filters select { min-height: 34px; padding: 4px 8px; font-size: 14px; }
.p-min { width: 70px; min-height: 30px; padding: 3px 6px; font-size: 13px; }
.p-detail-head { margin: 6px 0 12px; }
.p-detail-head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.p-facts { margin: 12px 0 16px; }
.p-facts div { padding: 8px 12px; }
.p-facts dd { font-size: 14px; margin-top: 2px; }
.p-note { padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.p-progress li { padding-top: 15px; font-size: 11.5px; }
.p-timeline li { padding: 6px 0; font-size: 13px; grid-template-columns: 96px 1fr; }
.p-market summary { padding: 8px 0; font-size: 14px; }
.p-sub-h { font-size: 18px; margin: 14px 0 4px; }
.p-bars { gap: 5px; }
.p-bar-track { height: 13px; }
.p-bar { font-size: 12px; }
.p-mini-progress { margin-top: 4px; height: 3px; }
.p-ship { padding: 10px 12px; margin-bottom: 8px; }
.p-doc { padding: 7px 0; font-size: 13px; }
.p-matrix th, .p-matrix td { padding: 4px 8px; }
.p-mx button { padding: 2px; font-size: 13px; }
.p-form { gap: 10px; padding: 14px 16px; margin-top: 12px; }
.p-form input, .p-form select { min-height: 38px; padding: 6px 9px; }
.p-dialog { padding: 18px 20px 20px; }
.p-dialog h2 { font-size: 24px; }
.p-dlg-pic { margin-bottom: 6px; }
.p-hist-h { font-size: 17px; margin: 14px 0 2px; }
.p-empty { padding: 12px 14px; font-size: 13px; }
footer .footer-inner { min-height: 60px; padding-block: 10px; }
@media (max-width: 900px) { .p-marketbar.with-map { grid-template-columns: 1fr; } .om { max-height: 240px; } }
.p-marketbar.with-map { grid-template-columns: 220px minmax(0, 1fr) 200px; align-items: stretch; }
.p-mk-right { display: flex; flex-direction: column; justify-content: center; }
.p-mk-title { font: 400 18px/1.2 var(--serif); margin-bottom: 6px; color: #e7c991; }
.p-mk-right .p-mk-stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
.p-mk-side { display: flex; flex-direction: column; justify-content: center; }
.om { max-height: 250px; }
.om-l { font-size: 25px; stroke-width: 6px; }
.om-dot.sel .om-l { font-size: 28px; }
.om-n { font-size: 15px; }
.om-cty { font-size: 17px; }
.p-last { white-space: nowrap; max-width: 330px; overflow: hidden; text-overflow: ellipsis; }
.p-last .p-sub { display: inline; }
@media (max-width: 1100px) { .p-marketbar.with-map { grid-template-columns: 210px minmax(0, 1fr); } .p-mk-right { grid-column: 1 / -1; } .p-mk-right .p-mk-stats { grid-template-columns: repeat(4, 1fr); } .p-mk-title { display: none; } }
@media (max-width: 900px) { .p-marketbar.with-map { grid-template-columns: 1fr; } .p-mk-right .p-mk-stats { grid-template-columns: 1fr 1fr; } }
/* client branding: client logo leads, Oakvel stays small */
.p-client-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-client-logo { display: block; max-height: 34px; max-width: 200px; width: auto; object-fit: contain; }
.p-client-name { font: 800 24px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.p-client-tag { padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; }
.p-head-label { font-size: 11.5px; color: var(--muted); }
.p-oak { font-family: var(--serif); letter-spacing: .22em; color: var(--ink); font-size: 12px; }
.p-footer { background: #f4f6f9; color: var(--muted); border-top: 1px solid var(--line); }
.p-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 14px; font-size: 12px; }
.p-footer a { color: var(--ink); }
@media (max-width: 600px) { .p-client-tag { display: none; } .p-client-name { font-size: 20px; } }
/* products catalog */
.p-chipbar { display: flex; flex-wrap: wrap; gap: 6px; }
.p-catchip { min-height: 32px; padding: 3px 11px; border: 1px solid #b8c3d1; background: #fff; color: var(--ink); font-size: 12.5px; }
.p-catchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.p-pcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.p-pcard:hover, .p-pcard:focus-visible { border-color: #849ab4; }
.p-pcard h3 { font: 600 14px/1.25 var(--sans); }
.p-pbody { min-width: 0; display: grid; gap: 3px; align-content: start; }
.p-pspec { font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-pmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; }
.p-pstock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; }
.p-pfoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 3px; }
.p-pfoot .button.p-small { min-height: 28px; padding: 2px 10px; font-size: 11.5px; }
.p-pdlg-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.p-facts-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.p-facts-sm div:nth-child(2n) { border-right: 0; }
.p-facts-sm div { border-bottom: 1px solid var(--line); }
.p-hl td { background: #fbf6ee; font-weight: 600; }
.p-dialog { width: min(640px, calc(100% - 24px)); }
.p-pgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.p-pcard { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; padding: 8px; align-items: center; }
.p-pcard h3 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-pbody { gap: 1px; }
.p-pline { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-pfoot { margin-top: 2px; }
.p-pstock { font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.p-pfoot .button.p-small { min-height: 24px; padding: 1px 8px; font-size: 11px; }
.p-facts-sm div { padding: 6px 10px; }
.p-facts-sm dt { font-size: 11px; } .p-facts-sm dd { font-size: 13px; margin-top: 1px; }
.p-pdlg-head h2 { font-size: 22px; }
.p-pline .p-sub, .p-pstock .p-sub { display: inline; }
img.p-art{object-fit:contain;background:#fff;border-radius:8px;display:block}

/* ---- events ---- */
.p-tab-n { display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: #b4473a; color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-weight: 600; }
.p-today-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; margin-bottom: 16px; }
.p-today { border: 1px solid #c9d3df; border-left: 4px solid var(--gold); padding: 10px 14px 6px; background: #fff; min-width: 0; }
.p-today-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.p-today-k { margin: 0; font-size: 12px; font-weight: 650; color: #8a6a3a; }
.p-today h2 { font-size: 19px; margin: 1px 0 0; } .p-today h2 a { color: var(--ink); }
.p-today-sub { margin: 6px 0 2px; }
.p-alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #e3b9b3; border-left: 3px solid #b4473a; background: #fdf5f4; margin-bottom: 6px; font-size: 13.5px; }
.p-alert p { margin: 2px 0 0; } .p-alert a { color: var(--ink); } .p-alert-act { flex: none; }
.p-ev-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; }
.p-ev-date { white-space: nowrap; }
.p-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .p-cal-head h2 { font-size: 18px; margin: 0 4px; min-width: 150px; }
.p-cal-nav { border: 1px solid #c9d3df; background: #fff; width: 28px; height: 28px; cursor: pointer; color: var(--ink); font-size: 17px; line-height: 1; }
.p-cal-nav:hover { border-color: var(--ink); }
.p-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.p-cal-w { font-size: 11px; color: var(--muted); padding: 3px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f6f8fb; }
.p-cal-d { min-height: 74px; padding: 2px 3px 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-cal-d.off { background: #fafbfc; } .p-cal-d.off .p-cal-n { color: #b3bcc7; }
.p-cal-d.today { background: #fbf6ee; box-shadow: inset 0 0 0 2px var(--gold); }
.p-cal-n { font-size: 11px; color: var(--muted); }
.p-cal-ev { display: block; padding: 1px 4px; background: #eef3f9; border-left: 3px solid #254873; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; line-height: 16px; }
.p-cal-ev:hover { background: #dfe8f3; }
.p-cal-ev.warn { background: #fbefed; border-color: #b4473a; } .p-cal-ev.done { background: #f1f3f5; border-color: #9aa6b4; color: #5b6878; } .p-cal-ev.cx { text-decoration: line-through; opacity: .55; }
.p-cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.p-cal-key i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; background: #eef3f9; border-left: 3px solid #254873; }
.p-cal-key i.warn { background: #fbefed; border-color: #b4473a; } .p-cal-key i.done { background: #f1f3f5; border-color: #9aa6b4; }
.p-cal-key i.act { background: #254873; border: 0; } .p-cal-key i.exp { background: repeating-linear-gradient(135deg, #bf9a61 0 3px, #e8d6b8 3px 6px); border: 0; }
.p-past > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; padding: 4px 0; } .p-past > summary::-webkit-details-marker { display: none; }
.p-past > summary h2 { font-size: 17px; margin: 0; } .p-past > summary::before { content: '›'; display: inline-block; transition: transform .15s; } .p-past[open] > summary::before { transform: rotate(90deg); }
.p-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p-ev-line { grid-template-columns: minmax(0, 2fr) 90px minmax(0, 1fr) auto; }
.p-ev-hint { font-size: 12.5px; }
.p-ev-total td { font-weight: 650; border-top: 2px solid var(--ink); }
/* reports */
.p-stat.warn b { color: #8f2e22; }
.p-wk { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; padding-top: 6px; }
.p-wk-c { display: flex; flex-direction: column; align-items: stretch; height: 100%; min-width: 0; }
.p-wk-c.now { background: #fbf6ee; }
.p-wk-bars { flex: 1; display: flex; gap: 2px; align-items: flex-end; justify-content: center; border-bottom: 1px solid #9caabd; }
.p-wk-bars i { display: block; width: 42%; max-width: 16px; min-height: 1px; }
.p-wk-bars i.act { background: #254873; } .p-wk-bars i.exp { background: repeating-linear-gradient(135deg, #bf9a61 0 3px, #e8d6b8 3px 6px); }
.p-wk-c span { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; padding-top: 3px; }
.p-urgent td { background: #fdf5f4; }
.p-evd { border-bottom: 1px solid var(--line); } .p-evd > summary { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; cursor: pointer; list-style: none; font-size: 13.5px; } .p-evd > summary::-webkit-details-marker { display: none; }
.p-evd > summary > span:first-child { min-width: 0; } .p-evd-r { flex: none; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.p-evd .p-table { margin-bottom: 8px; }
@media (max-width: 900px) { .p-ev-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .p-cal-d { min-height: 50px; } .p-cal-ev span { display: none; } .p-cal-ev { padding: 0 2px; font-size: 10px; } .p-cal-head h2 { min-width: 0; font-size: 16px; }
  .p-three { grid-template-columns: 1fr 1fr; } .p-three label:last-child { grid-column: 1 / -1; }
  .p-ev-line { grid-template-columns: minmax(0, 1fr) 76px auto; } .p-ev-hint { grid-column: 1 / -1; order: 3; }
  .p-alert { flex-direction: column; align-items: stretch; } .p-today-wrap { grid-template-columns: 1fr; }
  .p-wk { grid-template-columns: repeat(17, minmax(0, 1fr)); height: 120px; } .p-wk-c:nth-child(odd) span { visibility: hidden; }
}
@media (max-width: 640px) { .p-evrow td:nth-child(3) { display: none; } .p-ev-date { white-space: normal; width: 92px; } .p-evrow td { padding-left: 4px; padding-right: 4px; } }

/* ---- accounts, team, admin ---- */
.p-client-brandname { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .p-client-brandname { display: inline; border-left: 0; padding-left: 8px; } }
.p-team-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.p-adm-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .p-team-grid, .p-adm-grid { grid-template-columns: 1fr; } }
.p-adm-acct { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 14px; }
.p-adm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.p-adm-head h2 { margin: 0; font-size: 19px; } .p-adm-head > div { flex: 1; min-width: 0; }
.p-adm-logo { width: 88px; height: 36px; object-fit: contain; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.p-adm-nologo { background: #eef3f9; color: var(--ink); font-weight: 700; font-size: 13px; }
.p-adm-brand { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 14px; border-bottom: 1px solid var(--line); }
.p-adm-brand:last-child { border-bottom: 0; } .p-adm-brand > div:nth-child(2) { flex: 1; min-width: 0; } .p-adm-brand .p-sub { display: block; }
.p-adm-act { display: flex; gap: 14px; flex: none; }
.p-file { cursor: pointer; }
.p-home { min-height: 34px; padding: 4px 8px; font-size: 13.5px; max-width: 170px; }
