/* TRAX ERP 3.0.12 — unified visual system */
:root{
  --trax-orange:#f36b21;
  --trax-orange-2:#ff8442;
  --trax-orange-dark:#a93c08;
  --trax-black:#171717;
  --trax-ink:#20242a;
  --trax-gray:#687383;
  --trax-line:#d9dee5;
  --trax-soft:#f6f7f9;
  --trax-orange-soft:rgba(243,107,33,.10);
  --accent:var(--trax-orange)!important;
  --accentSoft:var(--trax-orange-soft)!important;
}

/* Never use green as an application state/accent in the ERP UI. */
.erp-alert-ok,
.erp-badge-ok,
.erp-health-value.is-ok,
.erp-health-item.is-ok,
.erp-status-ok,
.erp-pill-green,
.erp-role-actor--biuro,
.erp-nfc-preview-dot.is-ok{color:var(--trax-orange-dark)!important}
.erp-health-item.is-ok::before,
.erp-stats-colbar.is-oplacone,
.erp-stats-colbar.is-ukonczyl,
.erp-nfc-preview-dot.is-ok{background:var(--trax-orange)!important}
.erp-alert-ok,
.erp-badge-ok,
.erp-pill-green{background:var(--trax-orange-soft)!important;border-color:rgba(243,107,33,.35)!important}
.erp-btn-green{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important;color:#fff!important}
.erp-btn-green:hover{background:#d95413!important;border-color:#d95413!important}

/* Primary controls */
.erp-btn-primary{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important;color:#fff!important;box-shadow:none!important}
.erp-btn-primary:hover{background:#d95413!important;border-color:#d95413!important}
.erp-btn:focus-visible,.erp-field input:focus,.erp-field select:focus,.erp-field textarea:focus{outline:2px solid rgba(243,107,33,.32)!important;outline-offset:1px!important;border-color:var(--trax-orange)!important;box-shadow:none!important}
input[type="checkbox"],input[type="radio"]{accent-color:var(--trax-orange)!important}

/* Native file inputs: remove the browser-default unfinished look. */
input[type="file"]{width:100%;min-height:46px;padding:5px 8px;border:1px solid var(--trax-line);border-radius:10px;background:#fff;color:var(--trax-gray)}
input[type="file"]::file-selector-button{height:34px;margin-right:10px;padding:0 14px;border:0;border-radius:7px;background:var(--trax-black);color:#fff;font-weight:750;cursor:pointer}
input[type="file"]::file-selector-button:hover{background:var(--trax-orange)}

/* Header + side navigation */
.erp-top{background:#fff!important;border-bottom:1px solid var(--trax-line)!important;box-shadow:0 1px 0 rgba(17,24,39,.03)!important}
.erp-menubtn{background:var(--trax-black)!important;border-color:var(--trax-black)!important;color:#fff!important;min-width:92px!important}
.erp-menubtn:hover{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important}
.trax-menu-glyph{border-color:currentColor!important}
.erp-side{background:#fff!important;border-right:1px solid var(--trax-line)!important}
.erp-user{background:var(--trax-soft)!important}
.erp-navitem{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto;gap:10px!important;align-items:center!important;color:#2d333b!important}
.erp-navitem>span:not(.erp-tag){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp-navitem .erp-tag{justify-self:end;margin-left:4px;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f2f3f5!important;color:#7a828d!important;border:1px solid #e0e3e7!important;font-size:9px!important}
.erp-navitem:hover{background:#f7f7f8!important;color:#111!important}
.erp-navitem.is-active{background:var(--trax-orange-soft)!important;color:#8e3107!important;box-shadow:inset 3px 0 0 var(--trax-orange)!important}
.erp-navitem.is-danger{color:#b42318!important}
.erp-navitem.is-danger:hover{background:#fff1ef!important}
.trax-nav-icon,.trax-icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;color:var(--trax-orange)}
.erp-navitem.is-active .trax-nav-icon{color:var(--trax-orange)}

/* Desktop menu button now collapses the sidebar for real. */
@media(min-width:980px){
  body.erp-desktop-menu-hidden .erp-side{display:none!important}
  body.erp-desktop-menu-hidden .erp-main{width:100%!important;max-width:none!important}
  body.erp-desktop-menu-hidden .erp-shell{display:block!important}
}

/* Dashboard: one icon language, no green, no pastel-green tiles. */
.erp-dashboard-tiles{gap:14px!important}
.erp-tile{border:1px solid var(--trax-line)!important;background:#fff!important;box-shadow:0 1px 2px rgba(17,24,39,.04)!important;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease!important}
.erp-tile:hover{border-color:rgba(243,107,33,.45)!important;box-shadow:0 7px 20px rgba(17,24,39,.07)!important;transform:translateY(-1px)}
.erp-tile-icon{background:#fff7f2!important;border:1px solid rgba(243,107,33,.28)!important;color:var(--trax-orange)!important}
.erp-tile-icon svg{width:25px!important;height:25px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.erp-tile-title{color:#1f2328!important}

/* Cards/forms */
.erp-card{border-color:var(--trax-line)!important;box-shadow:0 1px 3px rgba(17,24,39,.035)!important}
.erp-cardhead{background:#fff!important}
.erp-field>span,.erp-field>label{color:#515c6b!important}
.erp-muted,.erp-small{color:#667384!important}
.erp-pageintro .erp-muted,.erp-pageintro p{max-width:920px}
.erp-pageintro{margin-bottom:16px!important}

/* Map controls + active toggle state */
.erp-maptoolbar .erp-btn.is-on,
.erp-maptoolbar .erp-btn[aria-pressed="true"],
#erpLiveTrackToggleTagLabels.is-on,
#erpLiveTrackToggleCrewLabels.is-on,
#erpCrewTrackToggleTags.is-on,
#erpCrewTrackToggleRoute.is-on{border-color:var(--trax-orange)!important;background:var(--trax-orange-soft)!important;color:#8e3107!important;box-shadow:0 0 0 2px rgba(243,107,33,.08)!important}

/* Map symbols: shared style for the actual markers and legends. */
.trax-map-symbol{width:24px;height:24px;display:inline-grid;place-items:center;color:var(--trax-orange);flex:0 0 24px}
.trax-map-symbol svg{width:22px;height:22px;display:block;fill:#fff;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.16))}
.trax-map-symbol.is-dark svg{fill:var(--trax-black);stroke:var(--trax-orange)}
.trax-map-symbol.is-orange svg{fill:var(--trax-orange);stroke:var(--trax-black)}
.trax-map-symbol.is-outline svg{fill:#fff;stroke:var(--trax-orange)}
.trax-map-symbol text{fill:var(--trax-black);stroke:none;font:800 7px/1 system-ui,sans-serif}
.erp-live-legend{display:flex!important;flex-wrap:wrap!important;gap:10px 18px!important;padding:11px 14px!important;border:1px solid var(--trax-line)!important;border-radius:12px!important;background:#fff!important}
.erp-live-legend-item{display:flex!important;align-items:center!important;gap:7px!important;min-height:28px!important;font-weight:700!important;color:#2e343c!important}
.erp-live-legend-swatch{width:26px!important;height:26px!important;display:grid!important;place-items:center!important}
.erp-live-legend-swatch>svg{width:24px!important;height:24px!important}

/* Leaflet markers */
.trax-leaflet-marker{width:30px;height:30px;display:grid;place-items:center;position:relative;transform:translateZ(0)}
.trax-leaflet-marker svg{width:28px;height:28px;overflow:visible;fill:#fff;stroke:var(--trax-orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px rgba(0,0,0,.28))}
.trax-leaflet-marker.is-dark svg{fill:var(--trax-black);stroke:var(--trax-orange)}
.trax-leaflet-marker.is-orange svg{fill:var(--trax-orange);stroke:var(--trax-black)}
.trax-leaflet-marker text{fill:var(--trax-black);stroke:none;font:900 7px/1 system-ui,sans-serif}
.trax-leaflet-marker.crew{width:36px;height:40px}
.trax-leaflet-marker.crew svg{width:34px;height:34px}
.trax-leaflet-marker.crew .erp-map-pinlabel{bottom:36px!important}
.erp-map-pinlabel{background:rgba(23,23,23,.92)!important;color:#fff!important;border-radius:6px!important;padding:4px 7px!important;font-size:10px!important;font-weight:750!important}

/* Old map keys are forced into the new TRAX palette in any legacy view. */
.trax-map-key.stage,.erp-map-icon.stage,.erp-map-legend .dot.stage{background:var(--trax-black)!important;border-color:var(--trax-orange)!important}
.trax-map-key.os,.erp-map-icon.os{background:var(--trax-orange)!important;border-color:var(--trax-black)!important}
.trax-map-key.oscp,.erp-map-icon.oscp{background:#fff!important;border-color:var(--trax-orange)!important}
.trax-map-key.cp,.erp-map-icon.cp,.erp-map-legend .dot.cp{background:var(--trax-orange)!important;border-color:#fff!important;box-shadow:0 0 0 1px var(--trax-black)!important}
.trax-map-key.user,.erp-map-icon.user{border-color:var(--trax-orange)!important;box-shadow:0 0 0 1px var(--trax-black)!important}

/* Login — deliberately minimal. */
.erp-login-body{min-height:100dvh;background:radial-gradient(circle at 50% 0,rgba(243,107,33,.14),transparent 35%),#151515!important;overflow:auto!important}
.trax-login-shell{min-height:100dvh!important;display:grid!important;place-items:center!important;padding:28px 16px!important;background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px)!important;background-size:36px 36px!important}
.trax-login-simple{width:min(430px,100%);display:grid;gap:18px;text-align:center}
.trax-login-brand{display:grid;place-items:center;gap:12px}.trax-login-brand>img{width:min(260px,68vw);filter:brightness(0) invert(1);display:block}
.trax-login-card{width:100%!important;background:#fff!important;border:0!important;border-top:4px solid var(--trax-orange)!important;border-radius:14px!important;padding:28px!important;box-shadow:0 22px 65px rgba(0,0,0,.28)!important;text-align:left}
.trax-login-card h1{font-size:24px;margin:0 0 18px;color:#1f2328}
.trax-login-input{border:1px solid #d5dae1!important;border-radius:9px!important;background:#fff!important}
.trax-login-input:focus-within{border-color:var(--trax-orange)!important;box-shadow:0 0 0 3px rgba(243,107,33,.10)!important}
.trax-login-input-icon{color:var(--trax-orange)!important}
.trax-login-powered{display:flex;align-items:center;justify-content:center;gap:10px;color:#adb4bd;font-size:11px;letter-spacing:.04em}
.trax-login-powered img{height:28px;width:auto;max-width:170px;object-fit:contain}
.trax-login-version{color:#808894!important;margin-top:12px!important}

@media(max-width:979px){
  .erp-navitem{grid-template-columns:22px minmax(0,1fr) auto!important}
  .erp-side{width:min(88vw,330px)!important}
  .erp-live-legend{display:none!important}
}
@media(max-width:520px){
  .trax-login-card{padding:22px 18px!important}
  .erp-tile{min-height:74px!important}
  .erp-tile-icon{width:44px!important;height:44px!important}
  input[type="file"]{font-size:12px}
}

/* Static helper prose in card headers was visually noisy. Dynamic status text (with IDs) stays visible. */
.erp-cardhead .erp-muted:not([id]){display:none!important}

/* Remaining functional SVG buttons follow the same icon language. */
.erp-btn-with-icon svg,
.erp-backbtn svg,
.erp-actionicon svg,
.erp-iconbtn svg{width:19px!important;height:19px!important;fill:none!important;stroke:var(--trax-orange)!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.erp-btn-primary.erp-btn-with-icon svg{stroke:#fff!important}
.erp-btn-blue{background:#fff!important;border-color:#d4d9df!important;color:#252a31!important}
.erp-btn-blue:hover{background:var(--trax-orange-soft)!important;border-color:rgba(243,107,33,.45)!important;color:#8e3107!important}

/* TRAX ERP 3.0.10 — full GUI audit */
:root{
  --trax-orange:#f36b21;
  --trax-orange-hover:#d95413;
  --trax-orange-soft:#fff4ed;
  --trax-black:#181818;
  --trax-text:#20242a;
  --trax-muted:#687383;
  --trax-line:#d9dee5;
  --trax-surface:#ffffff;
  --trax-bg:#f4f6f8;
}
html,body{background:var(--trax-bg)!important;color:var(--trax-text)!important}

/* Crisp single-source SVG icon system */
.trax-nav-icon,.trax-icon,.erp-tile-icon svg,.erp-btn svg,.erp-iconbtn svg,.erp-backbtn svg{
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;shape-rendering:geometricPrecision!important;
}
.trax-nav-icon,.trax-icon{color:var(--trax-orange)!important}
.erp-tile-icon{background:#fff7f2!important;border:1px solid #f5c8ae!important;color:var(--trax-orange)!important;border-radius:12px!important}
.erp-tile:hover .erp-tile-icon{background:var(--trax-orange)!important;color:#fff!important;border-color:var(--trax-orange)!important}

/* Switches / checkboxes in modals — compact, intentional, never full-width native checkbox. */
.erp-toggle-field{display:flex!important;align-items:center!important;gap:12px!important;min-height:48px!important;padding:10px 12px!important;border:1px solid var(--trax-line)!important;border-radius:10px!important;background:#fff!important;cursor:pointer!important}
.erp-toggle-field:has(input:disabled){opacity:.62;cursor:default!important}
.erp-toggle-control{position:relative!important;display:inline-flex!important;flex:0 0 42px!important;width:42px!important;height:24px!important}
.erp-toggle-control input{position:absolute!important;inset:0!important;width:42px!important;height:24px!important;margin:0!important;opacity:0!important;cursor:pointer!important;z-index:2!important}
.erp-toggle-slider{position:absolute!important;inset:0!important;border:1px solid #cbd2db!important;background:#e8ebef!important;border-radius:999px!important;transition:.16s ease!important}
.erp-toggle-slider::after{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:.16s ease}
.erp-toggle-control input:checked + .erp-toggle-slider{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important}
.erp-toggle-control input:checked + .erp-toggle-slider::after{transform:translateX(18px)}
.erp-toggle-control input:focus-visible + .erp-toggle-slider{outline:3px solid rgba(243,107,33,.18)!important;outline-offset:2px!important}
.erp-toggle-label{font-size:13px!important;font-weight:750!important;color:#303740!important;line-height:1.25!important}
.erp-checkrow{border:1px solid var(--trax-line)!important;background:#fff!important;border-radius:10px!important;padding:11px 12px!important}
.erp-checkrow input[type="checkbox"]{width:18px!important;height:18px!important;flex:0 0 18px!important;margin:1px 0 0!important;accent-color:var(--trax-orange)!important}
.erp-checkrow small{display:none!important}

/* Remove implementation prose from normal working screens. Help keeps its own text. */
.erp-pageintro p{display:none!important}
.erp-cardhead .erp-muted:not([id]){display:none!important}
.erp-cardhead .erp-small:not([id]){display:none!important}
.erp-view[data-view="recovery_import"] .erp-cardhead .erp-muted:not([id]),
.erp-view[data-view="messages"] .erp-cardhead .erp-muted:not([id]){display:none!important}

/* Login: light, centered, color logo, no marketing copy. */
.erp-login-body{margin:0!important;min-height:100dvh!important;background:
  radial-gradient(circle at 50% -10%,rgba(243,107,33,.17),transparent 36%),
  linear-gradient(180deg,#ffffff 0%,#f5f6f8 58%,#eef1f4 100%)!important;overflow:auto!important}
.trax-login-shell{min-height:100dvh!important;display:grid!important;place-items:center!important;padding:28px 16px!important;background-image:
  linear-gradient(rgba(24,24,24,.025) 1px,transparent 1px),
  linear-gradient(90deg,rgba(24,24,24,.025) 1px,transparent 1px)!important;background-size:32px 32px!important}
.trax-login-simple{width:min(410px,100%)!important;display:grid!important;gap:16px!important;text-align:center!important}
.trax-login-brand{display:grid!important;place-items:center!important;margin-bottom:2px!important}
.trax-login-brand>img{width:min(290px,72vw)!important;height:auto!important;filter:none!important;display:block!important}
.trax-login-card{width:100%!important;background:#fff!important;border:1px solid #dde2e8!important;border-top:3px solid var(--trax-orange)!important;border-radius:16px!important;padding:28px!important;box-shadow:0 16px 44px rgba(31,38,46,.10)!important;text-align:left!important}
.trax-login-card h1{font-size:22px!important;line-height:1.2!important;margin:0 0 18px!important;color:var(--trax-black)!important;text-align:center!important}
.trax-login-powered{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;color:#7c8591!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important;margin-top:2px!important}
.trax-login-powered img{height:30px!important;width:auto!important;max-width:165px!important;object-fit:contain!important;filter:none!important}
.trax-login-version{text-align:center!important;color:#969daa!important;margin-top:13px!important;font-size:10px!important}
.trax-login-input{grid-template-columns:30px 1fr!important;min-height:46px!important;border:1px solid #d5dbe3!important;border-radius:10px!important;background:#fff!important;padding-left:10px!important}
.trax-login-input:focus-within{border-color:var(--trax-orange)!important;box-shadow:0 0 0 3px rgba(243,107,33,.10)!important}
.trax-login-submit{height:46px!important;border-radius:9px!important}

/* Map icon family: clean, monochrome/orange and lightweight. */
.trax-map-symbol,.trax-leaflet-marker{color:var(--trax-orange)!important}
.trax-map-symbol svg,.trax-leaflet-marker svg{fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:none!important}
.trax-map-symbol.is-dark,.trax-leaflet-marker.is-dark{color:var(--trax-black)!important}
.trax-map-symbol.is-orange,.trax-leaflet-marker.is-orange{color:var(--trax-orange)!important}
.trax-map-symbol.is-outline,.trax-leaflet-marker.is-outline{color:var(--trax-orange)!important}
.trax-map-symbol{width:22px!important;height:22px!important}
.trax-map-symbol svg{width:20px!important;height:20px!important}
.trax-leaflet-marker{width:28px!important;height:28px!important;border-radius:8px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(24,24,24,.18)!important;box-shadow:0 2px 6px rgba(0,0,0,.18)!important}
.trax-leaflet-marker svg{width:19px!important;height:19px!important}
.trax-leaflet-marker.is-dark{background:var(--trax-black)!important;color:#fff!important;border-color:var(--trax-black)!important}
.trax-leaflet-marker.is-orange{background:var(--trax-orange)!important;color:#fff!important;border-color:var(--trax-orange)!important}
.trax-leaflet-marker.crew{width:34px!important;height:34px!important;border-radius:50%!important;background:#fff!important;color:var(--trax-orange)!important;border:2px solid var(--trax-orange)!important}
.trax-leaflet-marker.crew svg{width:21px!important;height:21px!important}
.trax-marker-number{position:absolute!important;right:-7px!important;top:-7px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;display:grid!important;place-items:center!important;border-radius:999px!important;background:var(--trax-black)!important;color:#fff!important;border:2px solid #fff!important;font-size:8px!important;font-weight:850!important;line-height:1!important}
.erp-live-legend{gap:8px 15px!important;padding:9px 12px!important}
.erp-live-legend-item{font-size:12px!important;font-weight:700!important}
.erp-map-legend{border:1px solid var(--trax-line)!important;background:rgba(255,255,255,.95)!important;box-shadow:0 5px 16px rgba(0,0,0,.10)!important;border-radius:10px!important}
.erp-map-legend .row{display:flex!important;align-items:center!important;gap:7px!important;color:#313943!important;font-size:11px!important;font-weight:700!important}

/* No green state in runtime — success/active = orange, neutral status = black/gray. */
.erp-pill-green,.erp-alert-ok,.erp-badge-ok,.erp-health-value.is-ok,.erp-health-item.is-ok,.erp-status-ok,.erp-chip.is-ok{color:#8e3107!important;background:#fff4ed!important;border-color:#f2b995!important}
.erp-btn-green{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important;color:#fff!important}
.erp-btn-green:hover{background:var(--trax-orange-hover)!important;border-color:var(--trax-orange-hover)!important}
.erp-stats-colbar.is-oplacone,.erp-stats-colbar.is-ukonczyl,.erp-health-item.is-ok::before{background:var(--trax-orange)!important}

/* Sidebar stability with role tags. */
.erp-navitem{grid-template-columns:22px minmax(0,1fr) max-content!important}
.erp-navitem>span:not(.erp-tag){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.erp-navitem .erp-tag{max-width:62px!important;padding:2px 5px!important;font-size:8px!important;line-height:1.2!important}

/* Form polish. */
.erp-field input,.erp-field select,.erp-field textarea,.erp-select{border-color:#d5dbe3!important;border-radius:9px!important;background:#fff!important}
input[type="file"]{min-height:46px!important;padding:5px 7px!important;border:1px solid #d5dbe3!important;border-radius:9px!important;background:#fff!important}
input[type="file"]::file-selector-button{height:34px!important;border-radius:7px!important;background:var(--trax-black)!important;color:#fff!important;font-weight:750!important}
input[type="file"]::file-selector-button:hover{background:var(--trax-orange)!important}

@media(max-width:520px){
  .trax-login-card{padding:22px 18px!important}
  .trax-login-brand>img{width:min(245px,76vw)!important}
  .trax-login-powered img{max-width:145px!important;height:27px!important}
  .erp-toggle-field{min-height:46px!important}
}
.erp-nfc-beta-pill.is-ok{background:#fff4ed!important;border-color:#f2b995!important;color:#8e3107!important}

/* 3.0.10 ICON PACK FINAL OVERRIDE — UI Basic outline supplied by the user. */
.trax-nav-icon,.trax-icon,.trax-action-icon,
.erp-tile-icon svg,.erp-btn svg,.erp-iconbtn svg,.erp-backbtn svg,
.trax-login-input-icon,.trax-map-symbol svg,.trax-leaflet-marker svg{
  fill:currentColor!important;
  stroke:none!important;
  shape-rendering:geometricPrecision!important;
}
.trax-nav-icon,.trax-icon{width:19px!important;height:19px!important;color:var(--trax-orange)!important;flex:0 0 19px!important}
.trax-action-icon{width:16px!important;height:16px!important;flex:0 0 16px!important}
.erp-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
.erp-btn svg{width:16px!important;height:16px!important;color:currentColor!important}
.erp-btn-primary svg,.erp-btn-danger:hover svg{color:currentColor!important}
.erp-tile-icon svg{width:25px!important;height:25px!important;color:currentColor!important}
.erp-tile:hover .erp-tile-icon{color:#fff!important}
.erp-navitem.is-active .trax-nav-icon{color:var(--trax-orange)!important}

/* Map symbols from the same icon pack. */
.trax-map-symbol svg{width:20px!important;height:20px!important;color:currentColor!important;filter:none!important}
.trax-leaflet-marker svg{width:18px!important;height:18px!important;color:currentColor!important;filter:none!important}
.trax-leaflet-marker{display:grid!important;place-items:center!important;background:#fff!important;color:var(--trax-orange)!important;border:1.5px solid var(--trax-orange)!important;border-radius:9px!important;box-shadow:0 2px 7px rgba(0,0,0,.18)!important}
.trax-leaflet-marker.is-dark{background:var(--trax-black)!important;color:#fff!important;border-color:var(--trax-black)!important}
.trax-leaflet-marker.is-orange{background:var(--trax-orange)!important;color:#fff!important;border-color:var(--trax-orange)!important}
.trax-leaflet-marker.is-outline{background:#fff!important;color:var(--trax-orange)!important;border-color:var(--trax-orange)!important}
.trax-leaflet-marker.crew{border-radius:50%!important;border-width:2px!important;background:#fff!important;color:var(--trax-orange)!important}
.trax-map-symbol.is-dark{color:var(--trax-black)!important}
.trax-map-symbol.is-orange{color:var(--trax-orange)!important}
.trax-map-symbol.is-outline{color:var(--trax-orange)!important}
.erp-live-legend-swatch>svg{fill:currentColor!important;stroke:none!important}

/* Login — intentionally simple, light and centered. */
.erp-login-body{background:linear-gradient(180deg,#fff 0%,#f7f8fa 55%,#eef1f4 100%)!important}
.trax-login-shell{background-image:radial-gradient(circle at 50% -12%,rgba(243,107,33,.13),transparent 36%),linear-gradient(rgba(24,24,24,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(24,24,24,.018) 1px,transparent 1px)!important;background-size:auto,34px 34px,34px 34px!important}
.trax-login-simple{width:min(420px,100%)!important}
.trax-login-brand>img{width:min(300px,74vw)!important;filter:none!important}
.trax-login-card{border-top:3px solid var(--trax-orange)!important;box-shadow:0 16px 46px rgba(31,38,46,.09)!important}
.trax-login-input-icon{width:19px!important;height:19px!important;color:var(--trax-orange)!important}
.trax-login-powered{justify-self:center;background:#222!important;border-radius:10px!important;padding:6px 10px!important;color:#c8ced6!important;text-transform:none!important;letter-spacing:0!important}
.trax-login-powered img{height:24px!important;max-width:145px!important}

/* Compact, normal switch for modal boolean fields. */
.erp-toggle-field{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:auto!important;min-height:42px!important;padding:8px 10px!important;border:1px solid var(--trax-line)!important;border-radius:9px!important;background:#fafbfc!important}
.erp-toggle-control{flex:0 0 38px!important;width:38px!important;height:22px!important}
.erp-toggle-control input{width:38px!important;height:22px!important}
.erp-toggle-slider::after{width:16px!important;height:16px!important;left:2px!important;top:2px!important}
.erp-toggle-control input:checked + .erp-toggle-slider::after{transform:translateX(16px)!important}
.erp-toggle-label{font-size:12px!important;font-weight:750!important}

/* Keep work screens terse. Help is the place for prose. */
.erp-desc{display:none!important}
.erp-view:not([data-view="help"]) .erp-cardhead .erp-muted:not([id]),
.erp-view:not([data-view="help"]) .erp-cardhead .erp-small:not([id]){display:none!important}
.erp-view:not([data-view="help"]) .erp-nfc-tool-help>.erp-muted:not([id]),
.erp-view:not([data-view="help"]) .erp-nfc-tool-help>.erp-small:not([id]){display:none!important}

/* Sidebar: role tags never push or wrap navigation labels. */
.erp-navitem{grid-template-columns:20px minmax(0,1fr) auto!important;column-gap:9px!important}
.erp-navitem .erp-tag{max-width:54px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;padding:2px 4px!important}

/* No green accent anywhere. */
.erp-pill-green,.erp-alert-ok,.erp-badge-ok,.erp-health-value.is-ok,.erp-health-item.is-ok,.erp-status-ok,.erp-chip.is-ok,.erp-nfc-beta-pill.is-ok{color:#8e3107!important;background:#fff4ed!important;border-color:#f2b995!important}
.erp-health-item.is-ok::before,.erp-stats-colbar.is-oplacone,.erp-stats-colbar.is-ukonczyl,.erp-nfc-preview-dot.is-ok{background:var(--trax-orange)!important}
.erp-btn-green{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important;color:#fff!important}
.erp-btn-blue,.erp-btn-purple{background:#fff!important;border-color:#d5dbe3!important;color:#252a31!important}
.erp-btn-blue:hover,.erp-btn-purple:hover{background:var(--trax-orange-soft)!important;border-color:#f1b996!important;color:#8e3107!important}

@media(max-width:520px){
  .trax-login-powered{padding:5px 9px!important}
  .trax-login-powered img{height:22px!important;max-width:132px!important}
  .erp-navitem .erp-tag{max-width:46px!important}
}


/* 3.0.10 final GUI audit — supplied UI Basic outline icon pack */
.trax-nav-icon,.trax-icon,.trax-action-icon,.trax-severity-icon,.trax-bk-icon,.trax-camera-pack,
.erp-tile-icon svg,.erp-btn svg,.erp-iconbtn svg,.erp-backbtn svg,.trax-login-input-icon,.trax-map-symbol svg,.trax-leaflet-marker svg{
  fill:currentColor!important;stroke:none!important;shape-rendering:geometricPrecision!important;
}
.trax-camera-pack{width:20px!important;height:20px!important;color:var(--trax-orange)!important}
.erp-photoicon.is-off .trax-camera-pack{opacity:.32!important}
.erp-flag-severity-icon{display:inline-grid!important;place-items:center!important;width:26px!important;height:26px!important;border-radius:8px!important;border:1px solid #e1e5ea!important;background:#fff!important;color:var(--trax-orange)!important}
.erp-flag-severity-icon .trax-severity-icon{width:17px!important;height:17px!important}
.erp-flag-severity-icon.is-danger{color:#a12a1e!important;border-color:#efc1bc!important;background:#fff6f4!important}
.erp-flag-severity-icon.is-warn{color:var(--trax-orange)!important;border-color:#f4c19f!important;background:#fff7f2!important}
.erp-flag-severity-icon.is-ok{color:var(--trax-orange)!important;border-color:#f4c19f!important;background:#fff7f2!important}
.erp-flag-severity-icon.is-info{color:#454b54!important;border-color:#d7dce2!important;background:#f8f9fa!important}
.erp-crew-bk-icon{display:grid!important;place-items:center!important}
.erp-crew-bk-icon .trax-bk-icon{width:14px!important;height:14px!important;fill:currentColor!important}
.erp-iconbtn-pack{width:40px!important;min-width:40px!important;padding:0!important}
.erp-iconbtn-pack svg{width:17px!important;height:17px!important}
/* There are no secondary tutorial sentences on operational screens. */
.erp-live-tagpanel-head>span,.erp-gpsedit-help,.erp-crew-result-subhead-desc:empty{display:none!important}
.erp-crew-result-subhead-desc{display:none!important}
/* Raw native checkboxes remain compact when a custom switch is not appropriate. */
input[type="checkbox"]{accent-color:var(--trax-orange)}
/* File controls are part of the same UI, not browser-default chrome. */
input[type="file"]{min-height:44px!important;padding:5px!important;border:1px solid var(--trax-line)!important;border-radius:9px!important;background:#fff!important;color:#3a414a!important}
input[type="file"]::file-selector-button{margin-right:10px!important;border:0!important;border-radius:7px!important;padding:0 14px!important;height:32px!important;background:var(--trax-black)!important;color:#fff!important;font:750 12px/1 system-ui!important;cursor:pointer!important}
input[type="file"]::file-selector-button:hover{background:var(--trax-orange)!important}
/* Desktop menu button remains visible and useful; collapsed state is intentional. */
@media(min-width:980px){
  .erp-menubtn{display:inline-flex!important}
  body.erp-desktop-menu-hidden .erp-side{display:none!important}
  body.erp-desktop-menu-hidden .erp-main{max-width:none!important;width:100%!important}
}
/* Remove legacy hand-drawn icon widgets from rendering. */
.trax-mini-icon,.trax-camera-icon,.trax-eye{display:none!important}
/* Full TRAX map language: black / white / orange only. */
.trax-leaflet-marker{background:#fff!important;border-color:var(--trax-orange)!important;color:var(--trax-orange)!important}
.trax-leaflet-marker.is-dark{background:var(--trax-black)!important;border-color:var(--trax-black)!important;color:#fff!important}
.trax-leaflet-marker.is-orange{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important;color:#fff!important}
.trax-map-symbol.is-dark{color:var(--trax-black)!important}.trax-map-symbol.is-orange,.trax-map-symbol.is-outline{color:var(--trax-orange)!important}
/* Login is deliberately light and minimal. */
.erp-login-body{background:#f5f6f8!important}
.trax-login-shell{background:radial-gradient(circle at 50% 0,rgba(243,107,33,.11),transparent 38%),linear-gradient(rgba(24,24,24,.017) 1px,transparent 1px),linear-gradient(90deg,rgba(24,24,24,.017) 1px,transparent 1px)!important;background-size:auto,34px 34px,34px 34px!important}
.trax-login-brand>img{filter:none!important}
.trax-login-card{box-shadow:0 14px 38px rgba(31,38,46,.08)!important}

/* ===== 3.0.10 UX / operations pass ===== */
/* Login: one centered column. Older two-column grid from erp.css must not survive. */
.trax-login-shell{grid-template-columns:1fr!important;justify-items:center!important;align-items:center!important}
.trax-login-simple{margin:auto!important;align-self:center!important;justify-self:center!important}
.trax-login-brand>img{width:min(300px,72vw)!important}
.trax-login-powered{margin-top:2px!important}

/* Smooth desktop sidebar collapse instead of display:none jump. */
@media(min-width:980px){
  .erp-shell{overflow-x:clip!important}
  .erp-side{transition:width .28s cubic-bezier(.22,.61,.36,1),min-width .28s cubic-bezier(.22,.61,.36,1),padding .28s ease,opacity .18s ease,border-color .2s ease!important}
  .erp-main{transition:width .28s cubic-bezier(.22,.61,.36,1),padding .28s ease!important}
  body.erp-desktop-menu-hidden .erp-side{display:flex!important;width:0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;border-right-color:transparent!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
  body.erp-desktop-menu-hidden .erp-main{width:100%!important;max-width:none!important}
}

/* Live map: legend is the control. */
.erp-live-filterbar{align-items:center!important;gap:8px!important;margin-bottom:12px!important}
.erp-live-filterbar .erp-live-legend-item{appearance:none;border:1px solid #d9dee5;background:#fff;border-radius:10px;padding:6px 10px;cursor:pointer;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease,opacity .14s ease;color:#333!important;font:700 12px/1.2 system-ui,sans-serif}
.erp-live-filterbar .erp-live-legend-item:hover{border-color:rgba(243,107,33,.55);background:#fff9f5}
.erp-live-filterbar .erp-live-legend-item.is-on,.erp-live-filterbar .erp-live-legend-item[aria-pressed="true"]{border-color:var(--trax-orange)!important;background:var(--trax-orange-soft)!important;box-shadow:inset 0 0 0 1px rgba(243,107,33,.14)!important;color:#7d2c08!important}
.erp-live-filterbar .erp-live-legend-item:not(.is-on)[data-live-layer]{opacity:.48;filter:grayscale(.35)}
.erp-live-filter-sep{width:1px;height:28px;background:#dfe3e8;margin:0 2px}
.trax-inline-icon{width:18px;height:18px;fill:currentColor!important;flex:0 0 18px}
@media(max-width:720px){.erp-live-filter-sep{display:none}.erp-live-filterbar .erp-live-legend-item{flex:1 1 calc(50% - 8px);justify-content:flex-start!important}.erp-live-legend{display:flex!important}}

/* Progressive, fully styled select popup on modern Chromium; graceful native fallback elsewhere. */
.erp-select,select{background:#fff;color:#232830;border:1px solid #d5dbe3;border-radius:9px;min-height:42px}
select option{background:#fff;color:#232830;padding:9px 12px}
select option:checked{background:#fff1e8;color:#8a3007}
@supports (appearance: base-select){
  select,.erp-select{appearance:base-select!important;background:#fff!important}
  select::picker-icon{color:var(--trax-orange);transition:rotate .16s ease}
  select:open::picker-icon{rotate:180deg}
  ::picker(select){appearance:base-select;border:1px solid #d7dce3;border-radius:10px;background:#fff;box-shadow:0 12px 36px rgba(25,30,36,.16);padding:5px;margin-top:5px}
  option{border-radius:7px;padding:9px 11px;margin:1px 0;transition:background .12s ease,color .12s ease}
  option:hover,option:focus{background:#fff3eb;color:#7d2c08}
  option:checked{background:var(--trax-orange);color:#fff}
  option::checkmark{display:none}
}

/* Audit readability */
.erp-audit-action{font-weight:800;color:#222}
.erp-audit-meta{margin:0}.erp-audit-meta summary{cursor:pointer;color:#7d2c08;font-weight:700;list-style:none;display:inline-flex;align-items:center;gap:6px}.erp-audit-meta summary::-webkit-details-marker{display:none}.erp-audit-meta summary:before{content:'+';width:18px;height:18px;display:grid;place-items:center;border:1px solid #e3b18f;border-radius:5px;background:#fff7f2}.erp-audit-meta[open] summary:before{content:'–'}.erp-audit-meta-grid{display:grid;grid-template-columns:minmax(120px,.45fr) 1fr;gap:5px 10px;margin-top:8px;padding:9px;border:1px solid #e2e6eb;border-radius:8px;background:#fafbfc;max-width:520px}.erp-audit-meta-key{color:#667384;font-size:11px}.erp-audit-meta-val{word-break:break-word;font-size:11px;color:#2f353d}

/* Help kept current and operational rather than tutorial-heavy. */
.erp-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.erp-help-list{margin:0;padding-left:18px}.erp-help-list li{margin:0 0 9px;line-height:1.48}.erp-help-list li:last-child{margin-bottom:0}@media(max-width:780px){.erp-help-grid{grid-template-columns:1fr}}

/* Prevent browser autofill look from contaminating configuration search. */
#erpCfgSearch{background:#fff!important;color:#242a31!important}
/* Login footer is intentionally plain on a light background. */
.trax-login-powered{background:transparent!important;border-radius:0!important;padding:0!important;color:#707985!important;text-transform:none!important;letter-spacing:0!important}
.trax-login-powered img{height:25px!important;max-width:155px!important}
/* Tracking pojedynczej załogi: stan przełączników jest wizualny, bez tekstu ON/OFF. */
.erp-map-toggle{transition:border-color .14s ease,background .14s ease,box-shadow .14s ease,opacity .14s ease!important}
.erp-map-toggle.is-on{border-color:var(--trax-orange)!important;background:var(--trax-orange-soft)!important;color:#7d2c08!important;box-shadow:inset 0 0 0 1px rgba(243,107,33,.14)!important}


/* ===== 3.0.12 corrections ===== */
/* Desktop sidebar: keep the shell flex at every point of the collapse animation. */
@media(min-width:980px){
  .erp-shell{display:flex!important;align-items:flex-start!important}
  .erp-main{flex:1 1 auto!important;min-width:0!important;width:auto!important}
  body.erp-desktop-menu-hidden .erp-shell{display:flex!important;align-items:flex-start!important}
  body.erp-desktop-menu-hidden .erp-side{display:flex!important;flex:0 0 0!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding-left:0!important;padding-right:0!important;border-right-width:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
  body.erp-desktop-menu-hidden .erp-main{flex:1 1 100%!important;width:auto!important;max-width:none!important}
}

/* Selects: restore the familiar closed control while retaining the refined picker. */
.erp-field select{height:48px!important;padding:0 12px!important;border:1px solid #d5dbe3!important;border-radius:9px!important;background:#fff!important;color:#111827!important;box-shadow:0 1px 0 rgba(17,24,39,.03)!important}
.erp-select{min-height:42px!important;padding:0 12px!important;border:1px solid #d5dbe3!important;border-radius:9px!important;background:#fff!important;color:#232830!important;box-shadow:none!important}
@supports (appearance: base-select){
  select,.erp-select{appearance:base-select!important;align-items:center!important;justify-content:space-between!important;font:inherit!important}
  .erp-field select{height:48px!important;min-height:48px!important}
  .erp-select:not(.erp-field select){min-height:42px!important}
  select::picker-icon{color:#7b838e!important;margin-left:auto!important;transition:rotate .16s ease!important}
  select:open::picker-icon{rotate:180deg}
  ::picker(select){appearance:base-select;border:1px solid #d7dce3;border-radius:10px;background:#fff;box-shadow:0 12px 36px rgba(25,30,36,.16);padding:5px;margin-top:5px}
  option{border-radius:7px;padding:9px 11px;margin:1px 0;background:#fff;color:#232830}
  option:hover,option:focus{background:#fff3eb;color:#7d2c08}
  option:checked{background:var(--trax-orange);color:#fff}
  option::checkmark{display:none}
}

/* Audit = module + human action. */
.erp-audit-module{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:7px;background:#f5f6f7;border:1px solid #e0e4e8;color:#4c5560;font-size:11px;font-weight:800}
.erp-audit-action{font-weight:800;color:#222}

/* Push status. */
.erp-push-status{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:10px 12px;border:1px solid #e0e4e8;border-radius:10px;background:#fafbfc;color:#343a42;font-size:12px}
.erp-push-state{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid #dfe3e7;background:#fff;font-weight:750}
.erp-push-state.is-ok{border-color:#f1b68f;background:#fff5ef;color:#8c3108}
.erp-push-state.is-bad{border-color:#efc2bd;background:#fff3f1;color:#9f2e24}

/* Full help manual. */
.erp-help-manual{display:grid;gap:10px}
.erp-help-section{border:1px solid var(--trax-line);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(17,24,39,.025)}
.erp-help-section>summary{cursor:pointer;list-style:none;padding:15px 18px;font-weight:850;color:#242a31;display:flex;align-items:center;justify-content:space-between;gap:14px}
.erp-help-section>summary::-webkit-details-marker{display:none}
.erp-help-section>summary::after{content:'+';width:24px;height:24px;display:grid;place-items:center;border:1px solid #e2e5e9;border-radius:7px;color:var(--trax-orange);font-size:18px;line-height:1;background:#fff}
.erp-help-section[open]>summary{border-bottom:1px solid #eceff2;background:#fffaf7}
.erp-help-section[open]>summary::after{content:'–'}
.erp-help-body{padding:15px 18px 18px;color:#46505b;line-height:1.58}
.erp-help-body p{margin:0 0 10px}.erp-help-body p:last-child{margin-bottom:0}.erp-help-body ul,.erp-help-body ol{margin:8px 0 0;padding-left:22px}.erp-help-body li{margin:5px 0}.erp-help-body strong{color:#20252b}

/* 3.0.12: closed selects retain the compact 3.0.9 proportions; only the opened picker is enhanced. */
.erp-field select,.erp-select{height:44px!important;min-height:44px!important;padding:0 12px!important;border:1px solid #d7dee6!important;border-radius:9px!important;background:#fff!important;color:#232830!important;box-shadow:none!important}
@supports (appearance: base-select){
  select,.erp-select{appearance:base-select!important;height:44px!important;min-height:44px!important;padding:0 12px!important;border:1px solid #d7dee6!important;border-radius:9px!important;background:#fff!important;color:#232830!important;box-shadow:none!important}
  select::picker-icon{width:14px!important;height:14px!important;color:#7b838e!important;opacity:.9!important;margin-left:10px!important}
  ::picker(select){appearance:base-select;border:1px solid #d7dce3;border-radius:10px;background:#fff;box-shadow:0 12px 36px rgba(25,30,36,.16);padding:5px;margin-top:5px}
  option{border-radius:7px;padding:9px 11px;margin:1px 0;background:#fff;color:#232830}
  option:hover,option:focus{background:#fff3eb;color:#7d2c08}
  option:checked{background:var(--trax-orange);color:#fff}
  option::checkmark{display:none}
}

/* 3.0.12 final sidebar geometry: collapse horizontally, never below the page. */
@media(min-width:980px){
  .erp-shell{display:flex!important;flex-direction:row!important;align-items:flex-start!important}
  .erp-side{display:flex!important;flex:0 0 264px!important;width:264px!important;min-width:264px!important;max-width:264px!important;transition:flex-basis .28s cubic-bezier(.22,.61,.36,1),width .28s cubic-bezier(.22,.61,.36,1),min-width .28s cubic-bezier(.22,.61,.36,1),max-width .28s cubic-bezier(.22,.61,.36,1),padding .28s ease,opacity .18s ease,border-color .2s ease!important}
  .erp-main{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important}
  body.erp-desktop-menu-hidden .erp-shell{display:flex!important;flex-direction:row!important}
  body.erp-desktop-menu-hidden .erp-side{display:flex!important;flex-basis:0!important;width:0!important;min-width:0!important;max-width:0!important;padding-left:0!important;padding-right:0!important;border-right-color:transparent!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
  body.erp-desktop-menu-hidden .erp-main{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important}
}


/* ===== 3.0.12 messages + staff tracking ===== */
.erp-message-grid-compact{grid-template-columns:160px minmax(260px,1fr) 210px 210px!important;gap:9px 10px!important;align-items:end}
.erp-message-grid-compact>.erp-message-type{grid-column:1!important}.erp-message-grid-compact>.erp-message-title{grid-column:2/5!important}.erp-message-grid-compact>.erp-message-body{grid-column:1/-1!important}.erp-message-grid-compact>.erp-message-audience{grid-column:1!important}.erp-message-grid-compact>.erp-message-target{grid-column:2!important}.erp-message-grid-compact>.erp-message-publish{grid-column:3!important}.erp-message-grid-compact>.erp-message-expires{grid-column:4!important}
.erp-message-grid-compact textarea{min-height:92px!important;resize:vertical}
.erp-message-ack{display:inline-flex;align-items:center;gap:9px;margin-top:10px;padding:7px 10px;border:1px solid var(--trax-line);border-radius:9px;background:#fff;font-size:12px;font-weight:800;color:#343a42;cursor:pointer}
.erp-message-ack input{width:17px!important;height:17px!important;min-height:0!important;accent-color:var(--trax-orange);margin:0!important}
.trax-leaflet-marker.judge{box-shadow:0 0 0 2px #fff,0 2px 8px rgba(0,0,0,.18)}
@media(max-width:1120px){.erp-message-grid-compact{grid-template-columns:150px minmax(220px,1fr) 210px!important}.erp-message-grid-compact>.erp-message-title{grid-column:2/4!important}.erp-message-grid-compact>.erp-message-audience{grid-column:1!important}.erp-message-grid-compact>.erp-message-target{grid-column:2!important}.erp-message-grid-compact>.erp-message-publish{grid-column:3!important}.erp-message-grid-compact>.erp-message-expires{grid-column:3!important}}
@media(max-width:760px){.erp-message-grid-compact{grid-template-columns:1fr!important}.erp-message-grid-compact>.erp-field{grid-column:1/-1!important}.erp-message-grid-compact textarea{min-height:110px!important}.erp-message-ack{width:100%;justify-content:flex-start}}

/* 3.0.12 final compact communicator layout */
.erp-message-compose{grid-template-columns:160px minmax(280px,1fr)!important;gap:9px 10px!important}
.erp-message-compose>.erp-message-type{grid-column:1!important}.erp-message-compose>.erp-message-title{grid-column:2!important}.erp-message-compose>.erp-message-body{grid-column:1/-1!important}.erp-message-compose textarea{min-height:90px!important;resize:vertical}
.erp-message-options{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin-top:9px}
.erp-message-options>.erp-field{margin:0!important}.erp-message-options>.erp-message-audience{flex:0 1 170px!important;min-width:150px!important}.erp-message-options>.erp-message-target{flex:1 1 220px!important;min-width:190px!important}.erp-message-options>.erp-message-publish,.erp-message-options>.erp-message-expires{flex:0 1 215px!important;min-width:195px!important}.erp-message-options>.erp-message-ack{flex:0 0 auto;margin:0!important;min-height:40px}
@media(max-width:760px){.erp-message-compose{grid-template-columns:1fr!important}.erp-message-compose>.erp-field{grid-column:1/-1!important}.erp-message-options{display:grid;grid-template-columns:1fr}.erp-message-options>.erp-field,.erp-message-options>.erp-message-ack{width:100%!important;min-width:0!important;max-width:none!important}.erp-message-options>.erp-message-ack{justify-content:flex-start}}


/* ===== 3.0.13 Live Tracking mobile map ===== */
@media(max-width:720px){
  .erp-view[data-view="live_tracking"] .erp-map-lockbtn[data-mode="page"]{background:rgba(255,255,255,.96);color:#1f2937;border-color:rgba(17,24,39,.18)}
  .erp-view[data-view="live_tracking"] .erp-map-lockbtn[data-mode="map"]{background:rgba(255,241,232,.97);color:#8e3107;border-color:rgba(243,107,33,.70)}
}

/* 3.0.18 — szablony e-mail */
.erp-emailtpl-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px;align-items:start}.erp-emailtpl-listcard,.erp-emailtpl-editorcard{min-width:0}.erp-emailtpl-list{display:grid;gap:8px;padding:12px}.erp-emailtpl-item{width:100%;border:1px solid #e1e5ea;background:#fff;border-radius:12px;padding:12px;text-align:left;display:grid;gap:4px;cursor:pointer;color:#17191c;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.erp-emailtpl-item:hover{border-color:#f28c28;transform:translateY(-1px)}.erp-emailtpl-item.is-active{border-color:#f28c28;box-shadow:0 0 0 2px rgba(242,140,40,.13)}.erp-emailtpl-item strong{font-size:14px}.erp-emailtpl-item span{font-size:12px;color:#68717d;line-height:1.35}.erp-emailtpl-item em{font-size:11px;font-style:normal;font-weight:700;color:#9a5b16}.erp-emailtpl-enabled{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;white-space:nowrap}.erp-emailtpl-enabled input{accent-color:#f28c28}.erp-emailtpl-editor{display:grid;gap:14px}.erp-emailtpl-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #dfe4ea;border-bottom:0;border-radius:10px 10px 0 0;background:#f8f9fb}.erp-emailtpl-toolbar .erp-btn{min-width:38px;padding:7px 10px}.erp-emailtpl-content{min-height:330px;max-height:58vh;overflow:auto;border:1px solid #dfe4ea;border-radius:0 0 10px 10px;background:#fff;padding:18px;line-height:1.55;outline:none}.erp-emailtpl-content:focus{border-color:#f28c28;box-shadow:0 0 0 2px rgba(242,140,40,.12)}.erp-emailtpl-content p:first-child,.erp-emailtpl-content h1:first-child,.erp-emailtpl-content h2:first-child{margin-top:0}.erp-emailtpl-vars{display:flex;flex-wrap:wrap;gap:7px}.erp-emailtpl-var{border:1px solid #e1e5ea;background:#fff;border-radius:999px;padding:7px 10px;display:inline-flex;align-items:center;gap:7px;font:600 12px ui-monospace,SFMono-Regular,Consolas,monospace;color:#9a5b16;cursor:pointer}.erp-emailtpl-var:hover{border-color:#f28c28;background:#fff8f0}.erp-emailtpl-var span{font:500 11px Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#707985}.erp-emailtpl-actions{display:flex;flex-wrap:wrap;gap:8px}.erp-emailtpl-test{padding-top:4px;border-top:1px solid #edf0f3}.erp-emailtpl-test .erp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.erp-emailtpl-previewcard{margin-top:16px}.erp-emailtpl-preview{display:block;width:100%;height:560px;border:0;background:#f4f6f8;border-radius:0 0 14px 14px}.erp-config-item input[data-readonly-system="1"]{background:#f1f3f5;color:#6b7280;cursor:not-allowed}
@media(max-width:900px){.erp-emailtpl-layout{grid-template-columns:1fr}.erp-emailtpl-list{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-emailtpl-content{min-height:300px;max-height:52vh}.erp-emailtpl-preview{height:480px}}
@media(max-width:600px){.erp-emailtpl-list{grid-template-columns:1fr}.erp-emailtpl-toolbar{overflow-x:auto;flex-wrap:nowrap}.erp-emailtpl-toolbar .erp-btn{flex:0 0 auto}.erp-emailtpl-var span{display:none}.erp-emailtpl-test .erp-row{grid-template-columns:1fr}.erp-emailtpl-content{min-height:280px}.erp-emailtpl-preview{height:70vh}}

/* 3.0.18 — e-mail branding */
.erp-emailtpl-graphics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.erp-emailtpl-graphic-card{min-width:0;border:1px solid #e1e5ea;border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-rows:72px auto auto;gap:8px;align-items:center;text-align:center}
.erp-emailtpl-graphic-card img{display:block;max-width:100%;max-height:64px;width:auto;height:auto;margin:auto;object-fit:contain}
.erp-emailtpl-graphic-placeholder{height:64px;display:grid;place-items:center;border:1px dashed #d8dde4;border-radius:9px;background:#f8f9fb;color:#8a939e;font-size:12px;font-weight:700}
.erp-emailtpl-graphic-card strong{font-size:12px;color:#252a30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp-emailtpl-graphic-card .erp-btn{justify-self:center;padding:6px 10px;min-height:34px}
.erp-emailtpl-graphic-card.is-missing{background:#fafafa}
.erp-emailtpl-graphic-manage{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:2px}
.erp-emailtpl-graphic-manage span{font-size:11px;color:#747d88}
.erp-emailtpl-tokenline{display:block;padding:7px 10px;margin:7px 0;border:1px dashed #f28c28;border-radius:8px;background:#fff8f0;color:#9a5b16;font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace}
@media(max-width:720px){.erp-emailtpl-graphics{grid-template-columns:1fr}.erp-emailtpl-graphic-card{grid-template-columns:82px 1fr auto;grid-template-rows:auto;text-align:left}.erp-emailtpl-graphic-card img,.erp-emailtpl-graphic-placeholder{width:76px;max-width:76px;height:48px;max-height:48px}.erp-emailtpl-graphic-card strong{white-space:normal}.erp-emailtpl-graphic-manage{display:grid;grid-template-columns:1fr 1fr}.erp-emailtpl-graphic-manage span{grid-column:1/-1}.erp-emailtpl-graphic-manage .erp-btn{width:100%}}

/* ===== TRAX 3.0.23: edytor wyglądu wydarzenia ===== */
.erp-eventstyle-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.9fr);gap:16px;align-items:start}.erp-eventstyle-controls{display:grid;gap:16px}.erp-eventstyle-previewcard{position:sticky;top:88px}.erp-eventstyle-identity{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center}.erp-eventstyle-logo-box{min-height:112px;border:1px solid #e1e5ea;border-radius:14px;background:#f8f9fb;display:grid;place-items:center;padding:14px;overflow:hidden}.erp-eventstyle-logo-box img{display:block;max-width:100%;max-height:90px;object-fit:contain}.erp-eventstyle-noimage{color:#8b949f;font-size:12px;font-weight:700;text-align:center}.erp-eventstyle-identity-meta{display:grid;gap:8px}.erp-eventstyle-identity-meta>strong{font-size:18px;line-height:1.2;color:#24292f}.erp-eventstyle-identity-meta>span{font-size:12px;color:#727b86}.erp-eventstyle-colorgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.erp-eventstyle-color{min-width:0;border:1px solid #e2e6eb;border-radius:12px;padding:10px;background:#fafbfc;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-areas:"swatch label" "swatch code";column-gap:9px;align-items:center}.erp-eventstyle-color>span{grid-area:label;font-size:10px;font-weight:800;color:#505862;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-eventstyle-color input[type=color]{grid-area:swatch;width:42px;height:42px;border:0;padding:0;background:transparent;cursor:pointer}.erp-eventstyle-color code{grid-area:code;font:700 10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#888f98}.erp-formgrid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.erp-formgrid-2 .full{grid-column:1/-1}.erp-formgrid-2 input[type=range]{width:100%;accent-color:#f28c28}.erp-eventstyle-bgfile{display:grid;grid-template-columns:150px minmax(0,1fr);gap:15px;align-items:center;border:1px solid #e2e6eb;border-radius:12px;padding:12px;background:#fafbfc}.erp-eventstyle-bgfile p{margin:4px 0 10px;color:#737b86;font-size:11px}.erp-eventstyle-bgthumb{height:92px;border-radius:10px;border:1px dashed #d9dee5;background:#fff;display:grid;place-items:center;overflow:hidden;color:#959ca5;font-size:11px;font-weight:700}.erp-eventstyle-bgthumb img{width:100%;height:100%;object-fit:cover}.erp-eventstyle-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.erp-eventstyle-actions .erp-muted{margin-left:auto}.erp-eventstyle-preview-wrap{padding:14px}.erp-eventstyle-preview{--ep-primary:#F36B21;--ep-secondary:#171A1F;--ep-bg:#0F1115;--ep-surface:#fff;--ep-text:#fff;--ep-body-font:system-ui,sans-serif;--ep-heading-font:system-ui,sans-serif;--ep-logo-width:520px;min-height:660px;border-radius:18px;background-color:var(--ep-bg);background-size:cover;background-position:center;color:var(--ep-text);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transition:.18s ease}.erp-eventstyle-preview-inner{min-height:660px;padding:42px 28px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:var(--ep-body-font)}.erp-eventstyle-preview-title{font:900 clamp(24px,2.2vw,36px)/1.05 var(--ep-heading-font);letter-spacing:-.03em;text-shadow:0 2px 14px rgba(0,0,0,.2)}.erp-eventstyle-preview-date{margin-top:9px;font-size:12px;font-weight:750;opacity:.75}.erp-eventstyle-preview-logo{width:min(82%,var(--ep-logo-width));height:210px;margin:34px auto;display:grid;place-items:center}.erp-eventstyle-preview-logo img{max-width:100%;max-height:210px;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(0,0,0,.22))}.erp-eventstyle-preview-logo span{width:72%;min-height:118px;border:1px dashed rgba(255,255,255,.34);border-radius:16px;display:grid;place-items:center;font:900 14px/1 var(--ep-heading-font);letter-spacing:.12em}.erp-eventstyle-preview-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.erp-eventstyle-preview-actions>div{min-height:92px;border-radius:13px;background:var(--ep-surface);color:#252a31;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:16px 18px;border:1px solid rgba(255,255,255,.25);box-shadow:0 9px 25px rgba(0,0,0,.14)}.erp-eventstyle-preview-actions>div.is-primary{background:var(--ep-primary);color:var(--ep-primary-text)}.erp-eventstyle-preview-actions small{font-size:7px;font-weight:900;letter-spacing:.1em;opacity:.68}.erp-eventstyle-preview-actions strong{margin-top:4px;font:900 17px/1.1 var(--ep-heading-font)}.erp-eventstyle-preview[data-button-style=glass] .erp-eventstyle-preview-actions>div{background:rgba(255,255,255,.18);color:var(--ep-text);backdrop-filter:blur(10px)}.erp-eventstyle-preview[data-button-style=glass] .erp-eventstyle-preview-actions>div.is-primary{background:color-mix(in srgb,var(--ep-primary) 68%,transparent)}.erp-eventstyle-preview[data-button-style=outline] .erp-eventstyle-preview-actions>div{background:rgba(0,0,0,.08);color:var(--ep-text);border:2px solid rgba(255,255,255,.45);box-shadow:none}.erp-eventstyle-preview[data-button-style=outline] .erp-eventstyle-preview-actions>div.is-primary{border-color:var(--ep-primary);background:color-mix(in srgb,var(--ep-primary) 13%,transparent)}.erp-eventstyle-preview-footer{width:100%;margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);font-size:7px;text-transform:uppercase;letter-spacing:.09em;opacity:.4;text-align:right}
@media(max-width:1150px){.erp-eventstyle-layout{grid-template-columns:1fr}.erp-eventstyle-previewcard{position:static}.erp-eventstyle-preview{min-height:520px}.erp-eventstyle-preview-inner{min-height:520px}.erp-eventstyle-colorgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.erp-eventstyle-colorgrid{grid-template-columns:1fr 1fr}.erp-eventstyle-identity{grid-template-columns:1fr}.erp-eventstyle-logo-box{min-height:100px}.erp-formgrid-2{grid-template-columns:1fr}.erp-formgrid-2 .full{grid-column:auto}.erp-eventstyle-bgfile{grid-template-columns:1fr}.erp-eventstyle-bgthumb{height:120px}.erp-eventstyle-actions{display:grid;grid-template-columns:1fr 1fr}.erp-eventstyle-actions .erp-muted{grid-column:1/-1;margin-left:0}.erp-eventstyle-preview{min-height:470px}.erp-eventstyle-preview-inner{min-height:470px;padding:28px 18px 16px}.erp-eventstyle-preview-logo{height:150px;margin:24px auto}.erp-eventstyle-preview-logo img{max-height:150px}.erp-eventstyle-preview-actions{grid-template-columns:1fr}.erp-eventstyle-preview-actions>div{min-height:72px}.erp-eventstyle-preview-footer{display:none}}
@media(max-width:480px){.erp-eventstyle-colorgrid{grid-template-columns:1fr}.erp-eventstyle-actions{grid-template-columns:1fr}}

/* ===== TRAX 3.0.24: pełniejszy podgląd motywu ===== */
.erp-eventstyle-colorgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.erp-eventstyle-preview{--ep-surface-text:#20242A;--ep-primary-text:#fff}
.erp-eventstyle-preview-actions>div{color:var(--ep-surface-text)}
.erp-eventstyle-preview-surface{width:100%;margin-top:12px;padding:13px 15px;border-radius:12px;background:var(--ep-surface);color:var(--ep-surface-text);border:1px solid color-mix(in srgb,var(--ep-surface-text) 15%,var(--ep-surface));display:grid;grid-template-columns:1fr auto;gap:4px 14px;text-align:left;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.erp-eventstyle-preview-surface strong{font:850 12px/1.25 var(--ep-heading-font)}
.erp-eventstyle-preview-surface span{grid-column:1/2;font-size:9px;opacity:.62}
.erp-eventstyle-preview-surface i{grid-column:2;grid-row:1/3;align-self:center;width:52px;height:8px;border-radius:99px;background:var(--ep-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--ep-primary) 12%,transparent)}
@media(max-width:720px){.erp-eventstyle-colorgrid{grid-template-columns:1fr 1fr}.erp-eventstyle-preview-surface{display:none}}
@media(max-width:480px){.erp-eventstyle-colorgrid{grid-template-columns:1fr}}

/* TRAX RMS 3.0.39 — spójny layout ERP i usunięcie powielonych elementów UI.
   Trzymamy te reguły we wspólnym motywie, bez kolejnego arkusza CSS. */
:root{
  --trax-work-space:12px;
  --trax-work-pad:var(--cardPad);
}
.erp-main{min-width:0}
.erp-view{min-width:0;max-width:min(1600px,100%)}
.erp-view > *, .erp-card > *{min-width:0}
/* W poprzednich motywach intro otrzymywało i gap, i margin-bottom. */
.erp-pageintro{margin-bottom:0!important;min-width:0}
.erp-work-view .erp-pageintro p{display:block!important;line-height:1.5;margin:5px 0 0;color:var(--trax-gray)}
.erp-work-view .erp-pageintro h1{overflow-wrap:anywhere}
.erp-work-card .erp-cardhead{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:var(--trax-work-pad)}
.erp-work-card .erp-cardhead > *{min-width:0}
.erp-work-card .erp-cardtitle{line-height:1.3}
.erp-work-card .erp-work-actions{display:flex;align-items:end;gap:8px;min-width:0}
.erp-work-card .erp-work-filter{min-width:200px;max-width:320px}
.erp-work-card .erp-work-filter select{min-width:0}
.erp-work-fields{padding:var(--trax-work-pad);display:grid;gap:10px;border-bottom:1px solid var(--trax-line)}
.erp-work-fields .erp-formrow{padding:0!important;gap:12px;grid-template-columns:minmax(0,1fr) minmax(180px,.55fr)}
.erp-work-fields .erp-field{min-width:0}
.erp-work-fields .erp-field input,.erp-work-fields .erp-field select{min-width:0;width:100%}
.erp-work-table{padding:var(--trax-work-pad)!important;width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.erp-work-table .erp-tablegrid{width:100%;min-width:780px;table-layout:auto;border:1px solid var(--trax-line);border-radius:10px;border-collapse:separate;border-spacing:0;overflow:hidden}
.erp-work-table .erp-tablegrid th,.erp-work-table .erp-tablegrid td{padding:12px;overflow-wrap:anywhere;vertical-align:top}
.erp-work-table .erp-tablegrid th{white-space:nowrap;font-size:11px}
.erp-work-table .erp-tablegrid tr:last-child td{border-bottom:0}
.erp-work-table .erp-tablegrid td .erp-row{gap:6px;align-items:flex-start}
.erp-work-table .erp-tablegrid .erp-btn{height:34px;min-height:34px;padding:0 10px;max-width:100%;white-space:nowrap}
.erp-work-table .erp-tablegrid select{width:100%;max-width:100%;min-width:165px}
.erp-work-footnote{padding:12px var(--trax-work-pad);border-top:1px solid var(--trax-line);color:var(--trax-gray);font-size:12px;line-height:1.5}
.erp-work-upload{width:100%;gap:10px;align-items:center}
.erp-work-upload input[type="file"]{flex:1 1 280px;width:auto;min-width:0}
.erp-work-upload .erp-btn{flex:0 0 auto}
.erp-work-message{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
/* Zgłoszenia: status pokazujemy wyłącznie przy numerze/ID, nie drugi raz przy wpłacie. */
#erpAppTable .erp-app-card-status{display:inline-flex;align-items:center;flex-shrink:0}
#erpAppTable .erp-app-field-status{display:none!important}
.erp-view[data-view="applications"] .erp-card > .erp-formrow{padding:var(--trax-work-pad)!important}
.erp-view[data-view="applications"] .erp-formrow.erp-formrow-2{grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:12px}
@media(max-width:720px){
  .erp-work-card .erp-cardhead{align-items:stretch;flex-direction:column}
  .erp-work-card .erp-work-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .erp-work-card .erp-work-filter{flex:1 1 180px;max-width:none}
  .erp-work-fields .erp-formrow{grid-template-columns:minmax(0,1fr)}
  .erp-work-upload .erp-btn{flex:1 1 140px}
  .erp-work-table .erp-tablegrid{min-width:680px}
  .erp-view[data-view="applications"] .erp-cardhead{padding:var(--trax-work-pad)!important}
}
@media(max-width:520px){
  .erp-work-card .erp-cardhead .erp-btn{min-height:40px}
  .erp-view[data-view="applications"] .erp-formrow.erp-formrow-2{grid-template-columns:minmax(0,1fr)}
  #erpAppTable .erp-app-card-top{gap:8px;flex-wrap:wrap}
  #erpAppTable .erp-app-card-id strong{white-space:normal;overflow-wrap:anywhere}
}

/* Etykiety kolumn: istniejąca globalna reguła na mobile zamienia tabelę w karty. */
@media(max-width:720px){
  .erp-work-table{overflow:visible!important}
  .erp-work-table .erp-tablegrid{min-width:0;border:0;background:transparent;overflow:visible}
  .erp-work-table .erp-tablegrid tbody{gap:10px}
  .erp-work-table .erp-tablegrid tbody tr{padding:4px 10px;border-radius:11px;background:var(--trax-soft)}
  .erp-work-table .erp-tablegrid tbody td[data-label]{display:grid;grid-template-columns:minmax(90px,36%) minmax(0,1fr);gap:9px;align-items:start;padding:10px 4px;overflow-wrap:anywhere}
  .erp-work-table .erp-tablegrid tbody td[data-label]::before{content:attr(data-label);font-size:10px;font-weight:800;letter-spacing:.025em;text-transform:uppercase;color:var(--trax-gray);line-height:1.4}
  .erp-work-table .erp-tablegrid tbody td .erp-row{display:flex;flex-wrap:wrap;gap:6px}
  .erp-work-table .erp-tablegrid tbody td select{min-width:0}
  .erp-work-table .erp-tablegrid tbody td.erp-td-muted{display:block;padding:18px 10px!important}
}
@media(max-width:380px){
  .erp-work-table .erp-tablegrid tbody td[data-label]{grid-template-columns:minmax(0,1fr);gap:5px}
}


/* TRAX RMS 3.0.42 — nagłówek i status etapu */
.erp-top.trax-top-v40{
  display:grid;grid-template-columns:minmax(165px,1fr) auto minmax(285px,1fr);
  gap:12px;align-items:center;min-height:78px;padding:10px clamp(12px,1.5vw,24px)!important;
  background:#fff!important;border-bottom:1px solid #e5e8ec!important;
  box-shadow:0 3px 16px rgba(18,25,32,.05)!important;isolation:isolate;
}
.erp-top.trax-top-v40::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--trax-orange);pointer-events:none}
.trax-top-v40 .trax-top-start,.trax-top-v40 .trax-top-actions{display:flex;align-items:center;gap:9px;min-width:0}
.trax-top-v40 .trax-top-actions{justify-content:flex-end}
.trax-top-v40 .erp-menubtn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;height:42px;min-width:42px!important;padding:0 12px!important;border-radius:10px;background:#191c20!important;border-color:#191c20!important;color:#fff!important}
.trax-top-v40 .erp-menubtn:hover{background:var(--trax-orange)!important;border-color:var(--trax-orange)!important}
.trax-top-v40 .erp-menubtn svg{width:20px;height:20px;fill:currentColor}
.trax-top-v40 .erp-menubtn:focus-visible,.trax-top-v40 .trax-install-btn:focus-visible{outline:3px solid rgba(243,107,33,.36);outline-offset:3px}
.trax-top-v40 .erp-brand{display:flex;align-items:center;flex:0 1 auto;gap:11px;min-width:0}
.trax-top-v40 .erp-logo{height:43px;flex:0 0 auto;display:flex;align-items:center}
.trax-top-v40 .erp-logoimg{height:36px;width:auto;max-width:123px;object-fit:contain}
.trax-top-v40 .erp-brandtext{min-width:0;border-left:1px solid #e6e8eb;padding-left:11px}
.trax-top-v40 .erp-title{font-size:12px;line-height:1.2;font-weight:800;color:#1f2730}
.trax-top-v40 .erp-subtitle{margin-top:3px;font-size:10px;line-height:1.25;color:#7d8792;font-weight:650}
.trax-top-v40 .trax-top-center{min-width:0;display:flex;align-items:stretch;justify-content:center;gap:8px}
.trax-top-v40 .trax-time-chip,.trax-top-v40 .trax-stage-chip{min-width:0;padding:8px 13px;border-radius:10px;border:1px solid #e7e9ec;background:#f8f9fa;display:flex;align-items:center}
.trax-top-v40 .trax-time-chip{background:#fff4ed;border-color:#f1bd98}
.trax-top-v40 .trax-time-content{display:flex;flex-direction:column;gap:3px;min-width:0}
.trax-top-v40 .trax-time-date{font-size:11px;font-weight:750;color:#6a5141;white-space:nowrap}
.trax-top-v40 .trax-time-digits{font-size:24px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.01em;color:#171b20;white-space:nowrap}
.trax-top-v40 .trax-time-seconds{font-size:.7em;color:#51453d}
.trax-top-v40 .trax-stage-chip{gap:12px;justify-content:space-between;min-width:243px;border-color:#e3e9ed;background:#f7f9fb}
.trax-top-v40 .trax-stage-chip.is-active{border-color:#efcfb9;background:#fff8f1}
.trax-top-v40 .trax-stage-info{display:flex;flex-direction:column;min-width:0;gap:3px}
.trax-top-v40 .trax-stage-label{font-weight:800;font-size:11px;color:#343e49;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trax-top-v40 .trax-stage-target{font-size:11px;font-weight:700;color:#687481;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trax-top-v40 .trax-stage-countdown{font-size:20px;font-weight:900;color:#df6624;line-height:1.1;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}
.trax-top-v40 .trax-stage-countdown:empty{display:none}
.trax-top-v40 .trax-crew-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e4e8eb;border-radius:10px;min-width:270px;background:#fff}
.trax-top-v40 .trax-crew-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:8px 9px}
.trax-top-v40 .trax-crew-stat+.trax-crew-stat{border-left:1px solid #edf0f2}
.trax-top-v40 .trax-crew-stat>span{font-size:10px;font-weight:750;color:#636f7b;white-space:nowrap}
.trax-top-v40 .trax-crew-stat>strong{font-size:21px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums;color:#1f2832}
.trax-top-v40 .trax-crew-stat-route>strong{color:#d75e1f}
.trax-top-v40 .trax-top-icon{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.trax-top-v40 .trax-install-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 10px!important;border-radius:10px;border:1px solid #e2e7ec;color:#3d4955;background:#fff;font-size:12px;font-weight:750}
.trax-top-v40 .trax-install-btn[hidden]{display:none!important}
.trax-top-v40 .trax-install-btn:hover{border-color:var(--trax-orange);background:#fff7f1;color:#94390a}
@media(min-width:980px){.erp-side{top:var(--trax-top-height,78px);height:calc(100dvh - var(--trax-top-height,78px))}}
@media(max-width:1300px){.trax-top-v40 .erp-brandtext{display:none}.erp-top.trax-top-v40{grid-template-columns:minmax(135px,1fr) auto minmax(270px,1fr)}}
@media(max-width:1220px){
  .erp-top.trax-top-v40{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;min-height:0}
  .trax-top-v40 .trax-top-start{grid-column:1;grid-row:1}
  .trax-top-v40 .trax-top-actions{grid-column:2;grid-row:1}
  .trax-top-v40 .trax-top-center{grid-column:1/-1;grid-row:2;justify-content:stretch}
  .trax-top-v40 .trax-time-chip{flex:0 0 190px}
  .trax-top-v40 .trax-stage-chip{flex:1 1 auto}
}
@media(max-width:620px){
  .erp-top.trax-top-v40{grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:calc(env(safe-area-inset-top) + 8px) 8px 9px!important}
  .trax-top-v40 .trax-top-start{grid-column:1;grid-row:1;gap:6px}
  .trax-top-v40 .erp-menubtn{width:40px;min-width:40px!important;height:39px;padding:0!important}
  .trax-top-v40 .erp-menubtn span{display:none}
  .trax-top-v40 .erp-logo{height:32px}
  .trax-top-v40 .erp-logoimg{height:29px;max-width:99px}
  .trax-top-v40 .trax-top-center{display:contents}
  .trax-top-v40 .trax-time-chip{grid-column:2;grid-row:1;min-width:0;flex:none;padding:6px 9px}
  .trax-top-v40 .trax-time-date{font-size:9px}
  .trax-top-v40 .trax-time-digits{font-size:19px}
  .trax-top-v40 .trax-time-seconds{display:none}
  .trax-top-v40 .trax-stage-chip{grid-column:1/-1;grid-row:2;min-width:0;padding:8px 11px}
  .trax-top-v40 .trax-stage-countdown{font-size:22px}
  .trax-top-v40 .trax-top-actions{display:contents}
  .trax-top-v40 .trax-crew-stats{grid-column:1/-1;grid-row:3;min-width:0;max-width:none;width:100%}
  .trax-top-v40 .trax-crew-stat{padding:6px 8px}
  .trax-top-v40 .trax-crew-stat>strong{font-size:20px}
  .trax-top-v40 .trax-install-btn{grid-column:3;grid-row:1;width:39px;height:39px;padding:0!important}
  .trax-top-v40 .trax-install-btn span{display:none}
  .trax-top-v40 .trax-install-btn[hidden]{display:none!important}
}
@media(max-width:350px){
  .trax-top-v40 .erp-logoimg{max-width:81px;height:27px}
  .trax-top-v40 .trax-time-chip{padding:6px 7px}
  .trax-top-v40 .trax-time-date{font-size:8.5px}
  .trax-top-v40 .trax-time-digits{font-size:18px}
  .trax-top-v40 .trax-install-btn{width:36px}
}
/* Karta pulpitu musi mieścić się obok otwartego menu także na dużym desktopie. */
.erp-view.erp-dashboard-view{width:100%!important;max-width:100%!important;min-width:0!important}

/* Gotowość rajdu */
.erp-readiness-card .erp-dashboard-health-head{padding:12px 16px!important;gap:10px!important}
.erp-readiness-card .erp-dashboard-health-actions{display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:8px!important;width:auto}
.erp-readiness-card .erp-dashboard-health-field{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;width:auto!important}
.erp-readiness-card .erp-dashboard-health-field span{font-size:12px;font-weight:750}
.erp-readiness-card .erp-dashboard-health-field .erp-select{width:auto;min-width:82px!important;height:38px}
.erp-readiness-card .erp-dashboard-health-actions .erp-btn{width:auto;min-width:0!important;height:38px}
.erp-readiness-body{padding:0 16px 14px}
.erp-readiness-section{min-width:0;padding:13px 0 2px}
.erp-readiness-section+.erp-readiness-section{border-top:1px solid #e7e9eb;margin-top:14px}
.erp-readiness-section-head{font-weight:850;color:#2e3742;font-size:13px;margin-bottom:10px}
.erp-readiness-card .erp-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;min-width:0;padding:0!important}
/* Pięć wskaźników organizacyjnych w jednym rzędzie przy szerokości tabletu i desktopu. */
@media(min-width:768px){.erp-readiness-card #erpOfficeReadiness{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
.erp-readiness-card .erp-health-item{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;margin:0;border-radius:10px;border:1px solid #e2e7eb;box-shadow:none;padding:11px 11px 11px 15px!important;overflow-wrap:anywhere;text-decoration:none}
.erp-readiness-card a.erp-health-item:hover{background:#fff4ed;border-color:#f1b78f;text-decoration:none}
.erp-readiness-card a.erp-health-item:focus-visible{outline:2px solid var(--trax-orange);outline-offset:2px}
.erp-readiness-card .erp-health-label{margin:0!important;font-size:11.5px!important;line-height:1.3;color:#53606d!important}
.erp-readiness-card .erp-health-value{font-size:22px!important;line-height:1.15!important;font-weight:850}
.erp-readiness-card .erp-health-summary{padding:8px 10px;margin:0 0 10px;font-size:12px;line-height:1.35}
.erp-readiness-card .erp-health-meta{margin-top:9px!important;font-size:11px}
@media(min-width:980px) and (max-width:1250px){.erp-readiness-card .erp-health-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:979px){
  .erp-readiness-card .erp-dashboard-health-head{flex-direction:row!important;align-items:center!important}
  .erp-readiness-card .erp-dashboard-health-actions{display:flex!important;flex-wrap:wrap;width:auto}
  .erp-readiness-card .erp-dashboard-health-field{flex-direction:row!important;width:auto!important}
  .erp-readiness-card .erp-health-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .erp-readiness-card .erp-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .erp-readiness-card .erp-dashboard-health-head{flex-wrap:wrap}
  .erp-readiness-card .erp-dashboard-health-actions{justify-content:flex-start}
  .erp-readiness-card .erp-readiness-body{padding:0 12px 12px}
  .erp-readiness-card .erp-health-item{padding:10px 9px 10px 13px!important}
  .erp-readiness-card .erp-health-value{font-size:20px!important}
}
@media(max-width:350px){
  .erp-readiness-card .erp-health-grid{gap:7px!important}
}
@media(max-width:650px){
  .erp-readiness-card .erp-dashboard-health-actions .erp-dashboard-health-field{flex:0 0 auto!important;min-width:0}
  .erp-readiness-card .erp-dashboard-health-actions .erp-btn{flex:0 0 auto!important}
  .erp-readiness-card .erp-dashboard-health-field .erp-select{height:38px!important}
  .erp-readiness-card .erp-dashboard-health-actions .erp-btn{height:38px!important}
}

/* Studio wydarzenia: gęstość i responsywność formularza */
.erp-eventstyle-layout.erp-studio-layout{grid-template-columns:minmax(0,1fr) minmax(390px,1.02fr);gap:14px}
.erp-studio-layout .erp-eventstyle-colorgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.erp-studio-layout .erp-eventstyle-color>span{white-space:normal;line-height:1.3;overflow:visible}
.erp-studio-layout .erp-eventstyle-previewcard{top:82px;min-width:0}
.erp-studio-layout .erp-eventstyle-previewcard .erp-cardhead{flex-wrap:wrap}
.erp-studio-layout .erp-eventstyle-bgfile{grid-template-columns:110px minmax(0,1fr)}
.erp-studio-layout .erp-studio-presets{flex-wrap:wrap}
@media(max-width:1160px){.erp-eventstyle-layout.erp-studio-layout{grid-template-columns:minmax(0,1fr)}.erp-studio-layout .erp-eventstyle-previewcard{position:static}}
@media(max-width:550px){.erp-studio-layout .erp-eventstyle-colorgrid{grid-template-columns:1fr 1fr}.erp-studio-layout .erp-eventstyle-identity{grid-template-columns:1fr}.erp-studio-layout .erp-formgrid-2{grid-template-columns:1fr}.erp-studio-layout .erp-formgrid-2 .full{grid-column:auto}.erp-studio-layout .erp-eventstyle-bgfile{grid-template-columns:1fr}}

/* 3.0.45.2 — dokumentacja modułowa */
.erp-help-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 13px}
.erp-help-search{flex:1 1 270px;width:auto!important;min-width:0;max-width:100%;height:42px;padding:0 12px;border:1px solid #d4dbe2;border-radius:9px;background:#fff}
.erp-help-select{flex:0 1 245px;width:245px;min-width:160px;max-width:100%}
.erp-help-count{font-size:12px;font-weight:750;color:#58616c;white-space:nowrap}
.erp-help-module>summary{min-height:50px}
.erp-help-module>summary>span:first-child{flex:1;min-width:0}
.erp-help-module-count{font-size:12px;font-weight:800;background:#fff0e8;color:#953900;border:1px solid #f0d3c0;border-radius:7px;padding:3px 8px}
.erp-help-module-content{padding:9px 13px 13px;background:#fbfcfd}
.erp-help-actions{display:flex;justify-content:flex-end;margin:0 0 9px}
.erp-help-go{font-size:12px;font-weight:800;color:#963600;text-decoration:none;padding:3px 7px;border-radius:5px}
.erp-help-go:hover,.erp-help-go:focus-visible{background:#fff0e8;text-decoration:underline}
.erp-help-procedure{border:1px solid #e4e8ed;border-radius:9px;background:#fff;margin:0 0 7px;overflow:hidden}
.erp-help-procedure:last-child{margin-bottom:0}
.erp-help-procedure>summary{list-style:none;cursor:pointer;padding:12px 15px;font-weight:750;font-size:13px;color:#29313a;display:flex;align-items:center;gap:10px}
.erp-help-procedure>summary::before{content:'+';flex:0 0 20px;height:20px;display:grid;place-items:center;border:1px solid #dce2e8;border-radius:5px;color:#a04719;font-weight:800}
.erp-help-procedure>summary::-webkit-details-marker{display:none}
.erp-help-procedure[open]>summary{border-bottom:1px solid #e9edf1;background:#fff9f5}
.erp-help-procedure[open]>summary::before{content:'−'}
.erp-help-procedure .erp-help-body{padding:11px 18px 15px 27px;font-size:13px;line-height:1.65}
.erp-help-procedure .erp-help-body ol{margin:0;padding-left:20px}
.erp-help-procedure .erp-help-body li{padding-left:2px;margin:0 0 6px}
.erp-help-procedure .erp-help-body li:last-child{margin-bottom:0}
.erp-help-note{background:#fff8f2;border-left:3px solid var(--trax-orange);padding:9px 11px;border-radius:0 6px 6px 0;margin:12px 0 0!important;color:#5e4638}
.erp-help-empty{padding:20px;text-align:center;border:1px solid #e4e8ed;border-radius:10px;background:#fff;color:#59636e}
.erp-help-module[hidden],.erp-help-procedure[hidden],.erp-help-empty[hidden]{display:none!important}
@media(max-width:650px){.erp-help-controls{gap:7px}.erp-help-search{flex-basis:100%}.erp-help-select{flex:1 1 160px;width:auto}.erp-help-module-content{padding:8px}.erp-help-procedure .erp-help-body{padding:10px 12px 12px 14px}}
