*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-24{left:6rem}.right-0{right:0}.right-0\.5{right:.125rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-7{top:1.75rem}.top-\[78px\]{top:78px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[4\]{z-index:4}.z-\[5\]{z-index:5}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[75\]{z-index:75}.z-\[80\]{z-index:80}.z-\[90\]{z-index:90}.z-\[9999\]{z-index:9999}.col-span-2{grid-column:span 2 / span 2}.col-span-full{grid-column:1 / -1}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.col-start-3{grid-column-start:3}.col-start-4{grid-column-start:4}.col-start-5{grid-column-start:5}.row-span-2{grid-row:span 2 / span 2}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.float-right{float:right}.m-1\.5{margin:.375rem}.m-3{margin:.75rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-\[0\.1rem\]{margin-left:.1rem;margin-right:.1rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-4{margin-top:-1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-6{margin-right:1.5rem}.mr-auto{margin-right:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[10px\]{height:10px}.h-\[38px\]{height:38px}.h-\[45vh\]{height:45vh}.h-\[68px\]{height:68px}.h-\[70px\]{height:70px}.h-\[calc\(100vh-70px\)\]{height:calc(100vh - 70px)}.h-\[min\(92vh\,900px\)\]{height:min(92vh,900px)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-52{max-height:13rem}.max-h-64{max-height:16rem}.max-h-\[230px\]{max-height:230px}.max-h-\[240px\]{max-height:240px}.max-h-\[260px\]{max-height:260px}.max-h-\[270px\]{max-height:270px}.max-h-\[420px\]{max-height:420px}.max-h-\[430px\]{max-height:430px}.max-h-\[90vh\]{max-height:90vh}.max-h-\[960px\]{max-height:960px}.max-h-\[min\(70vh\,420px\)\]{max-height:min(70vh,420px)}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-12{min-height:3rem}.min-h-16{min-height:4rem}.min-h-20{min-height:5rem}.min-h-24{min-height:6rem}.min-h-28{min-height:7rem}.min-h-48{min-height:12rem}.min-h-80{min-height:20rem}.min-h-\[390px\]{min-height:390px}.min-h-\[40px\]{min-height:40px}.min-h-\[430px\]{min-height:430px}.min-h-\[520px\]{min-height:520px}.min-h-\[54px\]{min-height:54px}.min-h-\[560px\]{min-height:560px}.min-h-\[720px\]{min-height:720px}.min-h-\[calc\(100vh-190px\)\]{min-height:calc(100vh - 190px)}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[1200px\]{width:1200px}.w-\[160px\]{width:160px}.w-\[17ch\]{width:17ch}.w-\[420px\]{width:420px}.w-\[460px\]{width:460px}.w-\[500px\]{width:500px}.w-\[72px\]{width:72px}.w-\[760px\]{width:760px}.w-\[78px\]{width:78px}.w-\[84px\]{width:84px}.w-\[92px\]{width:92px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-12{min-width:3rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.min-w-52{min-width:13rem}.min-w-64{min-width:16rem}.min-w-7{min-width:1.75rem}.min-w-\[1100px\]{min-width:1100px}.min-w-\[1120px\]{min-width:1120px}.min-w-\[1240px\]{min-width:1240px}.min-w-\[145px\]{min-width:145px}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\]{min-width:160px}.min-w-\[180px\]{min-width:180px}.min-w-\[260px\]{min-width:260px}.min-w-\[280px\]{min-width:280px}.min-w-\[334px\]{min-width:334px}.min-w-\[680px\]{min-width:680px}.min-w-\[900px\]{min-width:900px}.min-w-\[980px\]{min-width:980px}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-\[460px\]{max-width:460px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.basis-full{flex-basis:100%}.table-fixed{table-layout:fixed}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-4{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[1\.02\]{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-cols-\[minmax\(245px\,1fr\)\]{grid-auto-columns:minmax(245px,1fr)}.auto-cols-\[minmax\(250px\,1fr\)\]{grid-auto-columns:minmax(250px,1fr)}.auto-cols-\[minmax\(260px\,1fr\)\]{grid-auto-columns:minmax(260px,1fr)}.auto-cols-\[minmax\(270px\,1fr\)\]{grid-auto-columns:minmax(270px,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[\.65fr_1fr_1fr_1\.4fr_\.55fr_\.8fr\]{grid-template-columns:.65fr 1fr 1fr 1.4fr .55fr .8fr}.grid-cols-\[\.8fr_1fr_1fr_1\.15fr_1\.5fr_\.5fr_1fr_\.8fr\]{grid-template-columns:.8fr 1fr 1fr 1.15fr 1.5fr .5fr 1fr .8fr}.grid-cols-\[1\.3fr_160px_repeat\(6\,110px\)\]{grid-template-columns:1.3fr 160px repeat(6,110px)}.grid-cols-\[1\.5fr_1fr_105px\]{grid-template-columns:1.5fr 1fr 105px}.grid-cols-\[150px_160px_1fr_150px\]{grid-template-columns:150px 160px 1fr 150px}.grid-cols-\[1fr_1\.2fr_150px_160px_360px_260px\]{grid-template-columns:1fr 1.2fr 150px 160px 360px 260px}.grid-cols-\[1fr_1\.5fr_1fr_110px\]{grid-template-columns:1fr 1.5fr 1fr 110px}.grid-cols-\[1fr_1fr_40px\]{grid-template-columns:1fr 1fr 40px}.grid-cols-\[1fr_1fr_auto\]{grid-template-columns:1fr 1fr auto}.grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.grid-cols-\[1fr_80px_80px_80px\]{grid-template-columns:1fr 80px 80px 80px}.grid-cols-\[24px_1\.25fr_1\.35fr_\.65fr_1\.45fr_1\.1fr_\.8fr_1\.65fr\]{grid-template-columns:24px 1.25fr 1.35fr .65fr 1.45fr 1.1fr .8fr 1.65fr}.grid-cols-\[2fr_1fr_1fr_140px\]{grid-template-columns:2fr 1fr 1fr 140px}.grid-cols-\[55px_1fr_40px\]{grid-template-columns:55px 1fr 40px}.grid-cols-\[90px_1fr_1fr_90px_90px_26px\]{grid-template-columns:90px 1fr 1fr 90px 90px 26px}.grid-cols-\[max-content_max-content_minmax\(78px\,1fr\)\]{grid-template-columns:max-content max-content minmax(78px,1fr)}.grid-cols-\[minmax\(118px\,1fr\)_46px_64px_minmax\(76px\,1fr\)_30px\]{grid-template-columns:minmax(118px,1fr) 46px 64px minmax(76px,1fr) 30px}.grid-cols-\[minmax\(220px\,1\.45fr\)_repeat\(var\(--permission-count\)\,minmax\(132px\,1fr\)\)\]{grid-template-columns:minmax(220px,1.45fr) repeat(var(--permission-count),minmax(132px,1fr))}.grid-cols-\[minmax\(230px\,1fr\)_minmax\(300px\,1\.4fr\)_130px_125px_270px\]{grid-template-columns:minmax(230px,1fr) minmax(300px,1.4fr) 130px 125px 270px}.grid-cols-\[minmax\(240px\,1fr\)_110px_145px_110px_280px\]{grid-template-columns:minmax(240px,1fr) 110px 145px 110px 280px}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-px{gap:1px}.gap-x-0{-moz-column-gap:0px;column-gap:0px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-y-0{row-gap:0px}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-bl-sm{border-bottom-left-radius:.125rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-b-\[3px\]{border-bottom-width:3px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.\!border-blue-400{--tw-border-opacity: 1 !important;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))!important}.\!border-slate-300{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-emerald-400{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}.border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-violet-300{--tw-border-opacity: 1;border-color:rgb(196 181 253 / var(--tw-border-opacity, 1))}.border-violet-400{--tw-border-opacity: 1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-l-blue-500{--tw-border-opacity: 1;border-left-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-l-emerald-500{--tw-border-opacity: 1;border-left-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-l-rose-400{--tw-border-opacity: 1;border-left-color:rgb(251 113 133 / var(--tw-border-opacity, 1))}.border-l-rose-500{--tw-border-opacity: 1;border-left-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.\!bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.\!bg-slate-100{--tw-bg-opacity: 1 !important;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))!important}.bg-\[\#06244a\]{--tw-bg-opacity: 1;background-color:rgb(6 36 74 / var(--tw-bg-opacity, 1))}.bg-\[\#0b2d57\]{--tw-bg-opacity: 1;background-color:rgb(11 45 87 / var(--tw-bg-opacity, 1))}.bg-\[\#0b3566\]{--tw-bg-opacity: 1;background-color:rgb(11 53 102 / var(--tw-bg-opacity, 1))}.bg-\[\#e7f0fb\]{--tw-bg-opacity: 1;background-color:rgb(231 240 251 / var(--tw-bg-opacity, 1))}.bg-\[\#eaf3ff\]{--tw-bg-opacity: 1;background-color:rgb(234 243 255 / var(--tw-bg-opacity, 1))}.bg-\[\#edf3fb\]{--tw-bg-opacity: 1;background-color:rgb(237 243 251 / var(--tw-bg-opacity, 1))}.bg-\[\#edf4fc\]{--tw-bg-opacity: 1;background-color:rgb(237 244 252 / var(--tw-bg-opacity, 1))}.bg-\[\#f4f7fb\]{--tw-bg-opacity: 1;background-color:rgb(244 247 251 / var(--tw-bg-opacity, 1))}.bg-\[\#f6f9fd\]{--tw-bg-opacity: 1;background-color:rgb(246 249 253 / var(--tw-bg-opacity, 1))}.bg-\[\#f8fafc\]{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\/40{background-color:#eff6ff66}.bg-blue-50\/50{background-color:#eff6ff80}.bg-blue-50\/70{background-color:#eff6ffb3}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/25{background-color:#2563eb40}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-50\/40{background-color:#ecfdf566}.bg-emerald-50\/50{background-color:#ecfdf580}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.bg-rose-50\/50{background-color:#fff1f280}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-200\/95{background-color:#e2e8f0f2}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-50\/60{background-color:#f8fafc99}.bg-slate-50\/80{background-color:#f8fafccc}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/20{background-color:#0f172a33}.bg-slate-900\/25{background-color:#0f172a40}.bg-slate-900\/30{background-color:#0f172a4d}.bg-slate-900\/40{background-color:#0f172a66}.bg-slate-900\/50{background-color:#0f172a80}.bg-slate-900\/70{background-color:#0f172ab3}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/30{background-color:#0206174d}.bg-slate-950\/50{background-color:#02061780}.bg-slate-950\/70{background-color:#020617b3}.bg-transparent{background-color:transparent}.bg-violet-100{--tw-bg-opacity: 1;background-color:rgb(237 233 254 / var(--tw-bg-opacity, 1))}.bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-blue-50\/70{--tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(239 246 255 / .7) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-emerald-400{--tw-gradient-to: #34d399 var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-left{-o-object-position:left;object-position:left}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-20{padding:5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-7{padding:1.75rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-\[78px\]{padding-left:78px}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-7{padding-right:1.75rem}.pt-0\.5{padding-top:.125rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-\[-2px\]{vertical-align:-2px}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[22px\]{font-size:22px}.text-\[6px\]{font-size:6px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-\[10px\]{line-height:10px}.leading-\[13px\]{line-height:13px}.leading-\[26px\]{line-height:26px}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\[\.2em\]{letter-spacing:.2em}.tracking-\[0\.16em\]{letter-spacing:.16em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-\[\#0b3566\]{--tw-text-opacity: 1;color:rgb(11 53 102 / var(--tw-text-opacity, 1))}.text-\[\#10213e\]{--tw-text-opacity: 1;color:rgb(16 33 62 / var(--tw-text-opacity, 1))}.text-\[\#10264b\]{--tw-text-opacity: 1;color:rgb(16 38 75 / var(--tw-text-opacity, 1))}.text-\[\#123566\]{--tw-text-opacity: 1;color:rgb(18 53 102 / var(--tw-text-opacity, 1))}.text-\[\#142d53\]{--tw-text-opacity: 1;color:rgb(20 45 83 / var(--tw-text-opacity, 1))}.text-\[\#153561\]{--tw-text-opacity: 1;color:rgb(21 53 97 / var(--tw-text-opacity, 1))}.text-\[\#163763\]{--tw-text-opacity: 1;color:rgb(22 55 99 / var(--tw-text-opacity, 1))}.text-\[\#173761\]{--tw-text-opacity: 1;color:rgb(23 55 97 / var(--tw-text-opacity, 1))}.text-\[\#18345f\]{--tw-text-opacity: 1;color:rgb(24 52 95 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-100\/70{color:#dbeafeb3}.text-blue-100\/80{color:#dbeafecc}.text-blue-200\/60{color:#bfdbfe99}.text-blue-200\/70{color:#bfdbfeb3}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-violet-700{--tw-text-opacity: 1;color:rgb(109 40 217 / var(--tw-text-opacity, 1))}.text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.accent-blue-600{accent-color:#2563eb}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-200{--tw-shadow-color: #bfdbfe;--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\[0\.5px\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-blue-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}.ring-emerald-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity, 1))}.ring-orange-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(251 146 60 / var(--tw-ring-opacity, 1))}.ring-red-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[scrollbar-width\:thin\]{scrollbar-width:thin}:root{--tps-ui-scale: .9}#root{zoom:var(--tps-ui-scale);width:100%;min-height:calc(100vh / var(--tps-ui-scale))}.tps-app-shell{height:calc(100vh / var(--tps-ui-scale));min-height:calc(100vh / var(--tps-ui-scale));display:flex;flex-direction:column;overflow:hidden}.tps-app-shell>header{flex:0 0 70px}.tps-app-shell>:not(aside):not(header):not(.fixed){min-height:0;flex:1 1 auto}.tps-app-shell>div[class*="h-\\[calc(100vh-70px)\\]"]{height:auto!important;min-height:0!important}.base-route-item{animation:base-route-move .26s ease-out}@keyframes base-route-move{0%{transform:translate(-12px);opacity:.55}to{transform:translate(0);opacity:1}}.planning-row-action-btn{width:100%;height:1.35rem;flex:0 0 1.35rem;padding-inline:.25rem;line-height:1}.planning-compact [style*="42px 285px 68px"]{grid-auto-flow:row dense}body{margin:0;min-width:0;background:#f4f7fb;color:#172033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.settings-hub{min-width:0;height:calc(100vh - 70px);overflow-y:auto;overflow-x:hidden;padding:18px 24px 42px!important;scrollbar-gutter:stable;background:#f4f7fb}.settings-hub>header{max-width:1680px;margin:0 auto 14px;border-left:3px solid #2563eb;padding:8px 0 8px 12px}.settings-hub>nav{max-width:1680px;margin:0 auto 14px;position:sticky;top:0;z-index:8;padding:5px 8px 0;border:1px solid #dbe5f0;border-radius:10px;background:#fffffff0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 2px 8px #0f172a0f}.settings-hub>nav button{min-height:34px;padding:7px 14px}.settings-hub>nav+*{max-width:1680px;margin-inline:auto}.settings-hub section.rounded-xl{border-color:#dbe5f0;border-radius:.7rem;padding:16px!important;box-shadow:0 2px 7px #0f172a0b}.settings-hub .space-y-5>:where(:not(:first-child)){margin-top:14px}.settings-hub .mt-5.space-y-5{margin-top:14px}.settings-hub section.rounded-xl>h2,.settings-hub section.rounded-xl>div>h2{color:#173761}.settings-hub section.rounded-xl .grid.gap-3>div{min-height:58px}body.warehouse-active{min-width:0}.warehouse-page{color:#18335b}.warehouse-page select,.warehouse-page input,.warehouse-page textarea{border-color:#d9e4f1;border-radius:.55rem;background:#fff}.warehouse-page table{overflow:hidden;border:1px solid #dfe8f2;border-radius:.7rem;box-shadow:0 1px 2px #0f172a0a}.warehouse-page table th{background:#edf4fc;color:#5b7090;font-size:11px;font-weight:800;text-transform:uppercase}.warehouse-page table th,.warehouse-page table td{padding:.75rem .7rem}.warehouse-page table tbody tr:hover{background:#f8fbff}.warehouse-page>div>.rounded.border.bg-white{border-color:#dfe8f2;border-radius:.75rem;box-shadow:0 1px 3px #0f172a0d}.warehouse-page button{transition:background-color .15s ease,border-color .15s ease,transform .15s ease}.warehouse-page button:hover:not(:disabled){transform:translateY(-1px)}.warehouse-receipt-row{grid-template-columns:1fr .9fr 1.25fr 1.1fr .9fr .8fr auto}.warehouse-receipt-row small{color:#71839f;font-size:9px}.warehouse-page article{min-width:0}.warehouse-page article button{white-space:nowrap}.warehouse-page article select:focus,.warehouse-page input:focus{outline:2px solid rgb(37 99 235 / .25);outline-offset:1px}.warehouse-page .bg-rose-100{border:1px solid rgb(251 113 133 / .22)}.warehouse-page .bg-emerald-100{border:1px solid rgb(52 211 153 / .22)}@media(max-width:1280px){.warehouse-receipt-row{min-width:1020px}}button,input,select,textarea{font:inherit}*{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}aside.fixed.inset-y-0.left-0>div:first-child>img[src="/tps-core-icon.png"]{width:42px!important;height:42px!important;padding:3px;border:1px solid rgb(255 255 255 / .55);border-radius:10px;background:#fffffff5;box-shadow:0 3px 10px #00000047}aside:has(#load-editor-form){position:relative}#load-editor-form{position:relative;padding-top:44px}#load-editor-form>section:nth-of-type(2){margin-top:16px;border-top:1px solid #e2e8f0;padding-top:16px}#load-editor-form>section:nth-of-type(2)>div:first-child>div{display:none}#load-editor-form>section:nth-of-type(2)>div:first-child{min-height:0;height:0}#load-editor-form>section:nth-of-type(2)>div:first-child>button{position:absolute;top:0;right:0;z-index:5;background:#fff}@media print{#root{zoom:1;width:auto;min-height:0}body{min-width:0;background:#fff}body>div>main>aside,body>div>main>header,.warehouse-page>header button,.warehouse-page>section:nth-of-type(1){display:none!important}.warehouse-page{height:auto!important;overflow:visible!important;padding:0!important}.warehouse-page>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.planning-compact>header,.planning-compact>.grid,.planning-compact>.min-h-0.flex-1{min-width:1390px}.planning-compact>.grid{grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 150px 180px!important}.planning-compact .grid.items-center,.planning-compact .grid.items-center.min-h-12.text-sm{grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 150px 180px!important}.planning-compact>.grid>:nth-child(1),.planning-compact .grid.items-center>:nth-child(1){grid-column-start:1!important}.planning-compact>.grid>:nth-child(2),.planning-compact .grid.items-center>:nth-child(2){grid-column-start:2!important}.planning-compact>.grid>:nth-child(3),.planning-compact .grid.items-center>:nth-child(3){grid-column-start:3!important}.planning-compact .min-h-12.text-sm{font-size:10px}.planning-compact .h-8.text-xs{height:1.5rem;font-size:9px}.planning-compact button.text-xs{font-size:9px}.planning-compact header select[aria-label="Wybierz kierunek"]{min-width:136px}.planning-compact.daily-view-spedytor .route-point-execution .planner-action,.planning-compact.daily-view-planista .route-point-execution .dispatcher-action{display:none}.planning-compact:has(>header:first-child) [role=button]>[aria-label="Brak załącznika"],.planning-compact:has(>header:first-child) .route-point-execution{display:none}.planning-compact .grid.items-center>:nth-child(6){min-width:150px;margin-top:3px;margin-bottom:3px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;padding:4px 7px;color:#475569;font-size:10px!important;line-height:1.2}.planning-compact .grid.items-center>:nth-child(6) b,.planning-compact .grid.items-center>:nth-child(6) small{display:block;overflow:visible;white-space:nowrap;font-size:10px!important;line-height:1.2;font-variant-numeric:tabular-nums;text-overflow:initial}.planning-compact .grid.items-center>:nth-child(6) small{margin-top:2px;color:#64748b}.planning-compact .grid.items-center>:nth-child(6).bg-red-100{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.planning-compact .grid.items-center>:nth-child(6).bg-red-100 small{color:#b91c1c}.planning-compact .grid.items-center>:nth-child(7){align-self:center;display:flex;flex-direction:column;gap:3px;margin:3px 0 3px 4px;justify-self:end}.planning-compact .grid.items-center{width:100%}.planning-compact .dispatcher-load-copy,.planning-module-planning .daily-load-footer{display:none}.planning-module-planning .route-point-copy-wrap.route-point-historical{opacity:.42;filter:saturate(.5)}.planning-module-planning .planning-chip-separator{display:inline-block;position:relative;width:.55em;color:transparent;font-style:normal}.planning-module-planning .planning-chip-separator:after{content:"|";position:absolute;left:0;color:currentColor}.planning-module-planning .route-point-copy-wrap{--planning-separator-color: #64748b}.planning-module-planning .planning-chip-separator:after{color:var(--planning-separator-color)}.daily-load-direction{display:none}.planning-module-daily .daily-load-direction{display:flex;min-width:28px;align-self:stretch;align-items:center;justify-content:center;border-left:1px solid #a7f3d0;padding:0 5px;font-size:10px;font-weight:800;color:#0f172a}.planning-module-daily [title="Usuń cały ładunek z planu"]{display:none}.planning-module-daily .route-point-copy-wrap{gap:0;overflow:hidden;border:1px solid #a7f3d0;border-radius:5px;background:#ecfdf5}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading{border:2px solid #dc2626;background:#fef2f2;color:#b91c1c}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-pickup{border:2px solid #059669}.planning-module-daily .route-point-copy-wrap>[role=button]{border:0!important;border-bottom:1px solid #a7f3d0;border-radius:0}.planning-module-daily [style*="150px 126px"]>:nth-last-child(2),.planning-module-daily [style*="150px 126px"]>:last-child{justify-self:end}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading>[role=button]{border-bottom-color:#fca5a5}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading .daily-load-direction{border-left-color:#fca5a5;color:#b91c1c}.planning-module-daily .route-point-copy-wrap button.cursor-grab{display:none}.planning-module-daily .dispatcher-load-copy{display:block;width:50%;height:24px;border:0;border-left:1px solid #a7f3d0;border-radius:0;background:#ecfdf5}.planning-module-daily .daily-load-footer{border-top:1px solid #a7f3d0}.planning-module-daily .daily-load-status{border-right:1px solid #a7f3d0}.planning-module-daily .daily-load-state-pending{border-color:#cbd5e1;background:#f8fafc;opacity:1}.planning-module-daily .daily-load-state-pending>[role=button]{border-bottom-color:#cbd5e1}.planning-module-daily .daily-load-state-pending .daily-load-footer,.planning-module-daily .daily-load-state-pending .daily-load-status,.planning-module-daily .daily-load-state-pending .dispatcher-load-copy,.planning-module-daily .daily-load-state-pending .planner-status-change{border-color:#cbd5e1}.planning-module-daily .daily-load-state-pending .daily-load-status{background:#e5e7eb;color:#374151}.planning-module-daily .daily-load-state-pending .dispatcher-load-copy{background:#d1fae5;border-color:#a7f3d0;color:#111827}.planning-module-daily .daily-load-state-pending>[role=button]{opacity:.58}.planning-module-daily .daily-load-state-pending .daily-load-status,.planning-module-daily .daily-load-state-pending .dispatcher-load-copy,.planning-module-daily .daily-load-state-pending .planner-status-change{opacity:1}.planning-module-daily .daily-load-state-pending .planner-status-change{background:#e5e7eb;color:#111827}.planning-module-daily.daily-view-planista .daily-load-state-pending{opacity:1}.planning-module-daily .planner-status-change{border-left:1px solid #60a5fa;background:transparent;color:#2563eb}.planning-module-daily .daily-load-state-completed-pickup .daily-load-status{color:#047857}.planning-module-daily .daily-load-state-completed-unloading .daily-load-status{color:#b91c1c}.planning-module-daily .daily-load-state-confirmed-pickup .daily-load-status{color:#047857;font-weight:800;opacity:1}.planning-module-daily .daily-load-state-confirmed-unloading .daily-load-status{color:#b91c1c;font-weight:800;opacity:1}.planning-module-daily .route-point-copy-wrap.daily-load-state-not-picked{border:2px solid #111827;background:#e5e7eb;color:#111827}.planning-module-daily .daily-load-state-not-picked>[role=button]{border-bottom-color:#111827;background:#e5e7eb!important;opacity:.68}.planning-module-daily .daily-load-state-not-picked .daily-load-footer,.planning-module-daily .daily-load-state-not-picked .daily-load-status,.planning-module-daily .daily-load-state-not-picked .planner-status-change,.planning-module-daily .daily-load-state-not-picked .dispatcher-load-copy{border-color:#111827;color:#111827;background:#e5e7eb!important}.planning-module-daily .daily-load-state-not-picked .daily-load-status{font-weight:800;opacity:1}.planning-module-daily .daily-load-state-needs-info{border:2px solid #ca8a04;background:#fffbeb}.planning-module-daily .daily-load-state-needs-info>[role=button]{border-bottom-color:#facc15}.planning-module-daily .daily-load-state-needs-info .daily-load-footer,.planning-module-daily .daily-load-state-needs-info .daily-load-status{border-color:#facc15}.planning-module-daily .daily-load-state-needs-info .daily-load-status{color:#a16207}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading .dispatcher-load-copy{border-left-color:#fca5a5;background:#fecaca;color:#111827}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading .daily-load-footer{border-top-color:#fca5a5}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-unloading .daily-load-status{border-right-color:#fca5a5}.planning-module-daily .route-point-copy-wrap.daily-load-state-completed-pickup .dispatcher-load-copy,.planning-module-daily .route-point-copy-wrap.daily-load-state-confirmed-pickup .dispatcher-load-copy{background:#bbf7d0;border-left-color:#86efac;color:#111827}.planning-module-daily .route-point-copy-wrap.daily-load-state-confirmed-unloading .dispatcher-load-copy{background:#fecaca;border-left-color:#fca5a5;color:#111827}.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info .dispatcher-load-copy{background:#fde68a;border-left-color:#fcd34d;color:#111827}.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info,.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info:has(.border-red-300){border-color:#ca8a04;background:#fffbeb}.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info:has(.border-red-300)>[role=button]{border-bottom-color:#facc15}.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info:has(.border-red-300) .daily-load-footer,.planning-module-daily .route-point-copy-wrap.daily-load-state-needs-info:has(.border-red-300) .daily-load-status{border-color:#facc15}.planning-module-daily .grid.items-center{grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 150px 126px!important;align-items:center;min-height:64px;position:relative;width:100%;min-width:0}.planning-module-daily .grid.items-center>:nth-child(6){align-self:stretch;margin:4px 0;justify-self:end;width:150px;position:sticky;right:126px;z-index:4}.planning-module-daily .grid.items-center>:nth-child(7){display:grid;grid-template-columns:56px 56px;grid-template-rows:28px 28px;gap:4px;margin:4px 0 4px 4px;justify-self:end;width:126px;position:sticky;right:0;z-index:5;background:#fff}.planning-module-daily .grid.items-center>:nth-child(6){margin-right:0!important}.planning-module-daily .grid.items-center>:nth-child(7){margin-left:0!important}.planning-module-daily .planning-row-action-btn{width:56px;min-height:28px}.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3){position:absolute;left:12px;top:5px;z-index:2;width:auto;min-width:64px;height:19px;min-height:19px;padding:0 5px;font-size:0!important}.planning-module-daily .grid.items-center button.col-start-2.row-span-2{position:absolute;left:12px;top:5px;z-index:6;width:auto;min-width:64px;height:19px;min-height:19px;padding:0 5px;font-size:0!important}.planning-module-daily .grid.items-center button.col-start-2.row-span-2:after{content:"Kopiuj dane";font-size:8px}.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3):after{content:"Kopiuj dane";font-size:8px}.planning-module-daily .grid.items-center{grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 118px 56px!important}.planning-module-daily .grid.items-center>:nth-child(6){width:118px;position:static;justify-self:end;margin:4px 0}.planning-module-daily .grid.items-center>:nth-child(7){width:56px;position:static;display:grid;grid-template-columns:56px;grid-template-rows:repeat(2,minmax(22px,1fr));gap:3px;justify-self:end;margin:4px 0;background:transparent}.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3),.planning-module-daily .grid.items-center>:nth-child(7)>button.col-start-2.row-span-2{display:none}.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(1),.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(2){grid-column:1!important;width:56px;min-width:56px;min-height:22px;margin:0}.planning-module-daily .grid.items-center>:nth-child(7)>button:not(.planning-row-action-btn):nth-child(1){grid-row:2}.planning-module-daily .grid.items-center>:nth-child(7)>button:not(.planning-row-action-btn):nth-child(2){grid-row:1}.planning-module-daily .relative>span.absolute.left-\[118px\]{left:399px!important;top:42px!important}.planning-module-daily .grid.items-center>:nth-child(4){align-self:start;padding-top:4px}.planning-compact .grid.items-center>:nth-child(4)>span{width:40px!important;max-width:40px;overflow:visible!important;text-align:center;letter-spacing:-.25px;font-size:5px!important}.planning-module-daily .relative>span.absolute{left:357px!important;top:42px!important;width:68px!important;text-align:right}.planning-compact .relative>span.absolute{width:68px!important;text-align:right!important}.planning-compact [style*="grid-template-columns: 72px"]{display:grid!important;grid-template-columns:minmax(50px,max-content) minmax(50px,max-content)!important;grid-template-rows:minmax(20px,1fr) minmax(20px,1fr)!important;gap:1px!important;margin:1px!important;align-self:stretch;justify-content:start}.planning-compact [style*="grid-template-columns: 72px"]>:nth-child(1){grid-column:1;grid-row:1 / span 2;min-width:-moz-max-content;min-width:max-content;height:auto;padding:0 4px}.planning-compact [style*="grid-template-columns: 72px"]>:nth-child(2),.planning-compact [style*="grid-template-columns: 72px"]>:nth-child(3){grid-column:2;min-width:-moz-max-content;min-width:max-content;padding:0 4px}.planning-compact [style*="grid-template-columns: 72px"]>:nth-child(2){grid-row:1}.planning-compact [style*="grid-template-columns: 72px"]>:nth-child(3){grid-row:2}.planning-compact>.grid,.planning-compact .grid.items-center{grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 150px max-content!important}.planning-compact .grid.items-center>:nth-child(6){justify-self:end;margin-right:0}.planning-compact .grid.items-center>:nth-child(7){width:-moz-max-content;width:max-content;min-width:0;margin-left:1px;margin-right:0}.planning-compact .flex.gap-1:has(input[placeholder="Kierowca PL"]),.planning-compact .flex.gap-1:has(input[placeholder="Wszyscy kierowcy"]){align-items:center}.planning-compact .flex.gap-1:has(input[placeholder="Kierowca PL"])>:first-child,.planning-compact .flex.gap-1:has(input[placeholder="Wszyscy kierowcy"])>:first-child{order:2}.planning-compact .flex.gap-1:has(input[placeholder="Kierowca PL"])>button,.planning-compact .flex.gap-1:has(input[placeholder="Wszyscy kierowcy"])>button{order:1;padding-inline:4px}.planning-compact.planning-module-daily .grid.items-center{grid-template-columns:42px 220px 68px 46px minmax(0,1fr) 118px 56px!important}.planning-compact.planning-module-daily>.grid{grid-template-columns:42px 220px 68px 46px minmax(0,1fr) 118px 56px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(6){grid-column:6;width:118px;min-width:118px;position:sticky!important;right:56px;justify-self:end;margin:4px 0!important;z-index:4}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){grid-column:7;width:56px;position:sticky!important;right:0;justify-self:end;margin:4px 0!important;z-index:5}.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:36px 350px 72px 50px minmax(0,1fr) 118px 126px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){grid-column:6;width:118px;min-width:118px;position:sticky!important;right:56px;justify-self:end;margin:4px 0!important;z-index:4}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){grid-column:7;width:126px;min-width:126px;position:sticky!important;right:0;justify-self:end;margin:4px 0!important;z-index:5}.planning-compact.planning-module-planning{overflow-x:hidden!important}.planning-compact.planning-module-planning .grid.items-center>*{min-width:0}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>*{min-width:0}.planning-compact.planning-module-planning .grid.items-center>:nth-child(2) input{font-size:11px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(2) input[placeholder=Ciągnik],.planning-compact.planning-module-planning .grid.items-center>:nth-child(2) input[placeholder^=Naczepa]{min-width:72px}.planning-compact.planning-module-planning .planning-trailer-field-extra input{min-width:0;width:100%}.planning-compact.planning-module-daily .grid.items-center{position:relative}.planning-compact.planning-module-daily .grid.items-center>:nth-child(6){position:absolute!important;top:4px;right:64px;bottom:4px;width:128px;min-width:128px;margin:0!important;padding:5px 8px!important;z-index:4}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){position:absolute!important;top:4px;right:4px;width:56px;min-width:56px;margin:0!important;z-index:5}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){width:88px!important;min-width:88px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(6){right:96px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div{grid-template-columns:88px!important;grid-template-rows:28px 28px 20px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(1),.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(2){font-size:11px!important}.planning-compact.planning-module-planning .grid.items-center{position:relative}.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){position:absolute!important;top:4px;right:64px;bottom:4px;width:128px;min-width:128px;margin:0!important;padding:5px 8px!important;z-index:4}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){position:absolute!important;top:4px;right:4px;width:56px;min-width:56px;margin:0!important;z-index:5}.planning-compact .flex.gap-1:has(input[placeholder="Wszyscy kierowcy"])>button{font-size:0}.planning-compact .flex.gap-1:has(input[placeholder="Wszyscy kierowcy"])>button:after{content:"ALL";font-size:8px}.planning-compact.planning-module-daily.daily-view-planista .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-pending .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-completed-pickup .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-completed-unloading .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-confirmed-pickup .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-not-picked .planner-status-change,.planning-compact.planning-module-daily.daily-view-planista .daily-load-state-needs-info .planner-status-change{background:#fef9c3!important;border-left-color:#fde68a!important;color:#854d0e!important;opacity:1!important}.planning-compact.planning-module-daily.daily-view-spedytor .dispatcher-load-copy{background:#d1fae5!important;border-left-color:#a7f3d0!important;color:#111827!important;opacity:1!important}.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-status{background:#bbf7d0!important;border-right-color:#86efac!important;color:#14532d!important;opacity:1!important}.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-completed-unloading .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-confirmed-unloading .dispatcher-load-copy{background:#fecaca!important;border-left-color:#fca5a5!important}.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-completed-unloading .daily-load-status,.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-confirmed-unloading .daily-load-status{background:#fca5a5!important;border-right-color:#f87171!important;color:#7f1d1d!important}.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-pending .dispatcher-load-copy{background:#e5e7eb!important;border-left-color:#cbd5e1!important}.planning-compact.planning-module-daily.daily-view-spedytor .daily-load-state-pending .daily-load-status{background:#cbd5e1!important;border-right-color:#94a3b8!important;color:#334155!important}.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-pending .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-completed-pickup .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-completed-unloading .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-confirmed-pickup .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-confirmed-unloading .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-not-picked .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-state-needs-info .dispatcher-load-copy,.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap .dispatcher-load-copy{background:#d1fae5!important;border-left-color:#a7f3d0!important;color:#111827!important;opacity:1!important}.planning-compact.planning-module-daily.daily-view-spedytor .route-point-copy-wrap.daily-load-unloading .dispatcher-load-copy{background:#fecaca!important;border-left-color:#fca5a5!important;color:#7f1d1d!important}.fixed.inset-0.z-30>aside>dl.mt-7.space-y-4{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px 20px}.fixed.inset-0.z-30>aside>dl.mt-7.space-y-4>div{margin-top:0!important;min-width:0}.planning-compact.planning-module-planning,.planning-compact.planning-module-planning>header,.planning-compact.planning-module-planning>.grid,.planning-compact.planning-module-planning>.min-h-0.flex-1{width:100%!important;min-width:0!important;max-width:100%!important}.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 270px 60px 42px minmax(0,1fr) 118px 64px!important;width:100%!important;min-width:0!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){min-width:0!important;overflow-x:auto!important;scrollbar-width:none}.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar{display:none}.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){position:absolute!important;top:4px;right:72px!important;bottom:4px;width:118px!important;min-width:118px!important;margin:0!important;padding:1px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){position:absolute!important;top:4px;right:4px!important;width:64px!important;min-width:64px!important;margin:0!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>div{grid-template-columns:64px!important;grid-template-rows:repeat(3,minmax(20px,1fr))!important;width:64px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>div>button{grid-column:1!important;min-width:0!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(6){position:absolute!important;top:4px;right:140px!important;bottom:4px;width:118px!important;min-width:118px!important;margin:0!important;padding:4px 6px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){position:absolute!important;top:4px;right:4px!important;bottom:4px;width:128px!important;min-width:128px!important;margin:0!important;align-self:stretch}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;width:128px!important;height:100%!important;gap:4px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(1),.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(2){grid-row:1!important;height:100%!important;min-height:0!important;font-size:11px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(1){grid-column:1!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(2){grid-column:2!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>div>button:nth-child(3){display:none!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(6){right:76px!important;width:130px!important;min-width:130px!important;padding:3px 4px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){right:0!important;width:72px!important;min-width:72px!important;display:grid!important;grid-template-columns:72px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:4px!important;height:auto!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(1),.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(2){grid-column:1!important;width:72px!important;height:100%!important;min-height:0!important;margin:0!important;font-size:11px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(1){grid-row:1!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(2){grid-row:2!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3){display:none!important}.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 285px 60px 42px minmax(0,1fr) 122px 68px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){position:static!important;grid-column:6!important;top:auto!important;right:auto!important;bottom:auto!important;width:122px!important;min-width:122px!important;margin:3px 0!important;padding:2px!important;justify-self:stretch!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){position:static!important;grid-column:7!important;top:auto!important;right:auto!important;bottom:auto!important;width:68px!important;min-width:68px!important;height:auto!important;margin:3px 0 3px 4px!important;display:grid!important;grid-template-columns:68px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:3px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(1),.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2){grid-column:1!important;width:68px!important;min-width:0!important;height:100%!important;margin:0!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(1){grid-row:1!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2){grid-row:2!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(3){display:none!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(2) .w-\[84px\]{width:90px!important}.planning-compact.planning-module-planning .planning-trailer-field{width:78px!important}.planning-compact.planning-module-planning .planning-trailer-field-extra{width:98px!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){grid-template-rows:repeat(3,minmax(0,1fr))!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3){display:block!important;grid-column:1!important;grid-row:3!important;width:72px!important;height:100%!important;min-height:0!important;margin:0!important}.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 285px 60px 42px minmax(0,1fr) 122px 130px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){grid-template-columns:78px 48px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;width:130px!important;min-width:130px!important;gap:4px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(1){display:block!important;grid-column:1!important;grid-row:1 / span 2!important;width:78px!important;height:100%!important;font-size:11px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2),.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(3){display:block!important;grid-column:2!important;width:48px!important;height:100%!important;font-size:9px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2){grid-row:1!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(3){grid-row:2!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7):has(.planning-row-action-btn){grid-template-rows:repeat(2,minmax(0,1fr))!important}.planning-compact.planning-module-daily .grid.items-center>:nth-child(7):has(.planning-row-action-btn)>button:nth-child(3){display:none!important}.last\:border-0:last-child{border-width:0px}.hover\:border-blue-200:hover{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.hover\:border-blue-400:hover{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\:border-emerald-400:hover{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.hover\:border-slate-200:hover{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.hover\:bg-\[\#092b53\]:hover{--tw-bg-opacity: 1;background-color:rgb(9 43 83 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-50\/70:hover{background-color:#f8fafcb3}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\:text-emerald-700:hover{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:text-slate-800:hover{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.focus\:border-blue-400:focus{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:bg-white:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-blue-400:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-slate-100:disabled{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.disabled\:bg-slate-50:disabled{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:hover\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\:border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:p-4{padding:1rem}.sm\:p-5{padding:1.25rem}.sm\:px-5{padding-left:1.25rem;padding-right:1.25rem}}@media(min-width:768px){.md\:col-span-2{grid-column:span 2 / span 2}.md\:col-span-3{grid-column:span 3 / span 3}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(min-width:1024px){.lg\:w-\[50vw\]{width:50vw}.lg\:max-w-\[960px\]{max-width:960px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media(min-width:1280px){.xl\:absolute{position:absolute}.xl\:right-0{right:0}.xl\:top-0{top:0}.xl\:mt-0{margin-top:0}.xl\:min-h-\[calc\(100vh-9rem\)\]{min-height:calc(100vh - 9rem)}.xl\:w-\[390px\]{width:390px}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\:grid-cols-\[1\.6fr_\.9fr_1fr_\.55fr\]{grid-template-columns:1.6fr .9fr 1fr .55fr}.xl\:grid-cols-\[1fr_360px\]{grid-template-columns:1fr 360px}.xl\:grid-cols-\[1fr_390px\]{grid-template-columns:1fr 390px}.xl\:grid-cols-\[24px_1\.25fr_1\.35fr_\.65fr_1\.45fr_1\.1fr_\.8fr_1\.65fr\]{grid-template-columns:24px 1.25fr 1.35fr .65fr 1.45fr 1.1fr .8fr 1.65fr}.xl\:grid-cols-\[330px_1fr\]{grid-template-columns:330px 1fr}.xl\:grid-cols-\[330px_minmax\(0\,1fr\)\]{grid-template-columns:330px minmax(0,1fr)}.xl\:grid-cols-\[380px_1fr\]{grid-template-columns:380px 1fr}.xl\:grid-cols-\[minmax\(0\,1fr\)_290px\]{grid-template-columns:minmax(0,1fr) 290px}.xl\:px-7{padding-left:1.75rem;padding-right:1.75rem}.xl\:pr-\[406px\]{padding-right:406px}}@media(min-width:1536px){.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media print{.print\:hidden{display:none}.print\:p-0{padding:0}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\>\*\]\:w-full>*{width:100%}.\[\&\>\*\]\:rounded>*{border-radius:.25rem}.\[\&\>\*\]\:rounded-lg>*{border-radius:.5rem}.\[\&\>\*\]\:border>*{border-width:1px}.\[\&\>\*\]\:bg-white>*{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.\[\&\>\*\]\:px-3>*{padding-left:.75rem;padding-right:.75rem}.\[\&\>\*\]\:py-2>*{padding-top:.5rem;padding-bottom:.5rem}.\[\&\>\*\]\:py-2\.5>*{padding-top:.625rem;padding-bottom:.625rem}.\[\&\>\*\]\:text-sm>*{font-size:.875rem;line-height:1.25rem}.\[\&\>\*\]\:font-normal>*{font-weight:400}

.planner-execution-permissions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.planner-execution-permissions button:nth-child(1){grid-row:2}.planner-execution-permissions button:nth-child(2){grid-row:1}.planner-execution-permissions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3){display:none}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3),.daily-dispatcher-actions button.col-start-2{display:none!important}

/* Plan dzienny — spedytor: wykorzystanie po lewej, Plan i Mapa pionowo po prawej. */
.daily-dispatcher-actions{grid-template-columns:56px!important;grid-template-rows:28px 28px!important}.daily-dispatcher-actions button:nth-child(1){grid-row:1}.daily-dispatcher-actions button:nth-child(2){grid-row:2}.daily-dispatcher-actions button:nth-child(3),.daily-dispatcher-actions button.col-start-2{display:none!important}
.planner-execution-permissions{grid-template-columns:72px!important;grid-template-rows:20px 20px!important;margin-left:auto!important;justify-self:end!important}.planner-execution-permissions button:nth-child(3){display:none!important}

/* Widoczny pasek dla wielu ładunków w module planowania. */
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){overflow-x:scroll!important;scrollbar-width:auto!important;scrollbar-color:#94a3b8 #e2e8f0!important;scrollbar-gutter:stable!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar{display:block!important;height:10px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-track{background:#e2e8f0!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:8px!important}
/* Mapa zajmuje mniej miejsca niż Plan. */
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){grid-template-columns:48px 78px!important;width:130px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(1){width:48px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2),.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(3){width:78px!important}

/* Pasek tylko wtedy, gdy ładunki nie mieszczą się w dostępnym miejscu. */
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){overflow-x:auto!important;scrollbar-width:auto!important;scrollbar-color:#94a3b8 #e2e8f0!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar{display:block!important;height:10px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-track{background:#e2e8f0!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:8px!important}
/* Blok wykorzystania i akcji bez zbędnej przerwy; szerokość zgodna z tekstem przycisków. */
.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 285px 60px 42px minmax(0,1fr) 122px 104px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){margin:3px 0!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){grid-template-columns:42px 58px!important;width:104px!important;min-width:104px!important;margin:3px 0!important;gap:4px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(1){width:42px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(2),.planning-compact.planning-module-planning .grid.items-center>:nth-child(7)>button:nth-child(3){width:58px!important}

/* Dyskretny suwak w samym obszarze ładunków: aktywny tylko po najechaniu. */
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){overflow-x:auto!important;scrollbar-width:none!important;scrollbar-color:#94a3b8 transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5):hover{scrollbar-width:thin!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar{display:block!important;height:4px!important;background:transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-track{background:transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-thumb{background:transparent!important;border-radius:8px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5):hover::-webkit-scrollbar-thumb{background:#94a3b8!important}

/* Dyskretny suwak w samym obszarze ładunków: aktywny tylko po najechaniu. */
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){overflow-x:auto!important;scrollbar-width:none!important;scrollbar-color:#94a3b8 transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5):hover{scrollbar-width:thin!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar{display:block!important;height:4px!important;background:transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-track{background:transparent!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5)::-webkit-scrollbar-thumb{background:transparent!important;border-radius:8px!important}
.planning-compact.planning-module-planning .grid.items-center>:nth-child(5):hover::-webkit-scrollbar-thumb{background:#94a3b8!important}
/* Widok spedytora planu dziennego: wyłącznie Plan i Mapa na pełnej wysokości. */
.planning-compact.planning-module-daily .grid.items-center>:nth-child(7):has(.daily-dispatcher-actions){align-self:stretch!important;height:auto!important}
.planning-compact.planning-module-daily .daily-dispatcher-actions{height:100%!important;grid-template-columns:72px!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important}
.planning-compact.planning-module-daily .daily-dispatcher-actions>button{height:100%!important;min-height:0!important;width:72px!important}

/* Górny, nakładany suwak: tylko gdy ładunki nie mieszczą się w wierszu. */
.planning-load-strip-host{position:relative!important}
.planning-load-strip{scrollbar-width:none!important}
.planning-load-strip::-webkit-scrollbar{display:none!important}
.planning-load-top-scroll{position:absolute!important;z-index:20!important;top:0!important;left:0!important;right:0!important;height:5px!important;overflow-x:auto!important;overflow-y:hidden!important;opacity:0!important;transition:opacity .14s ease!important;scrollbar-width:thin!important;scrollbar-color:transparent transparent!important}
.planning-load-strip-host:hover>.planning-load-top-scroll,.planning-load-top-scroll:hover{opacity:1!important;scrollbar-color:#94a3b8 transparent!important}
.planning-load-top-scroll-track{height:1px!important;pointer-events:none!important}
.planning-load-top-scroll::-webkit-scrollbar{height:4px!important}
.planning-load-top-scroll::-webkit-scrollbar-track{background:transparent!important}
.planning-load-top-scroll::-webkit-scrollbar-thumb{background:transparent!important;border-radius:8px!important}
.planning-load-strip-host:hover>.planning-load-top-scroll::-webkit-scrollbar-thumb,.planning-load-top-scroll:hover::-webkit-scrollbar-thumb{background:#94a3b8!important}
/* Widok spedytora planu dziennego: wyłącznie Plan i Mapa na pełnej wysokości. */
.planning-compact.planning-module-daily .grid.items-center>:nth-child(7):has(.daily-dispatcher-actions){align-self:stretch!important;height:auto!important}
.planning-compact.planning-module-daily .daily-dispatcher-actions{height:100%!important;grid-template-columns:72px!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important}
.planning-compact.planning-module-daily .daily-dispatcher-actions>button{height:100%!important;min-height:0!important;width:72px!important}

/* r21 final UI fixes: START, daily actions, compact FTL */
.planning-compact.planning-module-daily input[aria-label="START"]{appearance:none!important;-moz-appearance:textfield!important;padding-left:1px!important;padding-right:1px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important;letter-spacing:-.2px!important}
.planning-compact.planning-module-daily input[aria-label="START"]::-webkit-calendar-picker-indicator{display:none!important;-webkit-appearance:none!important}
.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3),
.planning-compact.planning-module-daily .planner-execution-permissions>button:nth-child(3){display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
.planning-compact.planning-module-daily .grid.items-center>:nth-child(7)>button:nth-child(3)::after,
.planning-compact.planning-module-daily .planner-execution-permissions>button:nth-child(3)::after{content:none!important;display:none!important}
.planning-compact.planning-module-daily .grid.items-center>:nth-child(7){grid-template-rows:repeat(2,minmax(0,1fr))!important}

/* r21 correction: keep Nr naczepy column width; widen START field in Planowanie. */
.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 285px 74px 42px minmax(0,1fr) 122px 104px!important}
.planning-compact.planning-module-planning input[aria-label="START"]{width:100%!important;min-width:0!important;padding-left:2px!important;padding-right:2px!important;text-align:center!important}

/* DOM / BAZA sizing: Planowanie = wysokość kafelka ładunku; Plan dzienny = węższy kafelek. */
.planning-compact.planning-module-planning .base-route-item{height:48px!important;min-height:48px!important}
.planning-compact.planning-module-planning .base-route-item>span{line-height:1.05!important}
.planning-compact.planning-module-daily .base-route-item{width:190px!important;min-width:190px!important;max-width:190px!important}
.planning-compact.planning-module-daily .base-route-item>span{min-width:0!important}

/* DOM / BAZA r22: dimensions independent of load/trailer data. */
.planning-module-planning .base-route-item{height:48px!important;min-height:48px!important;width:180px!important;min-width:180px!important;max-width:180px!important}
.planning-module-planning .base-route-item>span{min-width:0!important;overflow:hidden!important;line-height:1.05!important}
.planning-module-daily .base-route-item{width:180px!important;min-width:180px!important;max-width:180px!important}
.planning-module-daily .base-route-item>span{min-width:0!important;overflow:hidden!important}
.planning-module-planning .base-route-item>span>span,.planning-module-daily .base-route-item>span>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

/* Pasek załadunków obejmuje także szerokość panelu podglądu. */
.warehouse-page .warehouse-loading-workspace > .warehouse-loadings-summary-bar{grid-column:1 / -1!important;width:100%!important;min-width:0;align-self:stretch}


/* Zadania są planowane na konkretny dzień, a kierownik przełącza pełny tydzień. */
.warehouse-page .warehouse-task-day-selector{display:flex;align-items:center;gap:9px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.04)}.warehouse-page .warehouse-task-day-selector>div{flex:1}.warehouse-page .warehouse-task-day-selector small,.warehouse-page .warehouse-task-day-selector b{display:block}.warehouse-page .warehouse-task-day-selector small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-task-day-selector b{text-transform:capitalize;font-size:13px;color:#173761}.warehouse-page .warehouse-task-day-selector button{border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 10px;font-size:11px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:12px}.warehouse-page .warehouse-manager-weekdays button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;padding:7px 9px;text-align:left;color:#173761}.warehouse-page .warehouse-manager-weekdays small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays b{font-size:15px}.warehouse-page .warehouse-manager-weekdays span{grid-row:1 / span 2;grid-column:2;border-radius:999px;background:#eaf3ff;padding:2px 6px;font-size:10px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays button.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 4px 10px rgba(37,99,235,.13)}.warehouse-page .warehouse-manager-weekdays button.is-active small,.warehouse-page .warehouse-manager-weekdays button.is-active b{color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays button.is-active span{background:#2563eb;color:#fff}@media(max-width:700px){.warehouse-page .warehouse-manager-weekdays{gap:4px}.warehouse-page .warehouse-manager-weekdays button{padding:6px}.warehouse-page .warehouse-manager-weekdays small{font-size:7px}.warehouse-page .warehouse-manager-weekdays b{font-size:12px}}

/* Przyjęcia krajowe — kompaktowe liczniki w pasku filtrów. */
.warehouse-page .warehouse-domestic-compact-stats{display:flex;align-items:stretch;gap:5px;margin-left:auto}.warehouse-page .warehouse-domestic-compact-stats span{display:flex;align-items:center;gap:5px;border:1px solid #dbe6f4;border-radius:7px;background:#f8fbff;padding:4px 7px;color:#36536f;white-space:nowrap}.warehouse-page .warehouse-domestic-compact-stats small{font-size:8px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-domestic-compact-stats b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px}.warehouse-page .warehouse-domestic-compact-stats span.amber b{background:#fef3c7;color:#b45309}@media(max-width:1250px){.warehouse-page .warehouse-domestic-compact-stats{order:5;width:100%;margin-left:0}}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

/* Pasek załadunków obejmuje także szerokość panelu podglądu. */
.warehouse-page .warehouse-loading-workspace > .warehouse-loadings-summary-bar{grid-column:1 / -1!important;width:100%!important;min-width:0;align-self:stretch}


/* Zadania są planowane na konkretny dzień, a kierownik przełącza pełny tydzień. */
.warehouse-page .warehouse-task-day-selector{display:flex;align-items:center;gap:9px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.04)}.warehouse-page .warehouse-task-day-selector>div{flex:1}.warehouse-page .warehouse-task-day-selector small,.warehouse-page .warehouse-task-day-selector b{display:block}.warehouse-page .warehouse-task-day-selector small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-task-day-selector b{text-transform:capitalize;font-size:13px;color:#173761}.warehouse-page .warehouse-task-day-selector button{border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 10px;font-size:11px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:12px}.warehouse-page .warehouse-manager-weekdays button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;padding:7px 9px;text-align:left;color:#173761}.warehouse-page .warehouse-manager-weekdays small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays b{font-size:15px}.warehouse-page .warehouse-manager-weekdays span{grid-row:1 / span 2;grid-column:2;border-radius:999px;background:#eaf3ff;padding:2px 6px;font-size:10px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays button.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 4px 10px rgba(37,99,235,.13)}.warehouse-page .warehouse-manager-weekdays button.is-active small,.warehouse-page .warehouse-manager-weekdays button.is-active b{color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays button.is-active span{background:#2563eb;color:#fff}@media(max-width:700px){.warehouse-page .warehouse-manager-weekdays{gap:4px}.warehouse-page .warehouse-manager-weekdays button{padding:6px}.warehouse-page .warehouse-manager-weekdays small{font-size:7px}.warehouse-page .warehouse-manager-weekdays b{font-size:12px}}

/* Przyjęcia krajowe — kompaktowe liczniki w pasku filtrów. */
.warehouse-page .warehouse-domestic-compact-stats{display:flex;align-items:stretch;gap:5px;margin-left:auto}.warehouse-page .warehouse-domestic-compact-stats span{display:flex;align-items:center;gap:5px;border:1px solid #dbe6f4;border-radius:7px;background:#f8fbff;padding:4px 7px;color:#36536f;white-space:nowrap}.warehouse-page .warehouse-domestic-compact-stats small{font-size:8px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-domestic-compact-stats b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px}.warehouse-page .warehouse-domestic-compact-stats span.amber b{background:#fef3c7;color:#b45309}@media(max-width:1250px){.warehouse-page .warehouse-domestic-compact-stats{order:5;width:100%;margin-left:0}}

/* Stabilne przeciąganie kierownika: bez zmiany drzewa React podczas aktywnego drag. */
.warehouse-page .warehouse-manager-drop-target article{pointer-events:auto}

/* Przyjęcia krajowe — firma i adres przed numerem TMS. */
.warehouse-page .warehouse-receipt-company b{font-size:11px;color:#173761}.warehouse-page .warehouse-receipt-company small{font-size:9px;line-height:13px}.warehouse-page .warehouse-receipt-tms{border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{display:inline-flex;margin-top:2px}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

/* Pasek załadunków obejmuje także szerokość panelu podglądu. */
.warehouse-page .warehouse-loading-workspace > .warehouse-loadings-summary-bar{grid-column:1 / -1!important;width:100%!important;min-width:0;align-self:stretch}


/* Zadania są planowane na konkretny dzień, a kierownik przełącza pełny tydzień. */
.warehouse-page .warehouse-task-day-selector{display:flex;align-items:center;gap:9px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.04)}.warehouse-page .warehouse-task-day-selector>div{flex:1}.warehouse-page .warehouse-task-day-selector small,.warehouse-page .warehouse-task-day-selector b{display:block}.warehouse-page .warehouse-task-day-selector small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-task-day-selector b{text-transform:capitalize;font-size:13px;color:#173761}.warehouse-page .warehouse-task-day-selector button{border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 10px;font-size:11px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:12px}.warehouse-page .warehouse-manager-weekdays button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;padding:7px 9px;text-align:left;color:#173761}.warehouse-page .warehouse-manager-weekdays small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays b{font-size:15px}.warehouse-page .warehouse-manager-weekdays span{grid-row:1 / span 2;grid-column:2;border-radius:999px;background:#eaf3ff;padding:2px 6px;font-size:10px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays button.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 4px 10px rgba(37,99,235,.13)}.warehouse-page .warehouse-manager-weekdays button.is-active small,.warehouse-page .warehouse-manager-weekdays button.is-active b{color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays button.is-active span{background:#2563eb;color:#fff}@media(max-width:700px){.warehouse-page .warehouse-manager-weekdays{gap:4px}.warehouse-page .warehouse-manager-weekdays button{padding:6px}.warehouse-page .warehouse-manager-weekdays small{font-size:7px}.warehouse-page .warehouse-manager-weekdays b{font-size:12px}}

/* Przyjęcia krajowe — kompaktowe liczniki w pasku filtrów. */
.warehouse-page .warehouse-domestic-compact-stats{display:flex;align-items:stretch;gap:5px;margin-left:auto}.warehouse-page .warehouse-domestic-compact-stats span{display:flex;align-items:center;gap:5px;border:1px solid #dbe6f4;border-radius:7px;background:#f8fbff;padding:4px 7px;color:#36536f;white-space:nowrap}.warehouse-page .warehouse-domestic-compact-stats small{font-size:8px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-domestic-compact-stats b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px}.warehouse-page .warehouse-domestic-compact-stats span.amber b{background:#fef3c7;color:#b45309}@media(max-width:1250px){.warehouse-page .warehouse-domestic-compact-stats{order:5;width:100%;margin-left:0}}

/* Stabilne przeciąganie kierownika: bez zmiany drzewa React podczas aktywnego drag. */
.warehouse-page .warehouse-manager-drop-target article{pointer-events:auto}

/* Przyjęcia krajowe — firma i adres przed numerem TMS. */
.warehouse-page .warehouse-receipt-company b{font-size:11px;color:#173761}.warehouse-page .warehouse-receipt-company small{font-size:9px;line-height:13px}.warehouse-page .warehouse-receipt-tms{border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{display:inline-flex;margin-top:2px}

/* Przyjęcia krajowe — dopracowany kafelek pojedynczego ładunku. */
.warehouse-page .warehouse-receipt-row{min-height:72px!important;gap:8px!important;padding:8px 10px!important;border-left-width:4px!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{width:15px;height:15px;border-radius:4px}.warehouse-page .warehouse-receipt-company{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.warehouse-page .warehouse-receipt-company b{font-size:12px!important;font-weight:850!important;letter-spacing:-.01em}.warehouse-page .warehouse-receipt-company small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b!important;font-size:9px!important}.warehouse-page .warehouse-receipt-tms{align-self:stretch;display:flex;flex-wrap:wrap;align-content:center;gap:2px 5px;padding-left:11px!important}.warehouse-page .warehouse-receipt-tms>b{width:100%;font-size:11px!important;color:#0f4c81!important}.warehouse-page .warehouse-receipt-tms small{font-size:8px!important;color:#94a3b8!important}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{margin:0!important;padding:2px 6px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4){align-self:stretch;display:grid!important;align-content:center;gap:3px!important;padding:4px 0}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span{border-left:0!important;border-radius:6px;background:#f3f7fc;padding:3px 2px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span b{font-size:10px;color:#173761}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span small{font-size:8px;color:#64748b}.warehouse-page .warehouse-receipt-row>div:nth-child(5){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:10px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(6){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:11px!important;background:linear-gradient(90deg,transparent,#f8fbff)}.warehouse-page .warehouse-receipt-row>div:nth-child(7){align-self:center;font-size:11px!important;font-weight:850!important;color:#1d4ed8!important}.warehouse-page .warehouse-receipt-decision{align-self:stretch!important;display:grid!important;align-content:center;border:1px solid #d6e5f7;border-radius:8px;background:#f8fbff;padding:4px!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-receipt-decision>button{border-radius:5px!important;box-shadow:0 2px 5px rgba(37,99,235,.16)}.warehouse-page .warehouse-receipt-row:hover{border-color:#60a5fa!important;background:linear-gradient(90deg,#fff,#f6faff)!important;box-shadow:0 7px 18px rgba(30,64,175,.11)!important}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){background:linear-gradient(90deg,#ecfdf5,#f8fffd)!important}

/* Załadunki — wyszukiwane pola kierowcy i pojazdu. */
.warehouse-page .warehouse-search-picker{position:relative;display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-search-picker-box{position:relative}.warehouse-page .warehouse-search-picker input{width:100%;border:1px solid #b7d3fb;border-radius:7px;background:#fff;padding:8px 28px 8px 9px;font-size:12px;font-weight:600;color:#173761;text-transform:none;outline:0}.warehouse-page .warehouse-search-picker input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.warehouse-page .warehouse-search-picker-box>button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#64748b;font-size:16px;line-height:16px}.warehouse-page .warehouse-search-picker-results{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;overflow:hidden;border:1px solid #bfdbfe;border-radius:8px;background:#fff;box-shadow:0 12px 24px rgba(15,41,76,.17);text-transform:none}.warehouse-page .warehouse-search-picker-results button,.warehouse-page .warehouse-search-picker-results span{display:block;width:100%;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:8px 9px;text-align:left;font-size:11px;font-weight:650;color:#173761}.warehouse-page .warehouse-search-picker-results button:hover{background:#eff6ff;color:#1d4ed8}.warehouse-page .warehouse-search-picker-results span{color:#94a3b8}

/* Załadunek — screeny dodawane wraz z informacją dla zespołu. */
.warehouse-page .warehouse-loading-screens{display:grid;gap:6px}.warehouse-page .warehouse-loading-screens-drop{position:relative;display:grid;min-height:74px;place-content:center;border:1px dashed #78aaf3;border-radius:9px;background:#f7fbff;text-align:center;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop:hover{border-color:#2563eb;background:#eff6ff}.warehouse-page .warehouse-loading-screens-drop input{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop strong{color:#1d4ed8;font-size:12px}.warehouse-page .warehouse-loading-screens-drop small{margin-top:4px;color:#64748b;font-size:10px;font-weight:600}.warehouse-page .warehouse-loading-screens-list{display:flex;flex-wrap:wrap;gap:6px}.warehouse-page .warehouse-loading-screens-list>span{display:flex;align-items:center;gap:5px;max-width:240px;border:1px solid #cfe0f5;border-radius:999px;background:#fff;padding:4px 5px 4px 9px;color:#36536f;font-size:10px;font-weight:700}.warehouse-page .warehouse-loading-screens-list>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-page .warehouse-loading-screens-list button{display:grid;flex:0 0 auto;width:17px;height:17px;place-items:center;border:0;border-radius:50%;background:#e8f1ff;color:#1d4ed8;font-size:14px;line-height:1}.warehouse-page .warehouse-loading-screens-list button:hover{background:#fee2e2;color:#dc2626}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

/* Pasek załadunków obejmuje także szerokość panelu podglądu. */
.warehouse-page .warehouse-loading-workspace > .warehouse-loadings-summary-bar{grid-column:1 / -1!important;width:100%!important;min-width:0;align-self:stretch}


/* Zadania są planowane na konkretny dzień, a kierownik przełącza pełny tydzień. */
.warehouse-page .warehouse-task-day-selector{display:flex;align-items:center;gap:9px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.04)}.warehouse-page .warehouse-task-day-selector>div{flex:1}.warehouse-page .warehouse-task-day-selector small,.warehouse-page .warehouse-task-day-selector b{display:block}.warehouse-page .warehouse-task-day-selector small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-task-day-selector b{text-transform:capitalize;font-size:13px;color:#173761}.warehouse-page .warehouse-task-day-selector button{border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 10px;font-size:11px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:12px}.warehouse-page .warehouse-manager-weekdays button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;padding:7px 9px;text-align:left;color:#173761}.warehouse-page .warehouse-manager-weekdays small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays b{font-size:15px}.warehouse-page .warehouse-manager-weekdays span{grid-row:1 / span 2;grid-column:2;border-radius:999px;background:#eaf3ff;padding:2px 6px;font-size:10px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays button.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 4px 10px rgba(37,99,235,.13)}.warehouse-page .warehouse-manager-weekdays button.is-active small,.warehouse-page .warehouse-manager-weekdays button.is-active b{color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays button.is-active span{background:#2563eb;color:#fff}@media(max-width:700px){.warehouse-page .warehouse-manager-weekdays{gap:4px}.warehouse-page .warehouse-manager-weekdays button{padding:6px}.warehouse-page .warehouse-manager-weekdays small{font-size:7px}.warehouse-page .warehouse-manager-weekdays b{font-size:12px}}

/* Przyjęcia krajowe — kompaktowe liczniki w pasku filtrów. */
.warehouse-page .warehouse-domestic-compact-stats{display:flex;align-items:stretch;gap:5px;margin-left:auto}.warehouse-page .warehouse-domestic-compact-stats span{display:flex;align-items:center;gap:5px;border:1px solid #dbe6f4;border-radius:7px;background:#f8fbff;padding:4px 7px;color:#36536f;white-space:nowrap}.warehouse-page .warehouse-domestic-compact-stats small{font-size:8px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-domestic-compact-stats b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px}.warehouse-page .warehouse-domestic-compact-stats span.amber b{background:#fef3c7;color:#b45309}@media(max-width:1250px){.warehouse-page .warehouse-domestic-compact-stats{order:5;width:100%;margin-left:0}}

/* Stabilne przeciąganie kierownika: bez zmiany drzewa React podczas aktywnego drag. */
.warehouse-page .warehouse-manager-drop-target article{pointer-events:auto}

/* Przyjęcia krajowe — firma i adres przed numerem TMS. */
.warehouse-page .warehouse-receipt-company b{font-size:11px;color:#173761}.warehouse-page .warehouse-receipt-company small{font-size:9px;line-height:13px}.warehouse-page .warehouse-receipt-tms{border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{display:inline-flex;margin-top:2px}

/* Przyjęcia krajowe — dopracowany kafelek pojedynczego ładunku. */
.warehouse-page .warehouse-receipt-row{min-height:72px!important;gap:8px!important;padding:8px 10px!important;border-left-width:4px!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{width:15px;height:15px;border-radius:4px}.warehouse-page .warehouse-receipt-company{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.warehouse-page .warehouse-receipt-company b{font-size:12px!important;font-weight:850!important;letter-spacing:-.01em}.warehouse-page .warehouse-receipt-company small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b!important;font-size:9px!important}.warehouse-page .warehouse-receipt-tms{align-self:stretch;display:flex;flex-wrap:wrap;align-content:center;gap:2px 5px;padding-left:11px!important}.warehouse-page .warehouse-receipt-tms>b{width:100%;font-size:11px!important;color:#0f4c81!important}.warehouse-page .warehouse-receipt-tms small{font-size:8px!important;color:#94a3b8!important}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{margin:0!important;padding:2px 6px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4){align-self:stretch;display:grid!important;align-content:center;gap:3px!important;padding:4px 0}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span{border-left:0!important;border-radius:6px;background:#f3f7fc;padding:3px 2px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span b{font-size:10px;color:#173761}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span small{font-size:8px;color:#64748b}.warehouse-page .warehouse-receipt-row>div:nth-child(5){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:10px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(6){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:11px!important;background:linear-gradient(90deg,transparent,#f8fbff)}.warehouse-page .warehouse-receipt-row>div:nth-child(7){align-self:center;font-size:11px!important;font-weight:850!important;color:#1d4ed8!important}.warehouse-page .warehouse-receipt-decision{align-self:stretch!important;display:grid!important;align-content:center;border:1px solid #d6e5f7;border-radius:8px;background:#f8fbff;padding:4px!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-receipt-decision>button{border-radius:5px!important;box-shadow:0 2px 5px rgba(37,99,235,.16)}.warehouse-page .warehouse-receipt-row:hover{border-color:#60a5fa!important;background:linear-gradient(90deg,#fff,#f6faff)!important;box-shadow:0 7px 18px rgba(30,64,175,.11)!important}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){background:linear-gradient(90deg,#ecfdf5,#f8fffd)!important}

/* Załadunki — wyszukiwane pola kierowcy i pojazdu. */
.warehouse-page .warehouse-search-picker{position:relative;display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-search-picker-box{position:relative}.warehouse-page .warehouse-search-picker input{width:100%;border:1px solid #b7d3fb;border-radius:7px;background:#fff;padding:8px 28px 8px 9px;font-size:12px;font-weight:600;color:#173761;text-transform:none;outline:0}.warehouse-page .warehouse-search-picker input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.warehouse-page .warehouse-search-picker-box>button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#64748b;font-size:16px;line-height:16px}.warehouse-page .warehouse-search-picker-results{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;overflow:hidden;border:1px solid #bfdbfe;border-radius:8px;background:#fff;box-shadow:0 12px 24px rgba(15,41,76,.17);text-transform:none}.warehouse-page .warehouse-search-picker-results button,.warehouse-page .warehouse-search-picker-results span{display:block;width:100%;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:8px 9px;text-align:left;font-size:11px;font-weight:650;color:#173761}.warehouse-page .warehouse-search-picker-results button:hover{background:#eff6ff;color:#1d4ed8}.warehouse-page .warehouse-search-picker-results span{color:#94a3b8}

/* Załadunek — screeny dodawane wraz z informacją dla zespołu. */
.warehouse-page .warehouse-loading-screens{display:grid;gap:6px}.warehouse-page .warehouse-loading-screens-drop{position:relative;display:grid;min-height:74px;place-content:center;border:1px dashed #78aaf3;border-radius:9px;background:#f7fbff;text-align:center;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop:hover{border-color:#2563eb;background:#eff6ff}.warehouse-page .warehouse-loading-screens-drop input{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop strong{color:#1d4ed8;font-size:12px}.warehouse-page .warehouse-loading-screens-drop small{margin-top:4px;color:#64748b;font-size:10px;font-weight:600}.warehouse-page .warehouse-loading-screens-list{display:flex;flex-wrap:wrap;gap:6px}.warehouse-page .warehouse-loading-screens-list>span{display:flex;align-items:center;gap:5px;max-width:240px;border:1px solid #cfe0f5;border-radius:999px;background:#fff;padding:4px 5px 4px 9px;color:#36536f;font-size:10px;font-weight:700}.warehouse-page .warehouse-loading-screens-list>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-page .warehouse-loading-screens-list button{display:grid;flex:0 0 auto;width:17px;height:17px;place-items:center;border:0;border-radius:50%;background:#e8f1ff;color:#1d4ed8;font-size:14px;line-height:1}.warehouse-page .warehouse-loading-screens-list button:hover{background:#fee2e2;color:#dc2626}

.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px minmax(120px,1.05fr) minmax(140px,1.3fr) minmax(75px,.65fr) minmax(160px,1.4fr) minmax(135px,1.1fr) minmax(160px,1.2fr) minmax(185px,1.65fr)!important}
.warehouse-receipt-row>div:last-child>div:last-child{margin-top:6px}

.warehouse-page .warehouse-domestic-task{background:#ecfdf5!important;border-color:#99f6e4!important;border-left:5px solid #0f766e!important}
.warehouse-page .warehouse-load-details{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-color:#bfdbfe!important}
/* Przyjęcia krajowe: visual refinement only; fields and layout order remain unchanged. */
.warehouse-page .warehouse-domestic-receipts{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-domestic-receipts>div:first-child{border-color:#d8e4f2!important;background:linear-gradient(105deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-domestic-receipts>div:first-child input,.warehouse-page .warehouse-domestic-receipts>div:first-child select{border-color:#cbd9e9;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(2)>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.045)}
.warehouse-page .warehouse-domestic-receipts>div:nth-child(3){border-color:#9dd8f2!important;background:#f0f9ff;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.07)}
.warehouse-page .warehouse-domestic-header{position:sticky;top:0;z-index:8;margin-bottom:4px;border:1px solid #d9e6f3;border-radius:10px;background:linear-gradient(90deg,#f8fbff,#edf6ff)!important;box-shadow:0 4px 12px rgba(15,41,76,.055)}
.warehouse-page .warehouse-receipt-row{border-color:#dce7f3!important;box-shadow:0 2px 8px rgba(15,41,76,.035);transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background 150ms ease}
.warehouse-page .warehouse-receipt-row:hover{transform:translateY(-1px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,65,120,.1)}
.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#f0fdfa,#fff)!important;box-shadow:0 8px 20px rgba(13,148,136,.14)}
.warehouse-page .warehouse-receipt-row select,.warehouse-page .warehouse-receipt-row input{border-color:#cbd9e9;transition:border-color 140ms ease,box-shadow 140ms ease}
.warehouse-page .warehouse-receipt-row select:focus,.warehouse-page .warehouse-receipt-row input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15);outline:0}
.warehouse-page .warehouse-domestic-receipts footer{border-color:#dce7f3!important;background:#f8fbff!important}
.warehouse-page [draggable="true"]{transition:transform 160ms cubic-bezier(.2,.9,.25,1),box-shadow 160ms ease,opacity 160ms ease}
.warehouse-page .warehouse-task-dragging{animation:warehouse-task-lift 650ms ease-in-out infinite alternate;cursor:grabbing!important;opacity:.78;box-shadow:0 20px 42px rgba(15,118,110,.35)!important;outline:3px solid rgba(45,212,191,.65);z-index:20}
.warehouse-page section:has(.warehouse-task-dragging){background:#ccfbf1!important;box-shadow:inset 0 0 0 3px #14b8a6;transition:background 140ms ease,box-shadow 140ms ease}
@keyframes warehouse-task-lift{from{transform:scale(1.015) rotate(-.5deg)}to{transform:scale(1.055) rotate(1deg)}}
/* Kierownik magazynu: only visual refinement; data layout remains unchanged. */
.warehouse-page .warehouse-manager-board{max-width:1920px;margin:0 auto;padding:2px 2px 18px;color:#173761}
.warehouse-page .warehouse-manager-board>div>section{border-color:#d9e3f0!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-manager-board input,.warehouse-page .warehouse-manager-board button,.warehouse-page .warehouse-manager-board select{transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease,transform 150ms ease}
.warehouse-page .warehouse-manager-board input:focus,.warehouse-page .warehouse-manager-board select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.18);outline:0}
.warehouse-page .warehouse-manager-board>div>section:first-child{background:linear-gradient(115deg,#fff 0%,#f8fbff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]{border-color:#d8e3f0;background:linear-gradient(135deg,#fff 0%,#fbfdff 100%)}
.warehouse-page .warehouse-manager-board [draggable="true"]:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 9px 20px rgba(15,65,120,.12)}
.warehouse-page .warehouse-manager-board>div:last-child>section{border-radius:14px;background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)}
.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{background:linear-gradient(180deg,#eff9ff 0%,#e1f3ff 100%);border-color:#8ec5ef!important}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:first-child{position:sticky;top:0;z-index:3;margin:-2px -2px 10px;padding:9px 4px 8px;background:inherit;border-bottom:1px solid rgba(148,163,184,.22)}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar{width:7px}
.warehouse-page .warehouse-manager-board>div:last-child>section>div:last-child::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px}
@media(max-width:1279px){.warehouse-page .warehouse-manager-board>div:last-child{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)!important}.warehouse-page .warehouse-manager-board>div:last-child>section:first-child{grid-row:auto!important}.warehouse-page .warehouse-manager-board>div:last-child>section{min-height:430px!important}}


/* Historia magazynu: visual refinement only; the information schema remains unchanged. */
.warehouse-page .warehouse-history{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-history>div:first-child>div{border:1px solid #d9e6f3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 4px 12px rgba(15,41,76,.05)}
.warehouse-page .warehouse-history>div:nth-child(2){align-items:center;border-color:#d8e4f2!important;border-radius:12px!important;background:linear-gradient(110deg,#fff,#f8fbff)!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}
.warehouse-page .warehouse-history>div:nth-child(2) input,.warehouse-page .warehouse-history>div:nth-child(2) select{border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,41,76,.04);outline:0;transition:border-color 150ms ease,box-shadow 150ms ease}
.warehouse-page .warehouse-history>div:nth-child(2) input:focus,.warehouse-page .warehouse-history>div:nth-child(2) select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
.warehouse-page .warehouse-history>div:nth-child(2) button{border-radius:8px;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:transform 150ms ease,box-shadow 150ms ease}.warehouse-page .warehouse-history>div:nth-child(2) button:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(37,99,235,.25)}
.warehouse-page .warehouse-history section{border-color:#d9e6f3!important;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-history section h3{background:linear-gradient(90deg,#f1f7ff,#e8f3ff)!important;border-color:#d9e6f3!important}
.warehouse-page .warehouse-history table thead{background:#f8fbff;color:#48617f;text-transform:uppercase;letter-spacing:.035em;font-size:10px}.warehouse-page .warehouse-history table th{padding:11px 12px;font-weight:800}.warehouse-page .warehouse-history table td{padding:12px;border-color:#e5edf6;color:#40546e}
.warehouse-page .warehouse-history table tbody tr{transition:background 140ms ease,box-shadow 140ms ease}.warehouse-page .warehouse-history table tbody tr:hover{background:#f0f8ff;box-shadow:inset 3px 0 #38bdf8}.warehouse-page .warehouse-history table tbody tr.bg-blue-50{background:linear-gradient(90deg,#e9f6ff,#f7fbff)!important;box-shadow:inset 4px 0 #0284c7}
.warehouse-page .warehouse-history aside{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 7px 18px rgba(15,41,76,.065)}.warehouse-page .warehouse-history aside>div:first-child{background:linear-gradient(90deg,#f1f7ff,#fff);border-color:#d9e6f3!important}.warehouse-page .warehouse-history aside dl dt{color:#64748b}.warehouse-page .warehouse-history aside dl dd{font-weight:600;color:#334e6f}.warehouse-page .warehouse-history aside ol{border-color:#2dd4bf!important}.warehouse-page .warehouse-history aside ol li{position:relative}.warehouse-page .warehouse-history aside ol li:before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:999px;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}

/* Przyjęcia krajowe — drzewko naczep */
.warehouse-page .warehouse-receipt-decision{display:grid;gap:5px;min-width:178px}.warehouse-page .warehouse-receipt-decision>div:first-child{gap:3px}.warehouse-page .warehouse-receipt-decision>div:first-child button{min-height:25px}.warehouse-page .warehouse-receipt-decision select{min-height:29px;padding:4px 7px!important}.warehouse-page .warehouse-receipt-decision>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.warehouse-page .warehouse-receipt-decision>div:last-child button{min-height:31px;padding:5px!important}
.warehouse-page .warehouse-trailer-tree{border-color:#d9e6f3!important;background:linear-gradient(180deg,#fff,#f8fbff)}.warehouse-page .warehouse-tree-toggle{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:11px;font-weight:700;color:#1d4ed8}.warehouse-page .warehouse-tree-toggle:hover{background:#eff6ff}.warehouse-page .warehouse-trailer-group{overflow:hidden;border:1px solid #dbe7f3;border-radius:9px;background:#fff}.warehouse-page .warehouse-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}.warehouse-page .warehouse-trailer-group-head{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;text-align:left;font-size:11px;background:#f8fbff}.warehouse-page .warehouse-trailer-group-head:hover{background:#eff6ff}.warehouse-page .warehouse-tree-arrow{width:13px;color:#2563eb;font-size:17px;line-height:10px}.warehouse-page .warehouse-trailer-leaves{border-top:1px solid #e5edf6;padding:5px 9px 8px}.warehouse-page .warehouse-trailer-leaf{border-top:1px solid #eef3f8;padding:7px 2px}.warehouse-page .warehouse-trailer-leaf:first-child{border-top:0}.warehouse-page .warehouse-leaf-toggle{width:18px;color:#2563eb;font-size:16px}.warehouse-page .warehouse-leaf-details{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:8px;margin:7px 0 0 43px;border-radius:6px;background:#f8fbff;padding:7px 9px;font-size:10px;color:#52677f}

/* Przyjęcia krajowe — naczepa nadrzędna */
.warehouse-page .warehouse-decision-trailer-group{margin-top:6px;overflow:hidden;border:1px solid #d9e6f3;border-radius:10px;background:#fff}.warehouse-page .warehouse-decision-trailer-group.is-open{border-color:#93c5fd;box-shadow:0 4px 13px rgba(37,99,235,.09)}.warehouse-page .warehouse-decision-trailer-head{display:flex;width:100%;align-items:center;gap:8px;background:linear-gradient(90deg,#f8fbff,#edf6ff);padding:9px 11px;text-align:left;font-size:11px;color:#173761}.warehouse-page .warehouse-decision-trailer-head:hover{background:#eaf4ff}.warehouse-page .warehouse-decision-trailer-loads{padding:5px 7px 7px;background:#fff}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row{margin-top:5px}.warehouse-page .warehouse-decision-trailer-loads .warehouse-receipt-row:first-child{margin-top:0}

/* Przyjęcia krajowe — grupy stale rozwinięte */
.warehouse-page .warehouse-decision-trailer-head{display:grid!important;grid-template-columns:18px minmax(150px,.9fr) minmax(190px,1.2fr) minmax(115px,.65fr) auto;gap:10px;align-items:center;cursor:default}.warehouse-page .warehouse-decision-trailer-head:hover{background:linear-gradient(90deg,#f8fbff,#edf6ff)}.warehouse-page .warehouse-trailer-arrival{font-weight:800;color:#be123c;white-space:nowrap}
@media(max-width:900px){.warehouse-page .warehouse-decision-trailer-head{grid-template-columns:18px 1fr auto}.warehouse-page .warehouse-decision-trailer-head>b,.warehouse-page .warehouse-trailer-arrival{grid-column:2}.warehouse-page .warehouse-decision-trailer-head>span:last-child{grid-column:3;grid-row:1}}

/* Ustawienia magazynu */
.warehouse-page .warehouse-settings{max-width:1500px;margin:0 auto;color:#173761}.warehouse-page .warehouse-settings-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:linear-gradient(110deg,#fff,#f4f9ff);padding:16px 18px;box-shadow:0 5px 16px rgba(15,41,76,.055)}.warehouse-page .warehouse-settings-head h3{font-size:17px;font-weight:900}.warehouse-page .warehouse-settings-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-settings-count{border-radius:10px;background:#e0f2fe;padding:8px 12px;text-align:center;color:#075985}.warehouse-page .warehouse-settings-count b{display:block;font-size:20px}.warehouse-page .warehouse-settings-count span{font-size:10px;font-weight:700}.warehouse-page .warehouse-direction-map,.warehouse-page .warehouse-locations-settings{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 12px rgba(15,41,76,.045)}.warehouse-page .warehouse-direction-map h4,.warehouse-page .warehouse-locations-settings h4{font-size:14px;font-weight:900}.warehouse-page .warehouse-direction-map p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-direction-card{display:grid;grid-template-columns:42px 1fr;gap:2px;border:1px dashed #d7e3f1;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-direction-card.is-mapped{border-style:solid;border-color:#99f6e4;background:#f0fdfa}.warehouse-page .warehouse-direction-card b{grid-row:span 2;color:#0f4c81}.warehouse-page .warehouse-direction-card span{font-size:12px;font-weight:800}.warehouse-page .warehouse-direction-card small{font-size:10px;color:#64748b}.warehouse-page .warehouse-location-settings-grid{display:grid;grid-template-columns:150px minmax(210px,1fr) 80px minmax(150px,.7fr) 100px 80px;gap:8px;align-items:center;border-top:1px solid #edf2f7;padding:8px 0}.warehouse-page .warehouse-location-settings-labels{border-top:0;padding-top:0;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-location-settings-grid input,.warehouse-page .warehouse-location-settings-grid select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px}.warehouse-page .warehouse-location-settings-grid select{border:1px solid #cbd9e9;border-radius:7px;padding:7px 8px;font-size:12px;background:#fff}.warehouse-page .warehouse-location-settings-grid input:focus,.warehouse-page .warehouse-location-settings-grid select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:0}.warehouse-page .warehouse-setting-active{font-size:11px;font-weight:700;color:#334e68}.warehouse-page .warehouse-location-settings-grid button{border-radius:7px;background:#0b5cab;padding:7px 8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-location-settings-grid button:disabled{opacity:.45}.warehouse-page .warehouse-location-settings-new{margin-top:5px;border-top:1px dashed #bfdbfe;background:#f8fbff}.warehouse-page .warehouse-location-settings-new button{background:#0f766e}
@media(max-width:850px){.warehouse-page .warehouse-location-settings-grid{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-location-settings-labels{display:none}.warehouse-page .warehouse-location-settings-grid input:nth-child(3){grid-column:1}.warehouse-page .warehouse-location-settings-grid button{grid-column:2}.warehouse-page .warehouse-settings-head{align-items:flex-start;flex-direction:column}}
.warehouse-page .warehouse-direction-settings-list{display:grid;gap:8px}.warehouse-page .warehouse-direction-settings-row{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 120px;gap:10px;align-items:end;border-top:1px solid #e5edf6;padding:10px 0}.warehouse-page .warehouse-direction-settings-row label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-direction-settings-row input,.warehouse-page .warehouse-direction-settings-row select{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-direction-settings-row button{border-radius:7px;background:#0b5cab;padding:8px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-direction-code b{display:block;font-size:13px;color:#0f4c81}.warehouse-page .warehouse-direction-code small{display:block;margin-top:2px;font-size:10px;color:#64748b}@media(max-width:850px){.warehouse-page .warehouse-direction-settings-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-direction-code{grid-column:1/-1}}
.warehouse-page .warehouse-receipt-decision{display:block;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:flex!important;align-items:stretch;gap:4px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex:0 0 54px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:20px;padding:3px 4px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child{min-width:0;flex:1}
.warehouse-page .warehouse-receipt-decision select{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:last-child button{min-height:24px;padding:3px 6px!important;font-size:9px}
.warehouse-page .warehouse-receipt-decision{display:grid!important;grid-template-columns:54px minmax(0,1fr);gap:4px;min-width:210px}
.warehouse-page .warehouse-receipt-decision>div:first-child{display:contents!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{grid-column:1;grid-row:1 / span 2;display:flex!important;flex-direction:column}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision>button{grid-column:2;grid-row:2;margin-top:0!important;min-height:24px;padding:3px 6px!important;font-size:9px}
/* Główne zakładki modułu magazynu */
.warehouse-page .warehouse-tabs{position:sticky;top:0;z-index:20;display:flex!important;gap:5px!important;overflow-x:auto;margin:0 0 16px!important;padding:6px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 14px rgba(24,58,97,.07);scrollbar-width:thin}
.warehouse-page .warehouse-tabs button{position:relative;flex:0 0 auto;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:8px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:#58708f!important;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.warehouse-page .warehouse-tabs button:hover{border-color:#cbdcf0!important;background:#f1f6fc!important;color:#153f74!important;transform:translateY(-1px)}
.warehouse-page .warehouse-tabs button.border-blue-600{border-color:#2563eb!important;background:linear-gradient(135deg,#1d62d9,#3178ef)!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.warehouse-page .warehouse-tabs button.border-blue-600::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:999px;background:currentColor;vertical-align:middle;opacity:.9}
@media (max-width:760px){.warehouse-page .warehouse-tabs{margin-inline:-4px!important;border-radius:10px!important}.warehouse-page .warehouse-tabs button{padding:7px 11px!important;font-size:11px!important}}
.warehouse-page .warehouse-receipt-status{display:inline-flex;align-items:center;margin-top:3px;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;line-height:12px}
.warehouse-page .warehouse-receipt-status.status-OCZEKUJE{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-NA_NACZEPIE{background:#e5efff;color:#1d4ed8}
.warehouse-page .warehouse-receipt-status.status-PRZYJETY,.warehouse-page .warehouse-receipt-status.status-NA_MAGAZYNIE{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}
.warehouse-page .warehouse-receipt-status.status-PENDING{background:#fff3d6;color:#a85e00}
.warehouse-page .warehouse-receipt-status.status-PICKED_UP{background:#dcfce7;color:#15803d}
.warehouse-page .warehouse-receipt-status.status-REQUIRED{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-receipt-status.status-REJECTED{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-receipt-decision{min-width:172px!important;grid-template-columns:44px minmax(0,1fr)!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:44px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:19px!important;padding:2px 3px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision select{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>button{min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-day-group{margin:8px 0;border:1px solid #cfe0f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-page .warehouse-receipt-day-head{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid #dce8f5;background:#edf5fe;color:#173761;font-size:11px;text-transform:capitalize}
.warehouse-page .warehouse-receipt-day-head span{margin-left:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;color:#1d4ed8;font-size:9px;font-weight:800}
.warehouse-page .warehouse-storage-view{display:grid;gap:14px}
.warehouse-page .warehouse-storage-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}
.warehouse-page .warehouse-eyebrow{display:block;color:#3972a8;font-size:9px;font-weight:800;letter-spacing:.08em}
.warehouse-page .warehouse-storage-hero h3,.warehouse-page .warehouse-storage-details h3{margin:2px 0;color:#153561;font-size:19px;font-weight:900}.warehouse-page .warehouse-storage-hero p{margin:0;color:#64748b;font-size:12px}
.warehouse-page .warehouse-storage-total{display:grid;place-items:end}.warehouse-page .warehouse-storage-total b{color:#1756a0;font-size:28px;line-height:28px}.warehouse-page .warehouse-storage-total span{color:#64748b;font-size:10px}
.warehouse-page .warehouse-storage-metrics{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-page .warehouse-storage-filter{display:grid;grid-template-columns:190px 180px minmax(200px,1fr) auto;gap:8px;border:1px solid #deebf7;border-radius:11px;padding:9px;background:#fff}.warehouse-page .warehouse-storage-filter select,.warehouse-page .warehouse-storage-filter input{min-width:0;border:1px solid #d7e2ee;border-radius:7px;padding:7px 9px;font-size:11px}.warehouse-page .warehouse-storage-filter button{border:1px solid #bed4ec;border-radius:7px;padding:7px 10px;color:#1d4f86;font-size:11px;font-weight:700;background:#f5f9fe}
.warehouse-page .warehouse-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.warehouse-page .warehouse-storage-columns{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:5px}.warehouse-page .warehouse-storage-column{min-height:420px;border:1px solid #d7e4f1;border-radius:12px;padding:9px;background:#f1f6fc}.warehouse-page .warehouse-storage-column>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:3px 3px 8px;border-bottom:1px solid #d7e4f1}.warehouse-page .warehouse-storage-column header b{display:block;color:#163965;font-size:12px}.warehouse-page .warehouse-storage-column header small{display:block;margin-top:2px;color:#71849a;font-size:9px}.warehouse-page .warehouse-storage-column header>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:800}
.warehouse-page .warehouse-storage-card{display:block;width:100%;margin-bottom:7px;border:1px solid #dce6ef;border-radius:9px;padding:9px;background:#fff;text-align:left;box-shadow:0 2px 5px rgba(24,58,97,.05);transition:.15s}.warehouse-page .warehouse-storage-card:hover,.warehouse-page .warehouse-storage-card.is-selected{border-color:#3981e8;box-shadow:0 4px 12px rgba(37,99,235,.14)}.warehouse-page .warehouse-storage-card-top{display:flex;align-items:center;gap:5px}.warehouse-page .warehouse-storage-card-top b{color:#153561;font-size:10px}.warehouse-page .warehouse-storage-card strong{display:block;margin-top:6px;color:#233d5d;font-size:11px}.warehouse-page .warehouse-storage-card p{margin:5px 0;color:#64748b;font-size:10px}.warehouse-page .warehouse-storage-card-data{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #edf2f7;padding-top:6px;color:#52677e;font-size:9px}.warehouse-page .warehouse-storage-empty{margin:14px 3px;color:#94a3b8;font-size:10px}
.warehouse-page .warehouse-storage-status{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.warehouse-page .warehouse-storage-status.status-NA_MAGAZYNIE,.warehouse-page .warehouse-storage-status.status-PRZYJETY{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-storage-status.status-NA_NACZEPIE{background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-storage-status.status-GOTOWY{background:#e0f2fe;color:#0369a1}.warehouse-page .warehouse-storage-status.status-OCZEKUJE{background:#fef3c7;color:#92400e}
.warehouse-page .warehouse-storage-details{position:sticky;top:68px;height:max-content;overflow:hidden;border:1px solid #d7e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(24,58,97,.07)}.warehouse-page .warehouse-storage-details>header{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e3edf6;padding:13px}.warehouse-page .warehouse-storage-details>header h3{font-size:14px}.warehouse-page .warehouse-storage-details>header button{color:#94a3b8;font-size:20px}.warehouse-page .warehouse-storage-details-body{padding:13px;font-size:11px}.warehouse-page .warehouse-storage-details-body h4{margin:10px 0;color:#173761;font-size:13px}.warehouse-page .warehouse-storage-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;border-block:1px solid #e6eef6;padding:11px 0}.warehouse-page .warehouse-storage-details dt{color:#718096}.warehouse-page .warehouse-storage-details dd{margin:0;color:#263e5d;font-weight:700}.warehouse-page .warehouse-storage-vehicle{display:grid;gap:4px;margin-top:12px;border-radius:8px;padding:9px;background:#f5f9fe;color:#52677e}.warehouse-page .warehouse-storage-vehicle b{color:#173761}.warehouse-page .warehouse-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.warehouse-page .warehouse-storage-actions button{border:1px solid #b8d2ec;border-radius:7px;padding:7px 5px;color:#165194;font-size:10px;font-weight:800;background:#f6faff}.warehouse-page .warehouse-storage-actions button:first-child{border-color:#2563eb;color:#fff;background:#2563eb}.warehouse-page .warehouse-storage-actions button:disabled{opacity:.45}.warehouse-page .warehouse-storage-no-details{padding:18px;color:#718096;font-size:11px}
@media(max-width:1000px){.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(650px,1fr) 300px}.warehouse-page .warehouse-storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.warehouse-page .warehouse-storage-hero{padding:12px}.warehouse-page .warehouse-storage-filter{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-storage-filter input{grid-column:span 2}.warehouse-page .warehouse-storage-layout{grid-template-columns:minmax(610px,1fr) 280px}}
/* Przyjęcia krajowe — prawa kolumna i kompaktowa decyzja */
.warehouse-page .warehouse-domestic-layout{grid-template-columns:minmax(760px,1fr) 440px!important;align-items:start}
.warehouse-page .warehouse-domestic-layout>.warehouse-load-details{position:sticky;top:82px;grid-column:2;grid-row:1;min-width:0}
.warehouse-page .warehouse-receipt-decision{min-width:144px!important;grid-template-columns:54px 86px!important;justify-content:start!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child{flex-basis:54px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>div:first-child button{min-height:29px!important;padding:3px 4px!important;font-size:8px!important}
.warehouse-page .warehouse-receipt-decision>div:first-child>select{width:86px!important;min-width:86px!important;flex:none!important}
.warehouse-page .warehouse-receipt-decision>button{width:86px!important;min-height:22px!important;padding:2px 4px!important;font-size:8px!important}
@media(max-width:1180px){.warehouse-page .warehouse-domestic-layout{min-width:1215px}}
/* Przyjęcia krajowe — trzydniowy zakres dat */
.warehouse-page .warehouse-date-range-control{display:flex;align-items:center;gap:7px;border:1px solid #cbd9e9;border-radius:9px;background:#f8fbff;padding:4px 5px;color:#173761}
.warehouse-page .warehouse-date-range-control>b{min-width:168px;text-align:center;font-size:11px;white-space:nowrap}
.warehouse-page .warehouse-date-range-control>button{display:grid;min-width:27px;height:27px;place-items:center;border:1px solid #bfdbfe;border-radius:6px;background:#fff;color:#1458aa;font-size:20px;font-weight:800;line-height:1}
.warehouse-page .warehouse-date-range-control>button:hover{background:#eff6ff}
.warehouse-page .warehouse-date-range-control>.warehouse-date-picker-button{width:auto;padding:0 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-date-picker-input{width:126px;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 6px;font-size:10px}
/* Załadunki — prawy panel podglądu i edycji */
.warehouse-page .warehouse-loading-workspace{max-width:1920px;margin:0 auto}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr);min-width:1010px;gap:10px;align-items:center;padding:12px 16px}
.warehouse-page .warehouse-loading-list-head{border-bottom:1px solid #d9e6f3;background:#edf4fc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}
.warehouse-page .warehouse-loading-list-row{width:100%;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;color:#173761}.warehouse-page .warehouse-loading-list-row:hover{background:#f8fbff}.warehouse-page .warehouse-loading-list-row.is-selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.warehouse-page .warehouse-loading-details{position:absolute;right:0;top:0;width:430px;min-height:calc(100vh - 9rem);overflow:hidden;border:1px solid #d9e6f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,41,76,.08)}
.warehouse-page .warehouse-loading-details>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #e5edf6;background:linear-gradient(125deg,#fff,#f0f7ff)}.warehouse-page .warehouse-loading-details h3{font-size:16px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-details header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-loading-pill{border-radius:999px;padding:5px 8px;font-size:10px;white-space:nowrap}
.warehouse-page .warehouse-loading-edit{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf6;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-edit select{margin-left:auto;min-width:170px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 8px;font-size:11px;color:#173761}
.warehouse-page .warehouse-loading-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-loading-tabs button{padding:11px 5px;border-bottom:2px solid transparent;font-size:11px;font-weight:800;color:#64748b}.warehouse-page .warehouse-loading-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8;background:#f8fbff}
.warehouse-page .warehouse-loading-tab-content{padding:14px;max-height:calc(100vh - 270px);overflow:auto}.warehouse-page .warehouse-loading-load-card{margin-bottom:10px;border:1px solid #dce8f5;border-radius:10px;background:#fbfdff;padding:11px}.warehouse-page .warehouse-loading-load-card header{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;background:transparent}.warehouse-page .warehouse-loading-load-card header small{display:block;margin-top:2px;font-size:10px;color:#64748b}.warehouse-page .warehouse-loading-load-card header>span{border-radius:999px;background:#dbeafe;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap}.warehouse-page .warehouse-loading-load-card dl{display:grid;grid-template-columns:112px 1fr;gap:7px 8px;margin-top:11px;font-size:10px}.warehouse-page .warehouse-loading-load-card dt{color:#64748b}.warehouse-page .warehouse-loading-load-card dd{font-weight:650;color:#173761}
.warehouse-page .warehouse-goods-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.warehouse-page .warehouse-goods-photos a{display:block;overflow:hidden;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;aspect-ratio:1}.warehouse-page .warehouse-goods-photos img{width:100%;height:100%;object-fit:cover}.warehouse-page .warehouse-no-files{font-size:11px;color:#64748b}
.warehouse-page .warehouse-cmr-document{display:flex;align-items:center;gap:9px;margin-bottom:8px;border:1px solid #d9e6f3;border-radius:9px;background:#fbfdff;padding:9px;color:#173761}.warehouse-page .warehouse-cmr-document>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#dbeafe;color:#1d4ed8}.warehouse-page .warehouse-cmr-document b,.warehouse-page .warehouse-cmr-document small{display:block;font-size:10px}.warehouse-page .warehouse-cmr-document small{margin-top:2px;color:#64748b}.warehouse-page .warehouse-open-file{margin-left:auto;font-size:10px;font-weight:800;color:#2563eb}
.warehouse-page .warehouse-loading-history{border-left:2px solid #93c5fd;padding-left:12px}.warehouse-page .warehouse-loading-history li{position:relative;margin-bottom:13px;font-size:11px}.warehouse-page .warehouse-loading-history li:before{content:"";position:absolute;left:-17px;top:3px;width:8px;height:8px;border-radius:999px;background:#2563eb}.warehouse-page .warehouse-loading-history b,.warehouse-page .warehouse-loading-history span,.warehouse-page .warehouse-loading-history small{display:block}.warehouse-page .warehouse-loading-history span{margin-top:3px;color:#475569}.warehouse-page .warehouse-loading-history small{margin-top:3px;color:#64748b}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{padding-bottom:0}.warehouse-page .warehouse-loading-details{position:relative;width:100%;min-height:0;margin-top:14px}.warehouse-page .warehouse-loading-tab-content{max-height:none}.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{min-width:850px}.warehouse-page .warehouse-loading-workspace>section{overflow-x:auto}}
/* Załadunki — rozdzielone aktywne i zakończone */
.warehouse-page .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0 0 10px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-view-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:800;color:#58708f}.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f0f7ff}.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#93c5fd;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-loading-view-tabs span{border-radius:999px;background:#e2e8f0;padding:1px 6px;font-size:9px}.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe}
/* Zadania — plan pracy i formularz otwierany wyłącznie przyciskiem */
.warehouse-page .warehouse-tasks-view{max-width:1600px;margin:0 auto}.warehouse-page .warehouse-tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-tasks-hero h3{font-size:18px;font-weight:900;color:#173761}.warehouse-page .warehouse-tasks-hero p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-new-task-button{border-radius:9px;background:#0f766e;padding:10px 15px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 4px 10px rgba(15,118,110,.22)}.warehouse-page .warehouse-new-task-button:hover{background:#0b635f}.warehouse-page .warehouse-tasks-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-tasks-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-task-types{margin-bottom:14px;border:1px solid #d9e6f3;border-radius:13px;background:#fff;padding:14px}.warehouse-page .warehouse-task-types>b{font-size:13px;color:#173761}.warehouse-page .warehouse-task-types>p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.warehouse-page .warehouse-task-types>div>div{display:flex;align-items:flex-start;gap:8px;border:1px solid #e1ebf5;border-radius:9px;background:#fbfdff;padding:9px}.warehouse-page .warehouse-task-types span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e0efff;color:#1d4ed8}.warehouse-page .warehouse-task-types b,.warehouse-page .warehouse-task-types small{display:block}.warehouse-page .warehouse-task-types small{margin-top:2px;font-size:9px;color:#64748b}
.warehouse-page .warehouse-task-modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,30,50,.36)}.warehouse-page .warehouse-task-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(15,30,50,.3)}.warehouse-page .warehouse-task-modal header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e2eaf3}.warehouse-page .warehouse-task-modal h3{font-size:17px;font-weight:900;color:#173761}.warehouse-page .warehouse-task-modal header p{margin-top:3px;font-size:11px;color:#64748b}.warehouse-page .warehouse-task-modal header button{border:0;background:transparent;font-size:23px;color:#64748b}.warehouse-page .warehouse-task-type-choice{display:flex;flex-wrap:wrap;gap:7px;padding:13px 19px;border-bottom:1px solid #e5edf6}.warehouse-page .warehouse-task-type-choice button{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#46627f}.warehouse-page .warehouse-task-type-choice button.is-active{border-color:#60a5fa;background:#eaf3ff;color:#1d4ed8}.warehouse-page .warehouse-task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px 19px}.warehouse-page .warehouse-task-form-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:1/-1}.warehouse-page .warehouse-task-form-grid input,.warehouse-page .warehouse-task-form-grid select,.warehouse-page .warehouse-task-form-grid textarea{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 9px;font-size:12px;font-weight:500;color:#173761;text-transform:none}.warehouse-page .warehouse-task-form-grid textarea{min-height:76px;resize:vertical}.warehouse-page .warehouse-task-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid #e5edf6}.warehouse-page .warehouse-task-modal footer button{border:1px solid #cbd9e9;border-radius:8px;background:#fff;padding:8px 13px;font-size:11px;font-weight:800;color:#173761}.warehouse-page .warehouse-task-modal footer button:last-child{border-color:#0f766e;background:#0f766e;color:#fff}.warehouse-page .warehouse-task-modal footer button:disabled{opacity:.55}
@media(max-width:850px){.warehouse-page .warehouse-tasks-hero{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-tasks-metrics,.warehouse-page .warehouse-task-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-task-form-grid{grid-template-columns:1fr}.warehouse-page .warehouse-task-form-grid label.wide{grid-column:auto}}
/* Kierownik magazynu — pełna widoczność przeciąganego zadania */
.warehouse-page .warehouse-task-dragging{opacity:1!important;filter:none!important}
/* Realizacja — czytelny wybór magazyniera i kolejka pracy */
.warehouse-page .warehouse-realization-view{max-width:1920px;margin:0 auto;color:#173761}.warehouse-page .warehouse-realization-view>.mb-4:first-child>div{border-color:#d9e6f3!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(15,41,76,.05)}.warehouse-page .warehouse-realization-worker{width:100%;cursor:pointer;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.warehouse-page .warehouse-realization-worker:hover{transform:translateY(-2px);border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(37,99,235,.11)!important}.warehouse-page .warehouse-realization-worker.is-selected{border:2px solid #2563eb!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;box-shadow:0 7px 18px rgba(37,99,235,.16)!important}.warehouse-page .warehouse-realization-worker.is-selected:after{content:"Wybrany";display:block;margin-top:8px;border-radius:6px;background:#dbeafe;padding:4px 6px;text-align:center;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-realization-board{padding:3px 2px 10px}.warehouse-page .warehouse-realization-column{border-color:#cfdeee!important;background:linear-gradient(180deg,#edf5ff,#f8fbff)!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-realization-column>div:first-child{padding:3px 2px 8px;border-bottom:1px solid #d7e5f4}.warehouse-page .warehouse-realization-column article{border-color:#d9e6f3!important;box-shadow:0 3px 9px rgba(15,41,76,.055)!important;transition:transform .14s ease,box-shadow .14s ease}.warehouse-page .warehouse-realization-column article:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,41,76,.11)!important}.warehouse-page .warehouse-realization-column article button{min-height:30px}.warehouse-page .warehouse-realization-column article button.bg-blue-600{box-shadow:0 3px 7px rgba(37,99,235,.2)}.warehouse-page .warehouse-realization-column article button.bg-emerald-600{box-shadow:0 3px 7px rgba(5,150,105,.2)}
/* Magazynierzy — edycja rozwijana bez popupu */
.warehouse-page .warehouse-workers-view{max-width:1700px;margin:0 auto;color:#173761}.warehouse-page .warehouse-workers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;border:1px solid #d9e6f4;border-radius:14px;padding:16px 18px;background:linear-gradient(130deg,#fff,#edf6ff);box-shadow:0 5px 16px rgba(24,58,97,.06)}.warehouse-page .warehouse-workers-head h3{font-size:18px;font-weight:900}.warehouse-page .warehouse-workers-head p{margin-top:3px;font-size:12px;color:#64748b}.warehouse-page .warehouse-workers-head>button{border-radius:9px;background:#0f766e;padding:10px 14px;font-size:11px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.warehouse-page .warehouse-workers-metrics>div{border:1px solid #d9e6f3;border-radius:11px;background:#fff}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{display:grid;grid-template-columns:150px 1fr 1fr minmax(180px,1.5fr) auto;gap:9px;align-items:end;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:11px;background:#f5faff;padding:12px}.warehouse-page .warehouse-worker-add-form>b,.warehouse-page .warehouse-worker-edit-row>b{font-size:12px;color:#173761}.warehouse-page .warehouse-worker-add-form label,.warehouse-page .warehouse-worker-edit-row label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-worker-add-form .wide,.warehouse-page .warehouse-worker-edit-row .wide{grid-column:auto}.warehouse-page .warehouse-worker-add-form input,.warehouse-page .warehouse-worker-edit-row input{min-width:0;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:7px 8px;font-size:11px;color:#173761;text-transform:none}.warehouse-page .warehouse-worker-add-form>button,.warehouse-page .warehouse-worker-edit-actions button{border-radius:7px;border:1px solid #0f766e;background:#0f766e;padding:8px 10px;font-size:10px;font-weight:800;color:#fff}.warehouse-page .warehouse-workers-list{overflow:hidden;border:1px solid #d9e6f3;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}.warehouse-page .warehouse-workers-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #e5edf6;background:#fbfdff}.warehouse-page .warehouse-workers-filters input{flex:1;min-width:200px;border:1px solid #cbd9e9;border-radius:7px;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-filters select{border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:8px 10px;font-size:11px}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{display:grid;grid-template-columns:1.1fr .8fr 1.5fr 1.15fr .55fr 1.25fr;gap:10px;align-items:center;padding:10px 14px}.warehouse-page .warehouse-workers-columns{background:#edf5fe;color:#54708d;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-worker-row{border-top:1px solid #edf2f7;font-size:11px}.warehouse-page .warehouse-worker-row:hover{background:#fbfdff}.warehouse-page .warehouse-worker-row small{display:block;margin-top:2px;font-size:9px;color:#94a3b8}.warehouse-page .warehouse-worker-row>span.is-active,.warehouse-page .warehouse-worker-row>span.is-inactive{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.warehouse-page .warehouse-worker-row>span.is-active{background:#dcfce7;color:#15803d}.warehouse-page .warehouse-worker-row>span.is-inactive{background:#fee2e2;color:#b91c1c}.warehouse-page .warehouse-worker-row>div:last-child{display:flex;gap:5px}.warehouse-page .warehouse-worker-row button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;font-size:9px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-worker-edit-row{grid-column:1/-1;margin:0;border-width:1px 0;border-radius:0;background:#f0f7ff}.warehouse-page .warehouse-worker-edit-actions{display:flex;gap:6px;align-items:end}.warehouse-page .warehouse-worker-edit-actions button:first-child{border-color:#cbd9e9;background:#fff;color:#475569}.warehouse-page .warehouse-workers-list footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e5edf6;background:#fbfdff;padding:11px 14px;font-size:10px;color:#64748b}.warehouse-page .warehouse-workers-list footer span{flex:1}.warehouse-page .warehouse-workers-list footer input{width:180px;border:1px solid #cbd9e9;border-radius:6px;padding:6px 8px;font-size:10px}.warehouse-page .warehouse-workers-list footer button{border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#1d4ed8}
@media(max-width:900px){.warehouse-page .warehouse-workers-head{align-items:flex-start;flex-direction:column}.warehouse-page .warehouse-workers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-page .warehouse-worker-add-form,.warehouse-page .warehouse-worker-edit-row{grid-template-columns:1fr 1fr}.warehouse-page .warehouse-workers-columns,.warehouse-page .warehouse-worker-row{min-width:850px}.warehouse-page .warehouse-workers-list{overflow-x:auto}.warehouse-page .warehouse-workers-list footer{min-width:850px}}
/* Historia — jeden wybrany dzień, domyślnie wczoraj */
.warehouse-page .warehouse-history-date{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.warehouse-page .warehouse-history-date input{min-width:138px;border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 9px;font-size:11px;font-weight:600;color:#173761;text-transform:none}
/* Przyjęcia krajowe — kliknięcie karty nie zaznacza ładunku */
.warehouse-page .warehouse-receipt-row{position:relative;margin-top:7px!important;border-radius:10px!important;background:linear-gradient(100deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 3px 10px rgba(15,41,76,.045)!important}.warehouse-page .warehouse-receipt-row:hover{transform:none!important;border-color:#9fc5ee!important;box-shadow:0 5px 14px rgba(15,65,120,.085)!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{cursor:pointer;accent-color:#2563eb}.warehouse-page .warehouse-receipt-row>div:nth-child(2) b{color:#0f4c81!important}.warehouse-page .warehouse-receipt-row>div:nth-child(3){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(5){border-left:1px solid #e5edf6;padding-left:7px}.warehouse-page .warehouse-receipt-row>div:nth-child(6){border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-row>div:nth-child(7){border-left:1px solid #e5edf6;padding-left:10px}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){border-color:#14b8a6!important;border-left-color:#0f766e!important;background:linear-gradient(90deg,#ecfdf5,#fff)!important;box-shadow:0 7px 17px rgba(13,148,136,.14)!important}
.warehouse-page .warehouse-receipt-day-group{margin:18px 0!important;border:2px solid #93c5fd!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 22%)!important;box-shadow:0 8px 20px rgba(37,99,235,.07)!important;overflow:visible!important}.warehouse-page .warehouse-receipt-day-head{position:sticky;top:48px;z-index:7;min-height:36px;margin:-2px -2px 8px;border:2px solid #2563eb!important;border-radius:11px 11px 0 0!important;background:linear-gradient(90deg,#1d5fcc,#3b82f6)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.19)!important}.warehouse-page .warehouse-receipt-day-head b:before{content:"Kolejny dzień";margin-right:9px;border-radius:999px;background:rgba(255,255,255,.2);padding:3px 6px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.warehouse-page .warehouse-receipt-day-head span{background:#fff!important;color:#1d4ed8!important}.warehouse-page .warehouse-decision-trailer-group{margin:9px 8px!important}.warehouse-page .warehouse-decision-trailer-loads{padding:7px 9px 10px!important}.warehouse-page .warehouse-decision-trailer-head{border-bottom:1px solid #dbeafe!important}
/* Zadania — wybór rodzaju z listy */
.warehouse-page .warehouse-task-type-select{display:grid;gap:5px;margin:14px 19px 0;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-task-type-select select{border:1px solid #93c5fd;border-radius:8px;background:#f8fbff;padding:9px 10px;font-size:12px;font-weight:600;color:#173761;text-transform:none}
/* Własny obraz przeciągania: nieprzezroczysty kafelek */
.warehouse-page .warehouse-task-dragging{opacity:1!important;visibility:visible!important;filter:none!important;background:#fff!important;color:#173761!important}
/* Przyjęcia krajowe — filtr przewoźników */
.warehouse-page .warehouse-domestic-receipts select option[value="OWN"]{color:#0f766e}.warehouse-page .warehouse-domestic-receipts select option[value="SUBCONTRACTOR"]{color:#7c3aed}
/* Przyjęcia krajowe — szczegóły bez zaznaczania, automatyczna naczepa */
.warehouse-page .warehouse-receipt-row{cursor:pointer}.warehouse-page .warehouse-receipt-row>input[type="checkbox"],.warehouse-page .warehouse-receipt-decision{cursor:default}.warehouse-page .warehouse-fixed-trailer{display:flex;align-items:center;min-width:86px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;padding:3px 6px;font-size:9px;font-weight:800;color:#1d4ed8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:end}.warehouse-page .warehouse-receipt-decision{justify-self:end!important}

/* Ręczny termin przyjazdu: opis i wybór godziny są rozdzielone na dwa czytelne wiersze. */
.warehouse-page .warehouse-manual-arrival-form{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px;border-radius:8px;background:#eff6ff;padding:8px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form label{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:8px;font-weight:700;line-height:1.2}
.warehouse-page .warehouse-manual-arrival-form input{width:100%;border:1px solid #bfdbfe;border-radius:6px;background:#fff;padding:5px 7px;color:#173761}
.warehouse-page .warehouse-manual-arrival-form button{justify-self:end;border-radius:6px;background:#2563eb;padding:5px 12px;font-weight:700;color:#fff}

/* Załadunki — wprowadzanie zestawu międzynarodowego przez spedytora. */
.warehouse-page .warehouse-loading-create-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,35,64,.32);display:flex;justify-content:flex-end}
.warehouse-page .warehouse-loading-create-panel{display:flex;height:100%;width:min(760px,100%);flex-direction:column;background:#fff;box-shadow:-12px 0 36px rgba(15,41,76,.2)}
.warehouse-page .warehouse-loading-create-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #d9e6f3;background:linear-gradient(130deg,#fff,#edf6ff)}
.warehouse-page .warehouse-loading-create-panel>header h3{font-size:20px;font-weight:900;color:#173761}.warehouse-page .warehouse-loading-create-panel>header p{margin-top:4px;font-size:12px;color:#58708f}.warehouse-page .warehouse-loading-create-panel>header button{font-size:25px;color:#64748b}
.warehouse-page .warehouse-loading-create-content{flex:1;overflow:auto;padding:20px 24px}.warehouse-page .warehouse-loading-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-page .warehouse-loading-create-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68}.warehouse-page .warehouse-loading-create-form label.wide{grid-column:1/-1}.warehouse-page .warehouse-loading-create-form input,.warehouse-page .warehouse-loading-create-form select,.warehouse-page .warehouse-loading-create-form textarea{width:100%;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:9px;font-size:12px;font-weight:500;color:#173761}.warehouse-page .warehouse-loading-create-form textarea{min-height:72px;resize:vertical}
.warehouse-page .warehouse-domestic-load-picker{margin-top:18px;overflow:hidden;border:1px solid #c7ddf4;border-radius:12px}.warehouse-page .warehouse-domestic-load-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf6ff;color:#173761}.warehouse-page .warehouse-domestic-load-picker header b{display:block;font-size:13px}.warehouse-page .warehouse-domestic-load-picker header small{display:block;margin-top:3px;font-size:10px;color:#58708f}.warehouse-page .warehouse-domestic-load-picker>header>span{border-radius:999px;background:#dbeafe;padding:4px 8px;font-size:10px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker-list{max-height:270px;overflow:auto}.warehouse-page .warehouse-domestic-load-picker-list label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;border-top:1px solid #edf2f7;padding:10px 14px;cursor:pointer;font-size:11px}.warehouse-page .warehouse-domestic-load-picker-list label:hover,.warehouse-page .warehouse-domestic-load-picker-list label.is-selected{background:#f0f9ff}.warehouse-page .warehouse-domestic-load-picker-list b,.warehouse-page .warehouse-domestic-load-picker-list span{display:block}.warehouse-page .warehouse-domestic-load-picker-list span{margin-top:3px;color:#64748b}.warehouse-page .warehouse-domestic-load-picker-list strong{font-size:10px;color:#1d4ed8}.warehouse-page .warehouse-domestic-load-picker>p{padding:14px}
.warehouse-page .warehouse-loading-create-panel>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d9e6f3;padding:16px 24px}.warehouse-page .warehouse-loading-create-panel>footer button{border-radius:8px;border:1px solid #bfdbfe;padding:9px 14px;font-size:12px;font-weight:800;color:#173761}.warehouse-page .warehouse-loading-create-panel>footer button:last-child{border-color:#2563eb;background:#2563eb;color:#fff}.warehouse-page .warehouse-loading-create-panel>footer button:disabled{opacity:.45}
@media(max-width:640px){.warehouse-page .warehouse-loading-create-form{grid-template-columns:1fr}.warehouse-page .warehouse-loading-create-panel>header,.warehouse-page .warehouse-loading-create-content,.warehouse-page .warehouse-loading-create-panel>footer{padding-left:16px;padding-right:16px}}
.warehouse-page .warehouse-manual-arrival-form label{grid-template-columns:minmax(0,1fr) 82px 82px}.warehouse-page .warehouse-map-arrival-detail{grid-column:1/-1;display:block;border-radius:8px;background:#eff6ff;padding:8px;font-weight:700;color:#173761}
.warehouse-page .warehouse-label-print-button{width:100%;margin-top:8px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;padding:7px;color:#1d4ed8;font-size:10px;font-weight:800}.warehouse-page .warehouse-label-print-button:hover{background:#dbeafe}

/* Załadunki: stały układ listy i szczegółów oraz widok tygodnia. */
.warehouse-page .warehouse-loading-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 430px;gap:14px;align-items:start;padding-right:0!important}
.warehouse-page .warehouse-loading-workspace>div:not(.warehouse-loading-details),.warehouse-page .warehouse-loading-workspace>nav,.warehouse-page .warehouse-loading-workspace>section{grid-column:1}
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:sticky;top:70px;right:auto;width:auto;min-height:0;grid-column:2;grid-row:1 / span 5;box-shadow:0 10px 26px rgba(21,51,92,.10)}
.warehouse-loading-layout-switch{display:flex;gap:5px;justify-content:flex-end;margin:-4px 0 2px}
.warehouse-loading-layout-switch button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;font-size:11px;font-weight:700;padding:6px 12px}
.warehouse-loading-layout-switch button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.warehouse-loading-week{display:grid;grid-template-columns:repeat(7,minmax(128px,1fr));gap:8px;overflow:auto;padding:10px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}
.warehouse-loading-week article{min-height:178px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;padding:7px}
.warehouse-loading-week header{border-bottom:1px solid #e7eef8;color:#173761;font-size:10px;font-weight:800;padding:2px 1px 7px;text-transform:capitalize}
.warehouse-loading-week button{display:block;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px;text-align:left;color:#173761}
.warehouse-loading-week button.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-loading-week button b,.warehouse-loading-week button span,.warehouse-loading-week button small{display:block}.warehouse-loading-week button b{font-size:10px}.warehouse-loading-week button span{font-size:9px;margin-top:3px}.warehouse-loading-week button small{font-size:9px;color:#64748b;margin-top:3px}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace{display:block!important}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{position:relative;top:auto;width:auto;margin-top:14px}.warehouse-loading-week{grid-template-columns:repeat(7,minmax(155px,1fr))}}

/* Szczegóły załadunku zaczynają się przy tabeli / widoku tygodnia. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:4 / span 1}

/* Ikony głównych zakładek magazynu. */
.warehouse-page .warehouse-tabs button{display:inline-flex;align-items:center;gap:7px}
.warehouse-page .warehouse-tab-icon{width:17px;height:17px;flex:0 0 auto}
.warehouse-page .warehouse-tabs button[class*="border-blue"] .warehouse-tab-icon{filter:saturate(1.2) drop-shadow(0 1px 1px rgba(37,99,235,.14))}
.warehouse-page .warehouse-task-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* Plan dzienny: ładunki z nocki są kontynuacją poprzedniego dnia. */
.planning-module-daily .route-point-historical{position:relative;opacity:.62;filter:saturate(.72)}
.planning-module-daily .route-point-historical>div:first-child{border-color:#93c5fd!important;background:#eff6ff!important;color:#285a91!important}
.planning-module-daily .route-point-historical>div:first-child>b{display:none}
.planning-module-daily .route-point-historical .daily-load-footer{background:#dbeafe;border-radius:0 0 .375rem .375rem}
.planning-module-daily .route-point-historical .daily-load-status{color:#285a91}

.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}
/* Aktywna zakładka korzysta z własnej ikony, bez dekoracyjnej kropki. */
.warehouse-page .warehouse-tabs button.border-blue-600::before{display:none!important}
/* Na aktywnej niebieskiej zakładce ikona jest biała i wyraźna. */
.warehouse-page .warehouse-tabs button.border-blue-600 .warehouse-tab-icon{filter:brightness(0) invert(1)!important}

/* Załadunki: jeden poziomy pasek podsumowań i działania spedytora. */
.warehouse-page .warehouse-loadings-summary-bar{grid-column:1 / -1;display:flex;align-items:stretch;gap:14px;width:100%;margin-bottom:14px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(23,55,97,.06)}
.warehouse-page .warehouse-loadings-summary-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;min-width:0}
.warehouse-page .warehouse-loadings-summary-items>div{display:flex;align-items:center;gap:9px;padding:4px 15px;border-right:1px solid #e2eaf5}.warehouse-page .warehouse-loadings-summary-items>div:last-child{border-right:0}
.warehouse-page .warehouse-loadings-summary-items span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:16px}.warehouse-page .warehouse-loadings-summary-items span.green{background:#d1fae5;color:#059669}.warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.amber{background:#fef3c7;color:#d97706}.warehouse-page .warehouse-loadings-summary-items span.red{background:#ffe4e6;color:#e11d48}
.warehouse-page .warehouse-loadings-summary-items small{display:block;color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-loadings-summary-items b{display:block;color:#173761;font-size:20px;line-height:21px}
.warehouse-page .warehouse-add-loading{align-self:center;white-space:nowrap;border-radius:9px;background:#2563eb;padding:10px 15px;color:#fff;font-size:12px;font-weight:800;box-shadow:0 3px 8px rgba(37,99,235,.18)}.warehouse-page .warehouse-add-loading:hover{background:#1d4ed8}
.warehouse-page .warehouse-loading-edit{gap:8px}.warehouse-page .warehouse-delete-loading{margin-left:auto;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;padding:7px 9px;font-size:10px;font-weight:800}.warehouse-page .warehouse-delete-loading:hover{background:#fff1f2}.warehouse-page .warehouse-delete-loading:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.warehouse-page .warehouse-loadings-summary-bar{display:block}.warehouse-page .warehouse-loadings-summary-items{grid-template-columns:repeat(4,minmax(118px,1fr));overflow-x:auto}.warehouse-page .warehouse-add-loading{width:100%;margin-top:10px}.warehouse-page .warehouse-loadings-summary-items>div{padding:5px 10px}}

/* Jeden pasek sterowania załadunkami na pełną szerokość. */
.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 12px;padding:5px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(15,41,76,.04)}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs{display:flex;gap:7px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{display:flex;justify-content:flex-end;margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:3 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-toolbar{display:flex}}
.warehouse-page .warehouse-night-receipt{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;padding:3px 7px;color:#6d28d9;font-size:10px;font-weight:800}

/* Załadunki: wybór wielu kierunków z zamykaniem listy po kliknięciu poza nią. */
.warehouse-page .warehouse-loading-direction-filter{position:relative}.warehouse-page .warehouse-loading-direction-filter>button{border:1px solid #cbdcf3;border-radius:7px;background:#fff;color:#244a79;padding:6px 11px;font-size:11px;font-weight:800}.warehouse-page .warehouse-loading-direction-filter>button.is-filtered{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-direction-menu{position:absolute;z-index:50;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-height:280px;overflow:auto;border:1px solid #cbdcf3;border-radius:9px;background:#fff;padding:6px;box-shadow:0 12px 28px rgba(23,55,97,.18)}.warehouse-page .warehouse-loading-direction-menu label{display:flex;align-items:center;gap:8px;border-radius:6px;padding:7px 8px;color:#173761;font-size:11px;font-weight:700}.warehouse-page .warehouse-loading-direction-menu label:hover{background:#eff6ff}.warehouse-page .warehouse-loading-direction-menu input{accent-color:#2563eb}.warehouse-page .warehouse-loading-direction-menu button{margin:4px 2px 1px;border-top:1px solid #e2eaf5;color:#64748b;padding:7px 4px;text-align:left;font-size:10px;font-weight:800}
/* Ładunek z nocki jest oznaczony bezpośrednio na kafelku kontynuacji. */
.planning-module-daily .route-point-historical::before{content:none!important;display:none!important}.planning-module-daily .daily-load-night-badge{display:flex;align-items:center;justify-content:center;border-left:1px solid #c4d8f3;background:#dbeafe;color:#1d4ed8;font-size:8px;font-weight:800;letter-spacing:.025em}

/* Wszystkie sterowania załadunkami mieszczą się w jednym górnym pasku. */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-view-tabs{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-layout-switch{margin:0}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{grid-row:2 / span 1}
@media(max-width:1279px){.warehouse-page .warehouse-loadings-summary-bar{flex-wrap:wrap}.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:3;width:100%;border-top:1px solid #e2eaf5;padding-top:8px}.warehouse-page .warehouse-loadings-summary-items{min-width:540px}.warehouse-page .warehouse-loading-workspace>.warehouse-loading-details{margin-top:14px}}

/* Kierownik magazynu — strefy upuszczania jak w planie dziennym. */
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}.warehouse-page .warehouse-manager-drop-target article{pointer-events:none}.warehouse-page .warehouse-task-dragging{cursor:grabbing!important;opacity:1!important;transform:scale(1.025)!important;box-shadow:0 16px 34px rgba(15,65,120,.28)!important}

/* Pasek załadunków obejmuje także szerokość panelu podglądu. */
.warehouse-page .warehouse-loading-workspace > .warehouse-loadings-summary-bar{grid-column:1 / -1!important;width:100%!important;min-width:0;align-self:stretch}


/* Zadania są planowane na konkretny dzień, a kierownik przełącza pełny tydzień. */
.warehouse-page .warehouse-task-day-selector{display:flex;align-items:center;gap:9px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.04)}.warehouse-page .warehouse-task-day-selector>div{flex:1}.warehouse-page .warehouse-task-day-selector small,.warehouse-page .warehouse-task-day-selector b{display:block}.warehouse-page .warehouse-task-day-selector small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-task-day-selector b{text-transform:capitalize;font-size:13px;color:#173761}.warehouse-page .warehouse-task-day-selector button{border:1px solid #bfdbfe;border-radius:7px;background:#f8fbff;padding:7px 10px;font-size:11px;font-weight:800;color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:12px}.warehouse-page .warehouse-manager-weekdays button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px;border:1px solid #d9e6f3;border-radius:10px;background:#fff;padding:7px 9px;text-align:left;color:#173761}.warehouse-page .warehouse-manager-weekdays small{font-size:9px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays b{font-size:15px}.warehouse-page .warehouse-manager-weekdays span{grid-row:1 / span 2;grid-column:2;border-radius:999px;background:#eaf3ff;padding:2px 6px;font-size:10px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays button.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 4px 10px rgba(37,99,235,.13)}.warehouse-page .warehouse-manager-weekdays button.is-active small,.warehouse-page .warehouse-manager-weekdays button.is-active b{color:#1d4ed8}.warehouse-page .warehouse-manager-weekdays button.is-active span{background:#2563eb;color:#fff}@media(max-width:700px){.warehouse-page .warehouse-manager-weekdays{gap:4px}.warehouse-page .warehouse-manager-weekdays button{padding:6px}.warehouse-page .warehouse-manager-weekdays small{font-size:7px}.warehouse-page .warehouse-manager-weekdays b{font-size:12px}}

/* Przyjęcia krajowe — kompaktowe liczniki w pasku filtrów. */
.warehouse-page .warehouse-domestic-compact-stats{display:flex;align-items:stretch;gap:5px;margin-left:auto}.warehouse-page .warehouse-domestic-compact-stats span{display:flex;align-items:center;gap:5px;border:1px solid #dbe6f4;border-radius:7px;background:#f8fbff;padding:4px 7px;color:#36536f;white-space:nowrap}.warehouse-page .warehouse-domestic-compact-stats small{font-size:8px;font-weight:800;text-transform:uppercase}.warehouse-page .warehouse-domestic-compact-stats b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px}.warehouse-page .warehouse-domestic-compact-stats span.amber b{background:#fef3c7;color:#b45309}@media(max-width:1250px){.warehouse-page .warehouse-domestic-compact-stats{order:5;width:100%;margin-left:0}}

/* Stabilne przeciąganie kierownika: bez zmiany drzewa React podczas aktywnego drag. */
.warehouse-page .warehouse-manager-drop-target article{pointer-events:auto}

/* Przyjęcia krajowe — firma i adres przed numerem TMS. */
.warehouse-page .warehouse-receipt-company b{font-size:11px;color:#173761}.warehouse-page .warehouse-receipt-company small{font-size:9px;line-height:13px}.warehouse-page .warehouse-receipt-tms{border-left:1px solid #e5edf6;padding-left:9px}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{display:inline-flex;margin-top:2px}

/* Przyjęcia krajowe — dopracowany kafelek pojedynczego ładunku. */
.warehouse-page .warehouse-receipt-row{min-height:72px!important;gap:8px!important;padding:8px 10px!important;border-left-width:4px!important}.warehouse-page .warehouse-receipt-row>input[type="checkbox"]{width:15px;height:15px;border-radius:4px}.warehouse-page .warehouse-receipt-company{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.warehouse-page .warehouse-receipt-company b{font-size:12px!important;font-weight:850!important;letter-spacing:-.01em}.warehouse-page .warehouse-receipt-company small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b!important;font-size:9px!important}.warehouse-page .warehouse-receipt-tms{align-self:stretch;display:flex;flex-wrap:wrap;align-content:center;gap:2px 5px;padding-left:11px!important}.warehouse-page .warehouse-receipt-tms>b{width:100%;font-size:11px!important;color:#0f4c81!important}.warehouse-page .warehouse-receipt-tms small{font-size:8px!important;color:#94a3b8!important}.warehouse-page .warehouse-receipt-tms .warehouse-receipt-status{margin:0!important;padding:2px 6px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4){align-self:stretch;display:grid!important;align-content:center;gap:3px!important;padding:4px 0}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span{border-left:0!important;border-radius:6px;background:#f3f7fc;padding:3px 2px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span b{font-size:10px;color:#173761}.warehouse-page .warehouse-receipt-row>div:nth-child(4)>span small{font-size:8px;color:#64748b}.warehouse-page .warehouse-receipt-row>div:nth-child(5){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:10px!important}.warehouse-page .warehouse-receipt-row>div:nth-child(6){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:11px!important;background:linear-gradient(90deg,transparent,#f8fbff)}.warehouse-page .warehouse-receipt-row>div:nth-child(7){align-self:center;font-size:11px!important;font-weight:850!important;color:#1d4ed8!important}.warehouse-page .warehouse-receipt-decision{align-self:stretch!important;display:grid!important;align-content:center;border:1px solid #d6e5f7;border-radius:8px;background:#f8fbff;padding:4px!important;box-shadow:inset 0 1px #fff}.warehouse-page .warehouse-receipt-decision>button{border-radius:5px!important;box-shadow:0 2px 5px rgba(37,99,235,.16)}.warehouse-page .warehouse-receipt-row:hover{border-color:#60a5fa!important;background:linear-gradient(90deg,#fff,#f6faff)!important;box-shadow:0 7px 18px rgba(30,64,175,.11)!important}.warehouse-page .warehouse-receipt-row:has(input[type="checkbox"]:checked){background:linear-gradient(90deg,#ecfdf5,#f8fffd)!important}

/* Przyjęcia krajowe — krótsza odległość od kierunku do decyzji. */
.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px 1.25fr 1.35fr .65fr 1.45fr 1.1fr .45fr .9fr!important}.warehouse-page .warehouse-receipt-row>div:last-child{justify-self:start!important}.warehouse-page .warehouse-receipt-decision{min-width:126px}

/* Załadunki — wyszukiwane pola kierowcy i pojazdu. */
.warehouse-page .warehouse-search-picker{position:relative;display:grid;gap:5px;font-size:10px;font-weight:800;color:#46627f;text-transform:uppercase}.warehouse-page .warehouse-search-picker-box{position:relative}.warehouse-page .warehouse-search-picker input{width:100%;border:1px solid #b7d3fb;border-radius:7px;background:#fff;padding:8px 28px 8px 9px;font-size:12px;font-weight:600;color:#173761;text-transform:none;outline:0}.warehouse-page .warehouse-search-picker input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.warehouse-page .warehouse-search-picker-box>button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#64748b;font-size:16px;line-height:16px}.warehouse-page .warehouse-search-picker-results{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;overflow:hidden;border:1px solid #bfdbfe;border-radius:8px;background:#fff;box-shadow:0 12px 24px rgba(15,41,76,.17);text-transform:none}.warehouse-page .warehouse-search-picker-results button,.warehouse-page .warehouse-search-picker-results span{display:block;width:100%;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:8px 9px;text-align:left;font-size:11px;font-weight:650;color:#173761}.warehouse-page .warehouse-search-picker-results button:hover{background:#eff6ff;color:#1d4ed8}.warehouse-page .warehouse-search-picker-results span{color:#94a3b8}

/* Załadunek — screeny dodawane wraz z informacją dla zespołu. */
.warehouse-page .warehouse-loading-screens{display:grid;gap:6px}.warehouse-page .warehouse-loading-screens-drop{position:relative;display:grid;min-height:74px;place-content:center;border:1px dashed #78aaf3;border-radius:9px;background:#f7fbff;text-align:center;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop:hover{border-color:#2563eb;background:#eff6ff}.warehouse-page .warehouse-loading-screens-drop input{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}.warehouse-page .warehouse-loading-screens-drop strong{color:#1d4ed8;font-size:12px}.warehouse-page .warehouse-loading-screens-drop small{margin-top:4px;color:#64748b;font-size:10px;font-weight:600}.warehouse-page .warehouse-loading-screens-list{display:flex;flex-wrap:wrap;gap:6px}.warehouse-page .warehouse-loading-screens-list>span{display:flex;align-items:center;gap:5px;max-width:240px;border:1px solid #cfe0f5;border-radius:999px;background:#fff;padding:4px 5px 4px 9px;color:#36536f;font-size:10px;font-weight:700}.warehouse-page .warehouse-loading-screens-list>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-page .warehouse-loading-screens-list button{display:grid;flex:0 0 auto;width:17px;height:17px;place-items:center;border:0;border-radius:50%;background:#e8f1ff;color:#1d4ed8;font-size:14px;line-height:1}.warehouse-page .warehouse-loading-screens-list button:hover{background:#fee2e2;color:#dc2626}

.warehouse-page .warehouse-trailer-loads-menu{position:relative;z-index:20;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800}.warehouse-page .warehouse-trailer-loads-menu summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:8px 10px}.warehouse-page .warehouse-trailer-loads-menu summary::-webkit-details-marker{display:none}.warehouse-page .warehouse-trailer-loads-menu summary b{margin-left:auto;border-radius:999px;background:#dbeafe;padding:1px 6px}.warehouse-page .warehouse-trailer-loads-menu>div{position:absolute;right:0;top:calc(100% + 5px);width:400px;max-height:340px;overflow:auto;border:1px solid #bfdbfe;border-radius:9px;background:#fff;box-shadow:0 14px 28px rgba(15,41,76,.2)}.warehouse-page .warehouse-trailer-loads-menu p{margin:0;border-bottom:1px solid #edf3fa;padding:8px 10px;color:#3b5874;font-size:10px;line-height:1.4}.warehouse-page .warehouse-trailer-loads-menu p:last-child{border-bottom:0}.warehouse-page .warehouse-trailer-loads-menu p b{color:#173761}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

/* R1 warehouse fixes */
.warehouse-page .warehouse-tabs button{flex:0 0 154px!important;width:154px!important;min-width:154px!important;justify-content:center!important;white-space:nowrap!important}
.warehouse-page .warehouse-trailer-loads-column{min-width:0}
.warehouse-page .warehouse-trailer-date-range label{display:grid;gap:3px;font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}
.warehouse-page .warehouse-trailer-date-range input{width:100%;min-width:0;border:1px solid #cbdcf0;border-radius:7px;background:#fff;padding:6px 7px;font-size:10px;color:#173761}
.warehouse-page .warehouse-trailer-range-reset{margin-top:6px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;padding:5px 8px;font-size:9px;font-weight:800;color:#1d4ed8}
.warehouse-page .warehouse-trailer-loads-list{display:grid;gap:5px;margin-top:8px;max-height:330px;overflow:auto;padding-right:2px}
.warehouse-page .warehouse-trailer-loads-list>button{display:grid;width:100%;gap:2px;border:1px solid #dbe7f5;border-left:3px solid #3b82f6;border-radius:8px;background:#fff;padding:7px 8px;text-align:left;font-size:10px;color:#45627e}
.warehouse-page .warehouse-trailer-loads-list>button:hover,.warehouse-page .warehouse-trailer-loads-list>button.is-selected{border-color:#93c5fd;background:#eff6ff}
.warehouse-page .warehouse-trailer-loads-list>button>div{display:flex;align-items:center;gap:6px}.warehouse-page .warehouse-trailer-loads-list>button>div b{color:#173761}.warehouse-page .warehouse-trailer-loads-list>button>div span{margin-left:auto;font-weight:800;color:#1d4ed8}
.warehouse-page .warehouse-trailer-loads-list>button small{color:#64748b}.warehouse-page .warehouse-trailer-loads-empty{margin-top:8px;border:1px dashed #cbd5e1;border-radius:8px;padding:10px;text-align:center;font-size:10px;color:#64748b}

/* R1 warehouse uniform width + fixed six-column notification sounds follow-up */
.warehouse-page{--warehouse-content-max:1920px}
.warehouse-page>.warehouse-tabs,
.warehouse-page>.warehouse-domestic-receipts,
.warehouse-page>.warehouse-storage-view,
.warehouse-page>.warehouse-loading-workspace,
.warehouse-page>.warehouse-tasks-view,
.warehouse-page>.warehouse-manager-board,
.warehouse-page>.warehouse-realization-view,
.warehouse-page>.warehouse-workers-view,
.warehouse-page>.warehouse-settings,
.warehouse-page>.warehouse-history{width:100%!important;max-width:var(--warehouse-content-max)!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.warehouse-page .warehouse-tasks-view,
.warehouse-page .warehouse-workers-view,
.warehouse-page .warehouse-settings{max-width:var(--warehouse-content-max)!important}

/* R1 — Zadania: zwarty widok listy, bez kolumn statusów */
.warehouse-page .warehouse-tasks-v2{max-width:1920px;margin:0 auto;color:#173761}
.warehouse-page .warehouse-task-commandbar{display:flex;align-items:center;gap:10px;margin-bottom:12px;border:1px solid #d9e6f3;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 3px 10px rgba(15,41,76,.045)}
.warehouse-page .warehouse-task-day-compact{display:flex;align-items:center;gap:6px;min-width:max-content}
.warehouse-page .warehouse-task-day-compact>button{height:30px;min-width:30px;border:1px solid #cbd9e9;border-radius:7px;background:#fff;padding:0 8px;font-size:12px;font-weight:800;color:#315779}
.warehouse-page .warehouse-task-day-compact>button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-task-day-compact>div{display:grid;gap:1px;min-width:165px;padding:0 5px}
.warehouse-page .warehouse-task-day-compact small{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8}
.warehouse-page .warehouse-task-day-compact b{font-size:11px;color:#173761}
.warehouse-page .warehouse-task-day-compact .warehouse-task-today{padding:0 10px;font-size:10px}
.warehouse-page .warehouse-task-inline-metrics{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:6px;flex:1;min-width:0}
.warehouse-page .warehouse-task-inline-metrics>span{display:flex;align-items:center;justify-content:space-between;gap:8px;height:34px;border:1px solid #e2eaf3;border-radius:8px;background:#f8fbff;padding:0 9px}
.warehouse-page .warehouse-task-inline-metrics small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;font-weight:800;text-transform:uppercase;color:#64748b}
.warehouse-page .warehouse-task-inline-metrics b{font-size:14px;color:#173761}
.warehouse-page .warehouse-task-inline-metrics .amber{border-color:#fde68a;background:#fffbeb}.warehouse-page .warehouse-task-inline-metrics .amber b{color:#b45309}
.warehouse-page .warehouse-task-inline-metrics .green{border-color:#bbf7d0;background:#f0fdf4}.warehouse-page .warehouse-task-inline-metrics .green b{color:#15803d}
.warehouse-page .warehouse-task-commandbar>.warehouse-new-task-button{height:34px;min-width:max-content;padding:0 13px;border-radius:8px;box-shadow:none}
.warehouse-page .warehouse-task-list{overflow-x:auto;border:1px solid #d9e6f3;border-radius:12px;background:#fff;box-shadow:0 4px 13px rgba(15,41,76,.045)}
.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{display:grid;grid-template-columns:72px minmax(170px,1.05fr) minmax(230px,1.55fr) minmax(110px,.65fr) minmax(170px,1fr) minmax(125px,.75fr) minmax(170px,1fr) 72px;gap:10px;align-items:center;min-width:1210px;padding:9px 12px}
.warehouse-page .warehouse-task-list-head{border-bottom:1px solid #d9e6f3;background:#edf5fe;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.03em;color:#58708f}
.warehouse-page .warehouse-task-list-row{border-bottom:1px solid #edf2f7;font-size:11px;color:#334e68}
.warehouse-page .warehouse-task-list-row:last-of-type{border-bottom:0}.warehouse-page .warehouse-task-list-row:hover{background:#fbfdff}
.warehouse-page .warehouse-task-list-row.is-done{background:#f7fcf8;opacity:.74}.warehouse-page .warehouse-task-list-row.is-cancelled{background:#fafafa;opacity:.5}
.warehouse-page .warehouse-task-time{color:#173761}.warehouse-page .warehouse-task-name{min-width:0}.warehouse-page .warehouse-task-name>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#173761}.warehouse-page .warehouse-task-name small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#94a3b8}
.warehouse-page .warehouse-task-description{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;color:#475569}
.warehouse-page .warehouse-task-list-row select{min-width:0;width:100%;border:1px solid #cbd9e9;border-radius:6px;background:#fff;padding:5px 7px;font-size:10px;color:#173761}
.warehouse-page .warehouse-task-priority{width:max-content;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:900;color:#94a3b8}.warehouse-page .warehouse-task-priority.urgent{background:#fee2e2;color:#b91c1c}
.warehouse-page .warehouse-task-empty{padding:28px;text-align:center;font-size:11px;color:#94a3b8}
.warehouse-page .warehouse-task-modal-v2{width:min(720px,100%)}
@media(max-width:1200px){.warehouse-page .warehouse-task-commandbar{align-items:stretch;flex-wrap:wrap}.warehouse-page .warehouse-task-inline-metrics{order:3;flex-basis:100%}.warehouse-page .warehouse-task-commandbar>.warehouse-new-task-button{margin-left:auto}}
@media(max-width:720px){.warehouse-page .warehouse-task-inline-metrics{grid-template-columns:repeat(2,minmax(90px,1fr))}.warehouse-page .warehouse-task-day-compact{width:100%}.warehouse-page .warehouse-task-day-compact>div{flex:1}.warehouse-page .warehouse-task-commandbar>.warehouse-new-task-button{width:100%}}

/* R1 — Załadunki: bez ręcznej obsługi statusu, tylko edycja i X */
.warehouse-page .warehouse-loadings-summary-items{display:none!important}
.warehouse-page .warehouse-loadings-summary-bar{justify-content:space-between}
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{order:initial!important;width:auto!important;flex:1;border-top:0!important;padding-top:0!important}
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{grid-template-columns:.8fr 1fr 1fr 1.15fr 1.5fr .55fr}
.warehouse-page .warehouse-loading-list-head>span:last-child,.warehouse-page .warehouse-loading-list-row>span:last-child{display:none}
.warehouse-page .warehouse-loading-actions-only{justify-content:flex-end;gap:7px}
.warehouse-page .warehouse-loading-actions-only button{border:1px solid #bfdbfe;border-radius:7px;background:#fff;padding:6px 9px;font-size:10px;font-weight:900;color:#1d4ed8}
.warehouse-page .warehouse-loading-actions-only button:disabled{cursor:not-allowed;opacity:.4}
.warehouse-page .warehouse-loading-actions-only .warehouse-delete-loading-x{display:grid;width:30px;height:30px;place-items:center;border-color:#fecaca;padding:0;font-size:18px;line-height:1;color:#dc2626}
.warehouse-page .warehouse-loading-actions-only .warehouse-delete-loading-x:hover:not(:disabled){background:#fff1f2}
.warehouse-page .warehouse-loading-edit-panel{width:min(720px,96vw)}

/* Kierownik magazynu R1 — spójna szerokość + live drag & drop */
.warehouse-page .warehouse-manager-board{width:100%!important;max-width:1920px!important;min-width:0!important;margin:0 auto!important;padding:0 0 18px!important;color:#173761}
.warehouse-page .warehouse-manager-columns{width:100%;min-width:0}
.warehouse-page .warehouse-manager-columns>section{min-width:0;max-width:100%;overflow:hidden}
.warehouse-page .warehouse-manager-card-drop-before{box-shadow:inset 0 3px 0 #2563eb,0 7px 18px rgba(37,99,235,.14)!important;border-top-color:#2563eb!important}
.warehouse-page .warehouse-manager-drop-target{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:inset 0 0 0 2px #60a5fa,0 10px 24px rgba(37,99,235,.14)!important}
.warehouse-manager-drag-ghost{opacity:1!important;visibility:visible!important;background:#fff!important;box-shadow:0 18px 42px rgba(15,65,120,.28)!important;border-radius:8px!important}

/* R1 warehouse manager / realization refinement */
.warehouse-page{width:100%;max-width:none!important}
.warehouse-page .warehouse-manager-board,
.warehouse-page .warehouse-domestic-receipts,
.warehouse-page .warehouse-settings,
.warehouse-page .warehouse-realization-view{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.warehouse-page .warehouse-manager-unassigned{border-width:2px!important;border-color:#f59e0b!important;background:linear-gradient(180deg,#fffbeb 0%,#fef3c7 100%)!important;box-shadow:0 8px 20px rgba(217,119,6,.12)!important}
.warehouse-page .warehouse-task-domestic{border-left:5px solid #0284c7!important;background:linear-gradient(90deg,#f0f9ff 0%,#fff 34%)!important}
.warehouse-page .warehouse-task-loading{border-left:5px solid #059669!important;background:linear-gradient(90deg,#ecfdf5 0%,#fff 34%)!important}
.warehouse-page .warehouse-task-manual{border-left:5px solid #7c3aed!important;background:linear-gradient(90deg,#f5f3ff 0%,#fff 34%)!important}
.warehouse-page .warehouse-manager-live-ghost{box-shadow:0 22px 48px rgba(15,41,76,.30)!important;border:2px solid #2563eb!important;border-radius:10px!important;background:#fff!important;transform:rotate(.35deg);will-change:left,top}
body.warehouse-pointer-drag-active{user-select:none!important;cursor:grabbing!important}
body.warehouse-pointer-drag-active *{cursor:grabbing!important}
.warehouse-page .warehouse-manager-card-drop-before{box-shadow:inset 0 4px 0 #2563eb,0 7px 18px rgba(37,99,235,.14)!important}
.warehouse-page .warehouse-manager-drop-target{outline:3px solid rgba(37,99,235,.35);outline-offset:-3px}
.warehouse-page .warehouse-realization-column>article:first-of-type{margin-top:.5rem}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}


/* R1 FIX — restore warehouse tab/content widths; do not change without explicit request */
.warehouse-page .warehouse-tabs button{flex:0 0 auto!important;width:auto!important;min-width:0!important}
.warehouse-page>.warehouse-tabs,
.warehouse-page>.warehouse-domestic-receipts,
.warehouse-page>.warehouse-storage-view,
.warehouse-page>.warehouse-loading-workspace,
.warehouse-page>.warehouse-tasks-view,
.warehouse-page>.warehouse-manager-board,
.warehouse-page>.warehouse-realization-view,
.warehouse-page>.warehouse-workers-view,
.warehouse-page>.warehouse-settings,
.warehouse-page>.warehouse-history{width:100%!important;max-width:1920px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
/* Kierownik: kolumny magazynierów zawsze w jednym poziomym rzędzie; zachowany rozmiar kolumn jak w układzie 5-kolumnowym. */
.warehouse-page .warehouse-manager-columns{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(280px,calc((100% - 32px)/5))!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:8px!important}
.warehouse-page .warehouse-manager-columns>section{min-width:0!important;max-width:none!important}
/* Realizacja: magazynierzy zawsze poziomo. */
.warehouse-page .warehouse-realization-board{display:grid!important;grid-template-columns:none!important;grid-template-rows:1fr!important;grid-auto-flow:column!important;grid-auto-columns:minmax(280px,1fr)!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:8px!important}

/* R1 — Kierownik / Realizacja: Nieprzypisane pionowo, magazynierzy wyłącznie poziomo. Nie zmieniać szerokości modułu ani zakładek. */
.warehouse-page .warehouse-manager-columns{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-bottom:8px!important;
}
.warehouse-page .warehouse-manager-columns>section{
  flex:0 0 max(280px,calc((100% - 32px)/5))!important;
  width:auto!important;
  min-width:280px!important;
  max-width:none!important;
}
.warehouse-page .warehouse-manager-columns>section>div:last-child{
  display:block!important;
}
.warehouse-page .warehouse-realization-board{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-bottom:8px!important;
}
.warehouse-page .warehouse-realization-board>.warehouse-realization-unassigned{
  flex:0 0 190px!important;
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
}
.warehouse-page .warehouse-realization-board>.warehouse-realization-worker-column{
  flex:0 0 280px!important;
  width:280px!important;
  min-width:280px!important;
  max-width:280px!important;
}
.warehouse-page .warehouse-realization-unassigned-card{
  padding:7px!important;
}
.warehouse-page .warehouse-realization-unassigned-card b{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
\n\n/* R2 — warehouse manager / realization final layout */
.warehouse-page .warehouse-manager-columns{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-bottom:10px!important;
}
.warehouse-page .warehouse-manager-columns>.warehouse-manager-unassigned{
  flex:0 0 280px!important;
  width:280px!important;
  min-width:280px!important;
  max-width:280px!important;
}
.warehouse-page .warehouse-manager-columns>section:not(.warehouse-manager-unassigned){
  flex:0 0 300px!important;
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
}
.warehouse-page .warehouse-realization-board{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-bottom:10px!important;
}
.warehouse-page .warehouse-realization-board>.warehouse-realization-unassigned{
  flex:0 0 180px!important;
  width:180px!important;
  min-width:180px!important;
  max-width:180px!important;
}
.warehouse-page .warehouse-realization-board>.warehouse-realization-worker-column{
  flex:0 0 300px!important;
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
}
.warehouse-page .warehouse-realization-unassigned-card{
  padding:6px!important;
}
.warehouse-page .warehouse-realization-unassigned-card b{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
/* Warehouse settings embedded in Ustawienia -> System -> Inne. */
.warehouse-settings-system-embed{
  height:auto!important;
  overflow:visible!important;
  padding:0!important;
  background:transparent!important;
}
.warehouse-settings-system-embed>.warehouse-settings{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

/* R9 — Kierownik magazynu + Realizacja: układ zgodny ze screenem.
   Nieprzypisane pionowo po lewej, magazynierzy w poziomych rzędach,
   zadania jednego magazyniera obok siebie. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board,
.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  display:grid!important;
  grid-template-columns:205px minmax(980px,1fr)!important;
  grid-template-rows:none!important;
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  gap:8px!important;
  width:100%!important;
  min-width:1185px!important;
  max-width:none!important;
  align-items:stretch!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  padding:0 0 10px!important;
}

.warehouse-page .warehouse-screen-board>.warehouse-screen-lane{
  margin:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

.warehouse-page .warehouse-screen-board>.warehouse-screen-unassigned{
  grid-column:1!important;
  grid-row:1 / span 50!important;
  display:block!important;
  width:205px!important;
  min-width:205px!important;
  max-width:205px!important;
  min-height:100%!important;
  padding:8px!important;
  overflow:visible!important;
  border:1px solid #f3df9b!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#fffef4 0%,#fff9dd 100%)!important;
  box-shadow:0 2px 8px rgba(113,91,26,.05)!important;
}

.warehouse-page .warehouse-screen-board>.warehouse-screen-worker{
  grid-column:2!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:auto!important;
  min-width:980px!important;
  max-width:none!important;
  min-height:104px!important;
  padding:8px!important;
  overflow:visible!important;
  border:1px solid #dce5f0!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  box-shadow:0 2px 8px rgba(15,41,76,.045)!important;
}

.warehouse-page .warehouse-screen-lane>.warehouse-screen-lane-head{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.warehouse-page .warehouse-screen-unassigned>.warehouse-screen-lane-head{
  width:100%!important;
  min-height:31px!important;
  padding:0 2px 7px!important;
  border-bottom:1px solid rgba(217,177,54,.28)!important;
}

.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head{
  flex:0 0 180px!important;
  width:180px!important;
  min-width:180px!important;
  min-height:86px!important;
  padding:8px 8px 8px 4px!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  border-right:1px solid #e6edf5!important;
}

.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>span:first-child{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:999px!important;
  font-size:12px!important;
}

.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head b{
  font-size:12px!important;
  line-height:1.2!important;
  white-space:normal!important;
}

.warehouse-page .warehouse-screen-worker-status{
  display:block!important;
  margin-top:5px!important;
  color:#059669!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-lane-head .relative.ml-auto,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-lane-head>span.ml-auto{
  margin-left:auto!important;
}

/* Zadania w rzędzie magazyniera. */
.warehouse-page .warehouse-screen-worker>.warehouse-screen-task-strip{
  display:flex!important;
  flex:1 1 auto!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:auto!important;
  min-width:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
}

.warehouse-page .warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-card{
  flex:0 0 260px!important;
  width:260px!important;
  min-width:260px!important;
  max-width:260px!important;
  min-height:86px!important;
  margin:0!important;
  padding:7px 8px!important;
  align-self:stretch!important;
  overflow:hidden!important;
  border-color:#dce5f0!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(15,41,76,.045)!important;
}

/* Karty mają być kompaktowe jak na wzorze — termin zostaje w górnym wierszu,
   pełne szczegóły są nadal dostępne po kliknięciu / w akcji realizacji. */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:nth-of-type(2),
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:nth-of-type(3){
  display:none!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:nth-of-type(4)>div:nth-child(n+5){
  display:none!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:nth-of-type(4){
  margin-top:4px!important;
  gap:2px 8px!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:nth-of-type(4) span{
  line-height:1.05!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card>div:last-child{
  margin-top:4px!important;
}

/* Nieprzypisane: pionowa lista w wąskiej kolumnie. */
.warehouse-page .warehouse-screen-unassigned>.warehouse-screen-task-strip{
  display:block!important;
  width:100%!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
}
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:7px 0 0!important;
  padding:7px!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(15,41,76,.04)!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card>div:nth-of-type(2),
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card>div:nth-of-type(3){
  display:none!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card>div:nth-of-type(4)>div:nth-child(n+5){
  display:none!important;
}

.warehouse-page .warehouse-screen-empty{
  flex:0 0 220px!important;
  min-width:220px!important;
  min-height:82px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  align-self:stretch!important;
}
.warehouse-page .warehouse-screen-unassigned>.warehouse-screen-empty{
  width:100%!important;
  min-width:0!important;
  min-height:70px!important;
  margin-top:7px!important;
}

.warehouse-page .warehouse-screen-add-task{
  flex:0 0 210px!important;
  width:210px!important;
  min-width:210px!important;
  min-height:86px!important;
  align-self:stretch!important;
  display:grid!important;
  place-items:center!important;
  border:1px dashed #c5d8ee!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.62)!important;
  color:#2563eb!important;
  font-size:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-screen-add-task:hover{
  border-color:#60a5fa!important;
  background:#eff6ff!important;
}

/* Realizacja ma ten sam szkielet co Kierownik. Karty akcji zostają funkcjonalne,
   ale są zwarte i nie rozsadzają wiersza. */
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-card>div:last-child{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-card>div:last-child button{
  min-height:24px!important;
  padding:3px 7px!important;
  font-size:9px!important;
}

/* Stare reguły R1/R2 wymuszały kolumny magazynierów. Te ustawienia są ostateczne. */
@media(max-width:1279px){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board,
  .warehouse-page .warehouse-realization-board.warehouse-screen-board{
    grid-template-columns:205px minmax(920px,1fr)!important;
    min-width:1125px!important;
  }
  .warehouse-page .warehouse-screen-board>.warehouse-screen-unassigned{
    grid-row:1 / span 50!important;
    min-height:100%!important;
  }
  .warehouse-page .warehouse-screen-board>.warehouse-screen-worker{
    grid-column:2!important;
    min-width:920px!important;
    min-height:104px!important;
  }
}

/* R26 WAREHOUSE PATCH — PRESERVE R24 VISUAL */
/* No redesign: these are narrow overrides on top of the R24 warehouse look. */
.warehouse-page .warehouse-manual-arrival-editor{display:flex;align-items:flex-end;gap:3px;min-width:0}.warehouse-page .warehouse-manual-arrival-editor label{display:block;min-width:0;font-size:7px;font-weight:800;color:#64748b}.warehouse-page .warehouse-manual-arrival-editor label span{display:block;margin-bottom:1px}.warehouse-page .warehouse-manual-arrival-editor input{width:67px;height:24px;border:1px solid #dbe5f0;border-radius:5px;background:#fff;padding:2px 3px;font-size:9px;color:#173761}.warehouse-page .warehouse-manual-arrival-editor input:disabled{background:#f1f5f9;color:#64748b}.warehouse-page .warehouse-manual-arrival-editor button{height:24px;border:1px solid #bfdbfe;border-radius:5px;background:#2563eb;padding:0 7px;font-size:8px;font-weight:800;color:#fff}.warehouse-page .warehouse-manual-arrival-editor.is-compact{gap:2px}.warehouse-page .warehouse-manual-arrival-editor.is-compact input{width:58px}.warehouse-page .warehouse-manual-arrival-editor.is-compact button{padding:0 5px}

/* Kierownik: only requested geometry tweaks. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{grid-template-columns:270px minmax(915px,1fr)!important;min-width:1185px!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{width:270px!important;min-width:270px!important;max-width:270px!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{width:100%!important;min-width:915px!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip{flex:1 1 auto!important;min-width:0!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{max-height:690px!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px!important}.warehouse-page .warehouse-manager-unassigned-filters{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:6px 0 4px}.warehouse-page .warehouse-manager-unassigned-filters button{min-height:23px;border:1px solid #e1e8f1;border-radius:5px;background:#fff;padding:2px 4px;font-size:8px;font-weight:750;color:#475569}.warehouse-page .warehouse-manager-unassigned-filters button.is-active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.warehouse-page .warehouse-manager-unassigned-filters button.is-urgent{border-color:#fecdd3;background:#fff1f2;color:#be123c}.warehouse-page .warehouse-manager-weekdays-inline{display:flex;gap:3px;flex:0 0 auto}.warehouse-page .warehouse-manager-weekdays-inline button{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px;height:28px;border:1px solid #dbe5f0;border-radius:6px;background:#fff;padding:2px 5px;color:#173761}.warehouse-page .warehouse-manager-weekdays-inline small{font-size:7px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-manager-weekdays-inline b{font-size:10px}.warehouse-page .warehouse-manager-weekdays-inline span{border-radius:999px;background:#eaf3ff;padding:1px 4px;font-size:7px;font-weight:800;color:#2563eb}.warehouse-page .warehouse-manager-weekdays-inline button.is-active{border-color:#2563eb;background:#eff6ff}.warehouse-page .warehouse-shift-compact article{box-shadow:none!important}

/* Drag&drop performance: card stays visually identical, but we stop repainting the heavy DOM as a ghost. */
.warehouse-page .warehouse-screen-task-card{contain:layout paint style}.warehouse-manager-live-ghost{border:1px solid #93c5fd;border-radius:7px;background:#fff;padding:7px 9px;color:#173761;font:700 10px system-ui;box-shadow:0 8px 18px rgba(15,41,76,.16);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;will-change:transform}.warehouse-pointer-drag-active .warehouse-screen-task-card{transition:none!important}.warehouse-pointer-drag-active *{animation:none!important}.warehouse-task-dragging{opacity:.45!important}

/* Realizacja: keep rows/cards, compact only the TV counters and cap unassigned to ~6 cards. */
.warehouse-page .warehouse-realization-metrics{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.warehouse-page .warehouse-realization-metrics>div{flex:0 0 165px!important;min-height:48px!important;padding:7px 9px!important}.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned{max-height:700px!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}.warehouse-page .warehouse-task-timing{display:flex;flex-wrap:wrap;gap:6px 10px;color:#64748b}

/* Załadunki: week filter added inside the existing toolbar; direction remains visually on the right. */
.warehouse-page .warehouse-loading-toolbar{display:flex;align-items:center;gap:7px}.warehouse-page .warehouse-loading-week-filter{display:flex;align-items:center;gap:2px;min-width:0}.warehouse-page .warehouse-loading-week-filter button{height:28px;min-width:25px;border:1px solid #dbe5f0;border-radius:6px;background:#fff;padding:2px 4px;color:#173761}.warehouse-page .warehouse-loading-week-filter button small,.warehouse-page .warehouse-loading-week-filter button b{display:block;line-height:1}.warehouse-page .warehouse-loading-week-filter button small{font-size:6px;font-weight:800;text-transform:uppercase;color:#64748b}.warehouse-page .warehouse-loading-week-filter button b{font-size:9px}.warehouse-page .warehouse-loading-week-filter button.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.warehouse-page .warehouse-loading-direction-filter{margin-left:auto!important}

/* Zadania: same command bar/list; only a compact Mon-Fri selector and details drawer on click. */
.warehouse-page .warehouse-task-week-compact{min-width:0}.warehouse-page .warehouse-task-weekdays{display:flex;gap:2px}.warehouse-page .warehouse-task-weekdays button{min-width:34px!important;padding:4px 5px!important}.warehouse-page .warehouse-task-weekdays button small,.warehouse-page .warehouse-task-weekdays button b{display:block}.warehouse-page .warehouse-task-weekdays button small{font-size:6px;color:#64748b}.warehouse-page .warehouse-task-weekdays button b{font-size:10px}.warehouse-page .warehouse-task-weekdays button.is-active{border-color:#2563eb!important;background:#eff6ff!important;color:#1d4ed8!important}.warehouse-page .warehouse-task-list-row:hover{background:#f8fbff}

@media(max-width:1366px){.warehouse-page .warehouse-manager-columns.warehouse-screen-board{grid-template-columns:250px minmax(875px,1fr)!important;min-width:1125px!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{width:250px!important;min-width:250px!important;max-width:250px!important}.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{min-width:875px!important}.warehouse-page .warehouse-manager-weekdays-inline span{display:none}.warehouse-page .warehouse-loading-week-filter button{min-width:22px;padding:2px 3px}.warehouse-page .warehouse-realization-metrics>div{flex-basis:145px!important}}

/* TPS Resources visual rebuild - R31. Data/API behavior intentionally unchanged. */
.tps-resources-page{background:#f7f9fc;min-height:100%;color:#10213e}
.tps-resource-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px;padding-top:5px;border-top:2px solid #2f73ff}
.tps-resource-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid #e3e9f2}
.tps-resource-tabs button{padding:7px 11px;font-size:11px}
.tps-resource-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:12px;background:#fff;border:1px solid #dce4ef;border-radius:9px;box-shadow:0 1px 3px rgba(15,35,64,.04)}
.tps-resource-search{display:flex;align-items:center;min-width:320px;flex:1 1 430px;height:34px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;overflow:hidden}
.tps-resource-search-icon{padding:0 9px;color:#47627f;font-size:19px;line-height:1}
.tps-resource-search input{width:100%;height:100%;border:0;outline:0;padding:0 9px 0 0;font-size:11px;color:#23364f}
.tps-resource-toolbar-field{display:flex;align-items:center;gap:6px;height:34px;color:#18314f;font-size:10px;font-weight:700}
.tps-resource-toolbar-field select{height:34px;min-width:128px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;padding:0 28px 0 10px;font-size:10px;font-weight:600;color:#30445e;outline:0}
.tps-resource-sort select{min-width:118px;border-color:#2f73ff;box-shadow:0 0 0 1px rgba(47,115,255,.08)}
.tps-resource-quick{display:flex;align-items:center;gap:6px;margin-left:auto}
.tps-resource-quick button{height:30px;border:0;border-radius:999px;background:#eaf2ff;color:#2560bd;padding:0 15px;font-size:9px;font-weight:800;cursor:pointer;transition:.15s ease}
.tps-resource-quick button:hover,.tps-resource-quick button.is-active{background:#cfe0ff;color:#0a4fbc}
.tps-resource-add-grid{margin-bottom:14px}
.resource-add-card{background:#fff;border:1px solid #dce4ef;border-radius:9px;box-shadow:0 1px 3px rgba(15,35,64,.05);padding:10px 11px;min-height:124px}
.resource-add-title{display:flex;align-items:center;gap:9px;margin-bottom:8px;font-size:12px;font-weight:800;color:#132b47}
.resource-add-icon,.resource-table-icon{display:grid;place-items:center;color:#1267dc;flex:0 0 auto}
.resource-add-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px;align-items:end}
.resource-add-fields-driver{grid-template-columns:repeat(4,minmax(0,1fr))}
.resource-add-card label{min-width:0;font-size:9px!important;font-weight:700!important;color:#314965}
.resource-add-card label>input:not([type=checkbox]),.resource-add-card label>select,.resource-add-card label input[list]{height:29px!important;margin-top:3px!important;border:1px solid #cfd9e6!important;border-radius:5px!important;background:#fff!important;padding:0 8px!important;font-size:10px!important;font-weight:500!important;color:#23364f!important;outline:0!important}
.resource-add-card label>input:not([type=checkbox]):focus,.resource-add-card label>select:focus{border-color:#4f8cff!important;box-shadow:0 0 0 2px rgba(79,140,255,.10)}
.resource-inline-label{display:flex;flex-direction:column}
.resource-check-label{height:29px;display:flex!important;align-items:center!important;gap:6px!important;padding-top:13px!important;white-space:nowrap}
.resource-save-btn{height:29px;margin-top:8px;margin-left:auto;display:block;border:0;border-radius:5px;background:#0d65d9;color:#fff;padding:0 15px;font-size:10px;font-weight:800;cursor:pointer;box-shadow:0 1px 2px rgba(0,72,170,.12)}
.resource-save-btn:hover{background:#095bc6}
.resource-table-section{overflow:hidden;background:#fff;border:1px solid #dce4ef;border-radius:9px;box-shadow:0 1px 3px rgba(15,35,64,.05)}
.resource-table-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:43px;padding:6px 10px;border-bottom:1px solid #dfe6f0;background:#fff}
.resource-table-title{display:flex;align-items:center;gap:8px;font-size:12px;color:#142c49;white-space:nowrap}
.resource-table-title strong{font-size:12px}
.resource-table-title>span:last-child{font-size:9px;font-weight:500;color:#93a1b3}
.resource-table-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto}
.resource-table-search{display:flex;align-items:center;width:165px;height:28px;border:1px solid #cfd9e6;border-radius:5px;background:#fff;overflow:hidden;color:#52708d}
.resource-table-search span{padding-left:8px;font-size:14px}
.resource-table-search input{min-width:0;flex:1;height:100%;border:0;outline:0;padding:0 7px;font-size:9px}
.resource-direction-chips{display:flex;align-items:center;gap:4px}
.resource-direction-chips button{height:24px;border:1px solid #d8e1ec;border-radius:4px;background:#f6f8fb;color:#50657d;padding:0 8px;font-size:8px;font-weight:700;cursor:pointer}
.resource-direction-chips button.is-active{border-color:#1f70e5;background:#1f70e5;color:#fff}
.resource-local-sort{display:flex;align-items:center;gap:5px;font-size:8px;font-weight:700;color:#52677f}
.resource-local-sort select{height:26px;border:1px solid #cfd9e6;border-radius:5px;background:#fff;padding:0 23px 0 7px;font-size:8px;color:#324a65;outline:0}
.resource-table-scroll{max-height:280px;overflow:auto;scrollbar-gutter:stable}
.resource-table-driver .resource-table-scroll{max-height:315px}
.resource-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;text-align:left;font-size:9px;color:#253b55}
.resource-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc;color:#3b526c;font-size:8px;font-weight:800;white-space:nowrap;border-bottom:1px solid #dfe6f0;padding:7px 9px}
.resource-table tbody td{height:31px;border-bottom:1px solid #edf1f5;padding:5px 9px;vertical-align:middle;white-space:nowrap}
.resource-table tbody tr:last-child td{border-bottom:0}
.resource-table tbody tr:hover td{background:#fbfdff}
.resource-table tbody tr.is-editing td{background:#f7fbff}
.resource-strong{font-weight:800;color:#173557}
.resource-center{text-align:center}
.resource-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 8px;font-size:8px;font-weight:800;line-height:1}
.resource-status.is-active{background:#e8f8ee;color:#1b9b53}
.resource-status.is-inactive{background:#f3f5f7;color:#7a8795}
.resource-status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.resource-row-actions{display:flex;align-items:center;gap:6px}
.resource-row-actions button{height:23px;border-radius:4px;background:#fff;padding:0 9px;font-size:8px;font-weight:800;cursor:pointer}
.resource-row-actions .is-edit{border:1px solid #b8d5ff;color:#0d65d9}
.resource-row-actions .is-save{border:1px solid #9bd9b4;color:#148a48}
.resource-row-actions .is-cancel{border:1px solid #d8e1ec;color:#64748b}
.resource-row-actions .is-delete{border:1px solid #ffc7c7;color:#e23c3c}
.resource-cell-input,.resource-cell-select{height:24px;max-width:150px;min-width:72px;border:1px solid #bfcddd;border-radius:4px;background:#fff;padding:0 6px;font-size:8px;color:#243b55;outline:0}
.resource-cell-input:focus,.resource-cell-select:focus{border-color:#4f8cff;box-shadow:0 0 0 2px rgba(79,140,255,.10)}
.resource-active-edit{display:inline-flex;align-items:center;gap:4px;font-size:8px;color:#425a73}
.resource-empty{text-align:center!important;color:#8b99aa!important;padding:16px!important}
.tps-resource-bottom-grid .resource-table{min-width:630px}
.resource-table-driver .resource-table{min-width:1040px}
.resource-table-scroll::-webkit-scrollbar{width:9px;height:9px}.resource-table-scroll::-webkit-scrollbar-track{background:#f2f5f9}.resource-table-scroll::-webkit-scrollbar-thumb{background:#c5d0dc;border:2px solid #f2f5f9;border-radius:999px}.resource-table-scroll{scrollbar-width:thin;scrollbar-color:#c5d0dc #f2f5f9}
@media(max-width:1280px){.resource-add-fields-driver{grid-template-columns:repeat(2,minmax(0,1fr))}.tps-resource-quick{margin-left:0}.resource-table-controls{width:100%;margin-left:0}.resource-table-search{width:220px}}
@media(max-width:760px){.tps-resources-page{padding:12px!important}.tps-resource-page-header{align-items:flex-start;flex-direction:column}.tps-resource-search{min-width:100%;flex-basis:100%}.tps-resource-toolbar-field{flex:1 1 140px}.tps-resource-toolbar-field select{width:100%;min-width:0}.tps-resource-quick{width:100%;overflow:auto;padding-bottom:2px}.resource-add-fields,.resource-add-fields-driver{grid-template-columns:1fr 1fr}.resource-table-header{align-items:flex-start}.resource-table-controls{overflow:auto;flex-wrap:nowrap}.resource-direction-chips{white-space:nowrap}.resource-table-scroll{max-height:340px}}

/* R32: Resources font-size +2px and label rename */
.tps-resources-page .tps-resource-tabs button{font-size:13px!important}
.tps-resources-page .tps-resource-search input{font-size:13px!important}
.tps-resources-page .tps-resource-toolbar-field{font-size:12px!important}
.tps-resources-page .tps-resource-toolbar-field select{font-size:12px!important}
.tps-resources-page .tps-resource-quick button{font-size:11px!important}
.tps-resources-page .resource-add-title{font-size:14px!important}
.tps-resources-page .resource-add-card label{font-size:11px!important}
.tps-resources-page .resource-add-card label>input:not([type=checkbox]),
.tps-resources-page .resource-add-card label>select,
.tps-resources-page .resource-add-card label input[list]{font-size:12px!important}
.tps-resources-page .resource-check-label{font-size:11px!important}
.tps-resources-page .resource-save-btn{font-size:12px!important}
.tps-resources-page .resource-table-title{font-size:14px!important}
.tps-resources-page .resource-table-title strong{font-size:14px!important}
.tps-resources-page .resource-table-title>span:last-child{font-size:11px!important}
.tps-resources-page .resource-table-search input{font-size:11px!important}
.tps-resources-page .resource-direction-chips button{font-size:10px!important}
.tps-resources-page .resource-local-sort{font-size:10px!important}
.tps-resources-page .resource-local-sort select{font-size:10px!important}
.tps-resources-page .resource-table{font-size:11px!important}
.tps-resources-page .resource-table thead th{font-size:10px!important}
.tps-resources-page .resource-status{font-size:10px!important}
.tps-resources-page .resource-row-actions button{font-size:10px!important}
.tps-resources-page .resource-cell-input,
.tps-resources-page .resource-cell-select,
.tps-resources-page .resource-active-edit{font-size:10px!important}

/* R33: restore visible Companies tab and compact vehicle add forms */
.tps-resource-tabs-main{margin:-2px 0 12px 0;background:#fff;border:1px solid #dce4ef;border-radius:8px;padding:0 8px;min-height:38px;box-shadow:0 1px 2px rgba(15,35,64,.03)}
.tps-resource-tabs-main button{min-height:37px;padding:6px 14px!important;font-size:13px!important}
@media(min-width:1281px){
  .resource-add-fields-truck{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px 7px!important}
  .resource-add-fields-trailer{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px 7px!important}
  .resource-add-truck label>input:not([type=checkbox]),
  .resource-add-truck label>select,
  .resource-add-trailer label>input:not([type=checkbox]),
  .resource-add-trailer label>select{height:27px!important;padding:0 6px!important}
  .resource-add-truck .resource-check-label,
  .resource-add-trailer .resource-check-label{height:27px!important;padding-top:11px!important}
  .resource-add-truck .resource-save-btn,
  .resource-add-trailer .resource-save-btn{height:27px!important;margin-top:6px!important}
}
@media(min-width:900px) and (max-width:1280px){
  .resource-add-fields-truck{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .resource-add-fields-trailer{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* R34: make the full driver list clearly reachable by scrolling */
.tps-resources-page .resource-table-driver .resource-table-scroll{
  height:420px!important;
  max-height:420px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable both-edges!important;
  overscroll-behavior:contain!important;
}
.tps-resources-page .resource-table-driver .resource-table-scroll::-webkit-scrollbar{width:13px!important;height:11px!important}
.tps-resources-page .resource-table-driver .resource-table-scroll::-webkit-scrollbar-track{background:#eef3f8!important;border-left:1px solid #dce4ef!important}
.tps-resources-page .resource-table-driver .resource-table-scroll::-webkit-scrollbar-thumb{background:#9fb0c3!important;border:3px solid #eef3f8!important;border-radius:999px!important}
.tps-resources-page .resource-table-driver .resource-table-scroll{scrollbar-width:auto!important;scrollbar-color:#9fb0c3 #eef3f8!important}
@media(max-width:760px){.tps-resources-page .resource-table-driver .resource-table-scroll{height:360px!important;max-height:360px!important}}

/* R35: top toolbar without global search, toolbar font +2px */
.tps-resources-page .tps-resource-toolbar{justify-content:flex-start;padding:8px 12px;gap:12px}
.tps-resources-page .tps-resource-toolbar-field{font-size:14px!important}
.tps-resources-page .tps-resource-toolbar-field span{font-size:14px!important}
.tps-resources-page .tps-resource-toolbar-field select{height:36px;min-width:132px;font-size:14px!important;padding:0 30px 0 10px!important}
.tps-resources-page .tps-resource-sort select{min-width:110px}
.tps-resources-page .tps-resource-quick{margin-left:0}
.tps-resources-page .tps-resource-quick button{height:32px;font-size:13px!important;padding:0 14px}
@media(max-width:760px){.tps-resources-page .tps-resource-toolbar{gap:8px}.tps-resources-page .tps-resource-toolbar-field{flex:0 1 auto}.tps-resources-page .tps-resource-toolbar-field select{width:auto;min-width:120px}}

/* R36: assigned trailer for drivers + resources typography +2px */
.tps-resources-page .tps-resource-page-header h1{font-size:22px!important}
.tps-resources-page .tps-resource-page-header p{font-size:14px!important}
.tps-resources-page .tps-resource-tabs button,.tps-resources-page .tps-resource-tabs-main button{font-size:15px!important}
.tps-resources-page .tps-resource-toolbar-field,.tps-resources-page .tps-resource-toolbar-field span{font-size:16px!important}
.tps-resources-page .tps-resource-toolbar-field select{font-size:16px!important}
.tps-resources-page .tps-resource-quick button{font-size:15px!important}
.tps-resources-page .resource-add-title{font-size:16px!important}
.tps-resources-page .resource-add-card label{font-size:13px!important}
.tps-resources-page .resource-add-card label>input:not([type=checkbox]),
.tps-resources-page .resource-add-card label>select,
.tps-resources-page .resource-add-card label input[list]{font-size:14px!important}
.tps-resources-page .resource-check-label{font-size:13px!important}
.tps-resources-page .resource-save-btn{font-size:14px!important}
.tps-resources-page .resource-table-title,.tps-resources-page .resource-table-title strong{font-size:16px!important}
.tps-resources-page .resource-table-title>span:last-child{font-size:13px!important}
.tps-resources-page .resource-table-search input{font-size:13px!important}
.tps-resources-page .resource-direction-chips button{font-size:12px!important}
.tps-resources-page .resource-local-sort,.tps-resources-page .resource-local-sort select{font-size:12px!important}
.tps-resources-page .resource-table{font-size:13px!important}
.tps-resources-page .resource-table thead th{font-size:12px!important}
.tps-resources-page .resource-status{font-size:12px!important}
.tps-resources-page .resource-row-actions button{font-size:12px!important}
.tps-resources-page .resource-cell-input,
.tps-resources-page .resource-cell-select,
.tps-resources-page .resource-active-edit{font-size:12px!important}
.tps-resources-page .resource-trailer-select{min-width:155px!important;max-width:210px!important}
.tps-resources-page .resource-add-fields-driver{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1280px){.tps-resources-page .resource-add-fields-driver{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* R37: rate privacy, no global toolbar/status columns, resources typography +2px */
.tps-resources-page .tps-resource-toolbar{display:none!important}
.tps-resources-page .tps-resource-page-header h1{font-size:24px!important}
.tps-resources-page .tps-resource-page-header p{font-size:16px!important}
.tps-resources-page .tps-resource-tabs button,.tps-resources-page .tps-resource-tabs-main button{font-size:17px!important}
.tps-resources-page .resource-add-title{font-size:18px!important}
.tps-resources-page .resource-add-card label{font-size:15px!important}
.tps-resources-page .resource-add-card label>input:not([type=checkbox]),
.tps-resources-page .resource-add-card label>select,
.tps-resources-page .resource-add-card label input[list]{height:32px!important;font-size:16px!important}
.tps-resources-page .resource-check-label{height:32px!important;font-size:15px!important;padding-top:14px!important}
.tps-resources-page .resource-save-btn{height:32px!important;font-size:16px!important}
.tps-resources-page .resource-table-title,.tps-resources-page .resource-table-title strong{font-size:18px!important}
.tps-resources-page .resource-table-title>span:last-child{font-size:15px!important}
.tps-resources-page .resource-table-search{height:32px!important;width:205px!important}
.tps-resources-page .resource-table-search input{font-size:15px!important}
.tps-resources-page .resource-direction-chips button{height:28px!important;font-size:14px!important}
.tps-resources-page .resource-local-sort,.tps-resources-page .resource-local-sort select{font-size:14px!important}
.tps-resources-page .resource-local-sort select{height:30px!important}
.tps-resources-page .resource-table{font-size:15px!important}
.tps-resources-page .resource-table thead th{font-size:14px!important;padding:8px 9px!important}
.tps-resources-page .resource-table tbody td{height:37px!important;padding:6px 9px!important}
.tps-resources-page .resource-row-actions button{height:28px!important;font-size:14px!important}
.tps-resources-page .resource-cell-input,
.tps-resources-page .resource-cell-select,
.tps-resources-page .resource-active-edit{height:30px!important;font-size:14px!important}
.tps-resources-page .resource-add-fields-driver{display:block!important}
.tps-resources-page .resource-driver-row{display:grid;align-items:end;gap:6px 7px}
.tps-resources-page .resource-driver-row-primary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:7px}
.tps-resources-page .resource-driver-row-secondary{grid-template-columns:minmax(95px,1.05fr) minmax(120px,1.25fr) minmax(70px,.7fr) auto auto}
.tps-resources-page .resource-driver-row-secondary .resource-save-inline{margin:0!important;align-self:end;min-width:72px}
.tps-resources-page .resource-driver-row-secondary .resource-flat-rate{padding-top:0!important;align-self:end;height:32px!important}
.tps-resources-page .resource-driver-row-secondary label{min-width:0}
@media(max-width:1450px){
  .tps-resources-page .resource-driver-row-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tps-resources-page .resource-driver-row-secondary{grid-template-columns:repeat(2,minmax(0,1fr)) auto auto}
}
@media(max-width:900px){
  .tps-resources-page .resource-driver-row-primary,.tps-resources-page .resource-driver-row-secondary{grid-template-columns:1fr 1fr}
  .tps-resources-page .resource-driver-row-secondary .resource-save-inline{width:100%}
}

/* R38: admin rate access, inline vehicle save, viewport-fitted tables */
@media(min-width:1281px){
  .tps-resources-page .resource-add-fields-truck,
  .tps-resources-page .resource-add-fields-trailer{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px 7px!important}
  .tps-resources-page .resource-add-truck .resource-save-grid,
  .tps-resources-page .resource-add-trailer .resource-save-grid{margin:0!important;align-self:end!important;height:32px!important;min-width:76px;width:100%!important}
}
@media(min-width:900px) and (max-width:1280px){
  .tps-resources-page .resource-add-fields-truck,
  .tps-resources-page .resource-add-fields-trailer{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .tps-resources-page .resource-add-truck .resource-save-grid,
  .tps-resources-page .resource-add-trailer .resource-save-grid{margin:0!important;align-self:end!important;width:100%!important}
}
@media(min-width:901px){
  .tps-resources-page{height:calc(100vh - 70px)!important;max-height:calc(100vh - 70px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-height:0!important}
  .tps-resources-page .tps-resource-lists{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1.15fr) minmax(0,.85fr)!important;gap:12px!important;margin-top:12px!important}
  .tps-resources-page .tps-resource-lists>:not([hidden])~:not([hidden]){margin-top:0!important}
  .tps-resources-page .resource-table-section{min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important}
  .tps-resources-page .resource-table-header{flex:0 0 auto!important}
  .tps-resources-page .resource-table-scroll,
  .tps-resources-page .resource-table-driver .resource-table-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:auto!important}
  .tps-resources-page .tps-resource-bottom-grid{min-height:0!important;height:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:900px){
  .tps-resources-page{height:auto!important;max-height:none!important;overflow:visible!important}
  .tps-resources-page .resource-add-fields-truck,
  .tps-resources-page .resource-add-fields-trailer{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tps-resources-page .resource-save-grid{margin:0!important;align-self:end!important;width:100%!important}
}

/* R39: show 10 visible rows in every resources table */
@media(min-width:901px){
  .tps-resources-page{height:auto!important;max-height:none!important;overflow:visible!important;display:block!important;min-height:0!important}
  .tps-resources-page .tps-resource-lists{display:block!important;min-height:0!important;height:auto!important;margin-top:12px!important}
  .tps-resources-page .tps-resource-lists>:not([hidden])~:not([hidden]){margin-top:12px!important}
  .tps-resources-page .resource-table-section{height:auto!important;min-height:0!important;display:block!important}
  .tps-resources-page .resource-table-scroll,
  .tps-resources-page .resource-table-driver .resource-table-scroll{height:406px!important;max-height:406px!important;min-height:406px!important;overflow-y:auto!important;overflow-x:auto!important}
  .tps-resources-page .tps-resource-bottom-grid{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}

/* R40: show 11 visible rows in every resources table */
@media(min-width:901px){
  .tps-resources-page .resource-table-scroll,
  .tps-resources-page .resource-table-driver .resource-table-scroll{height:443px!important;max-height:443px!important;min-height:443px!important}
}

/* R42: remove blue top line in resources header */
.tps-resources-page .tps-resource-page-header{border-top:0!important;padding-top:0!important}

/* R43: move resource save notice next to tabs on the right */
.tps-resources-page .tps-resource-tabs-row{display:flex;justify-content:flex-end;align-items:center;margin-bottom:12px}
.tps-resources-page .tps-resource-tabs-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;width:100%}
.tps-resources-page .tps-resource-inline-notice{margin:0!important;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
@media(max-width:760px){.tps-resources-page .tps-resource-tabs-row{margin-bottom:10px}.tps-resources-page .tps-resource-tabs-right{justify-content:flex-start}.tps-resources-page .tps-resource-inline-notice{white-space:normal;width:100%}}

/* R44: tabs left, resource notices right */
.tps-resources-page .tps-resource-tabs-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;margin-bottom:12px!important}
.tps-resources-page .tps-resource-tabs-main{margin-right:auto!important}
.tps-resources-page .tps-resource-inline-notice{margin:0 0 0 auto!important;flex:0 0 auto!important}
@media(max-width:760px){.tps-resources-page .tps-resource-tabs-row{align-items:flex-start!important;flex-wrap:wrap!important}.tps-resources-page .tps-resource-inline-notice{margin-left:0!important;width:100%!important}}

/* R45: restore full container around resource tabs and notices */
.tps-resources-page .tps-resource-tabs-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin-bottom:12px!important;
  padding:8px 10px!important;
  background:#fff!important;
  border:1px solid #dce4ef!important;
  border-radius:9px!important;
  box-shadow:0 1px 3px rgba(15,35,64,.04)!important;
}
.tps-resources-page .tps-resource-tabs-main{margin-right:auto!important;border-bottom:0!important}
.tps-resources-page .tps-resource-inline-notice{margin:0 0 0 auto!important;flex:0 0 auto!important}
@media(max-width:760px){
  .tps-resources-page .tps-resource-tabs-row{align-items:flex-start!important;flex-wrap:wrap!important;padding:8px!important}
  .tps-resources-page .tps-resource-inline-notice{margin-left:0!important;width:100%!important}
}

/* R46: remove nested container styling from resource tabs */
.tps-resources-page .tps-resource-tabs-main{
  margin:0 auto 0 0!important;
  padding:0!important;
  min-height:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.tps-resources-page .tps-resource-tabs-main button{min-height:34px!important}

/* R52 — Załadunki: blokada zakładek podczas dodawania/edycji */
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs{
  pointer-events:none!important;
  user-select:none!important;
}
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs button{
  pointer-events:none!important;
  cursor:default!important;
  opacity:.42!important;
  transform:none!important;
  box-shadow:none!important;
}
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs button:hover{
  transform:none!important;
}
/* Edycja załadunku zamyka się tylko przez X, Anuluj lub zapis. */
.warehouse-page .warehouse-loading-edit-backdrop{cursor:default}

/* R53 — Załadunki: status i czas realizacji */
.warehouse-page .warehouse-loading-list-head,
.warehouse-page .warehouse-loading-list-row{grid-template-columns:minmax(100px,.9fr) minmax(88px,.8fr) minmax(88px,.8fr) minmax(70px,.65fr) minmax(120px,1.1fr) minmax(52px,.45fr) minmax(105px,.9fr) minmax(82px,.7fr) minmax(82px,.7fr)!important;min-width:1120px!important;gap:9px!important}
.warehouse-page .warehouse-loading-list-head>span:last-child,
.warehouse-page .warehouse-loading-list-row>span:last-child{display:block!important}
.warehouse-page .warehouse-loading-clock{font-variant-numeric:tabular-nums;font-weight:800;color:#173761}
.warehouse-page .warehouse-loading-execution-time{margin-top:4px!important;font-weight:700;color:#475569!important}
.warehouse-page .warehouse-loading-execution-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}
.warehouse-page .warehouse-loading-execution-meta>b{border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900}
.warehouse-page .warehouse-loading-execution-meta>span{border-radius:6px;background:#f1f5f9;padding:3px 7px;font-size:9px;font-weight:800;color:#475569;font-variant-numeric:tabular-nums}

/* R55 — Załadunki: modal nad zakładkami i brak zamykania po kliknięciu tła */
.warehouse-page .warehouse-loading-create-backdrop,
.warehouse-page .warehouse-loading-edit-backdrop{
  z-index:9999!important;
}
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs{
  z-index:0!important;
  pointer-events:none!important;
  user-select:none!important;
  opacity:1!important;
}
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs button{
  pointer-events:none!important;
  opacity:1!important;
  cursor:default!important;
  transform:none!important;
}
.warehouse-page:has(.warehouse-loading-create-backdrop)>.warehouse-tabs button:hover{
  transform:none!important;
}

/* R56: warehouse full-width layout aligned with other TPS modules */
.warehouse-page{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
.warehouse-page>.warehouse-tabs,
.warehouse-page>.warehouse-domestic-receipts,
.warehouse-page>.warehouse-storage-view,
.warehouse-page>.warehouse-loading-workspace,
.warehouse-page>.warehouse-tasks-view,
.warehouse-page>.warehouse-tasks-v2,
.warehouse-page>.warehouse-manager-board,
.warehouse-page>.warehouse-realization-view,
.warehouse-page>.warehouse-workers-view,
.warehouse-page>.warehouse-settings,
.warehouse-page>.warehouse-history,
.warehouse-page>section,
.warehouse-page>div:not(.fixed){width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
.warehouse-page .warehouse-domestic-receipts,
.warehouse-page .warehouse-storage-view,
.warehouse-page .warehouse-loading-workspace,
.warehouse-page .warehouse-tasks-view,
.warehouse-page .warehouse-tasks-v2,
.warehouse-page .warehouse-manager-board,
.warehouse-page .warehouse-realization-view,
.warehouse-page .warehouse-workers-view,
.warehouse-page .warehouse-settings,
.warehouse-page .warehouse-history{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}

/* R57: Warehouse / Loadings visual rebuild based on provided reference */
.warehouse-page-loadings{padding-top:10px!important;background:#f6f9fd!important}
.warehouse-page-loadings .warehouse-tabs-loadings{position:relative!important;z-index:10!important;margin-bottom:10px!important;display:flex!important;align-items:center!important;gap:4px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important;padding:3px 10px!important;box-shadow:0 2px 10px rgba(15,23,42,.05)!important;overflow-x:auto!important}
.warehouse-page-loadings .warehouse-tabs-loadings button{height:40px!important;border-bottom-width:0!important;border-radius:8px!important;padding:0 14px!important;font-size:12px!important;font-weight:700!important;color:#31537e!important;white-space:nowrap!important}
.warehouse-page-loadings .warehouse-tabs-loadings button:hover{background:#f4f8fd!important;color:#174c91!important}
.warehouse-page-loadings .warehouse-tabs-loadings button[class*="border-blue-600"]{background:#1670ed!important;color:#fff!important;box-shadow:0 2px 6px rgba(22,112,237,.2)!important}
.warehouse-loadings-screen{display:flex;flex-direction:column;gap:10px;min-width:0}
.warehouse-loadings-toolbar{display:flex;align-items:center;gap:8px;min-width:0;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:10px 12px;box-shadow:0 2px 10px rgba(15,23,42,.04);overflow-x:auto}
.warehouse-loadings-search{display:flex;align-items:center;gap:8px;min-width:260px;flex:1 1 340px;height:36px;border:1px solid #d8e1ec;border-radius:8px;background:#fff;padding:0 10px;color:#64748b}
.warehouse-loadings-search input{width:100%;min-width:150px;border:0!important;outline:0!important;background:transparent!important;font-size:12px!important;color:#1f3c65!important}
.warehouse-loadings-square,.warehouse-loadings-date,.warehouse-loadings-view,.warehouse-loadings-filters button,.warehouse-loadings-add,.warehouse-loadings-select{height:36px;border:1px solid #d8e1ec;border-radius:8px;background:#fff;color:#23466f;font-size:12px;font-weight:700;white-space:nowrap}
.warehouse-loadings-square{width:38px;display:grid;place-items:center;padding:0;font-size:16px}
.warehouse-loadings-date{padding:0 14px}
.warehouse-loadings-filters{display:flex;align-items:center;gap:5px}
.warehouse-loadings-filters button{padding:0 14px}
.warehouse-loadings-filters button.bg-blue-600{border-color:#1670ed;background:#1670ed!important;color:#fff!important}
.warehouse-loadings-select{padding:0 28px 0 12px;min-width:145px;font-weight:600}
.warehouse-loadings-sort{min-width:170px}
.warehouse-loadings-view{padding:0 16px}
.warehouse-loadings-view.is-active{border-color:#1670ed;background:#1670ed;color:#fff}
.warehouse-loadings-add{border-color:#1670ed;background:#1670ed;color:#fff;padding:0 18px;box-shadow:0 2px 6px rgba(22,112,237,.18)}
.warehouse-loadings-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:12px;min-width:0;align-items:stretch}
.warehouse-loadings-list,.warehouse-loading-preview{min-width:0;border:1px solid #dfe7f1;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.035);overflow:hidden}
.warehouse-loadings-table-wrap{overflow:auto}
.warehouse-loadings-table{width:100%;min-width:1180px;border-collapse:collapse;text-align:left;font-size:12px;color:#1d3d66}
.warehouse-loadings-table thead{background:#f7f9fc;color:#526d8e;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.02em}
.warehouse-loadings-table th{height:42px;padding:0 10px;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.warehouse-loadings-table td{height:54px;padding:7px 10px;border-bottom:1px solid #e8eef5;vertical-align:middle;white-space:nowrap}
.warehouse-loadings-table tbody tr{cursor:pointer;transition:background .12s ease}
.warehouse-loadings-table tbody tr:hover{background:#f8fbff}
.warehouse-loadings-table tbody tr.is-selected{background:#edf6ff;box-shadow:inset 3px 0 #1670ed}
.warehouse-loadings-table b{font-weight:800;color:#173b68}
.warehouse-loadings-table small{display:block;margin-top:2px;font-size:10px;color:#6f84a0;font-weight:500}
.warehouse-loading-number{font-weight:800;color:#0d5fca!important}
.warehouse-loading-flag{margin-right:7px;font-size:16px;vertical-align:-1px}
.warehouse-loading-pallets{text-align:center;font-weight:800}
.warehouse-loading-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 11px;font-size:10px;font-weight:800;white-space:nowrap}
.warehouse-loading-times{margin-top:4px!important;font-size:9px!important;color:#6b7f99!important}
.warehouse-loading-actions{white-space:nowrap}
.warehouse-loading-actions button{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:4px;border:1px solid #dfe7f1;border-radius:7px;background:#fff;color:#31537e;font-size:12px}
.warehouse-loading-actions button:hover{background:#f1f6fc}
.warehouse-loadings-empty{padding:28px!important;text-align:center!important;color:#7890ab!important;font-size:12px!important}
.warehouse-loadings-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:10px 14px;color:#55708f;font-size:11px}
.warehouse-loadings-pagination>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.warehouse-loadings-page-size{height:34px;min-width:54px;border:1px solid #d8e1ec;border-radius:8px;background:#fff;color:#24486f;font-weight:800}
.warehouse-loadings-pages{display:flex;align-items:center;gap:5px}
.warehouse-loadings-pages button{min-width:32px;height:32px;border:1px solid #d8e1ec;border-radius:7px;background:#fff;color:#31537e;font-size:11px;font-weight:800}
.warehouse-loadings-pages button.is-active{border-color:#1670ed;background:#1670ed;color:#fff}
.warehouse-loadings-pages button:disabled{opacity:.35}
.warehouse-loading-preview{display:flex;flex-direction:column;min-height:650px}
.warehouse-loading-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px 12px;border-bottom:1px solid #e2e8f0}
.warehouse-preview-eyebrow{font-size:9px;font-weight:800;text-transform:uppercase;color:#6f84a0;letter-spacing:.04em}
.warehouse-loading-preview-head h3{margin-top:3px;font-size:17px;font-weight:900;line-height:1.15;color:#163a66}
.warehouse-loading-preview-head p{margin-top:6px;font-size:10px;color:#71859f}
.warehouse-preview-head-actions{display:flex;align-items:center;gap:8px}
.warehouse-preview-close{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dbe4ef;border-radius:7px;background:#fff;color:#496681;font-size:18px;line-height:1}
.warehouse-preview-info{padding:16px 14px}
.warehouse-preview-info h4{margin-bottom:12px;font-size:11px;font-weight:900;color:#173b68}
.warehouse-preview-info dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:9px 10px;font-size:11px}
.warehouse-preview-info dt{color:#5e7897;font-weight:600}
.warehouse-preview-info dd{margin:0;color:#173b68;font-weight:700;min-width:0;overflow-wrap:anywhere}
.warehouse-preview-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.warehouse-preview-tabs button{height:42px;border-right:1px solid #e2e8f0;background:#f8fafc;color:#58708e;font-size:11px;font-weight:800}
.warehouse-preview-tabs button:last-child{border-right:0}
.warehouse-preview-tabs button.is-active{background:#fff;color:#0f63d6;box-shadow:inset 0 -2px #1670ed}
.warehouse-preview-tab-body{max-height:360px;overflow:auto;padding:14px}
.warehouse-preview-loads{display:flex;flex-direction:column;gap:9px}
.warehouse-preview-loads>div{border:1px solid #e2e8f0;border-radius:8px;padding:10px}
.warehouse-preview-loads b{font-size:11px;color:#173b68}
.warehouse-preview-loads p,.warehouse-preview-loads small{margin-top:3px;font-size:10px;color:#6d829c}
.warehouse-preview-empty{border:1px dashed #dbe4ef;border-radius:8px;background:#f8fafc;padding:16px;text-align:center;font-size:11px;color:#7890ab}
.warehouse-preview-empty-main{margin:16px}
.warehouse-preview-history{display:flex;flex-direction:column;gap:0}
.warehouse-history-row{position:relative;padding:0 0 18px 22px}
.warehouse-history-row b{display:block;font-size:11px;color:#0d5fca}
.warehouse-history-row small{display:block;margin-top:2px;font-size:9px;color:#70849d}
.warehouse-history-row p{margin-top:4px;font-size:10px;color:#3f5e80}
.warehouse-history-dot{position:absolute;left:1px;top:4px;width:8px;height:8px;border-radius:50%;background:#1670ed}
.warehouse-history-line{position:absolute;left:4.5px;top:13px;width:1px;height:calc(100% - 5px);background:#cfe1fb}
.warehouse-loadings-week{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
.warehouse-loadings-week>button{border:1px solid #e1e8f1;border-radius:10px;background:#fff;padding:12px;text-align:left;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.warehouse-loadings-week>button.is-selected{border-color:#7ab2f7;background:#f0f7ff}
.warehouse-week-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.warehouse-week-card-head b{display:block;color:#173b68;font-size:12px}
.warehouse-week-card-head small{display:block;margin-top:3px;color:#6e849e;font-size:10px}
.warehouse-week-card-body{display:grid;gap:4px;margin-top:10px;color:#31537e;font-size:11px}
@media(max-width:1500px){.warehouse-loadings-toolbar{flex-wrap:wrap}.warehouse-loadings-search{flex:1 1 100%}.warehouse-loadings-layout{grid-template-columns:minmax(0,1fr) 330px}.warehouse-loading-preview{min-height:600px}}
@media(max-width:1180px){.warehouse-loadings-layout{grid-template-columns:1fr}.warehouse-loading-preview{min-height:0}.warehouse-loadings-week{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.warehouse-page-loadings{padding-left:10px!important;padding-right:10px!important}.warehouse-loadings-toolbar{align-items:stretch}.warehouse-loadings-filters{overflow-x:auto}.warehouse-loadings-select,.warehouse-loadings-sort{min-width:150px}.warehouse-loadings-week{grid-template-columns:1fr}.warehouse-loading-preview-head{flex-wrap:wrap}}

/* R58: resources typography normalized to 12px body / 14px titles and headers */
.tps-resources-page{font-size:12px!important}
.tps-resources-page .tps-resource-page-header h1,
.tps-resources-page .resource-add-title,
.tps-resources-page .resource-table-title,
.tps-resources-page .resource-table-title strong,
.tps-resources-page .resource-table thead th{font-size:14px!important}
.tps-resources-page .tps-resource-tabs button,
.tps-resources-page .tps-resource-tabs-main button,
.tps-resources-page .resource-add-card label,
.tps-resources-page .resource-add-card label>input:not([type=checkbox]),
.tps-resources-page .resource-add-card label>select,
.tps-resources-page .resource-add-card label input[list],
.tps-resources-page .resource-check-label,
.tps-resources-page .resource-save-btn,
.tps-resources-page .resource-table,
.tps-resources-page .resource-table tbody td,
.tps-resources-page .resource-table-search input,
.tps-resources-page .resource-direction-chips button,
.tps-resources-page .resource-local-sort,
.tps-resources-page .resource-local-sort select,
.tps-resources-page .resource-row-actions button,
.tps-resources-page .resource-cell-input,
.tps-resources-page .resource-cell-select,
.tps-resources-page .resource-active-edit,
.tps-resources-page .tps-resource-inline-notice,
.tps-resources-page .resource-table-title>span:last-child{font-size:12px!important}

/* R59: show 7 visible rows in every resources table */
@media(min-width:901px){
  .tps-resources-page .resource-table-scroll,
  .tps-resources-page .resource-table-driver .resource-table-scroll{height:295px!important;max-height:295px!important;min-height:295px!important;overflow-y:auto!important;overflow-x:auto!important}
}

/* R60: settings profile in two columns */
.settings-profile-layout{width:100%;max-width:none!important}
.settings-profile-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
@media (min-width: 1100px){.settings-profile-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* R61: Profile aligned with Settings width + admin messages action in Profile */
.settings-hub .settings-profile-layout{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
.settings-hub .settings-profile-grid{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;align-items:start!important}
.settings-hub .settings-profile-grid>div,.settings-hub .settings-profile-grid>form{min-width:0!important;width:100%!important;margin:0!important}
@media (min-width:1100px){.settings-hub .settings-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
#tps-system-messages-admin-tab{flex:0 0 auto}

/* R62: Profile full settings width + messages as static full-width card */
.settings-hub .settings-profile-layout{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
.settings-hub .settings-profile-header{display:block!important;width:100%!important;max-width:none!important}
.settings-hub .settings-profile-grid{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;align-items:stretch!important}
.settings-hub .settings-profile-grid>div,.settings-hub .settings-profile-grid>form{min-width:0!important;width:100%!important;max-width:none!important;height:100%!important;margin:0!important}
@media (min-width:1100px){.settings-hub .settings-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* R63: profile width exactly follows other Settings tabs */
.settings-hub{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
.settings-hub .settings-tab-content{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.settings-hub .settings-tab-content>.settings-profile-layout{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.settings-hub .settings-profile-grid{width:100%!important;max-width:none!important;min-width:0!important}
.settings-hub .tps-sm-profile-panel{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}

/* R64: browser notification control moved to Settings > Profile */
@media(max-width:720px){.settings-profile-grid .rounded-lg.border.bg-slate-50{flex-wrap:wrap}.settings-profile-grid .rounded-lg.border.bg-slate-50>button{width:100%}}

/* R65: improved settings top menu */
.settings-hub .settings-main-nav,.settings-hub .settings-system-nav{width:100%;align-items:center;box-sizing:border-box!important}
.settings-hub .settings-main-nav button,.settings-hub .settings-system-nav button{border:none!important;outline:none}
.settings-hub .settings-main-tab,.settings-hub .settings-system-tab{min-height:38px;line-height:1.2}
.settings-hub .settings-main-tab-active,.settings-hub .settings-system-tab-active{border-color:transparent!important}
@media (max-width: 760px){.settings-hub .settings-main-nav,.settings-hub .settings-system-nav{gap:6px!important}.settings-hub .settings-main-tab,.settings-hub .settings-system-tab{flex:1 1 auto;text-align:center;justify-content:center}}

/* R66: settings width aligned with module */
.settings-hub{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
.settings-hub>header,.settings-hub>.settings-main-nav,.settings-hub>.settings-tab-content{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
.settings-hub>.settings-main-nav{margin-left:0!important;margin-right:0!important}
.settings-hub .settings-tab-content>*{width:100%;max-width:none!important}

/* R67: loading form driver/vehicle order */
.warehouse-loading-create-form input[list^="warehouse-loading-drivers-"]{background:#fff}
.warehouse-loading-create-form input[list="warehouse-loading-trucks"],.warehouse-loading-create-form input[list="warehouse-loading-trailers"]{background:#f8fafc}

/* R68: loading driver search confirms first match with Enter */
.warehouse-loading-create-form .warehouse-driver-search{position:relative}
.warehouse-loading-create-form .warehouse-driver-enter-hint{display:block;margin-top:4px;padding:5px 8px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1e40af;font-size:10px;line-height:1.2}
.warehouse-loading-create-form .warehouse-driver-enter-hint b{font-weight:800}

/* R69: driver search supports mouse click and Enter */
.warehouse-page .warehouse-loading-create-form .warehouse-driver-search{position:relative;display:grid;gap:5px;font-size:11px;font-weight:800;color:#334e68;min-width:0}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-label{display:block}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-options{position:absolute;z-index:120;left:0;right:0;top:100%;margin-top:3px;max-height:180px;overflow-y:auto;border:1px solid #bfdbfe;border-radius:8px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.16);padding:4px}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:6px;background:#fff;padding:8px 9px;text-align:left;font-size:11px;font-weight:600;color:#173761}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-option:hover,.warehouse-page .warehouse-loading-create-form .warehouse-driver-option.is-first{background:#eff6ff;color:#1d4ed8}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-option small{flex:0 0 auto;border:1px solid #bfdbfe;border-radius:5px;background:#fff;padding:1px 5px;font-size:9px;font-weight:800;color:#64748b}

/* R71: Warehouse > Loadings week day selector +20%, gaps +2px */
.warehouse-page .warehouse-loading-week-filter{gap:4px!important}
.warehouse-page .warehouse-loading-week-filter button{height:34px!important;min-width:30px!important;border-radius:7px!important;padding:3px 5px!important}
.warehouse-page .warehouse-loading-week-filter button small{font-size:7.2px!important}
.warehouse-page .warehouse-loading-week-filter button b{font-size:10.8px!important}
@media(max-width:1366px){.warehouse-page .warehouse-loading-week-filter{gap:4px!important}.warehouse-page .warehouse-loading-week-filter button{height:34px!important;min-width:26px!important;padding:3px 4px!important}}

/* R72: Warehouse typography normalization */
.warehouse-page,
.warehouse-page button,
.warehouse-page input,
.warehouse-page select,
.warehouse-page textarea,
.warehouse-page label,
.warehouse-page p,
.warehouse-page span,
.warehouse-page small,
.warehouse-page b,
.warehouse-page strong,
.warehouse-page td,
.warehouse-page dd,
.warehouse-page dt{font-size:12px!important}

.warehouse-page h1,
.warehouse-page h2,
.warehouse-page h3,
.warehouse-page h4,
.warehouse-page h5,
.warehouse-page h6{font-size:14px!important;line-height:1.3!important}

.warehouse-page .warehouse-tabs button,
.warehouse-page thead th,
.warehouse-page .warehouse-loading-list-head,
.warehouse-page .warehouse-loading-list-head *,
.warehouse-page .warehouse-task-list-head,
.warehouse-page .warehouse-task-list-head *,
.warehouse-page .warehouse-workers-head,
.warehouse-page .warehouse-workers-head *,
.warehouse-page .warehouse-settings-head,
.warehouse-page .warehouse-settings-head *,
.warehouse-page .warehouse-receipt-day-head,
.warehouse-page .warehouse-receipt-day-head *,
.warehouse-page .warehouse-decision-trailer-head,
.warehouse-page .warehouse-decision-trailer-head *,
.warehouse-page .warehouse-screen-lane-head,
.warehouse-page .warehouse-screen-lane-head *{font-size:15px!important;line-height:1.25!important}

/* R73: Warehouse typography 12px base, 14px headings, buttons >= 12px */
.warehouse-page,
.warehouse-page input,
.warehouse-page select,
.warehouse-page textarea,
.warehouse-page label,
.warehouse-page p,
.warehouse-page span,
.warehouse-page small,
.warehouse-page b,
.warehouse-page strong,
.warehouse-page td,
.warehouse-page dd,
.warehouse-page dt{font-size:12px!important}

.warehouse-page button{font-size:12px!important}
.warehouse-page button small,
.warehouse-page button span,
.warehouse-page button b,
.warehouse-page button strong{font-size:12px!important}

.warehouse-page h1,
.warehouse-page h2,
.warehouse-page h3,
.warehouse-page h4,
.warehouse-page h5,
.warehouse-page h6,
.warehouse-page .warehouse-tabs button,
.warehouse-page thead th,
.warehouse-page .warehouse-loading-list-head,
.warehouse-page .warehouse-loading-list-head *,
.warehouse-page .warehouse-task-list-head,
.warehouse-page .warehouse-task-list-head *,
.warehouse-page .warehouse-workers-head,
.warehouse-page .warehouse-workers-head *,
.warehouse-page .warehouse-settings-head,
.warehouse-page .warehouse-settings-head *,
.warehouse-page .warehouse-receipt-day-head,
.warehouse-page .warehouse-receipt-day-head *,
.warehouse-page .warehouse-decision-trailer-head,
.warehouse-page .warehouse-decision-trailer-head *,
.warehouse-page .warehouse-screen-lane-head,
.warehouse-page .warehouse-screen-lane-head *{font-size:14px!important;line-height:1.3!important}

/* R74: warehouse manager shift workers in one line */
.warehouse-page .warehouse-shift-worker-row{display:flex!important;align-items:center!important;gap:10px!important;white-space:nowrap!important}
.warehouse-page .warehouse-shift-worker-name{line-height:32px!important}
.warehouse-page .warehouse-shift-time-inline input{height:32px!important}
.warehouse-page .warehouse-shift-toggle{position:relative!important;display:block!important}

/* R75: manager weekday tiles next to shift heading */
.warehouse-page .warehouse-shift-heading-row{min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:2px!important}
.warehouse-page .warehouse-shift-heading-row>div:first-of-type{min-width:max-content!important}
.warehouse-page .warehouse-shift-weekdays{margin-left:8px!important;gap:3px!important;flex:0 0 auto!important}
.warehouse-page .warehouse-shift-weekdays button{height:30px!important;min-width:42px!important}
@media(max-width:1100px){.warehouse-page .warehouse-shift-heading-row{align-items:flex-start!important}.warehouse-page .warehouse-shift-weekdays{margin-left:4px!important}}

/* R76: manager shift header spacing + compact weekday tiles */
.warehouse-page .warehouse-shift-weekdays{margin-left:18px!important;gap:6px!important}
.warehouse-page .warehouse-shift-weekdays button{display:flex!important;align-items:center!important;justify-content:center!important;height:32px!important;min-width:98px!important;padding:4px 8px!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
.warehouse-page .warehouse-shift-worker-row{gap:4px!important}
@media(max-width:1100px){.warehouse-page .warehouse-shift-weekdays{margin-left:18px!important;gap:6px!important}}

/* R77: manager weekday count badge + compact worker cards */
.warehouse-page .warehouse-shift-weekdays button{gap:6px!important;min-width:102px!important;padding:4px 6px!important}
.warehouse-page .warehouse-shift-weekdays .warehouse-shift-day-label{display:block!important;background:transparent!important;padding:0!important;border-radius:0!important;font-size:12px!important;font-weight:800!important;color:inherit!important}
.warehouse-page .warehouse-shift-weekdays .warehouse-shift-day-count{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;border-radius:999px!important;background:#2563eb!important;padding:0!important;font-size:10px!important;font-weight:900!important;line-height:1!important;color:#fff!important}
.warehouse-page .warehouse-shift-worker-row{gap:4px!important;min-width:318px!important;padding:6px!important}
.warehouse-page .warehouse-shift-worker-name{display:block!important;min-width:68px!important;max-width:82px!important;line-height:1.15!important;white-space:normal!important}
.warehouse-page .warehouse-shift-worker-name>span+span{margin-top:2px!important}
.warehouse-page .warehouse-shift-time-inline{gap:4px!important}
.warehouse-page .warehouse-shift-time-inline input{width:78px!important;padding-left:4px!important;padding-right:4px!important}

/* R80: Warehouse > Tasks reference date bar, two-column layout, right-side new-task drawer */
.warehouse-page .warehouse-tasks-v3{width:100%!important;min-width:0!important}
.warehouse-page .warehouse-task-datebar{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;margin-bottom:12px!important;padding:9px 10px!important;border:1px solid #dbe5f0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 1px 3px rgba(15,23,42,.05)!important;overflow-x:auto!important}
.warehouse-page .warehouse-task-status-tabs{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
.warehouse-page .warehouse-task-status-tabs button{display:flex!important;align-items:center!important;gap:7px!important;height:38px!important;padding:0 12px!important;border:1px solid #d9e3ef!important;border-radius:8px!important;background:#f8fafc!important;color:#334e68!important;font-weight:800!important;white-space:nowrap!important}
.warehouse-page .warehouse-task-status-tabs button.is-active{border-color:#60a5fa!important;background:#eff6ff!important;color:#1d4ed8!important}
.warehouse-page .warehouse-task-status-tabs button span{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#e2e8f0!important;color:#64748b!important;font-size:11px!important;font-weight:900!important}
.warehouse-page .warehouse-task-status-tabs button.is-active span{background:#bfdbfe!important;color:#1d4ed8!important}
.warehouse-page .warehouse-task-week-selector{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important}
.warehouse-page .warehouse-task-week-arrow{display:grid!important;place-items:center!important;width:34px!important;height:38px!important;border:1px solid #d9e3ef!important;border-radius:8px!important;background:#fff!important;color:#334e68!important;font-size:18px!important;font-weight:800!important}
.warehouse-page .warehouse-task-weekdays{display:flex!important;align-items:center!important;gap:4px!important}
.warehouse-page .warehouse-task-weekdays button{display:grid!important;grid-template-rows:auto auto!important;place-items:center!important;min-width:40px!important;height:38px!important;padding:2px 5px!important;border:1px solid #d9e3ef!important;border-radius:7px!important;background:#fff!important;color:#334e68!important;line-height:1!important}
.warehouse-page .warehouse-task-weekdays button small{font-size:9px!important;font-weight:800!important;line-height:1!important}
.warehouse-page .warehouse-task-weekdays button b{font-size:12px!important;font-weight:900!important;line-height:1!important}
.warehouse-page .warehouse-task-weekdays button.is-active{border-color:#3b82f6!important;background:#eff6ff!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px #93c5fd!important}
.warehouse-page .warehouse-task-datebar .warehouse-new-task-button{margin-left:auto!important;flex:0 0 auto!important;height:38px!important;padding:0 14px!important;border-radius:8px!important;background:#2563eb!important;color:#fff!important;font-weight:800!important}

.warehouse-page .warehouse-task-split{display:grid!important;grid-template-columns:minmax(0,1fr) 390px!important;gap:12px!important;align-items:start!important;min-width:0!important}
.warehouse-page .warehouse-task-list{min-width:0!important;overflow:hidden!important;border:1px solid #dbe5f0!important;border-radius:12px!important;background:#fff!important}
.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{display:grid!important;grid-template-columns:92px minmax(150px,1.15fr) minmax(160px,1.35fr) minmax(110px,.9fr) minmax(100px,.9fr) minmax(95px,.75fr) minmax(105px,.82fr) 78px!important;gap:8px!important;align-items:center!important}
.warehouse-page .warehouse-task-list-head{padding:9px 10px!important;border-bottom:1px solid #dbe5f0!important;background:#edf4fc!important;color:#52657d!important;font-weight:900!important;text-transform:uppercase!important}
.warehouse-page .warehouse-task-list-row{width:100%!important;padding:9px 10px!important;border-bottom:1px solid #eef2f7!important;background:#fff!important}
.warehouse-page .warehouse-task-list-row:last-child{border-bottom:0!important}
.warehouse-page .warehouse-task-list-row:hover{background:#f8fbff!important}
.warehouse-page .warehouse-task-list-row.is-selected{background:#eff6ff!important;box-shadow:inset 3px 0 0 #2563eb!important}
.warehouse-page .warehouse-task-list-row small{font-size:11px!important;line-height:1.25!important}
.warehouse-page .warehouse-task-empty{padding:28px!important;text-align:center!important;color:#64748b!important}

.warehouse-page .warehouse-task-details{position:sticky!important;top:0!important;min-width:0!important;overflow:hidden!important;border:1px solid #dbe5f0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 1px 3px rgba(15,23,42,.05)!important}
.warehouse-page .warehouse-task-details>header{position:relative!important;padding:12px 14px!important;border-bottom:1px solid #dbe5f0!important;background:#fff!important}
.warehouse-page .warehouse-task-details>header small{display:block!important;margin-bottom:3px!important;color:#7c8ca0!important;font-size:10px!important;font-weight:900!important;letter-spacing:.06em!important}
.warehouse-page .warehouse-task-details>header h3{padding-right:105px!important;color:#173761!important;font-size:14px!important;font-weight:900!important}
.warehouse-page .warehouse-task-details>header>span{position:absolute!important;right:12px!important;top:14px!important}
.warehouse-page .warehouse-task-details-body{padding:12px!important}
.warehouse-page .warehouse-task-details dl{overflow:hidden!important;border:1px solid #e2e8f0!important;border-radius:8px!important}
.warehouse-page .warehouse-task-details dl>div{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;gap:10px!important;padding:8px 10px!important;border-bottom:1px solid #f1f5f9!important}
.warehouse-page .warehouse-task-details dl>div:last-child{border-bottom:0!important}
.warehouse-page .warehouse-task-details dt{color:#64748b!important}
.warehouse-page .warehouse-task-details dd{min-width:0!important;font-weight:700!important;color:#1e293b!important;overflow-wrap:anywhere!important}
.warehouse-page .warehouse-task-history{margin-top:12px!important;padding:10px!important;border:1px solid #e2e8f0!important;border-radius:8px!important}
.warehouse-page .warehouse-task-history>b{display:block!important;margin-bottom:7px!important;color:#173761!important}
.warehouse-page .warehouse-task-history>div{max-height:180px!important;overflow:auto!important}
.warehouse-page .warehouse-task-history>div>div{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:5px 0!important;border-bottom:1px solid #f1f5f9!important}
.warehouse-page .warehouse-task-details-empty{padding:32px 18px!important;text-align:center!important;color:#94a3b8!important}

.warehouse-page .warehouse-task-drawer-backdrop{position:fixed!important;inset:0!important;z-index:120!important;display:flex!important;justify-content:flex-end!important;background:rgba(15,23,42,.28)!important}
.warehouse-page .warehouse-task-drawer{display:flex!important;flex-direction:column!important;width:min(540px,100vw)!important;height:100%!important;background:#fff!important;box-shadow:-14px 0 35px rgba(15,23,42,.16)!important}
.warehouse-page .warehouse-task-drawer>header{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:18px 20px!important;border-bottom:1px solid #dbe5f0!important}
.warehouse-page .warehouse-task-drawer>header small{display:block!important;color:#2563eb!important;font-size:10px!important;font-weight:900!important;letter-spacing:.08em!important}
.warehouse-page .warehouse-task-drawer>header h3{margin-top:2px!important;color:#173761!important;font-size:18px!important;font-weight:900!important}
.warehouse-page .warehouse-task-drawer>header p{margin-top:2px!important;color:#64748b!important}
.warehouse-page .warehouse-task-drawer>header>button{margin-left:auto!important;font-size:24px!important;line-height:1!important;color:#94a3b8!important}
.warehouse-page .warehouse-task-drawer-body{flex:1 1 auto!important;overflow-y:auto!important;padding:18px 20px!important}
.warehouse-page .warehouse-task-drawer label{display:grid!important;gap:5px!important;color:#475569!important;font-weight:800!important}
.warehouse-page .warehouse-task-drawer input,.warehouse-page .warehouse-task-drawer select,.warehouse-page .warehouse-task-drawer textarea{width:100%!important;border:1px solid #cbd5e1!important;border-radius:8px!important;background:#fff!important;padding:9px 10px!important;font-weight:400!important;color:#0f172a!important}
.warehouse-page .warehouse-task-drawer textarea{min-height:100px!important}
.warehouse-page .warehouse-task-drawer .warehouse-task-type-select{margin-bottom:14px!important}
.warehouse-page .warehouse-task-drawer .warehouse-task-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.warehouse-page .warehouse-task-drawer .warehouse-task-form-grid .wide{grid-column:1/-1!important}
.warehouse-page .warehouse-task-drawer>footer{display:flex!important;justify-content:flex-end!important;gap:10px!important;padding:14px 20px!important;border-top:1px solid #dbe5f0!important;background:#fff!important}
.warehouse-page .warehouse-task-drawer>footer button{min-width:110px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;padding:9px 14px!important;font-weight:800!important;color:#173761!important}
.warehouse-page .warehouse-task-drawer>footer button:last-child{border-color:#2563eb!important;background:#2563eb!important;color:#fff!important}
.warehouse-page .warehouse-task-drawer>footer button:disabled{opacity:.45!important}
@media(max-width:1280px){.warehouse-page .warehouse-task-split{grid-template-columns:minmax(0,1fr)!important}.warehouse-page .warehouse-task-details{position:static!important}.warehouse-page .warehouse-task-list{overflow-x:auto!important}.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{min-width:1080px!important}}
@media(max-width:680px){.warehouse-page .warehouse-task-datebar{align-items:flex-start!important;flex-wrap:wrap!important}.warehouse-page .warehouse-task-datebar .warehouse-new-task-button{margin-left:0!important}.warehouse-page .warehouse-task-drawer .warehouse-task-form-grid{grid-template-columns:1fr!important}.warehouse-page .warehouse-task-drawer .warehouse-task-form-grid .wide{grid-column:auto!important}}

/* R81: loading driver picker - all drivers without direction, 5 suggestions and working search */
.warehouse-page .warehouse-loading-create-form .warehouse-driver-options{max-height:220px!important;min-width:100%!important}
.warehouse-page .warehouse-loading-create-form .warehouse-driver-option{min-height:34px!important;display:flex!important;align-items:center!important;width:100%!important}

/* R82: task screenshot paste field */
.warehouse-task-drawer .warehouse-loading-screens{grid-column:1/-1!important}
.warehouse-task-drawer .warehouse-loading-screens-drop{min-height:72px!important}

/* R83: Warehouse > Loadings day tiles same size as Tasks */
.warehouse-page .warehouse-loading-week-filter{gap:4px!important}
.warehouse-page .warehouse-loading-week-filter button{display:grid!important;grid-template-rows:auto auto!important;place-items:center!important;min-width:40px!important;height:38px!important;padding:2px 5px!important;border-radius:7px!important;line-height:1!important}
.warehouse-page .warehouse-loading-week-filter button small{font-size:9px!important;font-weight:800!important;line-height:1!important}
.warehouse-page .warehouse-loading-week-filter button b{font-size:12px!important;font-weight:900!important;line-height:1!important}
@media(max-width:1366px){.warehouse-page .warehouse-loading-week-filter button{min-width:40px!important;height:38px!important;padding:2px 5px!important}}


/* R84: Warehouse > Loadings toolbar matches Tasks */
.warehouse-page .warehouse-loadings-summary-bar .warehouse-loading-toolbar{display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-start!important;flex:1 1 auto!important;min-width:0!important}
.warehouse-page .warehouse-loading-view-tabs{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.warehouse-page .warehouse-loading-view-tabs button{display:flex!important;align-items:center!important;gap:7px!important;height:38px!important;padding:0 12px!important;border:1px solid #d9e3ef!important;border-radius:8px!important;background:#f8fafc!important;color:#334e68!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
.warehouse-page .warehouse-loading-view-tabs button:hover{background:#f8fafc!important}
.warehouse-page .warehouse-loading-view-tabs button.is-active{border-color:#60a5fa!important;background:#eff6ff!important;color:#1d4ed8!important}
.warehouse-page .warehouse-loading-view-tabs span{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#e2e8f0!important;color:#64748b!important;font-size:11px!important;font-weight:900!important;padding:0!important}
.warehouse-page .warehouse-loading-view-tabs button.is-active span{background:#bfdbfe!important;color:#1d4ed8!important}
.warehouse-page .warehouse-loading-week-filter{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important;min-width:0!important}
.warehouse-page .warehouse-loading-week-filter button{display:grid!important;grid-template-rows:auto auto!important;place-items:center!important;min-width:40px!important;height:38px!important;padding:2px 5px!important;border:1px solid #d9e3ef!important;border-radius:7px!important;background:#fff!important;color:#334e68!important;line-height:1!important}
.warehouse-page .warehouse-loading-week-filter button small,.warehouse-page .warehouse-loading-week-filter button b{display:block!important;line-height:1!important}
.warehouse-page .warehouse-loading-week-filter button small{font-size:9px!important;font-weight:800!important;color:#64748b!important;text-transform:uppercase!important}
.warehouse-page .warehouse-loading-week-filter button b{font-size:12px!important;font-weight:900!important}
.warehouse-page .warehouse-loading-week-filter button.is-active{border-color:#3b82f6!important;background:#eff6ff!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px #93c5fd!important}
.warehouse-page .warehouse-loading-week-filter>button:first-child,.warehouse-page .warehouse-loading-week-filter>button:last-child{grid-template-rows:none!important;place-items:center!important;width:34px!important;min-width:34px!important;padding:0!important;font-size:18px!important;font-weight:800!important}
.warehouse-page .warehouse-loading-week-filter>button:first-child small,.warehouse-page .warehouse-loading-week-filter>button:first-child b,.warehouse-page .warehouse-loading-week-filter>button:last-child small,.warehouse-page .warehouse-loading-week-filter>button:last-child b{display:none!important}
.warehouse-page .warehouse-loading-direction-filter>button,.warehouse-page .warehouse-loading-layout-switch button{height:38px!important;padding:0 12px!important;border:1px solid #d9e3ef!important;border-radius:8px!important;background:#fff!important;color:#334e68!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
.warehouse-page .warehouse-loading-direction-filter>button.is-filtered,.warehouse-page .warehouse-loading-layout-switch button.active{border-color:#60a5fa!important;background:#eff6ff!important;color:#1d4ed8!important}
.warehouse-page .warehouse-loading-layout-switch{display:flex!important;align-items:center!important;gap:6px!important;justify-content:flex-end!important;margin:0!important}
.warehouse-page .warehouse-add-loading{height:38px!important;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important}
@media(max-width:1366px){.warehouse-page .warehouse-loading-week-filter>button:not(:first-child):not(:last-child){min-width:40px!important;height:38px!important;padding:2px 5px!important}}


/* R85: Warehouse > Domestic receipts typography, capacity warning, notes */
.warehouse-page .warehouse-domestic-receipts{font-size:12px!important}
.warehouse-page .warehouse-domestic-receipts button,.warehouse-page .warehouse-domestic-receipts input,.warehouse-page .warehouse-domestic-receipts select,.warehouse-page .warehouse-domestic-receipts textarea,.warehouse-page .warehouse-domestic-receipts label,.warehouse-page .warehouse-domestic-receipts p,.warehouse-page .warehouse-domestic-receipts span,.warehouse-page .warehouse-domestic-receipts small,.warehouse-page .warehouse-domestic-receipts b,.warehouse-page .warehouse-domestic-receipts strong{font-size:12px!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-domestic-header{font-size:12px!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-receipt-row{font-size:12px!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-receipt-company small{font-size:14px!important;line-height:1.2!important;font-weight:600!important;color:#334e68!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-receipt-load-metrics{border-radius:8px;padding:4px 3px;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.warehouse-page .warehouse-domestic-receipts .warehouse-receipt-load-warning{border:1px solid #fdba74!important;background:#fff7ed!important;box-shadow:0 0 0 2px rgba(251,146,60,.08)!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-load-notes-detail{min-width:0;white-space:normal;overflow-wrap:anywhere;color:#475569!important}
.warehouse-page .warehouse-domestic-receipts .warehouse-load-details article{font-size:12px!important}


/* R86: Domestic receipts — slightly wider warehouse selector */
.warehouse-page .warehouse-domestic-header,.warehouse-page .warehouse-receipt-row{grid-template-columns:24px 1.25fr 1.35fr .65fr 1.45fr 1.1fr .45fr minmax(168px,1fr)!important}
.warehouse-page .warehouse-receipt-decision{min-width:168px!important}
.warehouse-page .warehouse-receipt-decision select{min-width:108px!important}


/* R87: Tasks layout widths and column spacing aligned to Loadings */
.warehouse-page .warehouse-task-commandbar{gap:14px!important;padding:10px 12px!important}
.warehouse-page .warehouse-task-split{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:12px!important;align-items:stretch!important;min-width:0!important}
.warehouse-page .warehouse-task-list,.warehouse-page .warehouse-task-details{min-width:0!important;border:1px solid #dfe7f1!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 10px rgba(15,23,42,.035)!important;overflow:hidden!important}
.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{grid-template-columns:88px minmax(180px,1.05fr) minmax(270px,1.65fr) minmax(120px,.72fr) minmax(180px,.95fr) minmax(140px,.82fr) minmax(165px,.92fr) 90px!important;gap:8px!important;min-width:1180px!important;padding:10px 12px!important}
.warehouse-page .warehouse-task-list-head{min-height:42px!important;border-bottom:1px solid #e2e8f0!important;background:#f7f9fc!important;color:#526d8e!important;font-size:10px!important;letter-spacing:.02em!important}
.warehouse-page .warehouse-task-list-row{min-height:54px!important;border-bottom:1px solid #e8eef5!important;font-size:12px!important;color:#1d3d66!important}
.warehouse-page .warehouse-task-name b{font-size:12px!important;color:#173b68!important}
.warehouse-page .warehouse-task-name small,.warehouse-page .warehouse-task-list-row small{font-size:10px!important;color:#6f84a0!important;font-weight:500!important}
.warehouse-page .warehouse-task-description{line-height:1.3!important;color:#475569!important}
.warehouse-page .warehouse-task-priority{padding:5px 11px!important;font-size:10px!important;font-weight:800!important}
.warehouse-page .warehouse-task-details{position:sticky!important;top:0!important}
@media(max-width:1280px){.warehouse-page .warehouse-task-split{grid-template-columns:minmax(0,1fr)!important}.warehouse-page .warehouse-task-details{position:static!important}.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{min-width:1080px!important}}


/* R88: Tasks dimensions exactly aligned with Loadings */
.warehouse-page .warehouse-tasks-view.warehouse-tasks-v3{width:100%!important;max-width:1920px!important;margin:0 auto!important;min-width:0!important}
.warehouse-page .warehouse-task-datebar{margin-bottom:14px!important}
.warehouse-page .warehouse-task-split{display:grid!important;grid-template-columns:minmax(0,1fr) 430px!important;gap:14px!important;align-items:start!important;min-width:0!important}
.warehouse-page .warehouse-task-list{width:100%!important;min-width:0!important}
.warehouse-page .warehouse-task-details{width:auto!important;min-width:0!important}
@media(max-width:1279px){.warehouse-page .warehouse-task-split{display:block!important}.warehouse-page .warehouse-task-details{position:relative!important;top:auto!important;width:auto!important;margin-top:14px!important}}


/* R89: Tasks full module width exactly like Loadings */
.warehouse-page>.warehouse-tasks-view.warehouse-tasks-v3{width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
.warehouse-page .warehouse-task-datebar{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
.warehouse-page .warehouse-task-split{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;grid-template-columns:minmax(0,1fr) 430px!important;gap:14px!important;box-sizing:border-box!important}
.warehouse-page .warehouse-task-list{width:100%!important;max-width:none!important;min-width:0!important}
.warehouse-page .warehouse-task-details{width:430px!important;max-width:430px!important;min-width:430px!important;box-sizing:border-box!important}
@media(max-width:1279px){.warehouse-page .warehouse-task-details{width:100%!important;max-width:none!important;min-width:0!important}.warehouse-page .warehouse-task-split{display:block!important}}


/* R90: Tasks date bar spacing +50% */
.warehouse-page .warehouse-task-datebar{margin-bottom:21px!important}

/* R91: group domestic receipts by trailer in Manager > Unassigned */
.warehouse-page .warehouse-domestic-trailer-group{border-color:#93c5fd!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;box-shadow:0 3px 12px rgba(37,99,235,.08)!important}
.warehouse-page .warehouse-domestic-group-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:20px!important;border-radius:999px!important;background:#dbeafe!important;padding:2px 7px!important;color:#1d4ed8!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}
.warehouse-page .warehouse-domestic-group-meta{margin-top:6px!important;border:1px solid #bfdbfe!important;border-radius:7px!important;background:#eff6ff!important;padding:6px 7px!important;color:#31537e!important}
.warehouse-page .warehouse-domestic-group-meta>span{display:block!important;font-size:9px!important;font-weight:900!important;color:#1d4ed8!important}
.warehouse-page .warehouse-domestic-group-meta>small{display:block!important;margin-top:2px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;color:#64748b!important}

/* R93: Kierownik magazynu — pełna szerokość rzędów i kompaktowa obsada */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  grid-template-columns:270px minmax(0,1fr)!important;
  overflow-x:hidden!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  width:270px!important;
  min-width:270px!important;
  max-width:270px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:96px!important;
  display:flex!important;
  align-items:stretch!important;
  gap:6px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-lane-head{
  flex:0 0 150px!important;
  width:150px!important;
  min-width:150px!important;
  min-height:80px!important;
  padding:5px 7px 5px 3px!important;
  gap:5px!important;
  align-items:center!important;
}
.warehouse-page .warehouse-screen-worker-avatar{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  margin-right:4px!important;
  font-size:10px!important;
}
.warehouse-page .warehouse-screen-worker-identity{
  flex:1 1 auto!important;
  min-width:0!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-screen-worker-first,
.warehouse-page .warehouse-screen-worker-last{
  display:block!important;
  max-width:82px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-screen-worker-last{margin-top:1px!important}
.warehouse-page .warehouse-screen-worker-meta{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-top:5px!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-screen-worker-status{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  color:#059669!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
}
.warehouse-page .warehouse-screen-worker-count{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#eaf3ff!important;
  padding:2px 5px!important;
  color:#2563eb!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:800!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-lane-head>div.ml-auto{
  margin-left:3px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip{
  display:flex!important;
  flex:1 1 auto!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0 2px 2px 0!important;
  margin:0!important;
  scrollbar-gutter:stable!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card{
  flex:0 0 238px!important;
  width:238px!important;
  min-width:238px!important;
  max-width:238px!important;
  min-height:80px!important;
  margin:0!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-empty{
  display:none!important;
}
@media(max-width:1366px){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board{
    grid-template-columns:250px minmax(0,1fr)!important;
    min-width:0!important;
  }
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
    width:250px!important;
    min-width:250px!important;
    max-width:250px!important;
  }
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
    min-width:0!important;
  }
}


/* R95: manager shift navigation moved below heading; stats aligned with weekdays */
.warehouse-page .warehouse-shift-heading-row{overflow:visible!important;padding-bottom:0!important}
.warehouse-page .warehouse-shift-controls-row{min-width:0!important;padding-bottom:2px!important}
.warehouse-page .warehouse-shift-week-nav{gap:4px!important}
.warehouse-page .warehouse-shift-week-nav span{white-space:nowrap!important}
.warehouse-page .warehouse-shift-weekdays{margin-left:8px!important}
.warehouse-page .warehouse-shift-stats{margin-left:auto!important;padding-left:10px!important}
@media(max-width:1300px){.warehouse-page .warehouse-shift-controls-row{align-items:flex-start!important}.warehouse-page .warehouse-shift-stats{margin-left:8px!important}}


/* R97: Kierownik magazynu — nagłówek obsady, nawigacja, dni i statystyki w jednej linii */
.warehouse-page .warehouse-shift-topline{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:2px!important}
.warehouse-page .warehouse-shift-topline>h3{margin-right:4px!important;white-space:nowrap!important}
.warehouse-page .warehouse-shift-topline .warehouse-shift-week-nav{gap:4px!important;margin-left:0!important}
.warehouse-page .warehouse-shift-topline .warehouse-shift-week-nav span{white-space:nowrap!important}
.warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays{display:flex!important;align-items:center!important;flex:0 0 auto!important;margin-left:4px!important;gap:6px!important}
.warehouse-page .warehouse-shift-topline .warehouse-shift-stats{display:flex!important;align-items:center!important;flex:0 0 auto!important;margin-left:auto!important;padding-left:8px!important;gap:6px!important}
@media(max-width:1300px){.warehouse-page .warehouse-shift-topline .warehouse-shift-stats{margin-left:4px!important;padding-left:0!important}}

/* R98: manager cards vertical + animated arrows */
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head{
  flex:0 0 158px!important;
  width:158px!important;
  min-width:158px!important;
  min-height:96px!important;
  padding:8px 8px 8px 6px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:start!important;
  align-items:start!important;
  column-gap:8px!important;
  row-gap:6px!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>span:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  margin-right:0!important;
  align-self:start!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>div{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>span.ml-auto{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:start!important;
  margin-left:0!important;
  padding:2px 8px!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head b{
  display:block!important;
  white-space:normal!important;
  word-break:break-word!important;
  line-height:1.15!important;
}
.warehouse-page .warehouse-screen-worker-status{
  white-space:normal!important;
  line-height:1.15!important;
}

.warehouse-page .warehouse-shift-worker-row{
  display:grid!important;
  grid-template-columns:minmax(72px,1fr) 76px 76px auto!important;
  align-items:end!important;
  gap:6px!important;
  min-width:292px!important;
  padding:8px!important;
  white-space:normal!important;
}
.warehouse-page .warehouse-shift-worker-name{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
  max-width:none!important;
  line-height:1.1!important;
}
.warehouse-page .warehouse-shift-time-inline{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
  white-space:normal!important;
}
.warehouse-page .warehouse-shift-time-inline input{
  width:76px!important;
}
.warehouse-page .warehouse-shift-toggle{
  align-self:center!important;
  justify-self:end!important;
}

.warehouse-page .warehouse-shift-week-nav button{
  position:relative!important;
  overflow:hidden!important;
  box-shadow:0 1px 4px rgba(37,99,235,.10)!important;
}
.warehouse-page .warehouse-shift-week-nav button:first-child,
.warehouse-page .warehouse-shift-week-nav button:last-child{
  background:linear-gradient(180deg,#ffffff 0%,#eff6ff 100%)!important;
}
.warehouse-page .warehouse-shift-week-nav button:first-child{
  animation:warehouseArrowLeft 1.8s ease-in-out infinite;
}
.warehouse-page .warehouse-shift-week-nav button:last-child{
  animation:warehouseArrowRight 1.8s ease-in-out infinite;
}
@keyframes warehouseArrowLeft{
  0%,100%{transform:translateX(0)}
  45%{transform:translateX(-2px)}
  70%{transform:translateX(0)}
}
@keyframes warehouseArrowRight{
  0%,100%{transform:translateX(0)}
  45%{transform:translateX(2px)}
  70%{transform:translateX(0)}
}


/* R100: Kierownik magazynu — pionowe dane magazyniera, uchwyt drag i 4,5 kafelka Nieprzypisanych */
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head{
  flex:0 0 168px!important;
  width:168px!important;
  min-width:168px!important;
  min-height:104px!important;
  padding:8px 6px 8px 6px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 26px!important;
  grid-template-rows:auto!important;
  align-items:start!important;
  column-gap:7px!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>.warehouse-screen-worker-avatar{
  grid-column:1!important;
  grid-row:1!important;
  margin-right:0!important;
  align-self:start!important;
}
.warehouse-page .warehouse-screen-worker>.warehouse-screen-lane-head>.warehouse-screen-worker-identity{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
}
.warehouse-page .warehouse-screen-worker-first,
.warehouse-page .warehouse-screen-worker-last{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.1!important;
}
.warehouse-page .warehouse-screen-worker-meta{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
  margin-top:2px!important;
}
.warehouse-page .warehouse-screen-worker-status{
  display:block!important;
  margin:0!important;
  font-size:9px!important;
  line-height:1.1!important;
  color:#059669!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-screen-worker-count{
  display:block!important;
  margin:0!important;
  font-size:9px!important;
  line-height:1.1!important;
  color:#2563eb!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-worker-drag-handle{
  grid-column:3!important;
  grid-row:1!important;
  align-self:start!important;
  justify-self:end!important;
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:34px!important;
  margin-left:0!important;
  border:1px solid #dbe5f0!important;
  border-radius:7px!important;
  background:#f8fbff!important;
  color:#64748b!important;
  cursor:grab!important;
  user-select:none!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
.warehouse-page .warehouse-worker-drag-handle:hover{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
  color:#2563eb!important;
}
.warehouse-page .warehouse-worker-drag-handle:active{cursor:grabbing!important;transform:scale(.97)!important}
.warehouse-page .warehouse-worker-drag-dots{
  display:block!important;
  white-space:pre-line!important;
  text-align:center!important;
  font-size:11px!important;
  line-height:.62!important;
  letter-spacing:2px!important;
  transform:translateX(1px)!important;
}
.warehouse-page .warehouse-worker-order-target{
  border-color:#60a5fa!important;
  box-shadow:inset 0 0 0 2px rgba(96,165,250,.55),0 4px 12px rgba(37,99,235,.10)!important;
  background:linear-gradient(180deg,#fff 0%,#eff6ff 100%)!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  max-height:620px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding-right:3px!important;
}

/* R103: shift time labels and inputs strictly inline */
.warehouse-page .warehouse-shift-worker-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-row > label.warehouse-shift-time-inline{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  flex:0 0 auto!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-row > label.warehouse-shift-time-inline > span{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  line-height:32px!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-row > label.warehouse-shift-time-inline > input{
  display:inline-block!important;
  flex:0 0 78px!important;
  width:78px!important;
  height:32px!important;
  margin:0!important;
}
.warehouse-page .warehouse-shift-worker-name{
  display:block!important;
  flex:0 1 132px!important;
  min-width:110px!important;
  max-width:140px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-name > span{
  display:inline!important;
}
.warehouse-page .warehouse-shift-worker-name > span:first-child{
  margin-right:4px!important;
}
.warehouse-page .warehouse-shift-toggle{
  flex:0 0 auto!important;
  margin-left:auto!important;
  align-self:center!important;
}

/* R104: shrink unassigned column by half */
.warehouse-screen-board,
.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  grid-template-columns:104px minmax(980px,1fr)!important;
  min-width:1084px!important;
}

.warehouse-page .warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-screen-unassigned{
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
}

/* R105: unassigned half height + drag motion */
/* R104 zwężał kolumnę przez pomyłkę. Przywracamy jej szerokość i zmniejszamy WYŁĄCZNIE wysokość. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board,
.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  grid-template-columns:205px minmax(980px,1fr)!important;
  min-width:1185px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-page .warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-screen-unassigned{
  grid-row:1!important;
  width:205px!important;
  min-width:205px!important;
  max-width:205px!important;
  height:50vh!important;
  min-height:330px!important;
  max-height:470px!important;
  align-self:start!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:3px!important;
}

/* Kafelek podczas przeciągania: rzeczywista karta jedzie z kursorem i lekko "unosi się". */
body.warehouse-pointer-drag-active .warehouse-task-dragging{
  animation:warehouseTaskCarry .72s ease-in-out infinite alternate!important;
  opacity:.50!important;
  transform-origin:center!important;
  filter:saturate(.9)!important;
}
.warehouse-manager-live-ghost{
  animation:warehouseGhostFloat .68s ease-in-out infinite alternate!important;
  border:2px solid #60a5fa!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 22px 46px rgba(15,65,120,.30)!important;
  overflow:hidden!important;
  will-change:transform!important;
}
.warehouse-page .warehouse-manager-card-drop-before{
  animation:warehouseDropMarker .8s ease-in-out infinite alternate!important;
}
.warehouse-page .warehouse-manager-drop-target{
  animation:warehouseDropZone .9s ease-in-out infinite alternate!important;
}
@keyframes warehouseTaskCarry{
  from{transform:scale(.985) rotate(-.35deg)}
  to{transform:scale(1.02) rotate(.35deg)}
}
@keyframes warehouseGhostFloat{
  from{filter:drop-shadow(0 7px 10px rgba(37,99,235,.10))}
  to{filter:drop-shadow(0 13px 18px rgba(37,99,235,.26))}
}
@keyframes warehouseDropMarker{
  from{box-shadow:inset 0 3px 0 #2563eb,0 4px 10px rgba(37,99,235,.10)}
  to{box-shadow:inset 0 5px 0 #2563eb,0 10px 22px rgba(37,99,235,.20)}
}
@keyframes warehouseDropZone{
  from{outline-color:rgba(37,99,235,.28);background:#dbeafe}
  to{outline-color:rgba(37,99,235,.60);background:#eff6ff}
}

/* Przenoszenie całego paska magazyniera przez uchwyt 4 kropek. */
.warehouse-page .warehouse-worker-order-dragging{
  animation:warehouseWorkerCarry .65s ease-in-out infinite alternate!important;
  opacity:.58!important;
  border-color:#60a5fa!important;
  box-shadow:0 14px 30px rgba(37,99,235,.16)!important;
}
.warehouse-page .warehouse-worker-order-dragging .warehouse-worker-drag-handle{
  animation:warehouseHandlePulse .55s ease-in-out infinite alternate!important;
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1d4ed8!important;
}
.warehouse-page .warehouse-worker-order-target{
  animation:warehouseWorkerTarget .72s ease-in-out infinite alternate!important;
}
.warehouse-worker-drag-preview{
  border:2px solid #60a5fa!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 22px 48px rgba(37,99,235,.28)!important;
  opacity:.96!important;
}
@keyframes warehouseWorkerCarry{
  from{transform:translateY(-1px) scale(.995)}
  to{transform:translateY(2px) scale(1.006)}
}
@keyframes warehouseHandlePulse{
  from{transform:scale(.94)}
  to{transform:scale(1.08)}
}
@keyframes warehouseWorkerTarget{
  from{box-shadow:inset 0 0 0 2px rgba(96,165,250,.38),0 3px 10px rgba(37,99,235,.08)}
  to{box-shadow:inset 0 0 0 3px rgba(37,99,235,.65),0 10px 24px rgba(37,99,235,.18)}
}
@media (prefers-reduced-motion:reduce){
  body.warehouse-pointer-drag-active .warehouse-task-dragging,
  .warehouse-manager-live-ghost,
  .warehouse-page .warehouse-manager-card-drop-before,
  .warehouse-page .warehouse-manager-drop-target,
  .warehouse-page .warehouse-worker-order-dragging,
  .warehouse-page .warehouse-worker-order-dragging .warehouse-worker-drag-handle,
  .warehouse-page .warehouse-worker-order-target{animation:none!important}
}

/* R106: Nieprzypisane 610 px, niezależne od wysokości rzędów + drag jak w Planowaniu */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  position:relative!important;
  grid-template-columns:205px minmax(980px,1fr)!important;
  grid-auto-rows:max-content!important;
  align-items:start!important;
  min-width:1185px!important;
  min-height:610px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  position:absolute!important;
  left:0!important;
  top:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:205px!important;
  min-width:205px!important;
  max-width:205px!important;
  height:610px!important;
  min-height:610px!important;
  max-height:610px!important;
  align-self:auto!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
  grid-column:2!important;
  align-self:start!important;
  min-height:104px!important;
}

/* Drag kafelków: czytelny overlay jak w Planowaniu, bez kołysania/rotacji. */
body.warehouse-pointer-drag-active .warehouse-task-dragging{
  animation:none!important;
  opacity:.32!important;
  transform:scale(.985)!important;
  filter:none!important;
}
.warehouse-manager-live-ghost{
  animation:none!important;
  opacity:.98!important;
  border:2px solid #60a5fa!important;
  box-shadow:0 18px 42px rgba(15,65,120,.28)!important;
  transform-origin:top left!important;
}
.warehouse-page .warehouse-manager-card-drop-before{
  animation:none!important;
  box-shadow:inset 0 4px 0 #2563eb,0 7px 18px rgba(37,99,235,.14)!important;
}
.warehouse-page .warehouse-manager-drop-target{
  animation:none!important;
  outline:3px solid rgba(37,99,235,.42)!important;
  background:#eff6ff!important;
}

/* Przenoszenie całego paska magazyniera: źródło zostaje półprzezroczyste,
   a systemowy podgląd pokazuje cały pasek w jego realnym układzie. */
.warehouse-page .warehouse-worker-order-dragging{
  animation:none!important;
  opacity:.34!important;
  transform:none!important;
  border-color:#60a5fa!important;
  box-shadow:inset 0 0 0 2px rgba(96,165,250,.35)!important;
}
.warehouse-page .warehouse-worker-order-dragging .warehouse-worker-drag-handle{
  animation:none!important;
  background:#dbeafe!important;
  border-color:#60a5fa!important;
  color:#1d4ed8!important;
}
.warehouse-page .warehouse-worker-order-target{
  animation:none!important;
  border-color:#2563eb!important;
  box-shadow:inset 0 3px 0 #2563eb,0 7px 18px rgba(37,99,235,.14)!important;
  background:linear-gradient(180deg,#fff 0%,#eff6ff 100%)!important;
}

/* R108: Nieprzypisane 900px x 300px */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  grid-template-columns:300px minmax(980px,1fr)!important;
  min-width:1280px!important;
  min-height:900px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  height:900px!important;
  min-height:900px!important;
  max-height:900px!important;
}


/* R109: Nieprzypisane 920px + przeciąganie kafelków jak w Planowaniu */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  min-height:920px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  height:920px!important;
  min-height:920px!important;
  max-height:920px!important;
}

/* Karta zachowuje swoje miejsce, a pełny kafelek podąża za kursorem z zachowaniem punktu chwycenia. */
.warehouse-page .warehouse-screen-task-card{
  touch-action:none!important;
}
body.warehouse-pointer-drag-active{
  cursor:grabbing!important;
  user-select:none!important;
}
body.warehouse-pointer-drag-active .warehouse-task-dragging{
  opacity:.18!important;
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}
.warehouse-manager-live-ghost{
  animation:none!important;
  max-width:none!important;
  overflow:hidden!important;
  opacity:.98!important;
  border:1px solid #93c5fd!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 20px 46px rgba(15,65,120,.30)!important;
  transform-origin:top left!important;
  will-change:transform!important;
}
.warehouse-page .warehouse-manager-card-drop-before{
  position:relative!important;
}
.warehouse-page .warehouse-manager-card-drop-before::before{
  content:""!important;
  position:absolute!important;
  left:2px!important;
  right:2px!important;
  top:-5px!important;
  height:4px!important;
  border-radius:999px!important;
  background:#2563eb!important;
  box-shadow:0 0 0 2px rgba(219,234,254,.95)!important;
  pointer-events:none!important;
}

/* R110: Nieprzypisane dopasowane do aktualnej wysokości przeglądarki */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 220px)))!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 220px)))!important;
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 220px)))!important;
  max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 220px)))!important;
}
@supports not (height:100dvh){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board{
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 220px)))!important;
  }
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
    height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 220px)))!important;
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 220px)))!important;
    max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 220px)))!important;
  }
}

/* R112: responsive unassigned height corrected to viewport + same layout in Realizacja */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
}

.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  position:relative!important;
  grid-template-columns:300px minmax(980px,1fr)!important;
  grid-auto-rows:max-content!important;
  align-items:start!important;
  min-width:1280px!important;
  min-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned{
  position:absolute!important;
  left:0!important;
  top:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  height:var(--warehouse-realization-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  min-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  max-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  align-self:auto!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{
  grid-column:2!important;
  align-self:start!important;
}

@supports not (height:100dvh){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board{
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
    height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
  .warehouse-page .warehouse-realization-board.warehouse-screen-board{
    min-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
  .warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned{
    height:var(--warehouse-realization-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    min-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    max-height:var(--warehouse-realization-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
}

/* R115: stabilne przewijanie Nieprzypisane bez ponownego przeliczania wysokości podczas scrolla */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  overflow-anchor:none!important;
  scroll-behavior:auto!important;
  overscroll-behavior-y:contain!important;
}

/* R116: Nieprzypisane bez żadnego wewnętrznego przewijania */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned{
  overflow:hidden!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  overflow-y:hidden!important;
  overflow-x:hidden!important;
  overscroll-behavior:none!important;
  scrollbar-gutter:auto!important;
  scrollbar-width:none!important;
  padding-right:0!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip::-webkit-scrollbar,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}

/* R117: Nieprzypisane przewija się wewnątrz; cała zakładka Kierownik magazynu pozostaje nieruchoma */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned{
  overflow:hidden!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  overflow-anchor:none!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:auto!important;
  padding-right:3px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip::-webkit-scrollbar,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip::-webkit-scrollbar{
  display:block!important;
  width:8px!important;
  height:auto!important;
}

/* R118: wewnętrzne przewijanie pól magazynierów bez przewijania całej zakładki */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  grid-auto-rows:max-content!important;
  align-items:start!important;
}

/* Nieprzypisane zostaje nieruchome i ma swój własny scroll kafelków. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  position:sticky!important;
  top:0!important;
  left:0!important;
  z-index:8!important;
  align-self:start!important;
}

/* Wiersze magazynierów przewijają się pionowo wyłącznie wewnątrz planszy. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
  align-self:start!important;
}

@supports not (height:100dvh){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board{
    height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
}

/* R119: poprawny układ Kierownika magazynu z niezależnym przewijaniem prawej części */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board{
  display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100dvh - 160px)))!important;
  overflow:hidden!important;
  align-items:stretch!important;
  gap:8px!important;
}

.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned{
  position:static!important;
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}

.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-screen-task-strip{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
}

.warehouse-page .warehouse-manager-workers-scroll{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
  padding-right:2px!important;
}

.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:104px!important;
  padding:8px!important;
  overflow:visible!important;
  border:1px solid #dce5f0!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  box-shadow:0 2px 8px rgba(15,41,76,.045)!important;
}

.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip{
  display:flex!important;
  flex:1 1 auto!important;
  flex-flow:row nowrap!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

@supports not (height:100dvh){
  .warehouse-page .warehouse-manager-columns.warehouse-screen-board{
    height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    min-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
    max-height:var(--warehouse-manager-unassigned-height, max(420px, calc(100vh - 160px)))!important;
  }
}

/* R121: assigned cards +20 px; compact domestic-receipt card */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card{
  flex:0 0 258px!important;
  width:258px!important;
  min-width:258px!important;
  max-width:258px!important;
}

.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card{
  min-height:80px!important;
  padding:7px 8px!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card>div:nth-of-type(2),
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card>div:nth-of-type(3){
  display:flex!important;
}
.warehouse-page .warehouse-domestic-assigned-line{
  width:100%!important;
  min-width:0!important;
  align-items:center!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-assigned-head{
  display:flex!important;
  gap:5px!important;
  min-height:20px!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-type{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-domestic-assigned-assets{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin-top:6px!important;
}
.warehouse-page .warehouse-domestic-assigned-field{
  display:flex!important;
  align-items:baseline!important;
  gap:4px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-field small,
.warehouse-page .warehouse-domestic-assigned-route small{
  flex:0 0 auto!important;
  font-size:8px!important;
  font-weight:700!important;
  color:#94a3b8!important;
}
.warehouse-page .warehouse-domestic-assigned-field b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  color:#334155!important;
}
.warehouse-page .warehouse-domestic-assigned-route{
  display:flex!important;
  gap:8px!important;
  margin-top:6px!important;
  font-size:9px!important;
  color:#64748b!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-route>span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-assigned-driver{flex:1 1 52%!important}
.warehouse-page .warehouse-domestic-assigned-warehouse{flex:1 1 48%!important;text-align:right!important}
.warehouse-page .warehouse-domestic-assigned-route b{
  color:#334155!important;
  font-size:9px!important;
}

/* R123: płynny drag & drop w Kierowniku magazynu, z realnym miejscem wstawienia jak w Planowaniu */
body.warehouse-pointer-drag-active .warehouse-screen-task-card{
  transition:none!important;
}
body.warehouse-pointer-drag-active .warehouse-task-dragging{
  opacity:.20!important;
  transform:none!important;
  box-shadow:none!important;
  filter:none!important;
}
.warehouse-manager-live-ghost{
  transition:none!important;
  animation:none!important;
  transform-origin:top left!important;
  will-change:transform!important;
  pointer-events:none!important;
  box-shadow:0 16px 34px rgba(15,65,120,.24)!important;
  border:1px solid #60a5fa!important;
  background:#fff!important;
}
.warehouse-page .warehouse-manager-drop-placeholder{
  box-sizing:border-box!important;
  flex:none!important;
  border:2px dashed #3b82f6!important;
  border-radius:9px!important;
  background:rgba(219,234,254,.62)!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.72)!important;
  pointer-events:none!important;
  position:relative!important;
}
.warehouse-page .warehouse-manager-drop-placeholder::after{
  content:""!important;
  position:absolute!important;
  inset:5px!important;
  border-radius:6px!important;
  background:rgba(59,130,246,.07)!important;
}
.warehouse-page .warehouse-manager-drop-placeholder.is-horizontal{
  margin:0 6px 0 0!important;
  align-self:stretch!important;
}
.warehouse-page .warehouse-manager-drop-placeholder.is-vertical{
  margin:0 0 8px 0!important;
  min-height:52px!important;
}
.warehouse-page .warehouse-manager-drop-target{
  outline:2px solid rgba(59,130,246,.28)!important;
  outline-offset:-2px!important;
  background-color:rgba(239,246,255,.76)!important;
  transition:none!important;
}
/* Nie blokujemy kart w aktywnej kolumnie: pozycja wstawienia jest liczona względem ich środków. */
.warehouse-page .warehouse-manager-drop-target article{
  pointer-events:auto!important;
}

/* R124: compact domestic receipt card with acceptance timestamp + quantity/weight/LDM */
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card{
  min-height:102px!important;
  padding:7px 8px!important;
}
.warehouse-page .warehouse-domestic-assigned-head{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:20px!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-type{
  flex:0 0 auto!important;
}
.warehouse-page .warehouse-domestic-assigned-accepted{
  margin-left:auto!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:8px!important;
  font-weight:800!important;
  color:#64748b!important;
  text-align:right!important;
}
.warehouse-page .warehouse-domestic-assigned-assets{
  margin-top:5px!important;
}
.warehouse-page .warehouse-domestic-assigned-route{
  margin-top:5px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  margin-top:5px!important;
  padding-top:5px!important;
  border-top:1px solid #e2e8f0!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics>span{
  display:flex!important;
  align-items:baseline!important;
  gap:3px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics small{
  flex:0 0 auto!important;
  font-size:7px!important;
  font-weight:800!important;
  color:#94a3b8!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9px!important;
  color:#334155!important;
}

/* R125: optimized domestic receipt card — larger type, icon labels, proper warehouse name */
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card{
  min-height:116px!important;
  padding:8px 9px!important;
  border-color:#d8e5f2!important;
  box-shadow:0 2px 7px rgba(15,55,96,.06)!important;
}
.warehouse-page .warehouse-domestic-assigned-head{
  min-height:22px!important;
  gap:6px!important;
}
.warehouse-page .warehouse-domestic-assigned-type{
  font-size:10px!important;
  letter-spacing:.01em!important;
}
.warehouse-page .warehouse-domestic-assigned-urgent{
  font-size:9px!important;
}
.warehouse-page .warehouse-domestic-assigned-accepted{
  font-size:9px!important;
  font-weight:800!important;
  color:#526b84!important;
}
.warehouse-page .warehouse-domestic-assigned-assets,
.warehouse-page .warehouse-domestic-assigned-route{
  margin-top:7px!important;
  gap:8px!important;
}
.warehouse-page .warehouse-domestic-assigned-assets{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.warehouse-page .warehouse-domestic-assigned-field,
.warehouse-page .warehouse-domestic-assigned-route>span,
.warehouse-page .warehouse-domestic-assigned-metrics>span{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-field b,
.warehouse-page .warehouse-domestic-assigned-route b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#243b55!important;
}
.warehouse-page .warehouse-domestic-assigned-driver{
  flex:1 1 45%!important;
}
.warehouse-page .warehouse-domestic-assigned-warehouse{
  flex:1 1 55%!important;
  text-align:left!important;
  justify-content:flex-start!important;
}
.warehouse-page .warehouse-domestic-assigned-iconbox{
  display:grid!important;
  place-items:center!important;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  border:1px solid #d9e7f4!important;
  border-radius:6px!important;
  background:#f4f8fc!important;
}
.warehouse-page .warehouse-domestic-assigned-iconbox img{
  display:block!important;
  width:14px!important;
  height:14px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:7px!important;
  padding-top:7px!important;
  border-top:1px solid #e4edf5!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics>span{
  border-radius:6px!important;
  background:#f8fafc!important;
  padding:3px 4px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox{
  flex-basis:20px!important;
  width:20px!important;
  height:20px!important;
  border:0!important;
  background:transparent!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox img{
  width:14px!important;
  height:14px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#334155!important;
}


/* R127: domestic receipt assigned card layout matched to requested screenshot */
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card{
  min-height:166px!important;
  padding:12px 14px!important;
  border:1px solid #dbe7f4!important;
  border-radius:16px!important;
  box-shadow:0 4px 14px rgba(15,55,96,.07)!important;
  background:#fff!important;
}
.warehouse-page .warehouse-domestic-assigned-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-bottom:12px!important;
  min-height:auto!important;
}
.warehouse-page .warehouse-domestic-assigned-type{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:12px!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.01em!important;
}
.warehouse-page .warehouse-domestic-assigned-accepted{
  margin-left:auto!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:800!important;
  color:#526b84!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-assigned-details{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px 18px!important;
  margin-bottom:12px!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field{
  position:relative!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field:nth-child(2n){
  padding-left:16px!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field:nth-child(2n)::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:2px!important;
  bottom:2px!important;
  width:1px!important;
  background:#dbe7f4!important;
}
.warehouse-page .warehouse-domestic-assigned-copy{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-assigned-copy small{
  display:block!important;
  margin-bottom:3px!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:700!important;
  color:#7a8ca3!important;
}
.warehouse-page .warehouse-domestic-assigned-copy b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:16px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-iconbox{
  flex:0 0 30px!important;
  width:30px!important;
  height:30px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-iconbox img{
  width:22px!important;
  height:22px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:0!important;
  padding-top:12px!important;
  border-top:1px solid #dbe7f4!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics>span{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  min-width:0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  background:#f4f7fb!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox{
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  border:0!important;
  background:transparent!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox img{
  width:18px!important;
  height:18px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#173761!important;
}


/* R128: dragged card disappears completely from its source slot */
body.warehouse-pointer-drag-active .warehouse-page [data-warehouse-drag-source="1"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* R129: domestic receipt card compact-fit for 258px assigned cards */
.warehouse-page .warehouse-screen-worker .warehouse-domestic-assigned-card{
  min-height:132px!important;
  padding:8px 9px!important;
  border-radius:11px!important;
}
.warehouse-page .warehouse-domestic-assigned-head{
  gap:5px!important;
  margin-bottom:8px!important;
}
.warehouse-page .warehouse-domestic-assigned-type{
  min-width:0!important;
  max-width:145px!important;
  padding:3px 7px!important;
  border-radius:8px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-domestic-assigned-accepted{
  flex:0 0 auto!important;
  font-size:8px!important;
  line-height:1!important;
}
.warehouse-page .warehouse-domestic-assigned-details{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px 10px!important;
  margin-bottom:8px!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field{
  gap:6px!important;
  align-items:center!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field:nth-child(2n){
  padding-left:9px!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-field:nth-child(2n)::before{
  top:1px!important;
  bottom:1px!important;
}
.warehouse-page .warehouse-domestic-assigned-copy small{
  margin-bottom:1px!important;
  font-size:8px!important;
  line-height:1!important;
}
.warehouse-page .warehouse-domestic-assigned-copy b{
  font-size:10.5px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-iconbox{
  flex:0 0 19px!important;
  width:19px!important;
  height:19px!important;
}
.warehouse-page .warehouse-domestic-assigned-details .warehouse-domestic-assigned-iconbox img{
  width:15px!important;
  height:15px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics{
  gap:5px!important;
  padding-top:7px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics>span{
  gap:4px!important;
  padding:6px 6px!important;
  border-radius:7px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox{
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics .warehouse-domestic-assigned-iconbox img{
  width:13px!important;
  height:13px!important;
}
.warehouse-page .warehouse-domestic-assigned-metrics b{
  font-size:10.5px!important;
  line-height:1!important;
}

/* R131: compact information-first cards in Manager + Realization */
.warehouse-page .warehouse-card-refined{
  box-sizing:border-box!important;
  padding:8px 9px!important;
  border-radius:10px!important;
  border-color:#dbe5f0!important;
  background:#fff!important;
  box-shadow:0 2px 7px rgba(15,55,96,.055)!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-card-refined-head{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:20px!important;
}
.warehouse-page .warehouse-card-refined-type{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:142px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9px!important;
  line-height:1.05!important;
  letter-spacing:.01em!important;
}
.warehouse-page .warehouse-card-refined-date{
  margin-left:auto!important;
  flex:0 0 auto!important;
  max-width:88px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:800!important;
  color:#60758c!important;
  text-align:right!important;
}
.warehouse-page .warehouse-card-refined-count{
  flex:0 0 auto!important;
  border-radius:999px!important;
  padding:2px 5px!important;
  background:#eaf2fb!important;
  color:#315f8d!important;
  font-size:8px!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-card-refined-urgent{
  display:grid!important;
  place-items:center!important;
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  border-radius:50%!important;
  background:#fee2e2!important;
  color:#be123c!important;
  font-size:10px!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-card-refined-state{
  display:grid!important;
  place-items:center!important;
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  border-radius:50%!important;
  font-size:8px!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-card-refined-state.is-active{background:#dbeafe!important;color:#1d4ed8!important}
.warehouse-page .warehouse-card-refined-state.is-paused{background:#fef3c7!important;color:#a16207!important}
.warehouse-page .warehouse-card-refined-title{
  display:block!important;
  margin-top:6px!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-card-refined-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:5px 7px!important;
  margin-top:7px!important;
}
.warehouse-page .warehouse-card-refined-item{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:22px!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-card-refined-item img{
  display:block!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  opacity:.86!important;
}
.warehouse-page .warehouse-card-refined-item b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.05!important;
  font-weight:850!important;
  color:#243b55!important;
}
.warehouse-page .warehouse-card-refined-warehouse b{
  color:#173761!important;
}
.warehouse-page .warehouse-card-refined-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  margin-top:7px!important;
  padding-top:7px!important;
  border-top:1px solid #e4edf5!important;
}
.warehouse-page .warehouse-card-refined-metrics>span{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  padding:5px 6px!important;
  border-radius:7px!important;
  background:#f5f8fc!important;
}
.warehouse-page .warehouse-card-refined-metrics img{
  display:block!important;
  flex:0 0 13px!important;
  width:13px!important;
  height:13px!important;
  opacity:.86!important;
}
.warehouse-page .warehouse-card-refined-metrics b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-domestic-compact-card{
  min-height:0!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-domestic-compact-card,
.warehouse-page .warehouse-realization-worker-column .warehouse-domestic-compact-card{
  min-height:0!important;
  padding:8px 9px!important;
}
.warehouse-page .warehouse-realization-unassigned-card.warehouse-card-refined{
  padding:8px!important;
}
.warehouse-page .warehouse-card-refined-timing{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin-top:7px!important;
  padding-top:6px!important;
  border-top:1px solid #eef3f8!important;
  font-size:8.5px!important;
  font-weight:800!important;
  color:#64748b!important;
}
.warehouse-page .warehouse-card-refined-actions{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-top:6px!important;
}
.warehouse-page .warehouse-card-refined-actions button{
  min-height:25px!important;
  line-height:1!important;
}
/* R131 wins over legacy R124-R129 domestic card layout rules. */
.warehouse-page .warehouse-card-refined .warehouse-domestic-assigned-head,
.warehouse-page .warehouse-card-refined .warehouse-domestic-assigned-details,
.warehouse-page .warehouse-card-refined .warehouse-domestic-assigned-metrics{
  all:unset;
}

/* R133: restore information-first card content in Manager + Realization.
   Legacy compact rules from R93 hid div #2/#3, which are now the data grid/metrics. */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-grid,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-grid,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-metrics{
  display:grid!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-timing{
  display:flex!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-actions{
  display:flex!important;
}

/* Manager cards: enough room for actual operational data, still compact. */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
  min-height:136px!important;
}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-screen-task-card{
  flex:0 0 286px!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:118px!important;
  align-self:flex-start!important;
}

/* Realization cards need extra vertical room for status/action controls. */
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{
  min-height:158px!important;
  align-items:flex-start!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-card.warehouse-card-refined{
  flex:0 0 286px!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:138px!important;
  align-self:flex-start!important;
}

/* Make the useful values readable instead of showing only labels/titles. */
.warehouse-page .warehouse-card-refined-grid{
  gap:7px 9px!important;
  margin-top:8px!important;
}
.warehouse-page .warehouse-card-refined-item{
  min-height:24px!important;
  gap:6px!important;
}
.warehouse-page .warehouse-card-refined-item img{
  flex-basis:16px!important;
  width:16px!important;
  height:16px!important;
}
.warehouse-page .warehouse-card-refined-item b{
  font-size:10.5px!important;
  line-height:1.1!important;
}
.warehouse-page .warehouse-card-refined-warehouse{
  grid-column:1 / -1!important;
  border-top:1px solid #edf2f7!important;
  padding-top:6px!important;
}
.warehouse-page .warehouse-card-refined-warehouse b{
  font-size:11px!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-card-refined-metrics{
  margin-top:7px!important;
  padding-top:7px!important;
}
.warehouse-page .warehouse-card-refined-metrics b{
  font-size:10px!important;
}

/* Do not let the old nth-of-type compacting hide refined content in unassigned lists. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-grid,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-metrics,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-grid,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-card-refined>.warehouse-card-refined-metrics{
  display:grid!important;
}


/* R134: prevent text selection while dragging manager cards */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card *,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card *{
  user-select:none!important;
  -webkit-user-select:none!important;
  -moz-user-select:none!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card img,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card img{
  -webkit-user-drag:none!important;
  user-drag:none!important;
  pointer-events:none!important;
}
body.warehouse-pointer-drag-active,
body.warehouse-pointer-drag-active *{
  user-select:none!important;
  -webkit-user-select:none!important;
  -moz-user-select:none!important;
}

/* R135: smoother manager drag & drop */
body.warehouse-pointer-drag-active .warehouse-manager-live-ghost{
  will-change:transform!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
  contain:paint!important;
}
.warehouse-page .warehouse-manager-drop-placeholder{
  contain:layout paint!important;
}
body.warehouse-pointer-drag-active .warehouse-manager-columns .warehouse-screen-task-card,
body.warehouse-pointer-drag-active .warehouse-manager-workers-scroll .warehouse-screen-task-card{
  transition:none!important;
}

/* R137: unified warehouse card design system — DOMESTIC / LOADING / TASK */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card{
  box-sizing:border-box!important;
  flex:0 0 286px!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:118px!important;
  height:auto!important;
  padding:7px 8px!important;
  border:1px solid #dbe5f0!important;
  border-left-width:3px!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 2px 7px rgba(15,55,96,.055)!important;
  overflow:hidden!important;
  color:#173761!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  transition:box-shadow .14s ease,border-color .14s ease,transform .14s ease!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card:hover{
  box-shadow:0 4px 12px rgba(15,55,96,.10)!important;
  border-color:#bdd2e6!important;
}
.warehouse-page .warehouse-ops-card.is-domestic{border-left-color:#38a7d8!important}
.warehouse-page .warehouse-ops-card.is-loading{border-left-color:#25a56a!important}
.warehouse-page .warehouse-ops-card.is-task{border-left-color:#8b5cf6!important}
.warehouse-page .warehouse-ops-card.is-urgent{border-left-color:#e11d48!important}

.warehouse-page .warehouse-ops-card-top{
  display:flex!important;
  align-items:flex-start!important;
  gap:5px!important;
  min-width:0!important;
  min-height:20px!important;
}
.warehouse-page .warehouse-ops-card-key{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.warehouse-page .warehouse-ops-card-key>b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-ops-card-key>span{
  flex:0 0 auto!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#526b84!important;
}
.warehouse-page .warehouse-ops-card-badges{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  flex:0 0 auto!important;
  max-width:138px!important;
}
.warehouse-page .warehouse-ops-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:18px!important;
  padding:2px 5px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
.warehouse-page .warehouse-ops-badge.is-todo{background:#eaf2fb!important;color:#315f8d!important}
.warehouse-page .warehouse-ops-badge.is-active{background:#dbeafe!important;color:#1d4ed8!important}
.warehouse-page .warehouse-ops-badge.is-paused{background:#fef3c7!important;color:#92400e!important}
.warehouse-page .warehouse-ops-badge.is-done,
.warehouse-page .warehouse-ops-badge.is-received{background:#dcfce7!important;color:#166534!important}
.warehouse-page .warehouse-ops-badge.is-trailer{background:#e0f2fe!important;color:#075985!important}
.warehouse-page .warehouse-ops-badge.is-cancelled{background:#f1f5f9!important;color:#64748b!important}
.warehouse-page .warehouse-ops-badge.is-urgent{background:#fee2e2!important;color:#be123c!important}
.warehouse-page .warehouse-ops-subcontractor{
  display:inline-flex!important;
  margin-top:3px!important;
  padding:2px 5px!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  color:#9a3412!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:900!important;
}

.warehouse-page .warehouse-ops-card-main{
  display:grid!important;
  gap:2px!important;
  margin-top:5px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-ops-primary{
  display:-webkit-box!important;
  min-width:0!important;
  overflow:hidden!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-ops-secondary,
.warehouse-page .warehouse-ops-tertiary{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9px!important;
  line-height:1.15!important;
  font-weight:700!important;
  color:#64748b!important;
}
.warehouse-page .warehouse-ops-tertiary{color:#445d75!important}

.warehouse-page .warehouse-ops-metrics{
  margin-top:5px!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  padding:4px 6px!important;
  border-radius:6px!important;
  background:#f6f9fc!important;
  font-size:9px!important;
  line-height:1.05!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-ops-transport{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:5px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-ops-transport>span{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-ops-transport img,
.warehouse-page .warehouse-ops-footer img{
  display:block!important;
  flex:0 0 13px!important;
  width:13px!important;
  height:13px!important;
  opacity:.84!important;
  pointer-events:none!important;
  -webkit-user-drag:none!important;
}
.warehouse-page .warehouse-ops-transport b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9.5px!important;
  font-weight:900!important;
  color:#334155!important;
}
.warehouse-page .warehouse-ops-transport strong{
  flex:0 0 auto!important;
  font-size:10px!important;
  font-weight:900!important;
  color:#173761!important;
}

.warehouse-page .warehouse-ops-footer{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:3px 8px!important;
  margin-top:5px!important;
  padding-top:5px!important;
  border-top:1px solid #edf2f7!important;
  min-width:0!important;
}
.warehouse-page .warehouse-ops-location,
.warehouse-page .warehouse-ops-operator,
.warehouse-page .warehouse-ops-worker{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  max-width:100%!important;
}
.warehouse-page .warehouse-ops-location{flex:1 1 145px!important}
.warehouse-page .warehouse-ops-operator,
.warehouse-page .warehouse-ops-worker{flex:1 1 105px!important}
.warehouse-page .warehouse-ops-location b,
.warehouse-page .warehouse-ops-operator b,
.warehouse-page .warehouse-ops-worker b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:850!important;
  color:#445d75!important;
}
.warehouse-page .warehouse-ops-location b{color:#173761!important;font-weight:900!important}
.warehouse-page .warehouse-ops-time{
  flex:0 0 auto!important;
  font-size:8.5px!important;
  font-weight:900!important;
  color:#315f8d!important;
}
.warehouse-page .warehouse-ops-indicators{
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
}
.warehouse-page .warehouse-ops-indicators small{
  display:inline-flex!important;
  align-items:center!important;
  min-height:16px!important;
  padding:2px 4px!important;
  border-radius:5px!important;
  background:#f1f5f9!important;
  color:#526b84!important;
  font-size:7px!important;
  line-height:1!important;
  font-weight:900!important;
}

.warehouse-page .warehouse-ops-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  margin-top:5px!important;
  padding-top:5px!important;
  border-top:1px solid #edf2f7!important;
}
.warehouse-page .warehouse-ops-actions button{
  min-height:23px!important;
  padding:4px 8px!important;
  border:0!important;
  border-radius:6px!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-ops-primary-action{background:#2563eb!important;color:#fff!important}
.warehouse-page .warehouse-ops-pause-action{background:#fbbf24!important;color:#713f12!important}
.warehouse-page .warehouse-ops-complete-action{background:#16a34a!important;color:#fff!important}
.warehouse-page .warehouse-ops-actions .warehouse-label-print-button{margin-right:auto!important;background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important}

/* Keep the same 286 px base card in both warehouse boards. */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-ops-card,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-ops-card,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-unassigned>.warehouse-ops-card,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-ops-card{
  flex:0 0 286px!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:118px!important;
  height:auto!important;
  align-self:flex-start!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-badge{font-size:8px!important}

/* Details are lazy: nothing heavy is rendered until a card is clicked. */
.warehouse-ops-details-layer{
  position:fixed!important;
  inset:70px 0 0 0!important;
  z-index:95!important;
  display:flex!important;
  justify-content:flex-end!important;
  background:rgba(15,23,42,.16)!important;
}
.warehouse-ops-details-drawer{
  width:min(560px,48vw)!important;
  height:100%!important;
  overflow-y:auto!important;
  border-left:1px solid #dbe5f0!important;
  background:#fff!important;
  box-shadow:-14px 0 34px rgba(15,41,76,.16)!important;
}
.warehouse-ops-details-drawer>header{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fff!important;
}
.warehouse-ops-details-drawer>header h3{margin:0!important;font-size:16px!important;font-weight:900!important;color:#173761!important}
.warehouse-ops-details-drawer>header button{margin-left:auto!important;border:0!important;background:transparent!important;font-size:24px!important;color:#64748b!important;cursor:pointer!important}
.warehouse-ops-details-content{display:grid!important;gap:10px!important;padding:14px!important}
.warehouse-ops-details-content section{overflow:hidden!important;border:1px solid #e2e8f0!important;border-radius:9px!important;background:#fff!important}
.warehouse-ops-details-content h4{margin:0!important;padding:7px 10px!important;background:#f8fafc!important;font-size:9px!important;font-weight:900!important;color:#173761!important}
.warehouse-ops-details-content dl{margin:0!important}
.warehouse-ops-details-content dl>div{display:grid!important;grid-template-columns:145px minmax(0,1fr)!important;gap:10px!important;padding:7px 10px!important;border-top:1px solid #f1f5f9!important;font-size:10px!important}
.warehouse-ops-details-content dt{color:#64748b!important}
.warehouse-ops-details-content dd{margin:0!important;overflow-wrap:anywhere!important;font-weight:700!important;color:#334155!important}

@media(max-width:900px){
  .warehouse-ops-details-drawer{width:min(560px,88vw)!important}
}

/* R137 final density tuning: typical cards stay within 118–145 px. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card{
  padding:6px 8px!important;
}
.warehouse-page .warehouse-ops-card-main{margin-top:4px!important}
.warehouse-page .warehouse-ops-metrics{margin-top:4px!important;padding:3px 6px!important}
.warehouse-page .warehouse-ops-transport{margin-top:4px!important}
.warehouse-page .warehouse-ops-footer{margin-top:4px!important;padding-top:4px!important}

/* R138: fix R137 warehouse operation cards hidden by legacy compact selectors. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main{
  display:grid!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics{
  display:block!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport{
  display:flex!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer{
  display:flex!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{
  display:flex!important;
}

/* Same behaviour in narrow Nieprzypisane columns. */
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main{
  display:grid!important;
}
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics{
  display:block!important;
}
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer{
  display:flex!important;
}

/* Compact but complete cards: important values must never disappear. */
.warehouse-page .warehouse-ops-card{
  min-height:124px!important;
  overflow:visible!important;
}
.warehouse-page .warehouse-ops-card.is-domestic{
  min-height:136px!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-card{
  min-height:136px!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-card.is-domestic{
  min-height:148px!important;
}
.warehouse-page .warehouse-ops-card-main{
  gap:2px!important;
  margin-top:5px!important;
}
.warehouse-page .warehouse-ops-primary{
  font-size:11px!important;
}
.warehouse-page .warehouse-ops-secondary,
.warehouse-page .warehouse-ops-tertiary{
  font-size:9.5px!important;
}
.warehouse-page .warehouse-ops-location{
  flex:1 1 100%!important;
  order:1!important;
}
.warehouse-page .warehouse-ops-location b{
  font-size:9.5px!important;
}
.warehouse-page .warehouse-ops-operator{
  flex:1 1 105px!important;
  order:2!important;
}
.warehouse-page .warehouse-ops-worker{
  flex:1 1 105px!important;
  order:3!important;
}
.warehouse-page .warehouse-ops-time{
  order:4!important;
}
.warehouse-page .warehouse-ops-indicators{
  order:5!important;
}

/* Assigned rows already identify the warehouse worker on the left, so cards do not waste space repeating it. */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip>.warehouse-ops-card .warehouse-ops-worker,
.warehouse-page .warehouse-realization-board>.warehouse-screen-worker>.warehouse-ops-card .warehouse-ops-worker{
  display:none!important;
}

/* Give worker rows enough room for the complete cards. */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{
  min-height:146px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{
  min-height:160px!important;
}

/* R139: definitive override for legacy nth-of-type hiding rules.
   R93 used more specific selectors and still hid the 2nd/3rd div inside new operation cards. */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main,
.warehouse-page .warehouse-realization-board .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main,
.warehouse-page .warehouse-realization-board .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-card-main{
  display:grid!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-metrics{
  display:block!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport,
.warehouse-page .warehouse-realization-board .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport,
.warehouse-page .warehouse-realization-board .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-transport{
  display:flex!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer,
.warehouse-page .warehouse-realization-board .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer,
.warehouse-page .warehouse-realization-board .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-footer{
  display:flex!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions,
.warehouse-page .warehouse-realization-board .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{
  display:flex!important;
}

/* Cards with TASK/LOADING data should never look empty when there is content available. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card .warehouse-ops-card-main:empty,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card .warehouse-ops-footer:empty{
  display:none!important;
}


/* R140: operation-type colors + reliable manager card details click */
.warehouse-page .warehouse-ops-card{
  border-left-width:4px!important;
}
.warehouse-page .warehouse-ops-card.is-domestic{
  border-color:#9edbf3!important;
  border-left-color:#159bd3!important;
}
.warehouse-page .warehouse-ops-card.is-loading{
  border-color:#9cddb9!important;
  border-left-color:#1e9f5d!important;
}
.warehouse-page .warehouse-ops-card.is-task{
  border-color:#c8b5f5!important;
  border-left-color:#7c3aed!important;
}
.warehouse-page .warehouse-ops-card.is-domestic:hover{
  border-color:#67c5e9!important;
  border-left-color:#078bc3!important;
}
.warehouse-page .warehouse-ops-card.is-loading:hover{
  border-color:#69c993!important;
  border-left-color:#14874d!important;
}
.warehouse-page .warehouse-ops-card.is-task:hover{
  border-color:#a78bf0!important;
  border-left-color:#6d28d9!important;
}
/* Priorytet nie zmienia koloru typu kafelka; status PILNE zostaje w badge/statusie. */
.warehouse-page .warehouse-ops-card.is-domestic.is-urgent{border-left-color:#159bd3!important}
.warehouse-page .warehouse-ops-card.is-loading.is-urgent{border-left-color:#1e9f5d!important}
.warehouse-page .warehouse-ops-card.is-task.is-urgent{border-left-color:#7c3aed!important}


/* R144: Manager shift selector shows the complete week Monday-Sunday */
.warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays{
  gap:4px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays button{
  min-width:74px!important;
  height:30px!important;
  padding:3px 5px!important;
  gap:5px!important;
}
.warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays .warehouse-shift-day-label{
  font-size:10px!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays .warehouse-shift-day-count{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  font-size:9px!important;
}
@media(max-width:1400px){
  .warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays button{min-width:66px!important;padding:3px 4px!important}
  .warehouse-page .warehouse-shift-topline .warehouse-shift-weekdays .warehouse-shift-day-label{font-size:9px!important}
}

/* R145: redesigned cards for Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-card-v2-head{margin-bottom:6px!important}
.warehouse-page .warehouse-card-v2-head-inner,
.warehouse-page .warehouse-card-v2-row,
.warehouse-page .warehouse-card-v2-footer,
.warehouse-page .warehouse-card-v2-loading-grid,
.warehouse-page .warehouse-card-v2-taskline,
.warehouse-page .warehouse-card-v2-bottom-strip,
.warehouse-page .warehouse-card-v2-simpleline{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
.warehouse-page .warehouse-card-v2-kind{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:3px 9px!important;border-radius:10px!important;font-size:11px!important;font-weight:900!important;letter-spacing:.01em!important;color:#173761!important;background:#eef4fb!important;box-shadow:inset 0 0 0 1px rgba(23,55,97,.08)!important}
.warehouse-page .warehouse-card-v2-kind img{width:16px!important;height:16px!important;flex:0 0 16px!important;opacity:.92!important}
.warehouse-page .warehouse-card-v2-kind.is-domestic{background:#eef8fd!important;color:#16628a!important}
.warehouse-page .warehouse-card-v2-kind.is-loading{background:#edf9f2!important;color:#16653d!important}
.warehouse-page .warehouse-card-v2-kind.is-task{background:#f4f0ff!important;color:#5f3dc4!important}
.warehouse-page .warehouse-card-v2-more{margin-left:auto!important;color:#7d8ea3!important;font-size:16px!important;line-height:1!important;letter-spacing:1px!important}
.warehouse-page .warehouse-card-v2-meta{margin-bottom:5px!important}
.warehouse-page .warehouse-card-v2-id{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;font-weight:800!important;color:#43556b!important}
.warehouse-page .warehouse-card-v2-statuses{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}
.warehouse-page .warehouse-card-v2-company{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;line-height:1.2!important;font-weight:900!important;color:#173761!important;margin-bottom:4px!important}
.warehouse-page .warehouse-card-v2-location-row{margin-bottom:6px!important}
.warehouse-page .warehouse-card-v2-location,
.warehouse-page .warehouse-card-v2-driverline,
.warehouse-page .warehouse-card-v2-simpleline,
.warehouse-page .warehouse-card-v2-vehicle,
.warehouse-page .warehouse-card-v2-clock{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;color:#516579!important}
.warehouse-page .warehouse-card-v2-location img,
.warehouse-page .warehouse-card-v2-driverline img,
.warehouse-page .warehouse-card-v2-simpleline img,
.warehouse-page .warehouse-card-v2-vehicle img,
.warehouse-page .warehouse-card-v2-clock img,
.warehouse-page .warehouse-card-v2-bottom-strip img,
.warehouse-page .warehouse-card-v2-doc-chip img,
.warehouse-page .warehouse-card-v2-loading-right img,
.warehouse-page .warehouse-card-v2-metric img{width:14px!important;height:14px!important;flex:0 0 14px!important;opacity:.85!important}
.warehouse-page .warehouse-card-v2-location span,
.warehouse-page .warehouse-card-v2-driverline span,
.warehouse-page .warehouse-card-v2-simpleline span,
.warehouse-page .warehouse-card-v2-vehicle span,
.warehouse-page .warehouse-card-v2-clock span,
.warehouse-page .warehouse-card-v2-bottom-strip span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v2-location{font-size:10px!important;font-weight:700!important}
.warehouse-page .warehouse-card-v2-direction-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex:0 0 auto!important;padding:4px 8px!important;border-radius:9px!important;background:#eaf7ee!important;color:#1e7c4c!important;font-size:11px!important;font-weight:900!important}
.warehouse-page .warehouse-card-v2-direction-pill.is-loading{background:#eaf7ee!important;color:#19734a!important}
.warehouse-page .warehouse-card-v2-divider{height:1px!important;background:#e8eef5!important;margin:6px 0!important}
.warehouse-page .warehouse-card-v2-metrics{display:grid!important;gap:6px!important;margin-bottom:6px!important}
.warehouse-page .warehouse-card-v2-metrics-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.warehouse-page .warehouse-card-v2-metrics-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.warehouse-page .warehouse-card-v2-metric{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;padding:4px 6px!important;border-radius:8px!important;background:#f5f8fb!important;color:#173761!important;font-size:10px!important;font-weight:800!important;line-height:1.1!important}
.warehouse-page .warehouse-card-v2-metric span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v2-footer{margin-top:auto!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px 10px!important}
.warehouse-page .warehouse-card-v2-docs{display:flex!important;align-items:center!important;gap:5px!important;margin-left:auto!important}
.warehouse-page .warehouse-card-v2-doc-chip{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:3px 7px!important;border-radius:7px!important;background:#ebfff1!important;color:#166534!important;font-size:10px!important;font-weight:900!important}
.warehouse-page .warehouse-card-v2-doc-chip.is-muted{background:#f1f5f9!important;color:#526274!important}
.warehouse-page .warehouse-card-v2-loading-grid{align-items:flex-start!important;margin-bottom:4px!important}
.warehouse-page .warehouse-card-v2-loading-left{display:grid!important;gap:8px!important;min-width:0!important;flex:1 1 auto!important}
.warehouse-page .warehouse-card-v2-loading-right{display:grid!important;gap:6px!important;min-width:110px!important;flex:0 0 110px!important}
.warehouse-page .warehouse-card-v2-loading-right>div{display:flex!important;align-items:center!important;gap:6px!important;font-size:11px!important;font-weight:800!important;color:#173761!important;min-width:0!important}
.warehouse-page .warehouse-card-v2-loading-right>div>span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v2-driverline{font-size:11px!important;font-weight:800!important;color:#334155!important}
.warehouse-page .warehouse-card-v2-bottom-strip{justify-content:flex-start!important;padding:6px 8px!important;border-radius:8px!important;background:#f3f5f7!important;color:#586b7f!important;font-size:10px!important;font-weight:800!important;margin-top:4px!important}
.warehouse-page .warehouse-card-v2-tasktype{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;font-weight:900!important;color:#334155!important}
.warehouse-page .warehouse-card-v2-transfer{margin-top:2px!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:20px!important;line-height:1.15!important;font-weight:900!important;color:#173761!important}
.warehouse-page .warehouse-card-v2-simpleline{justify-content:flex-start!important;margin-top:6px!important;font-size:11px!important;font-weight:800!important;color:#506376!important}
.warehouse-page .warehouse-card-v2-task-footer{margin-top:8px!important;padding-top:6px!important;border-top:1px solid #e8eef5!important;justify-content:space-between!important}
.warehouse-page .warehouse-card-v2-bottom-note{color:#64748b!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{margin-top:7px!important;padding-top:6px!important;border-top:1px solid #e8eef5!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions button{min-height:28px!important;font-size:10px!important;font-weight:900!important}
.warehouse-page .warehouse-realization-unassigned-card .warehouse-ops-actions{display:none!important}


/* R147 warehouse card screen-match refinements */

.warehouse-page .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card{
  border-radius:14px!important;
  border-width:1px!important;
  border-left-width:4px!important;
  box-shadow:0 10px 24px rgba(15,41,76,.08)!important;
  background:#fff!important;
  padding:12px 12px 10px!important;
}
.warehouse-page .warehouse-ops-card.is-domestic{border-color:#dceaf6!important;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important}
.warehouse-page .warehouse-ops-card.is-loading{border-color:#dcefe5!important;background:linear-gradient(180deg,#ffffff 0%,#fbfefc 100%)!important}
.warehouse-page .warehouse-ops-card.is-task{border-color:#e6e1fb!important;background:linear-gradient(180deg,#ffffff 0%,#fcfbff 100%)!important}
.warehouse-page .warehouse-card-v2-head{margin-bottom:8px!important}
.warehouse-page .warehouse-card-v2-head-inner{display:flex!important;align-items:center!important;gap:10px!important}
.warehouse-page .warehouse-card-v2-head-date{margin-left:auto!important;font-size:10px!important;font-weight:800!important;color:#7c8fa6!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v2-kind{padding:4px 10px!important;border-radius:12px!important;font-size:12px!important;font-weight:900!important}
.warehouse-page .warehouse-card-v2-kind.is-domestic{background:#edf7ff!important;color:#175a86!important}
.warehouse-page .warehouse-card-v2-kind.is-loading{background:#edf9f2!important;color:#17643f!important}
.warehouse-page .warehouse-card-v2-kind.is-task{background:#f2eeff!important;color:#6546c2!important}
.warehouse-page .warehouse-card-v2-row{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
.warehouse-page .warehouse-card-v2-meta{margin-bottom:6px!important}
.warehouse-page .warehouse-card-v2-id{font-size:13px!important;font-weight:800!important;color:#43556b!important}
.warehouse-page .warehouse-card-v2-title{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;line-height:1.2!important;font-weight:900!important;color:#173761!important}
.warehouse-page .warehouse-card-v2-company{font-size:14px!important;margin-bottom:4px!important}
.warehouse-page .warehouse-card-v2-location{font-size:12px!important;font-weight:700!important;color:#5a6d80!important}
.warehouse-page .warehouse-card-v2-direction-pill{padding:6px 10px!important;border-radius:10px!important;font-size:12px!important}
.warehouse-page .warehouse-card-v2-divider{margin:8px 0!important}
.warehouse-page .warehouse-card-v2-metrics{gap:8px!important;margin-bottom:8px!important}
.warehouse-page .warehouse-card-v2-metric{padding:7px 8px!important;border-radius:10px!important;background:#f5f8fb!important;font-size:12px!important}
.warehouse-page .warehouse-card-v2-vehicle,
.warehouse-page .warehouse-card-v2-clock,
.warehouse-page .warehouse-card-v2-simpleline,
.warehouse-page .warehouse-card-v2-driverline{font-size:12px!important;font-weight:800!important}
.warehouse-page .warehouse-card-v2-doc-chip{padding:4px 8px!important;border-radius:8px!important;font-size:11px!important}
.warehouse-page .warehouse-card-v2-loading-right{flex:0 0 126px!important;min-width:126px!important}
.warehouse-page .warehouse-card-v2-loading-right>div{font-size:12px!important}
.warehouse-page .warehouse-card-v2-bottom-strip{padding:8px 10px!important;border-radius:10px!important;font-size:11px!important;margin-top:6px!important}
.warehouse-page .warehouse-card-v2-tasktype{font-size:12px!important;letter-spacing:.02em!important}
.warehouse-page .warehouse-card-v2-transfer{margin-top:4px!important;font-size:17px!important;line-height:1.2!important}
.warehouse-page .warehouse-card-v2-task-footer{margin-top:8px!important;padding-top:8px!important}
.warehouse-page .warehouse-card-v2-bottom-note{font-size:11px!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{margin-top:8px!important;padding-top:8px!important;border-top:1px solid #e8eef5!important}


/* R148: Przyjęcie krajowe - 4-row compact layout */
.warehouse-page .warehouse-ops-card.is-domestic{padding:9px 10px!important}
.warehouse-page .warehouse-card-v3-domestic-head{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;margin-bottom:7px!important}
.warehouse-page .warehouse-card-v3-domestic-kind{display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:0!important;white-space:nowrap!important;font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.01em!important;color:#175a86!important}
.warehouse-page .warehouse-card-v3-domestic-kind img{width:13px!important;height:13px!important;flex:0 0 13px!important}
.warehouse-page .warehouse-card-v3-domestic-statuses{display:flex!important;align-items:center!important;gap:4px!important;margin-left:auto!important;flex:0 0 auto!important}
.warehouse-page .warehouse-card-v3-domestic-party{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(72px,.75fr)!important;gap:10px!important;align-items:center!important;padding-bottom:7px!important;border-bottom:1px solid #e7eef5!important}
.warehouse-page .warehouse-card-v3-domestic-party-left,.warehouse-page .warehouse-card-v3-domestic-party-right{display:grid!important;gap:3px!important;min-width:0!important}
.warehouse-page .warehouse-card-v3-domestic-party-left>b,.warehouse-page .warehouse-card-v3-domestic-party-right>b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;line-height:1.1!important;font-weight:900!important;color:#173761!important}
.warehouse-page .warehouse-card-v3-domestic-party-left>span{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;color:#64748b!important;font-size:9.5px!important;font-weight:700!important}
.warehouse-page .warehouse-card-v3-domestic-party-left>span img{width:12px!important;height:12px!important;flex:0 0 12px!important;opacity:.78!important}
.warehouse-page .warehouse-card-v3-domestic-party-left>span>span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v3-domestic-party-right{justify-items:end!important;text-align:right!important}
.warehouse-page .warehouse-card-v3-domestic-direction{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:3px 7px!important;border-radius:8px!important;background:#eaf7ee!important;color:#19734a!important;font-size:9.5px!important;font-weight:900!important}
.warehouse-page .warehouse-card-v3-domestic-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:7px 0!important;border-bottom:1px solid #e7eef5!important}
.warehouse-page .warehouse-card-v3-domestic-metrics>div{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;padding:4px 5px!important;border-radius:7px!important;background:#f5f8fb!important;color:#173761!important;font-size:9.5px!important;font-weight:900!important}
.warehouse-page .warehouse-card-v3-domestic-metrics img{width:12px!important;height:12px!important;flex:0 0 12px!important}
.warehouse-page .warehouse-card-v3-domestic-metrics span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-card-v3-domestic-transport{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding-top:7px!important}
.warehouse-page .warehouse-card-v3-domestic-transport>div{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;color:#42566d!important;font-size:9.5px!important;font-weight:800!important}
.warehouse-page .warehouse-card-v3-domestic-transport img{width:13px!important;height:13px!important;flex:0 0 13px!important;opacity:.85!important}
.warehouse-page .warehouse-card-v3-domestic-transport span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* R149: Przyjęcie krajowe – układ 1:1 wg wzoru użytkownika */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:220px!important;
  padding:10px 11px 9px!important;
  border:1px solid #d9e3ee!important;
  border-left:4px solid #159bd3!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(15,41,76,.075)!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-head,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-tms,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-party,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-metrics,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-transport,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-docs,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-head,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-tms,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-party,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-metrics,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-transport,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-docs,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-head,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-tms,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-party,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-transport,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-exact-docs{
  display:flex!important;
}
.warehouse-page .warehouse-domestic-exact-head{
  align-items:center!important;
  gap:7px!important;
  min-height:24px!important;
  padding:0 1px 7px!important;
  border-bottom:1px solid #e7edf4!important;
}
.warehouse-page .warehouse-domestic-exact-title{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  color:#173761!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-exact-title img{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
}
.warehouse-page .warehouse-domestic-exact-more{
  margin-left:auto!important;
  color:#75879a!important;
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:1px!important;
}
.warehouse-page .warehouse-domestic-exact-tms{
  align-items:center!important;
  gap:7px!important;
  min-height:31px!important;
  padding:7px 0!important;
  border-bottom:1px solid #e7edf4!important;
}
.warehouse-page .warehouse-domestic-exact-tms-value{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  color:#3f5369!important;
  font-size:10.5px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-exact-tms-value img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.warehouse-page .warehouse-domestic-exact-statuses{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
}
.warehouse-page .warehouse-domestic-exact-statuses .warehouse-ops-badge{
  padding:4px 7px!important;
  border-radius:8px!important;
  font-size:8.5px!important;
  line-height:1!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-exact-party{
  align-items:center!important;
  gap:10px!important;
  min-height:49px!important;
  padding:8px 0!important;
  border-bottom:1px solid #e7edf4!important;
}
.warehouse-page .warehouse-domestic-exact-party-main{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.warehouse-page .warehouse-domestic-exact-company,
.warehouse-page .warehouse-domestic-exact-city{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-domestic-exact-company img,
.warehouse-page .warehouse-domestic-exact-city img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  opacity:.9!important;
}
.warehouse-page .warehouse-domestic-exact-company b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#173761!important;
  font-size:11.5px!important;
  line-height:1.05!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-exact-city span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#67798d!important;
  font-size:9.5px!important;
  line-height:1.05!important;
  font-weight:700!important;
}
.warehouse-page .warehouse-domestic-exact-direction{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  padding:6px 9px!important;
  border-radius:9px!important;
  background:#eaf8ef!important;
  color:#17834d!important;
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-exact-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  min-height:34px!important;
  padding:7px 0!important;
  border-bottom:1px solid #e7edf4!important;
}
.warehouse-page .warehouse-domestic-exact-metric{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  min-width:0!important;
  padding:0 7px!important;
  color:#173761!important;
  font-size:10.5px!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-exact-metric:first-child{padding-left:1px!important}
.warehouse-page .warehouse-domestic-exact-metric+ .warehouse-domestic-exact-metric{border-left:1px solid #e5ecf3!important}
.warehouse-page .warehouse-domestic-exact-metric img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.warehouse-page .warehouse-domestic-exact-metric span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-exact-transport{
  align-items:center!important;
  gap:8px!important;
  min-height:32px!important;
  padding:8px 0 5px!important;
}
.warehouse-page .warehouse-domestic-exact-vehicle,
.warehouse-page .warehouse-domestic-exact-time{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  color:#52667c!important;
  font-size:9.5px!important;
  font-weight:800!important;
}
.warehouse-page .warehouse-domestic-exact-vehicle{flex:1 1 auto!important}
.warehouse-page .warehouse-domestic-exact-time{flex:0 0 auto!important;margin-left:auto!important;color:#173761!important}
.warehouse-page .warehouse-domestic-exact-vehicle img,
.warehouse-page .warehouse-domestic-exact-time img{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
}
.warehouse-page .warehouse-domestic-exact-vehicle span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-exact-docs{
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  min-height:25px!important;
}
.warehouse-page .warehouse-domestic-exact-doc{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:4px 7px!important;
  border-radius:8px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-exact-doc img{
  width:12px!important;
  height:12px!important;
  flex:0 0 12px!important;
}
.warehouse-page .warehouse-domestic-exact-doc.is-cmr{background:#edf9f1!important;color:#168147!important}
.warehouse-page .warehouse-domestic-exact-doc.is-photo{background:#f1f4f7!important;color:#52667b!important}
.warehouse-page .warehouse-domestic-exact-doc.is-cmr b{color:#159447!important;font-size:11px!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{
  margin-top:6px!important;
  padding-top:6px!important;
  border-top:1px solid #e7edf4!important;
}
/* R149: ensure old compact nth-of-type rules never hide the exact domestic layout. */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>div:nth-of-type(2),
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>div:nth-of-type(3),
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>div:nth-of-type(2),
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>div:nth-of-type(3){
  display:flex!important;
}


/* R150: Przyjęcie krajowe dokładnie wg referencji użytkownika */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:228px!important;
  padding:0 11px 10px!important;
  border:1px solid #d7e3ef!important;
  border-left:4px solid #159bd3!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(15,41,76,.08)!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-domestic-target-head,
.warehouse-page .warehouse-domestic-target-party,
.warehouse-page .warehouse-domestic-target-bottom{display:flex!important}
.warehouse-page .warehouse-domestic-target-head{
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
  margin:0 -11px 0 -11px!important;
  padding:0 12px!important;
  background:linear-gradient(180deg,#f1f8ff 0%,#eef6fd 100%)!important;
  border-bottom:1px solid #e2ebf4!important;
}
.warehouse-page .warehouse-domestic-target-title{display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important;color:#10294d!important;font-size:11.5px!important;font-weight:950!important;letter-spacing:.01em!important}
.warehouse-page .warehouse-domestic-target-title img{width:19px!important;height:19px!important;flex:0 0 19px!important}
.warehouse-page .warehouse-domestic-target-more{margin-left:auto!important;color:#62758b!important;font-size:15px!important;letter-spacing:1px!important;line-height:1!important}
.warehouse-page .warehouse-domestic-target-party{align-items:center!important;gap:8px!important;padding:11px 0 10px!important}
.warehouse-page .warehouse-domestic-target-party-left{display:grid!important;gap:6px!important;min-width:0!important;flex:1 1 42%!important}
.warehouse-page .warehouse-domestic-target-company,.warehouse-page .warehouse-domestic-target-city{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
.warehouse-page .warehouse-domestic-target-company img,.warehouse-page .warehouse-domestic-target-city img{width:16px!important;height:16px!important;flex:0 0 16px!important;opacity:.9!important}
.warehouse-page .warehouse-domestic-target-company b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#10294d!important;font-size:13px!important;font-weight:950!important;line-height:1.1!important}
.warehouse-page .warehouse-domestic-target-city span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#65778d!important;font-size:10.5px!important;font-weight:700!important;line-height:1.1!important}
.warehouse-page .warehouse-domestic-target-boxes{display:grid!important;grid-template-columns:66px minmax(84px,1fr)!important;gap:6px!important;flex:0 0 156px!important;min-width:0!important}
.warehouse-page .warehouse-domestic-target-directionbox,.warehouse-page .warehouse-domestic-target-warehousebox{display:grid!important;align-content:center!important;min-width:0!important;min-height:62px!important;padding:7px 8px!important;border-radius:10px!important;text-align:center!important}
.warehouse-page .warehouse-domestic-target-directionbox{background:#eefaf2!important;color:#168347!important}
.warehouse-page .warehouse-domestic-target-warehousebox{background:#eef6ff!important;color:#245ba5!important}
.warehouse-page .warehouse-domestic-target-directionbox small,.warehouse-page .warehouse-domestic-target-warehousebox small{display:block!important;font-size:8.5px!important;line-height:1!important;font-weight:800!important;color:#64758a!important;margin-bottom:5px!important}
.warehouse-page .warehouse-domestic-target-directionbox b{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:17px!important;line-height:1!important;font-weight:950!important;white-space:nowrap!important}
.warehouse-page .warehouse-domestic-target-directionbox b span{font-size:23px!important;line-height:.8!important}
.warehouse-page .warehouse-domestic-target-warehousebox b{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;font-size:11px!important;line-height:1.05!important;font-weight:950!important}
.warehouse-page .warehouse-domestic-target-warehousebox b span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-domestic-target-warehousebox img{width:17px!important;height:17px!important;flex:0 0 17px!important}
.warehouse-page .warehouse-domestic-target-divider{height:1px!important;background:#dfe8f1!important;margin:0!important}
.warehouse-page .warehouse-domestic-target-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:10px 0!important}
.warehouse-page .warehouse-domestic-target-metric{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;padding:0 7px!important;color:#10294d!important;font-size:12px!important;font-weight:950!important}
.warehouse-page .warehouse-domestic-target-metric:first-child{justify-content:flex-start!important;padding-left:1px!important}
.warehouse-page .warehouse-domestic-target-metric+ .warehouse-domestic-target-metric{border-left:1px solid #dfe8f1!important}
.warehouse-page .warehouse-domestic-target-metric img{width:17px!important;height:17px!important;flex:0 0 17px!important;opacity:.9!important}
.warehouse-page .warehouse-domestic-target-metric span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.warehouse-page .warehouse-domestic-target-bottom{align-items:stretch!important;gap:8px!important;padding:10px 0 0!important}
.warehouse-page .warehouse-domestic-target-bottom-left{display:grid!important;gap:8px!important;min-width:0!important;flex:1 1 auto!important}
.warehouse-page .warehouse-domestic-target-driver,.warehouse-page .warehouse-domestic-target-vehicle{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
.warehouse-page .warehouse-domestic-target-driver>img,.warehouse-page .warehouse-domestic-target-vehicle>img{width:19px!important;height:19px!important;flex:0 0 19px!important;opacity:.9!important}
.warehouse-page .warehouse-domestic-target-driver>div,.warehouse-page .warehouse-domestic-target-vehicle>div{display:grid!important;gap:1px!important;min-width:0!important}
.warehouse-page .warehouse-domestic-target-driver small,.warehouse-page .warehouse-domestic-target-vehicle small{font-size:8.5px!important;line-height:1!important;font-weight:800!important;color:#65778d!important}
.warehouse-page .warehouse-domestic-target-driver b,.warehouse-page .warehouse-domestic-target-vehicle b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;line-height:1.05!important;font-weight:950!important;color:#10294d!important}
.warehouse-page .warehouse-domestic-target-timewrap{display:grid!important;place-items:center!important;flex:0 0 76px!important;border-left:1px solid #dfe8f1!important;padding-left:8px!important}
.warehouse-page .warehouse-domestic-target-time{display:flex!important;align-items:center!important;gap:6px!important;color:#10294d!important}
.warehouse-page .warehouse-domestic-target-time img{width:20px!important;height:20px!important;flex:0 0 20px!important}
.warehouse-page .warehouse-domestic-target-time b{font-size:14px!important;font-weight:950!important;white-space:nowrap!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{margin-top:9px!important;padding-top:8px!important;border-top:1px solid #e2e8f0!important}
/* Ensure old nth-of-type compact rules cannot hide any R150 sections. */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-party,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-bottom,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-party,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-bottom,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-party,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-bottom{display:flex!important}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-target-metrics{display:grid!important}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{min-height:250px!important}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{min-height:282px!important}

/* R151: Przyjęcie krajowe — layout 1:1 wg referencji użytkownika */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  box-sizing:border-box!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  min-height:204px!important;
  padding:0 7px 7px!important;
  border:1px solid #cfe0f1!important;
  border-left:4px solid #1583ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(28,63,102,.08)!important;
  overflow:hidden!important;
}

.warehouse-page .warehouse-domestic-r151-head,
.warehouse-page .warehouse-domestic-r151-party,
.warehouse-page .warehouse-domestic-r151-route,
.warehouse-page .warehouse-domestic-r151-bottom{
  display:grid!important;
  min-width:0!important;
}

.warehouse-page .warehouse-domestic-r151-head{
  grid-template-columns:minmax(0,1fr) 84px!important;
  align-items:center!important;
  min-height:39px!important;
  margin:0 -7px!important;
  padding:0 7px 0 8px!important;
  background:linear-gradient(180deg,#f4f9ff 0%,#eef6fd 100%)!important;
  border-bottom:1px solid #e0e9f2!important;
}
.warehouse-page .warehouse-domestic-r151-head-title{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  padding-right:5px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title img{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.005em!important;
  color:#081b3b!important;
}
.warehouse-page .warehouse-domestic-r151-datetime{
  display:grid!important;
  justify-items:end!important;
  align-content:center!important;
  min-height:30px!important;
  padding-left:6px!important;
  border-left:1px solid #d6e2ee!important;
}
.warehouse-page .warehouse-domestic-r151-datetime b{
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#08162f!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-r151-datetime span{
  margin-top:3px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:800!important;
  color:#61738a!important;
  white-space:nowrap!important;
}

.warehouse-page .warehouse-domestic-r151-party{
  grid-template-columns:minmax(0,1fr) minmax(0,1.03fr)!important;
  align-items:center!important;
  gap:0!important;
  min-height:46px!important;
  padding:6px 0 5px!important;
}
.warehouse-page .warehouse-domestic-r151-company,
.warehouse-page .warehouse-domestic-r151-address{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-domestic-r151-company{
  padding-right:6px!important;
}
.warehouse-page .warehouse-domestic-r151-address{
  min-height:32px!important;
  padding-left:7px!important;
  border-left:1px solid #dce6ef!important;
}
.warehouse-page .warehouse-domestic-r151-company img,
.warehouse-page .warehouse-domestic-r151-address img{
  width:21px!important;
  height:21px!important;
  flex:0 0 21px!important;
  opacity:.9!important;
}
.warehouse-page .warehouse-domestic-r151-company b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
  line-height:1.08!important;
  font-weight:950!important;
  color:#081b3b!important;
}
.warehouse-page .warehouse-domestic-r151-address span{
  display:-webkit-box!important;
  min-width:0!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#53677e!important;
}

.warehouse-page .warehouse-domestic-r151-route{
  grid-template-columns:1fr 1fr!important;
  gap:4px!important;
  padding:0 0 5px!important;
}
.warehouse-page .warehouse-domestic-r151-direction,
.warehouse-page .warehouse-domestic-r151-warehouse{
  display:grid!important;
  align-content:center!important;
  min-width:0!important;
  min-height:39px!important;
  padding:4px 7px!important;
  border-radius:9px!important;
}
.warehouse-page .warehouse-domestic-r151-direction{
  background:linear-gradient(135deg,#effbf3 0%,#e8f8ee 100%)!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse{
  background:linear-gradient(135deg,#f1f7ff 0%,#eaf4ff 100%)!important;
}
.warehouse-page .warehouse-domestic-r151-direction small,
.warehouse-page .warehouse-domestic-r151-warehouse small{
  display:block!important;
  margin-bottom:3px!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:850!important;
  color:#52677e!important;
}
.warehouse-page .warehouse-domestic-r151-direction b{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  color:#0a9a45!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:950!important;
}
.warehouse-page .warehouse-domestic-r151-direction b span{
  font-size:23px!important;
  line-height:.75!important;
  font-weight:800!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse b{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  color:#1662bf!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse b span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}

.warehouse-page .warehouse-domestic-r151-divider{
  display:block!important;
  height:1px!important;
  margin:0!important;
  background:#dfe8f1!important;
}
.warehouse-page .warehouse-domestic-r151-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  min-height:36px!important;
  padding:5px 0!important;
}
.warehouse-page .warehouse-domestic-r151-metric{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  padding:0 4px!important;
}
.warehouse-page .warehouse-domestic-r151-metric:first-child{
  justify-content:flex-start!important;
  padding-left:2px!important;
}
.warehouse-page .warehouse-domestic-r151-metric+.warehouse-domestic-r151-metric{
  border-left:1px solid #dce6ef!important;
}
.warehouse-page .warehouse-domestic-r151-metric img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  opacity:.88!important;
}
.warehouse-page .warehouse-domestic-r151-metric b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12.5px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#08162f!important;
}

.warehouse-page .warehouse-domestic-r151-bottom{
  grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr)!important;
  align-items:center!important;
  gap:0!important;
  min-height:46px!important;
  padding-top:5px!important;
}
.warehouse-page .warehouse-domestic-r151-driver,
.warehouse-page .warehouse-domestic-r151-vehicle{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-domestic-r151-driver{
  padding-right:6px!important;
}
.warehouse-page .warehouse-domestic-r151-vehicle{
  min-height:34px!important;
  padding-left:7px!important;
  border-left:1px solid #dce6ef!important;
}
.warehouse-page .warehouse-domestic-r151-driver>img,
.warehouse-page .warehouse-domestic-r151-vehicle>img{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  opacity:.9!important;
}
.warehouse-page .warehouse-domestic-r151-driver>div,
.warehouse-page .warehouse-domestic-r151-vehicle>div{
  display:grid!important;
  gap:1px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-domestic-r151-driver small,
.warehouse-page .warehouse-domestic-r151-vehicle small{
  display:block!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:850!important;
  color:#53677e!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-domestic-r151-driver b,
.warehouse-page .warehouse-domestic-r151-vehicle b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.05!important;
  font-weight:950!important;
  color:#08162f!important;
}

/* Old compact nth-of-type rules must never hide R151 sections. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-head,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-party,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-route,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-metrics,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-bottom{
  visibility:visible!important;
  opacity:1!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-head,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-party,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-route,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-bottom{
  display:grid!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-metrics{display:grid!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-domestic-r151-divider{display:block!important}

.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{min-height:224px!important}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{min-height:258px!important}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{
  margin-top:5px!important;
  padding-top:5px!important;
  border-top:1px solid #e2e8f0!important;
}


/* R152: ciaśniejsze marginesy kafelka Przyjęcie krajowe */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  min-height:204px!important;
  padding:0 7px 7px!important;
}
.warehouse-page .warehouse-domestic-r151-head{
  min-height:45px!important;
  margin:0 -7px!important;
  padding:0 7px 0 8px!important;
}
.warehouse-page .warehouse-domestic-r151-party{
  min-height:46px!important;
  padding:6px 0 5px!important;
}
.warehouse-page .warehouse-domestic-r151-route{
  gap:4px!important;
  padding-bottom:5px!important;
}
.warehouse-page .warehouse-domestic-r151-direction,
.warehouse-page .warehouse-domestic-r151-warehouse{
  min-height:39px!important;
  padding:4px 7px!important;
}
.warehouse-page .warehouse-domestic-r151-metrics{
  min-height:36px!important;
  padding:5px 0!important;
}
.warehouse-page .warehouse-domestic-r151-bottom{
  min-height:46px!important;
  padding-top:5px!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{
  margin-top:5px!important;
  padding-top:5px!important;
}

/* R153: Przyjęcie krajowe — czytelność po kompresji R152 */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  min-height:212px!important;
  padding:0 6px 6px!important;
}
.warehouse-page .warehouse-domestic-r151-head{
  grid-template-columns:minmax(0,1fr) 76px!important;
  min-height:43px!important;
  margin:0 -6px!important;
  padding:0 6px 0 7px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title img{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title b{
  font-size:12px!important;
}
.warehouse-page .warehouse-domestic-r151-datetime b{
  font-size:17px!important;
}
.warehouse-page .warehouse-domestic-r151-datetime span{
  font-size:8.5px!important;
}
.warehouse-page .warehouse-domestic-r151-party{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  min-height:50px!important;
  padding:5px 0!important;
}
.warehouse-page .warehouse-domestic-r151-company{
  padding-right:5px!important;
}
.warehouse-page .warehouse-domestic-r151-address{
  min-height:36px!important;
  padding-left:6px!important;
}
.warehouse-page .warehouse-domestic-r151-company img,
.warehouse-page .warehouse-domestic-r151-address img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.warehouse-page .warehouse-domestic-r151-company b{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:12px!important;
  line-height:1.08!important;
}
.warehouse-page .warehouse-domestic-r151-address span{
  -webkit-line-clamp:2!important;
  font-size:9px!important;
  line-height:1.15!important;
}
.warehouse-page .warehouse-domestic-r151-route{
  gap:3px!important;
  padding-bottom:4px!important;
}
.warehouse-page .warehouse-domestic-r151-direction,
.warehouse-page .warehouse-domestic-r151-warehouse{
  min-height:36px!important;
  padding:3px 6px!important;
}
.warehouse-page .warehouse-domestic-r151-direction small,
.warehouse-page .warehouse-domestic-r151-warehouse small{
  margin-bottom:2px!important;
  font-size:8px!important;
}
.warehouse-page .warehouse-domestic-r151-direction b{
  font-size:15px!important;
}
.warehouse-page .warehouse-domestic-r151-direction b span{
  font-size:20px!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse b{
  font-size:11px!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse img{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
}
.warehouse-page .warehouse-domestic-r151-metrics{
  min-height:34px!important;
  padding:4px 0!important;
}
.warehouse-page .warehouse-domestic-r151-metric{
  gap:4px!important;
  padding:0 3px!important;
}
.warehouse-page .warehouse-domestic-r151-metric img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.warehouse-page .warehouse-domestic-r151-metric b{
  font-size:10.5px!important;
}
.warehouse-page .warehouse-domestic-r151-bottom{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  min-height:48px!important;
  padding-top:4px!important;
}
.warehouse-page .warehouse-domestic-r151-driver{
  padding-right:5px!important;
}
.warehouse-page .warehouse-domestic-r151-vehicle{
  min-height:36px!important;
  padding-left:6px!important;
}
.warehouse-page .warehouse-domestic-r151-driver>img,
.warehouse-page .warehouse-domestic-r151-vehicle>img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.warehouse-page .warehouse-domestic-r151-driver small,
.warehouse-page .warehouse-domestic-r151-vehicle small{
  font-size:7.8px!important;
}
.warehouse-page .warehouse-domestic-r151-driver b,
.warehouse-page .warehouse-domestic-r151-vehicle b{
  font-size:9.7px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-domestic-r151-driver b{
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.warehouse-page .warehouse-domestic-r151-vehicle b{
  letter-spacing:-.01em!important;
}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{min-height:232px!important}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{min-height:266px!important}

/* R154: Przyjęcie krajowe — pełna szerokość trasy, więcej miejsca na firmę, ciaśniejszy układ */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  min-height:198px!important;
  padding:0 5px 4px!important;
}
.warehouse-page .warehouse-domestic-r151-head{
  grid-template-columns:minmax(0,1fr) 72px!important;
  min-height:38px!important;
  margin:0 -5px!important;
  padding:0 5px 0 6px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title{
  gap:3px!important;
  padding-right:3px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.warehouse-page .warehouse-domestic-r151-head-title b{
  font-size:11.5px!important;
  line-height:1!important;
}
.warehouse-page .warehouse-domestic-r151-datetime b{
  font-size:16px!important;
  line-height:1!important;
}
.warehouse-page .warehouse-domestic-r151-datetime span{
  margin-top:1px!important;
  font-size:8px!important;
}

/* Firma dostaje wyraźnie więcej szerokości, adres może zajmować 3 linie. */
.warehouse-page .warehouse-domestic-r151-party{
  grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr)!important;
  min-height:47px!important;
  padding:3px 0 3px!important;
}
.warehouse-page .warehouse-domestic-r151-company{
  gap:4px!important;
  padding-right:5px!important;
}
.warehouse-page .warehouse-domestic-r151-address{
  min-height:39px!important;
  gap:4px!important;
  padding-left:5px!important;
}
.warehouse-page .warehouse-domestic-r151-company img,
.warehouse-page .warehouse-domestic-r151-address img{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}
.warehouse-page .warehouse-domestic-r151-company b{
  font-size:11.5px!important;
  line-height:1.05!important;
  -webkit-line-clamp:2!important;
}
.warehouse-page .warehouse-domestic-r151-address span{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  white-space:normal!important;
  overflow:hidden!important;
  font-size:8.2px!important;
  line-height:1.12!important;
}

/* Kierunek i Magazyn wykorzystują całą szerokość kafelka po 50%. */
.warehouse-page .warehouse-domestic-r151-route{
  width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;
  padding:0 0 3px!important;
}
.warehouse-page .warehouse-domestic-r151-direction,
.warehouse-page .warehouse-domestic-r151-warehouse{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:33px!important;
  padding:3px 6px!important;
}
.warehouse-page .warehouse-domestic-r151-direction small,
.warehouse-page .warehouse-domestic-r151-warehouse small{
  margin-bottom:1px!important;
  font-size:7.6px!important;
}
.warehouse-page .warehouse-domestic-r151-direction b{
  font-size:14px!important;
}
.warehouse-page .warehouse-domestic-r151-direction b span{
  font-size:18px!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse b{
  font-size:10.5px!important;
}
.warehouse-page .warehouse-domestic-r151-warehouse img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}

.warehouse-page .warehouse-domestic-r151-metrics{
  min-height:30px!important;
  padding:3px 0!important;
}
.warehouse-page .warehouse-domestic-r151-metric{
  gap:3px!important;
  padding:0 2px!important;
}
.warehouse-page .warehouse-domestic-r151-metric img{
  width:13px!important;
  height:13px!important;
  flex:0 0 13px!important;
}
.warehouse-page .warehouse-domestic-r151-metric b{
  font-size:10px!important;
}

/* Dół: ciągnik/naczepa po lewej, kierowca po prawej. */
.warehouse-page .warehouse-domestic-r151-bottom{
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;
  min-height:40px!important;
  padding-top:2px!important;
}
.warehouse-page .warehouse-domestic-r151-vehicle{
  min-height:32px!important;
  padding-left:0!important;
  padding-right:6px!important;
  border-left:0!important;
  border-right:1px solid #dce6ef!important;
}
.warehouse-page .warehouse-domestic-r151-driver{
  min-height:32px!important;
  padding-left:6px!important;
  padding-right:0!important;
}
.warehouse-page .warehouse-domestic-r151-driver>img,
.warehouse-page .warehouse-domestic-r151-vehicle>img{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}
.warehouse-page .warehouse-domestic-r151-driver small,
.warehouse-page .warehouse-domestic-r151-vehicle small{
  font-size:7.2px!important;
}
.warehouse-page .warehouse-domestic-r151-driver b,
.warehouse-page .warehouse-domestic-r151-vehicle b{
  font-size:9.2px!important;
  line-height:1.02!important;
}
.warehouse-page .warehouse-domestic-r151-vehicle b{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.warehouse-page .warehouse-domestic-r151-driver b{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{
  margin-top:3px!important;
  padding-top:3px!important;
}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker{min-height:218px!important}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{min-height:250px!important}


/* R155: compact grouped Domestic Receipt card in Nieprzypisane */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic{
  padding:7px 8px!important;
  min-height:0!important;
  border-left:4px solid #159bd3!important;
  border-color:#cfe4f2!important;
  background:#fff!important;
  border-radius:9px!important;
  box-shadow:0 2px 7px rgba(15,55,96,.06)!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .is-unassigned-domestic>div{
  display:flex!important;
}
.warehouse-page .warehouse-unassigned-domestic-head{
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:6px!important;
  padding-bottom:5px!important;
  border-bottom:1px solid #e8eef5!important;
}
.warehouse-page .warehouse-unassigned-domestic-title{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-unassigned-domestic-title img{width:13px!important;height:13px!important;flex:0 0 13px!important}
.warehouse-page .warehouse-unassigned-domestic-title b{font-size:9px!important;line-height:1.1!important;font-weight:900!important;color:#173761!important;white-space:nowrap!important}
.warehouse-page .warehouse-unassigned-domestic-confirmed{display:grid!important;text-align:right!important;gap:1px!important;flex:0 0 auto!important}
.warehouse-page .warehouse-unassigned-domestic-confirmed small{font-size:6.5px!important;line-height:1!important;color:#94a3b8!important;font-weight:800!important;text-transform:uppercase!important}
.warehouse-page .warehouse-unassigned-domestic-confirmed b{font-size:7.5px!important;line-height:1.05!important;color:#52677e!important;font-weight:900!important;white-space:nowrap!important}
.warehouse-page .warehouse-unassigned-domestic-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px!important;
  padding:6px 0!important;
  border-bottom:1px solid #edf2f7!important;
}
.warehouse-page .warehouse-unassigned-domestic-row>div{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-unassigned-domestic-row img{width:13px!important;height:13px!important;flex:0 0 13px!important;opacity:.82!important}
.warehouse-page .warehouse-unassigned-domestic-row span{display:grid!important;min-width:0!important;gap:1px!important}
.warehouse-page .warehouse-unassigned-domestic-row small,
.warehouse-page .warehouse-unassigned-domestic-directions small{font-size:6.5px!important;line-height:1!important;color:#94a3b8!important;font-weight:800!important}
.warehouse-page .warehouse-unassigned-domestic-row b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.05!important;color:#173761!important;font-weight:900!important}
.warehouse-page .warehouse-unassigned-domestic-directions{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  padding-top:6px!important;
}
.warehouse-page .warehouse-unassigned-domestic-directions b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8.5px!important;line-height:1!important;color:#0f7d4b!important;font-weight:900!important}

/* R156: readable grouped Domestic Receipt cards in Nieprzypisane */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic{
  padding:8px 9px!important;
  border-radius:10px!important;
}
.warehouse-page .warehouse-unassigned-domestic-head{
  gap:8px!important;
  padding-bottom:6px!important;
}
.warehouse-page .warehouse-unassigned-domestic-title{
  flex:1 1 auto!important;
}
.warehouse-page .warehouse-unassigned-domestic-title img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.warehouse-page .warehouse-unassigned-domestic-title b{
  font-size:9.5px!important;
  line-height:1.1!important;
}
.warehouse-page .warehouse-unassigned-domestic-confirmed{
  flex:0 0 92px!important;
  min-width:92px!important;
}
.warehouse-page .warehouse-unassigned-domestic-confirmed small{
  font-size:6.8px!important;
}
.warehouse-page .warehouse-unassigned-domestic-confirmed b{
  font-size:7.8px!important;
  line-height:1.12!important;
  white-space:normal!important;
}
.warehouse-page .warehouse-unassigned-domestic-row{
  grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;
  gap:10px!important;
  padding:7px 0!important;
}
.warehouse-page .warehouse-unassigned-domestic-row>div{
  align-items:flex-start!important;
  gap:6px!important;
}
.warehouse-page .warehouse-unassigned-domestic-row img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  margin-top:1px!important;
}
.warehouse-page .warehouse-unassigned-domestic-row small,
.warehouse-page .warehouse-unassigned-domestic-directions small{
  font-size:7px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-unassigned-domestic-row b{
  font-size:8.8px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.warehouse-page .warehouse-unassigned-domestic-transport b{
  display:block!important;
  min-height:20px!important;
}
.warehouse-page .warehouse-unassigned-domestic-vehicle b>span{
  display:inline!important;
}
.warehouse-page .warehouse-unassigned-domestic-slash{
  color:#94a3b8!important;
}
.warehouse-page .warehouse-unassigned-domestic-stats{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.warehouse-page .warehouse-unassigned-domestic-stats b{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:9px!important;
}
.warehouse-page .warehouse-unassigned-domestic-directions{
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:8px!important;
  padding-top:7px!important;
}
.warehouse-page .warehouse-unassigned-domestic-directions b{
  font-size:9px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}

/* R157: one 10px font size in Nieprzypisane -> Przyjęcie krajowe */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic *{
  font-size:10px!important;
}

/* R158: exact Załadunek card based on provided reference */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading{
  min-height:304px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cfe4d8!important;
  border-left:4px solid #16a34a!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 5px 15px rgba(15,55,96,.07)!important;
}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-head,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-schedule,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-direction,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-vehicles,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-people,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-duration,
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-loading-r158-notes{
  display:flex!important;
}
.warehouse-page .warehouse-loading-r158-head{
  min-height:43px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:6px 9px!important;
  background:linear-gradient(90deg,#effcf4 0%,#f6fffa 100%)!important;
  border-bottom:1px solid #dcefe4!important;
}
.warehouse-page .warehouse-loading-r158-title{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r158-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 30px!important;
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  background:#dcfce7!important;
}
.warehouse-page .warehouse-loading-r158-icon img{
  width:23px!important;
  height:23px!important;
}
.warehouse-page .warehouse-loading-r158-title>b{
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0f2442!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-loading-r158-head-right{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  margin-left:auto!important;
}
.warehouse-page .warehouse-loading-r158-head .warehouse-ops-badge{
  padding:4px 7px!important;
  border-radius:8px!important;
  font-size:8.5px!important;
  line-height:1!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-loading-r158-more{
  color:#64748b!important;
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:1px!important;
  margin-left:2px!important;
}

.warehouse-page .warehouse-loading-r158-schedule{
  min-height:54px!important;
  align-items:center!important;
  padding:7px 10px!important;
  border-bottom:1px solid #e4ebf2!important;
}
.warehouse-page .warehouse-loading-r158-schedule>img{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  margin-right:9px!important;
}
.warehouse-page .warehouse-loading-r158-date,
.warehouse-page .warehouse-loading-r158-time{
  display:grid!important;
  align-content:center!important;
  gap:1px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r158-date{
  flex:1 1 55%!important;
  padding-right:8px!important;
}
.warehouse-page .warehouse-loading-r158-time{
  flex:0 0 38%!important;
  padding-left:10px!important;
  border-left:1px solid #dce5ee!important;
}
.warehouse-page .warehouse-loading-r158-schedule small,
.warehouse-page .warehouse-loading-r158-direction small,
.warehouse-page .warehouse-loading-r158-vehicles small,
.warehouse-page .warehouse-loading-r158-people small,
.warehouse-page .warehouse-loading-r158-duration small,
.warehouse-page .warehouse-loading-r158-notes small{
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:750!important;
  color:#607189!important;
}
.warehouse-page .warehouse-loading-r158-date>b{
  font-size:15px!important;
  line-height:1.05!important;
  font-weight:950!important;
  color:#0f2442!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-loading-r158-time>b{
  font-size:24px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0b8b3b!important;
  white-space:nowrap!important;
}

.warehouse-page .warehouse-loading-r158-direction{
  min-height:40px!important;
  align-items:center!important;
  gap:9px!important;
  padding:6px 10px!important;
  border-bottom:1px solid #e4ebf2!important;
}
.warehouse-page .warehouse-loading-r158-direction>img{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
  filter:hue-rotate(75deg) saturate(1.7)!important;
}
.warehouse-page .warehouse-loading-r158-direction>div{
  display:grid!important;
  gap:1px!important;
}
.warehouse-page .warehouse-loading-r158-direction b{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0f2442!important;
}
.warehouse-page .warehouse-loading-r158-direction b span{
  color:#0b9b45!important;
  font-size:22px!important;
  line-height:.8!important;
}

.warehouse-page .warehouse-loading-r158-vehicles{
  min-height:47px!important;
  align-items:center!important;
  padding:6px 10px!important;
  border-bottom:1px solid #e4ebf2!important;
}
.warehouse-page .warehouse-loading-r158-vehicles>div{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  flex:1 1 50%!important;
}
.warehouse-page .warehouse-loading-r158-vehicles>div+div{
  padding-left:9px!important;
  border-left:1px solid #dce5ee!important;
}
.warehouse-page .warehouse-loading-r158-vehicles img{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
}
.warehouse-page .warehouse-loading-r158-vehicles span{
  display:grid!important;
  gap:1px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r158-vehicles b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.05!important;
  font-weight:950!important;
  color:#0f2442!important;
}

.warehouse-page .warehouse-loading-r158-people{
  min-height:57px!important;
  align-items:stretch!important;
  padding:6px 10px!important;
  border-bottom:1px solid #e4ebf2!important;
}
.warehouse-page .warehouse-loading-r158-people>div{
  min-width:0!important;
  flex:1 1 50%!important;
}
.warehouse-page .warehouse-loading-r158-people>div+div{
  padding-left:9px!important;
  border-left:1px solid #dce5ee!important;
}
.warehouse-page .warehouse-loading-r158-difficulty,
.warehouse-page .warehouse-loading-r158-drivers{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}
.warehouse-page .warehouse-loading-r158-difficulty>span:last-child,
.warehouse-page .warehouse-loading-r158-drivers>span{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r158-bars{
  display:flex!important;
  align-items:flex-end!important;
  gap:3px!important;
  flex:0 0 25px!important;
  width:25px!important;
  height:27px!important;
}
.warehouse-page .warehouse-loading-r158-bars i{
  display:block!important;
  width:6px!important;
  border-radius:2px 2px 0 0!important;
  background:#64748b!important;
}
.warehouse-page .warehouse-loading-r158-bars i:nth-child(1){height:9px!important}
.warehouse-page .warehouse-loading-r158-bars i:nth-child(2){height:17px!important}
.warehouse-page .warehouse-loading-r158-bars i:nth-child(3){height:25px!important}
.warehouse-page .warehouse-loading-r158-bars.is-low i:nth-child(1){background:#16a34a!important}
.warehouse-page .warehouse-loading-r158-bars.is-medium i:nth-child(2){background:#f59e0b!important}
.warehouse-page .warehouse-loading-r158-bars.is-high i:nth-child(3){background:#dc2626!important}
.warehouse-page .warehouse-loading-r158-difficulty b{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  padding:4px 7px!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  background:#fef3c7!important;
  color:#92400e!important;
}
.warehouse-page .warehouse-loading-r158-difficulty b.is-low{background:#dcfce7!important;color:#166534!important}
.warehouse-page .warehouse-loading-r158-difficulty b.is-high{background:#fee2e2!important;color:#b91c1c!important}
.warehouse-page .warehouse-loading-r158-drivers>img{
  width:24px!important;
  height:24px!important;
  flex:0 0 24px!important;
}
.warehouse-page .warehouse-loading-r158-drivers b{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
  font-size:9.5px!important;
  line-height:1.08!important;
  font-weight:900!important;
  color:#0f2442!important;
}
.warehouse-page .warehouse-loading-r158-drivers b>span{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.warehouse-page .warehouse-loading-r158-duration{
  min-height:43px!important;
  align-items:center!important;
  gap:9px!important;
  padding:6px 10px!important;
  border-bottom:1px solid #e4ebf2!important;
}
.warehouse-page .warehouse-loading-r158-duration>img{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
}
.warehouse-page .warehouse-loading-r158-duration>div,
.warehouse-page .warehouse-loading-r158-notes>div{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r158-duration b{
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0f2442!important;
}

.warehouse-page .warehouse-loading-r158-notes{
  min-height:42px!important;
  align-items:flex-start!important;
  gap:9px!important;
  padding:6px 10px 7px!important;
}
.warehouse-page .warehouse-loading-r158-notes>img{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
}
.warehouse-page .warehouse-loading-r158-notes b{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#0f2442!important;
}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-ops-actions{
  display:flex!important;
  margin:0!important;
  padding:6px 8px!important;
  border-top:1px solid #e4ebf2!important;
  background:#fbfefc!important;
}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-ops-actions button{
  min-height:27px!important;
  font-size:9px!important;
}

/* Give loading cards enough vertical room without affecting domestic cards. */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading),
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading){
  min-height:326px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading){
  min-height:360px!important;
}

/* R159: 12px unified typography for Domestic Receipt cards in Nieprzypisane */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic *{
  font-size:12px!important;
}

/* R162: loading card rebuilt to exact row layout for Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-loading-r162-topline,
.warehouse-page .warehouse-loading-r160-route,
.warehouse-page .warehouse-loading-r160-people{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:10px!important;
  padding:6px 0!important;
  border-bottom:1px solid #e6edf5!important;
}
.warehouse-page .warehouse-loading-r162-drivers-row,
.warehouse-page .warehouse-loading-r160-fullrow{
  min-width:0!important;
  padding:6px 0!important;
  border-bottom:1px solid #e6edf5!important;
}
.warehouse-page .warehouse-loading-r162-topline{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
}
.warehouse-page .warehouse-loading-r160-head{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:22px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r160-head img{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}
.warehouse-page .warehouse-loading-r160-head b{
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#173761!important;
  letter-spacing:.02em!important;
}
.warehouse-page .warehouse-loading-r162-datetime{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,.8fr)!important;
  gap:10px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r160-direction,
.warehouse-page .warehouse-loading-r162-vehicle,
.warehouse-page .warehouse-loading-r160-difficulty,
.warehouse-page .warehouse-loading-r162-duration,
.warehouse-page .warehouse-loading-r162-drivers-row,
.warehouse-page .warehouse-loading-r160-fullrow,
.warehouse-page .warehouse-loading-r162-datetime>div{
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r162-topline small,
.warehouse-page .warehouse-loading-r160-route small,
.warehouse-page .warehouse-loading-r160-people small,
.warehouse-page .warehouse-loading-r162-drivers-row small,
.warehouse-page .warehouse-loading-r160-fullrow small{
  display:block!important;
  margin:0 0 2px!important;
  font-size:8px!important;
  line-height:1.05!important;
  font-weight:700!important;
  color:#74869a!important;
}
.warehouse-page .warehouse-loading-r162-topline b,
.warehouse-page .warehouse-loading-r160-route b,
.warehouse-page .warehouse-loading-r160-people b,
.warehouse-page .warehouse-loading-r162-drivers-row b,
.warehouse-page .warehouse-loading-r160-fullrow b{
  display:block!important;
  min-width:0!important;
  font-size:10.5px!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-loading-r160-time{
  color:#079447!important;
  font-size:12px!important;
}
.warehouse-page .warehouse-loading-r160-direction b{
  color:#079447!important;
  font-size:12px!important;
}
.warehouse-page .warehouse-loading-r162-vehicle b,
.warehouse-page .warehouse-loading-r162-datetime b,
.warehouse-page .warehouse-loading-r162-duration b{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.warehouse-page .warehouse-loading-r160-drivers{
  display:grid!important;
  gap:2px!important;
}
.warehouse-page .warehouse-loading-r160-drivers span{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-loading-r160-difficulty b{
  display:inline-flex!important;
  width:auto!important;
  padding:3px 6px!important;
  border-radius:6px!important;
  background:#fff0d0!important;
  color:#995100!important;
}
.warehouse-page .warehouse-loading-r160-difficulty b.is-low{background:#e8f8ef!important;color:#137a46!important}
.warehouse-page .warehouse-loading-r160-difficulty b.is-high{background:#fee9e9!important;color:#b42318!important}
.warehouse-page .warehouse-loading-r160-notes{
  border-bottom:0!important;
  padding-bottom:2px!important;
}
.warehouse-page .warehouse-loading-r160-notes b{
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
}
.warehouse-page .warehouse-ops-card.is-loading{
  padding:7px 8px!important;
  border-left-width:4px!important;
  border-left-color:#1fa566!important;
  border-color:#dbeee5!important;
  background:#fff!important;
}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-ops-actions{
  margin-top:5px!important;
  padding-top:5px!important;
}


/* R161: readable 12px Domestic Receipt card in Nieprzypisane */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic{
  padding:7px 8px!important;
  border-radius:10px!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-screen-task-card.is-unassigned-domestic *{
  font-size:12px!important;
  line-height:1.15!important;
}
.warehouse-page .warehouse-unassigned-domestic-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  padding-bottom:6px!important;
}
.warehouse-page .warehouse-unassigned-domestic-title{
  min-width:0!important;
  gap:6px!important;
}
.warehouse-page .warehouse-unassigned-domestic-title img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.warehouse-page .warehouse-unassigned-domestic-title b{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-unassigned-domestic-confirmed{
  display:block!important;
  min-width:0!important;
  max-width:116px!important;
  text-align:right!important;
}
.warehouse-page .warehouse-unassigned-domestic-confirmed b{
  display:block!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  color:#52677e!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-unassigned-domestic-row{
  grid-template-columns:minmax(0,1.55fr) minmax(0,.95fr)!important;
  gap:10px!important;
  padding:7px 0!important;
}
.warehouse-page .warehouse-unassigned-domestic-row>div{
  gap:6px!important;
  align-items:flex-start!important;
}
.warehouse-page .warehouse-unassigned-domestic-row img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  margin-top:1px!important;
}
.warehouse-page .warehouse-unassigned-domestic-row span{
  gap:2px!important;
}
.warehouse-page .warehouse-unassigned-domestic-row small,
.warehouse-page .warehouse-unassigned-domestic-directions small{
  color:#7f91a7!important;
  font-weight:800!important;
}
.warehouse-page .warehouse-unassigned-domestic-row b{
  font-weight:900!important;
  color:#173761!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.warehouse-page .warehouse-unassigned-domestic-vehicle b{
  display:block!important;
  min-height:0!important;
}
.warehouse-page .warehouse-unassigned-domestic-vehicle b>span{
  display:inline!important;
}
.warehouse-page .warehouse-unassigned-domestic-stats{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.warehouse-page .warehouse-unassigned-domestic-stats b{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.warehouse-page .warehouse-unassigned-domestic-directions{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding-top:7px!important;
}
.warehouse-page .warehouse-unassigned-domestic-directions b{
  min-width:0!important;
  color:#0f7d4b!important;
  font-weight:900!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}

/* R163: Nieprzypisane / Przyjęcie krajowe — osobne ciągnik i naczepa */
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-transport{
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-vehicle-lines{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-vehicle-line{
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-vehicle-line img{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-vehicle-line b{
  display:block!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-weight:900!important;
  color:#173761!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver{
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver>img{
  width:14px!important;
  height:14px!important;
  margin:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver>span{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver small,
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver b{
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-unassigned .warehouse-unassigned-domestic-driver b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}

/* R164: task card rebuilt to match requested reference in Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-ops-card.is-task{
  padding:0!important;
  overflow:hidden!important;
  border-radius:12px!important;
  border-color:#ddd7f6!important;
  border-left-width:4px!important;
  border-left-color:#7656df!important;
  background:#fff!important;
  box-shadow:0 6px 16px rgba(66,49,128,.08)!important;
}
.warehouse-page .warehouse-task-r164-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(118px,.92fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  padding:9px 10px!important;
  background:linear-gradient(90deg,#f8f6ff 0%,#f2efff 100%)!important;
  border-bottom:1px solid #e9e4fa!important;
}
.warehouse-page .warehouse-task-r164-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-task-r164-title img{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  padding:3px!important;
  border-radius:7px!important;
  background:#e9e3ff!important;
}
.warehouse-page .warehouse-task-r164-title b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#161b3f!important;
  letter-spacing:.02em!important;
}
.warehouse-page .warehouse-task-r164-datetime{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  border-left:1px solid #dcd6ef!important;
  padding-left:9px!important;
}
.warehouse-page .warehouse-task-r164-datetime>img{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
}
.warehouse-page .warehouse-task-r164-datetime>span{
  min-width:0!important;
}
.warehouse-page .warehouse-task-r164-datetime small,
.warehouse-page .warehouse-task-r164-row small{
  display:block!important;
  margin:0 0 2px!important;
  font-size:8px!important;
  line-height:1.05!important;
  font-weight:750!important;
  color:#708099!important;
}
.warehouse-page .warehouse-task-r164-datetime b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  font-weight:950!important;
  color:#101735!important;
}
.warehouse-page .warehouse-task-r164-row{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  padding:7px 10px!important;
  border-bottom:1px solid #e8ecf3!important;
}
.warehouse-page .warehouse-task-r164-row>img{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
}
.warehouse-page .warehouse-task-r164-row>div{
  min-width:0!important;
}
.warehouse-page .warehouse-task-r164-row b:not(.warehouse-task-r164-type-badge){
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:950!important;
  color:#18213e!important;
}
.warehouse-page .warehouse-task-r164-type-badge{
  display:inline-flex!important;
  align-items:center!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  padding:4px 8px!important;
  border-radius:8px!important;
  background:#ffe3e6!important;
  color:#a71d24!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
}
.warehouse-page .warehouse-task-r164-trailers b{
  font-size:12px!important;
}
.warehouse-page .warehouse-task-r164-warehouse b{
  font-size:11.5px!important;
}
.warehouse-page .warehouse-task-r164-notes{
  border-bottom:0!important;
  align-items:start!important;
}
.warehouse-page .warehouse-task-r164-notes b{
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-ops-card.is-task>.warehouse-ops-actions{
  margin:0!important;
  padding:6px 8px 7px!important;
  border-top:1px solid #e9e4fa!important;
  background:#fcfbff!important;
}

/* R165: Załadunek – układ 1:1 względem wzoru w Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading{
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cfe8d9!important;
  border-left-width:1px!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(15,41,76,.08)!important;
}
.warehouse-page .warehouse-loading-r165-headbar{
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:8px!important;
  align-items:center!important;
  padding:9px 10px!important;
  background:linear-gradient(90deg,#effcf4 0%,#f8fffb 100%)!important;
  border-bottom:1px solid #e2eee7!important;
}
.warehouse-page .warehouse-loading-r165-title{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-title-icon{
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  border-radius:8px!important;
  background:#dcf8e5!important;
}
.warehouse-page .warehouse-loading-r165-title-icon img{
  width:22px!important;
  height:22px!important;
}
.warehouse-page .warehouse-loading-r165-title>b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  color:#0f172a!important;
}
.warehouse-page .warehouse-loading-r165-datetime{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-datetime>img{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
}
.warehouse-page .warehouse-loading-r165-datetime>span{
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-datetime small,
.warehouse-page .warehouse-loading-r165-route small,
.warehouse-page .warehouse-loading-r165-drivers small,
.warehouse-page .warehouse-loading-r165-ops small,
.warehouse-page .warehouse-loading-r165-notes small{
  display:block!important;
  margin:0 0 2px!important;
  font-size:8px!important;
  line-height:1.05!important;
  font-weight:700!important;
  color:#66788e!important;
}
.warehouse-page .warehouse-loading-r165-datetime b{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#10213e!important;
}
.warehouse-page .warehouse-loading-r165-datetime em{
  color:#078943!important;
  font-style:normal!important;
}
.warehouse-page .warehouse-loading-r165-route{
  display:grid!important;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;
  gap:8px!important;
  align-items:center!important;
  padding:8px 10px!important;
  border-bottom:1px solid #e5edf4!important;
}
.warehouse-page .warehouse-loading-r165-direction{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  padding-right:8px!important;
  border-right:1px solid #e5edf4!important;
}
.warehouse-page .warehouse-loading-r165-direction>img{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
}
.warehouse-page .warehouse-loading-r165-direction b{
  display:block!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#09914a!important;
}
.warehouse-page .warehouse-loading-r165-vehicles{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  gap:5px!important;
  align-items:center!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-vehicles>div{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-vehicles img{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
}
.warehouse-page .warehouse-loading-r165-vehicles span{
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-vehicles b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.05!important;
  font-weight:900!important;
  color:#10213e!important;
}
.warehouse-page .warehouse-loading-r165-vehicles>i{
  font-size:14px!important;
  line-height:1!important;
  font-style:normal!important;
  font-weight:800!important;
  color:#6d7d90!important;
}
.warehouse-page .warehouse-loading-r165-drivers{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  padding:8px 10px!important;
  border-bottom:1px solid #e5edf4!important;
}
.warehouse-page .warehouse-loading-r165-drivers>img{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
}
.warehouse-page .warehouse-loading-r165-drivers>span{
  min-width:0!important;
  flex:1 1 auto!important;
}
.warehouse-page .warehouse-loading-r165-drivers b{
  display:grid!important;
  gap:1px!important;
  font-size:10.5px!important;
  line-height:1.12!important;
  font-weight:900!important;
  color:#10213e!important;
}
.warehouse-page .warehouse-loading-r165-drivers b>span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-loading-r165-ops{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:0!important;
  align-items:stretch!important;
  padding:8px 10px!important;
  border-bottom:1px solid #e5edf4!important;
}
.warehouse-page .warehouse-loading-r165-difficulty,
.warehouse-page .warehouse-loading-r165-duration{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-difficulty{
  padding-right:8px!important;
  border-right:1px solid #e5edf4!important;
}
.warehouse-page .warehouse-loading-r165-duration{
  padding-left:8px!important;
}
.warehouse-page .warehouse-loading-r165-difficulty>img,
.warehouse-page .warehouse-loading-r165-duration>img{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
}
.warehouse-page .warehouse-loading-r165-difficulty>span,
.warehouse-page .warehouse-loading-r165-duration>span{
  min-width:0!important;
}
.warehouse-page .warehouse-loading-r165-difficulty b{
  display:inline-flex!important;
  max-width:100%!important;
  padding:4px 7px!important;
  border-radius:7px!important;
  background:#fff0d0!important;
  color:#8a4d00!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:950!important;
}
.warehouse-page .warehouse-loading-r165-difficulty b.is-low{background:#e8f8ef!important;color:#137a46!important}
.warehouse-page .warehouse-loading-r165-difficulty b.is-high{background:#fee9e9!important;color:#b42318!important}
.warehouse-page .warehouse-loading-r165-duration b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:950!important;
  color:#10213e!important;
}
.warehouse-page .warehouse-loading-r165-notes{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  padding:8px 10px 9px!important;
}
.warehouse-page .warehouse-loading-r165-notes>img{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
}
.warehouse-page .warehouse-loading-r165-notes>span{
  min-width:0!important;
  flex:1 1 auto!important;
}
.warehouse-page .warehouse-loading-r165-notes b{
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#10213e!important;
}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-ops-actions{
  margin:0!important;
  padding:7px 10px!important;
  border-top:1px solid #e5edf4!important;
  background:#fbfefc!important;
}

/* R167: fix visibility + compact fit of ZAŁADUNEK cards in Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route,
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-route{
  display:grid!important;
}
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers,
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-loading>.warehouse-loading-r165-drivers{
  display:flex!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading{
  height:auto!important;
  min-height:0!important;
  align-self:flex-start!important;
}
.warehouse-page .warehouse-loading-r165-headbar{
  grid-template-columns:minmax(0,1fr) minmax(104px,.92fr)!important;
  gap:5px!important;
  padding:7px 8px!important;
}
.warehouse-page .warehouse-loading-r165-title{gap:5px!important}
.warehouse-page .warehouse-loading-r165-title-icon{
  width:27px!important;
  height:27px!important;
  flex-basis:27px!important;
  border-radius:7px!important;
}
.warehouse-page .warehouse-loading-r165-title-icon img{width:18px!important;height:18px!important}
.warehouse-page .warehouse-loading-r165-title>b{
  font-size:12px!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.warehouse-page .warehouse-loading-r165-datetime{gap:4px!important}
.warehouse-page .warehouse-loading-r165-datetime>img{width:18px!important;height:18px!important;flex-basis:18px!important}
.warehouse-page .warehouse-loading-r165-datetime small,
.warehouse-page .warehouse-loading-r165-route small,
.warehouse-page .warehouse-loading-r165-drivers small,
.warehouse-page .warehouse-loading-r165-ops small,
.warehouse-page .warehouse-loading-r165-notes small{font-size:7.5px!important}
.warehouse-page .warehouse-loading-r165-datetime b{font-size:9.5px!important}
.warehouse-page .warehouse-loading-r165-route{
  grid-template-columns:72px minmax(0,1fr)!important;
  gap:6px!important;
  padding:6px 8px!important;
}
.warehouse-page .warehouse-loading-r165-direction{gap:5px!important;padding-right:6px!important}
.warehouse-page .warehouse-loading-r165-direction>img{width:18px!important;height:18px!important;flex-basis:18px!important}
.warehouse-page .warehouse-loading-r165-direction b{font-size:13px!important}
.warehouse-page .warehouse-loading-r165-vehicles{gap:3px!important}
.warehouse-page .warehouse-loading-r165-vehicles>div{gap:3px!important}
.warehouse-page .warehouse-loading-r165-vehicles img{width:16px!important;height:16px!important;flex-basis:16px!important}
.warehouse-page .warehouse-loading-r165-vehicles b{font-size:9px!important}
.warehouse-page .warehouse-loading-r165-vehicles>i{font-size:11px!important}
.warehouse-page .warehouse-loading-r165-drivers{gap:6px!important;padding:6px 8px!important}
.warehouse-page .warehouse-loading-r165-drivers>img{width:19px!important;height:19px!important;flex-basis:19px!important}
.warehouse-page .warehouse-loading-r165-drivers b{font-size:9.5px!important;gap:0!important}
.warehouse-page .warehouse-loading-r165-ops{padding:6px 8px!important}
.warehouse-page .warehouse-loading-r165-difficulty,
.warehouse-page .warehouse-loading-r165-duration{gap:5px!important}
.warehouse-page .warehouse-loading-r165-difficulty{padding-right:6px!important}
.warehouse-page .warehouse-loading-r165-duration{padding-left:6px!important}
.warehouse-page .warehouse-loading-r165-difficulty>img,
.warehouse-page .warehouse-loading-r165-duration>img{width:19px!important;height:19px!important;flex-basis:19px!important}
.warehouse-page .warehouse-loading-r165-difficulty b{font-size:8.5px!important;padding:3px 5px!important}
.warehouse-page .warehouse-loading-r165-duration b{font-size:9.5px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.warehouse-page .warehouse-loading-r165-notes{gap:6px!important;padding:6px 8px 7px!important}
.warehouse-page .warehouse-loading-r165-notes>img{width:18px!important;height:18px!important;flex-basis:18px!important}
.warehouse-page .warehouse-loading-r165-notes b{font-size:9.5px!important}

/* R168: pełny i zwarty kafelek ZADANIE w Kierownik magazynu / Realizacja */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:auto!important;
  min-height:0!important;
  align-self:flex-start!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Stare reguły kompaktowe ukrywały 2. i 3. sekcję wszystkich kafelków. */
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-screen-worker .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers{
  display:grid!important;
}

.warehouse-page .warehouse-task-r164-head{
  grid-template-columns:minmax(0,1fr) minmax(104px,.92fr)!important;
  gap:5px!important;
  padding:7px 8px!important;
}
.warehouse-page .warehouse-task-r164-title{gap:5px!important}
.warehouse-page .warehouse-task-r164-title img{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  padding:3px!important;
  border-radius:6px!important;
}
.warehouse-page .warehouse-task-r164-title b{
  font-size:12px!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.warehouse-page .warehouse-task-r164-datetime{
  grid-template-columns:17px minmax(0,1fr)!important;
  gap:4px!important;
  padding-left:6px!important;
}
.warehouse-page .warehouse-task-r164-datetime>img{
  width:17px!important;
  height:17px!important;
}
.warehouse-page .warehouse-task-r164-datetime small,
.warehouse-page .warehouse-task-r164-row small{
  margin-bottom:1px!important;
  font-size:7.5px!important;
  line-height:1!important;
}
.warehouse-page .warehouse-task-r164-datetime b{
  font-size:9px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  letter-spacing:-.01em!important;
}
.warehouse-page .warehouse-task-r164-row{
  grid-template-columns:18px minmax(0,1fr)!important;
  gap:6px!important;
  padding:5px 8px!important;
  min-height:30px!important;
}
.warehouse-page .warehouse-task-r164-row>img{
  width:17px!important;
  height:17px!important;
}
.warehouse-page .warehouse-task-r164-row b:not(.warehouse-task-r164-type-badge){
  font-size:10px!important;
  line-height:1.08!important;
}
.warehouse-page .warehouse-task-r164-type-badge{
  padding:3px 6px!important;
  border-radius:6px!important;
  font-size:9px!important;
}
.warehouse-page .warehouse-task-r164-trailers b{
  font-size:10px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.warehouse-page .warehouse-task-r164-warehouse b{font-size:10px!important}
.warehouse-page .warehouse-task-r164-notes{
  min-height:29px!important;
  padding-bottom:6px!important;
}
.warehouse-page .warehouse-task-r164-notes b{
  font-size:9.5px!important;
  line-height:1.1!important;
  -webkit-line-clamp:2!important;
}
.warehouse-page .warehouse-ops-card.is-task>.warehouse-ops-actions{
  padding:5px 7px 6px!important;
}

/* R169: Manager worker lanes fit actual card height — remove legacy forced blank height */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading),
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-task),
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-domestic){
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-items:flex-start!important;
  padding:8px!important;
}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-task-strip{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-items:flex-start!important;
  align-self:flex-start!important;
  overflow-y:hidden!important;
}
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker>.warehouse-screen-lane-head{
  align-self:flex-start!important;
}

/* R170: equal card heights + unified date/time and typography across Domestic / Loading / Task */

/* Manager: card height is determined by the cards, not by legacy lane min-heights. */
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker,
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading),
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-task),
.warehouse-page .warehouse-manager-workers-scroll>.warehouse-screen-worker:has(.warehouse-ops-card.is-domestic){
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-items:flex-start!important;
}

/* All assigned cards use one operational footprint. */
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task{
  box-sizing:border-box!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  height:198px!important;
  min-height:198px!important;
  max-height:198px!important;
  align-self:flex-start!important;
}

/* Realization keeps the same content footprint plus the action bar. */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task{
  box-sizing:border-box!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  height:232px!important;
  min-height:232px!important;
  max-height:232px!important;
  align-self:flex-start!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{
  min-height:248px!important;
  height:auto!important;
  align-items:flex-start!important;
}

/* Loading and task cards distribute rows inside the same fixed height instead of leaving hidden blank height. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-task{
  display:flex!important;
  flex-direction:column!important;
}
.warehouse-page .warehouse-loading-r165-headbar,
.warehouse-page .warehouse-task-r164-head{
  flex:0 0 38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:5px 7px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-loading-r165-route,
.warehouse-page .warehouse-loading-r165-drivers,
.warehouse-page .warehouse-loading-r165-ops,
.warehouse-page .warehouse-loading-r165-notes,
.warehouse-page .warehouse-task-r164-row{
  flex:1 1 0!important;
  min-height:0!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-loading-r165-route,
.warehouse-page .warehouse-loading-r165-drivers,
.warehouse-page .warehouse-loading-r165-ops,
.warehouse-page .warehouse-loading-r165-notes{
  padding:4px 7px!important;
}
.warehouse-page .warehouse-task-r164-row{
  padding:4px 7px!important;
  align-items:center!important;
}
.warehouse-page .warehouse-task-r164-notes{
  align-items:center!important;
  padding-bottom:4px!important;
}

/* One date/time format everywhere: large time, smaller date below — same as Domestic Receipt. */
.warehouse-page .warehouse-domestic-r151-datetime,
.warehouse-page .warehouse-card-unified-datetime,
.warehouse-page .warehouse-loading-r165-datetime,
.warehouse-page .warehouse-task-r164-datetime{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  justify-items:end!important;
  align-content:center!important;
  gap:1px!important;
  min-width:68px!important;
  padding-left:6px!important;
  border-left:1px solid #d6e2ee!important;
}
.warehouse-page .warehouse-domestic-r151-datetime b,
.warehouse-page .warehouse-card-unified-datetime b,
.warehouse-page .warehouse-loading-r165-datetime b,
.warehouse-page .warehouse-task-r164-datetime b{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-size:16px!important;
  line-height:.95!important;
  font-weight:950!important;
  letter-spacing:0!important;
  color:#08162f!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.warehouse-page .warehouse-domestic-r151-datetime span,
.warehouse-page .warehouse-card-unified-datetime span,
.warehouse-page .warehouse-loading-r165-datetime span,
.warehouse-page .warehouse-task-r164-datetime span{
  display:block!important;
  margin:0!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:800!important;
  color:#61738a!important;
  white-space:nowrap!important;
}

/* Unified typography hierarchy. */
.warehouse-page .warehouse-domestic-r151-head-title b,
.warehouse-page .warehouse-loading-r165-title>b,
.warehouse-page .warehouse-task-r164-title b{
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  color:#0b1833!important;
}

/* Field titles / labels. */
.warehouse-page .warehouse-domestic-r151-direction small,
.warehouse-page .warehouse-domestic-r151-warehouse small,
.warehouse-page .warehouse-domestic-r151-driver small,
.warehouse-page .warehouse-domestic-r151-vehicle small,
.warehouse-page .warehouse-loading-r165-route small,
.warehouse-page .warehouse-loading-r165-drivers small,
.warehouse-page .warehouse-loading-r165-ops small,
.warehouse-page .warehouse-loading-r165-notes small,
.warehouse-page .warehouse-task-r164-row small{
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:750!important;
  color:#6d7e93!important;
  margin-bottom:1px!important;
}

/* Information values. */
.warehouse-page .warehouse-domestic-r151-company b,
.warehouse-page .warehouse-domestic-r151-address span,
.warehouse-page .warehouse-domestic-r151-direction b,
.warehouse-page .warehouse-domestic-r151-warehouse b,
.warehouse-page .warehouse-domestic-r151-metric b,
.warehouse-page .warehouse-domestic-r151-driver b,
.warehouse-page .warehouse-domestic-r151-vehicle b,
.warehouse-page .warehouse-loading-r165-direction b,
.warehouse-page .warehouse-loading-r165-vehicles b,
.warehouse-page .warehouse-loading-r165-drivers b,
.warehouse-page .warehouse-loading-r165-difficulty b,
.warehouse-page .warehouse-loading-r165-duration b,
.warehouse-page .warehouse-loading-r165-notes b,
.warehouse-page .warehouse-task-r164-row b:not(.warehouse-task-r164-type-badge),
.warehouse-page .warehouse-task-r164-type-badge{
  font-size:10px!important;
  line-height:1.08!important;
  font-weight:900!important;
}
.warehouse-page .warehouse-domestic-r151-direction b,
.warehouse-page .warehouse-loading-r165-direction b{
  color:#0a9149!important;
}
.warehouse-page .warehouse-task-r164-type-badge{
  padding:3px 6px!important;
  border-radius:6px!important;
}

/* Keep icons visually consistent with the denser 198px card. */
.warehouse-page .warehouse-loading-r165-title-icon{
  width:26px!important;
  height:26px!important;
  flex-basis:26px!important;
}
.warehouse-page .warehouse-loading-r165-title-icon img,
.warehouse-page .warehouse-task-r164-title img{
  width:17px!important;
  height:17px!important;
}
.warehouse-page .warehouse-task-r164-title img{
  flex:0 0 17px!important;
  padding:2px!important;
}
.warehouse-page .warehouse-loading-r165-direction>img,
.warehouse-page .warehouse-loading-r165-vehicles img,
.warehouse-page .warehouse-loading-r165-drivers>img,
.warehouse-page .warehouse-loading-r165-difficulty>img,
.warehouse-page .warehouse-loading-r165-duration>img,
.warehouse-page .warehouse-loading-r165-notes>img,
.warehouse-page .warehouse-task-r164-row>img{
  width:17px!important;
  height:17px!important;
  flex-basis:17px!important;
}


/* R171: tighter vertical margins, especially at the bottom, across unified warehouse cards */
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task{height:192px!important;min-height:192px!important;max-height:192px!important;}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task{height:226px!important;min-height:226px!important;max-height:226px!important;}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{min-height:240px!important;}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic{padding:0 5px 2px!important;}
.warehouse-page .warehouse-domestic-r151-bottom{padding-top:1px!important;padding-bottom:0!important;min-height:36px!important;}
.warehouse-page .warehouse-domestic-r151-driver,.warehouse-page .warehouse-domestic-r151-vehicle{min-height:30px!important;}
.warehouse-page .warehouse-loading-r165-headbar,.warehouse-page .warehouse-task-r164-head{flex:0 0 36px!important;min-height:36px!important;max-height:36px!important;padding:4px 7px!important;}
.warehouse-page .warehouse-loading-r165-route,.warehouse-page .warehouse-loading-r165-drivers,.warehouse-page .warehouse-loading-r165-ops,.warehouse-page .warehouse-loading-r165-notes,.warehouse-page .warehouse-task-r164-row{padding:3px 7px!important;}
.warehouse-page .warehouse-task-r164-notes{padding-bottom:2px!important;}
.warehouse-page .warehouse-ops-card.is-loading>.warehouse-ops-actions,.warehouse-page .warehouse-ops-card.is-task>.warehouse-ops-actions,.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic>.warehouse-ops-actions{margin-top:2px!important;padding-top:2px!important;}

/* R172: correct TASK card layout in Nieprzypisane */
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:7px 0 0!important;
  overflow:hidden!important;
  align-self:flex-start!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-head{
  display:grid!important;
  flex:0 0 34px!important;
  min-height:34px!important;
  max-height:34px!important;
  grid-template-columns:minmax(0,1fr) 72px!important;
  gap:5px!important;
  padding:4px 7px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-warehouse,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-notes{
  display:grid!important;
  flex:0 0 auto!important;
  grid-template-columns:17px minmax(0,1fr)!important;
  align-items:center!important;
  gap:5px!important;
  min-height:0!important;
  padding:4px 7px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-type,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-trailers,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-warehouse{
  min-height:29px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-screen-task-card.warehouse-ops-card.is-task>.warehouse-task-r164-notes{
  min-height:34px!important;
  padding-bottom:5px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-title{
  gap:4px!important;
  min-width:0!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-title img{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
  padding:2px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-title b{
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-datetime{
  min-width:64px!important;
  padding-left:5px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-datetime b{
  font-size:14px!important;
  line-height:.95!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-datetime span{
  font-size:7px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-row>img{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-row small{
  font-size:7px!important;
  line-height:1!important;
  margin-bottom:1px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-row b:not(.warehouse-task-r164-type-badge),
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-type-badge{
  font-size:9px!important;
  line-height:1.05!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-type-badge{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  padding:3px 5px!important;
}
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-trailers b,
.warehouse-page .warehouse-manager-columns.warehouse-screen-board>.warehouse-screen-unassigned .warehouse-task-r164-notes b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}


/* R173: small bottom breathing room for assigned Domestic Receipt cards */
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic{padding-bottom:6px!important;}
.warehouse-page .warehouse-domestic-r151-bottom{padding-bottom:3px!important;}

/* R174: domestic bottom clipping fix + real bottom breathing room */
/* R171 reduced the unified footprint to 192px while R173 added bottom padding inside that fixed box.
   Restore the common 198px operational footprint so the last row fits instead of being clipped. */
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:198px!important;
  min-height:198px!important;
  max-height:198px!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:232px!important;
  min-height:232px!important;
  max-height:232px!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic{
  padding-bottom:5px!important;
}
.warehouse-page .warehouse-domestic-r151-bottom{
  min-height:38px!important;
  padding-top:2px!important;
  padding-bottom:4px!important;
  align-items:center!important;
}
.warehouse-page .warehouse-domestic-r151-driver,
.warehouse-page .warehouse-domestic-r151-vehicle{
  min-height:31px!important;
  padding-bottom:1px!important;
}

/* R175: compact Realizacja worker rows + immediate status feedback */
.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  grid-auto-rows:max-content!important;
  align-items:start!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-self:start!important;
  align-items:flex-start!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-lane-head{
  align-self:flex-start!important;
  min-height:0!important;
  height:auto!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker>.warehouse-screen-task-card.warehouse-ops-card{
  align-self:flex-start!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-actions button:disabled{
  cursor:wait!important;
  opacity:.58!important;
}

/* R176: consistent domestic separator + 200px unified assigned cards */
/* Guarantee the horizontal separator below Ilość / Waga / LDM on every Domestic Receipt card. */
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic > .warehouse-domestic-r151-bottom{
  border-top:1px solid #dfe8f1!important;
}
.warehouse-page .warehouse-screen-task-card.warehouse-ops-card.is-domestic > .warehouse-domestic-r151-divider{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  flex:0 0 1px!important;
  height:1px!important;
  min-height:1px!important;
  max-height:1px!important;
  background:#dfe8f1!important;
}

/* Kierownik magazynu: all three assigned card types have exactly 200px height. */
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:200px!important;
  min-height:200px!important;
  max-height:200px!important;
}

/* Realizacja keeps the same 200px content footprint plus the action bar. */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:234px!important;
  min-height:234px!important;
  max-height:234px!important;
}


/* R178: manager cards open details on click; drag starts only after clear pointer movement */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card{cursor:pointer!important;}
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card:hover,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card:hover{box-shadow:0 5px 14px rgba(15,55,96,.12)!important;}


/* R179: reliable shift toggle + dedicated horizontal scroller for warehouse staff */
.warehouse-page .warehouse-shift-workers-scroll{
  display:flex!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scrollbar-gutter:stable!important;
  padding-bottom:8px!important;
  gap:8px!important;
}
.warehouse-page .warehouse-shift-workers-scroll>.warehouse-shift-worker-row{
  flex:0 0 318px!important;
  width:318px!important;
  min-width:318px!important;
  max-width:318px!important;
}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar{height:9px!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-track{background:#eef3f8!important;border-radius:999px!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-thumb{background:#a9b9ca!important;border-radius:999px!important;border:2px solid #eef3f8!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-thumb:hover{background:#7f94aa!important}
.warehouse-page .warehouse-shift-toggle{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:44px!important;
  min-width:44px!important;
  height:24px!important;
  padding:2px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:999px!important;
  flex:0 0 44px!important;
  margin-left:auto!important;
}
.warehouse-page .warehouse-shift-toggle>span{
  display:block!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 1px 3px rgba(15,23,42,.28)!important;
  transform:translateX(0)!important;
  transition:transform .16s ease!important;
}
.warehouse-page .warehouse-shift-toggle[aria-pressed="true"]{background:#10b981!important}
.warehouse-page .warehouse-shift-toggle[aria-pressed="true"]>span{transform:translateX(20px)!important}
.warehouse-page .warehouse-shift-toggle[aria-pressed="false"]{background:#cbd5e1!important}
.warehouse-page .warehouse-shift-toggle[aria-pressed="false"]>span{transform:translateX(0)!important}

/* R181: shift roster layout repair + dedicated horizontal scrolling */
.warehouse-page .warehouse-shift-compact{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-shift-workers-scroll{
  display:flex!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scrollbar-gutter:stable!important;
  padding:0 0 8px!important;
  gap:8px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-shift-workers-scroll>.warehouse-shift-worker-row{
  display:grid!important;
  grid-template-columns:minmax(110px,1fr) 96px 96px 44px!important;
  align-items:center!important;
  column-gap:8px!important;
  flex:0 0 400px!important;
  width:400px!important;
  min-width:400px!important;
  max-width:400px!important;
  min-height:48px!important;
  padding:6px 8px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-shift-worker-row>.warehouse-shift-worker-name{
  display:block!important;
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.15!important;
}
.warehouse-page .warehouse-shift-worker-row>.warehouse-shift-worker-name>span{
  display:inline!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-row>.warehouse-shift-worker-name>span:first-child{margin-right:4px!important}
.warehouse-page .warehouse-shift-worker-row>label.warehouse-shift-time-inline{
  display:grid!important;
  grid-template-columns:auto 72px!important;
  align-items:center!important;
  gap:4px!important;
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  margin:0!important;
  white-space:nowrap!important;
}
.warehouse-page .warehouse-shift-worker-row>label.warehouse-shift-time-inline>span{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  line-height:1!important;
  margin:0!important;
}
.warehouse-page .warehouse-shift-worker-row>label.warehouse-shift-time-inline>input{
  display:block!important;
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  height:30px!important;
  padding:2px 4px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-shift-worker-row>.warehouse-shift-toggle{
  grid-column:4!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:24px!important;
  margin:0!important;
  justify-self:end!important;
  align-self:center!important;
}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar{height:9px!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-track{background:#eef3f8!important;border-radius:999px!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-thumb{background:#9eafc1!important;border-radius:999px!important;border:2px solid #eef3f8!important}
.warehouse-page .warehouse-shift-workers-scroll::-webkit-scrollbar-thumb:hover{background:#71869d!important}

/* R181: details click must not depend on browser-generated click after custom pointer DnD. */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card{
  cursor:pointer!important;
  touch-action:pan-x pan-y!important;
  user-select:none!important;
}


/* R182: Manager card details like Planning — click body, drag only from handle */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card{
  position:relative!important;
}
.warehouse-page .warehouse-card-drag-handle{
  position:absolute!important;
  z-index:12!important;
  top:7px!important;
  right:74px!important;
  display:grid!important;
  place-items:center!important;
  width:18px!important;
  height:22px!important;
  padding:0!important;
  border:0!important;
  border-radius:5px!important;
  background:transparent!important;
  color:#8aa0b8!important;
  font-size:14px!important;
  line-height:1!important;
  cursor:grab!important;
  opacity:.45!important;
  user-select:none!important;
  touch-action:none!important;
}
.warehouse-page .warehouse-card-drag-handle:hover,
.warehouse-page .warehouse-card-drag-handle:focus-visible{
  background:#eef4fb!important;
  color:#315f91!important;
  opacity:1!important;
  outline:none!important;
}
.warehouse-page .warehouse-card-drag-handle:active{cursor:grabbing!important;}
.warehouse-page .warehouse-realization-board .warehouse-card-drag-handle{display:none!important;}

/* R184: Realizacja — clean board, per-worker horizontal scroll, vertical unassigned scroll, compact action bars */
.warehouse-page .warehouse-realization-view{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-realization-toolbar{
  min-height:36px!important;
  margin-bottom:8px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board{
  display:grid!important;
  grid-template-columns:205px minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding:0 0 4px!important;
  align-items:start!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-unassigned{
  grid-column:1!important;
  grid-row:1 / span 100!important;
  display:flex!important;
  flex-direction:column!important;
  width:205px!important;
  min-width:205px!important;
  max-width:205px!important;
  height:var(--warehouse-realization-unassigned-height,calc(100vh - 230px))!important;
  min-height:420px!important;
  max-height:var(--warehouse-realization-unassigned-height,calc(100vh - 230px))!important;
  overflow:hidden!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  gap:8px!important;
  min-height:0!important;
  width:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding:2px 3px 4px 0!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card{
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column{
  grid-column:2!important;
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column>.warehouse-screen-lane-head{
  grid-column:1!important;
  width:180px!important;
  min-width:180px!important;
  max-width:180px!important;
  min-height:0!important;
  height:auto!important;
  align-self:start!important;
  padding:7px 8px 7px 4px!important;
  box-sizing:border-box!important;
  border-right:1px solid #e6edf5!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll{
  grid-column:2!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scrollbar-gutter:stable!important;
  padding:0 0 8px!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card{
  flex:0 0 286px!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  margin:0!important;
}
.warehouse-page .warehouse-realization-row-scroll::-webkit-scrollbar{height:9px!important}
.warehouse-page .warehouse-realization-row-scroll::-webkit-scrollbar-track,
.warehouse-page .warehouse-realization-unassigned-scroll::-webkit-scrollbar-track{background:#edf2f7!important;border-radius:999px!important}
.warehouse-page .warehouse-realization-row-scroll::-webkit-scrollbar-thumb,
.warehouse-page .warehouse-realization-unassigned-scroll::-webkit-scrollbar-thumb{background:#9fb1c4!important;border-radius:999px!important;border:2px solid #edf2f7!important}
.warehouse-page .warehouse-realization-row-scroll::-webkit-scrollbar-thumb:hover,
.warehouse-page .warehouse-realization-unassigned-scroll::-webkit-scrollbar-thumb:hover{background:#71869d!important}
.warehouse-page .warehouse-realization-unassigned-scroll::-webkit-scrollbar{width:9px!important}

/* Realizacja: action strip is always explicit and compact. */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card{
  display:flex!important;
  flex-direction:column!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  gap:4px!important;
  width:100%!important;
  margin-top:auto!important;
  padding:5px 0 0!important;
  border-top:1px solid #e5edf5!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-actions button{
  width:100%!important;
  min-width:0!important;
  min-height:25px!important;
  margin:0!important;
  padding:4px 5px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:8.5px!important;
  line-height:1!important;
  text-transform:none!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-actions .warehouse-label-print-button{
  margin:0!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
}

/* Nieprzypisane are informational only — no action bar in this column. */
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll .warehouse-ops-actions{display:none!important}


/* R185: Kierownik magazynu — whole-card drag & drop like Planning */
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card{
  cursor:grab!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.warehouse-page .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card:active,
.warehouse-page .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card:active{
  cursor:grabbing!important;
}
.warehouse-page .warehouse-card-drag-handle{display:none!important;}
body.warehouse-pointer-drag-active .warehouse-manager-columns .warehouse-screen-task-card.warehouse-ops-card,
body.warehouse-pointer-drag-active .warehouse-manager-workers-scroll .warehouse-screen-task-card.warehouse-ops-card{
  cursor:grabbing!important;
}

/* R186: Realizacja — loading card must NOT enlarge the worker lane.
   Legacy R158 :has(.is-loading) rules had higher specificity and still forced 360px. */
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker:has(.warehouse-ops-card.is-loading),
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column:has(.warehouse-ops-card.is-loading),
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker:has(.warehouse-ops-card.is-task),
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-screen-worker:has(.warehouse-ops-card.is-domestic){
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-self:start!important;
  align-items:start!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column:has(.warehouse-ops-card.is-loading) .warehouse-realization-row-scroll,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column:has(.warehouse-ops-card.is-task) .warehouse-realization-row-scroll,
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column:has(.warehouse-ops-card.is-domestic) .warehouse-realization-row-scroll{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-self:start!important;
}

/* R190 · Realizacja: edytowalny magazyn przy przyjęciu krajowym */
.warehouse-page .warehouse-domestic-r190-warehouse-control{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
}
.warehouse-page .warehouse-realization-warehouse-select{
  width:100%!important;
  min-width:0!important;
  height:22px!important;
  padding:1px 20px 1px 5px!important;
  border:1px solid #bfd0e4!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#173761!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
  outline:none!important;
  cursor:pointer!important;
}
.warehouse-page .warehouse-realization-warehouse-select:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 1px rgba(37,99,235,.18)!important;
}
.warehouse-page .warehouse-realization-warehouse-select:disabled{
  cursor:wait!important;
  opacity:.58!important;
}


/* R190 FIX1 · Realizacja: wspólna wysokość kafelków Przyjęcie krajowe / Załadunek / Zadanie */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card{
  height:210px!important;
  min-height:210px!important;
  max-height:210px!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card{
  height:210px!important;
  min-height:210px!important;
  max-height:210px!important;
}

/* R190 FIX3 · Realizacja: 210 px jest minimalną wysokością, nie twardym limitem.
   Pasek akcji i dodatkowe pola muszą zwiększyć kartę zamiast być ucinane. */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card.is-task{
  height:auto!important;
  min-height:210px!important;
  max-height:none!important;
  box-sizing:border-box!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll{
  align-items:flex-start!important;
  overflow-y:visible!important;
  padding-bottom:12px!important;
}
.warehouse-page .warehouse-realization-board.warehouse-screen-board>.warehouse-realization-worker-column{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
}
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card>.warehouse-ops-actions{
  flex:0 0 auto!important;
}


/* R190 FIX5 · Realizacja: identyczna wysokość wszystkich kafelków + bez kursora wait po akcji. */
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board .warehouse-screen-task-card.warehouse-ops-card.is-task,
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll>.warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll>.warehouse-screen-task-card.warehouse-ops-card{
  box-sizing:border-box!important;
  height:234px!important;
  min-height:234px!important;
  max-height:234px!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll{
  align-items:flex-start!important;
}
.warehouse-page .warehouse-realization-board .warehouse-ops-actions button:disabled{
  cursor:default!important;
}
.warehouse-page .warehouse-realization-warehouse-select:disabled{
  cursor:default!important;
}


/* R190 FIX8 · Realizacja: identyczny zewnętrzny wymiar każdego kafelka; nowy asset omija cache poprzednich reguł. */
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll > article.warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board .warehouse-realization-unassigned-scroll > article.warehouse-screen-task-card.warehouse-ops-card,
.warehouse-page .warehouse-realization-board article.warehouse-screen-task-card.warehouse-ops-card.is-domestic,
.warehouse-page .warehouse-realization-board article.warehouse-screen-task-card.warehouse-ops-card.is-loading,
.warehouse-page .warehouse-realization-board article.warehouse-screen-task-card.warehouse-ops-card.is-task{
  box-sizing:border-box!important;
  height:234px!important;
  min-height:234px!important;
  max-height:234px!important;
  block-size:234px!important;
  min-block-size:234px!important;
  max-block-size:234px!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
.warehouse-page .warehouse-realization-board .warehouse-realization-row-scroll{align-items:stretch!important;}
.warehouse-page .warehouse-realization-board article.warehouse-screen-task-card.warehouse-ops-card > .warehouse-ops-actions{margin-top:auto!important;flex:0 0 auto!important;}

/* R190 FIX10 · Kierownik magazynu: zakończone/przyjęte kafelki pozostają na planszy i mają zieloną obwódkę. */
.warehouse-page .warehouse-manager-columns article.warehouse-screen-task-card.warehouse-ops-card.is-completed,
.warehouse-page .warehouse-manager-workers-scroll article.warehouse-screen-task-card.warehouse-ops-card.is-completed{
  border-color:#16a34a!important;
  box-shadow:inset 0 0 0 1px #16a34a!important;
  cursor:default!important;
}
.warehouse-page .warehouse-manager-columns article.warehouse-screen-task-card.warehouse-ops-card.is-completed:active,
.warehouse-page .warehouse-manager-workers-scroll article.warehouse-screen-task-card.warehouse-ops-card.is-completed:active{
  cursor:default!important;
}

/* R64: show 6 visible rows in every resources table */
@media(min-width:901px){
  .tps-resources-page .resource-table-scroll,
  .tps-resources-page .resource-table-driver .resource-table-scroll{height:258px!important;max-height:258px!important;min-height:258px!important;overflow-y:auto!important;overflow-x:auto!important}
}

/* 0.7.3 R9: role-safe domestic receipts and trailer rollback */
.warehouse-page .warehouse-trailer-return-button{
  width:100%;
  margin-top:8px;
  border:1px solid #f59e0b;
  border-radius:8px;
  background:#fffbeb;
  color:#92400e;
  padding:8px 10px;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.warehouse-page .warehouse-trailer-return-button:hover{background:#fef3c7}

/* R19: Zadania - tygodniowy widok z podziałem na dni */
.warehouse-page .warehouse-task-week-all{height:38px!important;padding:0 10px!important;border:1px solid #d9e3ef!important;border-radius:8px!important;background:#fff!important;color:#334e68!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}
.warehouse-page .warehouse-task-week-all.is-active{border-color:#2563eb!important;background:#2563eb!important;color:#fff!important;box-shadow:0 2px 7px rgba(37,99,235,.18)!important}
.warehouse-page .warehouse-task-day-divider{grid-column:1/-1!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:32px!important;padding:6px 12px!important;border:0!important;border-top:1px solid #dbe5f0!important;border-bottom:1px solid #dbe5f0!important;background:#eef4fb!important;color:#173761!important;text-align:left!important;font-size:10px!important;font-weight:900!important;letter-spacing:.025em!important}
.warehouse-page .warehouse-task-day-divider:hover{background:#e3eefb!important}
.warehouse-page .warehouse-task-day-divider b{display:grid!important;place-items:center!important;min-width:22px!important;height:20px!important;border-radius:999px!important;background:#fff!important;border:1px solid #cbd9ea!important;font-size:10px!important}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.warehouse-page .warehouse-loading-screens-drop:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);outline:0}.warehouse-page .warehouse-loading-screens-drop b{color:#1d4ed8;font-size:12px}

.tps-app-shell > main > header:first-child,.tps-app-shell > section.settings-hub > header:first-child{display:none}.tps-app-shell>header{box-sizing:border-box;height:36px!important;min-height:36px!important;flex:0 0 36px!important}.tps-app-shell>section.settings-hub{padding-top:0!important}.tps-app-shell>[class*="h-[calc(100vh-70px)]"]{height:calc(100vh - 36px)!important;padding-top:0!important}.loads-board,.warehouse-page,.tps-app-shell>main:not(.tps-app-shell),.tps-app-shell>section:not(.settings-hub){box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}.tps-app-shell>section.settings-hub{padding-left:0!important;padding-right:0!important}

.settings-hub{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100%!important;height:calc(100dvh - 76px)!important;min-height:0!important;padding:2px 8px 0!important}.settings-hub>.settings-main-nav{flex:0 0 auto;margin:0 0 4px!important}.settings-hub>.settings-tab-content{flex:1 1 auto;min-height:0}.settings-tab-content>section:first-child{height:100%!important;min-height:0!important}.settings-tab-content>section:first-child>div.grid{height:100%!important;min-height:0!important}.settings-tab-content>section:first-child>div.grid>section{height:100%!important;min-height:0!important}

/* Match the daily-plan header tracks to row tracks so Start, Night and load cards never collide. */
.planning-compact[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto{box-sizing:border-box!important;width:100%!important;min-width:0!important;overflow-x:hidden!important}.planning-compact[class*="daily-view-"] .relative{box-sizing:border-box!important;width:100%!important;min-width:0!important}.planning-compact[class*="daily-view-"] .planning-column-header{box-sizing:border-box!important;width:100%!important;min-width:0!important;grid-template-columns:42px 285px 68px 46px minmax(0,1fr) 120px 180px!important}.planning-compact[class*="daily-view-"] .relative>.grid.items-center{box-sizing:border-box!important;width:100%!important;min-width:0!important}.planning-compact[class*="daily-view-"] .planning-column-header>div:nth-child(3),.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(3){box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;text-align:center!important;padding-left:0!important;padding-right:0!important}.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(3)>input{width:100%!important}.planning-compact[class*="daily-view-"] .planning-column-header>div:nth-child(4),.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(4){box-sizing:border-box!important;min-width:0!important;justify-content:center!important;text-align:center!important}.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(5){box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:0!important;padding-left:0!important;padding-right:0!important;overflow-x:auto!important}.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6){box-sizing:border-box!important;min-width:0!important;margin-left:0!important;margin-right:0!important;overflow:visible!important;white-space:nowrap}.planning-compact[class*="daily-view-"] .planning-column-header>div:nth-child(n+8){display:none!important}
/* Keep the week range beside Today and push only the closed-plan message to the far right. */
.loads-toolbar--planning .loads-toolbar-week>button[aria-label="Poprzedni tydzień"]{margin-left:0!important}.loads-toolbar--planning [role="status"]{margin-left:auto!important;white-space:nowrap}
/* Reduce the gap between the New Load heading and its first form card. */
#load-editor-form{margin-top:8px!important}

/* Keep the Resources sub-navigation attached below the compact TPS status bar. */
.tps-resources-page>.tps-resource-tabs-row{position:sticky!important;top:36px!important;z-index:30!important;background:#fff!important}.tps-resources-page{padding-top:0!important}

.tps-app-shell>div[class*="h-[calc(100vh-70px)]"],.tps-app-shell>div[class*="h-[calc(100vh-70px)]"]>div,.tps-app-shell>div[class*="h-[calc(100vh-70px)]"]>section,.tps-app-shell .planning-compact,.tps-app-shell .loads-board{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}

.loads-toolbar{box-sizing:border-box;min-height:74px;height:74px;margin:12px clamp(12px,2.8vw,52px);padding:10px 12px!important;gap:8px!important;border:1px solid #dce6f2!important;border-radius:12px;box-shadow:0 8px 24px rgb(20 53 91 / 8%);flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.loads-toolbar::-webkit-scrollbar{display:none}
.loads-toolbar-controls,.loads-toolbar-week{display:contents}
.loads-toolbar-controls>div.h-6,.loads-toolbar-week>div.h-6{display:none}
.loads-toolbar-controls>input{box-sizing:border-box;width:226px;height:46px;flex:0 0 226px;border:1px solid #dce6f2;border-radius:10px;padding:0 12px 0 39px;box-shadow:0 2px 5px rgb(20 53 91 / 5%);background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23456789' stroke-width='2'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='m16 16 4.2 4.2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:11px center;background-size:18px 18px}
.loads-toolbar-controls>details{box-sizing:border-box;width:164px;height:46px;flex:0 0 164px;position:relative}
.loads-toolbar-controls>details>summary{box-sizing:border-box;display:flex;align-items:center;width:100%;height:46px;border:1px solid #dce6f2;border-radius:10px;padding:0 12px;color:#172033;font-size:12px;white-space:nowrap;box-shadow:0 2px 5px rgb(20 53 91 / 5%)}
.loads-toolbar-controls>details>summary:before{content:"⚑";margin-right:8px;color:#234b78;font-size:18px}
.loads-toolbar-controls>details>div{z-index:50}
.loads-toolbar-controls>select{box-sizing:border-box;width:160px;height:46px;flex:0 0 160px;border:1px solid #dce6f2;border-radius:10px;padding:0 26px 0 36px;font-size:12px;box-shadow:0 2px 5px rgb(20 53 91 / 5%);background-color:#fff;background-repeat:no-repeat;background-position:11px center;background-size:17px 17px}
.loads-toolbar-controls>select[aria-label="Status ładunków"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23234b78' stroke-width='2'%3E%3Cpath d='m12 3 8.5 4.2L12 11 3.5 7.2 12 3Zm-8.5 9L12 16l8.5-4m-17 5L12 21l8.5-4'/%3E%3C/svg%3E")}
.loads-toolbar-controls>select[aria-label="Braki danych"]{width:205px;flex-basis:205px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23234b78' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5m-16 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E")}
.loads-toolbar-week>button[aria-label="Poprzedni tydzień"]{margin-left:auto}
.loads-toolbar-week>button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:40px;flex:0 0 auto;border:1px solid #dce6f2;border-radius:8px;padding:0 10px;background:#fff;font-size:12px;font-weight:600;white-space:nowrap;color:#334155}
.loads-toolbar-week>b{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:180px;height:40px;border-radius:8px;padding:0 12px;background:#edf4ff;color:#12345a;font-size:12px;font-weight:700;white-space:nowrap}
.loads-toolbar-week>b:before{content:"▣";margin-right:8px;color:#234b78;font-size:16px}
.loads-toolbar-week>span{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:7px;width:80px;height:46px;flex:0 0 80px;border:1px solid #e0e8f2;border-radius:10px;box-shadow:0 2px 5px rgb(20 53 91 / 5%)}
.loads-toolbar-week>span:before{content:"🚚";font-size:15px}
.loads-toolbar>button[aria-pressed]{box-sizing:border-box;min-width:44px;height:46px;border:1px solid #dce6f2;border-radius:10px;padding:0 8px;box-shadow:0 2px 5px rgb(20 53 91 / 5%)}
.loads-toolbar>button[title*="CTRL+Z"]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:80px;height:46px;border:1px solid #dce6f2;border-radius:10px;padding:0 12px;box-shadow:0 2px 5px rgb(20 53 91 / 5%)}
.loads-toolbar>button:last-child{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:150px;height:46px;flex:0 0 150px;border-radius:10px;background:linear-gradient(180deg,#0eaa6c,#07945d);padding:0 14px;font-size:12px;font-weight:700;color:#fff;box-shadow:0 4px 10px rgb(4 131 82 / 20%)}
.loads-toolbar>button:last-child:hover{background:linear-gradient(180deg,#0b9a62,#087d52)}
@media(max-width:1100px){.loads-toolbar{margin-left:12px;margin-right:12px;overflow-x:auto}.loads-toolbar-week>button[aria-label="Poprzedni tydzień"]{margin-left:auto}}
@media(max-width:760px){.loads-toolbar{height:auto;min-height:72px;align-items:stretch;flex-wrap:wrap!important;overflow:visible}.loads-toolbar-controls>input,.loads-toolbar-controls>details,.loads-toolbar-controls>select{width:100%;max-width:none;flex:1 1 100%}.loads-toolbar-week>button[aria-label="Poprzedni tydzień"]{margin-left:0}.loads-toolbar-week>b{min-width:0;flex:1 1 auto}}
.loads-toolbar{height:98px;min-height:98px;margin:0 10px;padding:18px 16px!important;gap:12px!important;border-radius:16px;box-shadow:0 8px 22px rgb(20 53 91 / 9%)}
.loads-toolbar-controls>input{width:310px;height:58px;flex-basis:310px;border-radius:12px;font-size:14px}
.loads-toolbar-controls>details{width:225px;height:58px;flex-basis:225px}
.loads-toolbar-controls>details>summary{height:58px;border-radius:12px;padding:0 14px;font-size:14px}
.loads-toolbar-controls>select{width:220px;height:58px;flex-basis:220px;border-radius:12px;font-size:14px}
.loads-toolbar-controls>select[aria-label="Braki danych"]{width:205px;flex-basis:205px}
.loads-toolbar-week>button[aria-label="Poprzedni tydzień"]{width:44px;height:56px;margin-left:auto;padding:0;font-size:0}
.loads-toolbar-week>button[aria-label="Poprzedni tydzień"]:after{content:none!important;display:none!important}
.loads-toolbar-week>b{min-width:224px;height:56px;border-radius:12px;padding:0 14px;font-size:14px}
.loads-toolbar-week>b:before{content:"▦";font-size:19px}
.loads-toolbar-week>button:not([aria-label="Poprzedni tydzień"]){height:56px;border-radius:12px;padding:0 16px;font-size:14px;color:#14549a}
.loads-toolbar-week>button:not([aria-label="Poprzedni tydzień"]):after{content:none}
.loads-toolbar-week>span{box-sizing:border-box;width:94px;height:58px;flex-basis:94px;border:0;border-left:1px solid #dce6f2;border-right:1px solid #dce6f2;border-radius:0;box-shadow:none;font-size:14px}
.loads-toolbar-week>span:before{content:none}
.loads-toolbar-week>span b{font-size:20px;color:#12345a}
.loads-toolbar-week>span span{font-size:14px}
.loads-toolbar>button[aria-pressed]{min-width:58px;height:56px;border-radius:12px;padding:0 12px;font-size:14px}
.loads-toolbar-config-wrap{position:relative;flex:0 0 auto}
.loads-toolbar-config{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:56px;border:1px solid #dce6f2;border-radius:12px;background:linear-gradient(180deg,#fff,#f7faff);padding:0 16px;font-size:14px;font-weight:600;color:#253b59;box-shadow:0 2px 6px rgb(20 53 91 / 7%);white-space:nowrap}
.loads-toolbar-config-menu{position:absolute;z-index:60;top:calc(100% + 8px);right:0;display:none;min-width:220px;border:1px solid #dce6f2;border-radius:12px;background:#fff;padding:14px;box-shadow:0 12px 30px rgb(20 53 91 / 18%);font-size:12px;color:#334155}
.loads-toolbar-config-wrap:has(.loads-toolbar-config[aria-expanded="true"]) .loads-toolbar-config-menu{display:block}
.loads-toolbar-new,.loads-toolbar>button:last-child{height:60px;min-width:172px;flex:0 0 172px;border-radius:13px;background:linear-gradient(180deg,#0ea968,#008e54);padding:0 18px;font-size:14px;font-weight:700;box-shadow:0 5px 13px rgb(4 131 82 / 24%)}
@media(max-width:1100px){.loads-toolbar{margin:0 10px;overflow-x:auto}}
@media(max-width:760px){.loads-toolbar{height:auto;min-height:82px;align-items:center;flex-wrap:wrap!important;overflow-x:auto;overflow-y:visible}.loads-toolbar-controls>input,.loads-toolbar-controls>details,.loads-toolbar-controls>select{width:auto;max-width:none;flex:0 0 auto}.loads-toolbar-week>b{min-width:170px}}
.loads-toolbar{height:49px!important;min-height:49px!important;margin:0!important;padding:4px 8px!important;gap:6px!important;border-radius:9px!important;align-items:center!important}
.loads-toolbar-controls>input,.loads-toolbar-controls>details,.loads-toolbar-controls>select,.loads-toolbar-controls>details>summary{height:30px!important}
.loads-toolbar-controls>input{font-size:12px!important;padding-top:0!important;padding-bottom:0!important}
.loads-toolbar-controls>details>summary,.loads-toolbar-controls>select{font-size:12px!important}
.loads-toolbar-week>button,.loads-toolbar-week>b,.loads-toolbar-week>span,.loads-toolbar>button[aria-pressed]{height:30px!important}
.loads-toolbar-week>b{min-width:190px!important;font-size:12px!important}
.tps-app-shell .loads-toolbar .loads-toolbar-week>button[aria-pressed]{font-size:16px!important}
.loads-toolbar .loads-toolbar-new{height:40px!important;min-width:210px!important;flex:0 0 210px!important;border-radius:8px!important;background:linear-gradient(180deg,#0ea968,#008e52)!important;padding:0 10px!important;font-size:26px!important;font-weight:700!important;color:#fff!important;box-shadow:0 5px 13px rgb(4 131 82 / 24%)!important}
.loads-toolbar .loads-toolbar-new:hover{background:linear-gradient(180deg,#0b9a62,#087d52)!important}
.tps-app-shell .loads-toolbar .loads-toolbar-week>button.loads-toolbar-new{height:40px!important;min-width:210px!important;flex:0 0 210px!important;border-radius:8px!important;background:linear-gradient(180deg,#0ea968,#008e52)!important;padding:0 10px!important;font-size:18px!important;font-weight:700!important;color:#fff!important;box-shadow:0 5px 13px rgb(4 131 82 / 24%)!important}
.tps-app-shell .loads-toolbar .loads-toolbar-week>button.loads-toolbar-new:hover{background:linear-gradient(180deg,#0b9a62,#087d52)!important}
.tps-app-shell .loads-toolbar .loads-toolbar-week>button:not([aria-label="Poprzedni tydzień"]):not([aria-pressed]){font-size:14px!important;color:#14549a!important}
@media(max-width:760px){.loads-toolbar{height:auto!important;min-height:49px!important;flex-wrap:wrap!important}.loads-toolbar-week>b{min-width:170px!important}}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
.warehouse-page .warehouse-task-list-head,.warehouse-page .warehouse-task-list-row{grid-template-columns:72px minmax(170px,1.05fr) minmax(230px,1.55fr) minmax(120px,.85fr) minmax(170px,1fr) minmax(170px,1fr) 72px;min-width:1120px}.warehouse-page .warehouse-task-direction-filter{border:1px solid #cbd9e9;border-radius:8px;background:#fff;color:#173761;padding:7px 10px;font-size:11px;font-weight:700;min-width:150px}.warehouse-page .warehouse-task-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.warehouse-page .warehouse-loading-note-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-page .warehouse-loading-empty{padding:22px;text-align:center;color:#64748b;font-size:12px}

.warehouse-page .warehouse-loading-current-week-label{flex:0 0 auto;padding:0 4px;color:#64748b;font-size:9px;font-weight:900;white-space:nowrap}

/* TPS 0.7.5.007 — naprawa układu Załadunków */
.warehouse-page .warehouse-loading-list-head,.warehouse-page .warehouse-loading-list-row{grid-template-columns:minmax(96px,.85fr) minmax(78px,.7fr) minmax(78px,.7fr) minmax(90px,.8fr) minmax(92px,.8fr) minmax(92px,.8fr) minmax(102px,.95fr) minmax(74px,.65fr) minmax(70px,.65fr) minmax(70px,.65fr) minmax(120px,1.2fr)!important;grid-auto-flow:row!important;min-width:1240px!important;gap:10px!important}
.warehouse-page .warehouse-loading-week-filter>button.warehouse-task-week-all{display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-template-rows:none!important;place-items:center!important;flex:0 0 auto!important;width:auto!important;min-width:104px!important;height:38px!important;padding:0 10px!important;font-size:9px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
.warehouse-page .warehouse-loading-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:8px 12px!important;min-width:0!important}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-view-tabs,.warehouse-page .warehouse-loading-toolbar .warehouse-loading-week-filter,.warehouse-page .warehouse-loading-toolbar .warehouse-loading-direction-filter{flex:0 0 auto!important}
.warehouse-page .warehouse-loading-toolbar .warehouse-loading-layout-switch{flex:0 0 auto!important;margin-left:auto!important}

/* Plan dzienny: karty ładunków wypełniają wolną szerokość kolumny. */
.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(5)>.flex.flex-nowrap>.route-point-copy-wrap,
.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(5)>.flex.flex-nowrap>.base-route-item{
  flex:1 0 180px!important;
  min-width:180px!important;
}
.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(5)>.flex.flex-nowrap>.base-route-item{
  width:auto!important;
  max-width:none!important;
}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  

















/* Plan dzienny: kolumna trasy wypełnia dostępną szerokość bez rozszerzania całej strony; wykorzystanie i akcje pozostają przy prawej krawędzi. */
.loads-board:has(section.planning-compact[class*="daily-view-"]){box-sizing:border-box!important;width:calc(100vw - 78px)!important;max-width:calc(100vw - 78px)!important;min-width:0!important;overflow-x:hidden!important}.loads-board:has(section.planning-compact[class*="daily-view-"])>div.min-h-0.flex-1{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}section.planning-compact[class*="daily-view-"]>div.grid{display:grid!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;grid-template-columns:42px 220px 68px 46px minmax(0,1fr) 118px 150px!important}section.planning-compact[class*="daily-view-"] .relative{box-sizing:border-box!important;width:100%!important;min-width:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center{display:grid!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;grid-template-columns:42px 220px 68px 46px minmax(0,1fr) 118px 150px!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(1){grid-column:1!important;min-width:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(2){grid-column:2!important;min-width:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(3){grid-column:3!important;min-width:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(5){min-width:0!important;width:100%!important;max-width:none!important;overflow-x:auto!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6){position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;grid-column:6/7!important;justify-self:stretch!important;box-sizing:border-box!important;min-width:0!important;width:auto!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7){position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;grid-column:7/8!important;justify-self:stretch!important;box-sizing:border-box!important;min-width:0!important;width:auto!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}section.planning-compact[class*="daily-view-"]{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}section.planning-compact[class*="daily-view-"]>div.min-h-0.flex-1.overflow-y-auto{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}section.planning-compact[class*="daily-view-"]>div.min-h-0.flex-1.overflow-y-auto>.relative{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:center!important;gap:3px!important;min-width:0!important;overflow:hidden!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7)>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important}section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7)>button:nth-child(3){grid-column:1/-1!important}
/* TPS .048 — compact, permission-gated deletion actions */
.warehouse-page .warehouse-loading-list-row{position:relative;cursor:pointer}.warehouse-page .warehouse-loading-note-cell{position:relative;padding-right:30px}.warehouse-page .warehouse-delete-loading-x,.warehouse-page .warehouse-delete-task-x{display:inline-grid;place-items:center;width:23px;height:23px;min-width:23px;border:1px solid transparent;border-radius:6px;background:transparent;color:#718096;font-size:15px;font-weight:800;line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.warehouse-page .warehouse-delete-loading-x:hover,.warehouse-page .warehouse-delete-task-x:hover{border-color:#fecaca;background:#fff1f2;color:#be123c}.warehouse-page .warehouse-delete-loading-x:disabled,.warehouse-page .warehouse-delete-task-x:disabled{opacity:.45;cursor:wait}.warehouse-page .warehouse-loading-note-cell>.warehouse-delete-loading-x{position:absolute;right:0;top:50%;transform:translateY(-50%)}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item{display:block;position:relative;width:100%;margin-top:7px;border:1px solid #cbdcf3;border-left:3px solid #2563eb;border-radius:7px;background:#fff;padding:7px 32px 7px 7px;text-align:left;color:#173761;cursor:pointer}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item.is-selected{background:#edf5ff;border-color:#2563eb}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item b,.warehouse-page .warehouse-loading-week .warehouse-loading-week-item span,.warehouse-page .warehouse-loading-week .warehouse-loading-week-item small{display:block}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item b{font-size:10px}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item span,.warehouse-page .warehouse-loading-week .warehouse-loading-week-item small{font-size:9px;margin-top:3px}.warehouse-page .warehouse-loading-week .warehouse-loading-week-item small{color:#64748b}.warehouse-page .warehouse-loading-week .warehouse-delete-loading-x{position:absolute;top:4px;right:4px;z-index:2;width:22px;height:22px;background:#fff}.warehouse-page .warehouse-task-list-row{position:relative}.warehouse-page .warehouse-task-delete-slot{display:flex;justify-content:center;align-items:center}.warehouse-page .warehouse-task-delete-slot button{flex:none}

/* TPS .026 — spójna, nieściskana siatka planu dziennego */
section.planning-compact[class*="daily-view-"]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:hidden!important}
section.planning-compact[class*="daily-view-"]>.planning-column-header,
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center{box-sizing:border-box;display:grid;width:max(100%,1004px)!important;min-width:1004px!important;grid-template-columns:38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 112px!important;align-items:stretch}
section.planning-compact[class*="daily-view-"]>div.min-h-0.flex-1.overflow-y-auto{box-sizing:border-box;width:max(100%,1004px)!important;min-width:1004px!important;max-width:none!important;overflow-x:hidden!important;overflow-y:auto!important}
section.planning-compact[class*="daily-view-"] .relative{box-sizing:border-box;width:100%;min-width:0;overflow-x:hidden}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6){box-sizing:border-box;position:static!important;grid-column:6/7!important;display:flex;min-width:0;max-width:none;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;margin:3px 4px;padding:4px 6px;overflow:visible!important;white-space:nowrap;line-height:1.25}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6)>div{min-width:0;white-space:nowrap}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6) b,
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(6) small{display:block;white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7){box-sizing:border-box;position:static!important;grid-column:7/8!important;display:flex!important;min-width:0!important;max-width:none!important;flex-flow:row nowrap!important;align-items:center;justify-content:center;gap:6px;margin:0!important;padding:4px 6px;overflow:visible!important;z-index:auto!important}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions{display:flex!important;flex-flow:row nowrap!important;align-items:center;justify-content:center;gap:6px;width:max-content;min-width:max-content;overflow:visible!important}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7)>button,
section.planning-compact[class*="daily-view-"] .planning-row-action-btn{box-sizing:border-box!important;display:inline-flex!important;flex:0 0 60px!important;width:60px!important;min-width:60px!important;max-width:60px;height:32px!important;min-height:32px!important;max-height:32px!important;align-items:center;justify-content:center;margin:0!important;padding:0 4px!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;text-align:center;line-height:1!important}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7)>button.w-24{flex-basis:96px!important;width:96px!important;min-width:96px!important;max-width:96px}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7)>button:disabled{cursor:not-allowed;opacity:.42}

/* TPS .028 — zwarty blok MAPA / Wysłano / PLAN */
section.planning-compact[class*="daily-view-"]>.planning-column-header,
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center{box-sizing:border-box;display:grid;width:max(100%,1004px)!important;min-width:1004px!important;grid-template-columns:38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 112px!important;align-items:stretch}
section.planning-compact[class*="daily-view-"]>div.min-h-0.flex-1.overflow-y-auto{box-sizing:border-box;width:max(100%,1004px)!important;min-width:1004px!important;max-width:none!important;overflow-x:hidden!important;overflow-y:auto!important}
section.planning-compact[class*="daily-view-"] .relative>.grid.items-center>div:nth-child(7){box-sizing:border-box;position:static!important;grid-column:7/8!important;display:grid!important;grid-template-columns:40px 66px!important;grid-template-rows:17px 17px!important;gap:2px!important;width:108px!important;min-width:108px!important;max-width:108px!important;height:36px!important;min-height:36px!important;max-height:36px!important;align-content:center;align-items:stretch;justify-self:end;justify-content:stretch;margin:0!important;padding:0!important;overflow:visible!important;z-index:auto!important}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions{display:grid!important;grid-template-columns:40px 66px!important;grid-template-rows:17px 17px!important;gap:2px!important;box-sizing:border-box;width:108px!important;min-width:108px!important;max-width:108px!important;height:36px!important;min-height:36px!important;max-height:36px!important;align-self:center;justify-self:end;margin:0!important;padding:0!important;overflow:visible!important}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions>button:first-child,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions>button:nth-child(2){grid-column:2!important;grid-row:1/3!important;width:66px!important;min-width:66px!important;max-width:66px!important;height:36px!important;min-height:36px!important;max-height:36px!important;text-transform:uppercase}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions>button:nth-child(2),
section.planning-compact[class*="daily-view-"] .planner-execution-permissions>button:first-child{grid-column:1!important;grid-row:1!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:17px!important;min-height:17px!important;max-height:17px!important;text-transform:uppercase}
section.planning-compact[class*="daily-view-"] .planner-execution-permissions>button:nth-child(3){grid-column:1!important;grid-row:2!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:17px!important;min-height:17px!important;max-height:17px!important}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions>button,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions>button{box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:0 2px!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;line-height:1!important;font-size:8px!important}

/* TPS .029 — wspólny podgląd ładunku w Planowaniu i Ładunkach */
.load-preview-panel{box-sizing:border-box;margin-left:auto;height:100%;width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;background:#fff;padding:.75rem;box-shadow:0 25px 50px -12px rgb(0 0 0/.25)}
@media(min-width:640px){.load-preview-panel{width:600px;padding:1rem 1.25rem}}
.load-preview-shared-sections{min-width:0;margin-top:.75rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.load-preview-points{grid-column:1/-1;min-width:0}.load-preview-heading{margin:0;color:#64748b;font-size:11px;font-weight:700;line-height:1.4;text-transform:uppercase}
.load-preview-point-list{display:grid;gap:.375rem;margin-top:.375rem}.load-preview-point{min-width:0;border:1px solid #e2e8f0;border-radius:.5rem;background:#fff;padding:.5rem;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.load-preview-point b{font-weight:600;color:#1e293b}.load-preview-address{margin:.25rem 0;color:#475569;overflow-wrap:anywhere}.load-preview-point small{color:#94a3b8}
.load-preview-note{min-width:0;border:1px solid;border-radius:.5rem;padding:.5rem}.load-preview-note-driver{border-color:#dbeafe;background:#eff6ffb3}.load-preview-note-cargo{border-color:#e2e8f0;background:#f8fafc}.load-preview-note-driver .load-preview-heading{color:#1e40af}.load-preview-note-cargo .load-preview-heading{color:#64748b}.load-preview-note-content{margin:.25rem 0 0;color:#334155;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}

/* TPS .030 — Plan dzienny: dwa równe, pionowe przyciski PLAN/MAPA. */
section.planning-compact[class*="daily-view-"] > .planning-column-header,
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center {
  grid-template-columns: 38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 60px !important;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > div:nth-child(7) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 56px !important;
  grid-template-rows: 24px 24px !important;
  align-content: center !important;
  align-items: stretch !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  gap: 2px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 56px !important;
  grid-template-rows: 24px 24px !important;
  align-content: center !important;
  align-items: stretch !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  gap: 2px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button:first-child {
  grid-column: 1 !important; grid-row: 1 !important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button:nth-child(2) {
  grid-column: 1 !important; grid-row: 2 !important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button:nth-child(n+3),
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button:nth-child(n+3) {
  display: none !important;
}
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button:first-child {
  grid-column: 1 !important; grid-row: 2 !important;
}
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button:nth-child(2) {
  grid-column: 1 !important; grid-row: 1 !important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 3px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1 !important;
  font-size: 9px !important;
  text-transform: uppercase;
}

/* TPS .031 — kolumny wykorzystania i akcji dopasowane do treści */
.planning-module-planning.planning-compact > .grid,
.planning-module-planning.planning-compact .grid.items-center,
.planning-module-planning.planning-compact .grid.items-center.min-h-12.text-sm {
  grid-template-columns: 42px 285px 68px 46px minmax(620px,1fr) max-content max-content !important;
}
section.planning-compact[class*="daily-view-"] > .planning-column-header,
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center {
  grid-template-columns: 38px minmax(205px,240px) 58px 44px minmax(360px,1fr) max-content max-content !important;
}
.planning-compact .grid.items-center > :nth-child(6) {
  box-sizing:border-box;width:max-content;max-width:100%;justify-self:start;margin-left:2px;margin-right:2px;padding-left:5px;padding-right:5px;
}
.planning-compact .grid.items-center > :nth-child(7) {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:max-content!important;justify-self:start;gap:2px;margin-left:2px;margin-right:2px;
}
.planning-compact .grid.items-center > :nth-child(7) > .planning-row-action-btn,
.planning-compact .grid.items-center > :nth-child(7) > button {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:max-content!important;flex:0 0 auto!important;padding-left:5px!important;padding-right:5px!important;white-space:nowrap;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(7),
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions {
  box-sizing:border-box!important;width:max-content!important;min-width:0!important;max-width:max-content!important;grid-template-columns:max-content!important;justify-self:start!important;justify-content:start!important;gap:2px!important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button {
  box-sizing:border-box!important;width:max-content!important;min-width:0!important;max-width:max-content!important;padding-left:5px!important;padding-right:5px!important;
}

/* TPS .032 — Planowanie: wykorzystanie stałe, akcje dopasowane do napisu */
.planning-module-planning.planning-compact > .grid,
.planning-module-planning.planning-compact .grid.items-center,
.planning-module-planning.planning-compact .grid.items-center.min-h-12.text-sm {
  grid-template-columns: 42px 285px 68px 46px minmax(620px,1fr) 148px max-content !important;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(6) {
  box-sizing:border-box;width:auto;max-width:none;justify-self:stretch;margin-left:4px;margin-right:4px;padding-left:5px;padding-right:5px;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(7) {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:max-content!important;justify-self:start;gap:2px;margin-left:2px;margin-right:2px;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(7) > button {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:100%!important;flex:0 1 auto!important;padding-left:5px;padding-right:5px;white-space:nowrap;
}
/* Keep Plan dzienny on its previous fixed-width card and button layout. */
section.planning-compact[class*="daily-view-"] > .planning-column-header,
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center {
  grid-template-columns:38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(6) {
  width:auto;max-width:none;justify-self:stretch;margin-left:4px;margin-right:4px;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(7),
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions {
  box-sizing:border-box!important;width:56px!important;min-width:56px!important;max-width:56px!important;grid-template-columns:56px!important;justify-self:center!important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button {
  width:56px!important;min-width:56px!important;max-width:56px!important;
}

/* TPS .033 — Planowanie: wykorzystanie 110px i kompaktowy przycisk Plan */
.planning-module-planning.planning-compact > .grid,
.planning-module-planning.planning-compact .grid.items-center,
.planning-module-planning.planning-compact .grid.items-center.min-h-12.text-sm {
  grid-template-columns: 42px 285px 68px 46px minmax(620px,1fr) 110px max-content !important;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(6) {
  box-sizing:border-box;width:auto;max-width:none;justify-self:stretch;margin-left:4px;margin-right:4px;padding-left:5px;padding-right:5px;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(7) {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:max-content!important;justify-self:start;gap:2px;margin-left:2px;margin-right:2px;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(7) > button {
  box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:100%!important;flex:0 1 auto!important;padding-left:5px;padding-right:5px;white-space:nowrap;
}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(7) > .planning-row-action-btn:first-child {
  box-sizing:border-box;width:30px!important;min-width:30px!important;max-width:30px!important;flex-basis:30px!important;height:32.4px!important;min-height:32.4px!important;padding-left:2px;padding-right:2px;
}
/* Keep Plan dzienny on its previous fixed-width card and button layout. */
section.planning-compact[class*="daily-view-"] > .planning-column-header,
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center {
  grid-template-columns:38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(6) {
  width:auto;max-width:none;justify-self:stretch;margin-left:4px;margin-right:4px;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(7),
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions {
  box-sizing:border-box!important;width:56px!important;min-width:56px!important;max-width:56px!important;grid-template-columns:56px!important;justify-self:center!important;
}
section.planning-compact[class*="daily-view-"] .daily-dispatcher-actions > button,
section.planning-compact[class*="daily-view-"] .planner-execution-permissions > button {
  width:56px!important;min-width:56px!important;max-width:56px!important;
}

/* TPS .034 — Planowanie: poprawny przycisk PLAN w układzie wykonawczym */
/* The main Planning view uses planner-execution-permissions (Mapa, Plan, Wysłano),
   not daily-dispatcher-actions. Keep Plan 20% narrower and 50% taller than its
   original 72x20px button; the daily plan is intentionally untouched. */
section.planning-compact.planning-module-planning .planner-execution-permissions {
  box-sizing:border-box!important;width:58px!important;min-width:58px!important;max-width:58px!important;
  grid-template-columns:58px!important;grid-template-rows:20px 30px 20px!important;
}
section.planning-compact.planning-module-planning .planner-execution-permissions > button:nth-child(2) {
  box-sizing:border-box!important;width:58px!important;min-width:58px!important;max-width:58px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;align-self:stretch;
  white-space:nowrap;padding-left:3px;padding-right:3px;
}

/* TPS .037 — stałe szerokości kolumn Wykorzystanie i Akcje Planowania */
/* Trasa wypełnia pozostały tor i przewija się wewnątrz swojej komórki. */
section.planning-compact.planning-module-daily[class*="daily-view-"] > .grid,
section.planning-compact.planning-module-daily[class*="daily-view-"] .relative > .grid.items-center {
  grid-template-columns:38px minmax(205px,240px) 58px 44px minmax(360px,1fr) minmax(180px,190px) 60px!important;
}
section.planning-compact.planning-module-planning > .planning-column-header,
section.planning-compact.planning-module-planning .relative > .planning-row-grid {
  grid-template-columns:42px 285px 68px 46px minmax(620px,1fr) 160px 64px!important;
  column-gap:8px!important;
}
section.planning-compact.planning-module-planning .relative > .planning-row-grid > :nth-child(6) {
  box-sizing:border-box!important;width:160px!important;min-width:160px!important;max-width:160px!important;
  justify-self:stretch!important;margin:0!important;padding-left:5px!important;padding-right:5px!important;
  flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  overflow:visible!important;white-space:nowrap!important;
}
section.planning-compact.planning-module-planning .relative > .planning-row-grid > :nth-child(6) > div {
  width:max-content!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;
}
section.planning-compact.planning-module-planning .relative > .planning-row-grid > :nth-child(7) {
  box-sizing:border-box!important;display:flex!important;width:64px!important;min-width:64px!important;max-width:64px!important;
  justify-self:stretch!important;align-self:center!important;margin:0!important;padding:0!important;
  align-items:center!important;justify-content:center!important;flex-flow:column nowrap!important;gap:2px!important;
}
section.planning-compact.planning-module-planning .relative > .planning-row-grid > :nth-child(7) > button {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;
  margin:0!important;padding-left:4px!important;padding-right:4px!important;
  white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;
}
@media(max-width:1100px) {
  section.planning-compact.planning-module-planning > .planning-column-header,
  section.planning-compact.planning-module-planning .relative > .planning-row-grid {
    width:max(100%,920px)!important;min-width:920px!important;
    grid-template-columns:36px minmax(170px,220px) 56px 40px minmax(300px,1fr) 160px 64px!important;
    column-gap:8px!important;
  }
  section.planning-compact.planning-module-planning > .min-h-0.flex-1.overflow-y-auto {
    width:max(100%,920px)!important;min-width:920px!important;
  }
}

/* TPS .038 — stała szerokość wykorzystania Planu dziennego */
/* Tabela zachowuje oddzielne, stałe tory: trasa, wykorzystanie i akcje.
   Marginesy karty i akcji zapewniają równy 8px odstęp między nimi. */
.planning-compact[class*="daily-view-"] > .planning-column-header,
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid {
  grid-template-columns:42px 285px 68px 46px minmax(620px,1fr) 180px 68px!important;
  column-gap:0!important;
}
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(6) {
  box-sizing:border-box!important;min-width:0!important;max-width:none!important;
  margin-left:4px!important;margin-right:4px!important;
  white-space:nowrap!important;overflow:hidden!important;
}
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(6) b,
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(6) small,
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(6) span {
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
}
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(7) {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  width:60px!important;min-width:60px!important;max-width:60px!important;
  height:46px!important;min-height:46px!important;margin:0 4px!important;padding:0!important;
  gap:2px!important;align-items:stretch!important;justify-content:center!important;
  justify-self:center!important;align-self:center!important;overflow:visible!important;
}
.planning-compact[class*="daily-view-"] .relative > .planning-row-grid > :nth-child(7) > .planning-row-action-btn {
  box-sizing:border-box!important;display:inline-flex!important;width:60px!important;min-width:60px!important;max-width:60px!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;
  margin:0!important;padding:0 4px!important;white-space:nowrap!important;word-break:keep-all!important;
  align-items:center!important;justify-content:center!important;line-height:1!important;
}


/* TPS .042 — rzeczywisty układ i wyrównanie Planowanie */
/* Aktywny bundle ma rzeczywiste wiersze .grid.items-center.border-t oraz nagłówek z inline grid-template-columns. */
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t {
  box-sizing:border-box!important;grid-template-columns:36px 300px 72px 46px minmax(360px,1fr) 140px 84px!important;column-gap:0!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(1),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(1) {grid-column:1!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(2),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(2) {grid-column:2!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(3),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(3) {grid-column:3!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(4),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(4) {grid-column:4!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(5),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(5) {grid-column:5!important;min-width:0!important;overflow-x:auto!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(6),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;position:relative!important;inset:auto!important;right:auto!important;z-index:auto!important;
  min-width:0!important;width:auto!important;max-width:none!important;justify-self:stretch!important;align-self:stretch!important;
  margin:4px 0!important;padding:4px 6px!important;overflow:hidden!important;white-space:nowrap!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) > *,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) b,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) small {white-space:nowrap!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(7),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) {
  box-sizing:border-box!important;grid-column:7!important;position:relative!important;inset:auto!important;right:auto!important;z-index:auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;justify-self:stretch!important;align-self:center!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:2px!important;margin:0!important;padding:0 4px!important;overflow:visible!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) .planner-execution-permissions,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) .daily-dispatcher-actions {box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:2px!important;margin:0!important;padding:0!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) button {box-sizing:border-box!important;display:inline-flex!important;width:100%!important;min-width:0!important;max-width:100%!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;padding:0 3px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;}
@media(max-width:1450px) {
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative {box-sizing:border-box!important;width:max(100%,1120px)!important;min-width:1120px!important;max-width:none!important;overflow:visible!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] {box-sizing:border-box!important;width:max(100%,1136px)!important;min-width:1136px!important;grid-template-columns:36px 250px 64px 42px minmax(360px,1fr) 140px 84px!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t {box-sizing:border-box!important;width:max(100%,1120px)!important;min-width:1120px!important;grid-template-columns:36px 250px 64px 42px minmax(360px,1fr) 140px 84px!important;}
}

/* TPS .043 — kolumna Wykorzystanie 140px; zachowany sprawdzony układ .042 */
/* Aktywny bundle ma rzeczywiste wiersze .grid.items-center.border-t oraz nagłówek z inline grid-template-columns. */
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t {
  box-sizing:border-box!important;grid-template-columns:36px 300px 72px 46px minmax(360px,1fr) 140px 84px!important;column-gap:0!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(1),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(1) {grid-column:1!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(2),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(2) {grid-column:2!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(3),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(3) {grid-column:3!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(4),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(4) {grid-column:4!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(5),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(5) {grid-column:5!important;min-width:0!important;overflow-x:auto!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(6),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;position:relative!important;inset:auto!important;right:auto!important;z-index:auto!important;
  min-width:0!important;width:auto!important;max-width:none!important;justify-self:stretch!important;align-self:stretch!important;
  margin:4px 0!important;padding:4px 6px!important;overflow:hidden!important;white-space:nowrap!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) > *,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) b,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(6) small {white-space:nowrap!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(7),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) {
  box-sizing:border-box!important;grid-column:7!important;position:relative!important;inset:auto!important;right:auto!important;z-index:auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;justify-self:stretch!important;align-self:center!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:2px!important;margin:0!important;padding:0 4px!important;overflow:visible!important;
}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) .planner-execution-permissions,
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) .daily-dispatcher-actions {box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:2px!important;margin:0!important;padding:0!important;}
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) button {box-sizing:border-box!important;display:inline-flex!important;width:100%!important;min-width:0!important;max-width:100%!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;padding:0 3px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;}
@media(max-width:1450px) {
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative {box-sizing:border-box!important;width:max(100%,1120px)!important;min-width:1120px!important;max-width:none!important;overflow:visible!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] {box-sizing:border-box!important;width:max(100%,1136px)!important;min-width:1136px!important;grid-template-columns:36px 250px 64px 42px minmax(360px,1fr) 140px 84px!important;}
  section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t {box-sizing:border-box!important;width:max(100%,1120px)!important;min-width:1120px!important;grid-template-columns:36px 250px 64px 42px minmax(360px,1fr) 140px 84px!important;}
}

/* TPS .044 — Plan dzienny używa szerokości 140px jak Planowanie.
   PlanningSection renderuje daily-view-* bez klasy planning-module-daily. */
section.planning-compact[class*="daily-view-"] > div.planning-column-header.planning-row-grid.grid {
  box-sizing:border-box!important;
  grid-template-columns:38px 240px 58px 44px minmax(300px,1fr) 140px 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > div.planning-row-grid.grid.items-center {
  box-sizing:border-box!important;grid-template-columns:38px 240px 58px 44px minmax(300px,1fr) 140px 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > div.planning-row-grid.grid.items-center > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;position:static!important;inset:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;justify-self:stretch!important;align-self:stretch!important;
  margin:3px 0!important;padding:2px 4px!important;
}

/* TPS .045 — kolumna Wykorzystanie w Planie dziennym ma tę samą, stałą szerokość co w Planowaniu.
   Kierujemy reguły po rzeczywistej klasie widoku daily-view-* i po bezpośrednim nagłówku/wierszach siatki. */
section.planning-compact[class*="daily-view-"] > .grid {
  box-sizing:border-box!important;
  grid-template-columns:38px 240px 58px 44px minmax(300px,1fr) 140px 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center {
  box-sizing:border-box!important;grid-template-columns:38px 240px 58px 44px minmax(300px,1fr) 140px 60px!important;
}
section.planning-compact[class*="daily-view-"] .relative > .grid.items-center > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;position:static!important;inset:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  width:calc(100% - 14px)!important;min-width:0!important;max-width:none!important;justify-self:center!important;align-self:stretch!important;
  margin:3px 0!important;padding:2px 4px!important;
}

/* TPS .046 — nadpisanie starej reguły o wyższej specyficzności; szerokość jak w Planowaniu. */
section.planning-compact.planning-module-daily[class*="daily-view-"] > .grid,
section.planning-compact.planning-module-daily[class*="daily-view-"] .relative > .grid.items-center {
  box-sizing:border-box!important;grid-template-columns:38px 240px 58px 44px minmax(300px,1fr) 140px 60px!important;
}
section.planning-compact.planning-module-daily[class*="daily-view-"] .relative > .grid.items-center > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;position:static!important;inset:auto!important;width:calc(100% - 14px)!important;min-width:0!important;max-width:none!important;justify-self:center!important;align-self:stretch!important;margin:3px 0!important;padding:2px 4px!important;
}

/* TPS .033 — zwarty podgląd obecnego release’u; kolory i szerokość panelu pozostają bez zmian. */
.load-preview-panel>header,.load-preview-panel>div>header{gap:.5rem;align-items:flex-start}
.load-preview-identity{display:flex;align-items:baseline;justify-content:space-between;gap:2px 10px;flex-wrap:wrap;min-width:0}
.load-preview-load-number{margin:0;color:#059669;font-size:12px;font-weight:700;line-height:1.25}
.load-preview-created-at,.load-preview-created-by{margin:0;color:#64748b;font-size:10px;line-height:1.3}
.load-preview-created-at{white-space:nowrap}
.load-preview-panel h2{overflow-wrap:anywhere}
.load-preview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 12px;min-width:0;font-size:12px;line-height:1.35}
.load-preview-facts>div{min-width:0;overflow-wrap:anywhere}
.load-preview-facts dt{line-height:1.25}
.load-preview-facts dd{margin-top:2px;line-height:1.35;overflow-wrap:anywhere}
.load-preview-facts-planning{margin-top:.75rem!important}
.load-preview-facts-planning>div:nth-child(1),.load-preview-facts-planning>div:nth-child(4){grid-column:1/-1}
.load-preview-facts-loads{margin-top:1rem!important}
.load-preview-shared-sections{margin-top:.75rem;gap:.5rem}
.load-preview-point{padding:.5rem}
.load-preview-note{padding:.5rem}
.load-preview-documents{min-width:0;margin-top:.75rem!important}
.load-preview-documents input{box-sizing:border-box;height:32px;margin-top:.375rem!important;padding:0 8px!important}
.load-preview-documents-planning>button{margin-top:.25rem!important;padding:6px!important}
.load-preview-documents-loads>div[tabindex="0"]{margin-top:.375rem!important;padding:8px!important}
.load-preview-documents-loads>div[tabindex="0"]>div{margin-top:.375rem!important}
.load-preview-documents-loads>div[tabindex="0"]>b{font-size:12px}
.load-preview-documents-loads>div:not([tabindex]){margin-top:.375rem!important;padding:6px!important;font-size:11px}
.load-preview-actions{position:sticky;bottom:-12px;z-index:2;display:flex;align-items:center;gap:6px;margin:12px -12px -12px;padding:8px 12px 12px;border-top:1px solid #e2e8f0;background:rgb(255 255 255/.97)}
.load-preview-actions>button{box-sizing:border-box;min-height:32px;padding:6px 10px!important;font-size:12px!important}
.load-preview-actions>button:nth-last-child(2){min-width:0;flex:1}
@media(min-width:640px){.load-preview-actions{bottom:-16px;margin:12px -20px -16px;padding:8px 20px 12px}}
@media(max-width:639px){.load-preview-shared-sections{grid-template-columns:minmax(0,1fr)}.load-preview-points{grid-column:auto}.load-preview-facts{gap:7px 8px}.load-preview-actions{flex-wrap:wrap}}


/* TPS route tile: Planning module only; preserve daily view and existing palette. */
.planning-module-planning .route-point-copy-wrap{box-sizing:border-box;width:max-content;min-width:max-content;max-width:max-content;flex:0 0 auto;gap:0;overflow:visible;border:0;border-radius:0;background:transparent}
.planning-module-planning .route-point-tile-main{box-sizing:border-box;display:flex;width:max-content!important;min-width:max-content!important;max-width:none!important;height:50px!important;min-height:50px!important;max-height:50px!important;flex:0 0 auto;align-items:stretch;padding:0;border-radius:0}
.planning-module-planning .route-point-tile-drag{box-sizing:border-box;display:flex;width:15px;min-width:15px;max-width:15px;flex:0 0 15px;align-items:center;justify-content:center;padding:0!important;font-size:13px}
.planning-module-planning .route-point-tile-order{box-sizing:border-box;display:grid;width:34px;min-width:34px;max-width:34px;flex:0 0 34px;grid-template-rows:16px 14px 1fr;align-items:center;justify-items:center;overflow:hidden;border-right:1px solid #cbd5e1;text-align:center}
.planning-module-planning .daily-load-state-pending .route-point-tile-order{border-right-color:#cbd5e1}
.planning-module-planning .route-point-tile-number{font-size:12px;line-height:1;font-weight:800}
.planning-module-planning .route-point-tile-direction{max-width:100%;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.planning-module-planning .route-point-tile-flag,.planning-module-planning .route-point-tile-flag-code{height:12px;font-size:12px;line-height:12px}
.planning-module-planning .route-point-tile-flag-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:700;color:#64748b}
.planning-module-planning .route-point-tile-warning{box-sizing:border-box;display:flex;width:13px;min-width:13px;max-width:13px;flex:0 0 13px;align-items:center;justify-content:center;font-size:12px;line-height:1}
.planning-module-planning .route-point-tile-content{box-sizing:border-box;display:grid;width:max-content;min-width:max-content;flex:0 0 auto;grid-template-rows:repeat(3,minmax(0,1fr));overflow:visible;padding:1px 5px}
.planning-module-planning .route-point-tile-line{box-sizing:border-box;display:flex;width:max-content;min-width:max-content;align-items:center;gap:7px;overflow:visible;white-space:nowrap;font-size:10px;line-height:1.05;border-bottom:1px solid rgb(100 116 139/.22)}
.planning-module-planning .route-point-tile-line:last-child{border-bottom:0}
.planning-module-planning .route-point-tile-line-main .route-point-tile-postal{box-sizing:border-box;width:max-content;min-width:max-content;flex:0 0 auto;overflow:visible;border-right:1px solid rgb(100 116 139/.3);padding-right:6px;font-weight:700;text-overflow:clip}
.planning-module-planning .route-point-tile-place{display:none}
.planning-module-planning .route-point-tile-direction-copy{width:21px;min-width:21px;flex:0 0 21px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;text-align:center}
.planning-module-planning .route-point-tile-time{width:32px;min-width:32px;flex:0 0 32px;color:#b91c1c;font-weight:700;text-align:right}
.planning-module-planning .route-point-tile-trailer{width:max-content;min-width:max-content;max-width:none;flex:0 0 auto;overflow:visible;text-overflow:clip;color:#1d4ed8;font-weight:700}
.planning-module-planning .route-point-tile-ldm,.planning-module-planning .route-point-tile-weight{flex:0 0 auto;font-weight:700;font-variant-numeric:tabular-nums}
.planning-module-planning .route-point-tile-reference{display:none}.planning-module-planning .route-point-tile-tms{width:max-content;min-width:max-content;max-width:none;flex:0 0 auto;overflow:visible;text-overflow:clip;font-weight:700;font-variant-numeric:tabular-nums}
.planning-module-planning .route-point-tile-note{display:flex;min-width:0;flex:1 1 auto;align-items:center;gap:2px;overflow:hidden;color:#475569}.route-point-tile-note-marker{display:inline-block;flex:0 0 auto;border-radius:2px;padding:0 2px;font-size:7px;font-weight:900;line-height:1.1}.route-point-tile-note-stars{color:#dc2626}.route-point-tile-note-sent{background:#dc2626;color:#fff}.route-point-tile-note-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planning-module-planning .route-point-tile-remove{box-sizing:border-box;display:flex;width:18px;min-width:18px;max-width:18px;flex:0 0 18px;align-items:center;justify-content:center;padding:0;font-size:13px;line-height:1}

/* TPS route-tile columns: full references and distinct cell boundaries. */
.planning-module-planning .route-point-tile-line-main .route-point-tile-direction-copy,.planning-module-planning .route-point-tile-line-main .route-point-tile-time,.planning-module-planning .route-point-tile-line-load .route-point-tile-ldm,.planning-module-planning .route-point-tile-line-load .route-point-tile-weight,.planning-module-planning .route-point-tile-line-reference .route-point-tile-tms,.planning-module-planning .route-point-tile-line-reference .route-point-tile-note{box-sizing:border-box;border-left:1px solid rgb(100 116 139/.28);padding-left:4px}

/* TPS route-tile compact content corrections; limited to Planning > Planning tiles. */
.planning-module-planning .route-point-tile-line-main .route-point-tile-direction-copy,.planning-module-planning .route-point-tile-line-main .route-point-tile-time,.planning-module-planning .route-point-tile-line-load .route-point-tile-ldm,.planning-module-planning .route-point-tile-line-load .route-point-tile-weight,.planning-module-planning .route-point-tile-line-reference .route-point-tile-tms,.planning-module-planning .route-point-tile-line-reference .route-point-tile-note{box-sizing:border-box;border-left:1px solid rgb(100 116 139/.28);padding-left:4px}.planning-module-planning .route-point-tile-line-main,.planning-module-planning .route-point-tile-line-load{box-sizing:border-box;border-bottom:1px solid rgb(100 116 139/.28)}.planning-module-planning .route-point-tile-trailer{color:#1d4ed8;font-weight:700}.planning-module-planning .route-point-tile-time{width:max-content;min-width:32px;max-width:116px;flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* TPS route-tile content: trailer emphasis and readable time ranges. */
.planning-module-planning .route-point-tile-trailer{color:#1d4ed8;font-weight:700}.planning-module-planning .route-point-tile-time{width:max-content;min-width:32px;max-width:116px;flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* TPS-TEST: driver/resource bar +5px only; route tiles retain their own height. */
/* TPS .007 — komórka kierowcy i pojazdu: dokładnie +5px względem py-0.5 */
.planning-compact.planning-module-planning .grid.items-center.border-t > :nth-child(2){box-sizing:border-box!important;padding-bottom:calc(2px + 5px)!important}

/* 2026.10.14.028: cumulative route tile sizing and separate company hours/FIX. */
.planning-module-planning .route-point-tile-line-main .route-point-tile-company-hours{box-sizing:border-box;flex:0 0 auto;max-width:116px;overflow:hidden;border-left:1px solid rgb(100 116 139/.28);padding-left:4px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.planning-module-planning .route-point-tile-time{box-sizing:border-box;width:max-content;min-width:32px;max-width:116px;flex:0 1 auto;overflow:hidden;border-left:1px solid rgb(100 116 139/.28);padding-left:4px;color:#b91c1c;font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap}

/* 2026.10.14.029: clear inline feedback for warehouse edit saves. */
.warehouse-page .warehouse-save-error{grid-column:1/-1;margin:0 19px 10px;padding:9px 11px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b91c1c;font-size:12px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.planning-module-planning .grid.items-center>:nth-child(5){column-gap:0!important}.planning-module-planning .route-point-tile-company-hours{width:max-content;min-width:max-content;max-width:none;flex:0 0 auto;overflow:visible;border-left:1px solid rgb(100 116 139/.28);padding-left:6px;text-overflow:clip;white-space:nowrap}.planning-module-planning .route-point-tile-time{box-sizing:border-box;width:max-content;min-width:max-content;max-width:none;flex:0 0 auto;overflow:visible;border-left:1px solid rgb(100 116 139/.28);padding-left:6px;color:#b91c1c;font-weight:700;text-align:left;text-overflow:clip;white-space:nowrap}.planning-module-planning .route-point-tile-main{height:auto!important;min-height:50px!important;max-height:none!important;align-items:stretch!important}.planning-module-planning .route-point-tile-content{grid-template-rows:repeat(3,minmax(min-content,auto))!important;height:auto!important}.planning-module-planning .route-point-tile-line-main,.planning-module-planning .route-point-tile-line-load,.planning-module-planning .route-point-tile-line-reference{min-height:15px;height:auto}.planning-module-planning .route-point-tile-city{width:max-content;min-width:max-content;flex:0 0 auto;white-space:nowrap;font-weight:700;color:#173761}.planning-module-planning .route-point-tile-ref{width:max-content;min-width:max-content;flex:0 0 auto;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}.planning-module-planning .route-point-tile-line-reference{align-items:flex-start}.planning-module-planning .route-point-tile-notes{box-sizing:border-box;display:block;width:min(360px,42vw);min-width:0;max-width:min(360px,42vw);flex:0 1 360px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.15}.planning-module-planning .route-point-tile-note-marker{display:inline-block;margin:0 2px;border-radius:2px;background:#fee2e2;padding:0 2px;color:#b91c1c;font-weight:800}.planning-module-planning .grid.items-center>:nth-child(5){column-gap:0!important}
/* TPS .042: enlarge the visible route/drop area; keep horizontal route scrolling. */
.planning-module-planning.planning-compact .grid.items-center > :nth-child(5) {
  box-sizing: border-box !important;
  height: 110px !important;
  min-height: 110px !important;
  max-height: none !important;
  align-self: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* 2026.10.15.045: stable vertical order / direction / flag stack */
.planning-module-planning .route-point-tile-order > .route-point-tile-number{grid-row:1;line-height:1}
.planning-module-planning .route-point-tile-order > .route-point-tile-direction{grid-row:2;line-height:1;white-space:nowrap}
.planning-module-planning .route-point-tile-order > .route-point-tile-flag,.planning-module-planning .route-point-tile-order > .route-point-tile-flag-code{grid-row:3;line-height:1}

/* 2026.10.15.046: planning drop target 60px and route tile 200px */
.planning-module-planning .route-point-tile-main{width:250px!important;min-width:250px!important;max-width:250px!important;box-sizing:border-box!important}
.planning-module-planning .route-point-tile-content{width:100%!important;min-width:0!important;flex:1 1 0!important;box-sizing:border-box!important}
.planning-module-planning .route-point-tile-line{width:100%!important;min-width:0!important;flex-wrap:wrap!important;white-space:normal!important;overflow-wrap:anywhere!important;gap:3px 5px!important}
.planning-module-planning .route-point-tile-postal,.planning-module-planning .route-point-tile-city,.planning-module-planning .route-point-tile-company-hours,.planning-module-planning .route-point-tile-ldm,.planning-module-planning .route-point-tile-weight,.planning-module-planning .route-point-tile-trailer,.planning-module-planning .route-point-tile-time,.planning-module-planning .route-point-tile-tms,.planning-module-planning .route-point-tile-ref{min-width:0!important;max-width:100%!important;flex:0 1 auto!important;white-space:normal!important;overflow-wrap:anywhere!important}
.planning-module-planning .route-point-tile-notes{max-width:100%!important;min-width:0!important;flex:1 1 auto!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
.planning-module-planning.planning-compact .grid.items-center > :nth-child(5){height:70px!important;min-height:70px!important;max-height:none!important;align-self:stretch!important;overflow-x:auto!important;overflow-y:hidden!important}

/* TPS planning route tile: compact accessible city, separate muted business hours, non-overlapping note summary. */
.planning-module-planning .route-point-tile-company-hours{font-size:9px!important;color:#64748b!important;white-space:nowrap!important}.planning-module-planning .route-point-tile-city{white-space:nowrap!important}.planning-module-planning .route-point-tile-city:focus-visible{border-radius:2px;outline:2px solid #60a5fa;outline-offset:1px}.planning-module-planning .route-point-tile-notes{min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}

/* Planning: highlight weekly loads still awaiting assignment. */
.loads-planning-counters{order:7!important;display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;white-space:nowrap}.loads-planning-pending-count{display:inline-flex;flex:0 0 auto;align-items:center;min-height:34px;padding:0 8px;border:1px solid #b9d4f5;border-radius:9px;background:#eff6ff;color:#14549a;font-family:inherit;font-size:12px!important;font-weight:600;line-height:1;white-space:nowrap;box-shadow:0 2px 5px rgb(20 84 154 / 8%)}.loads-planning-pending-count b{margin-left:3px;color:inherit;font-size:inherit;font-weight:750;font-variant-numeric:tabular-nums}

/* TPS .064: keep the active route tile at exactly three non-wrapping data rows. */
.planning-module-planning .route-point-tile-main{box-sizing:border-box!important;width:250px!important;min-width:250px!important;max-width:250px!important;height:50px!important;min-height:50px!important;max-height:50px!important;flex:0 0 250px!important;align-items:stretch!important}
.planning-module-planning .route-point-tile-content{box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;flex:1 1 0!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;overflow:hidden!important;padding:1px 5px!important}
.planning-module-planning .route-point-tile-line{box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;align-items:center!important;align-content:center!important;flex-wrap:nowrap!important;gap:3px 5px!important;overflow-x:auto!important;overflow-y:hidden!important;overflow-wrap:normal!important;white-space:nowrap!important;scrollbar-width:none!important;line-height:1.05!important}
.planning-module-planning .route-point-tile-line::-webkit-scrollbar{display:none!important}
.planning-module-planning .route-point-tile-postal,.planning-module-planning .route-point-tile-city,.planning-module-planning .route-point-tile-company-hours,.planning-module-planning .route-point-tile-ldm,.planning-module-planning .route-point-tile-weight,.planning-module-planning .route-point-tile-trailer,.planning-module-planning .route-point-tile-time,.planning-module-planning .route-point-tile-ref,.planning-module-planning .route-point-tile-tms{box-sizing:border-box!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important;overflow-wrap:normal!important;text-overflow:clip!important;white-space:nowrap!important}
.planning-module-planning .route-point-tile-notes{box-sizing:border-box!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important;overflow-wrap:normal!important;text-overflow:clip!important;white-space:nowrap!important}
.planning-module-planning .route-point-tile-company-hours{flex:0 0 auto!important;color:#64748b!important;font-size:9px!important;white-space:nowrap!important}

.planning-module-planning .route-point-tile-main{border-radius:3px}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup{background-color:#f0fdf4;border-color:#bbf7d0;color:#14532d}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading{background-color:#fef2f2;border-color:#fecaca;color:#7f1d1d}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order{background-color:inherit}


/* TPS planning compact route drop area 010 */
.planning-module-planning.planning-compact > .planning-column-header,
.planning-module-planning.planning-compact .grid.items-center {
  grid-template-columns: 42px 285px 68px 46px 300px max-content max-content !important;
}

/* TPS .013 — wysoki kontrast tekstu kafelków na pastelowych statusach */
.planning-module-planning .route-point-tile-main.route-point-tile-pickup,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading { color: #111827 !important; }
.planning-module-planning .route-point-tile-main .route-point-tile-direction,
.planning-module-planning .route-point-tile-main .route-point-tile-flag-code,
.planning-module-planning .route-point-tile-main .route-point-tile-postal,
.planning-module-planning .route-point-tile-main .route-point-tile-city,
.planning-module-planning .route-point-tile-main .route-point-tile-ldm,
.planning-module-planning .route-point-tile-main .route-point-tile-weight,
.planning-module-planning .route-point-tile-main .route-point-tile-ref,
.planning-module-planning .route-point-tile-main .route-point-tile-tms,
.planning-module-planning .route-point-tile-main .route-point-tile-notes { color: #111827 !important; }
.planning-module-planning .route-point-tile-main .route-point-tile-company-hours { color: #64748b !important; }
.planning-module-planning .route-point-tile-main .route-point-tile-trailer { color: #1d4ed8 !important; }
.planning-module-planning .route-point-tile-main .route-point-tile-time,
.planning-module-planning .route-point-tile-main .route-point-tile-note-marker { color: #b91c1c !important; }

/* TPS .013 — prawidłowa szerokość kolumny kierowcy i pełne pole naczepy.
   Poprzednia reguła 50% zwężała wyszukiwarkę kierowcy, zostawiając pustą połowę kolumny.
   Szerokość pola naczepy uwzględnia numer i kompaktowy status; dodatkowe naczepy zawijają się wewnątrz kolumny. */
.planning-module-planning.planning-compact .grid.items-center > :nth-child(2) > div > div:first-child > .relative { box-sizing:border-box; flex:1 1 0% !important; width:100% !important; max-width:none !important; min-width:0 !important; }
.planning-module-planning.planning-compact .grid.items-center > :nth-child(2) > div > div:first-child > span[title] { flex:0 1 auto !important; min-width:0 !important; max-width:100% !important; overflow-wrap:anywhere; white-space:normal; }
.planning-module-planning.planning-compact .planning-trailer-field { box-sizing:border-box; width:148px !important; min-width:148px !important; max-width:148px !important; gap:3px; }
.planning-module-planning.planning-compact .planning-trailer-field > .relative { box-sizing:border-box; flex:1 1 0%; width:0; min-width:54px; }
.planning-module-planning.planning-compact .planning-trailer-field > [data-trailer-id] { box-sizing:border-box; flex:0 0 auto; min-width:0; max-width:88px !important; white-space:normal !important; overflow-wrap:anywhere; }

/* TPS .014 — shift START and switch controls left without shrinking driver or vehicle fields. */
section.planning-compact.planning-module-planning[class*="daily-view-"] > div.grid:nth-child(2) > :nth-child(3),
section.planning-compact.planning-module-planning[class*="daily-view-"] > div.grid:nth-child(2) > :nth-child(4),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(3),
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(4) { transform: translateX(-4px) !important; }

/* TPS .015 — fixed-width primary trailer input for the full 13-character registration. */
.planning-module-planning [class~="w-[148px]"] > .relative { box-sizing: border-box; width: 95px !important; min-width: 95px !important; max-width: 95px !important; flex: 0 0 95px !important; }
.planning-module-planning [class~="w-[148px]"] > [data-trailer-id] { box-sizing: border-box; width: 36px !important; min-width: 36px !important; max-width: 36px !important; flex: 0 0 36px !important; }

/* TPS .016 — fixed 104px primary trailer input for the full 13-character registration. */
.planning-module-planning [class~="w-[148px]"] > .relative { box-sizing: border-box; width: 104px !important; min-width: 104px !important; max-width: 104px !important; flex: 0 0 104px !important; }
.planning-module-planning [class~="w-[148px]"] > [data-trailer-id] { box-sizing: border-box; width: 36px !important; min-width: 36px !important; max-width: 36px !important; flex: 0 0 36px !important; }

/* TPS .017 — ID-matched trailer status below field; keep status independent from the 104px input width. */
.planning-module-planning [class~="w-[148px]"] > [data-trailer-id] { box-sizing: border-box; width: auto !important; min-width: 0 !important; max-width: 148px !important; margin-left: 0 !important; flex: 0 1 auto !important; }

/* TPS .018 — width only; no forced vertical flex basis for stacked status layout. */
.planning-module-planning [class~="w-[148px]"] > .relative { flex: 0 0 auto !important; }

/* TPS .019 — PL/ALL follows driver field in the compact driver/start group. */
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Kierowca PL"]) > :first-child,
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Wszyscy kierowcy"]) > :first-child { order: 1 !important; }
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Kierowca PL"]) > button,
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Wszyscy kierowcy"]) > button { order: 2 !important; }

/* TPS .020 — halve the measured 196.92px driver selector while preserving adjacent controls. */
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Kierowca PL"]) > :first-child,
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Wszyscy kierowcy"]) > :first-child { flex: 0 0 98.46px !important; width: 98.46px !important; min-width: 0 !important; max-width: none !important; }

/* TPS .021 — 109.42 CSS px renders as 98.46px at the app's measured 90% zoom. */
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Kierowca PL"]) > :first-child,
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Wszyscy kierowcy"]) > :first-child { flex: 0 0 109.42px !important; width: 109.42px !important; min-width: 0 !important; max-width: none !important; }

/* TPS .022 — driver selector plus 10 rendered px */
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Kierowca PL"]) > :first-child,
.planning-compact .flex.min-w-0.items-center.gap-1:has(input[placeholder="Wszyscy kierowcy"]) > :first-child { flex: 0 0 120.52px !important; width: 120.52px !important; min-width: 0 !important; max-width: none !important; }

/* TPS .023 — align driver controls to header tracks */
.planning-module-planning.planning-compact .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t { grid-template-columns: 42px 220px 94px 46px minmax(0,1fr) 150px 112px !important; }
/* The trailer input remains 104px; remove only unused width reserved around it. */
.planning-module-planning [class~="w-[148px]"] { box-sizing: border-box !important; width: 116px !important; min-width: 116px !important; max-width: 116px !important; flex: 0 0 116px !important; }

/* TPS .024 — win the planning row grid cascade */
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t { grid-template-columns: 42px 220px 94px 46px minmax(0,1fr) 150px 112px !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-trailer-field { box-sizing: border-box !important; width: 116px !important; min-width: 116px !important; max-width: 116px !important; flex: 0 0 116px !important; }

/* TPS .025 — start time above horizontal checkbox pair */
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > div:nth-child(3) { grid-column: 3 !important; grid-row: 1 !important; align-self: start !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > div:nth-child(4) { grid-column: 3 !important; grid-row: 2 !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 2px !important; padding: 0 1px !important; }

/* TPS .026 — target the live driver row directly; .025 ancestor path did not match */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(3) { grid-column: 3 !important; grid-row: 1 !important; align-self: start !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4) { grid-column: 3 !important; grid-row: 2 !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 2px !important; padding: 0 1px !important; }

/* TPS .027 — compact checkbox row directly below start without growing driver rows */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(3) { grid-column: 3 !important; grid-row: 1 !important; align-self: start !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4) { grid-column: 3 !important; grid-row: 1 !important; align-self: start !important; transform: translateY(22px) !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 2px !important; padding: 0 1px !important; }

/* TPS .028 — live night-shift status directly under the checkbox pair; communication controls stay separate */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) { position: relative !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"])::after { content: "Nocka: wyłączona"; position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px; display: block; overflow: visible; white-space: nowrap; text-align: center; pointer-events: none; border-radius: 9999px; background: #f1f5f9; color: #475569; font-size: 8px; font-weight: 600; line-height: 10px; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]:checked)::after { content: "Nocka: aktywna"; background: #ede9fe; color: #6d28d9; }

/* TPS .029 — move the actual continuation marker below the checkbox pair; no checkbox yes/no label */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"])::after { content: none !important; display: none !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span)::after { content: none !important; display: none !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span { position: absolute !important; top: calc(100% + 1px) !important; left: 0 !important; right: 0 !important; width: auto !important; min-width: 0 !important; height: 10px !important; margin: 0 !important; display: block !important; overflow: visible !important; white-space: nowrap !important; text-align: center !important; text-transform: capitalize !important; pointer-events: none !important; border-radius: 9999px !important; background: #ede9fe !important; color: #6d28d9 !important; font-size: 8px !important; font-weight: 700 !important; line-height: 10px !important; }

/* TPS .030 — show the actual data-driven continuation marker with exact casing */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span)::after { content: none !important; display: none !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span { position: absolute !important; top: calc(100% + 1px) !important; left: 0 !important; right: 0 !important; width: auto !important; min-width: 0 !important; height: 10px !important; margin: 0 !important; display: block !important; overflow: visible !important; white-space: nowrap !important; text-align: center !important; font-size: 0 !important; line-height: 10px !important; pointer-events: none !important; border-radius: 9999px !important; background: #ede9fe !important; color: #6d28d9 !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span::after { content: "Kontynuacja" !important; display: block !important; font-size: 8px !important; font-weight: 700 !important; line-height: 10px !important; }


/* A real, draggable overlay scrollbar for the horizontally scrolling route.
   The native bar is hidden without changing the viewport's size or tile alignment. */
.planning-module-planning .grid.items-center.border-t { position: relative; }
.planning-module-planning .grid.items-center.border-t > :nth-child(5) {
  scrollbar-width: none !important;
}
.planning-module-planning .grid.items-center.border-t > :nth-child(5)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.planning-module-planning .planning-route-scrollbar {
  position: absolute !important;
  z-index: 30 !important;
  box-sizing: border-box !important;
  height: 10px !important;
  min-height: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  appearance: none !important;
  background: transparent !important;
  opacity: .86;
  cursor: grab;
  touch-action: none;
}
.planning-module-planning .planning-route-scrollbar:active { cursor: grabbing; opacity: 1; }
.planning-module-planning .planning-route-scrollbar:focus-visible {
  outline: 2px solid rgb(59 130 246 / 72%);
  outline-offset: 1px;
  border-radius: 999px;
}
.planning-module-planning .planning-route-scrollbar::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid rgb(100 116 139 / 32%);
  border-radius: 999px;
  background: rgb(148 163 184 / 26%);
}
.planning-module-planning .planning-route-scrollbar::-webkit-slider-thumb {
  width: var(--planning-route-thumb-width, 24px);
  height: 6px;
  margin-top: -1.5px;
  appearance: none;
  border: 1px solid rgb(71 85 105 / 48%);
  border-radius: 999px;
  background: rgb(71 85 105 / 66%);
}
.planning-module-planning .planning-route-scrollbar::-moz-range-track {
  height: 5px;
  border: 1px solid rgb(100 116 139 / 32%);
  border-radius: 999px;
  background: rgb(148 163 184 / 26%);
}
.planning-module-planning .planning-route-scrollbar::-moz-range-thumb {
  width: var(--planning-route-thumb-width, 24px);
  height: 6px;
  border: 1px solid rgb(71 85 105 / 48%);
  border-radius: 999px;
  background: rgb(71 85 105 / 66%);
}


/* Keep the native route scroll viewport unchanged; the range control overlays its lower edge. */
.planning-module-planning .planning-route-scrollbar { touch-action: none; }

/* TPS .033 — render the real continuation marker; remove the generated pseudo-label and empty badge strip */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) { display: grid !important; grid-template-columns: 36px 36px !important; grid-template-rows: 24px !important; column-gap: 2px !important; row-gap: 0 !important; align-items: center !important; align-content: center !important; justify-content: center !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) > label:first-child { grid-column: 1 !important; grid-row: 1 !important; width: 36px !important; height: 24px !important; margin: 0 !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) > label:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; width: 36px !important; height: 24px !important; margin: 0 !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) { grid-template-rows: 24px 10px !important; row-gap: 0 !important; transform: translateY(6px) !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span { position: static !important; inset: auto !important; grid-column: 1 / 3 !important; grid-row: 2 !important; justify-self: center !important; display: block !important; box-sizing: border-box !important; width: auto !important; min-width: 0 !important; height: 10px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; white-space: nowrap !important; text-align: center !important; text-transform: capitalize !important; pointer-events: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #6d28d9 !important; font-size: 8px !important; font-weight: 700 !important; line-height: 10px !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span::before, section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span::after { content: none !important; display: none !important; }

/* TPS .034 — clear vertical order beneath start time without growing the driver row */
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) { display: grid !important; grid-template-columns: 36px 36px !important; grid-template-rows: 24px !important; column-gap: 2px !important; row-gap: 0 !important; align-items: center !important; align-content: center !important; justify-content: center !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) > label:first-child { grid-column: 1 !important; grid-row: 1 !important; width: 36px !important; height: 24px !important; margin: 0 !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> label:first-child > input[type="checkbox"]) > label:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; width: 36px !important; height: 24px !important; margin: 0 !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) { grid-template-rows: 24px 10px !important; row-gap: 0 !important; transform: translateY(18px) !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span { position: static !important; inset: auto !important; grid-column: 1 / 3 !important; grid-row: 2 !important; justify-self: center !important; display: block !important; box-sizing: border-box !important; width: auto !important; min-width: 0 !important; height: 10px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; white-space: nowrap !important; text-align: center !important; text-transform: capitalize !important; pointer-events: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #6d28d9 !important; font-size: 8px !important; font-weight: 700 !important; line-height: 10px !important; }
section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span::before, section.planning-compact.planning-module-planning[class*="daily-view-"] .relative.tps-week-search-result > .grid.items-center.border-t.grid.grid.grid.grid > div:nth-child(4):has(> span) > span::after { content: none !important; display: none !important; }

/* .035: dedicated trailer-status column between PL/ALL and START. */
.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 285px 180px 74px 42px minmax(0,1fr) 122px 104px!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(6){position:static!important;grid-column:6!important;grid-row:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;justify-self:stretch!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(1){grid-column:1!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(2){grid-column:2!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(3){grid-column:3!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(4){grid-column:4!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(5){grid-column:5!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(7){position:static!important;grid-column:7!important;grid-row:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:122px!important;min-width:122px!important;margin:3px 0!important;justify-self:stretch!important}.planning-compact.planning-module-planning .grid.items-center>:nth-child(8){position:static!important;grid-column:8!important;grid-row:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:104px!important;min-width:104px!important;margin:3px 0!important;justify-self:stretch!important}.planning-compact.planning-module-planning .planning-trailer-status-slot{align-self:center;overflow:visible}.planning-compact.planning-module-planning .planning-trailer-status-slot>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:1100px){.planning-compact.planning-module-planning .grid.items-center,.planning-compact.planning-module-planning>.grid{grid-template-columns:34px 245px 156px 68px 42px minmax(180px,1fr) 116px 104px!important}}
/* .036: independent columns for trailer status and START; override legacy injected planning grids. */
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t{box-sizing:border-box!important;width:max(100%,1072px)!important;min-width:1072px!important;grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 130px 104px!important;column-gap:0!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(1){grid-column:1!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(2){grid-column:2!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(3){grid-column:3!important;grid-row:1!important;align-self:start!important;width:130px!important;min-width:130px!important;max-width:130px!important;overflow:visible!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>.planning-start-time-slot{grid-column:4!important;grid-row:1!important;position:static!important;align-self:start!important;width:74px!important;min-width:74px!important;max-width:74px!important;margin:0!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(5){grid-column:5!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(6){grid-column:6!important;position:static!important;width:auto!important;min-width:0!important;grid-row:auto!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(7){grid-column:7!important;position:static!important;width:130px!important;min-width:130px!important;grid-row:auto!important}html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(8){grid-column:8!important;position:static!important;width:104px!important;min-width:104px!important;grid-row:auto!important}html body #root .planning-trailer-status-slot{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;align-self:start!important;white-space:nowrap!important;overflow:visible!important}html body #root .planning-trailer-status-slot>span{max-width:128px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}html body #root section.planning-compact.planning-module-planning>.planning-column-header{width:max(100%,1072px)!important;min-width:1072px!important;grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 130px 104px!important}

/* TPS .037 — restore the live planning row after the trailer-status column was inserted.
   The old injected rules still assumed seven children and a route in slot 5. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 190px 104px 64px 78px minmax(160px, 1fr) 110px 74px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.bg-\[\#f8fafc\] > :nth-child(7) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; width: auto !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; width: auto !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; width: auto !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; width: 78px !important; min-width: 78px !important; max-width: 78px !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5):has(> label:first-child > input[type="checkbox"]) { display: grid !important; grid-template-columns: 36px 36px !important; grid-template-rows: 24px 10px !important; column-gap: 2px !important; row-gap: 0 !important; align-content: center !important; justify-content: center !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:first-child { grid-column: 1 !important; grid-row: 1 !important; width: 36px !important; margin: 0 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; width: 36px !important; margin: 0 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > span { grid-column: 1 / 3 !important; grid-row: 2 !important; justify-self: center !important; width: auto !important; height: 10px !important; margin: 0 !important; position: static !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-flow: row nowrap !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  align-self: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  scrollbar-gutter: auto !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6)::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; width: 110px !important; min-width: 110px !important; max-width: 110px !important; margin: 0 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; width: 74px !important; min-width: 74px !important; max-width: 74px !important; margin: 0 !important; }
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-route-scrollbar { z-index: 30 !important; }



/* TPS .038 — place the driver controls below START and keep the route slider
   out of the CSS grid flow. The previous blanket grid-row/position reset also
   affected the injected scrollbar, creating an implicit ninth track. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  position: relative !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) {
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: end !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) {
  grid-column: 4 / 6 !important;
  grid-row: 2 !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  justify-self: start !important;
  align-self: start !important;
  padding-top: 0 !important;
  padding-bottom: 2px !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > .planning-route-scrollbar {
  position: absolute !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  z-index: 30 !important;
  max-width: none !important;
}



/* TPS .038 — place the driver controls below START and keep the route slider
   out of the CSS grid flow. The previous blanket grid-row/position reset also
   affected the injected scrollbar, creating an implicit ninth track. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  position: relative !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) {
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: end !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) {
  display: grid !important;
  grid-template-columns: 36px 36px !important;
  grid-template-rows: 22px 10px !important;
  grid-column: 4 / 6 !important;
  grid-row: 1 !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  justify-self: start !important;
  align-self: end !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  align-content: start !important;
  justify-content: start !important;
  column-gap: 2px !important;
  row-gap: 0 !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 2px !important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > .planning-route-scrollbar {
  position: absolute !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  z-index: 30 !important;
  max-width: none !important;
}



/* TPS .040 — keep the clock above the checkbox pair and preserve the overlay
   coordinates against legacy !important inset resets. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) {
  align-self: start !important;
}



/* TPS .041 — remove the inline 1120px result floor so the right-side actions
   remain in the viewport; the route receives only the actual free width. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}


/* TPS .047 — stable driver row layout */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  display:grid!important; box-sizing:border-box!important; position:relative!important;
  grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  grid-template-rows:minmax(54px,auto)!important; column-gap:3px!important; row-gap:0!important;
  width:100%!important; min-width:765px!important; align-items:center!important; overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header {
  display:grid!important; box-sizing:border-box!important; grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  gap:3px!important; width:100%!important; min-width:765px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(2){grid-column:2 / 4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(3){grid-column:4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(4){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(5){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(6){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1){grid-column:1!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){grid-column:3!important;grid-row:1!important;align-self:center!important;min-width:0!important;max-width:124px!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) .font-mono{display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4){grid-column:4!important;grid-row:1!important;align-self:start!important;width:76px!important;min-width:76px!important;max-width:76px!important;padding-top:3px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5){display:grid!important;grid-column:4!important;grid-row:1!important;align-self:end!important;justify-self:start!important;grid-template-columns:36px 36px!important;grid-template-rows:24px 10px!important;column-gap:2px!important;row-gap:0!important;width:74px!important;min-width:74px!important;max-width:74px!important;height:34px!important;min-height:34px!important;max-height:34px!important;align-content:end!important;justify-content:start!important;overflow:visible!important;padding:0 0 1px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:first-child{grid-column:1!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:nth-child(2){grid-column:2!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > span{grid-column:1/3!important;grid-row:2!important;justify-self:center!important;width:auto!important;height:10px!important;margin:0!important;position:static!important;white-space:nowrap!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6){grid-column:5!important;grid-row:1!important;display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;min-width:0!important;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7){grid-column:6!important;grid-row:1!important;width:142px!important;min-width:142px!important;max-width:142px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8){grid-column:7!important;grid-row:1!important;width:108px!important;min-width:108px!important;max-width:108px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions{display:grid!important;box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;height:42px!important;grid-template-columns:42px 56px!important;grid-template-rows:20px 20px!important;gap:2px!important;margin:0!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(2){grid-column:2!important;grid-row:1/3!important;height:42px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(3){grid-column:1!important;grid-row:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-route-scrollbar{position:absolute!important;z-index:30!important;grid-column:1!important;grid-row:1!important;inset:auto!important;transform:none!important;max-width:none!important}
@media(max-width:1000px){html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result{overflow-x:auto!important}html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header{min-width:765px!important}}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .048 — driver row visual and status correction */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  display:grid!important; box-sizing:border-box!important; position:relative!important;
  grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  grid-template-rows:minmax(54px,auto)!important; column-gap:3px!important; row-gap:0!important;
  width:100%!important; min-width:765px!important; align-items:center!important; overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] {
  display:grid!important; box-sizing:border-box!important; grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  gap:3px!important; width:100%!important; min-width:765px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(2){grid-column:2 / 4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(3){grid-column:4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(4){display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(5){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(6){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(7){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1){grid-column:1!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){grid-column:3!important;grid-row:1!important;align-self:start!important;padding-top:3px!important;min-width:0!important;max-width:124px!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) .font-mono{display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4){grid-column:4!important;grid-row:1!important;align-self:start!important;width:76px!important;min-width:76px!important;max-width:76px!important;padding-top:3px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5){display:grid!important;grid-column:4!important;grid-row:1!important;align-self:end!important;justify-self:start!important;grid-template-columns:36px 36px!important;grid-template-rows:24px 10px!important;column-gap:2px!important;row-gap:0!important;width:74px!important;min-width:74px!important;max-width:74px!important;height:34px!important;min-height:34px!important;max-height:34px!important;align-content:end!important;justify-content:start!important;overflow:visible!important;padding:0 0 1px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:first-child{grid-column:1!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:nth-child(2){grid-column:2!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > span{grid-column:1/3!important;grid-row:2!important;justify-self:center!important;width:auto!important;height:10px!important;margin:0!important;position:static!important;white-space:nowrap!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6){grid-column:5!important;grid-row:1!important;display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;min-width:0!important;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7){grid-column:6!important;grid-row:1!important;width:142px!important;min-width:142px!important;max-width:142px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8){grid-column:7!important;grid-row:1!important;width:108px!important;min-width:108px!important;max-width:108px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions{display:grid!important;box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;height:42px!important;grid-template-columns:42px 56px!important;grid-template-rows:20px 20px!important;gap:2px!important;margin:0!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(2){grid-column:2!important;grid-row:1/3!important;height:42px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(3){grid-column:1!important;grid-row:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-route-scrollbar{position:absolute!important;z-index:30!important;grid-column:1!important;grid-row:1!important;inset:auto!important;transform:none!important;max-width:none!important}
@media(max-width:1000px){html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result{overflow-x:auto!important}html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"]{min-width:765px!important}}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .050 — driver row visual, status and action layout correction */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  display:grid!important; box-sizing:border-box!important; position:relative!important;
  grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  grid-template-rows:minmax(54px,auto)!important; column-gap:3px!important; row-gap:0!important;
  width:100%!important; min-width:765px!important; align-items:center!important; overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] {
  display:grid!important; box-sizing:border-box!important; grid-template-columns:34px 240px 124px 76px minmax(160px,1fr) 142px 108px!important;
  gap:3px!important; width:100%!important; min-width:765px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(2){grid-column:2 / 4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(3){grid-column:4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(4){display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(5){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(6){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(7){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1){grid-column:1!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){grid-column:3!important;grid-row:1!important;align-self:start!important;padding-top:3px!important;min-width:0!important;max-width:124px!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) .font-mono{display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4){grid-column:4!important;grid-row:1!important;align-self:start!important;width:76px!important;min-width:76px!important;max-width:76px!important;padding-top:3px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5){display:grid!important;grid-column:4!important;grid-row:1!important;align-self:end!important;justify-self:start!important;grid-template-columns:36px 36px!important;grid-template-rows:24px 10px!important;column-gap:2px!important;row-gap:0!important;width:74px!important;min-width:74px!important;max-width:74px!important;height:34px!important;min-height:34px!important;max-height:34px!important;align-content:end!important;justify-content:start!important;overflow:visible!important;padding:0 0 1px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:first-child{grid-column:1!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > label:nth-child(2){grid-column:2!important;grid-row:1!important;width:36px!important;margin:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) > span{grid-column:1/3!important;grid-row:2!important;justify-self:center!important;width:auto!important;height:10px!important;margin:0!important;position:static!important;white-space:nowrap!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6){grid-column:5!important;grid-row:1!important;display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;min-width:0!important;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7){grid-column:6!important;grid-row:1!important;width:142px!important;min-width:142px!important;max-width:142px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8){grid-column:7!important;grid-row:1!important;width:108px!important;min-width:108px!important;max-width:108px!important;margin:0!important;justify-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions{display:grid!important;box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;height:42px!important;grid-template-columns:42px 56px!important;grid-template-rows:20px 20px!important;gap:2px!important;margin:0!important;align-self:center!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(1){grid-column:1!important;grid-row:1!important;display:inline-flex!important;box-sizing:border-box!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:20px!important;min-height:20px!important;max-height:20px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(2){grid-column:2!important;grid-row:1/3!important;display:inline-flex!important;box-sizing:border-box!important;width:56px!important;min-width:56px!important;max-width:56px!important;height:42px!important;min-height:42px!important;max-height:42px!important;align-self:stretch!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planner-execution-permissions>button:nth-child(3){grid-column:1!important;grid-row:2!important;display:inline-flex!important;box-sizing:border-box!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:20px!important;min-height:20px!important;max-height:20px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-route-scrollbar{position:absolute!important;z-index:30!important;grid-column:1!important;grid-row:1!important;inset:auto!important;transform:none!important;max-width:none!important}
@media(max-width:1000px){html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result{overflow-x:auto!important}html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"]{min-width:765px!important}}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .054 — compact driver columns and trailer status beside PL */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns:34px 240px 76px minmax(160px,1fr) 142px 108px!important;
  column-gap:3px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] {
  grid-template-columns:34px 240px 76px minmax(160px,1fr) 142px 108px!important;
  column-gap:3px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(2){grid-column:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(3){grid-column:3!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(5){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > div[class~="tracking-wide"] > :nth-child(6){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){
  position:absolute!important; z-index:5!important; left:168px!important; top:2px!important;
  display:flex!important; flex-flow:row nowrap!important; align-items:center!important; justify-content:flex-start!important;
  box-sizing:border-box!important; width:max-content!important; min-width:0!important; max-width:80px!important;
  margin:0!important; padding:0!important; overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) > *{
  box-sizing:border-box!important; min-width:0!important; max-width:80px!important; white-space:nowrap!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4){
  grid-column:3!important; grid-row:1!important; width:76px!important; min-width:76px!important; max-width:76px!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5){grid-column:3!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6){grid-column:4!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7){grid-column:5!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8){grid-column:6!important;grid-row:1!important}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .056 — anchor trailer status beside the PL marker */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){
  grid-column:2!important; left:132px!important; top:2px!important; z-index:6!important;
}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .057 — anchor trailer status after the PL marker */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){
  grid-column:2!important; left:146px!important; top:2px!important; z-index:6!important;
}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
/* TPS .058 — align trailer status after the PL marker */

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3){
  grid-column:2!important; left:148px!important; top:2px!important; z-index:6!important;
}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  

/* TPS daily-plan layout repair: the active daily-plan bundle renders eight row
   cells (index, resources, trailer status, start, checkboxes, route, utilization,
   actions). Older daily-view overrides still forced seven tracks, which moved
   the route/actions into the wrong columns and left a large blank lane. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 140px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}


/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 44px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 68px !important;
  height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 44px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 76px !important;
  height: 76px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 76px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 76px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}

/* TPS .006 — compact and readable daily-plan utilization. The former 128px
   track displayed the read-only primary line at 14px and clipped all lines at
   the panel edge. Use a narrower track and wrap the existing four metrics
   within it; this does not change row height when the route has more stops. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > b {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > small {
  display: block !important;
  font-size: 7px !important;
  line-height: 9px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}

/* TPS .006 — compact and readable daily-plan utilization. The former 128px
   track displayed the read-only primary line at 14px and clipped all lines at
   the panel edge. Use a narrower track and wrap the existing four metrics
   within it; this does not change row height when the route has more stops. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > b {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > small {
  display: block !important;
  font-size: 7px !important;
  line-height: 9px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* TPS .007 — the installed daily-plan renderer is an older eight-cell grid;
   its utilization cell has no planning-row-utilization class, and its header
   has no planning-column-header class. Bind the fix to the active DOM itself. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* TPS .008 — final cascade correction: this block must remain after legacy
   responsive rules so the header and active eight-cell driver rows share the
   exact same tracks, and the seventh (classless) cell can wrap its metrics. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 / 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}

/* TPS .006 — compact and readable daily-plan utilization. The former 128px
   track displayed the read-only primary line at 14px and clipped all lines at
   the panel edge. Use a narrower track and wrap the existing four metrics
   within it; this does not change row height when the route has more stops. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > b {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > small {
  display: block !important;
  font-size: 7px !important;
  line-height: 9px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}


/* TPS .009 — keep the daily-plan header and all driver rows on the same
   responsive canvas. Earlier mobile rules widened only the rows, leaving the
   header at viewport width and shifting the utilization/actions columns. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    overflow-x: visible !important;
  }
}

/* TPS .007 — the installed daily-plan renderer is an older eight-cell grid;
   its utilization cell has no planning-row-utilization class, and its header
   has no planning-column-header class. Bind the fix to the active DOM itself. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* TPS .010 — override the legacy narrow-screen grid tracks as well as the
   canvas width so header labels stay on the exact same columns as each row. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
}

/* TPS .007 — the installed daily-plan renderer is an older eight-cell grid;
   its utilization cell has no planning-row-utilization class, and its header
   has no planning-column-header class. Bind the fix to the active DOM itself. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* TPS .011 — final mobile breakpoint repair; keep the header tracks in sync
   with row tracks after the legacy daily-plan media query. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
    column-gap: 0 !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    overflow-x: visible !important;
  }
}

/* TPS .008 — final cascade correction: this block must remain after legacy
   responsive rules so the header and active eight-cell driver rows share the
   exact same tracks, and the seventh (classless) cell can wrap its metrics. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 / 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}

/* TPS .006 — compact and readable daily-plan utilization. The former 128px
   track displayed the read-only primary line at 14px and clipped all lines at
   the panel edge. Use a narrower track and wrap the existing four metrics
   within it; this does not change row height when the route has more stops. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > b {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .planning-row-utilization > span > small {
  display: block !important;
  font-size: 7px !important;
  line-height: 9px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* TPS .009 — keep the daily-plan header and all driver rows on the same
   responsive canvas. Earlier mobile rules widened only the rows, leaving the
   header at viewport width and shifting the utilization/actions columns. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    overflow-x: visible !important;
  }
}

/* TPS .010 — override the legacy narrow-screen grid tracks as well as the
   canvas width so header labels stay on the exact same columns as each row. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
}

/* TPS .007 — the installed daily-plan renderer is an older eight-cell grid;
   its utilization cell has no planning-row-utilization class, and its header
   has no planning-column-header class. Bind the fix to the active DOM itself. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}

/* Daily plan layout repair: PlanningRow renders six cells (index, resources,
   controls, route, utilization, actions). Earlier eight-track overrides left
   two empty tracks between controls and route and let tile SVGs expand rows. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 34px 230px 150px minmax(240px, 1fr) 128px 62px !important;
  column-gap: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; min-width: 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; min-width: 0 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  grid-column: 4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; width: 124px !important; min-width: 0 !important; max-width: 124px !important; font-size: 9px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  grid-column: 6 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 58px !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 60px !important;
  margin: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row { min-height: 72px !important; }

/* Daily view shares RoutePointChip with weekly planning. Give it the same
   compact three-line geometry so metric SVGs cannot impose their 100px default. */
.planning-module-daily .route-point-tile-main {
  box-sizing: border-box !important;
  display: flex !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup { background: #f0fdf4 !important; border-color: #86efac !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #111827 !important; }
.planning-module-daily .route-point-tile-order {
  box-sizing: border-box !important;
  display: grid !important;
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  grid-template-rows: 16px 14px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}
.planning-module-daily .route-point-tile-main.route-point-tile-pickup .route-point-tile-order { background: #dcfce7 !important; box-shadow: inset 3px 0 #22c55e !important; color: #166534 !important; }
.planning-module-daily .route-point-tile-main.route-point-tile-unloading .route-point-tile-order { background: #fee2e2 !important; box-shadow: inset 3px 0 #ef4444 !important; color: #991b1b !important; }
.planning-module-daily .route-point-tile-content {
  box-sizing: border-box !important;
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  padding: 1px 4px !important;
}
.planning-module-daily .route-point-tile-line {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px 4px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgb(100 116 139 / 22%) !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.planning-module-daily .route-point-tile-line:last-child { border-bottom: 0 !important; }
.planning-module-daily .route-point-tile-postal,
.planning-module-daily .route-point-tile-city,
.planning-module-daily .route-point-tile-company-hours,
.planning-module-daily .route-point-tile-ldm,
.planning-module-daily .route-point-tile-weight,
.planning-module-daily .route-point-tile-trailer,
.planning-module-daily .route-point-tile-time,
.planning-module-daily .route-point-tile-ref,
.planning-module-daily .route-point-tile-tms,
.planning-module-daily .route-point-tile-notes {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.planning-module-daily .route-point-tile-company-hours { color: #64748b !important; font-size: 7px !important; }
.planning-module-daily .route-point-tile-trailer { color: #1d4ed8 !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-time { color: #b91c1c !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-separated { border-left: 1px solid rgb(100 116 139 / 30%) !important; padding-left: 3px !important; }
.planning-module-daily .route-point-tile-metric { display: inline-flex !important; min-width: 0 !important; flex: 0 1 auto !important; align-items: center !important; gap: 2px !important; font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
.planning-module-daily .route-point-tile-metric-icon { display: block !important; width: 10px !important; height: 10px !important; min-width: 10px !important; flex: 0 0 10px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.35 !important; stroke-linecap: round !important; stroke-linejoin: round !important; color: #475569 !important; }
.planning-module-daily .route-point-tile-notes { flex: 1 1 auto !important; }
.planning-module-daily .route-point-tile-note-marker { color: #b91c1c !important; font-weight: 800 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .planning-driver-row {
    width: max(100%, 1160px) !important;
    min-width: 1160px !important;
    grid-template-columns: 34px 230px 150px minmax(300px, 1fr) 128px 62px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1160px !important; min-width: 1160px !important; }
}

/* TPS route tile metrics (.067): compact accessible pictograms and consistent dividers. */
.planning-module-planning .route-point-tile-separated {
  box-sizing: border-box;
  border-left: 1px solid rgb(100 116 139 / 35%);
  padding-left: 5px;
}
.planning-module-planning .route-point-tile-metric {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.planning-module-planning .route-point-tile-metric-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

/* The source variant uses six semantic cells; keep it in the same compact
   left-to-right order without inheriting the active bundle's legacy tracks. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
  display: grid !important;
  grid-template-columns: 32px 240px 148px minmax(160px, 1fr) 144px 112px !important;
  gap: 3px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-index { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-controls { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route { grid-column: 4 !important; min-width: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions { grid-column: 6 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > .planning-column-header,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row {
    grid-template-columns: 30px 198px 132px minmax(90px, 1fr) 132px 98px !important;
    gap: 2px !important;
  }
}

/* Plan dzienny aktywnego wydania ma starszą strukturę ośmiu komórek:
   LP, zasoby, status, start, nocka, trasa, wykorzystanie, akcje.
   Poprzednie style dotyczyły nowszego PlanningRow i nie trafiały w ten DOM. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 34px 184px 82px 56px 46px minmax(240px, 1fr) 120px 68px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\]::before {
  content: "Nocka" !important;
  grid-column: 5 !important;
  align-self: center !important;
  padding: 8px 2px !important;
  color: #94a3b8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 80px !important;
  height: auto !important;
  align-items: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  place-self: center stretch !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  display: flex !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: calc(100% - 8px) !important;
  margin: 4px 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 2px !important;
  gap: 2px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t,
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result {
    width: max(100%, 1030px) !important;
    min-width: 1030px !important;
  }
}

/* Daily plan right-side fit: keep utilization 20px narrower and stack all
   actions inside the final track, in DOM order, without crossing cell bounds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column: 7 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column: 8 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 49px !important;
  margin: 3px 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 49px !important;
  margin: 0 !important;
  align-content: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions { grid-template-rows: repeat(3, minmax(0, 1fr)) !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .daily-dispatcher-actions > button,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t .planner-execution-permissions > button {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    grid-template-columns: 38px 198px 104px 68px 84px minmax(300px, 1fr) 112px 80px !important;
    min-width: 1040px !important;
  }
}

/* Keep the semantic-source six-cell variant consistent on future builds. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-utilization {
  width: 124px !important;
  min-width: 0 !important;
  max-width: 124px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  height: 49px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-actions > button {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 1px !important;
  font-size: 8px !important;
  line-height: 9px !important;
  white-space: nowrap !important;
}

/* Current planning route tiles: soft, type-coded surfaces with a matching order rail.
   This intentionally changes paint only; the three information rows and DnD geometry stay intact. */
.planning-module-planning .route-point-tile-main {
  border-radius: 5px;
  border-width: 1px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #111827;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup:hover {
  background-color: #eaf9ef;
  border-color: #4ade80;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading:hover {
  background-color: #fceaea;
  border-color: #f87171;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order {
  background-color: #dcfce7;
  box-shadow: inset 3px 0 #22c55e;
  color: #166534;
}
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  background-color: #fee2e2;
  box-shadow: inset 3px 0 #ef4444;
  color: #991b1b;
}
.planning-module-planning .route-point-tile-main.route-point-tile-pickup .route-point-tile-order,
.planning-module-planning .route-point-tile-main.route-point-tile-unloading .route-point-tile-order {
  border-right-color: rgb(100 116 139 / 24%);
}

/* Reveal the overlay scrollbar only while the route row is being used.
   Keep the range control at half its previous opacity and preserve keyboard and
   touch access without affecting route-card layout. */
.planning-module-planning .planning-route-scrollbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.planning-module-planning .grid.items-center.border-t:has(> .planning-row-route:hover, > .planning-route-scrollbar:hover, > .planning-route-scrollbar:focus-visible) > .planning-route-scrollbar {
  opacity: .43 !important;
  pointer-events: auto !important;
}
.planning-module-planning .planning-route-scrollbar:focus-visible,
.planning-module-planning .planning-route-scrollbar:active {
  opacity: .43 !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  .planning-module-planning .planning-route-scrollbar {
    opacity: .43 !important;
    pointer-events: auto !important;
  }
}

/* TPS daily-plan repair (.066): Plan dzienny uses planning-module-daily. Keep
   its header and eight rendered cells on the same semantic tracks; do not
   apply this daily-only grid to the weekly planning view. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: 42px 220px 112px 74px 84px minmax(300px, 1fr) 120px 88px !important;
  column-gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > * {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  align-self: center !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; overflow: visible !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; display: flex !important; min-width: 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; width: auto !important; overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; display: flex !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; display: grid !important; position: static !important; width: auto !important; min-width: 0 !important; margin: 3px 0 !important; }
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] > div.grid:not(.planning-column-header)[class~="bg-[#f8fafc]"],
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: max(100%, 1040px) !important;
    min-width: 1040px !important;
    grid-template-columns: 38px 198px 104px 68px 84px minmax(240px, 1fr) 132px 80px !important;
  }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto { overflow-x: auto !important; }
  html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result { width: 1040px !important; min-width: 1040px !important; }
}


/* TPS .011 — final mobile breakpoint repair; keep the header tracks in sync
   with row tracks after the legacy daily-plan media query. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
    column-gap: 0 !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    overflow-x: visible !important;
  }
}

/* TPS .008 — final cascade correction: this block must remain after legacy
   responsive rules so the header and active eight-cell driver rows share the
   exact same tracks, and the seventh (classless) cell can wrap its metrics. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(2) { grid-column: 2 / 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(3) { grid-column: 4 / 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(4) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(5) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div[class~="grid"][class*="bg-[#f8fafc]"] > :nth-child(6) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 2px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > * {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b {
  font-size: 8px !important;
  line-height: 10px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  font-size: 7px !important;
  line-height: 9px !important;
}

/* Final override for the legacy daily-plan DOM: later legacy rules in the
   bundled CSS have the same base selector, so add one specificity level and
   size the real 8-cell grid to the reference layout. */
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 128px 56px !important;
  column-gap: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(1) { grid-column: 1 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) { grid-column: 2 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(3) { grid-column: 3 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(4) { grid-column: 4 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(5) { grid-column: 5 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) { grid-column: 6 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) { grid-column: 7 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) { grid-column: 8 !important; }
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  min-height: 72px !important;
  height: auto !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > * {
  flex: 0 0 205px !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 64px !important;
  max-height: 64px !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono {
  flex-wrap: wrap !important;
  column-gap: 4px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
}
html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono > b {
  white-space: nowrap !important;
}


/* TPS .011 — final mobile breakpoint repair; keep the header tracks in sync
   with row tracks after the legacy daily-plan media query. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
    column-gap: 0 !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    overflow-x: visible !important;
  }
}


/* TPS .011 — final mobile breakpoint repair; keep the header tracks in sync
   with row tracks after the legacy daily-plan media query. */
@media (max-width: 1100px) {
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\],
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    grid-template-columns: 32px 170px 60px 46px 38px minmax(240px, 1fr) 112px 56px !important;
    column-gap: 0 !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] {
    width: 1056px !important;
    min-width: 1056px !important;
  }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(1) { grid-column: 1 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(2) { grid-column: 2 / 4 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(3) { grid-column: 4 / 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(4) { grid-column: 6 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(5) { grid-column: 7 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] > div.grid.bg-\[\#f8fafc\] > :nth-child(6) { grid-column: 8 !important; }
  html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto {
    width: 1040px !important;
    min-width: 1040px !important;
    max-width: none !important;
    overflow-x: visible !important;
  }
}


/* Plan dzienny (.015): hide trailer availability labels and the duplicate
   direction next to the city. Route cards size to their own content; the
   existing route viewport remains the only horizontal scroller. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-trailer-status-slot,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .base-route-item [data-trailer-id] {
  display: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}


/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}


/* Plan dzienny (.017): remove the older 220px tile width and let every daily
   tile's three content rows determine its intrinsic width. The row viewport
   remains horizontally scrollable, so even long notes cannot collide. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .route-point-tile-main {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap .route-point-tile-content {
  width: max-content !important;
  min-width: max-content !important;
  flex: 0 0 max-content !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap .route-point-tile-line {
  width: max-content !important;
  min-width: max-content !important;
  overflow: visible !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap .route-point-tile-line > * {
  max-width: none !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}

/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}


/* Plan dzienny (.018): remove the contradictory 68px min / 64px max slot,
   which was shrinking the tile body and footer. Keep the complete 48px tile
   body and 24px footer together, vertically centered in the driver row. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  align-self: center !important;
  height: auto !important;
  min-height: 76px !important;
  max-height: none !important;
  margin-block: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: center !important;
  flex: 0 0 max-content !important;
  height: auto !important;
  min-height: 76px !important;
  max-height: none !important;
  margin-block: 0 !important;
  gap: 4px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > .daily-load-footer {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: stretch !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}

/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}


/* Plan dzienny (.019): give the route slot exactly enough vertical room for
   its 48px card + 4px gap + 24px footer. Top/bottom inset prevents the card
   from riding above the row while keeping neighboring columns centered. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 82px !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: flex-start !important;
  flex: 0 0 max-content !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}

/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}


/* Plan dzienny (.019): give the route slot exactly enough vertical room for
   its 48px card + 4px gap + 24px footer. Top/bottom inset prevents the card
   from riding above the row while keeping neighboring columns centered. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 82px !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: flex-start !important;
  flex: 0 0 max-content !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}

/* Plan dzienny (.020): historical cards stay visually marked by their status
   colors, but must not fade their actual route data into low contrast. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap.route-point-historical {
  opacity: 1 !important;
  filter: none !important;
}

/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}


/* Plan dzienny (.019): give the route slot exactly enough vertical room for
   its 48px card + 4px gap + 24px footer. Top/bottom inset prevents the card
   from riding above the row while keeping neighboring columns centered. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 82px !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: flex-start !important;
  flex: 0 0 max-content !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] {
  box-sizing: border-box !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap > [role="button"] > span > b > span[title="Kierunek"] {
  display: none !important;
}

/* Plan dzienny (.020): historical cards stay visually marked by their status
   colors, but must not fade their actual route data into low contrast. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap.route-point-historical {
  opacity: 1 !important;
  filter: none !important;
}

html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .route-point-copy-wrap.route-point-historical > [role="button"] span.opacity-80 {
  opacity: 1 !important;
  color: #334155 !important;
}

/* Plan dzienny (.016): override the legacy fixed-width slot at its source-level
   cascade point. The card's intrinsic width follows its content; the route
   viewport keeps horizontal overflow and the row stays at a fixed height. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}

/* TPS .022 — dodatkowe naczepy przy BAZA/DOM i zajętość LDM */
.planning-module-planning .planning-row-resources > div > div[class*="font-mono"] > .text-violet-700{display:none!important}
.planning-module-planning .base-route-item{box-sizing:border-box!important;height:auto!important;min-height:48px!important;max-height:none!important;width:fit-content!important;min-width:180px!important;max-width:360px!important;overflow:visible!important}
.planning-module-planning .base-route-item>span:not(button){box-sizing:border-box!important;flex:1 1 auto!important;min-width:160px!important;max-width:340px!important;white-space:normal!important}
.planning-module-planning .base-route-item>span:not(button)>span{overflow-wrap:anywhere!important}
.planning-module-planning .base-route-item>span:not(button)>span:nth-child(2){white-space:nowrap!important}

  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  
  /* Reference-inspired load tile. Ratios stay fluid; content truncates instead of widening columns. */
  .loads-board [data-testid^="load-row-"]{container-type:inline-size;container-name:load-tile}
  .loads-board .load-row-grid[style]{grid-template-columns:minmax(0,1.55fr) minmax(0,.62fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,.4fr) 14px!important;column-gap:0!important;min-height:58px!important;align-items:stretch!important;line-height:1.15!important}
  .loads-board .load-row-grid[style]>:first-child{grid-template-columns:max-content 6px minmax(0,1fr)!important;padding:5px 12px 5px 4px!important;border-left:0!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(2){padding-left:7px!important;font-size:clamp(13px,1.5cqi,30px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>:first-child>:first-child{font-size:clamp(13px,1.45cqi,28px)!important}
  .loads-board .load-row-grid[style]>:first-child>:nth-child(3){align-self:center!important}
  .loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after{content:"Zał";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#d4f8e8;color:#079b64;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{content:"Roz";display:inline-flex;align-items:center;height:22px;margin-left:8px;padding:0 12px;border-radius:6px;background:#fee2e2;color:#c52631;font:800 clamp(11px,.95cqi,18px)/1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{font-size:clamp(10px,.9cqi,18px)!important;color:#8b9bb0!important}
  .loads-board .load-row-grid[style]>[class*="col-start-"]{display:flex!important;min-width:0!important;max-width:none!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:5px 12px!important;border-left:2px solid #e2e8f0!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{font-size:clamp(13px,1.35cqi,27px)!important;font-weight:800!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{font-size:clamp(12px,1.2cqi,24px)!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before{content:"nr ref:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"],.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]{position:relative!important;padding-top:5px!important;padding-bottom:5px!important}
  .loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{content:"TMS:";color:#8b9bb0;font:600 clamp(10px,.9cqi,17px)/1.1 system-ui,sans-serif}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 6px!important;font-size:clamp(12px,1.1cqi,22px)!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]:before{content:"→";color:#1475ef;font-size:1.55em;font-weight:800}
  .loads-board .load-row-grid[style]>:last-child{padding:0!important;border-left:2px solid #e2e8f0!important}
  .loads-board .load-row-grid[style]>:first-child [title^="Godziny otwarcia"]{grid-column:3!important;grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"]{grid-row:1!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]{grid-row:1!important;grid-column:4!important}
  .loads-board .load-row-grid[style]>[class*="col-start-2"][title="LDM"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-3"][title="Waga"]{grid-row:2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:has(span.truncate){grid-row:2!important}
  .loads-board .load-row-grid[style]>[title^="Kierunek"]{grid-column:5!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>:last-child{grid-column:6!important;grid-row:1/span 2!important}
  .loads-board .load-row-grid[style]>[class*="col-start-4"]:not([title^="Nr referencyjny"]):not([title^="Nr TMS"]):not([title^="Brak numeru TMS"]){display:none!important}
  button[aria-label="Akcje ładunku"]{width:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-left:1px solid #dce5ef!important}
  @container load-tile (max-width: 699px){.loads-board .load-row-grid[style]{min-height:40px!important;grid-template-columns:minmax(0,1fr) 40px 55px 60px 45px 10px!important}.loads-board .load-row-grid[style]>:first-child{padding:2px 4px!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(2){font-size:10px!important;padding-left:3px!important}.loads-board .load-row-grid[style]>:first-child>:first-child,.loads-board .load-row-grid[style]>[class*="col-start-"]{font-size:9px!important;padding:2px 4px!important}.loads-board .load-row-grid[style]>[class*="col-start-"]{border-left:1px solid #64748b!important}.loads-board .load-row-grid[style]>:first-child>:nth-child(3),.loads-board .load-row-grid[style]>[title^="Nr referencyjny"]:before,.loads-board .load-row-grid[style]>[title^="Nr TMS"]:before,.loads-board .load-row-grid[style]>[title^="Brak numeru TMS"]:before{display:none!important}.loads-board .load-row-grid[style]>:first-child>span[title="Załadunek"]:after,.loads-board .load-row-grid[style]>:first-child>span[title="Rozładunek"]:after{height:15px;margin-left:3px;padding:0 4px;font-size:8px!important}}
  

/* TPS .035 — wyłącznie Plan dzienny: pełna wysokość trasy, naczepy dodatkowe przy DOM/BAZA i widoczne Wykorzystanie. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 54px !important;
  padding-block: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route > .route-point-copy-wrap > .route-point-tile-daily {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route > .route-point-copy-wrap > .daily-load-footer {
  box-sizing: border-box !important;
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-route > .base-route-item {
  box-sizing: border-box !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 72px !important;
  max-height: none !important;
}
/* ET renders the selected trailer field and extra-trailer chips as siblings.
   Keep the chips only in the existing DOM/BAZA card; do not change assigned IDs. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-row-resources .planning-trailer-field ~ span {
  display: none !important;
}
/* DOM/BAZA already renders extraTrailerRegs and a separate occupied-LDM value. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .base-route-item > span:not(button) > span:nth-child(2) {
  display: block !important;
  white-space: nowrap !important;
}
/* The seventh row cell is the inline-styled utilisation summary (actions follow it). */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .planning-driver-row > :nth-child(7) {
  box-sizing: border-box !important;
  align-self: stretch !important;
  min-width: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
}


/* TPS .036 — wyłącznie Plan dzienny: selektory dopasowane do komórek z aktualnego JSX. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 72px !important;
  padding-block: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap {
  box-sizing: border-box !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  gap: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .route-point-tile-daily {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .daily-load-footer {
  box-sizing: border-box !important;
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .base-route-item {
  box-sizing: border-box !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 72px !important;
  max-height: none !important;
}
/* ET renders the selected trailer field and extra-trailer chips as siblings.
   Keep the chips only in the existing DOM/BAZA card; do not change assigned IDs. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) .planning-trailer-field ~ span {
  display: none !important;
}
/* DOM/BAZA already renders extraTrailerRegs and a separate occupied-LDM value. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .base-route-item > span:not(button) > span:nth-child(2) {
  display: block !important;
  white-space: nowrap !important;
}
/* The seventh row cell is the inline-styled utilisation summary (actions follow it). */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  align-self: stretch !important;
  min-width: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
}


/* TPS .037 — wyłącznie Plan dzienny: czytelny, równy dolny pasek kafelka. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .daily-load-footer {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .daily-load-footer > * {
  box-sizing: border-box !important;
  display: flex !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
/* Utilization and route share the row track; remove vertical margins that created a blank band. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-self: stretch !important;
  align-items: stretch !important;
  min-height: 0 !important;
  padding-block: 0 !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > .mx-1.my-1.self-stretch {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  width: auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-block: 0 !important;
  font-size: 12px !important;
  line-height: 14px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > .mx-1.my-1.self-stretch > span,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > .mx-1.my-1.self-stretch > span > b,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > .mx-1.my-1.self-stretch > span > small {
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 14px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}


/* TPS .038 — wyłącznie Plan dzienny: czytelny, równy dolny pasek kafelka. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .daily-load-footer {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap > .daily-load-footer > * {
  box-sizing: border-box !important;
  display: flex !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
/* Utilization and route share the row track; remove vertical margins that created a blank band. */
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing: border-box !important;
  display: flex !important;
  align-self: stretch !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: 100% !important;
  max-height: none !important;
  margin-block: 0 !important;
  padding: 4px 6px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 14px !important;
}
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > b,
html body #root section.planning-compact.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span > small {
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 14px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* TPS .039 — układ wiersza kierowcy, status naczepy i BAZA/DOM (wyłącznie Planowanie) */
/* Eight stable tracks mirror row content. The standalone trailer-status cell sits
   immediately after driver / PL-ALL, on the same row as the driver name. */
html body #root section.planning-compact.planning-module-planning>.grid {
  box-sizing:border-box!important;width:max(100%,1044px)!important;min-width:1044px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 102px 104px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(2){grid-column:2!important}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(3){grid-column:4!important}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(4){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(5){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning>.grid>:nth-child(6){grid-column:8!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t {
  box-sizing:border-box!important;width:max(100%,1044px)!important;min-width:1044px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 102px 104px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(3){grid-column:3!important;grid-row:1!important;align-self:start!important;justify-self:start!important;box-sizing:border-box!important;width:130px!important;min-width:0!important;max-width:130px!important;min-height:0!important;padding:4px 3px!important;overflow:visible!important;display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;align-items:center!important;gap:3px!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(3)>span{box-sizing:border-box!important;max-width:124px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(4){grid-column:4!important;grid-row:1!important;justify-self:stretch!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(5){grid-column:5!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(6){grid-column:6!important;grid-row:1!important;min-width:0!important;flex-wrap:nowrap!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(7){grid-column:7!important;grid-row:1!important;box-sizing:border-box!important;width:102px!important;min-width:102px!important;max-width:102px!important;justify-self:stretch!important;margin:0!important;padding-left:4px!important;padding-right:4px!important;overflow:hidden!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(8){grid-column:8!important;grid-row:1!important;box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;justify-self:stretch!important;margin:0!important;padding:1px 4px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(8)>.planner-execution-permissions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:none!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,16px)!important;gap:2px!important;
  height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:0!important;
  align-content:center!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto>.relative.tps-week-search-result>.grid.items-center.border-t>:nth-child(8)>.planner-execution-permissions>button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;margin:0!important;padding:0 3px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;font-size:8px!important;
}
section.planning-compact.planning-module-planning .base-route-item {
  box-sizing:border-box!important;min-width:200px!important;max-width:320px!important;width:fit-content!important;
  min-height:52px!important;height:auto!important;max-height:none!important;align-items:stretch!important;
}
section.planning-compact.planning-module-planning .base-route-item>span:not(button) {
  box-sizing:border-box!important;min-width:180px!important;max-width:300px!important;padding:4px 7px!important;
  white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important;font-size:10px!important;
}
section.planning-compact.planning-module-planning .base-route-item>span:not(button)>b:first-child {
  display:block!important;margin-bottom:2px!important;font-size:11px!important;line-height:1.2!important;
}
section.planning-compact.planning-module-planning .base-route-item>span:not(button)>span:nth-child(2) {
  display:block!important;margin-top:2px!important;white-space:nowrap!important;font-size:10px!important;line-height:1.2!important;
}
section.planning-compact.planning-module-planning .base-route-item>span:not(button)>span:nth-child(3),
section.planning-compact.planning-module-planning .base-route-item>span:not(button)>span:nth-child(4) {
  display:block!important;margin-top:2px!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:9px!important;line-height:1.2!important;
}
section.planning-compact.planning-module-planning .base-route-item>span:not(button)>span:last-child {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:3px!important;
  box-sizing:border-box!important;margin-top:4px!important;padding-top:4px!important;border-top:1px solid #cbd5e1!important;
  white-space:normal!important;overflow-wrap:anywhere!important;font-size:10px!important;line-height:1.2!important;
}

/* TPS 2026.10.17.040 — kafelki trasy Planowania węższe o dokładnie 20 px (270 → 250); zakres wyłącznie Planowanie */
/* Fixed 250px border-box track preserves equal widths and horizontal route layout. */
.planning-module-planning .route-point-tile-main{box-sizing:border-box!important;width:250px!important;min-width:250px!important;max-width:250px!important;height:50px!important;min-height:50px!important;max-height:50px!important;flex:0 0 250px!important;align-items:stretch!important}

/* TPS 2026.10.17.041 — elipsa dla długich wartości kafelka, pełne wartości w tooltipach */
.planning-module-planning .route-point-tile-line{overflow:hidden!important;overflow-x:hidden!important}
.planning-module-planning .route-point-tile-line-main .route-point-tile-postal{min-width:0!important;max-width:30%!important;flex:0 0 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
.planning-module-planning .route-point-tile-line-main .route-point-tile-city{width:auto!important;min-width:0!important;max-width:42%!important;flex:1 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
.planning-module-planning .route-point-tile-line-main .route-point-tile-company-hours{width:auto!important;min-width:0!important;max-width:30%!important;flex:0 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
.planning-module-planning .route-point-tile-line-load .route-point-tile-trailer{width:auto!important;min-width:0!important;max-width:40%!important;flex:1 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
.planning-module-planning .route-point-tile-line-load .route-point-tile-time{width:auto!important;min-width:0!important;max-width:24%!important;flex:0 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
.planning-module-planning .route-point-tile-line-reference .route-point-tile-ref,.planning-module-planning .route-point-tile-line-reference .route-point-tile-tms,.planning-module-planning .route-point-tile-line-reference .route-point-tile-notes{width:auto!important;min-width:0!important;max-width:38%!important;flex:1 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* TPS 2026.10.17.042 — Planowanie: kafelki +10px, panel wykorzystania -20px i prawa kolumna akcji */
/* Scope: Planning module only; daily-view and its independent layout are untouched. */
html body #root section.planning-compact.planning-module-planning > .planning-column-header,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing:border-box!important;
  width:max(100%,1024px)!important;
  min-width:1024px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 82px 104px!important;
  column-gap:0!important;
  align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  grid-column:6!important;grid-row:1!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column:7!important;grid-row:1!important;box-sizing:border-box!important;width:82px!important;min-width:82px!important;max-width:82px!important;justify-self:stretch!important;margin:0!important;padding:3px!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) b,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) small {display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:8px!important;line-height:1.15!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column:8!important;grid-row:1!important;box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;justify-self:end!important;align-self:stretch!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:none!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,16px)!important;gap:2px!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:0!important;align-content:center!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;height:16px!important;min-height:16px!important;max-height:16px!important;margin:0!important;padding:0 3px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;font-size:8px!important
}
html body #root section.planning-compact.planning-module-planning .route-point-tile-main {
  box-sizing:border-box!important;width:260px!important;min-width:260px!important;max-width:260px!important;flex:0 0 260px!important
}

/* TPS .044 — 12px Wykorzystanie i równa kolumna akcji Planowania */
/* Ograniczone do Planowanie → Planowanie; niezależny Plan dzienny pozostaje bez zmian. */
html body #root section.planning-compact.planning-module-planning > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t {
  box-sizing:border-box!important;
  width:max(100%,1112px)!important;min-width:1112px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 170px 104px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning > .min-h-0.flex-1.overflow-y-auto {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  overflow-x:auto!important;overflow-y:auto!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) {
  grid-column:7!important;grid-row:1!important;box-sizing:border-box!important;
  width:170px!important;min-width:170px!important;max-width:170px!important;
  justify-self:stretch!important;align-self:stretch!important;margin:0!important;padding:4px 6px!important;
  overflow:visible!important;font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) b,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(7) small {
  display:block!important;max-width:100%!important;white-space:nowrap!important;
  font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(8) {
  grid-column:8!important;grid-row:1!important;box-sizing:border-box!important;
  width:104px!important;min-width:104px!important;max-width:104px!important;
  justify-self:stretch!important;align-self:center!important;margin:0!important;padding:0 4px!important;
  display:flex!important;align-items:center!important;justify-content:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,15px)!important;gap:1px!important;
  height:47px!important;min-height:47px!important;max-height:47px!important;margin:0!important;padding:0!important;
  align-content:center!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:15px!important;min-height:15px!important;max-height:15px!important;margin:0!important;padding:0 3px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;
  font-family:inherit!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(8) > .daily-dispatcher-actions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(2,22px)!important;gap:2px!important;
  height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:0!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative > .grid.items-center.border-t > :nth-child(8) > .daily-dispatcher-actions > button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;padding:0 3px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;
  font-family:inherit!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;
}

/* TPS 2026.10.17.051 — Planowanie: Wykorzystanie -20px i pełna pionowa kolumna akcji.
   Ograniczenie wyłącznie do głównego modułu Planowanie; Plan dzienny pozostaje bez zmian. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing:border-box!important;
  width:max(100%,1092px)!important;min-width:1092px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 150px 104px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column:7!important;grid-row:1!important;box-sizing:border-box!important;
  width:150px!important;min-width:150px!important;max-width:150px!important;
  justify-self:stretch!important;align-self:stretch!important;margin:0!important;padding:4px 6px!important;
  overflow:visible!important;font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) b,
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) small {
  display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column:8!important;grid-row:1!important;box-sizing:border-box!important;
  width:104px!important;min-width:104px!important;max-width:104px!important;
  justify-self:stretch!important;align-self:stretch!important;margin:0!important;padding:0 4px!important;
  display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(14px,1fr))!important;gap:2px!important;
  height:52px!important;min-height:52px!important;max-height:100%!important;margin:0!important;padding:2px 0!important;
  align-self:center!important;align-content:stretch!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:14px!important;max-height:none!important;margin:0!important;padding:0 3px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;
  font-family:inherit!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button:nth-child(1) {grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button:nth-child(2) {grid-column:1!important;grid-row:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button:nth-child(3) {grid-column:1!important;grid-row:3!important;display:flex!important}

/* TPS 2026.10.17.051 — Planowanie: Wykorzystanie -20px i pełna pionowa kolumna akcji.
   Ograniczenie wyłącznie do głównego modułu Planowanie; Plan dzienny pozostaje bez zmian. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing:border-box!important;
  width:max(100%,1092px)!important;min-width:1092px!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 150px 104px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  grid-column:7!important;grid-row:1!important;box-sizing:border-box!important;
  width:150px!important;min-width:150px!important;max-width:150px!important;
  justify-self:stretch!important;align-self:stretch!important;margin:0!important;padding:4px 6px!important;
  overflow:visible!important;font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span {
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) b,
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) small {
  display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:12px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  grid-column:8!important;grid-row:1!important;box-sizing:border-box!important;
  width:104px!important;min-width:104px!important;max-width:104px!important;
  justify-self:stretch!important;align-self:center!important;margin:0!important;padding:2px 0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,14px)!important;gap:2px!important;
  height:52px!important;min-height:52px!important;max-height:100%!important;align-content:center!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button {
  box-sizing:border-box!important;display:flex!important;grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:14px!important;min-height:14px!important;max-height:14px!important;margin:0!important;padding:0 3px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;
  font-family:inherit!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button:nth-child(1) {grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button:nth-child(2) {grid-row:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > button:nth-child(3) {grid-row:3!important;display:flex!important}


/* TPS 2026.10.17.054: Planowanie — route drop area takes available space; preserve DnD target.
   Eight children: index, driver, trailer status, start, night, route dropzone,
   utilization, action stack. No daily-view selectors or JavaScript changes. */
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"],
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t {
  box-sizing:border-box!important;width:max(100%,1056px)!important;min-width:1056px!important;max-width:none!important;
  grid-template-columns:38px 220px 130px 74px 46px minmax(330px,1fr) 150px 68px!important;
  column-gap:0!important;align-items:stretch!important;
}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(1) {grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(2) {grid-column:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(3) {grid-column:4!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(4) {grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(5) {grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid[style*="42px 220px 94px 46px minmax(0,1fr) 150px 112px"] > :nth-child(6) {grid-column:8!important}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) {
  box-sizing:border-box!important;grid-column:6!important;grid-row:1!important;display:flex!important;position:relative!important;
  flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:54px!important;height:auto!important;
  align-self:stretch!important;justify-self:stretch!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:nowrap!important;gap:5px!important;margin:0!important;padding:3px 5px!important;
  overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .route-point-copy-wrap,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(6) > .base-route-item {
  box-sizing:border-box!important;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;
  align-self:stretch!important;margin:0!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) {
  box-sizing:border-box!important;grid-column:7!important;grid-row:1!important;width:150px!important;min-width:150px!important;max-width:150px!important;
  align-self:stretch!important;justify-self:stretch!important;margin:0!important;padding:4px 6px!important;overflow:hidden!important;
  font-size:10px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) > span,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) b,
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(7) small {
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important;line-height:1.15!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) {
  box-sizing:border-box!important;grid-column:8!important;grid-row:1!important;display:flex!important;width:68px!important;min-width:68px!important;max-width:68px!important;
  justify-self:end!important;align-self:center!important;margin:0!important;padding:0!important;align-items:stretch!important;justify-content:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions {
  box-sizing:border-box!important;display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,16px)!important;gap:2px!important;
  height:52px!important;min-height:52px!important;max-height:100%!important;margin:0!important;padding:0!important;
  align-self:center!important;align-content:center!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important;
}
html body #root section.planning-compact.planning-module-planning .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(8) > .planner-execution-permissions > button {
  box-sizing:border-box!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;margin:0!important;padding:0 2px!important;
  align-items:center!important;justify-content:center!important;white-space:nowrap!important;line-height:1!important;
  font-family:inherit!important;font-size:9px!important;font-weight:700!important;text-transform:uppercase!important;
}

.planning-module-planning .route-point-tile-line-reference .route-point-tile-notes{box-sizing:border-box;min-width:0;max-width:min(360px,42vw);flex:0 1 360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.15}
.planning-module-planning .route-point-tile-line-reference .route-point-tile-notes:focus-visible{border-radius:2px;outline:2px solid #60a5fa;outline-offset:1px}
.planning-module-planning .planning-row-start + .planning-row-checks{margin-top:3px}
.planning-module-planning .route-point-tile-note-marker-sent{background:#dc2626;color:#fff;font-weight:700}
.planning-module-planning .route-point-tile-note-marker-stars{background:transparent;color:#dc2626;font-weight:800}
.planning-module-planning .route-point-tile-notes{display:flex}
.planning-module-planning .route-point-tile-notes-content{display:flex;flex-wrap:nowrap;align-items:center;gap:2px;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap}
.planning-module-planning .route-point-tile-note-body{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planning-module-planning .route-point-tile-note-marker{flex:0 0 auto;white-space:nowrap}
.planning-module-planning .route-point-tile-note-marker-sent{background:#dc2626!important;color:#fff!important;font-weight:700}
.planning-module-planning .planning-row-start input[type="time"]{display:block!important;width:58px!important;max-width:100%!important;margin-inline:auto!important;font-size:11px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-row-start input[type="time"]{display:block!important;width:58px!important;max-width:100%!important;margin-inline:auto!important;font-size:11px!important}
html body #root section.planning-compact.planning-module-planning .route-point-tile-note-marker-sent{background:#dc2626!important;color:#fff!important;font-weight:800!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header,html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row{box-sizing:border-box!important;display:grid!important;grid-template-columns:34px 230px 68px 44px minmax(180px,1fr) 150px 62px!important;column-gap:3px!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(2){grid-column:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(3){grid-column:3/5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(4){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(5){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header > :nth-child(6){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot{box-sizing:border-box!important;grid-column:3!important;grid-row:1!important;align-self:start!important;width:68px!important;min-width:0!important;padding:2px 0 0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot input[type="time"]{box-sizing:border-box!important;display:block!important;width:68px!important;min-width:68px!important;max-width:100%!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0 2px!important;font-size:13px!important;line-height:22px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]){box-sizing:border-box!important;grid-column:4!important;grid-row:1!important;align-self:start!important;width:44px!important;min-width:0!important;margin-top:2px!important;padding:0!important;gap:2px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]) > label{box-sizing:border-box!important;width:40px!important;min-width:40px!important;height:20px!important;min-height:20px!important;margin-top:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]) > label + label{margin-top:2px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > :nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > .planning-row-resources{grid-column:2!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > .planning-trailer-status-slot{display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > .planning-row-route{grid-column:5!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > .planning-row-utilization{grid-column:6!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row > .planning-row-actions{grid-column:7!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-driver-row{min-height:58px!important}

html body #root section.planning-compact.planning-module-planning .route-point-tile-note-marker-sent{background:#dc2626!important;color:#fff!important;font-weight:800!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .planning-column-header,html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm,html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot){box-sizing:border-box!important;display:grid!important;grid-template-columns:34px 230px 72px 44px minmax(180px,1fr) 150px 62px!important;column-gap:3px!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(1){grid-column:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(2){grid-column:2!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(3){grid-column:3/5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(4){grid-column:5!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(5){grid-column:6!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] > .grid.items-center.min-h-12.text-sm > :nth-child(6){grid-column:7!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot{box-sizing:border-box!important;grid-column:3!important;grid-row:1!important;align-self:start!important;width:72px!important;min-width:0!important;padding:2px 0 0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot input[type="time"]{box-sizing:border-box!important;display:block!important;width:72px!important;min-width:72px!important;max-width:100%!important;height:22px!important;min-height:22px!important;margin:0!important;padding:0 2px!important;font-size:13px!important;line-height:20px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]){box-sizing:border-box!important;grid-column:4!important;grid-row:1!important;align-self:start!important;width:44px!important;min-width:0!important;margin-top:2px!important;padding:0!important;gap:2px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]) > label{box-sizing:border-box!important;width:40px!important;min-width:40px!important;height:20px!important;min-height:20px!important;margin-top:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot + div:has(> label[title="Nocka"]) > label + label{margin-top:2px!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > :nth-child(1){grid-column:1!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > :nth-child(2){grid-column:2!important;grid-row:1!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > .planning-trailer-status-slot{display:none!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > :nth-child(6){grid-column:5!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > :nth-child(7){grid-column:6!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot) > :nth-child(8){grid-column:7!important;grid-row:1!important;min-width:0!important}
html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] div:has(> .planning-start-time-slot){min-height:58px!important}

html body #root section.planning-compact.planning-module-planning[class*="daily-view-"] .planning-start-time-slot input[type="time"]{box-sizing:border-box!important;display:block!important;width:76px!important;min-width:76px!important;max-width:100%!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0 2px!important;font-size:13px!important;line-height:18px!important}
/* Build .008 — Resources sticky tabs */
.tps-resources-page>.tps-resource-tabs-row{top:0!important;z-index:40!important;background:#fff!important}

html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono { flex-wrap: nowrap !important; white-space: nowrap !important; overflow-x: auto !important; column-gap: 4px !important; row-gap: 0 !important; }

html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono { flex-wrap: nowrap !important; white-space: nowrap !important; overflow-x: auto !important; column-gap: 4px !important; row-gap: 0 !important; }

html body #root section.planning-compact.planning-module-daily.planning-module-daily[class*="daily-view-"] .min-h-0.flex-1.overflow-y-auto > .relative.tps-week-search-result > .grid.items-center.border-t > :nth-child(2) > div > div.flex.font-mono { flex-wrap: nowrap !important; white-space: nowrap !important; overflow-x: auto !important; column-gap: 4px !important; row-gap: 0 !important; }

/* TPS Magazyn — drukuj zaznaczony zakres zadań. */
.warehouse-task-print-button{border:1px solid #cbdcf3!important;border-radius:8px!important;background:#fff!important;color:#1d4ed8!important;font-size:11px!important;font-weight:800!important;padding:7px 12px!important;white-space:nowrap!important}.warehouse-task-print-button:hover{background:#eff6ff!important}
@media print{@page{size:A4 landscape;margin:7mm}html,body{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}body *{visibility:hidden!important}body *:has(.warehouse-tasks-view){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;transform:none!important}.warehouse-tasks-view,.warehouse-tasks-view *{visibility:visible!important}.warehouse-tasks-view{position:static!important;display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important}.warehouse-task-commandbar,.warehouse-task-details{display:none!important}.warehouse-task-split{display:block!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important}.warehouse-task-list{display:block!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important}.warehouse-task-list-head,.warehouse-task-list-row{grid-template-columns:.7fr 1.4fr 2.2fr 1.1fr 1.4fr .9fr .9fr!important;width:100%!important;min-width:0!important;gap:1.5mm!important;padding:1.5mm 0!important;align-items:start!important}.warehouse-task-list-head{font-size:7pt!important}.warehouse-task-list-row{font-size:7.2pt!important;break-inside:avoid!important;page-break-inside:avoid!important}.warehouse-task-list-row>*{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}.warehouse-task-list-row>:nth-child(8){display:none!important}.warehouse-task-list-row button{display:none!important}.warehouse-task-day-divider{display:flex!important;width:100%!important;break-inside:avoid!important;page-break-inside:avoid!important;margin:2mm 0 0!important;padding:1.5mm!important;border:0!important;border-bottom:.3mm solid #789!important;border-radius:0!important;background:#eaf3ff!important;color:#173761!important;font-size:8pt!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.warehouse-task-empty{padding:4mm!important;color:#555!important}}