/* Изолированные стили акта сохраняют оформление действующих генераторов. */
body.dpcrm-public-site:has(#dpcrm-cargo-handover) .dpcrm-document-symbols{position:absolute;width:0;height:0;overflow:hidden}
.dpcrm-cargo-handover{font-family:Arial,Helvetica,sans-serif;color:var(--ink);min-width:0}
.dpcrm-cargo-handover [hidden]{display:none!important}
.dpcrm-cargo-handover .wb-hero{display:grid;grid-template-columns:1.4fr .6fr;align-items:center;gap:40px;padding-top:36px;padding-bottom:64px}
.dpcrm-cargo-handover .wb-hero .breadcrumbs{margin-bottom:30px;font-size:12px;line-height:1.7;color:var(--muted)}
.dpcrm-cargo-handover .wb-hero .breadcrumbs a{color:var(--brand)}
.dpcrm-cargo-handover .wb-hero h1{font-size:clamp(39px,4.6vw,64px);max-width:850px}
.dpcrm-cargo-handover .wb-lead{font-size:17px;line-height:1.65;max-width:710px;margin-top:25px}
.dpcrm-cargo-handover .wb-points{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0 0;padding:0;list-style:none;color:var(--muted);font-size:12px}
.dpcrm-cargo-handover .wb-points li::before{content:'✓';margin-right:7px;color:var(--brand)}
.dpcrm-cargo-handover .wb-hero-card{padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--lav)}
.dpcrm-cargo-handover .wb-hero-card h2{font-size:28px;line-height:1.2;margin:22px 0}
.dpcrm-cargo-handover .wb-hero-card ol{display:grid;gap:22px;list-style:none;counter-reset:wb-step;padding:0;margin:0}
.dpcrm-cargo-handover .wb-hero-card li{display:grid;grid-template-columns:25px 1fr;gap:5px 10px;counter-increment:wb-step}
.dpcrm-cargo-handover .wb-hero-card li::before{content:counter(wb-step) '.';grid-row:span 2;color:var(--brand);font-weight:700}
.dpcrm-cargo-handover .wb-hero-card strong{font-size:14px;line-height:1.4}
.dpcrm-cargo-handover .wb-hero-card li span{font-size:12px;line-height:1.6;color:var(--muted)}
.dpcrm-cargo-handover .wb-notice{padding:20px 23px;border:1px solid var(--line);border-radius:14px;background:var(--lav);font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.dpcrm-cargo-handover .wb-form{margin-top:26px}
.dpcrm-cargo-handover .wb-card{min-width:0;margin:0 0 25px;padding:28px 30px 30px;border:1px solid var(--line);border-radius:22px;background:#fff}
.dpcrm-cargo-handover .wb-card legend{max-width:100%;padding:0 10px;font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.025em}
.dpcrm-cargo-handover .wb-card legend span{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;margin-right:9px;border-radius:7px;background:var(--lav);color:var(--brand);font-size:13px;font-weight:700;vertical-align:middle}
.dpcrm-cargo-handover .wb-card-intro{font-size:14px;line-height:1.65;margin-bottom:24px;max-width:850px}
.dpcrm-cargo-handover .wb-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.dpcrm-cargo-handover .wb-field{min-width:0}
.dpcrm-cargo-handover .wb-field-full{grid-column:1/-1}
.dpcrm-cargo-handover .wb-field>label{display:block;font-size:13px;font-weight:600;line-height:1.5;margin-bottom:8px;color:var(--ink)}
.dpcrm-cargo-handover .wb-field>label>span{color:var(--brand)}
.dpcrm-cargo-handover .wb-field input:not([type=checkbox]),.dpcrm-cargo-handover .wb-field select,.dpcrm-cargo-handover .wb-field textarea{display:block;min-width:0;width:100%;min-height:49px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:15px;line-height:1.4;box-shadow:none}
.dpcrm-cargo-handover .wb-field textarea{min-height:100px;resize:vertical}
.dpcrm-cargo-handover .wb-field select{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;appearance:none;-webkit-appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:right 18px top 21px,right 13px top 21px;background-size:5px 5px;background-repeat:no-repeat}
.dpcrm-cargo-handover .wb-field input:focus-visible,.dpcrm-cargo-handover .wb-field textarea:focus-visible{outline:3px solid var(--brand);outline-offset:4px}
.dpcrm-cargo-handover .wb-field [aria-invalid=true]{border-color:#ac214b}
.dpcrm-cargo-handover .wb-help,.dpcrm-cargo-handover .wb-error{font-size:12px;line-height:1.6;margin-top:8px!important;max-width:670px}
.dpcrm-cargo-handover .wb-error{color:#981943;font-weight:600}
.dpcrm-cargo-handover .wb-check{display:flex;align-items:center}
.dpcrm-cargo-handover .wb-check label{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:14px;margin:0}
.dpcrm-cargo-handover .wb-check input{width:19px;height:19px;flex-shrink:0;margin:1px 0 0;accent-color:var(--brand)}
.dpcrm-cargo-handover .wb-trailer{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.dpcrm-cargo-handover .wb-trip-fields{margin-top:26px}
.dpcrm-cargo-handover .wb-error-summary{padding:20px 23px;margin-bottom:25px;border:1px solid #bd4565;border-radius:14px;background:#fff0f5;color:#861139;font-size:14px;line-height:1.6;font-weight:600}
.dpcrm-cargo-handover .wb-form-footer>p{font-size:13px;line-height:1.7;max-width:850px}
.dpcrm-cargo-handover .wb-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:24px}
.dpcrm-cargo-handover .wb-actions .btn:disabled{opacity:.55;transform:none;box-shadow:none}
.dpcrm-cargo-handover .wb-clear{border:0;background:none;padding:15px 10px;color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.dpcrm-cargo-handover .wb-preview-region{overflow:auto;max-width:100%;padding:20px;background:var(--soft);border:1px solid var(--line);border-radius:22px;scrollbar-gutter:stable;overscroll-behavior-inline:contain}
.dpcrm-cargo-handover .wb-preview-region:focus-visible{outline:3px solid var(--brand);outline-offset:5px}
.dpcrm-cargo-handover .wb-preview-pages{width:210mm;max-width:none;display:grid;gap:22px;margin:0 auto}
.dpcrm-cargo-handover .wb-sheet{box-sizing:border-box;width:210mm;height:297mm;padding:12mm;background:#fff;border:1px solid #d3d3dc;box-shadow:0 6px 22px #1919200b;font-family:Arial,Helvetica,sans-serif;font-size:10pt;line-height:1.35;color:#111;overflow:visible}
.dpcrm-cargo-handover .wb-sheet-head{height:20mm;border-bottom:1px solid #333;padding-bottom:3mm;box-sizing:border-box;overflow-wrap:anywhere}
.dpcrm-cargo-handover .wb-sheet-head h2{font-size:15pt;font-weight:700;line-height:1.2;letter-spacing:0;margin:0 0 2mm;max-width:none;color:#111}
.dpcrm-cargo-handover .wb-sheet-head p{color:#111;font-size:9pt;line-height:1.3;margin:0}
.dpcrm-cargo-handover .wb-sheet-body{height:242mm;box-sizing:border-box;padding-top:4mm;overflow:visible}
.dpcrm-cargo-handover .wb-sheet-foot{height:8mm;display:flex;align-items:flex-end;justify-content:space-between;gap:5mm;border-top:1px solid #777;font-size:8pt;color:#333;box-sizing:border-box;padding-top:2mm}
.dpcrm-cargo-handover .wb-doc-block{break-inside:avoid;page-break-inside:avoid;padding-bottom:4mm;overflow-wrap:anywhere}
.dpcrm-cargo-handover .wb-doc-block h3{font-size:11pt;font-weight:700;line-height:1.3;letter-spacing:0;margin:0 0 2mm;color:#111}
.dpcrm-cargo-handover .wb-doc-block dl{margin:0}
.dpcrm-cargo-handover .wb-doc-record{display:grid;grid-template-columns:51mm minmax(0,1fr);gap:3mm;min-height:6mm;padding:1mm 0;border-bottom:1px solid #ddd;box-sizing:border-box}
.dpcrm-cargo-handover .wb-doc-record dt,.dpcrm-cargo-handover .wb-doc-record dd{margin:0;font-size:9.5pt;line-height:1.35;color:#111;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.dpcrm-cargo-handover .wb-doc-record dt{font-weight:600}
.dpcrm-cargo-handover .wb-doc-record dd[data-wb-empty]{min-height:5mm;border-bottom:1px solid #777}
.dpcrm-cargo-handover .wb-doc-hint{font-size:8pt!important;line-height:1.4!important;color:#333!important;margin:2mm 0!important}
.dpcrm-cargo-handover .wb-attestation .wb-doc-record{grid-template-columns:70mm minmax(0,1fr)}
.dpcrm-cargo-handover .wb-doc-note{padding:3mm;border:1px solid #777;font-size:8.5pt;line-height:1.45;color:#111!important;margin:0!important}
.dpcrm-cargo-handover .wb-preview-note{margin-top:22px!important;font-size:13px;line-height:1.7;max-width:850px}
.dpcrm-cargo-handover .wb-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.dpcrm-cargo-handover .wb-guide-card{padding:28px;border:1px solid var(--line);border-radius:22px;background:#fff}
.dpcrm-cargo-handover .wb-guide-card h3{font-size:25px;line-height:1.2;margin-bottom:18px}
.dpcrm-cargo-handover .wb-guide-card p{font-size:14px;line-height:1.7}
.dpcrm-cargo-handover .wb-legal{margin-top:30px;padding:28px;border:1px solid var(--line);border-radius:22px;background:var(--lav)}
.dpcrm-cargo-handover .wb-legal h3{font-size:25px;line-height:1.2;margin-bottom:15px}
.dpcrm-cargo-handover .wb-legal p{font-size:14px;line-height:1.7;max-width:950px}
.dpcrm-cargo-handover .wb-legal p+p{margin-top:18px}
.dpcrm-cargo-handover .wb-related h2{max-width:800px}
.dpcrm-cargo-handover .wb-related>div>p{margin:22px 0;max-width:800px}
.dpcrm-cargo-handover .wb-transport-cta{margin-top:42px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:32px;border:1px solid var(--line);border-radius:22px;background:var(--lav)}
.dpcrm-cargo-handover .wb-transport-cta h3{font-size:27px;line-height:1.2;margin-bottom:15px}
.dpcrm-cargo-handover .wb-transport-cta p{font-size:14px;line-height:1.7;max-width:650px}
.dpcrm-cargo-handover .wb-transport-cta>.btn{flex-shrink:0}
.dpcrm-cargo-handover .wb-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.dpcrm-cargo-handover .wb-print-message{display:none}
@media(max-width:1000px){.dpcrm-cargo-handover .wb-hero{grid-template-columns:minmax(0,1fr);gap:30px}.dpcrm-cargo-handover .wb-hero-card{max-width:100%;display:grid;grid-template-columns:45px 1fr;gap:10px 15px}.dpcrm-cargo-handover .wb-hero-card h2{margin:0}.dpcrm-cargo-handover .wb-hero-card ol{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.dpcrm-cargo-handover .wb-guide-grid{grid-template-columns:minmax(0,1fr)}.dpcrm-cargo-handover .wb-transport-cta{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.dpcrm-cargo-handover .wb-hero{padding-top:25px;padding-bottom:45px}.dpcrm-cargo-handover .wb-hero h1{font-size:39px;line-height:1.1}.dpcrm-cargo-handover .wb-hero .breadcrumbs{margin-bottom:23px}.dpcrm-cargo-handover .wb-lead{font-size:15px;margin-top:20px}.dpcrm-cargo-handover .wb-points{gap:10px 16px;font-size:11px}.dpcrm-cargo-handover .wb-hero-card{padding:24px;display:block}.dpcrm-cargo-handover .wb-hero-card h2{font-size:27px;margin:20px 0}.dpcrm-cargo-handover .wb-hero-card ol{grid-template-columns:minmax(0,1fr);gap:18px}.dpcrm-cargo-handover .wb-card{padding:22px 18px 23px;margin-bottom:22px;border-radius:20px}.dpcrm-cargo-handover .wb-card legend{font-size:20px;padding:0 7px}.dpcrm-cargo-handover .wb-fields{grid-template-columns:minmax(0,1fr);gap:20px}.dpcrm-cargo-handover .wb-field-full{grid-column:auto}.dpcrm-cargo-handover .wb-notice{padding:18px;font-size:13px}.dpcrm-cargo-handover .wb-card-intro{font-size:13px}.dpcrm-cargo-handover .wb-actions{align-items:stretch;flex-direction:column;gap:11px}.dpcrm-cargo-handover .wb-actions .btn{width:100%;font-size:14px}.dpcrm-cargo-handover .wb-clear{align-self:center}.dpcrm-cargo-handover .wb-preview-region{padding:12px;border-radius:16px}.dpcrm-cargo-handover .wb-guide-card,.dpcrm-cargo-handover .wb-legal{padding:24px}.dpcrm-cargo-handover .wb-guide-card h3,.dpcrm-cargo-handover .wb-legal h3{font-size:25px}.dpcrm-cargo-handover .wb-transport-cta{padding:25px;margin-top:32px}.dpcrm-cargo-handover .wb-transport-cta h3{font-size:27px}.dpcrm-cargo-handover .wb-transport-cta>.btn{width:100%;font-size:14px}}
@media print{
    @page{size:A4;margin:0}
    html.dpcrm-public-document:has(#dpcrm-cargo-handover){margin:0!important;padding:0!important;background:#fff!important;scroll-padding:0}
    body.dpcrm-public-site:has(#dpcrm-cargo-handover){margin:0!important;padding:0!important;background:#fff!important;color:#000!important;font-family:Arial,Helvetica,sans-serif!important}
    body.dpcrm-public-site:has(#dpcrm-cargo-handover)>:not(main#content){display:none!important}
    body.dpcrm-public-site:has(#dpcrm-cargo-handover) main#content{display:block!important;margin:0!important;padding:0!important;outline:0!important}
    .dpcrm-cargo-handover .wb-hide-print{display:none!important}
    .dpcrm-cargo-handover .wb-preview{padding:0!important;margin:0!important;background:#fff!important}
    .dpcrm-cargo-handover .wb-preview>.wrap{width:210mm!important;max-width:none!important;margin:0!important;padding:0!important}
    .dpcrm-cargo-handover .wb-preview-region{padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:#fff!important;width:210mm!important;max-width:none!important}
    .dpcrm-cargo-handover .wb-preview-pages{display:block!important;width:210mm!important;margin:0!important}
    .dpcrm-cargo-handover .wb-sheet{width:210mm!important;height:297mm!important;padding:12mm!important;margin:0!important;border:0!important;box-shadow:none!important;break-after:page;page-break-after:always;overflow:visible!important;color:#000!important}
    .dpcrm-cargo-handover .wb-sheet:last-child{break-after:auto;page-break-after:auto}
    .dpcrm-cargo-handover .wb-sheet *{color:#000!important;background:transparent!important;text-shadow:none!important;box-shadow:none!important}
    .dpcrm-cargo-handover:has(#handover-preview[hidden]) .wb-print-message{display:block!important;margin:20mm!important;font-size:14pt!important}
}

/* Поля и печатные блоки независимого акта передачи. */
.dpcrm-cargo-handover .handover-items{display:grid;gap:22px;margin-top:22px}
.dpcrm-cargo-handover .handover-item{padding-top:22px;border-top:1px solid var(--line)}
.dpcrm-cargo-handover .handover-item-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;font-size:15px}
.dpcrm-cargo-handover .handover-item-title .wb-clear{padding:5px 0}
.dpcrm-cargo-handover .handover-item-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.dpcrm-cargo-handover .handover-item-wide{grid-column:1/-1}
.dpcrm-cargo-handover .handover-related-links{display:flex;gap:18px 26px;flex-wrap:wrap;margin-top:30px}
.dpcrm-cargo-handover .wb-sheet-head{height:20mm}
.dpcrm-cargo-handover .wb-sheet-head h2{font-size:14pt;line-height:1.15}
.dpcrm-cargo-handover .wb-doc-block{padding-bottom:3mm}
.dpcrm-cargo-handover .wb-doc-block h3{font-size:10.5pt;margin:0 0 2mm;line-height:1.25}
.dpcrm-cargo-handover .handover-doc-pair{display:grid;grid-template-columns:40mm minmax(0,1fr);gap:3mm;min-height:6mm;padding:1mm 0;border-bottom:1px solid #ddd;box-sizing:border-box}
.dpcrm-cargo-handover .handover-doc-pair dt,.dpcrm-cargo-handover .handover-doc-pair dd{margin:0;font-size:9.3pt;line-height:1.3;color:#111;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.dpcrm-cargo-handover .handover-doc-pair dt{font-weight:600}
.dpcrm-cargo-handover [data-handover-empty]{min-height:5mm;border-bottom:1px dotted #777}
.dpcrm-cargo-handover .handover-parties,.dpcrm-cargo-handover .handover-signatures{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7mm}
.dpcrm-cargo-handover .handover-party,.dpcrm-cargo-handover .handover-signature{min-width:0;overflow-wrap:anywhere}
.dpcrm-cargo-handover .handover-party .handover-doc-pair{grid-template-columns:20mm minmax(0,1fr);gap:2mm}
.dpcrm-cargo-handover .handover-prose{font-size:9.3pt!important;line-height:1.3!important;white-space:pre-wrap;overflow-wrap:anywhere;color:#111!important;margin:0!important}
.dpcrm-cargo-handover .handover-items-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:9pt;line-height:1.3}
.dpcrm-cargo-handover .handover-items-table th,.dpcrm-cargo-handover .handover-items-table td{border:1px solid #777;padding:1.8mm;vertical-align:top;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;color:#111;box-sizing:border-box}
.dpcrm-cargo-handover .handover-items-table th{font-weight:700}
.dpcrm-cargo-handover .handover-items-table col:nth-child(1){width:8mm}
.dpcrm-cargo-handover .handover-items-table col:nth-child(3){width:24mm}
.dpcrm-cargo-handover .handover-items-table col:nth-child(4){width:25mm}
.dpcrm-cargo-handover .handover-items-table col:nth-child(5){width:42mm}
.dpcrm-cargo-handover .handover-signatures{padding-top:3mm}
.dpcrm-cargo-handover .handover-signature-detail{font-size:9pt!important;line-height:1.3!important;color:#111!important;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 1mm!important}
.dpcrm-cargo-handover .handover-signature-line{height:7mm;border-bottom:1px solid #555}
.dpcrm-cargo-handover .handover-signature-label{font-size:8pt!important;line-height:1.2!important;margin:1mm 0 0!important;color:#111!important}
@media(max-width:600px){.dpcrm-cargo-handover .handover-item-fields{grid-template-columns:minmax(0,1fr);gap:20px}.dpcrm-cargo-handover .handover-item-wide{grid-column:auto}.dpcrm-cargo-handover .handover-related-links{flex-direction:column}}
