.freight-planner{max-width:760px;margin:auto;color:#142724}.fp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fp-field{display:flex;flex-direction:column;gap:6px;min-width:0}.fp-field>span{font-size:15px;font-weight:600}.fp-field input,.fp-field select,.fp-field textarea{width:100%;min-height:48px;font-size:18px;box-sizing:border-box}.fp-stop{margin:16px 0;padding:12px;border:1px solid #ccd8d3;border-radius:14px;min-width:0}.fp-stop legend{font-weight:700}.fp-line{display:grid;grid-template-columns:minmax(100px,1fr) minmax(85px,.7fr) 44px;align-items:end;gap:8px;margin:12px 0}.fp-line .fp-weight:not([hidden]){grid-column:1/3}.fp-line button{grid-column:3;min-width:44px;min-height:48px;padding:8px}.fp-line .fp-field[hidden]{display:none}.fp-summary{background:#e6f1eb;border:1px solid #bfd6ca;border-radius:14px;padding:16px;margin:18px 0}.fp-totals{font-size:28px;font-weight:700;display:flex;gap:30px;margin:8px 0}.fp-summary small{font-size:13px}.fp-hints{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;align-items:center}.fp-hints[hidden]{display:none}.fp-hints button{min-width:180px;text-align:left;font-size:14px;min-height:48px}.fp-locations{display:grid;gap:4px}.fp-locations button{text-align:left}.freight-planner table{width:100%;border-collapse:collapse}.freight-planner td{padding:8px;border-bottom:1px solid #dbe3df}.freight-planner td:last-child{text-align:right}.freight-planner .actions{display:flex;gap:8px;flex-wrap:wrap}.fp-save,.fp-connection{font-size:13px}@media(max-width:600px){#modal:has(.freight-planner){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#modal:has(.freight-planner) .modal-head h2{font-size:21px}#modal:has(.freight-planner) .modal-foot{display:flex;flex-wrap:wrap;gap:8px}#modal:has(.freight-planner) .modal-foot .primary{flex:1 0 100%;min-height:54px}#modal:has(.freight-planner) .modal-body{padding:14px}.fp-grid{gap:8px}.fp-field input[type=date]{font-size:16px;min-width:0}.fp-stop{padding:10px}}

.fp-footer-total{flex:1 0 100%;font-size:19px;font-weight:700;color:#123e32;text-align:right;padding:3px 0}#modal:has(.freight-planner) .modal-foot{display:flex;flex-wrap:wrap}#modal:has(.freight-planner) .modal-foot button{font-size:15px}#modal:has(.freight-planner) .modal-foot .primary{font-size:16px;line-height:1.3}

.fp-clients{display:grid;gap:6px;margin-top:8px}.fp-clients:empty{display:none}.fp-clients button{text-align:left;min-height:48px;white-space:normal;overflow-wrap:anywhere}
.fp-address,.fp-extras,.fp-carrier{margin:14px 0}.fp-address[open],.fp-extras[open],.fp-carrier[open]{display:grid;gap:12px}
.fp-detail h3{margin:14px 0 8px}.fp-detail .fp-summary{padding:12px;font-size:18px}.fp-message{color:#a32424;white-space:pre-line}
.fp-detail .dispatcher-section{padding:12px 0}.fp-detail .dispatcher-section>h3{display:none}
.fp-detail .dispatcher-batch p{white-space:pre-wrap;overflow-wrap:anywhere}
.fp-detail .fp-grid{gap:12px}.fp-detail .fp-grid input{font-size:17px}
@media(max-width:480px){.fp-carrier .fp-grid{grid-template-columns:1fr}.fp-detail .fp-totals{font-size:22px}}

.shade-load{margin:16px 0;padding:16px;border:1px solid #b8cdc5;border-radius:16px;background:#f4f8f6}.shade-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:19px}.shade-load .loading-line{background:transparent}.shade-total{font-weight:700;color:#164f3e}.shade-total.is-over{color:#a32424}.fp-allocations{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#f1f7f4;padding:12px;border-radius:12px}.fp-allocations>strong{grid-column:1/-1}.fp-allocations input{width:100%;min-width:0}

.shipment-stock{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:10px 12px;background:#eaf3ef;border-radius:12px;font-size:15px;color:#173b30}
.shipment-stock:empty,.shipment-stock[hidden]{display:none}
.shipment-stock strong{display:block;font-size:18px;line-height:1.35}
.shipment-stock small{display:block;font-size:12px;color:#52655e}
.shipment-stock button,.fp-line .shipment-stock button{min-height:46px;min-width:132px;grid-column:auto;padding:10px 14px;border-color:#a8c7b8;background:#fff;font-size:16px;font-weight:650}
.shipment-stock .stock-shortage{flex-basis:100%;color:#8a4719}
.fp-allocation-row{min-width:0}.fp-allocation-row .shipment-stock{margin-top:8px}
.loading-line{flex-wrap:wrap}.loading-line>.shipment-stock{flex-basis:100%;box-sizing:border-box;margin-top:8px}
@media(max-width:480px){.fp-allocations{grid-template-columns:1fr}.shipment-stock{padding:10px}.shipment-stock button{flex-shrink:0}}

.loading-line input{width:100%;min-width:0;box-sizing:border-box}.loading-line>div:first-child{min-width:0;flex:1}.loading-line .shipment-stock strong{font-size:18px}

.pickup-editor [data-pickup-total]{display:block;margin:16px 0}.pickup-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pickup-editor textarea{width:100%;box-sizing:border-box;min-height:90px}.pickup-note{white-space:pre-wrap;overflow-wrap:anywhere}.pickup-payment{margin:12px 0}.pickup-payment p{margin:6px 0}.pickup-editor select{min-width:0;max-width:100%}@media(max-width:360px){.pickup-period{grid-template-columns:1fr}}

.pickup-editor{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;overflow-wrap:anywhere}
.pickup-editor>*{min-width:0;max-width:100%}
.pickup-editor .form-field{min-width:0;width:100%}
.pickup-editor input,.pickup-editor select,.pickup-editor textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:16px;min-height:48px}
.pickup-editor button{white-space:normal;min-height:44px}
.pickup-editor p{white-space:normal}
@media(max-width:480px){.pickup-period{grid-template-columns:minmax(0,1fr)}}

/* Shipment creation and self pickup share the warehouse completion workflow. */
.shipment-kind-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.shipment-kind-choice>p{grid-column:1/-1;margin:0}
.shipment-kind-choice>button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px 12px;text-align:left;padding:20px;white-space:normal;border-radius:16px}
.shipment-kind-choice svg{width:30px;height:30px;grid-row:1/3}
.shipment-kind-choice strong{font-size:21px}.shipment-kind-choice span{font-size:15px;line-height:1.5}
.shipment-kind-choice>button:hover,.shipment-kind-choice>button:focus-visible{background:#edf6f1;border-color:#26715b}
.pickup-editor.cargo-editor{display:grid;gap:16px;max-width:880px;margin:auto}
.pickup-section{border:1px solid #d7e3dc;border-radius:14px;padding:16px;background:#fff;display:grid;gap:12px}
.pickup-section h3{font-size:18px;margin:0}.pickup-section .form-field{margin:0}
.pickup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.pickup-fields>*{min-width:0}.shipment-mode{display:flex;gap:12px;align-items:start;line-height:1.5;font-size:14px}.shipment-mode .badge{flex-shrink:0}
.pickup-company details{border:1px solid #a7bfb3;border-radius:12px;padding:0;background:#f9fcfa}
.pickup-company summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;cursor:pointer;font-weight:650;list-style:none}
.pickup-company summary::-webkit-details-marker{display:none}.pickup-company summary>span:first-child{min-width:0;overflow-wrap:anywhere}
.pickup-company summary>span:last-child{flex-shrink:0;font-size:13px}
.pickup-company details[open] summary{border-bottom:1px solid #d7e3dc}
.pickup-company .pickup-search{display:grid;gap:6px;padding:12px;margin:0;font-size:14px}
.pickup-company-list{display:grid;gap:4px;max-height:240px;overflow:auto;overscroll-behavior:contain;padding:0 10px 10px}
.pickup-company-list>button{display:flex;flex-direction:column;gap:3px;align-items:start;text-align:left;padding:10px 12px;background:white;border:1px solid #dbe5df}
.pickup-company-list small{font-size:12px;color:#52655e}
.pickup-company-list>button[aria-pressed=true]{background:#e4f1e9;border-color:#26715b}
.pickup-company-list>p{margin:10px;line-height:1.5}
.pickup-company [data-pickup-company-count]{display:block;padding:0 12px 10px;color:#52655e}
.pickup-editor [data-pickup-total]{background:#e6f1eb;border-radius:10px;padding:14px;margin:0;font-size:19px;line-height:1.5}
.pickup-section>.subtitle{margin:0;font-size:13px;line-height:1.5}
#modal:has(.pickup-editor){width:min(960px,96vw)}
@media(max-width:600px){
 .shipment-kind-choice,.pickup-fields{grid-template-columns:minmax(0,1fr)}
 .shipment-kind-choice>button{padding:16px}.shipment-mode{flex-direction:column;gap:6px}
 #modal:has(.pickup-editor){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 #modal:has(.pickup-editor) .modal-body{padding:12px}#modal:has(.pickup-editor) .modal-head h2{font-size:21px}
 #modal:has(.pickup-editor) .modal-foot .primary{flex:1;min-height:50px}
 .pickup-section{padding:12px}.pickup-editor.cargo-editor{gap:12px}
}

#modal:has(.pickup-editor)[open]{display:flex;flex-direction:column;height:min(940px,94dvh);max-height:94dvh;overflow:hidden}
#modal:has(.pickup-editor) .modal-head{flex-shrink:0}
#modal:has(.pickup-editor) form{display:flex;flex-direction:column;flex:1;min-height:0}
#modal:has(.pickup-editor) .modal-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#modal:has(.pickup-editor) .modal-foot{flex-shrink:0;position:static}
@media(min-width:900px){
 .pickup-editor.cargo-editor{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .pickup-editor>.shipment-mode,.pickup-editor>.pickup-section:nth-of-type(3){grid-column:1/-1}
 .pickup-fields{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){#modal:has(.pickup-editor)[open]{height:100dvh;max-height:100dvh}}

/* Shared trip terms stay distinct from each buyer's cargo and documents. */
.fp-trip-terms{border:1px solid #b7d4c6;border-radius:14px;padding:16px;background:#f1f7f3;margin:18px 0;display:grid;gap:12px}
.fp-trip-terms h3,.fp-trip-terms p{margin:0}.fp-trip-terms small,.fp-route-help{color:#4e655a;line-height:1.5}
.fp-trip-terms .fp-field:last-child{grid-column:1/-1}
.fp-repeat-note{background:#eaf3fb;border:1px solid #bdcfe0;border-radius:12px;padding:14px;line-height:1.5;grid-column:1/-1}
.fp-repeat-note p{margin:6px 0}.fp-trip-badge{font-size:13px;color:#205a45;background:#e5f0e9;border-radius:8px;padding:8px 10px}
.fp-route-actions button{white-space:normal}.fp-trip-terms .fp-field select{font-size:16px}
.fp-detail .actions{margin:12px 0 22px}
@media(max-width:480px){.fp-trip-terms{padding:12px}.fp-trip-terms .fp-grid{grid-template-columns:minmax(0,1fr)}}

.fp-action-feedback{padding:12px 14px;border-radius:12px;background:#e4f3ec;color:#174c3d;line-height:1.45;overflow-wrap:anywhere;border:1px solid #b7d5c6}.fp-action-feedback.is-failed{background:#fff1ed;color:#853c32;border-color:#dfb0a6}.fp-action-feedback[hidden]{display:none}.fp-public-quantity{font-size:.9rem;line-height:1.4;margin:10px 0 18px}

.delivery-images{margin:16px 0;padding:14px;border:1px solid #c6dcd0;border-radius:12px;background:#f4f9f5}
.delivery-images>strong{display:block;margin-bottom:10px}.delivery-image-list{display:grid;gap:10px}
.delivery-image-item{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:10px;overflow-wrap:anywhere}
.delivery-image-item img{width:80px;height:80px;object-fit:contain;background:white;border-radius:8px}
.delivery-images button{min-height:44px!important;white-space:normal}.delivery-image-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.delivery-image-status{font-size:14px}.recipient-diagrams{display:grid;gap:10px;margin-top:14px}
@media(max-width:420px){.delivery-image-item{grid-template-columns:70px minmax(0,1fr)}.delivery-image-item img{width:70px;height:70px}.delivery-image-item>button{grid-column:1/-1}}
