.logistics-toolbar,.logistics-card-top,.logistics-demand,.logistics-document,.logistics-obligation{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.logistics-toolbar{margin:16px 0}.logistics-toolbar>.field{min-width:220px}.logistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;margin-top:16px}.logistics-title{font-size:17px;font-weight:650;text-align:left;white-space:normal;margin:12px 0 4px}.logistics-route{overflow-wrap:anywhere}.logistics-board{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:14px;overflow-x:auto;padding-bottom:12px}.logistics-lane{background:#f0f3ef;border-radius:12px;padding:12px;min-height:230px}.logistics-lane>h2{font-size:16px;margin:0 0 14px}.logistics-lane>h2 span{font-size:13px;color:#72806c}.logistics-lane .card{margin-bottom:10px}.logistics-lines>div,.logistics-stops li{display:flex;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e0e5df}.logistics-lines>div>span{white-space:nowrap}.logistics-stops{padding-left:24px}.logistics-stops li{display:list-item}.logistics-stops li>div{display:inline-block;vertical-align:top;margin-right:12px}.logistics-notes{white-space:pre-wrap}.logistics-demand,.logistics-document,.logistics-obligation{padding:12px 0;border-bottom:1px solid #e0e5df}.logistics-money{display:flex;gap:24px;flex-wrap:wrap}.logistics-money strong{display:block;font-size:20px;margin-top:6px}.logistics-dialog{width:min(900px,calc(100vw - 24px));max-height:calc(100vh - 30px);padding:0;border:1px solid #dce4d6;border-radius:14px;color:inherit}.logistics-dialog .card-body{overflow:auto;max-height:calc(100vh - 120px)}.logistics-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.logistics-cargo{margin:16px 0;padding:12px;border:1px solid #dce4d6;border-radius:8px;max-height:340px;overflow:auto}.logistics-cargo-row{display:grid;grid-template-columns:1fr 110px;gap:12px;align-items:center;margin:8px 0}.logistics-trip-choice{display:flex;gap:10px;margin:12px 0}.logistics-trip-choice small{display:block;color:#75806f}.logistics-dialog input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.logistics-dialog .field{margin:8px 0}.logistics-dialog [data-logistics-form-error]{color:#a52a16}.logistics-document a{overflow-wrap:anywhere}.logistics-dialog .button-row{margin-top:16px;flex-wrap:wrap}#logistics-root .button-row{flex-wrap:wrap}#logistics-root>.card{margin:14px 0}
@media(max-width:640px){.logistics-form-grid{grid-template-columns:1fr}.logistics-board{grid-template-columns:repeat(4,260px)}.logistics-dialog .card-body{padding:14px}.logistics-lines>div{align-items:flex-start}.logistics-lines>div>span{white-space:normal;min-width:90px}.logistics-cargo-row{grid-template-columns:1fr 85px}.logistics-money{gap:12px}.logistics-toolbar>.field{width:100%}.logistics-obligation{display:block}.logistics-obligation>div{margin-top:8px}}
@media(max-width:640px){#logistics-root .card-heading,#logistics-root>.page-heading{flex-direction:column;align-items:flex-start;gap:12px}#logistics-root .button,.logistics-dialog .button{max-width:100%;white-space:normal;height:auto;overflow-wrap:anywhere}#logistics-root .button-row{max-width:100%}#logistics-root .card-heading>div{min-width:0}#logistics-root .card-heading h2,#logistics-root .card-heading p,#logistics-root h1{overflow-wrap:anywhere}}
.logistics-cargo-row[hidden]{display:none}

/* The dashboard owns its overflow; the surrounding CRM keeps its normal width. */
#logistics-root{min-width:0;max-width:100%}
#logistics-root .page-heading{align-items:center;margin-bottom:18px}
#logistics-root .page-heading .help{margin:5px 0 0}
#logistics-root .logistics-toolbar{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(160px,1fr));gap:12px;align-items:end;margin:0 0 12px}
#logistics-root .logistics-toolbar>.field{min-width:0;margin:0}
#logistics-root .logistics-toolbar .input{width:100%;min-width:0}
.logistics-view-switch{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.logistics-view-switch .button{min-height:32px;font-size:12px;padding:6px 12px}
.logistics-dashboard{display:grid;grid-template-columns:clamp(240px,18vw,310px) minmax(0,1fr) clamp(280px,20vw,340px);gap:12px;align-items:stretch;min-width:0}
.logistics-dashboard>*{min-width:0}
.logistics-panel{border:1px solid #d5e0e6;border-radius:13px;background:linear-gradient(150deg,#fff,#f7fafb);padding:14px;box-shadow:0 2px 5px #283b4c04}
.logistics-panel-heading{margin-bottom:14px}
#logistics-root .logistics-panel-heading h2{font-size:17px;line-height:1.35;color:#213443}
.logistics-panel-heading .help{margin:4px 0 0;font-size:12px;color:#5e7082}
.logistics-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:22px;border-radius:6px;padding:1px 5px;background:#eaf0f2;color:#4f6474;font-size:12px;font-weight:600;vertical-align:middle}
.logistics-panel-heading .logistics-count{margin-left:4px;background:transparent;font-size:15px}
.logistics-dashboard .card{border:1px solid #d4e0e6;border-radius:10px;box-shadow:0 1px 3px #26374604;background:linear-gradient(135deg,#fff,#f9fbfc);margin:0 0 10px}
.logistics-dashboard .card-body{padding:12px}
#logistics-root .logistics-dashboard .logistics-title{display:flex;gap:7px;align-items:flex-start;margin:0 0 10px;font-size:14px;line-height:1.4;color:#203444;font-weight:650}
.logistics-title:hover{text-decoration:underline}
.logistics-icon{display:inline-block;flex:0 0 17px;width:17px;height:17px;vertical-align:middle}
.logistics-trip-card .logistics-title>.logistics-icon{color:#507c2f;margin-top:1px}
.logistics-meta{display:flex;align-items:flex-start;gap:7px;margin:8px 0;font-size:12px;line-height:1.5;color:#334b5c}
.logistics-meta>.logistics-icon{margin-top:1px;color:#536471}
.logistics-meta>span{min-width:0;overflow-wrap:anywhere}
.logistics-meta small{display:block;margin-top:2px;font-size:11px;color:#697888}
.logistics-card-eyebrow{margin:0 0 5px;font-size:11px;color:#5e7082;overflow-wrap:anywhere}
.logistics-card-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:10px}
.logistics-card-footer .button{padding:5px 9px;min-height:29px;font-size:12px;color:#3f6b1b;border-color:#d6e6c8;background:#f8fcf3}
.logistics-control{display:flex;align-items:flex-start;gap:6px;margin:10px 0 0;color:#95651a;font-size:11px;line-height:1.45}
.logistics-control.is-ready{color:#497522}
.logistics-control .logistics-icon{flex-basis:14px;width:14px;height:14px;margin-top:1px}
.logistics-queue-group{border-top:1px solid #e1e7ea;padding-top:13px;margin-top:16px}
.logistics-queue-group>h3{font-size:14px}
.logistics-queue-group>.help{margin:4px 0 10px;font-size:11px}
.logistics-queue-group .logistics-demand{display:block;margin-top:8px;padding:10px;background:#f2f5f7;border:1px dashed #ccd8df;border-radius:8px;overflow-wrap:anywhere}
.logistics-demand .help{margin:5px 0 9px}
.logistics-demand .button{width:100%;white-space:normal}
.logistics-trips-panel{display:flex;flex-direction:column;padding:14px 12px}
.logistics-trips-panel .logistics-panel-heading{padding:0 2px}
.logistics-board{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:8px;min-width:0;max-width:100%;overflow-x:auto;padding:0 0 9px;flex:1;align-items:stretch;scrollbar-width:thin}
.logistics-lane{padding:0;min-width:0;min-height:460px;background:#eef3f4;border-radius:10px;overflow:hidden}
.logistics-lane>h3{display:flex;gap:6px;justify-content:space-between;align-items:center;min-height:50px;margin:0;padding:10px;font-size:12px;line-height:1.35;background:#dfebdc;color:#263f30;border:1px solid #cbdcc7;border-radius:10px 10px 0 0}
.logistics-lane[data-logistics-stage="agreed"]>h3{background:#d8e9cf}
.logistics-lane[data-logistics-stage="enroute"]>h3{background:#d0e5bf}
.logistics-lane[data-logistics-stage="completed"]>h3{background:#badd93}
.logistics-lane>h3 .logistics-count{flex-shrink:0;background:#ffffffb8;color:#426437}
.logistics-lane-body{padding:8px 5px}
.logistics-dashboard .logistics-trip-card .card-body{padding:11px}
.logistics-trip-transport{border-top:1px solid #e0e7eb;margin-top:12px;padding-top:4px}
.logistics-progress{height:7px;background:#e3ebed;border-radius:10px;margin-top:14px;overflow:hidden}
.logistics-progress>span{display:block;height:100%;background:linear-gradient(90deg,#9bd441,#69ad1a);border-radius:inherit}
.logistics-progress-label{font-size:11px;margin:5px 0 11px;color:#495d69}
.logistics-document-pending{display:flex;align-items:center;gap:5px;padding:6px 7px;background:#fff4dc;border:1px solid #f4dfb4;border-radius:7px;color:#885710;font-size:11px;line-height:1.35;margin:0 0 11px}
.logistics-document-pending .logistics-icon{width:14px;height:14px;flex-basis:14px}
.logistics-trip-card .button{width:100%;font-size:11px;padding:7px 5px;white-space:normal}
.logistics-empty{padding:9px 2px;margin:0;font-size:12px;line-height:1.5;color:#6d7c88}
.logistics-month-nav{display:grid;grid-template-columns:26px minmax(0,1fr) 26px auto;align-items:center;gap:3px;margin:5px 0 15px}
.logistics-month-nav strong{text-transform:capitalize;text-align:center;font-size:13px}
.logistics-month-nav .icon-button{width:26px;height:30px;font-size:22px;background:#f5f8fa;border:1px solid #e2e9ee;border-radius:6px}
.logistics-month-nav .button{margin-left:6px;min-height:30px;font-size:11px;padding:5px 7px}
.logistics-weekdays,.logistics-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.logistics-weekdays{margin-bottom:7px;text-align:center;font-size:11px;color:#6a7b8a}
.logistics-calendar-day{display:flex;position:relative;align-items:center;justify-content:center;min-width:0;height:32px;border:1px solid transparent;border-radius:7px;color:#344c5e;background:transparent;padding:0;font-size:12px}
.logistics-calendar-day:hover{background:#eaf3dd}
.logistics-calendar-day.outside{color:#a1adb6}
.logistics-calendar-day.today{border-color:#a6cb80;font-weight:700}
.logistics-calendar-day[aria-pressed="true"]{background:linear-gradient(#a6d95a,#78b72c);border-color:#8cc242;color:#1f3c0d;font-weight:700}
.logistics-calendar-day i{position:absolute;width:4px;height:4px;border-radius:50%;bottom:2px;left:calc(50% - 2px);background:#6d9e3d}
.logistics-calendar-day[aria-pressed="true"] i{background:#345912}
.logistics-undated{display:flex;align-items:center;gap:8px;margin-top:12px;padding:5px 9px;min-height:30px;font-size:11px}
.logistics-undated[aria-pressed="true"]{background:#e8f3d9;border-color:#9ac26f}
.logistics-agenda{border-top:1px solid #e1e8eb;margin-top:16px;padding-top:13px}
.logistics-agenda>h3{font-size:14px;text-transform:capitalize}
.logistics-agenda>.help{margin:4px 0 14px;font-size:11px}
.logistics-agenda h4{margin:15px 0 8px;font-size:12px;color:#4a6070}
.logistics-agenda-event{display:flex;align-items:flex-start;gap:8px;border:1px solid #dbe5ec;border-radius:8px;padding:10px 9px;margin:7px 0;background:#f6f9fc;min-width:0}
.logistics-agenda-event>div{min-width:0;flex:1}
.logistics-agenda-event .link-button{white-space:normal;text-align:left;overflow-wrap:anywhere;font-size:12px;font-weight:600;line-height:1.4;color:#264458}
.logistics-agenda-event p{margin:4px 0 0;font-size:11px;color:#5b707e;line-height:1.4}
.logistics-agenda-trip{background:#eff7e7;border-color:#c9ddb3}
.logistics-agenda-trip>.logistics-icon{color:#669239}
.logistics-event-time{flex:0 0 37px;font-size:12px;padding-top:2px;font-variant-numeric:tabular-nums}
.logistics-agenda-event .logistics-event-label{margin:0 0 4px;font-size:10px}
.logistics-trip-picker{display:grid;gap:9px;margin-top:16px}
.logistics-trip-picker .button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal;text-align:left}
.logistics-trip-picker .button>span{font-size:12px;font-weight:400}
@media(max-width:1250px){.logistics-dashboard{grid-template-columns:240px minmax(0,1fr)}.logistics-calendar-panel{grid-column:1/-1}.logistics-calendar-panel .logistics-calendar-grid,.logistics-calendar-panel .logistics-weekdays,.logistics-calendar-panel .logistics-month-nav{max-width:380px}.logistics-calendar-panel .logistics-agenda{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.logistics-agenda>h3,.logistics-agenda>.help{grid-column:1/-1}}
@media(max-width:850px){#logistics-root .logistics-toolbar{grid-template-columns:1fr 1fr}.logistics-dashboard{grid-template-columns:1fr}.logistics-calendar-panel{grid-column:auto}.logistics-lane{min-height:350px}.logistics-board{grid-template-columns:repeat(4,235px)}.logistics-calendar-panel .logistics-calendar-grid,.logistics-calendar-panel .logistics-weekdays,.logistics-calendar-panel .logistics-month-nav{max-width:none}}
@media(max-width:640px){#logistics-root .logistics-toolbar{grid-template-columns:1fr}.logistics-view-switch .button{flex:1 1 auto;font-size:11px}#logistics-root .logistics-panel{padding:12px;max-width:100%}.logistics-panel-heading{margin-bottom:12px}.logistics-calendar-panel .logistics-agenda{display:block}.logistics-calendar-day{height:36px}.logistics-board{gap:8px}.logistics-dashboard .logistics-title{overflow-wrap:anywhere}.logistics-dialog .logistics-trip-picker .button{max-width:100%}}
