.dispatch-page{--dispatch-surface:#fff;--dispatch-soft:#f7f9fc;--dispatch-line:#dce4ee;--dispatch-muted:#64758b;--dispatch-text:#24364b;--dispatch-accent:#2567a7;--dispatch-accent-soft:#edf4fc;min-width:0;color:var(--dispatch-text)}
[data-theme="dark"] .dispatch-page{--dispatch-surface:#111e2e;--dispatch-soft:#162537;--dispatch-line:#2b3d52;--dispatch-muted:#9cadc1;--dispatch-text:#e4ecf7;--dispatch-accent:#a5caff;--dispatch-accent-soft:#1a3049}
.dispatch-page>.panel.dispatch-surface{padding:0;border:0;box-shadow:none;background:transparent;color:var(--dispatch-text);overflow:visible}
.dispatch-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.dispatch-page-heading>div{min-width:0}.dispatch-page-heading h2{margin:0;color:var(--dispatch-text);font-size:20px;line-height:1.3;letter-spacing:-.35px}.dispatch-page-heading p{margin:7px 0 0;color:var(--dispatch-muted);font-size:13px;line-height:1.5}.dispatch-page-heading>.btn{flex:none;min-height:44px;padding:11px 18px}
.dispatch-list-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.dispatch-search{display:flex;align-items:center;gap:10px;position:relative;width:min(520px,100%);min-width:0}
.dispatch-search svg{position:absolute;left:13px;width:18px;height:18px;stroke:var(--dispatch-muted);stroke-width:1.7;pointer-events:none}
.dispatch-page .dispatch-search input{width:100%;min-width:0;height:44px;padding:11px 14px 11px 40px;border:1px solid var(--dispatch-line);border-radius:9px;background:var(--dispatch-surface);color:var(--dispatch-text);font-size:13px;font-weight:400}
.dispatch-page .dispatch-search input::placeholder{color:var(--dispatch-muted)}
#dispatchCount{margin:0;flex:none;color:var(--dispatch-muted);font-size:12px}
.dispatch-cards{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:16px}
.dispatch-card{min-width:0;border:1px solid var(--dispatch-line);border-radius:12px;background:var(--dispatch-surface);color:var(--dispatch-text);overflow:hidden;box-shadow:0 2px 6px #122a4504}
.dispatch-card-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 18px;border-bottom:1px solid var(--dispatch-line)}
.dispatch-card-title{min-width:0}.dispatch-card-title h3{margin:0;color:var(--dispatch-text);font-size:18px;font-weight:750;letter-spacing:-.35px;line-height:1.3;overflow-wrap:anywhere}
.dispatch-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:7px 0 0;font-size:12px;color:var(--dispatch-muted)}.dispatch-card-meta span+span::before{content:'\00b7';padding:0 9px;color:var(--dispatch-muted)}
.dispatch-status{display:inline-flex;align-items:center;gap:7px;flex:none;max-width:100%;padding:6px 10px;border-radius:6px;font-size:11px;font-weight:600;line-height:1.35;white-space:normal}
.dispatch-status i{width:6px;height:6px;border-radius:50%;flex:none;background:currentColor}.dispatch-status-pending{background:#fff4df;color:#896014}.dispatch-status-sent{background:#eaf2fd;color:#2e639b}.dispatch-status-received{background:#e9f6ee;color:#23734b}
[data-theme="dark"] .dispatch-page .dispatch-status-pending{background:#3a3020;color:#e5c37f}[data-theme="dark"] .dispatch-page .dispatch-status-sent{background:#1b334f;color:#a5caff}[data-theme="dark"] .dispatch-page .dispatch-status-received{background:#193a30;color:#98d8b6}
.dispatch-card-body{display:block;min-width:0;padding:18px 22px}.dispatch-products{min-width:0}
.dispatch-items{min-width:0;max-width:100%;margin:0}
.dispatch-page .dispatch-items .dispatch-items-table,.goods-modal .dispatch-items .dispatch-items-table{display:table;width:100%;min-width:0!important;max-width:100%;margin:0;border-collapse:collapse;table-layout:fixed;background:transparent;box-shadow:none;border:0;color:inherit}
.dispatch-page .dispatch-items-table th,.goods-modal .dispatch-items-table th{padding:0 12px 11px;text-align:left;vertical-align:middle;background:transparent;color:var(--dispatch-muted,var(--muted));border:0;border-bottom:1px solid var(--dispatch-line,var(--border));font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:none;overflow-wrap:anywhere}
.dispatch-page .dispatch-items-table th:first-child,.goods-modal .dispatch-items-table th:first-child{padding-left:0;width:31%}
.dispatch-page .dispatch-items-table th:nth-child(2),.goods-modal .dispatch-items-table th:nth-child(2){width:21%}
.dispatch-page .dispatch-items-table th:nth-child(3),.goods-modal .dispatch-items-table th:nth-child(3){width:auto}
.dispatch-page .dispatch-items-table th.dispatch-quantity-column,.goods-modal .dispatch-items-table th.dispatch-quantity-column{width:84px;padding-left:6px;padding-right:6px;text-align:center;white-space:nowrap}
.dispatch-page .dispatch-items-table th.dispatch-edit-column,.goods-modal .dispatch-items-table th.dispatch-edit-column{width:66px;padding-right:0}
.dispatch-page .dispatch-items-table td,.goods-modal .dispatch-items-table td{padding:15px 12px;border:0;border-bottom:1px solid var(--dispatch-line,var(--border));vertical-align:middle;font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:inherit}
.dispatch-page .dispatch-items-table tbody tr:last-child td,.goods-modal .dispatch-items-table tbody tr:last-child td{border-bottom:0}
.dispatch-page .dispatch-items-table td:first-child,.goods-modal .dispatch-items-table td:first-child{padding-left:0}.dispatch-product-cell strong{font-size:13px;font-weight:650;line-height:1.45;color:inherit}
.dispatch-page .dispatch-items-table td.dispatch-quantity-cell,.goods-modal .dispatch-items-table td.dispatch-quantity-cell{text-align:center;font-variant-numeric:tabular-nums;font-weight:650}
.dispatch-page .dispatch-items-table td.dispatch-item-edit,.goods-modal .dispatch-items-table td.dispatch-item-edit{padding-right:0;text-align:right}
.dispatch-page .dispatch-item-edit .btn.secondary,.goods-modal .dispatch-item-edit .btn.secondary{min-height:36px;padding:7px 9px;background:transparent;border:1px solid transparent;box-shadow:none;color:var(--dispatch-accent,var(--blue));font-size:11px}
.dispatch-page .dispatch-item-edit .btn.secondary:hover{background:var(--dispatch-accent-soft);border-color:var(--dispatch-line)}
.dispatch-card-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;border-top:1px solid var(--dispatch-line);background:var(--dispatch-soft)}
.dispatch-created{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;font-size:11px;color:var(--dispatch-muted)}.dispatch-created time{font-size:11px;color:var(--dispatch-muted);font-variant-numeric:tabular-nums}
.dispatch-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.dispatch-page .dispatch-card-actions .btn{min-height:40px;padding:9px 14px;font-size:12px;white-space:normal;line-height:1.35;margin:0}
.dispatch-page .dispatch-card-actions .btn.secondary{background:var(--dispatch-surface);border-color:var(--dispatch-line);color:var(--dispatch-text)}.dispatch-page .dispatch-card-actions .btn.secondary:hover{background:var(--dispatch-accent-soft)}
.dispatch-confirmations{min-width:0;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--dispatch-line);display:grid;gap:14px}
.dispatch-confirmations>h4{margin:0;color:var(--dispatch-muted);font-size:10px;font-weight:600;letter-spacing:.02em}
.dispatch-confirmation{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.dispatch-confirmation-copy{display:grid;gap:3px;min-width:0}.dispatch-confirmation-copy>span{color:var(--dispatch-muted);font-size:10px}.dispatch-confirmation-copy>strong{font-size:12px;font-weight:600;overflow-wrap:anywhere;color:var(--dispatch-text)}.dispatch-confirmation-copy time{color:var(--dispatch-muted);font-size:10px;line-height:1.4}
.dispatch-signature-open{display:block;flex:0 0 104px;width:104px;min-width:0;height:48px;min-height:48px;padding:3px;border:1px solid var(--dispatch-line,var(--border));border-radius:6px;background:#fff;overflow:hidden}
.dispatch-signature-open img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.dispatch-signature-open:hover{border-color:var(--dispatch-accent,var(--blue))}.dispatch-signature-image{background:#fff}
.dispatch-card-photos{margin-top:13px;padding-top:14px;border-top:1px solid var(--dispatch-line)}.dispatch-card-photos h4{display:flex;align-items:center;gap:7px;margin:0 0 10px;color:var(--dispatch-muted);font-size:10px;font-weight:600}.dispatch-card-photos h4>span{font-variant-numeric:tabular-nums;font-size:10px;opacity:.8}
.dispatch-card .dispatch-photos{display:flex;gap:8px;flex-wrap:wrap;margin:0}.dispatch-card .dispatch-photo-open{flex:0 0 64px;width:64px;height:48px;min-height:48px;padding:0;background:transparent;border:1px solid var(--dispatch-line);border-radius:6px;overflow:hidden}.dispatch-card .dispatch-photo-open img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0}
.dispatch-empty{border:1px dashed var(--dispatch-line);border-radius:12px;padding:40px 20px;text-align:center;color:var(--dispatch-muted);font-size:13px}.dispatch-empty p{margin:0}
.dispatch-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Form and confirmation controls. */
.dispatch-target{display:grid;gap:12px;min-width:0;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}.dispatch-target label{display:flex;flex-direction:column;gap:6px;min-width:0}.dispatch-target label[hidden]{display:none}.dispatch-target select{width:100%;min-width:0;max-width:100%}.dispatch-target p{margin:0;font-size:12px}.dispatch-form-number{margin:0;padding:10px 0;overflow-wrap:anywhere}
.dispatch-photo-section{min-width:0}.dispatch-photo-section .actions .btn{flex:1;min-height:44px;white-space:normal}.dispatch-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:10px;margin:16px 0}.dispatch-photos figure{min-width:0;margin:0}.dispatch-photo-section .dispatch-photos img{display:block;width:100%;height:110px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.dispatch-photos .btn{width:100%;margin-top:6px;white-space:normal}
.dispatch-signature-pad{display:block;width:100%;height:200px;border:1px solid var(--border);border-radius:10px;background:#fff;touch-action:none;margin-bottom:12px}
.goods-modal .dispatch-items{margin:16px 0 20px}
@media(min-width:1100px){.dispatch-card-body.has-confirmations{display:grid;grid-template-columns:minmax(0,1fr) 242px;gap:24px}.dispatch-card-body.has-confirmations .dispatch-confirmations{margin:0;padding:0 0 0 20px;border-top:0;border-left:1px solid var(--dispatch-line);align-content:start}}
@media(min-width:651px) and (max-width:1099px){.dispatch-confirmations{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.dispatch-confirmations>h4{grid-column:1/-1}}
@media(max-width:650px){
 .dispatch-page-heading{align-items:flex-start;gap:15px;margin-bottom:18px}.dispatch-page-heading h2{font-size:18px}.dispatch-page-heading p{font-size:12px}.dispatch-page-heading>.btn{padding:10px 12px;font-size:12px;min-width:122px}
 .dispatch-list-tools{align-items:stretch;gap:9px;flex-direction:column;margin-bottom:14px}.dispatch-search{width:100%}#dispatchCount{font-size:11px}
 .dispatch-card-header{align-items:flex-start;gap:12px;padding:16px}.dispatch-card-title h3{font-size:16px}.dispatch-card-meta{font-size:10px;gap:3px}.dispatch-card-meta span+span::before{padding:0 6px}.dispatch-status{max-width:45%;padding:5px 7px;font-size:10px;gap:5px}
 .dispatch-card-body{padding:2px 16px 16px}.dispatch-card-footer{padding:13px 16px;align-items:stretch;flex-direction:column;gap:12px}.dispatch-created,.dispatch-created time{font-size:10px}.dispatch-card-actions{justify-content:stretch;gap:8px}.dispatch-page .dispatch-card-actions .btn{flex:1 1 140px;min-height:44px;font-size:11px;padding:10px 12px}
 .dispatch-page .dispatch-items .dispatch-items-table,.goods-modal .dispatch-items .dispatch-items-table{display:block!important;min-width:0!important;width:100%}
 .dispatch-page .dispatch-items-table thead,.goods-modal .dispatch-items-table thead{display:none}
 .dispatch-page .dispatch-items-table tbody,.goods-modal .dispatch-items-table tbody{display:block}
 .dispatch-page .dispatch-items-table tr.dispatch-item,.goods-modal .dispatch-items-table tr.dispatch-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--dispatch-line,var(--border));background:transparent}
 .dispatch-page .dispatch-items-table tr.dispatch-item:last-child,.goods-modal .dispatch-items-table tr.dispatch-item:last-child{padding-bottom:0;border-bottom:0}
 .dispatch-page .dispatch-items-table td,.goods-modal .dispatch-items-table td{display:block;min-width:0;padding:0!important;border:0!important;font-size:12px;text-align:left}
 .dispatch-page .dispatch-items-table .dispatch-product-cell,.goods-modal .dispatch-items-table .dispatch-product-cell{grid-column:1/-1}
 .dispatch-page .dispatch-items-table td[data-label]::before,.goods-modal .dispatch-items-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:10px;font-weight:400;color:var(--dispatch-muted,var(--muted))}
 .dispatch-page .dispatch-items-table td.dispatch-product-cell::before,.goods-modal .dispatch-items-table td.dispatch-product-cell::before{display:none}
 .dispatch-page .dispatch-items-table td.dispatch-quantity-cell,.goods-modal .dispatch-items-table td.dispatch-quantity-cell{text-align:left;display:flex;align-items:center;gap:8px;min-height:36px}
 .dispatch-page .dispatch-items-table td.dispatch-quantity-cell::before,.goods-modal .dispatch-items-table td.dispatch-quantity-cell::before{margin:0}
 .dispatch-page .dispatch-items-table .dispatch-item-edit,.goods-modal .dispatch-items-table .dispatch-item-edit{justify-self:end;align-self:center}.dispatch-page .dispatch-item-edit .btn.secondary,.goods-modal .dispatch-item-edit .btn.secondary{min-height:44px;margin:-6px 0;font-size:11px}
 .dispatch-confirmations{margin-top:17px;padding-top:15px}.dispatch-confirmation-copy>strong{font-size:12px}.dispatch-card-photos{margin-top:16px}.dispatch-target{padding:12px}
}
@media(max-width:380px){.dispatch-page-heading{flex-direction:column;align-items:stretch}.dispatch-page-heading>.btn{align-self:flex-start}.dispatch-card-header{flex-direction:column;gap:10px}.dispatch-status{max-width:100%}.dispatch-page .dispatch-card-actions .btn{flex-basis:100%}}
@media print{
 :root .dispatch-page{--dispatch-surface:#fff;--dispatch-soft:#fff;--dispatch-line:#ced6df;--dispatch-muted:#506071;--dispatch-text:#172d45}
 .dispatch-page .dispatch-status{background:transparent!important;color:#172d45!important}
 .dispatch-card .dispatch-photo-open{display:block!important}
 .dispatch-page-heading>.btn,.dispatch-list-tools,[data-dispatch-edit],[data-dispatch-add],[data-dispatch-confirm]{display:none!important}
 .dispatch-cards{display:block}.dispatch-card{margin:0 0 16px;border-color:#cbd5df;box-shadow:none;break-inside:auto}.dispatch-card-header{padding:12px 16px;break-after:avoid}.dispatch-card-body{display:block!important;padding:10px 16px}.dispatch-confirmations{display:flex;flex-wrap:wrap;gap:16px;margin-top:12px;padding:12px 0 0;border-left:0;border-top:1px solid #cbd5df;break-inside:avoid}.dispatch-confirmations>h4{flex-basis:100%}.dispatch-confirmation{width:240px;max-width:100%}.dispatch-signature-open{display:block!important;max-width:104px;height:48px;min-height:48px}.dispatch-card-footer{padding:9px 16px}.dispatch-card-actions{display:none}
 .dispatch-page .dispatch-items .dispatch-items-table{display:table!important;width:100%;min-width:0!important}.dispatch-page .dispatch-items-table thead{display:table-header-group!important}.dispatch-page .dispatch-items-table tbody{display:table-row-group!important}.dispatch-page .dispatch-items-table tr.dispatch-item{display:table-row!important;break-inside:avoid}.dispatch-page .dispatch-items-table td{display:table-cell!important;padding:8px!important;border-bottom:1px solid #cbd5df!important;font-size:9pt}.dispatch-page .dispatch-items-table td[data-label]::before{display:none!important}.dispatch-page .dispatch-items-table .dispatch-item-edit,.dispatch-page .dispatch-items-table th.dispatch-edit-column{display:none!important}.dispatch-page .dispatch-items-table td.dispatch-quantity-cell{display:table-cell!important;text-align:center}
}
