/* DAARAM brand skin v23, extracted from the supplied logo PDF.
   Color source: dark navy #19365C, leaf green #6FAC3B.
   Visual-only: existing Supabase / Ruptela / maps / PDF functions are unchanged. */
:root{--daaram-navy:#19365c;--daaram-navy-deep:#102743;--daaram-green:#6fac3b;--daaram-green-deep:#316e45;--daaram-forest:#1b4437;--daaram-forest-soft:#edf4e9;--daaram-ink:#1c3435;--daaram-subtle:#64796f;--daaram-border:#d8e3d4;--daaram-surface:#fff;--daaram-bg:#f2f5ef;--green:#316e45;--light:#edf5e8;--border:#d8e3d4;--line:#d8e3d4;--pale:#edf5e8;--muted:#64796f}
html{scroll-behavior:smooth}
body{background:linear-gradient(175deg,#eaf1e7 0%,#f6f8f3 350px,#f1f5ef 100%) !important;color:var(--daaram-ink) !important;accent-color:var(--daaram-green-deep);-webkit-font-smoothing:antialiased}
/* Photography stays in a decorative header, never under maps or forms. */
body>header{background-image:linear-gradient(98deg,rgba(13,30,51,.99) 0%,rgba(25,54,92,.94) 32%,rgba(25,54,92,.70) 58%,rgba(15,40,44,.18) 100%),url('./assets/daaram-forest-trucks.webp') !important;background-size:cover !important;background-position:center 52% !important;background-color:var(--daaram-navy) !important;border-bottom:5px solid var(--daaram-green) !important;color:white !important;min-height:145px;box-shadow:0 9px 22px #17362a18;position:relative;padding:21px 27px !important}
body>header::after{content:'';position:absolute;inset:auto 0 0 0;height:5px;background:linear-gradient(90deg,#6fac3b 0%,#8bbc5c 30%,#19365c 80%);pointer-events:none}
body>header>*{position:relative;z-index:1}
body>header .toolbar{width:100%}
body>header .dt-brand-lockup{display:flex;align-items:center;gap:18px;max-width:100%}
body>header .dt-brand-logo{height:68px;width:208px;object-fit:contain;padding:10px 12px;background:rgba(255,255,255,.97);border-radius:11px;border:1px solid #e7ede4;box-shadow:0 3px 16px #10274350;flex:none}
body>header .dt-brand-caption{min-width:0;display:flex;flex-direction:column;gap:4px}
body>header strong,body>header h1{color:white!important;font-size:clamp(22px,2.6vw,29px)!important;letter-spacing:-.025em;line-height:1.12;font-weight:790}
body>header small,body>header .small,body>header #status{color:#dbe9dc!important;line-height:1.4}
body>header a:not(.dt-brand-logo-link){color:#e9f4eb!important;text-decoration:none}
body>header a:not(.dt-brand-logo-link):hover{text-decoration:underline}
body>header .row a[style]{color:white!important;background:rgba(16,39,67,.66)!important;border:1px solid rgba(206,236,212,.36)!important;backdrop-filter:blur(4px);border-radius:10px!important}
body>header button.secondary{border:1px solid rgba(225,243,221,.38)!important;background:rgba(255,255,255,.94)!important;color:var(--daaram-navy)!important}
body>header .row{gap:9px}
main{min-width:0}
/* Brand colors, stronger hierarchy and a subtly organic panel look. */
h1,h2,h3,h4{letter-spacing:-.022em}
h2,h3{color:var(--daaram-navy)}
.card,section.card,.panel,.dt-tree-panel,.dt-routebox,.dtv8-edit,.dtv6-pile{border-color:var(--daaram-border)!important;border-radius:15px!important;box-shadow:0 3px 16px rgba(21,49,45,.055)!important}
.card,section.card{background-color:var(--daaram-surface)!important}
.card h2,.panel h2,section.card h2{border-left:4px solid var(--daaram-green);padding-left:11px;line-height:1.22}
.stats .stat,.stat,.metric,.dtv6-metric,.summary,.info,.assigned-card,.dt-tree-panel,.dt-routebox,.dtv6-last,.volume-pair{background-color:#edf5e9!important;border-color:var(--daaram-border)!important}
.stats .stat b,.stat strong,.metric strong,.dtv6-metric-value,.number,.sum{color:var(--daaram-navy)!important}
.muted,.subtle,.hint,.small, .dtv6-metric-title{color:var(--daaram-subtle)}
a{color:var(--daaram-green-deep);text-underline-offset:3px}
a:hover{color:var(--daaram-navy)}
input,select,textarea{border-color:#bed0c1!important;background-color:#fff!important;color:var(--daaram-ink)!important;box-shadow:0 1px 2px #203b2410;transition:border-color .16s,box-shadow .16s}
input:focus,select:focus,textarea:focus{border-color:var(--daaram-green-deep)!important;outline:2px solid rgba(111,172,59,.17)!important;outline-offset:1px;box-shadow:0 0 0 3px rgba(111,172,59,.13)}
button{border-radius:9px;transition:background-color .17s,border-color .17s,box-shadow .17s,transform .17s}
button:not(.secondary):not(.danger):not([class*="filterHit"]):not(.dtv6-pile-toggle):not(.dt-geocode-choice):not(.dtv6-order-button){background-color:var(--daaram-green-deep);color:#fff}
button:not(.secondary):not(.danger):not(.dtv6-pile-toggle):hover:not(:disabled){box-shadow:0 3px 9px rgba(25,54,92,.16)}
button.secondary,.secondary{background-color:#e4eede;color:var(--daaram-navy)}
button:focus-visible,a:focus-visible{outline:3px solid var(--daaram-green)!important;outline-offset:2px}
.tabs button,.dtv8-tabs button,.dt-route-toggle button{background:#e4ecdf;color:var(--daaram-navy)}
.tabs button.active,.dtv8-tabs button.active,.dt-route-toggle button.active{background:var(--daaram-navy)!important;color:#fff!important}
.pill,.dtv6-order-count,.dtv6-status{background:#dfead7;color:var(--daaram-navy)}
.dt-route-result-card{border-left-color:var(--daaram-green-deep)}
.dt-tree-panel,.dtv6-history,.dtv6-metric{background:#f6f9f3!important}
.dt-tree-scroll,.dtv6-order-list{scrollbar-color:#92ae80 #edf4ec;scrollbar-width:thin}
.dt-tree-scroll{border-color:#cadbc7!important}
th{background:#edf2ea;color:var(--daaram-navy)!important;font-weight:740}
td,th{border-bottom-color:#e1e8dc}
tbody tr:hover{background:rgba(111,172,59,.045)}
#commandMap,#routeMap,#gpsMap,#fleetMap,.leaflet-container{background:#e3ebdf!important;border-color:#c6d5c7!important}
.leaflet-container .leaflet-control-zoom a{color:var(--daaram-navy)!important}
.leaflet-control-attribution{font-size:10px}
/* Dark navy is used for selected orders, directional structure, and useful contrast. */
.dtv6-order-button.selected{border-color:var(--daaram-navy)!important;box-shadow:inset 4px 0 var(--daaram-green)!important;background:#e8f0e4!important}
.dtv6-order-button:hover{border-color:var(--daaram-green)}
.dtv6-progress-fill{background:var(--daaram-green-deep)}
.dtv6-last{border-left-color:var(--daaram-green)}
#login{margin-top:38px}
/* Compact DAARAM masthead for the stand-alone Ruptela test page. */
.dt-sub-brand{border:1px solid #d8e7d3;border-radius:14px;min-height:120px;display:flex;align-items:center;gap:16px;padding:18px 20px;margin:0 0 20px;background-image:linear-gradient(90deg,rgba(16,39,67,.98),rgba(25,54,92,.85) 48%,rgba(25,54,92,.16)),url('./assets/daaram-forest-trucks.webp');background-position:center 48%;background-size:cover;color:white;box-shadow:0 4px 15px #132b2d19}
.dt-sub-brand img{width:180px;height:56px;background:#fff;border-radius:9px;padding:8px 10px;object-fit:contain;flex:none}
.dt-sub-brand strong{font-size:20px;color:white;display:block;letter-spacing:-.02em}
.dt-sub-brand small{color:#e3ecdf;display:block}
/* Allow map and data screens to breathe. */
@media(min-width:1250px){body>header{padding-inline:max(25px,calc((100vw - 1490px)/2))!important}}
@media(max-width:920px){body>header{background-position:61% center!important;min-height:128px}body>header .dt-brand-logo{width:172px;height:61px}body>header .dt-brand-lockup{gap:12px}}
@media(max-width:650px){body>header{padding:14px 13px!important;min-height:115px;background-position:64% center!important}body>header .dt-brand-logo{width:123px;height:48px;padding:6px}body>header .dt-brand-lockup{gap:9px}body>header strong,body>header h1{font-size:19px!important}body>header small,body>header .small{font-size:11px}body>header .row a[style]{padding:7px!important;font-size:12px}main{padding-left:11px!important;padding-right:11px!important}.dt-sub-brand{min-height:95px;padding:12px;gap:10px}.dt-sub-brand img{width:115px;height:46px}.dt-sub-brand strong{font-size:16px}.dt-sub-brand small{font-size:11px}.card,section.card{padding:15px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* v24 — szuflady kontrahent → zlecenie i wybrany plan w sąsiedniej kolumnie. */
.dt24-assign-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(400px,1.1fr);gap:16px;align-items:start}
.dt24-assign-col{min-width:0;border:1px solid #cfdfd0;padding:15px;background:#f9fbf7;border-radius:14px}
.dt24-chosen{background:#f3f7fc;border-color:#c7d6e4;position:sticky;top:8px}
.dt24-assign-col h3{margin:0 0 7px;color:#19365c}
.dt24-assign-col p{font-size:13px}
.dt24-search{margin:6px 0 11px}
.dt24-accordion{max-height:540px;overflow:auto;scrollbar-width:thin}
.dt24-contractor{border:1px solid #c7d6c5;background:#fff;border-radius:10px;padding:0;margin:0 0 9px}
.dt24-contractor summary{padding:12px;font-size:15px;background:#eef4e9;color:#19365c;border-radius:10px}
.dt24-contractor[open] summary{border-radius:10px 10px 0 0;border-bottom:1px solid #d3dfd2}
.dt24-folder-content{padding:5px 9px}
.dt24-order-option{display:grid;grid-template-columns:1fr auto;gap:0 8px;align-items:center;border-bottom:1px solid #e2e8e0;padding:8px 3px}
.dt24-order-option:last-child{border-bottom:0}
.dt24-order-num{font-weight:750;color:#19365c}
.dt24-order-route{grid-column:1;font-size:12px;color:#63766e;margin-top:2px;overflow-wrap:anywhere}
button.dt24-add{grid-column:2;grid-row:1/span 2;background:#316e45!important;color:white;font-size:12px;padding:7px 10px}
.dt24-assigned-list{max-height:540px;overflow:auto;scrollbar-width:thin}
.dt24-plan-item{display:flex;gap:10px;align-items:center;padding:11px 9px;background:#fff;border:1px solid #d6e2e7;border-left:4px solid #6fac3b;border-radius:10px;margin-bottom:9px}
.dt24-order-index{min-width:36px;color:#19365c;font-size:15px;font-weight:800}
.dt24-plan-description{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dt24-plan-description strong{font-size:13px;color:#19365c}
.dt24-plan-description small{font-size:12px;color:#64796f}
.dt24-urgent{color:#b25222!important;font-weight:800}
.dt24-plan-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.dt24-max{font-size:11px;color:#556e63;margin:0}
.dt24-max input{width:62px;margin-top:3px;padding:6px;font-size:14px}
.dt24-move{display:flex;gap:4px}
.dt24-move button{padding:7px 9px;font-size:13px;min-width:32px;border:1px solid #cbd8d8}
.dt24-empty{padding:20px;text-align:center;background:white;border:1px dashed #c6d5c7;border-radius:10px;color:#64796f}
.dt24-draft-hint{margin:12px 0 0;color:#506b7c;font-weight:550}
@media(max-width:1120px){.dt24-assign-layout{grid-template-columns:1fr}.dt24-chosen{position:static}.dt24-accordion,.dt24-assigned-list{max-height:360px}}
@media(max-width:540px){.dt24-assign-col{padding:10px}.dt24-plan-item{flex-wrap:wrap}.dt24-plan-controls{width:100%;justify-content:flex-end}.dt24-order-route{font-size:11px}}
/* Wyrównanie kontrolek nowych przydziałów względem stylu starszego panelu */
#assignmentChoices .dt24-plan-item button,#assignmentChoices .dt24-order-option button{width:auto!important;margin:0!important}
#assignmentChoices .dt24-max input{width:68px!important;margin-top:3px!important}
#assignmentChoices .dt24-order-option .dt24-add{align-self:center}
#assignmentChoices .dt24-assign-col h3{font-size:18px}
/* Przełącznik stylu mapy nie zasłania numerów i znaczników stosów */
.leaflet-control-layers{box-shadow:0 2px 12px rgba(25,54,92,.14)!important;border-radius:9px!important;border:1px solid #b6c7b9!important}
.leaflet-control-layers-expanded{font-size:13px;line-height:1.6}
