.small-btn{padding:7px 11px;font-size:12px}

.dispatch-workflow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:10px;margin-bottom:15px;padding:15px 18px;border:1px solid #cfe2df;border-radius:13px;background:linear-gradient(120deg,#f3fbf9,#fff)}
.dispatch-workflow>div{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;min-width:0}
.dispatch-workflow>div>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--teal);color:#fff;font-weight:800}
.dispatch-workflow strong,.dispatch-workflow small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dispatch-workflow strong{color:var(--navy);font-size:13px}
.dispatch-workflow small{color:var(--muted);font-size:10px}
.dispatch-workflow>i{color:#7aa9a4;font-style:normal;font-size:20px}
.dispatch-summary{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin-bottom:15px}
.dispatch-summary .card{padding:15px 17px;border:1px solid var(--line);border-radius:11px;background:#fff}
.dispatch-summary .card.pending{border-color:#ebd1ab;background:#fffaf2}
.dispatch-summary .card.approved{border-color:#bee0d7;background:#f3fbf8}
.dispatch-summary span,.dispatch-summary small{display:block;color:var(--muted);font-size:11px}
.dispatch-summary strong{display:inline-block;margin-top:7px;color:var(--navy);font-size:25px}
.dispatch-summary small{display:inline;margin-right:5px}
.dispatch-page-head{display:flex;justify-content:flex-end;margin-bottom:13px}
.dispatch-print-setting{display:grid;grid-template-columns:auto minmax(190px,240px);gap:4px 10px;align-items:center;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:11px;font-weight:700;color:#4f5d67}
.dispatch-print-setting select{padding:7px 9px;border:1px solid #d7e0e4;border-radius:7px;background:#fff;color:var(--ink)}
.dispatch-print-setting small{grid-column:1/-1;color:var(--muted);font-size:9px;font-weight:400}
.dispatch-layout{display:grid;grid-template-columns:minmax(355px,.8fr) minmax(0,1.45fr);gap:16px;align-items:start}
.dispatch-draft-card{padding:20px;position:sticky;top:14px}
.dispatch-draft-card .section-head{align-items:flex-start}
.dispatch-draft-badge{padding:6px 9px;border-radius:20px;background:#eef7f6;color:#16786f;font-size:10px;font-weight:800;white-space:nowrap}
.dispatch-replacement-banner{margin-bottom:13px;padding:12px 13px;border:1px solid #e7c78e;border-radius:9px;background:#fff8e9;color:#715126}
.dispatch-replacement-banner strong{display:block;color:#754b15;font-size:12px}
.dispatch-replacement-banner p{margin:6px 0;line-height:1.6;font-size:10px}
.dispatch-replacement-banner button{padding:3px 0;font-size:10px}
.dispatch-form{display:grid;gap:13px}
.dispatch-form label{display:block;color:#485761;font-size:11px;font-weight:700}
.dispatch-form label>small{color:var(--muted);font-weight:400}
.dispatch-form input,.dispatch-form select,.dispatch-form textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:10px;border:1px solid #d6e0e4;border-radius:8px;background:#fff;color:var(--ink);font:inherit}
.dispatch-form textarea{resize:vertical;line-height:1.6}
.dispatch-form input:focus,.dispatch-form select:focus,.dispatch-form textarea:focus{border-color:var(--teal);outline:3px solid #149b9124}
.dispatch-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.dispatch-full-field{grid-column:1/-1}
.dispatch-items-editor{padding:13px;border:1px solid #dbe4e7;border-radius:10px;background:#f8fafb}
.dispatch-items-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.dispatch-items-head h4{margin:0 0 3px;color:var(--navy);font-size:13px}
.dispatch-items-head small{color:var(--muted);font-size:10px}
.dispatch-item-rows{display:grid;gap:8px}
.dispatch-items-placeholder{margin:0;padding:16px;border:1px dashed #cbd8dc;border-radius:8px;background:#fff;text-align:center;color:var(--muted);font-size:11px}
.dispatch-item-row{display:grid;grid-template-columns:minmax(170px,1fr) 82px 84px 34px;gap:7px;align-items:end;padding:9px;border:1px solid #dce4e7;border-radius:9px;background:#fff}
.dispatch-item-row label span,.dispatch-item-availability span{display:block;margin-bottom:5px;color:var(--muted);font-size:9px}
.dispatch-item-row select,.dispatch-item-row input{margin:0;padding:8px;font-size:11px}
.dispatch-item-availability{padding:7px 4px;text-align:center}
.dispatch-item-availability strong{display:block;color:#14776f;font-size:11px;overflow-wrap:anywhere}
.dispatch-remove-line{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:8px}
.dispatch-review{padding:14px;border:1px solid #b9dbd5;border-radius:10px;background:#f0faf8}
.dispatch-review-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #cfe5e1}
.dispatch-review-head span,.dispatch-review-head strong{display:block}
.dispatch-review-head span{color:#188178;font-size:9px;font-weight:800}
.dispatch-review-head strong{margin-top:3px;color:var(--navy);font-size:13px}
.dispatch-review-head>b{color:var(--teal);white-space:nowrap}
.dispatch-review dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.dispatch-review dt{color:var(--muted);font-size:9px}
.dispatch-review dd{margin:3px 0 0;font-size:11px;overflow-wrap:anywhere}
.dispatch-review ul{display:grid;gap:5px;margin:8px 0;padding:0;list-style:none}
.dispatch-review li{display:flex;justify-content:space-between;gap:10px;padding:7px 8px;border-radius:6px;background:#fff;font-size:10px}
.dispatch-review>p{margin:10px 0 0;color:#496d68;font-size:10px;line-height:1.6}
.dispatch-form-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}
.dispatch-form-status{min-height:18px;margin:0;color:#8a4f21;font-size:11px}
.dispatch-empty-stock{padding:32px 15px;border:1px dashed #cdd9dd;border-radius:10px;text-align:center;background:#fafcfc;color:var(--muted)}
.dispatch-empty-stock strong{color:var(--navy)}
.dispatch-empty-stock p{margin:8px 0 0;font-size:12px}
.dispatch-permission{position:sticky;top:14px;text-align:center}

.dispatch-register{padding:20px;min-width:0}
.dispatch-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(125px,.7fr)) auto;gap:8px;align-items:end;margin-bottom:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f7fafb}
.dispatch-filters label{font-size:10px;font-weight:700;color:#4e5c66}
.dispatch-filters input,.dispatch-filters select{display:block;width:100%;min-width:0;margin-top:5px;padding:8px 9px;border:1px solid #d8e1e5;border-radius:7px;background:#fff;color:var(--ink)}
.dispatch-filters button{min-height:35px;padding:8px 11px}
.dispatch-table{min-width:980px}
.dispatch-table caption,.dispatch-note-items caption{text-align:right;padding:9px 0;color:var(--muted);font-size:10px;font-weight:700}
.dispatch-table td{vertical-align:middle}
.dispatch-table td strong,.dispatch-table td small,.dispatch-table td span{display:block}
.dispatch-table td small{margin-top:4px;color:var(--muted);font-size:10px}
.dispatch-table td:nth-child(4){text-align:center}
.dispatch-table.compact{min-width:900px}
.dispatch-status{display:inline-block!important;width:max-content;padding:6px 9px;border:1px solid #d9e2e5;border-radius:20px;background:#f2f5f6;color:#586872;font-size:10px;font-weight:800;white-space:nowrap}
.dispatch-status.orange{border-color:#f0d5ad;background:#fff4e4;color:#9a5b20}
.dispatch-status.approved{border-color:#bde0d6;background:#eaf8f4;color:#14766d}
.dispatch-status.danger{border-color:#edc3c3;background:#fff0f0;color:#a23e3e}
.dispatch-row-actions,.dispatch-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dispatch-row-actions{min-width:148px}
.dispatch-row-actions .row-action{padding:7px 9px;background:#eef8f7;border-radius:7px;text-decoration:none}
.dispatch-empty{padding:50px 20px;text-align:center;color:var(--muted)}
.dispatch-empty .big{font-size:35px;color:#9fb2ba}
.dispatch-empty h3{margin:8px 0;color:var(--navy)}
.dispatch-empty p{margin:0;font-size:12px}
.dispatch-pagination{margin-top:14px}
.dispatch-load-error,.dispatch-detail-error{padding:34px;text-align:center;border:1px solid #efcaca;border-radius:10px;background:#fff7f7;color:#8b3939}
.dispatch-load-error p,.dispatch-detail-error p{margin:8px 0 14px}
.dispatch-detail-error button{margin:3px}

.dispatch-detail-dialog{width:min(1240px,97vw);max-width:1240px;max-height:96vh;padding:0;border:0;border-radius:15px;background:#fff;box-shadow:0 24px 80px #0b243455;overflow:hidden}
.dispatch-detail-dialog::backdrop{background:#102c3caa;backdrop-filter:blur(2px)}
.dispatch-detail-dialog #dispatchDetailContent{display:flex;flex-direction:column;max-height:96vh;min-height:220px}
.dispatch-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--line);background:#fff}
.dispatch-dialog-head .eyebrow{color:var(--teal);font-size:10px;font-weight:800}
.dispatch-dialog-head h2{margin:4px 0;color:var(--navy);font-size:21px}
.dispatch-dialog-head p{margin:0;color:var(--muted);font-size:11px}
.dispatch-dialog-head .close{flex:0 0 auto}
.dispatch-dialog-scroll{flex:1;overflow:auto;padding:24px;background:#e9eef2}
.dispatch-paper-stack{display:grid;gap:24px}
.official-dispatch-note{--receipt-navy:#071f3a;--receipt-gold:#b29b55;--receipt-ink:#102944;--receipt-muted:#43576b;--receipt-line:#cbd4dd;position:relative;width:min(100%,1060px);height:1499px;margin:0 auto;padding:42px 40px 78px;overflow:hidden;border:1px solid var(--receipt-line);background:radial-gradient(ellipse at 8% 82%,#f4f6f7 0 5%,transparent 5.3%),radial-gradient(ellipse at 14% 88%,transparent 0 8%,#f5f7f8 8.2% 10%,transparent 10.2%),#fff;color:var(--receipt-ink);box-shadow:0 8px 30px #071f3a18}
.official-dispatch-note::before{content:"";position:absolute;inset:0 0 auto;height:15px;background:linear-gradient(to right,var(--receipt-navy) 0 72%,var(--receipt-gold) 72% 100%)}
.official-dispatch-note::after{content:"";position:absolute;inset:510px -70px auto auto;width:170px;height:470px;border:35px solid #f3f5f6;border-radius:50%;opacity:.75;pointer-events:none}
.dispatch-paper-header{position:relative;z-index:1;display:grid;grid-template-columns:112px minmax(0,1fr) 245px;gap:26px;align-items:center;min-height:160px}
.dispatch-paper-logo img{display:block;width:108px;height:108px;object-fit:contain;background:transparent;filter:none;mix-blend-mode:normal}
.dispatch-paper-brand{text-align:center}
.dispatch-paper-brand h1{margin:0;color:var(--receipt-navy);font-size:29px;font-weight:800;line-height:1.35}
.dispatch-paper-brand p{margin:8px 0 5px;color:#9a7f39;font-size:16px;font-weight:800}
.dispatch-paper-brand bdi{display:block;color:#627485;font-size:12px;font-weight:700;letter-spacing:.25px}
.dispatch-paper-identity{padding:18px 14px 16px;border:2px solid var(--receipt-navy);border-radius:13px;background:#fff;text-align:center;box-shadow:0 7px 0 var(--receipt-gold)}
.dispatch-paper-identity small,.dispatch-paper-identity strong{display:block}
.dispatch-paper-identity small{color:#9a7f39;font-size:11px;font-weight:800}
.dispatch-paper-identity h2{margin:8px 0 6px;color:var(--receipt-navy);font-size:20px}
.dispatch-paper-identity strong{color:var(--receipt-navy);font-size:14px}
.dispatch-paper-identity span{display:inline-block;margin-top:9px;padding:5px 14px;border-radius:18px;background:var(--receipt-gold);color:#fff;font-size:10px;font-weight:800}
.dispatch-paper-contacts{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:30px;min-height:44px;margin-top:14px;border-top:4px solid var(--receipt-gold);border-radius:0 0 10px 10px;background:var(--receipt-navy);color:#fff;font-size:13px;font-weight:800}
.dispatch-paper-contacts bdi{color:#f3dda0;letter-spacing:.45px}
.dispatch-legacy-note{padding:9px 20px;border-bottom:1px solid #efdcbc;background:#fff8ea;color:#7c5a26;font-size:10px}
.dispatch-relation-note{position:relative;z-index:2;display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:9px 14px;border:1px solid #cfdfdc;border-radius:8px;background:#eff9f6;color:#3f625d;font-size:10px}
.dispatch-relation-note strong{color:#186f67}
.dispatch-relation-note span{flex:1}
.dispatch-relation-note button{font-size:10px}
.dispatch-paper-meta{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}
.dispatch-paper-meta>div{min-width:0;min-height:70px;padding:12px 14px;border:1px solid var(--receipt-line);border-inline-start:5px solid var(--receipt-gold);border-radius:9px;background:#fff}
.dispatch-paper-meta span,.dispatch-paper-meta strong,.dispatch-paper-meta small{display:block;overflow-wrap:anywhere}
.dispatch-paper-meta span{color:var(--receipt-muted);font-size:10px;font-weight:800}
.dispatch-paper-meta strong{margin-top:6px;color:var(--receipt-navy);font-size:13px;font-weight:800}
.dispatch-paper-meta small{margin-top:3px;color:#7f8d98;font-size:9px}
.dispatch-paper-section-title{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:22px}
.dispatch-paper-section-title h3{margin:0;color:var(--receipt-navy);font-size:17px}
.dispatch-paper-section-title span{color:#7a8994;font-size:9px}
.dispatch-paper-table-wrap{position:relative;z-index:1;margin-top:7px;overflow:hidden;border-radius:9px 9px 0 0}
.dispatch-note-items{width:100%;border-collapse:collapse;table-layout:fixed}
.dispatch-note-items th,.dispatch-note-items td{height:54px;padding:7px 8px;border:1px solid var(--receipt-line);text-align:center;vertical-align:middle;font-size:10px;line-height:1.45}
.dispatch-note-items thead th{height:58px;border-color:#365269;background:var(--receipt-navy);color:#fff;font-size:10px;font-weight:800}
.dispatch-note-items th>small,.dispatch-note-items td>small{display:block;margin-top:3px;color:#c5a95c;font-size:8px;font-weight:500}
.dispatch-note-items td>small{color:#758794}
.dispatch-note-items td strong{color:var(--receipt-navy);font-size:12px}
.dispatch-note-items tbody tr:nth-child(even){background:#f7f9fb}
.dispatch-note-items .dispatch-paper-empty-row{color:#bec8cf}
.dispatch-note-items th:nth-child(1){width:5%}
.dispatch-note-items th:nth-child(2){width:26%}
.dispatch-note-items th:nth-child(3){width:13%}
.dispatch-note-items th:nth-child(4){width:22%}
.dispatch-note-items th:nth-child(5){width:12%}
.dispatch-note-items th:nth-child(6){width:22%}
.dispatch-paper-summary{position:relative;z-index:1;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;margin-top:12px}
.dispatch-paper-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:57px;padding:10px 13px;border:1px solid var(--receipt-line);border-radius:8px;background:#f8fafb}
.dispatch-paper-summary .total{background:var(--receipt-navy);color:#fff}
.dispatch-paper-summary span{color:#6d7d89;font-size:10px}
.dispatch-paper-summary strong{color:var(--receipt-navy);font-size:15px}
.dispatch-paper-summary strong small{font-size:10px}
.dispatch-paper-summary .total span{color:#cbd7df}
.dispatch-paper-summary .total strong{color:#fff}
.dispatch-paper-summary .status{font-size:11px}
.dispatch-paper-summary .status.approved{color:#237468}
.dispatch-paper-summary .status.orange{color:#9a6a17}
.dispatch-paper-summary .status.danger{color:#a13a3a}
.dispatch-note-notes{position:relative;z-index:1;display:flex;align-items:flex-start;gap:10px;min-height:74px;margin-top:12px;padding:13px 15px;border:1px solid var(--receipt-line);border-radius:9px;background:#fff}
.dispatch-note-notes strong{flex:0 0 auto;color:#927a39;font-size:10px}
.dispatch-note-notes p{margin:0;white-space:pre-wrap;line-height:1.65;font-size:10px}
.dispatch-note-notes.has-appendix>div{min-width:0;display:grid;gap:3px}
.dispatch-note-notes.has-appendix p{display:-webkit-box;max-height:3.3em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.dispatch-note-notes.has-appendix small{color:#8b7131;font-size:8px;font-weight:800}
.dispatch-note-signatures{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.dispatch-note-signatures>div:only-child{grid-column:1/-1}
.dispatch-note-signatures>div{position:relative;min-height:94px;padding:16px;border:1px solid var(--receipt-line);border-top:4px solid var(--receipt-navy);border-radius:8px;background:#fff}
.dispatch-note-signatures span,.dispatch-note-signatures strong,.dispatch-note-signatures small{display:block}
.dispatch-note-signatures span{color:#987d38;font-size:10px;font-weight:800}
.dispatch-note-signatures strong{margin-top:12px;color:var(--receipt-navy);font-size:12px}
.dispatch-note-signatures small{margin-top:4px;color:var(--receipt-muted);font-size:8px}
.dispatch-note-signatures i{position:absolute;inset:auto 15px 12px;font-size:8px;font-style:normal;color:#71808b;border-bottom:1px dotted #75848e;padding-bottom:2px}
.dispatch-recipient-confirmation{position:relative;z-index:1;margin-top:14px;padding:13px 15px 16px;border:3px solid var(--receipt-gold);border-radius:10px;background:#fffefb}
.dispatch-recipient-title{display:flex;align-items:center;justify-content:space-between;gap:20px}
.dispatch-recipient-title h3{margin:0;color:var(--receipt-navy);font-size:13px}
.dispatch-recipient-title p{margin:0;color:#6f7f8a;font-size:8px}
.dispatch-recipient-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:13px}
.dispatch-recipient-fields span{display:block;color:var(--receipt-navy);font-size:9px;font-weight:800}
.dispatch-recipient-fields span small{color:#7a8893;font-size:8px}
.dispatch-recipient-fields strong{display:block;min-height:25px;padding:5px 2px 3px;border-bottom:1px solid var(--receipt-navy);color:var(--receipt-navy);font-size:10px}
.dispatch-paper-verification{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:35px;margin-top:12px;padding:8px 10px;border-radius:7px;background:#f2f5f7;color:#70808c;font-size:7px}
.dispatch-paper-verification span{min-width:0;overflow-wrap:anywhere}
.dispatch-paper-verification code{flex:0 0 auto;color:#29445a;font-size:7px}
.dispatch-paper-footer{position:absolute;z-index:1;inset:auto 40px 22px;display:flex;justify-content:space-between;padding-top:10px;border-top:1px solid var(--receipt-line);color:#7d8a94;font-size:8px}
.dispatch-notes-page{display:flex;flex-direction:column}
.dispatch-notes-appendix{position:relative;z-index:1;flex:1;margin-top:28px;padding:24px;border:1px solid var(--receipt-line);border-top:5px solid var(--receipt-gold);border-radius:10px;background:#fff}
.dispatch-notes-appendix>header{padding-bottom:16px;border-bottom:2px solid var(--receipt-navy)}
.dispatch-notes-appendix>header span{color:#947936;font-size:11px;font-weight:800}
.dispatch-notes-appendix>header h2{margin:7px 0;color:var(--receipt-navy);font-size:22px}
.dispatch-notes-appendix>header p{margin:0;color:var(--receipt-muted);font-size:10px}
.dispatch-notes-full-text{margin-top:22px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--receipt-ink);font-size:12px;line-height:1.9}
.dispatch-notes-page>.dispatch-paper-verification{margin-top:14px;margin-bottom:28px}
.dispatch-audit{margin-top:16px;padding:17px 20px;border:1px solid var(--line);border-radius:11px;background:#fff}
.dispatch-audit .section-head{margin-bottom:10px}
.dispatch-document-hash{padding:6px 9px;border-radius:18px;background:#eaf8f4;color:#13766d;font-size:9px;font-weight:800}
.dispatch-audit-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.dispatch-audit-list li{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding:9px 11px;border-radius:7px;background:#f7fafb;font-size:10px}
.dispatch-audit-list span{color:#38505e;font-weight:700}
.dispatch-audit-list strong{color:#52636e}
.dispatch-audit-list time{color:var(--muted);white-space:nowrap}
.dispatch-no-audit{margin:0;color:var(--muted);font-size:11px}
.dispatch-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;border-top:1px solid var(--line);background:#fff}
.dispatch-dialog-actions>.dispatch-actions{flex:1}

/* Larger operating controls and receipt text for comfortable daily reading. */
.dispatch-form label,.dispatch-filters label,.dispatch-print-setting label{font-size:14px;line-height:1.5}
.dispatch-form input,.dispatch-form select,.dispatch-form textarea,
.dispatch-filters input,.dispatch-filters select{font-size:16px!important;line-height:1.5}
.dispatch-paper-meta span{font-size:12px}
.dispatch-paper-meta strong{font-size:15px}
.dispatch-paper-meta small{font-size:11px}
.dispatch-note-items th,.dispatch-note-items td{font-size:12px;line-height:1.55}
.dispatch-note-items strong{font-size:14px}
.dispatch-paper-summary span{font-size:12px}
.dispatch-paper-summary strong{font-size:17px}
.dispatch-paper-summary strong small{font-size:12px}
.dispatch-paper-summary .status{font-size:13px}
.dispatch-note-notes,.dispatch-note-notes p{font-size:12px;line-height:1.7}
.dispatch-note-signatures span{font-size:12px}
.dispatch-note-signatures strong{font-size:14px}
.dispatch-note-signatures small,.dispatch-note-signatures i{font-size:10px}
.dispatch-recipient-confirmation{font-size:12px;line-height:1.65}
.dispatch-recipient-fields strong{font-size:13px}

@media(max-width:1150px){
  .dispatch-layout{grid-template-columns:1fr}
  .dispatch-draft-card,.dispatch-permission{position:static}
  .dispatch-filters{grid-template-columns:2fr 1fr 1fr}
  .dispatch-filters label:nth-of-type(4),.dispatch-filters label:nth-of-type(5){grid-row:2}
}
@media(max-width:900px){
  .dispatch-workflow{grid-template-columns:1fr 1fr;gap:9px}
  .dispatch-workflow>i{display:none}
  .dispatch-summary{grid-template-columns:1fr 1fr}
  .official-dispatch-note{padding-inline:28px}
  .dispatch-paper-header{grid-template-columns:92px minmax(0,1fr) 205px;gap:18px}
  .dispatch-paper-logo img{width:88px;height:88px}
  .dispatch-paper-brand h1{font-size:23px}
  .dispatch-paper-brand p{font-size:13px}
  .dispatch-paper-identity{padding-inline:9px}
  .dispatch-note-signatures{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .dispatch-workflow{padding:10px}
  .dispatch-workflow>div{grid-template-columns:28px 1fr}
  .dispatch-workflow>div>span{width:28px;height:28px;font-size:11px}
  .dispatch-workflow strong{font-size:11px}
  .dispatch-workflow small{font-size:8px}
  .dispatch-page-head{justify-content:stretch}
  .dispatch-print-setting{width:100%;grid-template-columns:1fr}
  .dispatch-print-setting small{grid-column:auto}
  .dispatch-draft-card,.dispatch-register{padding:14px}
  .dispatch-fields{grid-template-columns:1fr}
  .dispatch-items-head{align-items:flex-start}
  .dispatch-item-row{grid-template-columns:1fr 78px 34px}
  .dispatch-item-row>label:first-child{grid-column:1/-1}
  .dispatch-item-availability{grid-column:1}
  .dispatch-remove-line{grid-column:3;grid-row:2}
  .dispatch-review dl{grid-template-columns:1fr}
  .dispatch-form-actions{grid-template-columns:1fr}
  .dispatch-filters{grid-template-columns:1fr 1fr}
  .dispatch-filters .dispatch-search{grid-column:1/-1}
  .dispatch-filters label:nth-of-type(4),.dispatch-filters label:nth-of-type(5){grid-row:auto}
  .dispatch-filters button{grid-column:1/-1}
  .dispatch-detail-dialog{width:100vw;max-width:100vw;height:100vh;max-height:100vh;border-radius:0}
  .dispatch-detail-dialog #dispatchDetailContent{max-height:100vh;height:100vh}
  .dispatch-dialog-head{padding:14px}
  .dispatch-dialog-scroll{padding:8px}
  .official-dispatch-note{width:100%;height:auto;min-height:auto;padding:24px 13px 62px}
  .official-dispatch-note::after{display:none}
  .dispatch-paper-header{grid-template-columns:72px minmax(0,1fr);gap:12px;min-height:0}
  .dispatch-paper-logo img{width:70px;height:70px}
  .dispatch-paper-brand h1{font-size:17px}
  .dispatch-paper-brand p{margin-block:4px;font-size:10px}
  .dispatch-paper-brand bdi{font-size:8px}
  .dispatch-paper-identity{grid-column:1/-1;padding:12px;margin-top:4px;box-shadow:0 4px 0 var(--receipt-gold)}
  .dispatch-paper-identity h2{margin:5px 0;font-size:17px}
  .dispatch-paper-contacts{flex-wrap:wrap;gap:5px 18px;min-height:50px;padding:8px;text-align:center}
  .dispatch-paper-meta{grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}
  .dispatch-paper-meta>div{min-height:72px;padding:10px}
  .dispatch-paper-section-title{display:block;margin-top:16px}
  .dispatch-paper-section-title span{display:block;margin-top:4px}
  .dispatch-paper-table-wrap{overflow-x:auto}
  .dispatch-note-items{min-width:720px}
  .dispatch-paper-summary{grid-template-columns:1fr;margin-top:9px}
  .dispatch-paper-summary>div{min-height:48px}
  .dispatch-note-notes{display:block;min-height:68px}
  .dispatch-note-notes p{margin-top:6px}
  .dispatch-note-notes.has-appendix>div{margin-top:5px}
  .dispatch-note-signatures{grid-template-columns:1fr;margin-top:10px}
  .dispatch-recipient-title{display:block}
  .dispatch-recipient-title p{margin-top:6px}
  .dispatch-recipient-fields{grid-template-columns:1fr;gap:10px}
  .dispatch-paper-verification{display:block}
  .dispatch-paper-verification code{display:block;margin-top:6px}
  .dispatch-paper-footer{inset:auto 13px 18px}
  .dispatch-notes-page{min-height:900px}
  .dispatch-notes-appendix{margin-top:16px;padding:16px}
  .dispatch-notes-appendix>header h2{font-size:18px}
  .dispatch-notes-full-text{font-size:11px}
  .dispatch-audit-list li{grid-template-columns:1fr 1fr}
  .dispatch-audit-list time{grid-column:1/-1}
  .dispatch-dialog-actions{align-items:stretch;padding:10px;flex-direction:column}
  .dispatch-dialog-actions>.dispatch-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .dispatch-dialog-actions>.dispatch-actions button{width:100%}
  .dispatch-dialog-actions>button{width:100%}
}
@media(max-width:440px){
  .dispatch-summary{grid-template-columns:1fr 1fr;gap:7px}
  .dispatch-summary .card{padding:11px}
  .dispatch-summary strong{font-size:20px}
  .dispatch-filters{grid-template-columns:1fr}
  .dispatch-filters .dispatch-search,.dispatch-filters button{grid-column:auto}
  .dispatch-dialog-actions>.dispatch-actions{grid-template-columns:1fr}
}

@media screen{
  html[data-ui-font-size="maximum"] .official-dispatch-note{height:auto;min-height:1499px;overflow:visible}
  html[data-ui-font-size="maximum"] .dispatch-paper-header{grid-template-columns:112px minmax(0,1fr)}
  html[data-ui-font-size="maximum"] .dispatch-paper-identity{grid-column:1/-1}
  html[data-ui-font-size="maximum"] .dispatch-paper-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-ui-font-size="maximum"] .dispatch-paper-summary,
  html[data-ui-font-size="maximum"] .dispatch-note-signatures,
  html[data-ui-font-size="maximum"] .dispatch-recipient-fields{grid-template-columns:1fr}
  html[data-ui-font-size="maximum"] .dispatch-paper-table-wrap{overflow:auto;scrollbar-gutter:stable}
  html[data-ui-font-size="maximum"] .dispatch-note-items{min-width:1180px}
}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm;margin:0!important;padding:0!important;background:#fff!important}
  body>.app-shell,body>#toast{display:none!important}
  #dispatchDetailDialog[open]{position:static!important;display:block!important;width:210mm!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
  #dispatchDetailDialog::backdrop,.dispatch-dialog-head,.dispatch-dialog-actions,.dispatch-audit{display:none!important}
  #dispatchDetailDialog #dispatchDetailContent{display:block!important;max-height:none!important;height:auto!important;overflow:visible!important}
  .dispatch-dialog-scroll{overflow:visible!important;padding:0!important;background:#fff!important}
  .dispatch-paper-stack{display:block!important}
  .official-dispatch-note{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:9mm 8mm 15mm!important;overflow:hidden!important;border:0!important;box-shadow:none!important;break-after:page;page-break-after:always}
  .official-dispatch-note:last-child{break-after:auto;page-break-after:auto}
  .official-dispatch-note::before{height:3mm}
  .official-dispatch-note::after{display:none}
  .dispatch-paper-header{grid-template-columns:26mm minmax(0,1fr) 45mm;gap:5mm;min-height:31mm}
  .dispatch-paper-logo img{width:25mm;height:25mm}
  .dispatch-paper-brand h1{font-size:16pt}
  .dispatch-paper-brand p{font-size:9pt}
  .dispatch-paper-brand bdi{font-size:7pt}
  .dispatch-paper-identity{padding:3mm 2mm;box-shadow:0 1.4mm 0 var(--receipt-gold)}
  .dispatch-paper-identity h2{font-size:12pt}
  .dispatch-paper-contacts{min-height:9mm;margin-top:2mm;border-top-width:1mm}
  .dispatch-paper-meta{gap:2mm;margin-top:4mm}
  .dispatch-paper-meta>div{min-height:13mm;padding:2mm 2.5mm;border-inline-start-width:1mm}
  .dispatch-paper-section-title{margin-top:4mm}
  .dispatch-paper-table-wrap{margin-top:1.5mm;overflow:visible}
  .dispatch-note-items{min-width:0}
  .dispatch-note-items th,.dispatch-note-items td{height:10.5mm;padding:1.2mm;font-size:8.7pt;line-height:1.45}
  .dispatch-note-items thead th{height:11mm;font-size:8.2pt}
  .dispatch-paper-summary{gap:2mm;margin-top:2.5mm}
  .dispatch-paper-summary>div{min-height:11mm;padding:2mm}
  .dispatch-paper-meta span{font-size:8pt}
  .dispatch-paper-meta strong{font-size:10pt}
  .dispatch-paper-meta small{font-size:7.5pt}
  .dispatch-paper-summary span{font-size:8.5pt}
  .dispatch-paper-summary strong{font-size:12pt}
  .dispatch-note-notes,.dispatch-note-notes p{font-size:8.7pt;line-height:1.55}
  .dispatch-note-notes{min-height:13mm;margin-top:2.5mm;padding:2.5mm}
  .dispatch-note-signatures{gap:3mm;margin-top:2.5mm}
  .dispatch-note-signatures>div{min-height:18mm;padding:2.5mm}
  .dispatch-note-signatures span{font-size:8.5pt}
  .dispatch-note-signatures strong{font-size:10pt}
  .dispatch-note-signatures small,.dispatch-note-signatures i{font-size:7.5pt}
  .dispatch-recipient-confirmation{margin-top:2.5mm;padding:2.5mm;border-width:.7mm}
  .dispatch-recipient-confirmation{font-size:8.7pt;line-height:1.5}
  .dispatch-paper-verification{min-height:7mm;margin-top:2.5mm;padding:1.5mm 2mm}
  .dispatch-paper-footer{inset:auto 8mm 5mm}
  .dispatch-notes-page{display:flex!important}
  .dispatch-notes-appendix{margin-top:5mm;padding:5mm;border-top-width:1mm}
  .dispatch-notes-appendix>header{padding-bottom:3mm}
  .dispatch-notes-appendix>header h2{margin:1.5mm 0;font-size:15pt}
  .dispatch-notes-full-text{margin-top:4mm;font-size:9pt;line-height:1.9}
  .dispatch-notes-page>.dispatch-paper-verification{margin-top:3mm;margin-bottom:7mm}
  .dispatch-relation-note{display:none!important}
}
