/* PDM V176.4.4.9.49 Current Server Recovery R4 */

/* Public blue header is sticky/fixed according to the host, but reveals by scroll direction. */
body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar,
html.pdm-v156-miniapp body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar {
  top:0!important;
  z-index:1200!important;
  -webkit-transform:translate3d(0,0,0)!important;
  transform:translate3d(0,0,0)!important;
  transition:-webkit-transform .14s ease-out,transform .14s ease-out!important;
  will-change:transform;
}
body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar.pdm-v17644949-topbar-hidden,
html.pdm-v156-miniapp body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar.pdm-v17644949-topbar-hidden {
  -webkit-transform:translate3d(0,calc(-100% - 2px),0)!important;
  transform:translate3d(0,calc(-100% - 2px),0)!important;
  pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
  body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar{transition:none!important}
}

/* Product cards: cart and details remain in one row on phones. */
.product-actions,
.card .product-actions,
[data-product-card] .btn-row,
.pdm-product-card .btn-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
.product-actions .btn,
[data-product-card] .btn-row .btn { min-width:0; white-space:normal; }

/* One favorite toggle: obsolete navigation buttons are removed by JS and hidden as fallback. */
#goFavBtn,#goAdFavBtn { display:none!important; }

/* Practical photo controls and preview. */
.pdm-v131-photo-preview{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.pdm-v17644949-photo-card{position:relative;border:1px solid #dbe5ef;border-radius:14px;padding:8px;background:#fff}
.pdm-v17644949-photo-card img{width:100%;height:120px;object-fit:cover;border-radius:10px;background:#f8fafc}
.pdm-v17644949-photo-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}
.pdm-v17644949-photo-actions button{border:0;border-radius:9px;min-height:36px;font-weight:900;background:#eaf2ff;color:#1d4ed8}
.pdm-v17644949-photo-actions button[data-photo-action="delete"]{background:#fee2e2;color:#991b1b}

.pdm-v17644949-preview-backdrop{position:fixed;inset:0;z-index:30000;background:rgba(15,23,42,.72);display:flex;align-items:flex-start;justify-content:center;padding:18px;overflow:auto}
.pdm-v17644949-preview{width:min(720px,100%);background:#fff;border-radius:22px;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.35)}
.pdm-v17644949-preview h2{margin:0 0 12px}
.pdm-v17644949-preview-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:12px 0}
.pdm-v17644949-preview-media img{width:100%;height:130px;object-fit:cover;border-radius:12px}
.pdm-v17644949-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}

/* Mobile moderation: never show compact and full copies simultaneously. */
@media(max-width:760px){
  #pdm-v1764-root.pdm-v17644949-card-open [data-v1764-list]{display:none!important}
  #pdm-v1764-root:not(.pdm-v17644949-card-open) [data-v1764-card]{display:none!important}
  #pdm-v1764-root .pdm-v1764-layout{display:block!important}
  #pdm-v1764-root [data-v1764-card]{width:100%!important}
  .pdm-v17644949-back-list{display:inline-flex!important;margin-bottom:10px}
}
@media(min-width:761px){.pdm-v17644949-back-list{display:none!important}}

.pdm-v17644949-zero-price-hint{margin:10px 0;padding:12px;border-radius:14px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pdm-v17644949-zero-price-hint[hidden]{display:none!important}

/* Compact staff cards remain informative when collapsed. */
.pdm-v17644949-collapsible{position:relative}
.pdm-v17644949-collapse-toggle{position:absolute;right:10px;top:10px;z-index:3;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;min-width:38px;min-height:38px;font-weight:900}
.pdm-v17644949-collapsible.pdm-v17644949-collapsed > *:not(:first-child):not(.pdm-v17644949-collapse-toggle):not([class*="status"]):not([class*="head"]){display:none!important}

/* Consistent Ukrainian notice. */
.pdm-v17644949-notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:40000;max-width:min(520px,calc(100vw - 24px));padding:12px 16px;border-radius:14px;background:#0f172a;color:#fff;box-shadow:0 14px 42px rgba(15,23,42,.35);font-weight:800}
.pdm-v17644949-sound-setting{display:grid;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fafc}
.pdm-v17644949-sound-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pdm-v17644949-sound-toggle{display:flex;align-items:center;gap:7px;white-space:nowrap;font-weight:800}
.pdm-v17644949-sound-toggle input{width:auto;margin:0}
.pdm-v17644949-volume-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,2fr) 52px;align-items:center;gap:10px;font-weight:800}
.pdm-v17644949-volume-row input[type=range]{width:100%;padding:0;border:0;background:transparent;accent-color:#2563eb}
.pdm-v17644949-volume-row output{text-align:right;font-variant-numeric:tabular-nums;color:#1d4ed8}
.pdm-v17644949-sound-off .pdm-v17644949-volume-row{opacity:.55}
@media(max-width:520px){.pdm-v17644949-sound-head{align-items:flex-start}.pdm-v17644949-volume-row{grid-template-columns:1fr 52px}.pdm-v17644949-volume-row>span{grid-column:1/-1}}


/* Real compact state: keep number/status/workflow and essential client summary visible. */
.order-card.pdm-v17644949-collapsed .pdm-v92336-main > *:not(.pdm-v92336-title):not(.pdm-v92336-meta):not(.pdm-v947-workflow),
.order-card.pdm-v17644949-collapsed > .pdm-v92336-actions,
.order-card.pdm-v17644949-collapsed > .pdm-v88-status-actions{display:none!important}
.customer-card.pdm-v17644949-collapsed .pdm-v92337-main > *:not(.pdm-v92337-title):not(.pdm-v92337-meta):not(.pdm-v92337-customer-contacts),
.customer-card.pdm-v17644949-collapsed > .pdm-v92337-actions{display:none!important}

.pdm-v17644949-floating-inbox{position:fixed;right:14px;bottom:76px;z-index:25000;border:0;border-radius:999px;min-height:46px;padding:0 14px;background:#1d4ed8;color:#fff;box-shadow:0 10px 30px rgba(29,78,216,.35);font-weight:900;display:flex;align-items:center;gap:7px}
.pdm-v17644949-floating-inbox[hidden]{display:none!important}
.pdm-v17644949-floating-inbox b{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px}

.pdm-admin-load-error .btn-row{margin-top:12px;max-width:320px}

/* R5 atomic moderator edit: explicit per-card result instead of generic fetch errors. */
.pdm-v17644949-save-status{grid-column:1/-1;width:100%;padding:10px 12px;border-radius:12px;font-weight:800;line-height:1.3}
.pdm-v17644949-save-status[hidden]{display:none!important}
.pdm-v17644949-save-status.pending{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.pdm-v17644949-save-status.success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.pdm-v17644949-save-status.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

/* Do not cover moderation actions on narrow screens: dock Inbox as a compact edge button. */
@media(max-width:760px){
  .pdm-v17644949-floating-inbox{right:4px;bottom:82px;width:46px;min-width:46px;height:46px;padding:0;justify-content:center;border-radius:14px;gap:0}
  .pdm-v17644949-floating-inbox span{display:none}
  .pdm-v17644949-floating-inbox b{position:absolute;right:-3px;top:-5px;min-width:18px;height:18px;font-size:11px;padding:0 4px}
}


/* R5G: native scrolling starts immediately; no script owns the page gesture. */
html:not(.pdm-admin-body),
body:not(.pdm-admin-body),
body:not(.pdm-admin-body) main,
body:not(.pdm-admin-body) .app-shell,
body:not(.pdm-admin-body) .classified-detail-card,
body:not(.pdm-admin-body) .pdm-v138-modal-box,
body:not(.pdm-admin-body) #pdm-v138-mini-body {
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
body:not(.pdm-admin-body) .topbar.pdm-v17644949-smart-topbar {
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  contain:paint;
}
.pdm-v138-owner-state-copy{margin:8px 0 0;line-height:1.3}

/* R5H: exactly two compact period lines and no empty legacy moderation footer. */
.pdm-v138-period-value{display:grid!important;gap:1px;font-size:clamp(13px,3.8vw,16px)!important;line-height:1.12!important;word-break:normal!important;overflow-wrap:normal!important}
.pdm-v138-period-value>span{display:block;white-space:nowrap}
.pdm-v176-user-moderation:empty{display:none!important}

/* R5I: owner metric values and dates never wrap.  The period gets two thirds of the row. */
.pdm-v138-info{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.pdm-v138-item-metric,.pdm-v138-placement-metric{grid-column:span 3}
.pdm-v138-photo-metric{grid-column:span 2}
.pdm-v138-period-metric{grid-column:span 4}
.pdm-v138-metric>span{font-size:clamp(14px,3.9vw,17px)!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.01em}
.pdm-v138-period-value{display:block!important;font-size:clamp(12px,3.45vw,15px)!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.015em}
@media(max-width:330px){.pdm-v138-info{grid-template-columns:1fr!important}.pdm-v138-item-metric,.pdm-v138-placement-metric,.pdm-v138-photo-metric,.pdm-v138-period-metric{grid-column:auto}.pdm-v138-period-value{font-size:11px!important}}

/* R5J: period is exactly two non-breaking lines: start date, then end date. */
.pdm-v138-period-value{display:grid!important;gap:1px;font-size:clamp(12px,3.45vw,15px)!important;line-height:1.12!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.015em}
.pdm-v138-period-value>span{display:block;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
@media(max-width:330px){.pdm-v138-period-value{font-size:11px!important}}


/* R5K: managed photo editor for published classified revisions. */
.pdm-r5k-photo-section{display:grid;gap:10px;min-width:0}
.pdm-r5k-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pdm-r5k-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;align-items:start}
.pdm-r5k-photo-card{min-width:0;border:1px solid #d4deed;border-radius:12px;padding:7px;background:#f8fbff;box-shadow:0 2px 7px rgba(25,65,120,.08)}
.pdm-r5k-photo-frame{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:9px;background:#edf2f8}
.pdm-r5k-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .18s ease;transform-origin:50% 50%}
.pdm-r5k-photo-delete{position:absolute;top:5px;right:5px;z-index:2;width:30px;height:30px;border:0;border-radius:50%;background:#d92d20;color:#fff;font-size:25px;font-weight:900;line-height:28px;padding:0;box-shadow:0 2px 8px rgba(0,0,0,.28)}
.pdm-r5k-photo-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:7px}
.pdm-r5k-photo-tools button{min-width:0;height:34px;border:1px solid #c8d5e8;border-radius:8px;background:#fff;color:#174f98;font-size:21px;font-weight:900;line-height:1;padding:0}
.pdm-r5k-photo-tools button:active{transform:scale(.96)}
.pdm-r5k-photo-tools button:disabled{opacity:.28;filter:grayscale(1)}
.pdm-r5k-photo-position{text-align:center;font-size:12px;font-weight:800;color:#52657c;margin-top:5px;white-space:nowrap}
.pdm-r5k-photo-empty{grid-column:1/-1;border:1px dashed #bccbe0;border-radius:10px;padding:18px 12px;text-align:center;color:#687a90;background:#f8fbff}
.pdm-r5k-native-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.pdm-r5k-file-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pdm-r5k-file-picker .btn{width:auto;min-height:44px;margin:0}
.pdm-r5k-photo-help{display:block;line-height:1.35}
@media(max-width:380px){.pdm-r5k-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pdm-r5k-photo-tools button{font-size:19px}}

/* R5O: free-to-paid transition warning and full published revision editor. */
.pdm-r5o-editor .form-grid{align-items:start}
.pdm-r5o-paid-warning{display:grid;gap:12px;padding:14px;border:1px solid #f59e0b;border-radius:14px;background:#fffbeb;color:#7c2d12;line-height:1.4}
.pdm-r5o-paid-warning[hidden]{display:none!important}
.pdm-r5o-paid-warning .btn-row{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pdm-r5o-placement-summary{padding:10px 12px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-weight:800}
@media(max-width:520px){.pdm-r5o-paid-warning .btn-row{grid-template-columns:1fr}}

/* PDM R5P: owner combined payment selector */
.pdm-v138-payment-group{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 12px;padding:12px;border:1px solid #c9d9f2;border-radius:14px;background:#f4f8ff}
.pdm-v138-payment-group>div{display:grid;gap:3px}.pdm-v138-payment-group span{font-size:.9rem;color:#526273}
.pdm-v138-payment-pick{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;border-radius:10px;background:#f7f9fc;font-weight:700;color:#24456d}
.pdm-v138-payment-pick input{width:20px;height:20px;flex:0 0 auto}
@media(max-width:640px){.pdm-v138-payment-group{align-items:stretch;flex-direction:column}.pdm-v138-payment-group .btn{width:100%}}

/* PDM R5P: grouped payment verification in staff workspace */
.pdm-v1764-payment-review{margin:14px 0;padding:14px;border:1px solid #f0c36a;border-radius:14px;background:#fff9e9}
.pdm-v1764-payment-review ul{display:grid;gap:7px;margin:10px 0;padding:0;list-style:none}
.pdm-v1764-payment-review li{display:flex;gap:12px;justify-content:space-between;padding:8px 10px;border-radius:9px;background:#fff}
.pdm-v1764-payment-review p{overflow-wrap:anywhere}

/* R5S: compact profile editor. The full "Мої дані" form is closed by
   default and remains mounted so delivery/profile synchronization keeps one
   source of truth. */
.pdm-r5s-profile-collapsible{padding:0!important;overflow:hidden}
.pdm-r5s-profile-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:0;background:transparent;color:#0f172a;text-align:left;font:900 clamp(24px,5vw,34px)/1.1 Arial,sans-serif;cursor:pointer}
.pdm-r5s-profile-toggle:focus-visible{outline:3px solid #93c5fd;outline-offset:-3px}
.pdm-r5s-profile-arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#eaf2ff;color:#1d4ed8;font:900 26px/1 Arial,sans-serif}
.pdm-r5s-profile-body{padding:0 16px 16px}
.pdm-r5s-profile-body[hidden]{display:none!important}
.pdm-r5s-profile-hidden-title{display:none!important}
@media(max-width:520px){.pdm-r5s-profile-toggle{padding:14px 14px;font-size:27px}.pdm-r5s-profile-body{padding:0 12px 14px}.pdm-r5s-profile-arrow{width:36px;height:36px;flex-basis:36px}}
