:root{--bg:#07111f;--panel:#0f1d2f;--panel2:#15263a;--line:#29405b;--text:#eef6ff;--muted:#9db0c6;--blue:#2898ff;--green:#35d07f;--yellow:#ffc857;--orange:#ff8a3d;--red:#ff5f67;--gray:#8492a6}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#06101d,#0b1829 50%,#07111f);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.topbar{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid var(--line);background:#091624eF;position:sticky;top:0;z-index:20;backdrop-filter:blur(8px)}h1{margin:0;font-size:22px}.topbar p{margin:3px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;gap:8px;flex-wrap:wrap}button,.file-btn{border:1px solid #365574;background:#17314c;color:#fff;border-radius:9px;padding:9px 12px;font-weight:700;cursor:pointer}button:hover,.file-btn:hover{filter:brightness(1.15)}.danger-outline{border-color:#7d3440;background:#281821}nav{display:flex;gap:6px;padding:10px 18px;background:#0b1726;border-bottom:1px solid var(--line);overflow:auto;position:sticky;top:75px;z-index:19}nav button{white-space:nowrap;background:transparent;border-color:transparent;color:var(--muted)}nav button.active{background:#1b3b5b;color:white;border-color:#3c6f9d}main{padding:18px}.toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}.toolbar h2{margin:0}.toolbar .left,.toolbar .right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.primary{background:#1678d2;border-color:#3097ef}.success{background:#17814b;border-color:#35d07f}.danger{background:#8d2731;border-color:#ff5f67}.muted{color:var(--muted)}.card{background:rgba(15,29,47,.94);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px #0004;overflow:hidden}.table-wrap{overflow:auto;max-height:calc(100vh - 190px)}table{border-collapse:separate;border-spacing:0;width:100%;min-width:1550px}th,td{padding:8px 9px;border-right:1px solid #22374e;border-bottom:1px solid #22374e;font-size:12px;vertical-align:middle}th{position:sticky;top:0;background:#18314c;color:#d9edff;text-align:left;z-index:3}tr:hover td{background:#12263c}td input,td select,td textarea,.modal input,.modal select,.modal textarea{width:100%;background:#091625;border:1px solid #36516d;color:#fff;border-radius:6px;padding:7px;font:inherit}td textarea{min-height:38px;resize:vertical}.collision{background:#681f2a!important;color:#fff;font-weight:800}.status-pill{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:800;font-size:11px}.s-blue{background:#123f69;color:#8fd0ff}.s-yellow{background:#614d16;color:#ffe28d}.s-orange{background:#653513;color:#ffc18d}.s-green{background:#124e36;color:#87f3bd}.s-red{background:#66202a;color:#ffadb2}.s-gray{background:#344153;color:#d2dae5}.icon-btn{padding:5px 8px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;margin-bottom:14px}.stat{padding:14px;border-radius:12px;background:#10243a;border:1px solid var(--line)}.stat strong{display:block;font-size:24px}.stat span{color:var(--muted);font-size:12px}.tv{padding:10px;background:#02070e;min-height:calc(100vh - 120px)}.tv-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tv-panel{border:2px solid #2b4b68;border-radius:12px;overflow:hidden;background:#08131f;min-height:41vh}.tv-title{padding:10px 14px;font-size:20px;font-weight:900;letter-spacing:.6px;background:#163651}.tv-title.colo{background:#115587}.tv-title.export{background:#734115}.tv-title.domestic{background:#176147}.tv-title.technical{background:#6d2831}.tv-table{width:100%;min-width:0}.tv-table th{position:static;background:#102538;font-size:12px}.tv-table td{font-size:14px;padding:7px}.tv-table tr:nth-child(even) td{background:#0b1b2b}.empty{padding:30px;text-align:center;color:var(--muted)}.fleet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.fleet-col h3{margin:0;padding:12px;background:#18314c}.fleet-item{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:6px;padding:8px;border-bottom:1px solid #22374e;align-items:center}.fleet-item.busy{background:#4f2027}.fleet-item.manual{background:#4a3b18}.modal-backdrop{position:fixed;inset:0;background:#000a;display:grid;place-items:center;z-index:50;padding:20px}.modal{width:min(900px,100%);max-height:92vh;overflow:auto;background:#0f1d2f;border:1px solid #3e5d7c;border-radius:16px;padding:18px}.modal h2{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.form-grid label{font-size:12px;color:var(--muted)}.form-grid label span{display:block;margin-bottom:5px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.search{max-width:280px;background:#091625;border:1px solid #36516d;color:white;border-radius:8px;padding:9px}#toast{position:fixed;right:20px;bottom:20px;background:#16324b;color:white;padding:12px 16px;border-radius:9px;opacity:0;transform:translateY(10px);transition:.2s;z-index:100}#toast.show{opacity:1;transform:none}@media(max-width:1100px){.stats{grid-template-columns:1fr 1fr}.fleet-grid,.tv-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span-2,.span-3{grid-column:auto}nav{top:103px}}@media(max-width:650px){.topbar{align-items:flex-start;gap:10px;flex-direction:column}nav{top:145px}.stats{grid-template-columns:1fr}.top-actions{width:100%}main{padding:10px}}

.leave-mini{font-size:10px;color:var(--muted);margin-top:3px}.fleet-item{grid-template-columns:1.2fr 1fr 1.15fr}.fleet-item .icon-btn{margin-top:5px}

.combo-wrap{position:relative}.combo-wrap input{padding-right:30px}.combo-hint{margin:-4px 0 14px;color:var(--muted);font-size:12px;background:#0a1726;border:1px solid var(--line);padding:9px 11px;border-radius:8px}input[type="datetime-local"]{color-scheme:dark}

/* v1.4 */
.tv .toolbar{justify-content:center;position:relative;text-align:center}.tv .toolbar .left{display:block;text-align:center}.tv .toolbar button{position:absolute;right:0}.tv-title{position:relative;text-align:center}.tv-corner-label{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;padding:4px 8px;border-radius:999px;background:#08131f;border:1px solid #ffffff55}.tv-table th,.tv-table td{text-align:center}.order-controls{display:flex;gap:4px;justify-content:center;white-space:nowrap}.order-btn{padding:4px 7px;min-width:30px}.driver-mono{width:62px!important;text-transform:uppercase;text-align:center}.fleet-item.driver-row{grid-template-columns:1.25fr .65fr 1fr 1.2fr}.tv-section-label{font-weight:900;letter-spacing:.5px}.tv-title-wrap{text-align:center;width:100%}

/* V1.5 – holnapi import lerakás figyelmeztetés */
.tomorrow-unload-row td{background:linear-gradient(90deg,#6a240f,#4c1715)!important;border-top:2px solid #ffb020;border-bottom:2px solid #ffb020;animation:tomorrowPulse 2.2s ease-in-out infinite}
.tomorrow-unload-row:hover td{background:linear-gradient(90deg,#7a2b10,#5b1b17)!important}
.tomorrow-alert{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:3px auto;padding:5px 8px;border-radius:8px;background:#ffb020;color:#241200;font-size:11px;font-weight:900;line-height:1.15;text-align:center;box-shadow:0 0 0 2px #fff3 inset,0 0 14px #ff9d0066}
.tomorrow-alert-icon{font-size:15px}.tomorrow-alert span:last-child{white-space:nowrap}
.tv-table .tomorrow-alert{display:flex;margin-top:5px;font-size:10px}.tv-table .tomorrow-unload-row td{font-weight:800}
@keyframes tomorrowPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.16)}}
@media (prefers-reduced-motion:reduce){.tomorrow-unload-row td{animation:none}}

/* V1.6 – sofőr mező és monogram */
.driver-combo input{padding-right:72px}.driver-mono-preview{position:absolute;right:9px;top:50%;transform:translateY(-50%);min-width:38px;text-align:center;font-weight:900;letter-spacing:.06em;color:#fff;background:#245a87;border:1px solid #3977aa;border-radius:7px;padding:4px 6px;pointer-events:none}.mono-table{display:block;font-size:14px;letter-spacing:.06em}.driver-fullname{display:block;margin-top:3px;color:var(--muted);font-size:10px;white-space:nowrap}

.planned-collision{background:#5a4716!important;color:#ffe596;font-weight:800}.trailer-wrap{position:relative;display:inline-flex;align-items:center;gap:5px;min-width:68px}.mega-badge{display:inline-block;background:#9b5a00;color:#fff2c7;border:1px solid #f0ae38;border-radius:4px;padding:1px 4px;font-size:9px;font-weight:900;line-height:1.2}.mega-mini{margin-left:4px;background:#9b5a00;color:#fff2c7;border-radius:3px;padding:1px 3px;font-size:8px}.tv-fleet-panel{grid-column:1/-1;min-height:auto;margin-top:10px}.tv-title.fleet{background:#31445d;text-align:center}.tv-fleet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px}.tv-fleet-group{background:#0b1b2b;border:1px solid #28435e;border-radius:9px;padding:8px}.tv-fleet-group h4{text-align:center;margin:0 0 7px}.tv-fleet-counts{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.tv-fleet-counts span{padding:3px 6px;border-radius:999px;font-size:10px;font-weight:900}.tv-fleet-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;justify-content:center}.tv-fleet-list>span{background:#102b43;border:1px solid #294d69;border-radius:5px;padding:2px 5px;font-size:10px}.tv-fleet-list em{color:var(--muted);font-size:11px}@media(max-width:1100px){.tv-fleet-grid{grid-template-columns:1fr}}

/* V1.8 QoL */
.qol-alert{background:#6a240f;border:1px solid #ff9d00;color:#ffd9a0;padding:8px 11px;border-radius:9px;font-weight:900}.location-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;padding:12px}.location-item{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#10243a;border:1px solid var(--line);border-radius:9px;padding:10px}.tv-note{margin-top:5px;padding:4px 6px;background:#183a58;border:1px solid #3d6f95;border-radius:5px;font-size:10px;font-weight:800}.toolbar .right select.search{max-width:170px}
.unload-badge{display:block;width:max-content;margin:4px auto 0;padding:2px 6px;border-radius:6px;font-weight:900;font-size:11px;line-height:1.2;border:1px solid currentColor;background:rgba(255,255,255,.06)}
.export-badge{color:#ffb347}.import-badge{color:#ff5c67}.route-done{display:inline-block;padding:4px 7px;border-radius:7px;background:rgba(29,185,84,.16);color:#6fe99a;font-weight:900;border:1px solid rgba(111,233,154,.45)}
.check-pill{display:inline-block;padding:4px 7px;border-radius:7px;background:rgba(255,255,255,.07);font-weight:800}.check-pill.done{background:rgba(29,185,84,.18);color:#6fe99a}
.tv-driver-mini{font-size:11px;font-weight:900;opacity:.85;margin-top:3px}

/* V1.10 előhúzás + TV rendszám/MEGA elrendezés */
.trailer-wrap{display:inline-flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;white-space:nowrap!important}.plate-nowrap{white-space:nowrap!important;word-break:keep-all!important;display:block}.mega-badge{display:block!important;margin:2px auto 0!important;width:max-content}.prepull-badge{margin-top:4px;padding:2px 5px;border-radius:5px;background:#5a4716;color:#ffe596;border:1px solid #a8892f;font-size:9px;font-weight:800;white-space:nowrap}.prepull-extra{display:none}.tv-table td{overflow-wrap:normal;word-break:normal}.tv-table td .plate-nowrap{font-size:inherit}

/* ===== TIMX BÉTA 2.0 ===== */
input,select,textarea{color:#fff!important;color-scheme:dark!important;background-color:#091625!important}
input::selection,textarea::selection{background:#2b79b9!important;color:#fff!important}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:#fff!important;-webkit-box-shadow:0 0 0 1000px #091625 inset!important}
input[type="date"]::-webkit-calendar-picker-indicator,input[type="time"]::-webkit-calendar-picker-indicator,input[type="datetime-local"]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(2)!important;opacity:1!important;cursor:pointer}
option{background:#091625;color:#fff}
.yellow-note,.yellow-note-cell{background:#5b4a0f!important;color:#ffe56f!important;border-color:#c5a927!important;font-weight:900!important}
.cooler-badge{display:block;margin:2px auto 0;width:max-content;background:#0e5f9e;color:#d9f3ff;border:1px solid #48b6ff;border-radius:4px;padding:1px 4px;font-size:9px;font-weight:900;line-height:1.2}
.vehicle-person{display:flex;flex-direction:column;align-items:center;gap:2px;white-space:nowrap}.person-mono{display:block;background:#245a87;border:1px solid #3977aa;border-radius:5px;padding:1px 5px;font-size:10px;font-weight:900;line-height:1.15}.person-mono.inline{display:inline-block;margin-left:5px;vertical-align:middle}.tractor-driver-line{white-space:nowrap;display:flex;align-items:center;justify-content:center}.tiny-date{display:block;color:#b9cce0;font-size:9px;margin-top:2px;white-space:nowrap}.date-range{display:block;margin-top:2px;color:#ffd16b;font-size:9px;font-weight:900;white-space:nowrap}.route-compact{line-height:1.1}.route-compact>span:first-child{display:block;white-space:normal}.tv-menu-button{display:none;position:fixed;top:8px;right:8px;z-index:100;background:#17314c;font-size:18px;padding:6px 10px}
.tv-panel{min-height:0}.fixed-tv-grid{grid-template-rows:minmax(0,1fr) minmax(0,1fr);height:calc(100vh - 245px);overflow:hidden}.fixed-tv-grid .tv-panel{height:100%;overflow:hidden}.fixed-tv-grid .tv-table{table-layout:fixed;height:auto}.fixed-tv-grid .tv-table th,.fixed-tv-grid .tv-table td{padding:4px 5px;font-size:11px;line-height:1.08}.fixed-tv-grid .tv-title{padding:6px 10px;font-size:16px}.density-medium .tv-table th,.density-medium .tv-table td{padding:3px 4px;font-size:10px}.density-medium .status-pill{font-size:9px;padding:2px 4px}.density-small .tv-table th,.density-small .tv-table td{padding:2px 3px;font-size:9px}.density-small .status-pill,.density-small .prepull-badge,.density-small .tv-note{font-size:8px;padding:1px 3px;margin-top:1px}.density-small .tv-title{font-size:13px;padding:4px}.density-xsmall .tv-table th,.density-xsmall .tv-table td{padding:1px 2px;font-size:7.5px}.density-xsmall .status-pill,.density-xsmall .prepull-badge,.density-xsmall .tv-note,.density-xsmall .date-range,.density-xsmall .tiny-date,.density-xsmall .person-mono{font-size:7px;padding:1px 2px;margin-top:0}.density-xsmall .tv-title{font-size:11px;padding:3px}.density-xsmall .tomorrow-alert{font-size:7px;padding:1px 2px;margin:1px 0}.tv-fleet-panel{margin-top:6px}.tv-fleet-grid{padding:5px;gap:5px}.tv-fleet-group{padding:4px}.tv-fleet-group h4{font-size:11px;margin-bottom:3px}.tv-fleet-list{max-height:34px;overflow:hidden;margin-top:3px}.tv-fleet-list>span{font-size:8px;padding:1px 3px}.tv-fleet-counts span{font-size:8px;padding:1px 4px}
body.tv-fullscreen{overflow:hidden}.tv-fullscreen .topbar,.tv-fullscreen nav{display:none!important}.tv-fullscreen main{padding:0!important;height:100vh;overflow:hidden}.tv-fullscreen .tv{height:100vh;min-height:100vh;padding:4px;overflow:hidden}.tv-fullscreen .tv-toolbar{display:none}.tv-fullscreen .tv-menu-button{display:block}.tv-fullscreen .fixed-tv-grid{height:calc(100vh - 105px);gap:4px}.tv-fullscreen .tv-panel{border-width:1px;border-radius:5px}.tv-fullscreen .tv-fleet-panel{height:96px;margin-top:4px;overflow:hidden}.tv-fullscreen.tv-menu-open nav{display:flex!important;position:fixed!important;top:0!important;left:0;right:50px;z-index:99}.tv-fullscreen.tv-menu-open main{padding-top:50px!important}.tv-fullscreen.tv-menu-open .fixed-tv-grid{height:calc(100vh - 155px)}
@media (min-width:2500px){.fixed-tv-grid .tv-table th,.fixed-tv-grid .tv-table td{font-size:13px}.density-small .tv-table th,.density-small .tv-table td{font-size:10px}.density-xsmall .tv-table th,.density-xsmall .tv-table td{font-size:8px}}

/* ===== ÁKOS vezetői dashboard – mobil-first ===== */
.akos-dashboard{max-width:1500px;margin:0 auto}.akos-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:18px 20px;border:1px solid #28435e;border-radius:16px;background:linear-gradient(135deg,#102a43,#0b1725)}.akos-head p{margin:0;color:#69b9ef;font-weight:900;letter-spacing:.12em;font-size:11px}.akos-head h2{font-size:34px;margin:3px 0}.akos-head span{color:#b9cce0}.akos-head button{min-width:110px}.akos-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.akos-metric{position:relative;min-height:128px;padding:14px;border-radius:15px;border:1px solid #28435e;background:#0d2033;text-align:center;overflow:hidden}.akos-metric[onclick]{cursor:pointer}.akos-metric .akos-icon{font-size:26px}.akos-metric>strong{display:block;font-size:34px;line-height:1;margin:5px 0}.akos-metric>span{display:block;color:#c4d4e5;font-weight:800;font-size:12px;text-transform:uppercase}.akos-metric.blue{border-bottom:4px solid #3aa7f2}.akos-metric.green{border-bottom:4px solid #37cb78}.akos-metric.orange{border-bottom:4px solid #f2a93b}.akos-metric.purple{border-bottom:4px solid #a276e8}.akos-metric.red{border-bottom:4px solid #ef5b65}.akos-detail{display:none;margin-top:10px;padding-top:8px;border-top:1px solid #ffffff18;color:#d9e6f2;font-size:11px;line-height:1.5}.akos-metric.open .akos-detail{display:block}.akos-sources{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}.akos-source{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px 15px;border:1px solid #28435e;border-radius:13px;background:#10243a}.akos-source strong{font-size:27px}.akos-source span{font-weight:900}.akos-source small{color:#9fb4c9}.akos-columns{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}.akos-box{border:1px solid #28435e;border-radius:14px;background:#0d2033;overflow:hidden}.akos-box h3{margin:0;padding:11px 14px;background:#142f49;font-size:13px;letter-spacing:.05em}.akos-list{padding:8px}.akos-alert,.akos-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0;padding:10px 11px;border:1px solid #794349;border-radius:10px;background:#34181c}.akos-alert.warning{border-color:#8a682d;background:#342a14}.akos-alert.tech{border-color:#3c6080;background:#122b41}.akos-alert b,.akos-alert span,.akos-alert small{display:block}.akos-alert span{flex:1}.akos-alert small{color:#b8c9d9;text-align:right}.akos-row{border-color:#28435e;background:#10243a}.akos-row div small{display:block;color:#9fb4c9;margin-top:2px}.akos-row>span{white-space:nowrap;color:#d6e4ef}.akos-leaves{display:grid;gap:10px}.akos-empty{padding:18px;text-align:center;color:#8fa6bb}.akos-foot{text-align:center;color:#71879b;font-size:11px;margin:12px 0 0}
@media(max-width:900px){.akos-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.akos-columns{grid-template-columns:1fr}.akos-sources{grid-template-columns:1fr}.akos-head h2{font-size:29px}}
@media(max-width:560px){main{padding:8px}.akos-head{padding:13px}.akos-head h2{font-size:25px}.akos-head span{font-size:11px}.akos-head button{min-width:auto;padding:8px}.akos-metrics{gap:7px}.akos-metric{min-height:112px;padding:10px 6px}.akos-metric>strong{font-size:29px}.akos-metric>span{font-size:10px}.akos-source{padding:9px 11px}.akos-alert{display:block}.akos-alert span,.akos-alert small{margin-top:4px;text-align:left}.akos-row{font-size:12px}.akos-box h3{font-size:12px}nav{overflow-x:auto;flex-wrap:nowrap}nav button{white-space:nowrap}}


/* ===== TIMX BÉTA 2.4 ===== */
.adaptive-tv-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;height:calc(100vh - 245px);overflow:hidden}.tv-column{display:flex;flex-direction:column;gap:5px;min-height:0}.tv-flex-panel{min-height:0;overflow:hidden}.tv-flex-panel>.tv-panel{height:100%;overflow:hidden}.tv-flex-panel .tv-table{table-layout:fixed}.tv-flex-panel .tv-title{flex:0 0 auto}.tv-flex-panel .tv-table th,.tv-flex-panel .tv-table td{padding:3px 4px;font-size:10px;line-height:1.05}.tv-fullscreen .adaptive-tv-grid{height:calc(100vh - 105px)}.tv-fullscreen.tv-menu-open .adaptive-tv-grid{height:calc(100vh - 155px)}
.akos-kpi-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #ffffff16}.akos-metric.open{grid-row:span 2;min-height:230px}.akos-detail{max-height:180px;overflow:auto;text-align:left}.akos-detail .akos-row{font-size:10px;padding:6px}.akos-source{cursor:default}
.rank-row{grid-template-columns:1.1fr .5fr 1fr .9fr 1.15fr!important}.driver-rank{min-width:150px;font-size:10px;padding:6px!important}
.tomorrow-page{max-width:1600px;margin:auto}.free-domestic{background:#10243a;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px}.free-domestic h3{margin:0 0 8px}.free-driver-chip{display:inline-block;padding:5px 8px;margin:3px;border-radius:999px;background:#124e36;color:#8cf0bc;border:1px solid #2a8b5c;font-weight:800;font-size:11px}.tomorrow-job-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px}.tomorrow-job{padding:14px}.tomorrow-job header{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.tomorrow-job header b,.tomorrow-job header span{display:block}.tomorrow-job header div>span{margin-top:4px;color:var(--muted)}.tomorrow-form{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.tomorrow-form label{font-size:11px;color:var(--muted)}.check-card{display:flex!important;align-items:center;justify-content:space-between;background:#14283e;border:1px solid var(--line);border-radius:8px;padding:10px}.check-card input{width:auto!important;transform:scale(1.25)}
@media(max-width:900px){.adaptive-tv-grid{grid-template-columns:1fr;height:auto}.tomorrow-form{grid-template-columns:1fr}.rank-row{grid-template-columns:1fr!important}.akos-metric.open{grid-row:auto}}
/* BÉTA 2.5 */
.open-badge,.rental-badge{display:block;margin:2px auto 0;width:max-content;padding:1px 5px;border-radius:5px;font-size:9px;font-weight:900;line-height:1.25;letter-spacing:.04em}
.open-badge{background:#fff;color:#111;border:1px solid #d9e6f2}.rental-badge{background:#6c4bd6;color:#fff;border:1px solid #a58cf5}
.fleet-category{min-width:145px}.fleet-main{min-width:0}.busy-where{margin-top:4px;color:#ffc857;font-size:10px;line-height:1.25;max-width:250px}.fleet-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.danger-mini{background:#53232b!important;border-color:#9c3c4d!important;color:#fff!important;padding:4px 7px!important;font-size:10px!important}
@media(max-width:900px){.fleet-category{min-width:0}.busy-where{max-width:none}.akos-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* ===== BÉTA 2.6: kategóriás eszközpark ===== */
.categorized-grid{align-items:start}.fleet-col.categorized{overflow:visible}.fleet-col.categorized>h3{position:sticky;top:126px;z-index:5;border-radius:13px 13px 0 0}.fleet-category-group{border-top:1px solid #29405b;background:#0b1928}.fleet-category-group>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;background:#132a42;cursor:pointer;font-size:12px;font-weight:900;list-style:none}.fleet-category-group>summary::-webkit-details-marker{display:none}.fleet-category-group>summary:before{content:'▾';color:#64b9f3;font-size:13px}.fleet-category-group:not([open])>summary:before{content:'▸'}.fleet-category-group>summary>span:first-of-type{flex:1}.category-count{font-size:10px;color:#aebfd0;font-weight:600;text-align:right}.category-count i{color:#71e7aa;font-style:normal}.category-count em{color:#ffb3b7;font-style:normal}.fleet-category-items{background:#091521}.fleet-card{grid-template-columns:minmax(135px,1.2fr) minmax(135px,1fr) minmax(110px,.8fr) minmax(145px,1.05fr)}.fleet-control{min-width:0}.fleet-control select,.fleet-control input{width:100%}.small-empty{padding:14px}.mobile-nav-toggle,.mobile-nav-head{display:none}

/* ===== BÉTA 2.6: reszponzív webalkalmazás ===== */
@media(max-width:1100px){
 .categorized-grid{grid-template-columns:1fr}.fleet-col.categorized>h3{position:static}.fleet-card{grid-template-columns:minmax(160px,1.2fr) minmax(150px,1fr) minmax(120px,.8fr) minmax(160px,1fr)}
}
@media(max-width:760px){
 body{overflow-x:hidden}.topbar{position:sticky;top:0;padding:10px 12px;flex-direction:row;align-items:center}.topbar h1{font-size:17px}.topbar p{font-size:10px}.top-actions{display:none}.mobile-nav-toggle{display:block;flex:0 0 auto;font-size:20px;padding:7px 10px;margin-left:auto}.mobile-nav-head{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 12px;border-bottom:1px solid #29405b;margin-bottom:4px}.mobile-nav-head button{padding:5px 8px}
 nav{position:fixed;left:0;top:0;bottom:0;width:min(310px,88vw);z-index:200;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:12px;background:#081421;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;box-shadow:10px 0 35px #0009}body.mobile-nav-open nav{transform:translateX(0)}body.mobile-nav-open:after{content:'';position:fixed;inset:0;background:#0009;z-index:190}nav button{text-align:left;width:100%;padding:11px 12px}main{padding:8px}.toolbar{align-items:stretch}.toolbar .left,.toolbar .right{width:100%;align-items:stretch}.toolbar .right>*{flex:1;min-width:130px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat{padding:10px}.stat strong{font-size:20px}.fleet-card,.rank-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:11px}.fleet-main{padding-bottom:3px}.fleet-actions{justify-content:flex-start}.fleet-category-group>summary{padding:12px 10px}.category-count{max-width:45%}.form-grid{grid-template-columns:1fr}.modal-backdrop{padding:6px}.modal{padding:12px;border-radius:10px;max-height:96vh}.modal-actions{position:sticky;bottom:-12px;background:#0f1d2f;padding:10px 0}.table-wrap{max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:1000px}.tomorrow-job-grid{grid-template-columns:1fr}.akos-dashboard{width:100%}
}
@media(max-width:420px){.stats{grid-template-columns:1fr 1fr}.topbar h1{font-size:15px}.topbar p{display:none}.category-count{font-size:9px}.fleet-category-group>summary>span:first-of-type{font-size:11px}}

/* BETA 2.6.1 – sofőrlista igazítás javítása */
.fleet-item.driver-row.rank-row{
  display:grid!important;
  grid-template-columns:minmax(180px,1.35fr) minmax(270px,1.25fr) minmax(170px,.9fr) minmax(210px,auto)!important;
  gap:14px!important;
  align-items:center!important;
}
.fleet-item.driver-row .fleet-control{min-width:0;width:100%;}
.fleet-item.driver-row .fleet-category-control{display:grid!important;grid-template-columns:72px minmax(180px,1fr)!important;gap:10px!important;align-items:center!important;}
.fleet-item.driver-row .driver-mono{width:72px!important;min-width:72px!important;margin:0!important;box-sizing:border-box;}
.fleet-item.driver-row .driver-rank{width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box;}
.fleet-item.driver-row>select{width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box;}
.fleet-item.driver-row .fleet-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:wrap!important;min-width:0;}
@media(max-width:1100px){
 .fleet-item.driver-row.rank-row{grid-template-columns:1fr 1fr!important;}
 .fleet-item.driver-row .fleet-actions{justify-content:flex-start!important;}
}
@media(max-width:650px){
 .fleet-item.driver-row.rank-row{grid-template-columns:1fr!important;gap:9px!important;}
 .fleet-item.driver-row .fleet-category-control{grid-template-columns:72px minmax(0,1fr)!important;}
 .fleet-item.driver-row .fleet-actions{width:100%;}
}

/* BÉTA 2.7 – TIMX Special */
.akos-sources{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.akos-sources{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.akos-sources{grid-template-columns:1fr}}
\n\n/* ===== BÉTA 2.8 – automatikus TV-magasság + furgon/sofőr foglaltság ===== */
/* A TV-panelek nem vágnak le sort és nincs belső görgetés: a magasság a tartalommal nő. */
.adaptive-tv-grid{height:auto!important;min-height:0!important;overflow:visible!important;align-items:start}
.tv-column{min-height:0!important;height:auto!important;overflow:visible!important}
.tv-flex-panel{min-height:0!important;height:auto!important;overflow:visible!important;flex:none!important}
.tv-flex-panel>.tv-panel{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
.tv-flex-panel .tv-table{height:auto!important}
.tv-fullscreen .adaptive-tv-grid,.tv-fullscreen.tv-menu-open .adaptive-tv-grid{height:auto!important;overflow:visible!important}
/* A főoldal görget, nem az egyes fuvarpanelek. */
.tv{height:auto!important;min-height:100vh!important;overflow:visible!important}
@media(max-width:900px){
 .adaptive-tv-grid{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
 .tv-column,.tv-flex-panel,.tv-flex-panel>.tv-panel{height:auto!important;max-height:none!important;overflow:visible!important}
}

/* ===== BÉTA 2.9 – mobil túlcsordulás + jól olvasható TV státusz ===== */
.sync-state{margin-left:auto;padding:5px 9px;border-radius:999px;border:1px solid #31506e;background:#10243a;color:#9fb4c9;font-size:10px;font-weight:900;white-space:nowrap}
body[data-sync="ok"] .sync-state{color:#83e9b3;border-color:#28734d;background:#103523}
body[data-sync="error"] .sync-state{color:#ffb3b7;border-color:#8f3947;background:#3b1920}
.tv,.tv-grid,.adaptive-tv-grid,.tv-column,.tv-flex-panel,.tv-panel{max-width:100%;box-sizing:border-box}
.tv-panel{min-width:0!important}
.tv-table{width:100%!important;max-width:100%!important;table-layout:fixed!important}
.tv-table th,.tv-table td{min-width:0!important;max-width:none!important;overflow-wrap:anywhere;word-break:break-word}
.tv-table .status-pill{display:inline-flex;justify-content:center;align-items:center;max-width:100%;white-space:normal;text-align:center;line-height:1.12;box-sizing:border-box}
.density-small .tv-table .status-pill,.density-xsmall .tv-table .status-pill{font-size:10px!important;min-height:20px;padding:3px 5px!important}
.tv-note{max-width:100%;overflow-wrap:anywhere}
.mobile-native-select{width:100%;min-height:44px;background:#0b1728;color:#e5edf6;border:1px solid #35516e;border-radius:8px;padding:9px 36px 9px 10px;font:inherit}
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:hidden!important}
 .sync-state{display:none}
 main,#app,.tv{width:100%;max-width:100%;overflow-x:hidden!important;box-sizing:border-box}
 .adaptive-tv-grid,.tv-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:8px!important}
 .tv-column,.tv-flex-panel,.tv-panel{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
 .tv-panel{border-radius:12px}
 .tv-title{font-size:22px!important;line-height:1.05;padding:12px 8px!important;overflow:hidden}
 .tv-corner-label{position:static!important;display:inline-block!important;margin-left:6px!important;font-size:10px!important;max-width:45%;vertical-align:middle}
 .tv-table{font-size:9px!important}
 .tv-table th,.tv-table td{padding:5px 2px!important;font-size:9px!important;line-height:1.12!important}
 .tv-table .status-pill{font-size:9px!important;padding:3px 3px!important;width:100%;border-radius:9px}
 .route-compact,.route-compact span,.tiny-date,.tv-driver-mini{font-size:9px!important}
 .tv-fleet-grid{grid-template-columns:1fr!important}
 body.mobile-nav-open{overflow:hidden}
}
/* BÉTA 3.0 – belépés, admin, közös adatbázis */
.logged-user{color:#b9cce0;font-size:12px;align-self:center}.header-link{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #365574;background:#17314c;color:#fff;border-radius:9px;padding:9px 12px;font-weight:700}.auth-page{min-height:100vh;display:grid;place-items:center;padding:18px}.auth-card{width:min(460px,100%);background:#0f1d2f;border:1px solid #3e5d7c;border-radius:18px;padding:24px;box-shadow:0 20px 60px #0008}.auth-card h1{font-size:25px;margin-bottom:5px}.auth-card p{color:var(--muted);margin-top:0}.auth-card label{display:block;margin:13px 0;color:#b9cce0}.auth-card input,.auth-card select{width:100%;margin-top:6px;background:#091625;border:1px solid #36516d;color:#fff;border-radius:9px;padding:12px;font:inherit}.auth-card button{width:100%;margin-top:10px}.auth-error,.auth-success{padding:11px 12px;border-radius:9px;margin:12px 0}.auth-error{background:#5b2028;color:#ffd5d8;border:1px solid #a44752}.auth-success{background:#124e36;color:#bdf6d7;border:1px solid #2d8c61}.install-card{width:min(620px,100%)}.install-card h2{font-size:16px;margin:20px 0 8px}.admin-page{max-width:1250px;margin:0 auto}.admin-form{padding:16px;margin-bottom:14px}.admin-page form{margin:0}.sync-state{font-size:10px;font-weight:900;letter-spacing:.05em;padding:5px 8px;border-radius:999px;background:#20364d;color:#b9d7ef;white-space:nowrap}body[data-sync="ok"] .sync-state{background:#124e36;color:#87f3bd}body[data-sync="error"] .sync-state{background:#66202a;color:#ffadb2}
@media(max-width:760px){.sync-state{position:absolute;right:54px;bottom:7px;font-size:8px}.topbar{padding-bottom:24px}.auth-card{padding:18px}.admin-page{padding:8px}.logged-user{display:none}}


/* ===== BÉTA 3.1 ===== */
.fleet-toolbar .right{display:flex;gap:8px;align-items:center}.fleet-search{width:min(440px,70vw);max-width:none}
.fleet-main-section{overflow:hidden}.fleet-main-section>summary{list-style:none;cursor:pointer}.fleet-main-section>summary::-webkit-details-marker{display:none}
.fleet-main-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#18314c;font-size:18px;font-weight:900}
.fleet-main-summary:before,.fleet-category-group>summary:before{content:'▸';display:inline-block;margin-right:7px;transition:transform .15s}.fleet-main-section[open]>.fleet-main-summary:before,.fleet-category-group[open]>summary:before{transform:rotate(90deg)}
.fleet-main-summary>span:first-of-type{margin-right:auto}.fleet-main-body{min-width:0}
.fleet-count-badge{margin-left:auto;text-align:right;font-size:11px;font-weight:700;color:#b8cadc;white-space:normal}.fleet-count-badge b{color:#eaf5ff}.fleet-count-badge em{color:#ffadb2;font-style:normal}.fleet-count-badge i{color:#87f3bd;font-style:normal}
.fleet-category-group>summary{display:flex;align-items:center;gap:5px}.fleet-category-group>summary>span:first-of-type{margin-right:auto}

/* Mobil TV: ne préselje össze olvashatatlanra a 6–7 oszlopot. A panel vízszintesen mozgatható, a sorok és betűk nagyobbak maradnak. */
@media(max-width:760px){
 .fleet-toolbar .right{display:grid;grid-template-columns:1fr auto;width:100%}.fleet-search{width:100%;max-width:none;min-width:0}
 .fleet-main-summary{padding:13px 11px;font-size:15px}.fleet-count-badge{font-size:9px;max-width:58%}
 .fleet-category-group>summary{padding:12px 9px}.fleet-category-group>summary .fleet-count-badge{max-width:62%}
 .tv-panel{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
 .tv-panel .tv-table{min-width:720px!important;table-layout:auto!important}
 .tv-panel .tv-table th,.tv-panel .tv-table td{font-size:12px!important;line-height:1.22!important;padding:7px 5px!important;overflow-wrap:normal!important;word-break:normal!important}
 .tv-panel .tv-table .status-pill{font-size:11px!important;min-width:72px;width:auto!important;padding:5px 7px!important}
 .tv-panel .route-compact,.tv-panel .route-compact span,.tv-panel .tiny-date,.tv-panel .tv-driver-mini{font-size:12px!important}
 .tv-title{position:sticky;left:0;z-index:2}
}

/* ===== BÉTA 3.4 – kézi TV nézetek + egyszerű/részletes fuvarnézet ===== */
.view-switcher,.tv-view-switcher{display:flex;flex-wrap:wrap;gap:8px;margin:0 16px 12px}
.view-switcher button,.tv-view-switcher button{border:1px solid #355574;background:#10243a;color:#c9d8e7;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}
.view-switcher button.active,.tv-view-switcher button.active{background:#23639a;color:#fff;border-color:#69a7d8;box-shadow:0 0 0 2px #23639a55}
.tv-view-switcher{position:sticky;top:0;z-index:12;background:#071321;padding:9px 12px;margin:0 0 10px;border-bottom:1px solid #29435e}
.simple-freight-table{width:100%;table-layout:fixed}.simple-freight-table th,.simple-freight-table td{padding:10px 8px;vertical-align:middle}.simple-freight-table td{font-size:13px}.simple-import{margin-top:5px;color:#9fc2df;font-size:11px}.compact-note{margin-top:5px}.simple-table-wrap{max-height:none}
.tv-dual-grid,.tv-today-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.tv-single-view{width:100%}.tv-single-view .tv-table,.tv-dual-grid .tv-table{font-size:clamp(11px,1vw,18px)}
.tv-single-view .tv-table th,.tv-single-view .tv-table td{padding:clamp(7px,.7vw,14px)}.tv-task-panel .tv-title.tasks{background:#4b367c}.task-table td{font-size:clamp(12px,1.15vw,20px);padding:clamp(8px,.8vw,15px)}
.tv-mode-tomorrow .tv-task-panel,.tv-mode-colo .tv-single-view,.tv-mode-freight .tv-single-view{max-width:100%}.tv-mode-dual .tv-panel{height:auto!important;overflow:visible!important}
@media(max-width:900px){.tv-dual-grid,.tv-today-grid{grid-template-columns:1fr}.tv-view-switcher{overflow-x:auto;flex-wrap:nowrap}.tv-view-switcher button{white-space:nowrap}.simple-freight-table{min-width:760px}.freight-view-switcher{margin:0 8px 10px}}
@media(min-width:1600px){.tv-mode-dual .tv-table th,.tv-mode-dual .tv-table td{font-size:13px!important;padding:6px 4px!important}.tv-mode-colo .tv-table th,.tv-mode-colo .tv-table td,.tv-mode-freight .tv-table th,.tv-mode-freight .tv-table td{font-size:16px!important;padding:9px 7px!important}}

/* ===== BÉTA 3.4.2 – egyszerű nézet műveletek + stabil TV Display ===== */
.simple-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;min-width:118px}
.simple-actions .icon-btn{margin:0;font-size:11px;padding:5px 7px}
.tv-fit-stage{position:relative;width:100%;max-width:100%;overflow:hidden;min-height:0}
.tv-fit-inner{width:100%;transform-origin:top left;will-change:transform}

/* Asztali képernyőn minden sor egyben látható; a JS a teljes tartalmat arányosan méretezi. */
@media(min-width:901px){
 .tv-fit-inner .tv-panel{overflow:visible!important}
 .tv-fit-inner .tv-table{height:auto!important}
 .tv-fit-inner .adaptive-tv-grid{height:auto!important;overflow:visible!important}
 .tv-fit-inner .tv-column,.tv-fit-inner .tv-flex-panel{overflow:visible!important;height:auto!important}
}

/* Telefon: nincs 720 px-es kényszerszélesség, ezért nem csordul oldalra. */
@media(max-width:900px){
 .tv-fit-stage,.tv-fit-inner{width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important;transform:none!important}
 .tv-panel{overflow:hidden!important;width:100%!important;max-width:100%!important}
 .tv-panel .tv-table{min-width:0!important;width:100%!important;max-width:100%!important;table-layout:fixed!important}
 .tv-panel .tv-table th,.tv-panel .tv-table td{font-size:9px!important;line-height:1.12!important;padding:5px 2px!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .tv-panel .tv-table .status-pill{font-size:8px!important;min-width:0!important;width:auto!important;max-width:100%!important;padding:3px!important}
 .tv-panel .tomorrow-alert{font-size:8px!important;padding:4px 2px!important;line-height:1.1!important}
 .tv-panel .tv-note{font-size:8px!important}
 .tv-panel .route-compact,.tv-panel .route-compact span,.tv-panel .tiny-date,.tv-panel .tv-driver-mini{font-size:8px!important}
 .tv-mode-all .tvExportPanel{} /* marker */
 .tv-view-switcher{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 .tv-view-switcher button{flex:0 0 auto}
 .tv-toolbar h2{font-size:22px!important}
 .tv-toolbar .muted{font-size:12px!important}
}

/* Telefonon a kevésbé fontos oszlopok elrejtése, hogy a fő információ kiférjen. */
@media(max-width:600px){
 .tv-mode-all .tv-panel .tv-table th,.tv-mode-all .tv-panel .tv-table td,
 .tv-mode-dual .tv-panel .tv-table th,.tv-mode-dual .tv-panel .tv-table td,
 .tv-mode-colo .tv-panel .tv-table th,.tv-mode-colo .tv-panel .tv-table td,
 .tv-mode-freight .tv-panel .tv-table th,.tv-mode-freight .tv-panel .tv-table td{font-size:8px!important;padding:4px 1px!important}
 .tv-mode-all .tv-title,.tv-mode-dual .tv-title,.tv-mode-colo .tv-title,.tv-mode-freight .tv-title{font-size:22px!important;padding:9px 4px!important}
 .tv-fleet-grid{grid-template-columns:1fr!important}
 .simple-actions{min-width:104px;gap:3px}.simple-actions .icon-btn{font-size:9px;padding:4px 5px}
}

/* ===== BÉTA 3.4.3 – holnapi munkák és TV feladatnézetek ===== */
.tomorrow-current-assignment{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;margin:8px 0 10px;padding:8px 10px;border:1px solid #365574;border-radius:9px;background:#0a1929;color:#bcd0e4;font-size:12px}
.tomorrow-current-assignment>b{color:#fff}.tomorrow-current-assignment strong{color:#fff}
.tv-tomorrow-stack{display:grid;grid-template-columns:1fr;gap:12px}
.tv-title.tomorrow-export-title{background:#8a4a17}
.tv-mode-tomorrow .task-table th,.tv-mode-tomorrow .task-table td{padding:clamp(8px,.75vw,14px)}
@media(max-width:900px){.tomorrow-current-assignment{font-size:11px}.tv-tomorrow-stack{gap:9px}}

/* BÉTA 3.4.5 – holnapi importlerakás kiemelése az egyszerű nézetben */
.simple-freight-table tbody tr.simple-tomorrow-import>td{
  background:linear-gradient(90deg,rgba(255,193,7,.30),rgba(255,152,0,.18))!important;
  border-top:2px solid #ffd233!important;
  border-bottom:2px solid #ffd233!important;
  animation:simpleTomorrowImportPulse 1.15s ease-in-out infinite alternate;
}
.simple-freight-table tbody tr.simple-tomorrow-import>td:first-child{border-left:3px solid #ffd233!important}
.simple-freight-table tbody tr.simple-tomorrow-import>td:last-child{border-right:3px solid #ffd233!important}
.simple-freight-table tbody tr.simple-tomorrow-import .simple-import::before{
  content:'⚠ IMPORT LERAKÁS!';display:inline-flex;margin:0 0 3px;padding:2px 6px;border-radius:999px;
  background:#ffbf00;color:#151000;font-weight:1000;font-size:9px;line-height:1;letter-spacing:.02em;text-align:center;white-space:nowrap;
}
@keyframes simpleTomorrowImportPulse{from{filter:brightness(1)}to{filter:brightness(1.22)}}
@media (prefers-reduced-motion:reduce){.simple-freight-table tbody tr.simple-tomorrow-import>td{animation:none}}


/* ===== BÉTA 3.4.6 – stabil TV-kioszk mód =====
   Nincs tartalomfüggő transform/scale, ezért a TV böngészőben nem ugrál és nem omlik szét. */
.tv-fit-stage{overflow:visible!important;height:auto!important;contain:layout paint}
.tv-fit-inner{transform:none!important;width:100%!important;height:auto!important;will-change:auto!important}
.tv .tv-panel,.tv .tv-table,.tv .adaptive-tv-grid,.tv .tv-column,.tv .tv-flex-panel{transform:none!important}
.tv-view-switcher{position:relative!important;top:auto!important}
.tv-table{border-collapse:collapse}
.tv-table th,.tv-table td{box-sizing:border-box}

/* Stabil sűrűség: csak a sorok betűmérete/paddingje változik, a teljes oldal nem nagyítódik át. */
@media(min-width:901px){
 .tv-density-normal .tv-table th,.tv-density-normal .tv-table td{font-size:clamp(13px,.72vw,18px)!important;padding:7px 5px!important;line-height:1.14!important}
 .tv-density-compact .tv-table th,.tv-density-compact .tv-table td{font-size:clamp(11px,.58vw,15px)!important;padding:4px 3px!important;line-height:1.08!important}
 .tv-density-ultra .tv-table th,.tv-density-ultra .tv-table td{font-size:clamp(9px,.46vw,12px)!important;padding:2px 2px!important;line-height:1.04!important}
 .tv-density-compact .tv-title{font-size:clamp(20px,1.25vw,32px)!important;padding:7px 5px!important}
 .tv-density-ultra .tv-title{font-size:clamp(17px,1vw,26px)!important;padding:5px 4px!important}
 .tv-density-compact .status-pill,.tv-density-compact .tv-note,.tv-density-compact .tomorrow-alert{font-size:clamp(9px,.48vw,12px)!important;line-height:1.05!important}
 .tv-density-ultra .status-pill,.tv-density-ultra .tv-note,.tv-density-ultra .tomorrow-alert{font-size:clamp(7px,.38vw,10px)!important;line-height:1!important;padding:2px 3px!important}
 .tv-density-ultra .tiny-date,.tv-density-ultra .tv-driver-mini,.tv-density-ultra .route-compact,.tv-density-ultra .route-compact span{font-size:clamp(7px,.37vw,10px)!important}
 .tv-mode-freight .tv-single-view,.tv-mode-colo .tv-single-view{min-height:0!important}
 .tv-mode-freight .tv-table,.tv-mode-colo .tv-table{table-layout:fixed!important;width:100%!important}
 .tv-mode-all .adaptive-tv-grid{align-items:start!important}
}

/* TV-böngészőkben a fullscreen magassága stabil legyen; nincs belső scroll és nincs animált méretezés. */
:fullscreen .tv,:-webkit-full-screen .tv{width:100vw!important;min-height:100vh!important;overflow:hidden!important;background:#020a12}
:fullscreen .topbar,:fullscreen #nav,:-webkit-full-screen .topbar,:-webkit-full-screen #nav{display:none!important}
:fullscreen #app,:-webkit-full-screen #app{padding:0!important;margin:0!important;width:100vw!important;max-width:none!important}
:fullscreen .tv-toolbar,:-webkit-full-screen .tv-toolbar{display:none!important}
:fullscreen .tv-view-switcher,:-webkit-full-screen .tv-view-switcher{margin:0!important;padding:8px 10px!important}

/* A kijelzőn ne fusson semmilyen pulzáló animáció: gyenge TV böngészőknél ez villogást/újrarajzolást okoz. */
.tv .tomorrow-unload-row,.tv .tomorrow-alert,.tv .qol-alert{animation:none!important}

@media(max-width:900px){
 .tv-fit-stage{overflow-x:hidden!important}
 .tv-fit-inner{transform:none!important}
}


/* ===== BÉTA 3.4.7 – stabil, kézi lapozású TV nézet =====
   Fizikai korlát miatt sok sor nem lehet egyszerre nagy és olvasható. Ezért a rendszer
   kézzel lapozható, fix méretű képernyő-oldalakra bontja a fuvarokat. Nincs automatikus váltás. */
.tv-page-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 9px;padding:4px 8px}
.tv-page-controls button{min-width:150px;padding:8px 14px;font-size:15px}
.tv-page-controls button:disabled{opacity:.35;cursor:not-allowed}
.tv-page-controls strong{min-width:72px;text-align:center;font-size:18px;color:#fff;background:#17314c;border:1px solid #365574;border-radius:999px;padding:6px 12px}
:fullscreen .tv-page-controls,:-webkit-full-screen .tv-page-controls{margin:0;padding:5px 8px}
:fullscreen .tv-view-switcher,:-webkit-full-screen .tv-view-switcher{padding:5px 8px!important;margin:0!important}
:fullscreen .tv-view-switcher button,:-webkit-full-screen .tv-view-switcher button{padding:7px 12px!important}
:fullscreen .tv-fit-stage,:-webkit-full-screen .tv-fit-stage{height:auto!important;max-height:none!important;overflow:visible!important}
:fullscreen .tv-fit-inner,:-webkit-full-screen .tv-fit-inner{height:auto!important;overflow:visible!important}
:fullscreen .tv-panel,:-webkit-full-screen .tv-panel{max-height:none!important;overflow:visible!important}
.tv .tomorrow-alert{white-space:normal!important}
.tv .tomorrow-alert span:last-child{display:none!important}
@media(max-width:900px){.tv-page-controls{position:sticky;top:0;z-index:13;background:#071321;gap:7px}.tv-page-controls button{min-width:0;flex:1;font-size:11px;padding:7px 5px}.tv-page-controls strong{font-size:13px;min-width:58px;padding:5px 8px}}

/* ===== BÉTA 3.4.8 – TV lapozó mindig látható + biztos képernyőmagasság ===== */
.tv{padding-bottom:76px!important}
.tv-page-controls{position:fixed!important;left:50%!important;bottom:14px!important;transform:translateX(-50%)!important;z-index:9999!important;margin:0!important;padding:7px 10px!important;background:rgba(4,15,27,.96)!important;border:2px solid #3d6f9c!important;border-radius:16px!important;box-shadow:0 8px 30px #000c!important;backdrop-filter:blur(6px)}
.tv-page-controls.single-page{opacity:.8}
.tv-page-controls button{min-width:180px!important;font-size:17px!important;padding:10px 16px!important}
.tv-page-controls strong{font-size:19px!important}
.tv-fit-stage{max-height:calc(100vh - 142px)!important;overflow:hidden!important}
.tv-fit-inner{max-height:100%!important;overflow:hidden!important}
.tv-mode-all .adaptive-tv-grid,.tv-mode-dual .tv-dual-grid,.tv-mode-colo .tv-single-view,.tv-mode-freight .tv-single-view,.tv-mode-today .tv-today-grid,.tv-mode-tomorrow .tv-tomorrow-stack{max-height:calc(100vh - 150px)!important;overflow:hidden!important}
:fullscreen .tv,:-webkit-full-screen .tv{height:100vh!important;min-height:100vh!important;max-height:100vh!important;overflow:hidden!important;padding-bottom:72px!important}
:fullscreen .tv-fit-stage,:-webkit-full-screen .tv-fit-stage{height:calc(100vh - 118px)!important;max-height:calc(100vh - 118px)!important;overflow:hidden!important}
:fullscreen .tv-fit-inner,:-webkit-full-screen .tv-fit-inner{height:100%!important;max-height:100%!important;overflow:hidden!important}
:fullscreen .tv-page-controls,:-webkit-full-screen .tv-page-controls{bottom:10px!important}
@media(max-width:900px){
 .tv{padding-bottom:64px!important}
 .tv-page-controls{left:8px!important;right:8px!important;bottom:8px!important;transform:none!important;width:auto!important}
 .tv-page-controls button{min-width:0!important;font-size:12px!important;padding:9px 6px!important}
 .tv-page-controls strong{font-size:13px!important}
 .tv-fit-stage,.tv-fit-inner{max-height:none!important;overflow:visible!important}
}


/* ===== BÉTA 3.4.10 – kompakt importlerakás-jelzés ===== */
.tomorrow-alert{
  display:inline-flex!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  margin:2px auto 0!important;
  padding:2px 6px!important;
  border-radius:999px!important;
  background:#ffbf00!important;
  color:#171100!important;
  font-size:9px!important;
  font-weight:1000!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  box-shadow:0 0 0 1px #ffe98a inset!important;
}
.tomorrow-alert-icon{font-size:9px!important;line-height:1!important}
.tomorrow-alert strong{font-size:9px!important;line-height:1!important;white-space:nowrap!important}
.tv-table td:has(.tomorrow-alert){padding-top:3px!important;padding-bottom:3px!important}
.tv .tomorrow-alert{font-size:clamp(7px,.36vw,10px)!important;padding:2px 5px!important;margin:1px auto!important}
.tv .tomorrow-alert-icon,.tv .tomorrow-alert strong{font-size:inherit!important}
.simple-freight-table tbody tr.simple-tomorrow-import .simple-import::before{
  content:'⚠ IMPORT LERAKÁS!'!important;
  display:inline-flex!important;
  width:auto!important;
  margin:0 0 3px!important;
  padding:2px 6px!important;
  border-radius:999px!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
}


/* ===== TIMX BÉTA 3.5 – végleges kompakt jelzés + helyes dátumméretek ===== */
/* A figyelmeztetés minden nézetben rövid, egysoros, és nem növeli meg a sort. */
.tomorrow-alert,
.tv .tomorrow-alert,
.tv-density-normal .tomorrow-alert,
.tv-density-compact .tomorrow-alert,
.tv-density-ultra .tomorrow-alert{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  margin:2px auto!important;
  padding:3px 7px!important;
  border-radius:7px!important;
  font-size:clamp(8px,.42vw,11px)!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:0 0 0 1px #ffe48a inset!important;
}
.tomorrow-alert-icon,.tomorrow-alert strong,
.tv .tomorrow-alert-icon,.tv .tomorrow-alert strong{
  font-size:inherit!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.tv-table td:has(.tomorrow-alert){padding-top:3px!important;padding-bottom:3px!important}

/* TV Displayen a Coloplast dátum marad kompakt, nem óriási. */
.tv .tiny-date{
  font-size:clamp(8px,.43vw,11px)!important;
  line-height:1.05!important;
  font-weight:700!important;
  color:#d6e3ef!important;
  margin-top:2px!important;
}
.tv .tv-table td{vertical-align:middle!important}

/* Csak a normál Coloplast fül egyszerű nézetében legyen kicsivel nagyobb a dátum. */
.simple-coloplast-table .tiny-date{
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#e8f2fb!important;
  margin-top:4px!important;
}

/* A korábbi lapozós maradványok ne jelenjenek meg. */
.tv-page-controls{display:none!important}
.tv{padding-bottom:0!important}

/* Normál nézet görgethető; fullscreenben a tartalom reszponzívan férjen el. */
.tv-fit-stage,.tv-fit-inner{max-height:none!important;overflow:visible!important}
:fullscreen .tv,:-webkit-full-screen .tv{padding-bottom:0!important}

/* ===== TIMX BÉTA 3.5.1 – kizárólag a kért TV Display javítások ===== */
/* Normál (nem teljes képernyős) Összes és Colo + Fuvar nézet legyen függőlegesen görgethető. */
body:not(.tv-fullscreen) .tv-mode-all,
body:not(.tv-fullscreen) .tv-mode-dual{
  height:auto!important;
  min-height:100vh!important;
  max-height:none!important;
  overflow:visible!important;
}
body:not(.tv-fullscreen) .tv-mode-all .tv-fit-stage,
body:not(.tv-fullscreen) .tv-mode-all .tv-fit-inner,
body:not(.tv-fullscreen) .tv-mode-dual .tv-fit-stage,
body:not(.tv-fullscreen) .tv-mode-dual .tv-fit-inner{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
body:not(.tv-fullscreen) .tv-mode-all .adaptive-tv-grid{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
body:not(.tv-fullscreen) .tv-mode-all .tv-column,
body:not(.tv-fullscreen) .tv-mode-all .tv-flex-panel,
body:not(.tv-fullscreen) .tv-mode-all .tv-flex-panel>.tv-panel,
body:not(.tv-fullscreen) .tv-mode-dual .tv-dual-grid,
body:not(.tv-fullscreen) .tv-mode-dual .tv-panel{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Mai műveletek és Holnapi teendők: nagyobb, távolabbról is olvasható szöveg. */
.tv-mode-today .tv-task-panel .tv-title,
.tv-mode-tomorrow .tv-task-panel .tv-title{
  font-size:clamp(24px,1.55vw,38px)!important;
  line-height:1.08!important;
  padding:12px 14px!important;
}
.tv-mode-today .task-table th,
.tv-mode-tomorrow .task-table th{
  font-size:clamp(15px,.9vw,22px)!important;
  line-height:1.08!important;
  padding:8px 10px!important;
}
.tv-mode-today .task-table td,
.tv-mode-tomorrow .task-table td{
  font-size:clamp(17px,1.05vw,26px)!important;
  line-height:1.12!important;
  padding:9px 11px!important;
}
.tv-mode-today .task-table .status-pill,
.tv-mode-tomorrow .task-table .status-pill,
.tv-mode-today .task-table .tv-driver-mini,
.tv-mode-tomorrow .task-table .tv-driver-mini,
.tv-mode-today .task-table .mega-badge,
.tv-mode-tomorrow .task-table .mega-badge{
  font-size:clamp(12px,.72vw,18px)!important;
  line-height:1.05!important;
}

/* Teljes képernyős Összes és Colo + Fuvar működéséhez nem nyúlunk. */

/* ===== TIMX BÉTA 3.6 ===== */
.fleet-pair-select{width:100%;min-width:150px}
.pair-control label{display:grid;gap:4px;font-size:11px;color:#9fb2c8}
.linked-pair-note,.tractor-last-activity{margin-top:4px;font-size:11px;color:#9fb2c8}
.linked-leave-warning{margin-top:4px;padding:4px 6px;border:1px solid #f0a126;border-radius:6px;background:#50350c;color:#ffd77d;font-size:11px;font-weight:800}
.tomorrow-assigned{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:100%;padding:5px 8px;border:1px solid #2cb978;border-radius:7px;background:#0d5d3b;color:#d9ffeb;font-size:11px;line-height:1.05;text-align:center}
.tomorrow-assigned span{font-size:10px;font-weight:800}
.not-assigned{color:#ffcf68!important;font-weight:800}

/* Pseudo fullscreen fallback iPhone/Safari. */
body.tv-mobile-fullscreen{overflow:hidden!important}
body.tv-mobile-fullscreen .topbar,body.tv-mobile-fullscreen #nav{display:none!important}
body.tv-mobile-fullscreen #app{position:fixed!important;inset:0!important;z-index:99999!important;overflow:auto!important;background:#020c16!important;padding:0!important}
body.tv-mobile-fullscreen .tv{min-height:100dvh!important;width:100%!important;margin:0!important;padding:8px!important;overflow:auto!important}
body.tv-mobile-fullscreen .tv-toolbar{display:none!important}
body.tv-mobile-fullscreen .tv-menu-button{position:fixed!important;right:8px!important;top:8px!important;z-index:100001!important}

@media (max-width:760px){
  /* Telefonon a napi/holnapi táblák valódi kártyákká alakulnak, nincs túlfolyás. */
  .tv-mode-today .tv-today-grid,.tv-mode-tomorrow .tv-tomorrow-stack{display:block!important}
  .tv-mode-today .tv-task-panel,.tv-mode-tomorrow .tv-task-panel{margin-bottom:14px!important;overflow:visible!important}
  .tv-mode-today .tv-task-panel .tv-title,.tv-mode-tomorrow .tv-task-panel .tv-title{font-size:22px!important;line-height:1.12!important;padding:12px 10px!important;word-break:normal!important}
  .tv-mode-today .task-table,.tv-mode-tomorrow .task-table{display:block!important;width:100%!important;table-layout:auto!important}
  .tv-mode-today .task-table thead,.tv-mode-tomorrow .task-table thead{display:none!important}
  .tv-mode-today .task-table tbody,.tv-mode-tomorrow .task-table tbody{display:grid!important;gap:10px!important;padding:10px!important}
  .tv-mode-today .task-table tr,.tv-mode-tomorrow .task-table tr{display:grid!important;grid-template-columns:1fr!important;border:1px solid #28465f!important;border-radius:10px!important;overflow:hidden!important;background:#0b1c2c!important}
  .tv-mode-today .task-table td,.tv-mode-tomorrow .task-table td{display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;width:auto!important;max-width:none!important;min-width:0!important;padding:9px 10px!important;font-size:16px!important;line-height:1.2!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;border-right:0!important;border-bottom:1px solid #243e54!important}
  .tv-mode-today .task-table td:last-child,.tv-mode-tomorrow .task-table td:last-child{border-bottom:0!important}
  .tv-mode-today .task-table td::before,.tv-mode-tomorrow .task-table td::before{font-size:11px;font-weight:900;color:#87a9c6;text-transform:uppercase;letter-spacing:.03em}
  .tv-mode-today .task-table td:nth-child(1)::before{content:'Forrás'}
  .tv-mode-today .task-table td:nth-child(2)::before{content:'Feladat'}
  .tv-mode-today .task-table td:nth-child(3)::before{content:'Viszonylat'}
  .tv-mode-today .task-table td:nth-child(4)::before{content:'Vontató + sofőr'}
  .tv-mode-today .task-table td:nth-child(5)::before{content:'Pót'}
  .tv-mode-today .task-table td:nth-child(6)::before{content:'Státusz'}
  .tv-mode-tomorrow .tv-task-panel:first-child .task-table td:nth-child(1)::before{content:'Forrás'}
  .tv-mode-tomorrow .tv-task-panel:first-child .task-table td:nth-child(2)::before{content:'Viszonylat'}
  .tv-mode-tomorrow .tv-task-panel:first-child .task-table td:nth-child(3)::before{content:'Pót'}
  .tv-mode-tomorrow .tv-task-panel:first-child .task-table td:nth-child(4)::before{content:'Ki viszi lerakni'}
  .tv-mode-tomorrow .tv-task-panel:first-child .task-table td:nth-child(5)::before{content:'Státusz'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(1)::before{content:'Forrás'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(2)::before{content:'Fuvar'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(3)::before{content:'Ki rakja'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(4)::before{content:'Ki viszi'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(5)::before{content:'Pót'}
  .tv-mode-tomorrow .tv-task-panel:nth-child(2) .task-table td:nth-child(6)::before{content:'Státusz'}
  .tv-mode-today .task-table .status-pill,.tv-mode-tomorrow .task-table .status-pill{justify-self:start!important;font-size:12px!important;max-width:100%!important}
  .tv-view-switcher{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:5px!important}
  .tv-view-switcher button{flex:0 0 auto!important}
  .tomorrow-assigned,.tomorrow-alert{width:auto!important;max-width:100%!important}

  /* Minden TV-tábla mobilon a saját konténerén belül maradjon. */
  .tv-panel,.tv-table,.tv-fit-stage,.tv-fit-inner{max-width:100%!important}
  .tv-table{table-layout:fixed!important}
  .tv-table th,.tv-table td{overflow-wrap:anywhere!important;word-break:normal!important}
}


/* TIMX BÉTA 3.6.1 – ÁKOS javítás és beosztott import halványzöld kiemelés */
.import-assigned-row td,
.simple-import-assigned td{
  background:linear-gradient(90deg,rgba(33,104,72,.42),rgba(23,75,55,.34))!important;
  border-top:2px solid #4fd18d!important;
  border-bottom:2px solid #4fd18d!important;
  animation:none!important;
}
.import-assigned-row:hover td,
.simple-import-assigned:hover td{
  background:linear-gradient(90deg,rgba(39,122,84,.5),rgba(27,88,63,.42))!important;
}
.tv .import-assigned-row td{font-weight:800}


/* ===== TIMX LIVE PILOT 1.0 ===== */
.vac-calendar{min-width:min(760px,88vw)}.vac-title{text-align:center;font-size:1.2rem;font-weight:800;margin-bottom:10px}.vac-week,.vac-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.vac-week b{text-align:center}.vac-day{min-height:82px;border:1px solid #334155;border-radius:8px;padding:6px;background:#0f172a}.vac-day.empty{opacity:.25}.vac-day>b{display:block}.vac-day span{display:block;font-size:.72rem;margin-top:3px;background:#4c1d95;padding:3px 5px;border-radius:5px}
.akos-live-lastwork{margin-top:18px}.driver-live-status{margin-top:5px;padding:5px 7px;border-radius:6px;background:#172554;color:#bfdbfe;font-size:.78rem}.driver-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.driver-status-card{display:flex;flex-direction:column;gap:7px}.tomorrow-resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
@media(max-width:700px){
 html,body{overflow-x:hidden!important;max-width:100%!important}.topbar{align-items:flex-start}.toolbar,.toolbar .right{flex-direction:column!important;align-items:stretch!important}.toolbar>*{max-width:100%}
 .table-wrap{overflow:visible!important;max-height:none!important}.table-wrap table{min-width:0!important;width:100%!important;table-layout:fixed}.table-wrap th,.table-wrap td{text-align:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;padding:7px 4px!important}
 .simple-table th:nth-child(1),.simple-table td:nth-child(1){width:16%}.simple-table th:nth-child(4),.simple-table td:nth-child(4){text-align:center!important}.tiny-date{display:block}.simple-table td:first-child strong,.simple-table td:first-child .tiny-date{display:block}.simple-table td:first-child strong{font-size:0}.simple-table td:first-child strong::after{content:attr(data-day)}
 .tv,.tv-fit-stage,.tv-fit-inner,.tv-single-view,.tv-dual-grid,.adaptive-tv-grid,.tv-today-grid,.tv-tomorrow-stack{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important;width:100%!important;transform:none!important}.tv-panel{height:auto!important;max-height:none!important;margin-bottom:12px}.tv-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.tv-table th,.tv-table td{font-size:12px!important;line-height:1.2!important;padding:6px 3px!important;text-align:center!important;overflow-wrap:anywhere!important}.tv-task-panel .tv-table,.tv-mode-today .tv-table,.tv-mode-tomorrow .tv-table{display:block!important}.tv-task-panel thead,.tv-mode-today thead,.tv-mode-tomorrow thead{display:none!important}.tv-task-panel tbody,.tv-task-panel tr,.tv-mode-today tbody,.tv-mode-today tr,.tv-mode-tomorrow tbody,.tv-mode-tomorrow tr{display:block!important;width:100%!important}.tv-task-panel tr,.tv-mode-today tr,.tv-mode-tomorrow tr{padding:10px;margin:8px 0;border:1px solid #334155;border-radius:10px;background:#111827}.tv-task-panel td,.tv-mode-today td,.tv-mode-tomorrow td{display:block!important;width:100%!important;text-align:center!important;font-size:14px!important;padding:4px!important}.tv-title{font-size:17px!important}.tomorrow-resource-grid{grid-template-columns:1fr}.vac-calendar{min-width:0;width:100%}.vac-day{min-height:60px}.vac-day span{font-size:.62rem}
 body.timx-app-fullscreen{overflow-y:auto!important}.timx-app-fullscreen .tv{position:fixed!important;inset:0!important;overflow-y:auto!important;background:#020617;z-index:9999;padding:8px}
}
.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.permission-grid>div{display:grid;gap:6px;padding:12px;border:1px solid #334155;border-radius:10px}.user-edit-card{margin:14px 0}.driver-page{background:#020617;color:#f8fafc;min-height:100vh}.driver-head{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#0f172a;position:sticky;top:0;z-index:5}.driver-head h1{margin:0}.driver-head a{color:#fff}.driver-page main{max-width:720px;margin:auto;padding:14px}.driver-job-nav{display:flex;justify-content:space-between;align-items:center;margin:10px 0}.driver-job-nav button{min-height:44px}.driver-current{text-align:center}.driver-route{font-size:1.15rem;font-weight:800;margin:10px}.driver-route.import{color:#86efac}.driver-vehicle{display:flex;justify-content:center;gap:22px;font-size:1.35rem}.driver-button-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.driver-button-grid button{min-height:72px;font-size:1rem;font-weight:800;border-radius:12px}.driver-button-grid button:nth-last-child(-n+2){background:#7f1d1d;color:#fff}
@media(max-width:700px){.permission-grid{grid-template-columns:1fr}.driver-button-grid{grid-template-columns:1fr}.driver-button-grid button{min-height:64px}}

/* TIMX LIVE PILOT 1.0.3 – vezetői szabadságlista és stabil mobil napi nézet */
.akos-week-leave{margin-top:18px;padding:14px;border:1px solid #3b5571;border-radius:14px;background:#0b1b2c}
.akos-week-leave h3,.akos-live-lastwork h3{margin:0 0 10px;color:#f8fafc}
.akos-week-leave-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
.linked-leave-inline{display:block;margin-top:3px;color:#ffd37a;font-weight:800}

@media(max-width:700px){
 html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
 main,#app{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .tv,.tv-fit-stage,.tv-fit-inner,.tv-mode-today,.tv-mode-tomorrow,.tv-today-grid,.tv-tomorrow-stack{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;transform:none!important}
 .tv-mode-today .tv-today-grid,.tv-mode-tomorrow .tv-tomorrow-stack{display:block!important;width:100%!important}
 .tv-mode-today .tv-task-panel,.tv-mode-tomorrow .tv-task-panel{display:block!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0 0 14px!important}
 .tv-mode-today .tv-task-panel .tv-title,.tv-mode-tomorrow .tv-task-panel .tv-title{font-size:18px!important;line-height:1.15!important;padding:10px 8px!important;white-space:normal!important}
 .tv-mode-today .task-table,.tv-mode-tomorrow .task-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
 .tv-mode-today .task-table thead,.tv-mode-tomorrow .task-table thead{display:none!important}
 .tv-mode-today .task-table tbody,.tv-mode-tomorrow .task-table tbody{display:block!important;width:100%!important;padding:6px!important}
 .tv-mode-today .task-table tr,.tv-mode-tomorrow .task-table tr{display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0 0 9px!important;padding:6px!important;border:1px solid #31506b!important;border-radius:10px!important;background:#0d1d2d!important;overflow:visible!important}
 .tv-mode-today .task-table td,.tv-mode-tomorrow .task-table td{display:grid!important;grid-template-columns:102px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;padding:7px 8px!important;font-size:14px!important;line-height:1.2!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid #263f55!important}
 .tv-mode-today .task-table td:last-child,.tv-mode-tomorrow .task-table td:last-child{border-bottom:0!important}
 .tv-mode-today .task-table td::before,.tv-mode-tomorrow .task-table td::before{font-size:10px!important;line-height:1.1!important;text-align:left!important}
 .tv-mode-today .status-pill,.tv-mode-tomorrow .status-pill,.tv-mode-today .tomorrow-assigned,.tv-mode-tomorrow .tomorrow-assigned{justify-self:start!important;width:auto!important;max-width:100%!important;font-size:11px!important}
 body.tv-mobile-fullscreen{overflow:hidden!important}
 body.tv-mobile-fullscreen #app{position:fixed!important;inset:0!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
 body.tv-mobile-fullscreen .tv{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important;padding-bottom:28px!important}
 .akos-week-leave-list{grid-template-columns:1fr}
}


/* TIMX LIVE PILOT 1.0.4 – kizárólag mobil folytonos görgetés, vezetői csoportok és mai lerakás */
.today-unload-row td,.simple-today-import td{
  background:linear-gradient(90deg,rgba(173,88,10,.42),rgba(128,61,8,.30))!important;
  border-top:2px solid #f59e0b!important;border-bottom:2px solid #f59e0b!important;
}
.today-unload-badge{display:inline-flex;align-items:center;justify-content:center;margin-top:4px;padding:3px 7px;border:1px solid #f59e0b;border-radius:999px;background:rgba(245,158,11,.18);color:#ffd38a;font-size:11px;font-weight:900;white-space:nowrap}
.akos-tractor-group{margin:12px 0 16px}.akos-tractor-group h4{margin:0 0 7px;padding:7px 10px;border-left:4px solid #4d8bc2;background:#10263a;color:#dcecff;border-radius:7px;font-size:.92rem}.akos-tractor-group:last-child h4{border-left-color:#f0ad4e;background:#322411;color:#ffe0a3}

@media(max-width:700px){
  html,body{height:auto!important;min-height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;position:static!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen),body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) #app,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) main{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:static!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-fit-stage,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-fit-inner,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-single-view,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-dual-grid,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .adaptive-tv-grid,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-today-grid,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-tomorrow-stack{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:static!important;transform:none!important;contain:none!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-today .tv-task-panel,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-tomorrow .tv-task-panel,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-single-view,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-panel{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:static!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-today .task-table tbody,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-tomorrow .task-table tbody{height:auto!important;max-height:none!important;overflow:visible!important;display:block!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table th,body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table td{font-size:11px!important;line-height:1.16!important;padding:5px 2px!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table tbody{display:table-row-group!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table tr{display:table-row!important;height:auto!important}
  body:not(.tv-native-fullscreen):not(.tv-mobile-fullscreen) .tv-mode-freight .tv-table td{display:table-cell!important;width:auto!important;max-width:none!important}
  .today-unload-badge{font-size:9px;padding:2px 5px;white-space:normal;line-height:1.1}
}
/* LIVE PILOT 1.1.0 */
.overdue-unload-row{background:rgba(220,38,38,.24)!important;box-shadow:inset 5px 0 #dc2626}.overdue-unload-row td{border-color:rgba(239,68,68,.5)!important}.import-assigned-row{background:rgba(34,197,94,.18)!important}.today-unload-row{background:rgba(249,115,22,.2)!important}.tomorrow-unload-row{background:rgba(250,204,21,.2)!important}

/* TIMX LIVE PILOT 1.1.2 – műszaki lejárati panelek egységes sötét/kék dizájn */
.technical-expiry-section{margin-top:22px;padding-top:2px}
.technical-expiry-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}
.technical-expiry-heading h3{margin:0 0 4px;font-size:22px;color:var(--text)}
.technical-expiry-heading p{margin:0;color:var(--muted)}
.technical-expiry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.technical-expiry-card{background:linear-gradient(145deg,#0d1c2e,#10243a);border:1px solid #2d4a68;border-radius:14px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.25)}
.technical-expiry-card>header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #31516f;background:linear-gradient(90deg,#173553,#1d456a);color:#eaf6ff}
.technical-expiry-card>header h4{margin:0;font-size:16px;color:#eaf6ff}
.technical-expiry-card>header span{min-width:42px;text-align:center;padding:4px 9px;border-radius:999px;background:#0c2237;border:1px solid #3f6f98;color:#9fd7ff;font-weight:900}
.technical-expiry-card.danger>header{background:linear-gradient(90deg,#173553,#214e77);color:#fff}
.technical-expiry-card.warning>header{background:linear-gradient(90deg,#183752,#24557d);color:#fff}
.technical-expiry-card.notice>header{background:linear-gradient(90deg,#193b59,#28608a);color:#fff}
.technical-expiry-card.future>header{background:linear-gradient(90deg,#1a405f,#2b6997);color:#fff}
.technical-expiry-list{padding:5px 14px 11px;background:transparent}
.technical-expiry-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 2px;border-bottom:1px solid #243e57;color:var(--text)}
.technical-expiry-row:last-child{border-bottom:0}
.technical-expiry-row b{display:block;font-size:15px;color:#eef6ff}
.technical-expiry-row small{display:block;color:#9db0c6;margin-top:2px}
.technical-expiry-row time{white-space:nowrap;font-weight:900;font-size:15px;color:#8fd0ff;background:#123f69;border:1px solid #2c6592;border-radius:7px;padding:4px 7px}
.technical-expiry-empty{padding:18px 2px 10px;color:#8da4bc;font-style:italic}
@media(max-width:760px){.technical-expiry-grid{grid-template-columns:1fr}.technical-expiry-heading h3{font-size:19px}.technical-expiry-row{align-items:flex-start}.technical-expiry-row time{font-size:14px}}

/* TIMX LIVE PILOT 1.1.3 – semleges, jogosultság alapú kezdőlap */
.timx-home{max-width:1500px;margin:0 auto;padding:28px 22px 48px}
.timx-home-hero{display:flex;align-items:center;gap:22px;padding:25px 27px;margin-bottom:22px;border:1px solid #31516f;border-radius:17px;background:linear-gradient(135deg,#0d1d2f,#102942 70%,#123554);box-shadow:0 16px 38px rgba(0,0,0,.25)}
.timx-home-mark{display:grid;place-items:center;flex:0 0 92px;height:92px;border-radius:22px;background:linear-gradient(145deg,#1e6fa8,#2e9ade);border:1px solid #5bbcff;color:white;font-size:24px;font-weight:1000;letter-spacing:.08em;box-shadow:0 8px 24px rgba(27,126,190,.28)}
.timx-home-hero p{margin:0 0 5px;color:#75bcea;font-size:.78rem;font-weight:900;letter-spacing:.12em}
.timx-home-hero h2{margin:0 0 7px;color:#f4faff;font-size:clamp(1.4rem,2.4vw,2.25rem);line-height:1.12}
.timx-home-hero span{color:#adbed1;font-size:1rem}
.timx-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.timx-home-card{display:flex;align-items:center;gap:15px;width:100%;min-height:118px;padding:18px;text-align:left;border:1px solid #2e4e6b;border-radius:15px;background:linear-gradient(145deg,#0c1b2b,#10273d);color:#f0f7ff;box-shadow:0 9px 22px rgba(0,0,0,.18);cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.timx-home-card:hover,.timx-home-card:focus-visible{transform:translateY(-2px);border-color:#4f94c8;background:linear-gradient(145deg,#10253a,#153552);outline:none}
.timx-home-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:12px;background:#173b5c;border:1px solid #32678e;font-size:23px}
.timx-home-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.timx-home-copy strong{font-size:1.04rem;color:#f3f9ff}
.timx-home-copy small{color:#9fb2c7;font-size:.83rem;line-height:1.3}
.timx-home-arrow{color:#74c8ff;font-size:23px;font-weight:900}
.timx-no-access{padding:24px;text-align:center}.timx-no-access h3{margin:0 0 8px;color:#f8fafc}.timx-no-access p{margin:0;color:#a8b7c8}
@media(max-width:1050px){.timx-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.timx-home{padding:15px 12px 35px}.timx-home-hero{align-items:flex-start;padding:18px;gap:14px}.timx-home-mark{flex-basis:62px;height:62px;border-radius:15px;font-size:16px}.timx-home-hero p{font-size:.62rem}.timx-home-hero h2{font-size:1.25rem}.timx-home-hero span{font-size:.9rem}.timx-home-grid{grid-template-columns:1fr;gap:10px}.timx-home-card{min-height:96px;padding:14px}.timx-home-copy strong{font-size:1rem}}

/* TIMX LIVE PILOT 1.1.4 – mobilon olvasható, oldalra húzható táblázatok */
@media (max-width: 700px){
  /* Csak a normál admin táblák kapnak vízszintes, érintésbarát görgetést. */
  .mobile-horizontal-table{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    touch-action:pan-x pan-y!important;
    scroll-behavior:smooth;
  }
  .mobile-horizontal-table::before{
    content:'↔ Húzd oldalra a teljes táblázathoz';
    position:sticky;
    left:0;
    z-index:8;
    display:block;
    width:max-content;
    max-width:calc(100vw - 32px);
    margin:7px 8px 5px;
    padding:5px 9px;
    border:1px solid #315a7d;
    border-radius:999px;
    background:#102b43;
    color:#a9d9fb;
    font-size:11px;
    font-weight:800;
    line-height:1.1;
    pointer-events:none;
  }
  .mobile-horizontal-table table{
    width:max-content!important;
    max-width:none!important;
    table-layout:auto!important;
    border-collapse:separate!important;
  }
  .mobile-horizontal-table th,
  .mobile-horizontal-table td{
    display:table-cell!important;
    width:auto!important;
    max-width:none!important;
    min-width:112px!important;
    padding:9px 10px!important;
    text-align:center!important;
    vertical-align:middle!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    font-size:12px!important;
    line-height:1.25!important;
  }
  .mobile-horizontal-table thead{display:table-header-group!important}
  .mobile-horizontal-table tbody{display:table-row-group!important}
  .mobile-horizontal-table tr{display:table-row!important;height:auto!important}
  .mobile-horizontal-table th{position:sticky!important;top:0!important;z-index:5!important;white-space:nowrap!important}

  /* Nézetenként olyan minimumszélesség, amelyen a tartalom olvasható marad. */
  .mobile-table-archive table,
  .mobile-table-deleted table{min-width:1180px!important}
  .mobile-table-technical table{min-width:1050px!important}
  .mobile-table-freight-simple table{min-width:900px!important}
  .mobile-table-freight-detail table{min-width:1700px!important}

  /* Az egyszerű nézetet se alakítsa mobil kártyává vagy összenyomott fix táblává. */
  .mobile-table-freight-simple .simple-freight-table{
    width:max-content!important;
    min-width:900px!important;
    table-layout:auto!important;
  }
  .mobile-table-freight-simple .simple-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    min-width:145px!important;
  }
  .mobile-horizontal-table .tiny-date{white-space:nowrap!important}
  .mobile-horizontal-table .status-pill{white-space:nowrap!important}
}

/* ===== LIVE PILOT 1.1.5 – jogosultság és adminfelület ===== */
.timx-readonly-note{margin:0 0 12px;padding:10px 14px;border:1px solid #31506d;border-radius:10px;background:#10263a;color:#b9d5ec;font-weight:700}
.timx-readonly .readonly-control,.timx-readonly input:disabled,.timx-readonly select:disabled,.timx-readonly textarea:disabled{opacity:.72;cursor:not-allowed}
.timx-access-denied{max-width:720px;margin:56px auto;padding:42px;text-align:center;border:1px solid #35536e;background:linear-gradient(180deg,#10243a,#0b1828)}
.timx-access-denied-icon{font-size:48px}.timx-access-denied h2{margin:14px 0 8px}.timx-access-denied p{color:#a9bfd2;line-height:1.55}
.permissions-admin{max-width:1500px;margin:0 auto;padding:24px}.admin-hero{margin-bottom:18px}.eyebrow{margin:0 0 4px;color:#69b9f5;font-size:12px;font-weight:900;letter-spacing:.12em}
.admin-user-panel{padding:0;overflow:hidden;border:1px solid #294962;background:#0d1e30;margin-bottom:14px}.admin-user-panel>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;background:#122a42;border-bottom:1px solid transparent}.admin-user-panel[open]>summary{border-bottom-color:#294962}.admin-user-panel>summary::-webkit-details-marker{display:none}.admin-user-panel>summary strong{font-size:17px}.admin-user-panel>summary small{display:block;margin-top:3px;color:#90a9bd}.panel-chevron{font-size:22px;color:#79b9e6;transition:.2s}.admin-user-panel[open] .panel-chevron{transform:rotate(180deg)}.panel-body{padding:18px}
.permission-masterbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;padding:12px 14px;border-radius:10px;background:#0a1725;border:1px solid #29445b}.permission-masterbar>div{display:flex;gap:7px;flex-wrap:wrap}.mini-action{border:1px solid #3d6584;background:#15314a;color:#dcefff;border-radius:8px;padding:7px 10px;font-weight:800;cursor:pointer}.mini-action:hover{background:#1d4567}.danger-soft{border-color:#7a3a45;color:#ffc4cb;background:#301b24}
.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.permission-group{border:1px solid #294962;border-radius:10px;overflow:hidden;background:#0b1928}.permission-group summary{cursor:pointer;display:flex;justify-content:space-between;padding:11px 13px;background:#10283e;font-weight:800}.permission-group summary small{color:#7fa6c4}.permission-table{padding:5px 10px 10px}.permission-row{display:grid;grid-template-columns:minmax(170px,1fr) 110px 110px;align-items:center;min-height:38px;border-bottom:1px solid #1b3449}.permission-row:last-child{border-bottom:0}.permission-row>span{text-align:center}.permission-head{font-size:11px;text-transform:uppercase;color:#7f9bb1;font-weight:900}.permission-row input[type=checkbox]{width:19px;height:19px;accent-color:#2f92dd}.admin-actions{display:flex;justify-content:flex-end;margin-top:16px}.users-section-title{display:flex;align-items:center;gap:8px;margin:24px 0 12px}.users-section-title>div{margin-right:auto}.users-section-title h2,.users-section-title p{margin:0}.users-section-title p{color:#7894aa}.user-panels{display:grid;gap:12px}.user-summary-main,.user-summary-state{display:flex;align-items:center;gap:12px}.user-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#1e5e8f;color:white;font-weight:900;font-size:20px}.active-user,.inactive-user{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}.active-user{background:#123d2d;color:#7df0b5}.inactive-user{background:#45222b;color:#ffabb8}.user-toggle-form{margin-top:12px;padding-top:12px;border-top:1px solid #29445b}
@media(max-width:850px){.permissions-admin{padding:12px}.permission-groups{grid-template-columns:1fr}.permission-masterbar{align-items:flex-start;flex-direction:column}.permission-row{grid-template-columns:minmax(130px,1fr) 88px 88px}.users-section-title{flex-wrap:wrap}.users-section-title>div{width:100%}.panel-body{padding:12px}}

/* ===== LIVE PILOT 1.1.6 ===== */
.tech-driver-need-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #315674;border-radius:12px;background:#0b1d2f}
.tech-driver-need-fields[hidden]{display:none!important}
.tech-driver-need-fields label{margin:0}
.tech-inline-time{display:block;margin-top:3px;color:#8fc7ef;font-weight:800}
.warning-text{display:block;color:#ffb449;font-weight:900}
.import-done-btn{background:#176341!important;border-color:#34a56d!important;color:#e8fff3!important}
.simple-collision-alert{margin-top:5px;padding:4px 6px;border-radius:7px;background:#6d1820;color:#fff;font-size:10px;font-weight:900;white-space:normal}
.simple-freight-table td.collision{background:linear-gradient(135deg,#7c1720,#4b1017)!important;box-shadow:inset 0 0 0 2px #ff4f5f}
.simple-has-collision{outline:1px solid rgba(255,75,91,.45)}
.import-completed-row,.simple-import-completed{background:rgba(31,132,83,.18)!important}
.compact-complete{display:inline-flex;margin-top:4px}
@media(max-width:850px){.tech-driver-need-fields{grid-template-columns:1fr}.mobile-table-technical table{min-width:1320px!important}}

/* LIVE PILOT 1.1.7 */
.readonly-assignment-field{min-height:38px;display:flex;align-items:center;justify-content:center;background:#0b1a2b;border:1px solid #31506d;border-radius:8px;padding:7px 10px}
.unload-assigned-live117{margin-top:6px}
.tomorrow-tech-job{border-color:#9a6a19;box-shadow:inset 0 0 0 1px rgba(255,174,45,.18)}
.tomorrow-tech-job header{background:rgba(126,76,14,.22)}

/* ===== LIVE PILOT 1.1.8 – sofőr workflow és státuszkártyák ===== */
.assignment-saved-card{position:relative;background:linear-gradient(135deg,rgba(27,108,79,.34),rgba(14,45,55,.92))!important;border-color:#49d69a!important;box-shadow:0 0 0 1px rgba(73,214,154,.18),0 10px 30px rgba(0,0,0,.16)}
.assignment-card-check{position:absolute;right:12px;bottom:10px;padding:6px 10px;border-radius:999px;background:#178a5c;color:#fff;font-weight:900;font-size:12px;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.assignment-success-pop{position:fixed;right:24px;bottom:24px;z-index:99999;display:flex;align-items:center;gap:10px;padding:14px 18px;border:1px solid #4ce2a0;border-radius:14px;background:#0f7c53;color:#fff;font-weight:900;box-shadow:0 14px 40px rgba(0,0,0,.4);opacity:0;transform:translateY(18px);transition:.22s ease}.assignment-success-pop.show{opacity:1;transform:none}.assignment-success-pop b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#d9ffec;color:#087047;font-size:18px}
.driver-status-grid-118{align-items:stretch}.driver-status-card-118{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:250px;position:relative;overflow:hidden}.driver-status-card-118 h3,.driver-status-card-118 p,.driver-status-card-118 b,.driver-status-card-118 small{margin:0;text-align:center}.driver-status-strip{width:100%;padding:8px 10px;border-radius:999px;background:#165786;color:#aee0ff;font-weight:900;text-align:center}.driver-status-strip.driver-loaded{background:#14784d;color:#eafff3}.driver-status-card-118.driver-loaded{background:var(--card,#0f2134)}.driver-status-card-118.driver-complete{background:linear-gradient(145deg,rgba(32,132,88,.54),rgba(11,52,44,.94));border-color:#53e5a4}.driver-status-strip.driver-complete{background:#1c9b67;color:white}.driver-status-card-118.driver-alert{background:linear-gradient(145deg,rgba(162,33,43,.95),rgba(69,10,20,.96));border-color:#ff5d6d;animation:driverAlertPulse118 1s infinite alternate}.driver-status-strip.driver-alert{background:#d61f35;color:#fff}.driver-status-audit{color:#9bb4c9!important}.driver-dispatch-controls{width:100%;display:grid;gap:8px;margin-top:auto}.driver-dispatch-controls select{width:100%;min-width:0}.dispatcher-check{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border:1px solid #55dc9f;border-radius:10px;background:rgba(19,129,82,.24);font-weight:800;cursor:pointer}.dispatcher-check input{width:18px;height:18px}.driver-status-archive{margin-top:28px}.driver-status-archive>h2{margin:0 0 12px}
@keyframes driverAlertPulse118{from{box-shadow:0 0 0 0 rgba(255,66,84,.25)}to{box-shadow:0 0 0 8px rgba(255,66,84,.05),0 0 32px rgba(255,49,70,.42)}}
.driver-page{min-height:100dvh}.driver-current-118{transition:.2s ease}.driver-current-118.driver-complete{background:linear-gradient(145deg,#176847,#0e3e35);border-color:#59dfa4}.driver-current-118.driver-alert{background:linear-gradient(145deg,#a51f31,#4b0b17);border-color:#ff5e73;animation:driverAlertPulse118 1s infinite alternate}.driver-mobile-status{margin-top:14px;padding:12px 14px;border-radius:12px;background:#15547d;color:#d7eeff;font-weight:900;text-align:center}.driver-mobile-status.driver-loaded,.driver-mobile-status.driver-complete{background:#16875b;color:#fff}.driver-mobile-status.driver-alert{background:#d72038;color:#fff}.driver-phase,.driver-fixed-alerts{margin-top:18px}.driver-phase h3,.driver-fixed-alerts h3{text-align:center;color:#d7eaff}.driver-flow-grid button{min-height:64px;font-weight:900}.driver-fixed-alerts{display:grid;gap:10px}.driver-danger-btn{width:100%;min-height:62px;border:1px solid #ff5f70!important;background:linear-gradient(145deg,#b61f35,#731322)!important;color:#fff!important;font-weight:900!important;font-size:16px!important}.driver-danger-btn:active{transform:scale(.98)}
@media(max-width:700px){.assignment-success-pop{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;justify-content:center}.assignment-card-check{position:static;display:inline-flex;margin-top:10px}.driver-status-card-118{min-height:220px}.driver-dispatch-controls select{font-size:16px}.driver-flow-grid{grid-template-columns:1fr!important}.driver-flow-grid button,.driver-danger-btn{font-size:17px!important;line-height:1.25}}

/* LIVE PILOT 1.1.9 – Holnapi Belföldes beosztási visszajelzés */
.assignment-saved-card-119{position:relative!important;background:linear-gradient(135deg,rgba(32,132,91,.48),rgba(11,53,48,.96))!important;border:2px solid #4ce0a2!important;box-shadow:0 0 0 1px rgba(76,224,162,.24),0 12px 30px rgba(0,0,0,.2)!important}
.assignment-card-check-119{position:absolute!important;right:12px!important;bottom:10px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;padding:7px 11px!important;border-radius:999px!important;background:#15925f!important;border:1px solid #65efb4!important;color:#fff!important;font-size:12px!important;font-weight:950!important;line-height:1!important;z-index:4!important;box-shadow:0 5px 16px rgba(0,0,0,.28)!important}
.assignment-success-pop-119{right:22px!important;bottom:22px!important}
@media(max-width:700px){.assignment-card-check-119{position:static!important;margin:10px 0 0 auto!important;width:max-content!important}.assignment-success-pop-119{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}}

/* ===== LIVE PILOT 1.1.10 – Holnapi beosztott kártya ===== */
.tomorrow-job.assignment-saved-card-110{
  position:relative!important;
  background:linear-gradient(145deg,#1b7657 0%,#15513f 48%,#0d3a32 100%)!important;
  border:2px solid #5ce3a9!important;
  box-shadow:inset 0 0 0 1px rgba(205,255,231,.16),0 10px 28px rgba(0,0,0,.24)!important;
}
.tomorrow-job.assignment-saved-card-110 header{background:rgba(6,55,42,.38)!important}
.tomorrow-job.assignment-saved-card-110 .tomorrow-current-assignment,
.tomorrow-job.assignment-saved-card-110 .tomorrow-form{border-color:rgba(111,240,180,.38)!important}
.assignment-card-check-110{
  position:absolute!important;right:12px!important;bottom:12px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;
  min-width:128px!important;padding:8px 12px!important;border-radius:12px!important;
  background:#0f9b62!important;border:1px solid #8af1bf!important;color:#fff!important;
  text-align:center!important;z-index:8!important;box-shadow:0 7px 18px rgba(0,0,0,.3)!important
}
.assignment-card-check-110 b{font-size:13px!important;line-height:1.05!important}.assignment-card-check-110 small{font-size:10px!important;color:#dcfff0!important}
.assignment-button-saved-110{background:#128557!important;border-color:#6ee5ad!important;color:#fff!important}
@media(max-width:700px){.assignment-card-check-110{position:static!important;margin:10px 0 0 auto!important;min-width:0!important;width:max-content!important}.tomorrow-job.assignment-saved-card-110{padding-bottom:12px!important}}

/* ===== LIVE PILOT 1.1.12 – műszakis beosztott kártya ===== */
.tomorrow-tech-job.tech-assigned-112,
.tomorrow-tech-job.assignment-saved-card-110{
  background:linear-gradient(145deg,#1b7657 0%,#15513f 48%,#0d3a32 100%)!important;
  border:2px solid #5ce3a9!important;
  box-shadow:inset 0 0 0 1px rgba(205,255,231,.16),0 10px 28px rgba(0,0,0,.24)!important;
}
.tomorrow-tech-job.tech-assigned-112 header{background:rgba(6,55,42,.38)!important}
.tomorrow-tech-job .tech-check-112{display:flex!important}

/* ===== TIMX LIVE PILOT 1.2.0 ===== */
.driver-current-118.driver-arrived{background:rgba(70,180,120,.10)!important;border-color:rgba(80,220,150,.42)!important;box-shadow:0 0 0 1px rgba(80,220,150,.12) inset}
.driver-mobile-status.driver-arrived,.driver-status-strip.driver-arrived{background:rgba(70,190,125,.24)!important;color:#dffff0!important;border-color:rgba(80,220,150,.42)!important}
.driver-date-row-120{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;text-align:center}.driver-date-row-120 span{padding:9px;border:1px solid #284861;border-radius:10px;background:#091a2a}.driver-date-row-120 b,.driver-status-dates-120 b{color:#ffd75a}.driver-reference-120,.driver-reference-view-120{margin:10px 0;padding:10px;border-radius:10px;background:#102b43;border:1px solid #2d5e82;text-align:center}.driver-reference-edit-120{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin:8px 0}.driver-reference-edit-120 input{min-width:0}.driver-status-dates-120{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:8px 0;font-size:.88rem}.export-load-job-120{border-color:#9a5a18}.export-load-job-120 header{background:rgba(165,93,22,.16)}


/* ===== LIVE PILOT 1.2.1 – külön felrakási és lerakási referenciaszám ===== */
.driver-reference-pair-121{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin:10px 0;padding:10px;border:1px solid #2d5e82;border-radius:12px;background:#0a1d2e}
.driver-reference-pair-121 label{display:grid;gap:5px;text-align:left;font-size:.82rem;color:#a9bfd2}
.driver-reference-pair-121 input{width:100%;min-width:0}
@media(max-width:700px){.driver-reference-pair-121{grid-template-columns:1fr}.driver-reference-pair-121 .icon-btn{width:100%}}

/* LIVE PILOT 1.2.2 – rendezett jogosultságok és referencia kártyák */
.permissions-admin{max-width:1560px}
.new-user-panel{box-shadow:0 16px 44px rgba(0,0,0,.22)}
.new-user-panel>summary{background:linear-gradient(135deg,#143552,#102942)}
.permission-masterbar{position:sticky;top:0;z-index:2;background:#0b1d2e}
.permission-masterbar strong{font-size:1rem;color:#eaf6ff}
.permission-masterbar .mini-action{min-height:34px}
.role-groups-admin{display:grid;gap:16px;margin-top:14px}
.role-user-group{border:1px solid #2b4d67;border-radius:14px;overflow:hidden;background:#091827}
.role-user-group>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;cursor:pointer;background:linear-gradient(90deg,#173651,#10283e);border-bottom:1px solid transparent}
.role-user-group[open]>summary{border-bottom-color:#31556f}
.role-user-group>summary::-webkit-details-marker{display:none}
.role-user-group>summary strong{font-size:1.15rem;color:#eef8ff}
.role-user-group>summary small{display:block;margin-top:3px;color:#8eabc0}
.role-user-group[open]>summary .panel-chevron{transform:rotate(180deg)}
.role-user-list{padding:14px;display:grid;gap:12px}
.role-user-list .admin-user-panel{margin:0}
.user-delete-form{margin-top:12px;padding-top:12px;border-top:1px solid #29445b;display:flex;justify-content:flex-end}
.user-delete-form .danger-outline{background:#511d27;border-color:#a84b59;color:#ffdbe0;font-weight:900}
.user-delete-form .danger-outline:hover{background:#702532}
.permissions-shell .permission-masterbar>div{display:grid;grid-template-columns:repeat(3,max-content);gap:8px}
.driver-reference-pair-121{grid-template-columns:1fr;align-items:stretch}
.driver-reference-pair-121 label{width:100%}
.driver-reference-pair-121 .icon-btn{width:100%;justify-content:center}
.driver-reference-view-120{display:block;width:100%;text-align:left}
@media(max-width:850px){
 .permissions-shell .permission-masterbar>div{grid-template-columns:1fr;width:100%}
 .permission-masterbar .mini-action{width:100%}
 .role-user-list{padding:8px}
}

/* LIVE PILOT 1.2.4 – Vezetői napi aktivitás */
.timx-daily-activity{margin-top:16px}.akos-daily-activity-group{margin-top:12px;background:#0d1f32;border:1px solid #294863;border-radius:12px;padding:12px}.akos-daily-activity-group h4{margin:0 0 10px;color:#dbeeff;font-size:16px}.akos-daily-activity-card{background:#10263c;border:1px solid #315879;border-radius:10px;padding:12px;margin:8px 0}.akos-daily-activity-card.leave{border-color:#805b9d;background:#241f36}.akos-daily-activity-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.akos-daily-activity-head b{font-size:18px}.akos-daily-activity-head span{background:#174f7b;color:#bde5ff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900}.akos-daily-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.akos-daily-activity-grid>div{background:#0b1b2b;border:1px solid #28435e;border-radius:8px;padding:8px}.akos-daily-activity-grid small{display:block;color:#8eabc4;margin-bottom:3px}.akos-daily-activity-grid strong{display:block;color:#edf7ff;overflow-wrap:anywhere}@media(max-width:900px){.akos-daily-activity-grid{grid-template-columns:1fr}.akos-daily-activity-head{align-items:flex-start;flex-direction:column}}

/* ===== LIVE PILOT 1.2.5 – kompakt napi aktivitás ===== */
.compact-activity{padding-bottom:10px}.akos-daily-activity-group{margin:8px 0;border:1px solid #29465f;border-radius:12px;overflow:hidden;background:#0d1e30}.akos-daily-group-head{width:100%;border:0;background:#17324b;color:#edf7ff;display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:10px 13px;font-weight:800;text-align:left;cursor:pointer}.akos-daily-group-head b{background:#24577e;border-radius:999px;padding:3px 9px;font-size:12px}.akos-daily-group-head i{font-style:normal;transition:transform .18s}.akos-daily-group-head[aria-expanded="true"] i{transform:rotate(180deg)}.danger-group .akos-daily-group-head{background:#5b1f28}.danger-group .akos-daily-group-head b{background:#a52e3b}.leave-group .akos-daily-group-head{background:#2d3d55}.akos-daily-group-body{padding:7px}.akos-daily-activity-card.compact{margin:5px 0;border:1px solid #2c4b65;border-radius:9px;overflow:hidden;background:#102338}.akos-daily-activity-card.compact.stalled{border-color:#e54855;box-shadow:inset 4px 0 0 #e54855}.akos-daily-summary{width:100%;border:0;background:transparent;color:#eef7ff;display:grid;grid-template-columns:minmax(130px,180px) minmax(250px,1fr) minmax(110px,150px) minmax(125px,170px) 22px;gap:10px;align-items:center;padding:9px 11px;text-align:left;cursor:pointer}.akos-daily-summary:hover{background:#173149}.akos-daily-main{display:flex;flex-direction:column;gap:2px}.akos-daily-main b{font-size:16px}.akos-daily-main small{color:#a9bed0;font-size:12px}.akos-daily-summary-event{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d8e9f7;font-size:13px}.akos-daily-idle,.akos-daily-state{justify-self:start;border-radius:999px;padding:4px 8px;background:#1d5277;color:#dff3ff;font-size:11px;font-weight:900}.akos-daily-idle.danger,.akos-daily-activity-card.stalled .akos-daily-state{background:#9e2733;color:#fff}.akos-daily-chevron{font-size:18px;transition:transform .18s}.akos-daily-activity-card.open .akos-daily-chevron{transform:rotate(180deg)}.akos-daily-details{border-top:1px solid #29465f;padding:8px 10px 10px}.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}.compact-grid>div{padding:7px 9px!important;min-height:auto!important}.compact-grid small{font-size:11px}.compact-grid strong{font-size:12px}.danger-text{color:#ff6b76!important}.akos-daily-group-body[hidden],.akos-daily-details[hidden]{display:none!important}
@media(max-width:900px){.akos-daily-summary{grid-template-columns:1fr auto;gap:6px}.akos-daily-summary-event{grid-column:1/-1;white-space:normal}.akos-daily-idle,.akos-daily-state{font-size:10px}.akos-daily-chevron{position:absolute;right:12px}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* LIVE PILOT 1.2.6 – tartalék kamion */
.akos-daily-activity-group.reserve-group{border-color:#3d6f8f}
.akos-daily-activity-group.reserve-group .akos-daily-group-head{background:linear-gradient(90deg,#163249,#1b405b);color:#d9f1ff}
.akos-daily-activity-card.compact:has(.akos-daily-state){transition:border-color .2s,background .2s}
.akos-daily-state{white-space:nowrap}

/* ===== LIVE PILOT 1.3.0 – Bérszámfejtés + TIMX Special timeline ===== */
.payroll-toolbar{margin-bottom:10px}.payroll-tabs{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}.payroll-tabs button{background:#102a43;border:1px solid #3f6d96;color:#dceeff;border-radius:9px;padding:9px 14px;font-weight:800}.payroll-tabs button.active{background:#2389d7;box-shadow:0 0 0 2px rgba(73,174,255,.25)}
.payroll-wrap,.special-timeline-wrap{overflow:auto;max-width:100%;border:1px solid #31506d;background:#071522}.payroll-table,.special-timeline-table{border-collapse:separate;border-spacing:0;min-width:max-content;width:max-content;color:#e9f5ff}.payroll-table th,.payroll-table td,.special-timeline-table th,.special-timeline-table td{border-right:1px solid #2b4862;border-bottom:1px solid #2b4862;text-align:center}
.payroll-table thead th{position:sticky;top:0;z-index:5;background:#bfe3f5;color:#071522;padding:10px 8px;min-width:118px}.payroll-table thead th small{display:block;font-size:9px;line-height:1.2;margin-top:4px;color:#27465e}.payroll-table .payroll-corner{left:0;z-index:8;min-width:130px}.payroll-table .pay-date,.payroll-table .pay-day{position:sticky;background:#d6e8f5;color:#071522;font-weight:900;z-index:3}.payroll-table .pay-date{left:0;min-width:78px}.payroll-table .pay-day{left:78px;min-width:52px}.payroll-table td{height:42px;background:#0b1d2e;padding:0}.payroll-table tr.weekend td,.payroll-table tr.weekend .pay-date,.payroll-table tr.weekend .pay-day{background:#16314a}.payroll-table select{width:100%;height:100%;border:0;background:transparent;color:#eaf6ff;text-align:center;font-weight:800;padding:6px;appearance:none}.payroll-table td.pay-money{background:#153f2e}.payroll-table td.pay-leave{background:#572943}.payroll-table td.pay-sick{background:#78421e}.payroll-table td.pay-code{background:#223b54}.payroll-total th,.payroll-total td{position:sticky;bottom:0;background:#f0e900!important;color:#111!important;z-index:4;padding:5px}.payroll-summary{display:grid;gap:2px;font-size:10px;min-width:118px}.payroll-summary b{font-size:12px}.payroll-hint{margin-top:8px}
.special-timeline-section{margin-top:22px;padding-top:18px;border-top:1px solid #27455f}.special-timeline-table thead th{position:sticky;top:0;z-index:6;background:#f0a800;color:#101820;min-width:105px;padding:8px 5px}.special-timeline-table thead th small{display:block}.special-timeline-table thead th.weekend{background:#cf7a12}.special-timeline-table .timeline-corner{left:0;z-index:9;min-width:205px}.timeline-driver{position:sticky;left:0;z-index:4;background:#eaa800;color:#0b1721;min-width:205px;padding:9px;text-align:left!important}.timeline-driver strong,.timeline-driver span{display:block}.timeline-driver strong{font-size:13px}.timeline-driver span{font-size:11px;margin-top:3px}.timeline-cell{background:#0c1c2b;min-width:105px;max-width:150px;padding:4px;vertical-align:top}.timeline-cell.timeline-auto{background:#123d2c}.timeline-cell.timeline-leave{background:#7c1021}.timeline-auto-text{display:block;font-size:9px;line-height:1.15;font-weight:800;color:#fff;margin-bottom:4px;white-space:normal}.timeline-cell input{width:100%;min-width:95px;background:#081522;border:1px solid #365a79;color:#e8f6ff;border-radius:5px;padding:5px;font-size:10px}.timeline-cell input:focus{outline:2px solid #3fa6ff}
@media(max-width:760px){.payroll-toolbar .right{width:100%}.payroll-toolbar .right button{width:100%}.payroll-table thead th{min-width:105px}.payroll-table .pay-date{min-width:70px}.payroll-table .pay-day{left:70px;min-width:46px}.special-timeline-section .toolbar .right{display:flex;width:100%}.special-timeline-section .toolbar .right button{flex:1}.special-timeline-table .timeline-corner,.timeline-driver{min-width:170px}}


/* ===== LIVE PILOT 1.3.1 – Bérszámfejtés olvashatóság + kategóriaszínek ===== */
.payroll-table .pay-driver-head.cat-domestic,.payroll-table td.cat-domestic{background:#bfe3f5;color:#071522}
.payroll-table .pay-driver-head.cat-normal-timx,.payroll-table td.cat-normal-timx{background:#FFDD87;color:#000}
.payroll-table .pay-driver-head.cat-normal-ec,.payroll-table td.cat-normal-ec{background:#FFFAB6;color:#000}
.payroll-table .pay-driver-head.cat-mega,.payroll-table td.cat-mega{background:#C00000;color:#fff}
.payroll-table .pay-driver-head.cat-special,.payroll-table td.cat-special{background:#EE0000;color:#000}
.payroll-table .pay-driver-head.cat-van,.payroll-table td.cat-van{background:#E97132;color:#000}
.payroll-table .pay-driver-head.cat-other,.payroll-table td.cat-other{background:#fff;color:#000}
.payroll-table .pay-driver-head small{color:inherit!important;opacity:.78}
.payroll-table td select{color:inherit!important;text-shadow:none}
.payroll-table tr.weekend .pay-date,.payroll-table tr.weekend .pay-day{background:#274861!important;color:#fff!important}
.payroll-table tr.weekend td{box-shadow:inset 0 0 0 9999px rgba(5,15,25,.18)}
.payroll-table tr.weekend td select{font-weight:900}
.payroll-table td.pay-money{box-shadow:inset 0 0 0 9999px rgba(24,120,67,.30)}
.payroll-table td.pay-leave{box-shadow:inset 0 0 0 9999px rgba(184,31,99,.38)}
.payroll-table td.pay-sick{box-shadow:inset 0 0 0 9999px rgba(196,91,26,.38)}
.payroll-table td.pay-code{box-shadow:inset 0 0 0 9999px rgba(37,78,112,.28)}
.special-timeline-wrap{scroll-behavior:smooth}

/* ===== LIVE PILOT 1.3.2 – timeline kétirányú görgetés + kompakt, olvasható bérszámfejtés ===== */
.special-timeline-wrap{
  overflow-x:auto!important;
  overflow-y:auto!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  cursor:grab;
}
.special-timeline-wrap:active{cursor:grabbing}

/* Erősebb cellahatárok, kisebb sormagasság és világosabb alap */
.payroll-wrap{background:#0b1d2d!important;border:1px solid #4a708f!important}
.payroll-table{background:#0b1d2d!important}
.payroll-table th,.payroll-table td{
  border-right:1px solid #587792!important;
  border-bottom:1px solid #587792!important;
}
.payroll-table thead th{
  padding:7px 7px!important;
  min-width:114px!important;
  line-height:1.15!important;
}
.payroll-table .pay-date,.payroll-table .pay-day{
  background:#d5e8f4!important;
  color:#071522!important;
}
.payroll-table td{
  height:30px!important;
  min-height:30px!important;
  background:#173149!important;
  padding:0!important;
}
.payroll-table select{
  display:block!important;
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  padding:2px 6px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  text-align:center!important;
  text-align-last:center!important;
  opacity:1!important;
}
.payroll-table select option{background:#fff!important;color:#111!important}

/* A kategóriaszín a fejlécen marad; a napi cellák egységesen jól olvashatók. */
.payroll-table td.cat-domestic,
.payroll-table td.cat-normal-timx,
.payroll-table td.cat-normal-ec,
.payroll-table td.cat-mega,
.payroll-table td.cat-special,
.payroll-table td.cat-van,
.payroll-table td.cat-other{
  background:#173149!important;
  color:#fff!important;
}
.payroll-table td select,
.payroll-table td select:focus,
.payroll-table td select:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Kitöltött kódok jól elkülönítve. */
.payroll-table td.pay-money{background:#1d6642!important;box-shadow:none!important}
.payroll-table td.pay-leave{background:#9a2c61!important;box-shadow:none!important}
.payroll-table td.pay-sick{background:#a75222!important;box-shadow:none!important}
.payroll-table td.pay-code{background:#315b7c!important;box-shadow:none!important}
.payroll-table td.pay-money select,
.payroll-table td.pay-leave select,
.payroll-table td.pay-sick select,
.payroll-table td.pay-code select{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* A hétvége teljes sorban, bal széltől jobb szélig egybefüggő jelölést kap. */
.payroll-table tr.weekend th,
.payroll-table tr.weekend td{
  background:#294b68!important;
  color:#fff!important;
  box-shadow:none!important;
}
.payroll-table tr.weekend td.pay-money{background:#276b4a!important}
.payroll-table tr.weekend td.pay-leave{background:#963860!important}
.payroll-table tr.weekend td.pay-sick{background:#a45a31!important}
.payroll-table tr.weekend td.pay-code{background:#3e6482!important}
.payroll-table tr.weekend select{color:#fff!important;-webkit-text-fill-color:#fff!important}

.payroll-total th,.payroll-total td{padding:4px!important}
.payroll-summary{font-size:9px!important;min-width:114px!important}
.payroll-summary b{font-size:11px!important}

/* ===== TIMX LIVE 2.0 ===== */
.live20-job-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.live20-job{display:flex;flex-direction:column;gap:12px}.live20-job header{display:flex;justify-content:space-between;gap:12px}.live20-job header div{display:flex;flex-direction:column;gap:4px}.live20-job-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.live20-job-meta span{background:rgba(255,255,255,.06);padding:8px;border-radius:8px}.live20-job.done{background:rgba(31,180,100,.18);border-color:#41d88a}.live20-stage-btn{background:#0d85cf!important;color:white!important;font-weight:800}.planned-collision{background:rgba(255,190,0,.2)!important;box-shadow:inset 0 0 0 2px #ffc400}.collision{animation:live20Blink 1s infinite;background:rgba(190,0,0,.32)!important;box-shadow:inset 0 0 0 2px #ff3636}@keyframes live20Blink{50%{filter:brightness(1.45)}}
.driver-view-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.driver-view-toolbar button.active{background:#159be8;color:#fff}.live20-driver-card details summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center;list-style:none}.live20-driver-card details summary::-webkit-details-marker{display:none}.live20-driver-body{display:grid;gap:10px;margin-top:12px}.live20-status-timeline-wrap{overflow:auto;max-height:72vh}.live20-status-timeline{min-width:1500px;border-collapse:separate;border-spacing:0}.live20-status-timeline th,.live20-status-timeline td{border:1px solid rgba(120,190,230,.25);padding:8px;min-width:110px;text-align:center}.live20-status-timeline th:first-child{position:sticky;left:0;z-index:2;background:#102b40;min-width:220px}.live20-status-timeline th small{display:block;color:#8fd2ff}.live20-status-timeline .timeline-leave{background:#8b1840;color:#fff;font-weight:800}.live20-driver-board:fullscreen,.live20-driver-board.pseudo-fullscreen{background:#071824;padding:18px;overflow:auto;width:100%;height:100%}.live20-work-page .tomorrow-page>.toolbar{display:none}
@media(max-width:700px){.live20-job-grid{display:block}.live20-job{margin-bottom:12px}.live20-job-meta{grid-template-columns:1fr}.driver-view-toolbar{display:grid;grid-template-columns:1fr 1fr}.live20-status-timeline-wrap{max-height:none}.live20-driver-card details summary{align-items:flex-start;flex-direction:column}}

/* ===== TIMX LIVE 2.0.1 ===== */
.fixed-domestic-section{margin:18px 14px 28px;border-top:1px solid #294963;padding-top:16px}.fixed-job-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:12px}.fixed-job-card{display:grid;grid-template-columns:1.4fr 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid #315c7b;background:#0d2033}.fixed-job-card h4{margin:0 0 4px;font-size:17px}.fixed-job-card p{margin:4px 0;color:#adc1d3}.fixed-job-card.inactive{opacity:.55}.fixed-job-meta{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#b6cadb}.fixed-job-actions{display:flex;gap:7px;flex-wrap:wrap}.fixed-job-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fixed-job-form label{display:flex;flex-direction:column;gap:5px}.fixed-job-form input,.fixed-job-form select,.fixed-job-form textarea{width:100%}.fixed-wide,.fixed-weekdays{grid-column:1/-1}.fixed-weekdays>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.fixed-day-chip{display:block!important}.fixed-day-chip input{display:none}.fixed-day-chip span{display:block;padding:7px 11px;border:1px solid #3a6483;border-radius:9px;background:#0b1a29}.fixed-day-chip input:checked+span{background:#2386d8;color:#fff;border-color:#56b3ff}.fixed-active{flex-direction:row!important;align-items:center}.fixed-active input{width:auto}.live201-daily-timeline td{vertical-align:top;min-width:150px;padding:5px}.timeline-task{display:block;margin:2px 0;padding:4px 6px;border-radius:6px;background:#143a56;border-left:3px solid #38a7ef;color:#eef8ff;font-size:11px;line-height:1.25}.live201-daily-timeline th:first-child{min-width:190px}.permissions-shell .permission-row label{font-weight:700}
@media(max-width:700px){.fixed-job-card{grid-template-columns:1fr}.fixed-job-form{grid-template-columns:1fr}.fixed-wide,.fixed-weekdays{grid-column:auto}.fixed-domestic-section{margin:12px 8px}.fixed-job-grid{grid-template-columns:1fr}}

/* ===== TIMX LIVE 2.1.0 ===== */
.live210-domestic-form .live210-allocation-field{order:-10;background:#153653;border:1px solid #4b8bc2;border-radius:12px;padding:14px;text-align:center}.live210-domestic-form .live210-allocation-field>span{font-weight:900;color:#fff;font-size:1.05rem}.live210-domestic-form .live210-allocation-field input{font-weight:800;text-align:center}.live210-domestic-form [hidden]{display:none!important}
.live210-work-page{display:flex;flex-direction:column;gap:16px}.live210-work-section>h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;padding:11px 14px;border-radius:10px;background:#153653;color:#fff}.live210-work-section>h3 span{font-size:.78rem;color:#9cc5e5}.live210-work-section.domestic>h3{background:#176548}.live210-vehicle-group{padding:0;overflow:hidden;margin-bottom:10px}.live210-vehicle-group>header{padding:11px 14px;background:#17324c;border-bottom:1px solid #31516d}.live210-vehicle-group>header b{display:block;font-size:1.05rem}.live210-vehicle-group>header span{font-size:.78rem;color:#a9bfd2}.live210-work-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px 14px;border-bottom:1px solid #28445c}.live210-work-row:last-child{border-bottom:0}.live210-work-row.done{opacity:.72;background:#123e32}.live210-work-main strong{display:block}.live210-work-main small{color:#9fb4c8}.live210-work-state{display:flex;align-items:center;gap:10px}.live210-work-state button{white-space:nowrap}
.timeline-group-row th{position:sticky;left:0;background:#204765!important;color:#fff!important;text-align:left!important;padding:8px 12px!important;letter-spacing:.04em;border-top:3px solid #64a6d6}.live210-click-task{display:block;width:100%;border:1px solid #3d6b8b;background:#164b70;color:#fff;border-radius:7px;padding:5px 7px;margin:3px 0;text-align:left;font-size:.76rem;cursor:pointer}.live210-click-task:hover{background:#2078aa;transform:translateY(-1px)}
@media(max-width:760px){.live210-work-row{grid-template-columns:1fr}.live210-work-state{justify-content:space-between}.live210-domestic-form .live210-allocation-field{grid-column:1/-1}}

/* LIVE 2.1.1 – archivált timeline elemek */
.timeline-task-archived{
  background:#495766!important;
  border-color:#73808d!important;
  color:#dce3e9!important;
  font-weight:500!important;
  opacity:.72;
  filter:saturate(.35);
  box-shadow:none!important;
}
.timeline-task-archived:hover{opacity:.95;filter:saturate(.55);transform:none!important}
.timeline-task-archived .archive-mark{
  display:inline-block;margin-right:5px;padding:1px 5px;border-radius:999px;
  background:#29343e;color:#c7d0d8;font-size:9px;font-weight:800;letter-spacing:.04em;
}

/* TIMX LIVE 2.1.3 – egységes kiosztásmód-kártya és visszavonás */
.live213-freight-form .live213-allocation-field{
  order:-100;
  display:block;
  padding:14px 16px;
  border:1px solid #3b82b6;
  border-radius:14px;
  background:linear-gradient(180deg,#163a58,#112f49);
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.live213-freight-form .live213-allocation-field>span{
  display:block;
  margin-bottom:8px;
  color:#fff;
  font-size:20px;
  font-weight:900;
}
.live213-freight-form .live213-allocation-field .combo-wrap,
.live213-freight-form .live213-allocation-field input{
  width:100%;
}
.live213-freight-form .live213-allocation-field input{
  text-align:center;
  font-weight:800;
  min-height:42px;
}
.live213-rollback-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
  padding:14px 16px;
  border:1px solid #8d3a45;
  border-radius:12px;
  background:#2a1720;
}
.live213-rollback-box div{display:flex;flex-direction:column;gap:3px}
.live213-rollback-box strong{color:#ffd9dd}
.live213-rollback-box small{color:#d7aab0}
.live213-rollback-box .danger{white-space:nowrap;background:#a92f3d;border-color:#d94c5c;color:#fff}
@media(max-width:720px){
 .live213-rollback-box{align-items:stretch;flex-direction:column}
 .live213-rollback-box .danger{width:100%;white-space:normal}
 .live213-freight-form .live213-allocation-field>span{font-size:17px}
}

/* ===== TIMX LIVE 2.1.4 ===== */
.archive-filterbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.archive-filterbar input.search{min-width:260px}.archive-filterbar select.search{min-width:220px}.special-auto-task{width:100%;margin:2px 0;padding:4px 6px;border:1px solid #3d6b8b;border-radius:6px;background:#164b70;color:#fff;text-align:left;font-size:10px;line-height:1.2;cursor:pointer}.special-auto-task:hover{background:#2078aa}.special-timeline-table .timeline-cell{vertical-align:top}.special-timeline-table .timeline-cell input{margin-top:4px}
@media(max-width:760px){.archive-filterbar{width:100%}.archive-filterbar input.search,.archive-filterbar select.search{width:100%;min-width:0}}

/* ===== TIMX LIVE 2.1.5 – stabil, többnapos timeline ===== */
.timeline-task{transition:background-color .12s ease,border-color .12s ease,opacity .12s ease;contain:layout paint}
.special-timeline-wrap,.live20-status-timeline-wrap{scroll-behavior:auto!important;overflow-anchor:none}
.special-timeline-table,.live20-status-timeline{overflow-anchor:none}

/* ===== TIMX LIVE 2.1.7 – holnapi munkák szekciók és SMS állapot ===== */
.live217-work-section{margin-top:22px}
.live217-section-title{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid #315573;border-radius:12px 12px 0 0;background:#18344e}
.live217-section-title h3{margin:0;font-size:18px;letter-spacing:.03em}
.live217-section-title span{background:#24628f;border-radius:999px;padding:4px 10px;font-weight:800}
.live217-work-section .tomorrow-job-grid{border:1px solid #315573;border-top:0;border-radius:0 0 14px 14px;padding:12px}
.live217-tomorrow-card{position:relative;background:#10253a!important;border:2px solid #315573!important;box-shadow:none!important}
.live217-tomorrow-card.live217-assigned-border{background:#10253a!important;border-color:#45d999!important;box-shadow:0 0 0 1px rgba(69,217,153,.18)!important}
.live217-tomorrow-card.live217-sms-sent{background:linear-gradient(135deg,#124f3d,#17664a)!important;border-color:#62efae!important;box-shadow:0 0 0 1px rgba(98,239,174,.22)!important}
.live217-card-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.live217-sms-button{border:1px solid #ffb547;background:#6b4514;color:#fff;font-weight:900;padding:10px 14px;border-radius:9px;cursor:pointer}
.live217-sms-button:hover:not(:disabled){background:#87591a}
.live217-sms-button:disabled{opacity:.42;cursor:not-allowed}
.live217-sms-button.sent{background:#1f9b62;border-color:#62efae}
.live217-assigned-mark,.live217-sms-mark{position:absolute;right:12px;bottom:12px;border-radius:9px;padding:8px 11px;font-weight:900;font-size:12px}
.live217-assigned-mark{background:#173f32;border:1px solid #45d999;color:#a7fbd7}
.live217-sms-mark{background:#28a76c;border:1px solid #7affbb;color:#fff}
@media(max-width:760px){.live217-assigned-mark,.live217-sms-mark{position:static;display:inline-flex;margin-top:10px}.live217-card-actions>*{width:100%}.live217-section-title h3{font-size:15px}}

/* ===== TIMX LIVE 2.1.8 – kártyarendezés és üres hazatérés ===== */
.live217-tomorrow-card{display:flex;flex-direction:column;min-width:0;overflow:visible}
.live218-card-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:auto;padding-top:10px}
.live218-state-area{display:flex;align-items:center;justify-content:flex-end;min-height:38px;max-width:190px}
.live217-assigned-mark,.live217-sms-mark{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;max-width:100%;margin:0!important;white-space:normal;text-align:center;line-height:1.15}
.live217-card-actions{margin:0;display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr);gap:8px;min-width:0}
.live217-card-actions button{min-width:0;white-space:normal;line-height:1.15}
.live218-return-date-field[hidden],.live210-import-field[hidden],.live210-prepull-field[hidden]{display:none!important}
.live218-empty-return-badge{display:inline-block;padding:3px 7px;border:1px solid #e6a735;border-radius:7px;background:#5f4313;color:#ffd985;font-weight:900;font-size:11px}
.live218-empty-return-date{display:block;margin-top:3px;color:#ffd46a;font-weight:800}
.live218-empty-return{display:flex;flex-direction:column;gap:3px;color:#ffd46a}
.live218-empty-return strong{color:#ffd46a}
@media(max-width:1100px){
 .live218-card-footer{grid-template-columns:1fr}
 .live218-state-area{justify-content:flex-start;max-width:none}
}
@media(max-width:760px){
 .live217-card-actions{grid-template-columns:1fr}
 .live218-state-area{width:100%}
 .live217-assigned-mark,.live217-sms-mark{width:100%}
}
\n\n/* ===== TIMX LIVE 2.1.9 – holnapi kártyák végleges elrendezése ===== */
.live217-work-section .tomorrow-job-grid{
  grid-template-columns:repeat(auto-fit,minmax(390px,1fr))!important;
  align-items:stretch;
}
.live217-tomorrow-card{
  min-height:330px;
  padding:16px!important;
  overflow:hidden!important;
}
.live217-tomorrow-card>header{
  min-height:58px;
  align-items:flex-start;
}
.live217-tomorrow-card .tomorrow-current-assignment{
  display:flex!important;
  flex-wrap:wrap;
  gap:7px 14px;
  align-items:center;
  min-height:56px;
}
.live217-tomorrow-card .tomorrow-current-assignment>b{
  flex:0 0 100%;
}
.live219-assignment-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  width:100%;
  min-width:0;
}
.live219-assignment-form label,
.live219-assignment-form .combo-wrap,
.live219-assignment-form input{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.live218-card-footer{
  display:flex!important;
  flex-direction:column;
  align-items:stretch!important;
  gap:10px!important;
  margin-top:auto;
}
.live217-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:100%;
  gap:10px!important;
}
.live217-card-actions button{
  width:100%;
  min-height:44px;
  padding:9px 10px!important;
}
.live218-state-area{
  width:100%!important;
  max-width:none!important;
  min-height:42px!important;
  justify-content:stretch!important;
}
.live217-assigned-mark,.live217-sms-mark{
  width:100%!important;
  min-height:42px;
  box-sizing:border-box;
}
@media(max-width:1250px){
 .live217-work-section .tomorrow-job-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))!important}
}
@media(max-width:760px){
 .live217-work-section .tomorrow-job-grid{grid-template-columns:1fr!important}
 .live217-tomorrow-card{min-height:0}
 .live219-assignment-form{grid-template-columns:1fr!important}
 .live217-card-actions{grid-template-columns:1fr!important}
}

/* ===== TIMX LIVE 2.2.0 – következő kiosztási munkanap ===== */
.live220-calendar-info{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:13px 16px;border-color:#2f6489;background:linear-gradient(135deg,#10283d,#0d2133)}
.live220-calendar-info strong{font-size:15px;color:#eaf6ff}.live220-calendar-info small{color:#9fb8cc}
@media(max-width:700px){.live220-calendar-info{padding:11px 12px}.live220-calendar-info strong{font-size:13px}.live220-planning-page .toolbar .muted{white-space:normal}}

/* ===== LIVE 2.2.1 – Jelenleg szabad vontatók ===== */
.live221-free-page .toolbar{align-items:flex-start;gap:18px;flex-wrap:wrap}
.live221-free-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.live221-free-middle{display:grid;gap:16px}
.live221-free-column{border:1px solid #315979;border-radius:14px;background:#0d2032;overflow:hidden}
.live221-free-column>h3{display:flex;justify-content:space-between;align-items:center;margin:0;padding:14px 16px;background:#193b57;font-size:18px}
.live221-free-column>h3 span,.live221-free-subgroup h4 span{background:#286694;border-radius:999px;padding:3px 9px;font-size:12px}
.live221-free-subgroup{padding:10px}
.live221-free-subgroup+h4{margin-top:8px}
.live221-free-subgroup h4{display:flex;justify-content:space-between;gap:10px;margin:0 0 8px;padding:7px 9px;border-radius:8px;background:#102b42;font-size:12px;color:#bcd3e7}
.live221-free-card{border:1px solid #315979;border-left:5px solid #5b87aa;border-radius:11px;background:#10263a;padding:11px;margin-bottom:9px}
.live221-free-card.import{border-left-color:#35d29a}.live221-free-card.export{border-left-color:#f0a33b}
.live221-free-card header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.live221-free-card header div{display:grid}.live221-free-card header b{font-size:17px}.live221-free-card header small{color:#a8bfd2}
.live221-free-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.live221-free-grid>div{display:grid;gap:2px;padding:8px;border:1px solid #294963;border-radius:8px;background:#0a1b2b;min-width:0}
.live221-free-grid .task{grid-column:1/-1}.live221-free-grid small{color:#91abc0;font-size:11px}.live221-free-grid strong{overflow-wrap:anywhere}
@media(max-width:1200px){.live221-free-layout{grid-template-columns:1fr 1fr}.live221-free-column.other{grid-column:1/-1}}
@media(max-width:760px){.live221-free-layout{grid-template-columns:1fr}.live221-free-column.other{grid-column:auto}.live221-free-grid{grid-template-columns:1fr}.live221-free-grid .task{grid-column:auto}}

/* ===== TIMX LIVE 2.3.0 – Digitális Mágnesfal 2.0 ===== */
.magnet-board-page{min-height:calc(100vh - 118px);background:radial-gradient(circle at 30% 0%,rgba(255,255,255,.04),transparent 35%),#081522;padding:12px}.magnet-toolbar{position:sticky;top:0;z-index:25;background:#091827;border:1px solid #284761;border-radius:12px;padding:10px 12px}.magnet-zoom{display:flex;align-items:center;gap:8px;font-weight:800}.magnet-zoom input{width:140px}.magnet-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.magnet-tabs button.active{background:#f2b500;color:#111;border-color:#ffd54b}.magnet-board-canvas{overflow:auto;max-height:calc(100vh - 210px);border:1px solid #31516b;border-radius:14px;background:#d9d5c7;padding:12px;box-shadow:inset 0 0 40px rgba(0,0,0,.18)}.magnet-board-layout{display:grid;grid-template-columns:minmax(900px,1fr) 250px;gap:12px;min-width:1200px;transform-origin:top left;font-size:calc(14px * var(--magnet-zoom,1))}.magnet-board-grid{display:grid;grid-template-columns:1fr;gap:14px}.magnet-board-layout.all .magnet-board-grid{grid-template-columns:1fr 1fr;align-items:start}.magnet-panel{background:linear-gradient(180deg,#f7f4e9,#e9e5d8);border:4px solid #33505d;border-radius:8px;box-shadow:0 8px 18px rgba(0,0,0,.24);overflow:hidden}.magnet-panel>header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:7px 10px;background:#154f72;color:#fff;border-bottom:3px solid #132f42}.magnet-fuvartábla>header{background:#8b4915}.magnet-belföld>header{background:#16786f}.magnet-timx-special-fuvarok>header{background:#8a6600}.magnet-panel>header h3{margin:0;text-align:center;font-size:1.25em;letter-spacing:.04em}.magnet-panel>header button{padding:4px 8px}.magnet-column-head,.magnet-freight-row{display:grid;grid-template-columns:88px 130px 115px 110px minmax(150px,1fr) minmax(150px,1fr) 125px 95px}.magnet-column-head{background:#d9e6ed;color:#122635;font-weight:900;text-align:center;border-bottom:2px solid #365c74}.magnet-column-head span{padding:5px;border-right:1px solid #87a1b1}.magnet-freight-row{min-height:74px;background:#fbfaf4;border-bottom:2px solid #7a8e96;transition:.15s}.magnet-freight-row:hover{filter:brightness(.98);box-shadow:inset 0 0 0 3px #f1b500}.magnet-freight-row.export{border-left:6px solid #2584c4}.magnet-freight-row.import{border-left:6px solid #e6a800}.magnet-freight-row.prepull{border-left:6px solid #9c5fe3}.magnet-freight-row.done{border-left:6px solid #2bb673;background:#e9f8ef}.magnet-freight-row.danger{border-left:6px solid #d8273d;background:#fde8eb}.magnet-freight-row.technical{border-left:6px solid #d25d28}.magnet-freight-row.empty-return{border-left:6px solid #ee7c2c}.magnet-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5px;border-right:1px solid #879aa3;min-width:0}.magnet-cell small{display:block;font-size:.78em;color:#4c5d67;margin-top:2px}.magnet-cell.export,.magnet-cell.import{font-size:.86em}.magnet-cell.state span{background:#214e70;color:#fff;border-radius:999px;padding:4px 6px;font-size:.75em;font-weight:900}.magnet-plate{display:inline-flex;align-items:center;justify-content:center;min-width:82px;min-height:27px;padding:3px 8px;background:#f8f6ee;border:2px solid #6b5d55;border-radius:3px;box-shadow:2px 3px 3px rgba(0,0,0,.28);font-family:Arial,sans-serif;font-size:1.02em;font-weight:900;letter-spacing:.03em;cursor:grab}.magnet-plate.trailer{color:#a22d31}.magnet-plate.tractor{color:#233b54}.magnet-driver{display:inline-flex;gap:5px;align-items:center;justify-content:center;max-width:100%;font-weight:800;cursor:grab}.magnet-driver b{background:#2b75a3;color:#fff;border-radius:5px;padding:2px 4px;font-size:.75em}.magnet-empty-drop{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:5px;border:2px dashed #80929a;border-radius:4px;color:#65747a;font-size:.78em}.magnet-empty-return{display:block;margin-top:4px;background:#ee7c2c;color:white;padding:2px 5px;border-radius:4px;font-size:.72em;font-weight:900}.magnet-panel-empty{padding:25px;text-align:center;color:#60727a;font-style:italic}.magnet-resource-pool{position:sticky;top:0;align-self:start;display:flex;flex-direction:column;gap:8px}.magnet-resource-pool details{background:#f1eee4;border:3px solid #4b626d;border-radius:7px;overflow:hidden}.magnet-resource-pool summary{display:flex;justify-content:space-between;padding:8px;background:#273f4b;color:#fff;font-weight:900;cursor:pointer}.magnet-resource-pool details>div{display:flex;flex-wrap:wrap;gap:5px;padding:8px;max-height:260px;overflow:auto}.magnet-pool-item{background:#fffaf0;border:2px solid #6a5b50;border-radius:3px;padding:4px 6px;box-shadow:1px 2px 2px rgba(0,0,0,.2);font-weight:900;cursor:grab}.magnet-pool-item.trailer{color:#a22d31}.magnet-pool-item.driver{background:#d9edf8;color:#1b4965}.magnet-context-menu{display:none;position:fixed;z-index:99999;width:220px;background:#0a1b2c;border:1px solid #47769a;border-radius:9px;padding:6px;box-shadow:0 12px 35px rgba(0,0,0,.5)}.magnet-context-menu.open{display:flex;flex-direction:column}.magnet-context-menu button{text-align:left;background:transparent;border:0;padding:9px;color:#fff}.magnet-context-menu button:hover{background:#173a55}.magnet-board-page:fullscreen{padding:8px;background:#07121d}.magnet-board-page:fullscreen .magnet-board-canvas{max-height:calc(100vh - 110px)}@media(max-width:1200px){.magnet-board-layout.all .magnet-board-grid{grid-template-columns:1fr}.magnet-board-layout{grid-template-columns:minmax(900px,1fr) 220px}}@media(max-width:700px){.magnet-board-canvas{max-height:none}.magnet-board-layout{min-width:1150px}.magnet-toolbar .right{align-items:flex-start}.magnet-board-page{padding:6px}}

/* ===== TIMX LIVE 2.3.1 – Mágnesfal kontrasztjavítás ===== */
.magnet-board-page .magnet-freight-row,
.magnet-board-page .magnet-cell,
.magnet-board-page .magnet-driver,
.magnet-board-page .magnet-cell.export,
.magnet-board-page .magnet-cell.import{
  color:#142838 !important;
}
.magnet-board-page .magnet-cell > span:not(.magnet-empty-return),
.magnet-board-page .magnet-cell > div,
.magnet-board-page .magnet-driver > span,
.magnet-board-page .magnet-driver{
  color:#142838 !important;
  font-weight:800;
  text-shadow:none !important;
}
.magnet-board-page .magnet-cell small{
  color:#405665 !important;
  font-weight:700;
}
.magnet-board-page .magnet-cell.export,
.magnet-board-page .magnet-cell.import{
  color:#18384d !important;
  font-weight:800;
}
.magnet-board-page .magnet-cell.export small,
.magnet-board-page .magnet-cell.import small{
  color:#405665 !important;
}
.magnet-board-page .magnet-freight-row.done .magnet-cell,
.magnet-board-page .magnet-freight-row.danger .magnet-cell,
.magnet-board-page .magnet-freight-row.technical .magnet-cell,
.magnet-board-page .magnet-freight-row.empty-return .magnet-cell{
  color:#142838 !important;
}
.magnet-board-page .magnet-column-head,
.magnet-board-page .magnet-column-head span{
  color:#102534 !important;
}
.magnet-board-page .magnet-plate.tractor{
  color:#153a5b !important;
}
.magnet-board-page .magnet-plate.trailer{
  color:#a31925 !important;
}
.magnet-board-page .magnet-pool-item{
  color:#18334a !important;
}
.magnet-board-page .magnet-pool-item.trailer{
  color:#a31925 !important;
}
.magnet-board-page .magnet-pool-item.driver{
  color:#123f5d !important;
}
.magnet-board-page .magnet-panel-empty,
.magnet-board-page .magnet-empty-drop{
  color:#4b616e !important;
}

/* ===== TIMX LIVE 2.3.2 – Mágnesfal teljes szerkesztés ===== */
.magnet-cell{position:relative}.magnet-editable{cursor:pointer}.magnet-editable:hover{background:rgba(255,193,7,.10)}
.magnet-inline-edit{position:absolute;right:2px;top:2px;width:20px;height:20px;padding:0;border:0;border-radius:4px;background:rgba(18,54,76,.12);color:#17364a;opacity:0;transition:.15s;font-size:12px}.magnet-editable:hover .magnet-inline-edit{opacity:1}
.magnet-assignment{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0}.magnet-plate-stack,.magnet-pool-stack{display:inline-flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.magnet-driver-monogram{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:18px;padding:1px 5px;border:1px solid #145d88;border-radius:5px;background:#2b75a3;color:#fff;font-size:.72em;font-weight:900;line-height:1}.magnet-driver-monogram.empty{background:#e3e7e9;color:#59666d;border-color:#8d999f}
.magnet-cell-caption{font-size:.62em!important;text-transform:uppercase;font-weight:900;color:#52646e!important;letter-spacing:.03em;margin-bottom:2px!important}
.magnet-date-range{display:block;margin-top:4px!important;padding:2px 5px;border-radius:4px;background:#e7edf0;color:#243b4a!important;font-weight:900}.magnet-date-range b{color:#b26a00}
.magnet-trailer-type{display:inline-flex!important;align-items:center;justify-content:center;margin-top:1px!important;padding:1px 5px;border-radius:999px;background:#b88700!important;color:#fff!important;font-size:.58em!important;font-weight:900!important;line-height:1.25;white-space:nowrap;box-shadow:0 1px 2px rgba(0,0,0,.18)}
.magnet-trailer-type.hűtős,.magnet-trailer-type.hutos{background:#1880bd!important}.magnet-trailer-type.nyitott{background:#5a5f66!important}.magnet-trailer-type.bérlős,.magnet-trailer-type.berlos{background:#713aa5!important}.magnet-trailer-type.mega{background:#d99400!important;color:#111!important}
.magnet-pool-stack .magnet-trailer-type{font-size:.55em!important}.magnet-resource-pool details>div{align-items:flex-start}
.magnet-editor-sections{display:grid;gap:12px;max-height:68vh;overflow:auto;padding-right:4px}.magnet-editor-sections fieldset{border:1px solid #31516b;border-radius:10px;padding:10px;background:#0d2033}.magnet-editor-sections legend{padding:0 7px;color:#a8d8f7;font-weight:900}
.magnet-editor-sections .form-grid{margin:0}.magnet-editor-sections input{width:100%}
@media(max-width:700px){.magnet-inline-edit{opacity:1}.magnet-editor-sections{max-height:72vh}}

/* ===== TIMX LIVE 2.3.3 – Mágnesfal jelzések, csere és ütközésjavítás ===== */
.magnet-board-canvas{overflow:auto!important;scrollbar-gutter:stable both-edges}
.magnet-board-layout{grid-template-columns:minmax(1180px,1fr) 250px!important;min-width:1480px!important}
.magnet-board-layout.all .magnet-board-grid{grid-template-columns:1fr!important}
.magnet-panel{min-width:1180px}
.magnet-column-head,.magnet-freight-row{grid-template-columns:92px 148px 138px 122px minmax(180px,1fr) minmax(205px,1.1fr) 128px 170px!important}
.magnet-cell.state{padding:7px!important;gap:5px;align-items:stretch!important}
.magnet-status-pill{display:flex!important;align-items:center;justify-content:center;min-height:34px;width:100%;box-sizing:border-box;background:#214e70;color:#fff;border-radius:7px!important;padding:5px 7px!important;font-size:.76em!important;font-weight:900;line-height:1.15;white-space:normal;overflow-wrap:anywhere;text-align:center}
.magnet-next-badge{display:block;margin-top:5px;padding:4px 6px;border:2px solid #f1b900;border-radius:6px;background:#ffd63d;color:#241900;font-size:.72em;font-weight:1000;line-height:1.1;animation:magnetNextPulse 1.15s ease-in-out infinite}
.magnet-next-badge.assigned{background:#d8f6e6;border-color:#31bd7d;color:#075b37;animation:none}
.magnet-freight-row.magnet-next-unassigned{background:#fff8cf!important;box-shadow:inset 0 0 0 3px #f0bd00}
.magnet-freight-row.magnet-next-assigned{box-shadow:inset 0 0 0 3px #39c987}
@keyframes magnetNextPulse{0%,100%{filter:brightness(1);box-shadow:0 0 0 rgba(255,190,0,0)}50%{filter:brightness(1.12);box-shadow:0 0 13px rgba(255,190,0,.75)}}
.magnet-freight-row.magnet-has-collision{background:#ffe7e9!important;box-shadow:inset 0 0 0 4px #dc243c!important}
.magnet-freight-row.magnet-has-collision .magnet-cell.tractor,
.magnet-freight-row.magnet-has-collision .magnet-cell.trailer{position:relative}
.magnet-cell-conflict{display:inline-flex;margin-top:4px;padding:2px 5px;border-radius:5px;background:#c81e35;color:#fff;font-size:.66em;font-weight:1000;animation:magnetCollisionPulse .85s infinite}
.magnet-collision-badge{display:block;padding:4px 5px;border-radius:6px;background:#c81e35;color:#fff;font-size:.67em;font-weight:1000;line-height:1.15;overflow-wrap:anywhere;animation:magnetCollisionPulse .85s infinite}
@keyframes magnetCollisionPulse{0%,100%{opacity:1}50%{opacity:.55}}
.magnet-driver{flex-direction:column;gap:2px;line-height:1.05}
.magnet-driver>span{max-width:100%;overflow-wrap:anywhere}
.magnet-plate-stack{max-width:100%}
.magnet-plate{max-width:100%;box-sizing:border-box}
.magnet-cell.import,.magnet-cell.export{overflow-wrap:anywhere}
@media(max-width:1400px){.magnet-board-layout{grid-template-columns:minmax(1120px,1fr) 225px!important;min-width:1380px!important}.magnet-panel{min-width:1120px}.magnet-column-head,.magnet-freight-row{grid-template-columns:86px 138px 130px 116px minmax(165px,1fr) minmax(185px,1.05fr) 118px 155px!important}}

/* ===== TIMX LIVE 2.3.4 – kizárólag Mágnesfal státusz redesign ===== */
.magnet-cell.state .magnet-status-pill{
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 5px rgba(0,0,0,.18);
  letter-spacing:.01em;
}
.magnet-cell.state .magnet-status-pill.status-default{background:#285d82!important;color:#fff!important}
.magnet-cell.state .magnet-status-pill.status-export{background:#176aa0!important;color:#fff!important}
.magnet-cell.state .magnet-status-pill.status-import{background:#168255!important;color:#fff!important}
.magnet-cell.state .magnet-status-pill.status-warning{background:#f0ae19!important;color:#151008!important;text-shadow:none}
.magnet-cell.state .magnet-status-pill.status-danger{background:#c92539!important;color:#fff!important;animation:magnetCollisionPulse .85s infinite}
.magnet-cell.state .magnet-status-pill.status-technical{background:#555d66!important;color:#fff!important}
.magnet-cell.state .magnet-status-pill.status-muted{background:#6c737a!important;color:#fff!important;opacity:.9}
.magnet-cell.state .magnet-collision-badge{color:#fff!important}

/* ===== TIMX LIVE 2.3.6 – Eszközpark stabil elrendezés ===== */
#app .fleet-grid.categorized-grid{align-items:start;gap:14px}
#app .fleet-col{min-width:0;overflow:hidden}
#app .fleet-category-items{display:flex;flex-direction:column;gap:6px;padding:8px}
#app .fleet-item{
  display:grid!important;
  grid-template-columns:minmax(150px,1.25fr) minmax(105px,.8fr) minmax(145px,1fr) minmax(110px,.8fr) auto;
  align-items:center;
  gap:8px;
  min-height:58px;
  padding:8px 10px!important;
  box-sizing:border-box;
}
#app .fleet-item.driver-row{
  grid-template-columns:minmax(150px,1.15fr) 64px minmax(150px,1fr) minmax(150px,1fr) auto;
}
#app .fleet-item .fleet-main{min-width:0;overflow-wrap:anywhere}
#app .fleet-item input,#app .fleet-item select,#app .fleet-item button{max-width:100%;min-width:0;box-sizing:border-box}
#app .fleet-item .driver-mono{width:100%!important}
#app .fleet-item .fleet-category,#app .fleet-item .driver-rank{width:100%!important}
#app .fleet-item .fleet-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0}
#app .fleet-item .status-pill{white-space:nowrap}
#app .fleet-item .busy-where{margin-top:4px;line-height:1.25;overflow-wrap:anywhere}
@media(max-width:1500px){
  #app .fleet-item,#app .fleet-item.driver-row{grid-template-columns:minmax(135px,1fr) minmax(90px,.7fr) minmax(125px,.9fr);align-items:start}
  #app .fleet-item .fleet-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:900px){
  #app .fleet-item,#app .fleet-item.driver-row{grid-template-columns:1fr 1fr}
  #app .fleet-item .fleet-main{grid-column:1/-1}
  #app .fleet-item .fleet-actions{grid-column:1/-1}
}

/* ===== LIVE 2.3.7 – Coloplast mágnesfal és pontos importidők ===== */
.magnet-coloplast-row,
.magnet-coloplast-head{grid-template-columns:minmax(150px,1.05fr) minmax(150px,1.05fr) minmax(145px,.95fr) minmax(110px,.72fr) minmax(210px,1.45fr) minmax(230px,1.6fr) minmax(125px,.82fr) minmax(175px,1.15fr)!important}
.magnet-colo-operation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:72px;width:100%}
.magnet-colo-operation .magnet-assignment{width:100%;justify-content:center}
.magnet-operation-date{display:block;font-size:12px;font-weight:800;color:#18364a;text-align:center;white-space:nowrap}
.magnet-coloplast-row .magnet-cell.entry,.magnet-coloplast-row .magnet-cell.pickup{padding:6px 8px}
.magnet-date-range{white-space:normal;line-height:1.25}
@media(max-width:1100px){.magnet-coloplast-row,.magnet-coloplast-head{grid-template-columns:150px 150px 145px 110px 210px 230px 125px 175px!important}}

/* ===== LIVE 2.3.8 – napjelzés, piros duplikáció, kategorizált szabad eszközök ===== */
.magnet-cell.state .magnet-collision-badge,
.magnet-has-collision .magnet-collision-badge{
  background:#d71920!important;
  color:#fff!important;
  border:2px solid #ff6770!important;
  box-shadow:0 0 0 2px rgba(215,25,32,.24),0 0 14px rgba(215,25,32,.65)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.45)!important;
  opacity:1!important;
}
.magnet-has-collision .magnet-status-pill{background:#d71920!important;color:#fff!important;border-color:#ff7b82!important}
.magnet-categorized-pool{display:block!important;padding:6px!important;max-height:300px!important;overflow:auto}
.magnet-pool-category{margin:0 0 7px;border:1px solid #a79f8b;border-radius:6px;background:#e7e2d4;overflow:hidden}
.magnet-pool-category:last-child{margin-bottom:0}
.magnet-pool-category h4{display:flex;justify-content:space-between;align-items:center;margin:0;padding:4px 6px;background:#cfc8b5;color:#263844;font-size:.68em;letter-spacing:.025em;font-weight:1000}
.magnet-pool-category h4 b{display:inline-flex;min-width:20px;justify-content:center;border-radius:999px;background:#334d5c;color:#fff;padding:1px 5px}
.magnet-pool-category>div{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;padding:6px;max-height:none!important;overflow:visible!important}
.magnet-pool-category.simple{border:0;background:transparent}
.magnet-pool-category.simple>div{padding:2px}
.magnet-resource-pool .magnet-pool-item{font-size:.78em}
.magnet-resource-pool .magnet-trailer-type{display:block;max-width:100%;white-space:normal;text-align:center}
.magnet-cell.import .date-range{display:block;margin-top:3px;font-weight:900;color:#344b59;white-space:normal}

/* ===== TIMX LIVE 2.4.0 – admin napló és SMS időbélyeg ===== */
.live217-sms-mark small{display:block;margin-top:4px;font-size:.72rem;font-weight:700;opacity:.95;white-space:nowrap}
.audit-page{max-width:1680px;margin:0 auto;padding:24px}.audit-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.audit-head h2{margin:0 0 4px}.audit-head p{margin:0;color:#9fb2c8}.audit-tools{display:flex;gap:8px;flex-wrap:wrap}.audit-tools input{min-width:320px}.audit-notice{padding:12px 16px;border:1px solid #315675;background:#10263a;border-radius:12px;margin-bottom:14px;color:#dbeafe}.audit-list{display:grid;gap:12px}.audit-card{background:#102235;border:1px solid #294963;border-radius:14px;overflow:hidden}.audit-card.is-undone{opacity:.62}.audit-card>header{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;background:#18334c;border-bottom:1px solid #315675}.audit-card>header>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.audit-card small{color:#9fb2c8}.audit-meta{text-align:right;display:flex;flex-direction:column}.audit-action{padding:5px 9px;border-radius:999px;font-size:.75rem;font-weight:900}.a-create{background:#176b45;color:#d1fae5}.a-update{background:#175b88;color:#e0f2fe}.a-delete{background:#8f2632;color:#fff}.a-undo{background:#7050a0;color:#fff}.audit-changes{padding:10px 16px}.audit-changes>div{display:grid;grid-template-columns:minmax(160px,260px) 1fr 30px 1fr;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #203d55}.audit-changes>div:last-child{border-bottom:0}.audit-changes span{font-weight:800}.audit-changes del,.audit-changes ins{padding:7px 9px;border-radius:8px;text-decoration:none;overflow-wrap:anywhere}.audit-changes del{background:#4b2028;color:#fecaca}.audit-changes ins{background:#123f31;color:#bbf7d0}.audit-card footer{display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid #294963}.audit-undone{font-weight:800;color:#c4b5fd}@media(max-width:800px){.audit-head{align-items:stretch;flex-direction:column}.audit-tools input{min-width:0;width:100%}.audit-changes>div{grid-template-columns:1fr}.audit-changes b{display:none}.audit-meta{text-align:left}.audit-card>header{flex-direction:column}}

/* ===== TIMX LIVE 2.4.1 – SMS időpont külön sorban ===== */
.live218-state-area .live217-sms-mark{
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
}
.live218-state-area .live217-sms-mark small{
  display:block!important;
  margin:0!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.15!important;
  color:#d7e4ed!important;
  opacity:.95!important;
  white-space:nowrap!important;
}

/* ===== TIMX LIVE 2.4.2 – opcionális import időpontok ===== */
.timx242-optional-datetime{display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(105px,.55fr);gap:10px;align-items:center;width:100%}
.timx242-optional-datetime input[type="date"],.timx242-optional-datetime input[type="time"]{width:100%;min-width:0}
.timx242-fixed-time-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;white-space:nowrap;padding:8px 10px;border:1px solid #355873;border-radius:8px;background:#0b1c2e;color:#dce9f4;font-weight:600}
.timx242-fixed-time-toggle input{width:auto!important;margin:0}
.timx242-optional-datetime input[hidden]{display:none!important}
@media(max-width:760px){.timx242-optional-datetime{grid-template-columns:1fr}.timx242-fixed-time-toggle{justify-content:flex-start}}

/* ===== TIMX LIVE 2.4.3 – opcionális export/import időpontok ===== */
.magnet-date-range,.date-range{font-variant-numeric:tabular-nums}

/* LIVE 2.4.5 */
.timx245-tech-warning{background:#a85d08!important;color:#fff!important;border-color:#ffad33!important;font-weight:800!important}
.tech-noncritical-card{border:1px solid #d98514!important;background:rgba(217,133,20,.12)!important}
.tech-noncritical-card span{color:#ffd18c!important;font-weight:800}
.timx245-tech-row{background:rgba(210,118,15,.12)!important}
.timx245-tech-row td{border-color:rgba(255,168,51,.35)!important}
.timx245-tech-row .timx245-tech-warning{display:inline-flex;margin-left:8px;vertical-align:middle}

/* ===== TIMX LIVE 2.5.0 – Mágnesfal munkairányító ===== */
.timx250-tabs{display:flex;flex-wrap:wrap;gap:8px}.timx250-tabs button:nth-last-child(-n+3){border-color:#2f8acb;background:#102c43}.timx250-tabs button.active:nth-last-child(-n+3){background:#1689d8;color:#fff}
.magnet-board-canvas.timx250-canvas{overflow:auto;background:#07131f;padding:14px}.timx250-page{min-width:1100px;color:#eaf4ff}.timx250-title,.timx250-availability-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#10253a;border:1px solid #2a5878;border-radius:14px;padding:16px;margin-bottom:14px}.timx250-title h3,.timx250-availability-toolbar h3{margin:0 0 4px}.timx250-title p,.timx250-availability-toolbar p{margin:0;color:#9fb4c8}.timx250-availability-toolbar label{display:flex;flex-direction:column;gap:6px;font-weight:800;min-width:270px}.timx250-availability-toolbar input{padding:10px;border-radius:8px;border:1px solid #46708f;background:#081727;color:#fff}
.timx250-resource-section{background:#0b1b2a;border:1px solid #274d69;border-radius:14px;padding:14px;margin-bottom:14px}.timx250-resource-section>h3{margin:0 0 12px}.timx250-resource-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.timx250-resource-groups>section{background:#102235;border-radius:12px;border:1px solid #294f6c;padding:12px}.timx250-resource-groups h4{margin:0 0 10px;display:flex;justify-content:space-between}.timx250-resource-groups h4 span{font-size:12px;color:#91b6d1}.timx250-availability-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}.timx250-availability-card{border:2px solid #2b5877;border-radius:12px;padding:11px;background:#0b1a29;min-height:145px}.timx250-availability-card.free{border-color:#32c987;background:#0d332d}.timx250-availability-card.conditional{border-color:#f0a52b;background:#3c2c10}.timx250-availability-card.busy{border-color:#df4d59;background:#351823}.timx250-availability-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.timx250-availability-card header strong{font-size:17px}.timx250-availability-card header span{font-size:11px;font-weight:900;border-radius:99px;padding:5px 9px;background:rgba(255,255,255,.13)}.timx250-availability-card p{margin:5px 0;font-size:13px;line-height:1.3}.timx250-availability-card footer{margin-top:9px;padding-top:8px;border-top:1px solid rgba(255,255,255,.17);color:#d8efff}
.timx250-ops-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.timx250-ops-columns>section,.timx250-next-groups>section{background:#0d2032;border:1px solid #2a5878;border-radius:14px;overflow:hidden;margin-bottom:14px}.timx250-ops-columns h3,.timx250-next-groups h3{margin:0;padding:12px 14px;background:#193b57;display:flex;justify-content:space-between}.timx250-ops-columns h3 span,.timx250-next-groups h3 span{font-size:13px;color:#b9d9ee}.timx250-ops-row{display:grid;grid-template-columns:145px minmax(300px,1fr) minmax(260px,.7fr) 95px;align-items:center;gap:12px;padding:11px 14px;border-top:1px solid #25465f}.timx250-ops-row time{font-weight:900;color:#ffcf68}.timx250-ops-row>div{display:flex;flex-direction:column;gap:4px}.timx250-ops-row small{color:#9eb5c8}.timx250-ops-row>div:nth-child(3){align-items:flex-start}.timx250-ops-row button{padding:7px 9px}.timx250-status{padding:4px 8px;border-radius:999px;background:#1f5981;font-size:11px;font-weight:800}.timx250-status.done{background:#17875d}.timx250-status.danger{background:#a92b3b}.timx250-status.technical{background:#7a5425}.timx250-next-groups{display:grid;grid-template-columns:1fr;gap:0}
@media(max-width:900px){.timx250-page{min-width:800px}.timx250-resource-groups,.timx250-ops-columns{grid-template-columns:1fr}.timx250-ops-row{grid-template-columns:120px minmax(260px,1fr) minmax(220px,.7fr) 90px}}

/* ===== TIMX LIVE 2.6.0 – Operatív Munkafal ===== */
.magnet-freight-row.magnet-has-collision{background:inherit!important;animation:none!important;box-shadow:none!important}
.magnet-freight-row.magnet-has-collision>.magnet-cell{background:inherit!important}
.magnet-plate.conflict,.timx260-driver.conflict,.magnet-cell-conflict{background:#b91c1c!important;color:#fff!important;border-color:#ff5252!important;animation:timx260Pulse 1.1s infinite;box-shadow:0 0 0 3px rgba(239,68,68,.25)!important}
@keyframes timx260Pulse{50%{filter:brightness(1.35);transform:scale(1.025)}}
.timx260-canvas{overflow:auto;background:#07182a;padding:14px}
.timx260-page{min-width:1180px;display:grid;gap:16px}
.timx260-heading{background:#102a43;border:1px solid #315a78;border-radius:14px;padding:16px 20px}.timx260-heading h2{margin:0 0 4px}.timx260-heading p{margin:0;color:#a8c0d5}
.timx260-section{border:1px solid #315a78;border-radius:14px;overflow:hidden;background:#0c2033}.timx260-section>header{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;background:#183b59}.timx260-section>header h3{margin:0}.timx260-section>header span{background:#2474a6;border-radius:999px;padding:3px 10px;font-weight:800}
.timx260-work-card{display:grid;grid-template-columns:160px 250px 120px minmax(330px,1fr) 260px;gap:12px;align-items:center;padding:12px 14px;border-top:1px solid #254a68;min-height:82px}.timx260-work-card:hover{background:#112b43}.timx260-work-card.done,.timx260-work-card.archived{opacity:.62;background:#172432}.timx260-work-card.done *{font-weight:500}.timx260-time{display:flex;flex-direction:column}.timx260-time small,.timx260-route small{display:block;color:#9fb5c9;margin-top:3px}.timx260-assignment{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:center}.timx260-assignment>div{text-align:center}.timx260-driver{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #47718e;background:#eef4f8;color:#10283d;padding:7px 9px;border-radius:5px;font-weight:800;min-width:105px}.timx260-driver b{background:#2474a6;color:#fff;border-radius:5px;padding:2px 5px}.timx260-unassigned{display:inline-block;border:1px dashed #e6a23c;color:#ffc866;padding:7px;border-radius:5px}.timx260-sms{display:inline-flex;align-items:center;gap:3px;background:#17985b;color:#fff;border-radius:999px;padding:2px 6px;font-size:10px}.timx260-sms small{font-weight:400}.timx260-route b{font-size:15px}.timx260-state{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.timx260-state>span{border-radius:999px;padding:5px 9px;font-weight:800;font-size:12px}.timx260-state>span.active{background:#195b8a}.timx260-state>span.done{background:#53616d}.timx260-state button{border:1px solid #44708f;background:#153854;color:#fff;border-radius:7px;padding:7px 9px}.timx260-state .timx260-done{background:#168f51;border-color:#48d58b}
.magnet-resource-pool details>summary{position:sticky;top:0;z-index:1}.magnet-pool-category h4{display:flex;justify-content:space-between;align-items:center}
@media(max-width:900px){.timx260-page{min-width:980px}.timx260-work-card{grid-template-columns:135px 220px 110px minmax(280px,1fr) 220px}}

/* ===== TIMX LIVE 2.6.1 – Operatív Munkafal stabilitási hotfix ===== */
.timx260-canvas{overflow:auto!important;max-width:100%;padding:12px!important;box-sizing:border-box}
.timx260-page{width:100%;min-width:0!important;display:block!important}
.timx260-heading{margin-bottom:14px}
.timx260-section{margin-bottom:14px;overflow:hidden}
.timx260-section>div{width:100%;overflow-x:auto}
.timx260-work-card{width:100%;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(130px,160px) minmax(230px,280px) minmax(100px,130px) minmax(260px,1fr) minmax(220px,280px)!important;gap:10px!important;align-items:center}
.timx260-assignment{min-width:0!important}.timx260-assignment>div,.timx260-route,.timx260-state{min-width:0}
.timx260-driver,.magnet-plate{max-width:100%;box-sizing:border-box}
.timx260-route b,.timx260-route small,.timx260-state>span{overflow-wrap:anywhere;word-break:break-word}
.timx260-state{justify-content:flex-end!important;align-content:center}
.timx261-row-error,.timx261-view-error{background:#4a1f25!important;color:#fff!important;border:1px solid #e05260!important;padding:18px!important;border-radius:10px!important}
.timx261-row-error{display:flex!important;flex-direction:column!important;min-height:auto!important}
@media(max-width:1200px){.timx260-work-card{min-width:1080px}.timx260-section>div{overflow-x:auto}}
@media(max-width:700px){.timx260-canvas{padding:6px!important}.timx260-work-card{min-width:980px;grid-template-columns:130px 220px 110px 290px 210px!important}.timx260-heading{padding:12px}.timx260-section>header{position:sticky;left:0}}
/* TIMX LIVE 3.0 */
input[type="date"],input[type="time"]{min-width:140px}.timx300-health{display:flex;gap:10px;flex-wrap:wrap}.timx300-health>*{white-space:nowrap}

/* ===== TIMX LIVE 3.1.1 HOTFIX – TV ütközési hibaok ===== */
.timx311-tv-resource{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0}
.timx311-tv-conflict{display:block;max-width:100%;padding:2px 4px;border-radius:4px;font-size:.56em;line-height:1.12;font-weight:900;white-space:normal;text-align:center;overflow-wrap:anywhere}
.timx311-tv-conflict.hard{background:#991b1b;color:#fff;border:1px solid #ff6b6b}
.timx311-tv-conflict.planned{background:#7c5d00;color:#fff4b8;border:1px solid #eab308}
.tv-table td.collision .timx311-tv-conflict{animation:none}

/* ===== TIMX LIVE 3.1.2 – időablakos ütközés + TV biztonságos lapozás ===== */
.tv-page-controls{position:relative;z-index:5}
.tv-fit-stage{min-height:0!important;overflow:hidden!important}
.tv-fit-inner{min-height:0!important}
.tv-mode-all .adaptive-tv-grid{align-items:start!important;min-height:0!important}
.tv-mode-all .tv-column{min-height:0!important;align-content:start!important}
.tv-mode-all .tv-panel{min-height:0!important}
body.tv-native-fullscreen .tv-fit-stage,body.tv-mobile-fullscreen .tv-fit-stage{height:calc(100vh - 116px)!important;max-height:calc(100vh - 116px)!important;overflow:hidden!important}
body.tv-native-fullscreen .tv-fit-inner,body.tv-mobile-fullscreen .tv-fit-inner{height:100%!important;max-height:100%!important;overflow:hidden!important}
@media(max-height:1100px){.tv-density-compact .tv-table th,.tv-density-compact .tv-table td{padding:3px 2px!important;font-size:10px!important;line-height:1.08!important}.tv-density-compact .tv-title{padding:3px 6px!important;font-size:17px!important}.timx311-tv-conflict{font-size:.52em!important;padding:1px 3px!important}}

/* ===== TIMX LIVE 3.1.3 – fuvarablak egy képernyőn ===== */
@media (min-width:1101px) and (min-height:760px){
  .modal.timx313-freight-modal{
    width:calc(100vw - 24px);
    height:calc(100vh - 24px);
    max-width:1760px;
    max-height:none;
    overflow:hidden;
    padding:11px 14px;
    border-radius:12px;
    display:flex;
    flex-direction:column;
  }
  .timx313-freight-modal h2{font-size:21px;margin:0 0 5px}
  .timx313-freight-modal>.combo-hint{margin:0 0 7px;padding:7px 10px;font-size:11px;line-height:1.25}
  .timx313-freight-modal .live213-freight-form{
    flex:1;
    min-height:0;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-rows:min-content;
    gap:5px 9px;
    align-content:start;
    overflow:visible;
  }
  .timx313-freight-modal .live213-freight-form>label{font-size:10.5px;min-width:0}
  .timx313-freight-modal .live213-freight-form>label>span{margin-bottom:2px;line-height:1.1}
  .timx313-freight-modal input,.timx313-freight-modal select,.timx313-freight-modal textarea{padding:5px 7px;min-height:30px}
  .timx313-freight-modal textarea{min-height:42px;max-height:52px;resize:none}
  .timx313-freight-modal .live213-allocation-field{grid-column:1/-1!important;padding:7px 12px!important}
  .timx313-freight-modal .live213-allocation-field>span{font-size:16px!important;margin-bottom:4px!important}
  .timx313-freight-modal .live213-freight-form>label.span-3:not(.live213-allocation-field){grid-column:span 2}
  .timx313-freight-modal .modal-actions{margin-top:7px;flex:0 0 auto}
  .timx313-freight-modal .live213-rollback-box{margin-top:6px;padding:6px 9px}
  .timx313-freight-modal .timx313-duplicate-time-field{display:none!important}
  .timx313-freight-modal .timx242-optional-datetime.timx313-optional-datetime{
    display:grid;
    grid-template-columns:minmax(125px,1.15fr) minmax(90px,.7fr) auto;
    gap:5px;
    align-items:center;
  }
  .timx313-freight-modal .timx313-optional-datetime small{font-size:9px;color:var(--muted);white-space:nowrap}
}
@media (max-height:850px) and (min-width:1101px){
  .modal.timx313-freight-modal{padding:8px 11px}
  .timx313-freight-modal .live213-freight-form{gap:3px 7px}
  .timx313-freight-modal input,.timx313-freight-modal select,.timx313-freight-modal textarea{min-height:27px;padding:3px 6px}
  .timx313-freight-modal .live213-allocation-field{padding:4px 10px!important}
  .timx313-freight-modal>.combo-hint{padding:4px 8px;margin-bottom:4px}
}
@media (max-width:1100px), (max-height:759px){
  .timx313-duplicate-time-field{display:none!important}
  .timx242-optional-datetime.timx313-optional-datetime{grid-template-columns:1fr 105px;gap:6px}
  .timx313-optional-datetime small{grid-column:1/-1;font-size:10px;color:var(--muted)}
}

/* ===== TIMX LIVE 3.1.4 – kiegyensúlyozott fuvarablak + stabil mobil TV ===== */
@media (min-width:1101px) and (min-height:760px){
  .modal.timx313-freight-modal.timx314-balanced-modal{
    width:min(1380px,calc(100vw - 48px))!important;
    height:auto!important;
    max-height:calc(100vh - 32px)!important;
    overflow:hidden!important;
    padding:16px 18px!important;
    border-radius:14px!important;
  }
  .timx314-balanced-modal h2{font-size:23px!important;margin:0 0 7px!important}
  .timx314-balanced-modal>.combo-hint{font-size:12px!important;line-height:1.3!important;padding:8px 11px!important;margin:0 0 9px!important}
  .timx314-balanced-modal .live213-freight-form{
    flex:0 1 auto!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px 10px!important;
    align-content:start!important;
  }
  .timx314-balanced-modal .live213-freight-form>label{font-size:12px!important}
  .timx314-balanced-modal .live213-freight-form>label>span{margin-bottom:4px!important;line-height:1.2!important}
  .timx314-balanced-modal input,.timx314-balanced-modal select,.timx314-balanced-modal textarea{
    min-height:34px!important;padding:7px 9px!important;font-size:13px!important
  }
  .timx314-balanced-modal textarea{min-height:48px!important;max-height:56px!important}
  .timx314-balanced-modal .live213-allocation-field{padding:9px 13px!important}
  .timx314-balanced-modal .live213-allocation-field>span{font-size:18px!important}
  .timx314-balanced-modal .modal-actions{margin-top:10px!important}
  .timx314-balanced-modal .modal-actions button{font-size:13px!important;padding:9px 14px!important}
  .timx314-balanced-modal .timx313-optional-datetime small{font-size:10px!important}
}

@media (min-width:1800px) and (min-height:950px){
  .modal.timx313-freight-modal.timx314-balanced-modal{width:min(1460px,calc(100vw - 80px))!important}
  .timx314-balanced-modal .live213-freight-form>label{font-size:13px!important}
  .timx314-balanced-modal input,.timx314-balanced-modal select,.timx314-balanced-modal textarea{font-size:14px!important;min-height:37px!important}
}

@media (max-width:700px){
  .tv{padding:5px!important;min-height:auto!important;overflow-x:hidden!important}
  .tv .toolbar.tv-toolbar{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;text-align:left!important;margin-bottom:6px!important}
  .tv .toolbar.tv-toolbar .left{display:block!important;text-align:left!important;min-width:0!important}
  .tv .toolbar.tv-toolbar h2{font-size:18px!important;line-height:1.1!important}
  .tv .toolbar.tv-toolbar .muted{display:none!important}
  .tv .toolbar.tv-toolbar button{position:static!important;flex:0 0 auto!important;padding:7px 8px!important;font-size:11px!important}
  .tv-view-switcher{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:5px!important;padding:5px 2px!important;margin:0 0 6px!important;position:relative!important}
  .tv-view-switcher button{flex:0 0 auto!important;padding:7px 9px!important;font-size:11px!important;white-space:nowrap!important}
  .tv-page-controls{position:relative!important;top:auto!important;margin:0 0 6px!important;padding:3px!important}
  .tv-fit-stage,.tv-fit-inner{width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;transform:none!important}
  .adaptive-tv-grid,.tv-dual-grid,.tv-today-grid{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;min-width:0!important}
  .tv-column,.tv-flex-panel{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;gap:8px!important}
  .tv-panel{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;border-radius:9px!important}
  .tv-title{position:sticky!important;left:0!important;z-index:4!important;font-size:18px!important;line-height:1.1!important;padding:8px 7px!important;min-width:100%!important}
  .tv-corner-label{position:static!important;transform:none!important;display:inline-block!important;margin-left:5px!important;font-size:9px!important;padding:2px 5px!important}
  .tv-panel .tv-table{width:max-content!important;min-width:760px!important;max-width:none!important;table-layout:auto!important;border-collapse:collapse!important}
  .tv-panel .tv-table th,.tv-panel .tv-table td{font-size:11px!important;line-height:1.18!important;padding:6px 5px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;min-width:84px!important}
  .tv-panel .tv-table th:first-child,.tv-panel .tv-table td:first-child{min-width:105px!important}
  .tv-panel .status-pill{font-size:10px!important;line-height:1.1!important;padding:4px 5px!important;width:auto!important;min-width:0!important}
  .tv-panel .route-compact,.tv-panel .route-compact span,.tv-panel .tiny-date,.tv-panel .tv-driver-mini{font-size:10px!important;line-height:1.15!important}
  .tv-panel .timx311-tv-conflict{font-size:9px!important;padding:3px 4px!important}
  body.tv-mobile-fullscreen .tv-fit-stage,body.tv-mobile-fullscreen .tv-fit-inner{height:auto!important;max-height:none!important;overflow:visible!important}
}

/* TIMX LIVE 3.3.0 */
.timx330-tech-warning{grid-column:1/-1;margin:12px 0}
.timx330-tech-ok{padding:10px 12px;border:1px solid #b8dfc3;border-radius:10px;background:#effaf2;color:#176b36;font-weight:700}
.timx330-tech-alert{padding:12px 14px;border:2px solid #f0a000;border-radius:12px;background:#fff7df;color:#6f4300}
.timx330-tech-alert>b{display:block;font-size:1rem;margin-bottom:8px}
.timx330-tech-alert>div{display:flex;flex-wrap:wrap;gap:6px 12px;padding:6px 0;border-top:1px solid rgba(111,67,0,.16)}
.timx330-tech-alert>div span{font-size:.92rem}
.timx330-tech-alert small{display:block;margin-top:8px;font-weight:700}

/* TIMX LIVE 3.5.0 – egységes figyelmeztetések, timeline, history */
.timx350-warning-stack{display:flex;flex-direction:column;gap:5px;min-width:210px;margin-top:6px}.timx350-warning-stack.compact{min-width:0}.timx350-warning{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-radius:8px;border:1px solid transparent;font-size:12px;line-height:1.25}.timx350-warning small{opacity:.9}.timx350-red{background:#fee2e2;border-color:#f87171;color:#7f1d1d}.timx350-yellow{background:#fef3c7;border-color:#f59e0b;color:#78350f}.timx350-blue{background:#dbeafe;border-color:#60a5fa;color:#1e3a8a}.timx350-green{background:#dcfce7;border-color:#4ade80;color:#14532d}.timx350-warning-stack.compact .timx350-warning{padding:4px 6px;font-size:11px}.timx350-simple-extras{display:flex;flex-direction:column;gap:5px;margin-top:5px}.timx350-history-btn{padding:4px 7px;border-radius:7px;font-size:11px;width:max-content}.timx350-modal-warning-panel{margin:8px 0 12px;padding:10px;border-radius:10px;background:rgba(15,23,42,.04)}.timx350-no-warning{display:block;padding:7px;color:#166534;background:#dcfce7;border-radius:8px}.timx350-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.timx350-history-head h2{margin-bottom:4px}.timx350-history-head p{margin:0;color:var(--muted,#64748b)}.timx350-history-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;margin-top:18px;max-height:68vh;overflow:auto}.timx350-history-grid section{min-width:0}.timx350-timeline,.timx350-history-list{display:flex;flex-direction:column;gap:8px}.timx350-timeline-item{position:relative;padding:10px 10px 10px 16px;border-left:3px solid #3b82f6;background:rgba(59,130,246,.08);border-radius:0 10px 10px 0}.timx350-timeline-item time,.timx350-timeline-item small{display:block;color:var(--muted,#64748b);font-size:12px}.timx350-history-list article{padding:10px;border:1px solid rgba(100,116,139,.25);border-radius:10px;background:var(--card,#fff)}.timx350-history-list article header{display:flex;justify-content:space-between;gap:12px}.timx350-history-list article header time{font-size:12px;color:var(--muted,#64748b)}.timx350-history-list article>div{display:flex;justify-content:space-between;gap:16px;padding-top:5px;font-size:12px}.timx350-history-list article>div span{text-align:right}.timx350-all-history{display:flex;flex-direction:column;gap:7px;max-height:70vh;overflow:auto;margin-top:15px}.timx350-all-history article{display:grid;grid-template-columns:150px 1fr 160px auto;align-items:center;gap:12px;padding:9px;border-bottom:1px solid rgba(100,116,139,.2)}
@media(max-width:900px){.timx350-history-grid{grid-template-columns:1fr}.timx350-all-history article{grid-template-columns:1fr auto}.timx350-all-history article small{grid-column:1/2}.timx350-warning-stack{min-width:170px}}

/* ===== TIMX LIVE 3.6.0 – Resource Center + Smart Search ===== */
.timx360-search-wrap{position:relative;display:flex;align-items:center;gap:6px;min-width:300px;max-width:480px;flex:1;margin:0 12px}.timx360-search-wrap input{width:100%;min-height:40px;border:1px solid rgba(148,163,184,.35);border-radius:12px;background:rgba(15,23,42,.72);color:#fff;padding:0 14px;font-size:14px;outline:none}.timx360-search-wrap input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.16)}.timx360-center-btn{min-width:40px;height:40px;border-radius:12px;font-size:21px}.timx360-search-results{position:absolute;left:46px;right:0;top:46px;z-index:10020;background:#0f172a;border:1px solid rgba(148,163,184,.35);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.45);padding:7px;max-height:480px;overflow:auto}.timx360-search-results>button{display:grid;grid-template-columns:34px 1fr auto;align-items:center;width:100%;gap:8px;padding:10px;border:0;border-radius:10px;background:transparent;color:#fff;text-align:left}.timx360-search-results>button:hover{background:rgba(56,189,248,.13)}.timx360-search-results small{color:#94a3b8}.timx360-search-icon{font-size:18px}.timx360-resource-link{cursor:pointer!important;text-decoration:underline dotted rgba(56,189,248,.65);text-underline-offset:3px}.timx360-resource-link:hover{color:#0ea5e9!important}.timx360-modal{width:min(1500px,96vw)!important;max-width:1500px!important;max-height:94vh!important;padding:0!important;overflow:hidden!important}.timx360-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 24px;background:linear-gradient(135deg,#0f172a,#172554);color:#fff}.timx360-head p{margin:0 0 3px;font-size:11px;font-weight:900;letter-spacing:.14em;color:#7dd3fc}.timx360-head h2{margin:0;font-size:28px}.timx360-head span{display:block;margin-top:4px;color:#cbd5e1}.timx360-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 20px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.timx360-summary>div{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:12px}.timx360-summary small,.timx360-summary span{display:block;color:#64748b}.timx360-summary b{display:block;margin:3px 0;font-size:16px}.timx360-warnings{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px;padding:10px 20px}.timx360-warnings article{display:flex;flex-direction:column;border-radius:11px;padding:10px 12px}.timx360-warnings article.yellow{background:#fef3c7;border:1px solid #f59e0b;color:#78350f}.timx360-warnings article.red{background:#fee2e2;border:1px solid #ef4444;color:#7f1d1d}.timx360-ok{padding:11px 13px;border-radius:11px;background:#dcfce7;color:#166534;border:1px solid #86efac}.timx360-tabs{display:flex;gap:5px;padding:0 20px;border-bottom:1px solid #e2e8f0}.timx360-tabs button{border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:transparent;padding:11px 16px}.timx360-tabs button.active{border-bottom-color:#0284c7;color:#0369a1;background:#e0f2fe}.timx360-content{padding:16px 20px 22px;overflow:auto;max-height:58vh}.timx360-content h3{margin:0 0 10px}.timx360-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:16px}.timx360-grid section,.timx360-grid aside{min-width:0}.timx360-assignment{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e2e8f0;border-left:5px solid #38bdf8;border-radius:12px;padding:11px 13px;margin-bottom:8px;background:#fff}.timx360-assignment.is-archived{opacity:.65;border-left-color:#94a3b8}.timx360-assignment>div:first-child{min-width:0}.timx360-assignment b,.timx360-assignment span,.timx360-assignment small{display:block}.timx360-assignment span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timx360-assignment small{color:#64748b;margin-top:3px}.timx360-assignment>div:last-child{display:flex;align-items:center;gap:7px;flex-shrink:0}.timx360-tech,.timx360-leave{display:flex;flex-direction:column;padding:10px 12px;border-radius:11px;margin-bottom:8px}.timx360-tech{background:#fef3c7;border:1px solid #fbbf24}.timx360-leave{background:#ede9fe;border:1px solid #c4b5fd}.timx360-tech small,.timx360-leave small{color:#64748b}.timx360-grid dl{display:grid;grid-template-columns:110px 1fr;gap:7px;margin:0;padding:12px;background:#f8fafc;border-radius:11px}.timx360-grid dt{font-weight:700;color:#64748b}.timx360-grid dd{margin:0;overflow-wrap:anywhere}.timx360-timeline-row{display:grid;grid-template-columns:160px 1fr;gap:14px;position:relative;padding:10px 12px 10px 22px;margin-left:6px;border-left:3px solid #38bdf8}.timx360-timeline-row:before{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:#0284c7;left:-7px;top:15px}.timx360-timeline-row.is-archived{opacity:.6}.timx360-timeline-row time{font-weight:800;color:#0369a1}.timx360-timeline-row b,.timx360-timeline-row span{display:block}.timx360-timeline-row span{color:#64748b}.timx360-history-row{display:grid;grid-template-columns:190px 1fr;gap:12px;padding:11px;border-bottom:1px solid #e2e8f0}.timx360-history-row time{color:#64748b}.timx360-history-row small,.timx360-history-row span{display:block}.timx360-history-row span{margin-top:3px}.timx360-browser-modal .timx360-browser{padding:16px;overflow:auto;max-height:78vh}.timx360-browser{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.timx360-browser section{min-width:0}.timx360-browser h3{display:flex;justify-content:space-between;margin:0 0 8px}.timx360-browser h3 span{background:#e2e8f0;border-radius:999px;padding:2px 8px}.timx360-browser-list{display:flex;flex-direction:column;gap:5px}.timx360-browser-list button{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:8px 10px}.timx360-browser-list button:hover{border-color:#38bdf8;background:#e0f2fe}.timx360-browser-list small{color:#64748b;text-align:right}
@media(max-width:1000px){.timx360-search-wrap{order:5;flex-basis:100%;max-width:none;margin:8px 0 0}.timx360-summary{grid-template-columns:repeat(2,1fr)}.timx360-grid{grid-template-columns:1fr}.timx360-browser{grid-template-columns:1fr}.timx360-content{max-height:62vh}}@media(max-width:620px){.timx360-modal{width:100vw!important;max-height:100dvh!important;border-radius:0!important}.timx360-head{padding:16px}.timx360-head h2{font-size:22px}.timx360-summary{grid-template-columns:1fr 1fr;padding:10px}.timx360-content{padding:12px;max-height:64vh}.timx360-assignment{align-items:flex-start;flex-direction:column}.timx360-timeline-row,.timx360-history-row{grid-template-columns:1fr}.timx360-tabs{overflow:auto;padding:0 10px}.timx360-search-results{left:0}}

/* ===== TIMX LIVE 3.6.1 – Resource Center kontraszt + stabil mobil fejléc ===== */
.timx360-modal{color:#0f172a!important}
.timx360-summary,.timx360-content,.timx360-tabs,.timx360-browser{color:#0f172a}
.timx360-summary small,.timx360-summary span{color:#475569!important}
.timx360-summary b,.timx360-content h3,.timx360-content h4,.timx360-assignment b,.timx360-assignment span,.timx360-grid dd,.timx360-browser b{color:#0f172a!important}
.timx360-assignment small,.timx360-tech small,.timx360-leave small,.timx360-grid dt,.timx360-timeline-row span,.timx360-history-row time,.timx360-browser-list small{color:#475569!important}
.timx360-tabs button{color:#334155!important}
.timx360-tabs button.active{color:#075985!important}
.timx360-tech,.timx360-tech b,.timx360-tech span{color:#713f12!important}
.timx360-leave,.timx360-leave b,.timx360-leave span{color:#4c1d95!important}
.timx360-ok{color:#14532d!important}
.timx360-browser-list button{color:#0f172a!important}
.timx360-search-results{background:#f8fafc!important;border-color:#cbd5e1!important;box-shadow:0 20px 60px rgba(0,0,0,.4)!important}
.timx360-search-results>button{color:#0f172a!important}
.timx360-search-results>button:hover{background:#e0f2fe!important}
.timx360-search-results b{color:#0f172a!important}
.timx360-search-results small{color:#475569!important}
.timx360-search-results .empty{color:#64748b!important}

@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden!important}
  .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;width:100%!important;max-width:100vw!important;padding:9px 10px 10px!important;gap:6px 8px!important}
  .topbar>div:first-child{min-width:0;overflow:hidden}
  .topbar h1,.topbar p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-nav-toggle{grid-column:2;grid-row:1;margin:0!important}
  .timx360-search-wrap{grid-column:1/-1;grid-row:2;width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;margin:2px 0 0!important;gap:6px!important}
  .timx360-search-wrap input{min-width:0!important;width:100%!important;font-size:16px!important}
  .timx360-center-btn{flex:0 0 40px!important}
  .timx360-search-results{left:0!important;right:0!important;width:auto!important;max-width:calc(100vw - 20px)!important;top:46px!important}
  .sync-state{right:58px!important;bottom:auto!important;top:45px!important;font-size:7px!important;pointer-events:none}
  nav{top:112px!important;max-width:100vw!important}
  main{width:100%!important;max-width:100vw!important;overflow-x:hidden!important}
  .timx360-modal{width:100vw!important;max-width:100vw!important;margin:0!important}
}
@media(max-width:420px){
  .topbar p{display:block!important;font-size:9px!important}
  .timx360-search-wrap input{padding:0 10px!important}
  nav{top:111px!important}
}

/* ===== TIMX LIVE 3.6.2 – automatikus kontraszt + rendszerezett kereső ===== */
/* Sötét Resource Center felületek: mindig világos szöveg */
.timx360-tabs,
.timx360-content{background:#0d1c2d!important;color:#eaf2ff!important}
.timx360-tabs{border-bottom-color:#38506a!important}
.timx360-tabs button{color:#d7e6f5!important}
.timx360-tabs button:not(.active):hover{background:#17314b!important;color:#fff!important}
.timx360-tabs button.active{background:#dff2ff!important;color:#075985!important}
.timx360-content>section>h3,
.timx360-grid>section>h3,
.timx360-grid>aside>h3,
.timx360-content h3{color:#f4f8fc!important}
.timx360-timeline-row b,
.timx360-history-row b,
.timx360-history-row small,
.timx360-history-row span{color:#eef6ff!important}
.timx360-timeline-row span,
.timx360-history-row time{color:#b8cce0!important}
.timx360-history-row{border-bottom-color:#30475e!important}

/* Világos kártyák: mindig sötét szöveg */
.timx360-summary,
.timx360-summary>div,
.timx360-assignment,
.timx360-grid dl,
.timx360-tech,
.timx360-leave,
.timx360-ok,
.timx360-warnings article,
.timx360-browser,
.timx360-browser-list button,
.timx360-search-results,
.timx360-search-results button{color:#0f172a!important}
.timx360-assignment b,
.timx360-assignment span,
.timx360-grid dt,
.timx360-grid dd,
.timx360-browser h3,
.timx360-browser h3 span,
.timx360-browser-list b{color:#0f172a!important}
.timx360-assignment small,
.timx360-browser-list small{color:#475569!important}

/* Kereső találatok rendszerezve: Vontatók / Pótkocsik / Sofőrök */
.timx360-search-results{padding:8px!important}
.timx360-search-group+ .timx360-search-group{margin-top:8px;padding-top:8px;border-top:1px solid #cbd5e1}
.timx360-search-group>header{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:7px;padding:7px 9px;margin-bottom:3px;border-radius:8px;background:#e2e8f0;color:#0f172a}
.timx360-search-group>header b{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#0f172a!important}
.timx360-search-group>header em{min-width:24px;padding:2px 7px;border-radius:999px;background:#cbd5e1;color:#334155;font-size:11px;font-style:normal;font-weight:800;text-align:center}
.timx360-search-group>div{display:flex;flex-direction:column;gap:2px}
.timx360-search-group button{display:grid!important;grid-template-columns:30px minmax(100px,1fr) minmax(120px,auto)!important;align-items:center!important;width:100%!important;gap:8px!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#0f172a!important;text-align:left!important}
.timx360-search-group button:hover{background:#dbeafe!important}
.timx360-search-group button b{color:#0f172a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timx360-search-group button small{color:#475569!important;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:620px){
  .timx360-search-group button{grid-template-columns:27px minmax(0,1fr)!important}
  .timx360-search-group button small{grid-column:2;text-align:left;white-space:normal}
}

/* ===== TIMX LIVE 3.6.3 – Resource Center fejléc-kontraszt + TV nézetek ===== */
/* Az Erőforrás Központ teljes listájának sötét hátterén világos címek. */
.timx360-browser-modal .timx360-browser{
  background:#0d1c2d!important;
  color:#eef6ff!important;
}
.timx360-browser-modal .timx360-browser section>h3{
  color:#f4f8fc!important;
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
.timx360-browser-modal .timx360-browser section>h3 span{
  background:#e2e8f0!important;
  color:#0f172a!important;
  text-shadow:none!important;
}
.timx360-browser-modal .timx360-browser-list button{
  background:#f8fafc!important;
  color:#0f172a!important;
}
.timx360-browser-modal .timx360-browser-list button b{color:#0f172a!important}
.timx360-browser-modal .timx360-browser-list button small{color:#475569!important}
.timx360-browser-modal .timx360-browser-list button:hover{background:#dff2ff!important;border-color:#38bdf8!important}

/* Holnapi teendők: nagy kijelzőn két oszlop, ezért az alsó panel nem vágódik le. */
.tv-mode-tomorrow .tv-tomorrow-stack{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  max-height:none!important;
  overflow:visible!important;
}
.tv-mode-tomorrow .tv-tomorrow-stack>.tv-panel{min-width:0!important;max-height:none!important;overflow:visible!important}
.tv-mode-tomorrow .tv-fit-stage,.tv-mode-tomorrow .tv-fit-inner{max-height:none!important;overflow:visible!important}

/* Külön teljes műszaki TV-nézet. */
.tv-mode-technical .tv-single-view,.tv-mode-technical .tv-technical-only{width:100%!important;max-width:100%!important}
.tv-mode-technical .tv-panel{max-height:none!important;overflow:visible!important}
.tv-mode-technical .tv-title.technical{font-size:clamp(22px,1.45vw,40px)!important;padding:10px 12px!important}
.tv-mode-technical .tv-table th{font-size:clamp(12px,.72vw,20px)!important;padding:7px 8px!important}
.tv-mode-technical .tv-table td{font-size:clamp(13px,.82vw,23px)!important;line-height:1.14!important;padding:8px 9px!important}

@media(max-width:900px){
  .tv-mode-tomorrow .tv-tomorrow-stack{grid-template-columns:1fr!important;gap:14px!important}
  .tv-mode-technical .tv-table{min-width:760px!important}
  .tv-mode-technical .tv-single-view{overflow-x:auto!important}
}

/* ===== TIMX LIVE 3.7.0 ===== */
#nav a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;border:0;background:transparent;padding:12px 14px;font-weight:800;white-space:nowrap}
#nav a:hover,#nav a.active{background:rgba(42,157,244,.15);color:#7fd2ff}
.mobile-nav-head{display:none}

.misc370-page{padding:14px}.misc370-toolbar .right{display:flex;gap:8px;flex-wrap:wrap}.misc370-stats{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:12px 0}.misc370-stats button{background:#13253a;border:1px solid #29445f;border-radius:12px;color:#eef8ff;padding:12px;text-align:left}.misc370-stats strong{font-size:22px;display:block;color:#73d4ff}.misc370-stats span{font-size:11px;font-weight:900}.misc370-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}.misc370-card{background:#f7f9fc;color:#142238;border-left:5px solid #54aee8;border-radius:12px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.18)}.misc370-card.important{border-left-color:#e4a11b}.misc370-card.urgent{border-left-color:#d94141}.misc370-card.expired{opacity:.72}.misc370-card.archived{opacity:.58;filter:grayscale(.45)}.misc370-card header{display:flex;justify-content:space-between;gap:12px}.misc370-card h3{margin:4px 0 2px;font-size:18px;color:#102038}.misc370-category,.misc370-priority{font-size:10px;font-weight:950;letter-spacing:.04em}.misc370-priority{background:#e7edf5;border-radius:99px;padding:5px 8px;height:max-content}.misc370-person,.misc370-date{margin:7px 0;color:#34465e;font-weight:750}.misc370-text{border-top:1px solid #d8e0ea;padding-top:10px;min-height:58px;line-height:1.45}.misc370-card footer{margin-top:12px;padding-top:10px;border-top:1px solid #d8e0ea;display:flex;justify-content:space-between;gap:10px;align-items:center}.misc370-card footer div{display:flex;gap:6px;flex-wrap:wrap}.misc370-card footer button{padding:6px 8px}.misc370-form textarea{resize:vertical}

.timx370-status-dock{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;margin:0 10px 10px;background:#0c1a2a;border:1px solid #28435c;border-radius:10px;color:#eef8ff;position:sticky;top:0;z-index:12}.timx370-status-dock strong{font-size:12px;color:#8ed7ff}.timx370-status-dock button{font-size:10px;font-weight:900;padding:7px 9px;border:1px dashed #55748f;background:#14283d;color:#f7fbff;border-radius:8px}.timx370-status-dock button.drag-over{background:#ffcf4b;color:#1a2430;transform:scale(1.04);border-style:solid}
.magnet-context-menu{max-height:min(78vh,620px);overflow:auto;min-width:270px}.magnet-context-menu details{border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}.magnet-context-menu summary{padding:9px 11px;color:#80d5ff;font-weight:900;cursor:pointer}.magnet-context-menu details button{padding-left:22px;font-size:11px}.timx370-context-title{padding:10px 12px;font-weight:950;color:#fff;background:#17324a;position:sticky;top:0;z-index:2}.magnet-context-menu .danger{color:#ff9e9e}

@media(max-width:760px){#nav a{width:100%;justify-content:flex-start;padding:13px 16px}.mobile-nav-head{display:flex}.misc370-page{padding:8px}.misc370-toolbar .right{display:grid;grid-template-columns:1fr;width:100%}.misc370-toolbar .right>*{width:100%;max-width:none}.misc370-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.misc370-grid{grid-template-columns:1fr}.misc370-card footer{align-items:flex-start;flex-direction:column}.timx370-status-dock{position:relative;margin:6px;padding:8px;overflow-x:auto;flex-wrap:nowrap}.timx370-status-dock strong{min-width:135px}.timx370-status-dock button{white-space:nowrap}}

/* TIMX LIVE 3.7.1 */
button.qol-alert{font:inherit;cursor:pointer;text-align:left;appearance:none;-webkit-appearance:none}.qol-alert:hover{filter:brightness(1.12);transform:translateY(-1px)}.qol-alert.active{outline:2px solid #ffd166;box-shadow:0 0 0 3px rgba(255,209,102,.18)}


/* TIMX LIVE 3.7.3 – Resource Center rendezett állapotok */
.timx373-assignment-section{margin:0 0 14px}
.timx373-assignment-section>h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;padding:7px 10px;border-radius:8px;background:#17314b;color:#f8fbff!important;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.timx373-assignment-section>h4 span{min-width:24px;padding:2px 7px;border-radius:999px;background:#dff2ff;color:#075985!important;text-align:center}
.timx373-assignment-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.timx373-assignment-title em{padding:2px 7px;border-radius:999px;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.04em}
.timx373-current{border-left-color:#22c55e!important;background:#f0fdf4!important}
.timx373-current .timx373-assignment-title em{background:#dcfce7;color:#166534}
.timx373-future{border-left-color:#38bdf8!important;background:#f8fafc!important}
.timx373-future .timx373-assignment-title em{background:#dbeafe;color:#1d4ed8}
.timx373-past{border-left-color:#94a3b8!important;background:#f8fafc!important;opacity:.88}
.timx373-past .timx373-assignment-title em{background:#e2e8f0;color:#475569}
.timx373-archive{border-left-color:#64748b!important;background:#e2e8f0!important;opacity:.72}
.timx373-archive .timx373-assignment-title em{background:#cbd5e1;color:#334155}
.timx373-modal .timx360-content{overflow:auto}
@media(max-width:720px){.timx373-assignment-title{align-items:flex-start}.timx373-assignment-section>h4{position:sticky;top:0;z-index:2}}

/* TIMX LIVE 3.8.0 – Task Engine */
.timx380-section{margin:0 0 14px}.timx380-section h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#183957;color:#f5fbff}.timx380-section h4 span{min-width:24px;text-align:center;border-radius:999px;background:#eaf6ff;color:#0b2a45;padding:2px 7px}.timx380-task{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f8fbff;color:#10233b;border-left:5px solid #41b9ff;border-radius:10px;padding:11px 12px;margin-bottom:8px}.timx380-task>div:first-child{min-width:0}.timx380-task>div:last-child{display:flex;align-items:center;gap:8px;flex-shrink:0}.timx380-task-title{display:flex;align-items:center;gap:8px}.timx380-task-title em{font-style:normal;font-size:11px;font-weight:800;border-radius:999px;padding:2px 7px;background:#dcecff;color:#0b4770}.timx380-task span,.timx380-task small{display:block}.timx380-task small{color:#51647a;margin-top:2px}.timx380-current{background:#edfff5;border-left-color:#16c96b}.timx380-current .timx380-task-title em{background:#c9f9dc;color:#087238}.timx380-future{background:#f4f9ff;border-left-color:#248bd1}.timx380-past,.timx380-archive{background:#c7ced7;color:#26374a;border-left-color:#72849a}.timx380-past small,.timx380-archive small{color:#44566a}.timx380-archive{opacity:.82}
@media(max-width:760px){.timx380-task{align-items:flex-start;flex-direction:column}.timx380-task>div:last-child{width:100%;justify-content:flex-end}.timx380-task-title{flex-wrap:wrap}}


/* TIMX LIVE 3.8.1 – Resource Center kontrasztjavítás */
.timx373-modal .timx360-content,
.timx373-modal .timx360-grid,
.timx373-modal .timx360-grid > section,
.timx373-modal .timx360-grid > aside { color:#f4f8ff; }
.timx373-modal .timx360-content h2,
.timx373-modal .timx360-content h3,
.timx373-modal .timx360-content h4,
.timx373-modal .timx360-grid > section > h3,
.timx373-modal .timx360-grid > aside > h3,
.timx380-section > h4 { color:#f7fbff !important; }
.timx380-section > h4 span { color:#0b2a45 !important; }
.timx380-task,
.timx380-task strong,
.timx380-task .timx380-task-title { color:#10233b !important; }
.timx380-task small { color:#51647a !important; }
.timx380-past,
.timx380-archive,
.timx380-past strong,
.timx380-archive strong,
.timx380-past .timx380-task-title,
.timx380-archive .timx380-task-title { color:#26374a !important; }
.timx380-past small,
.timx380-archive small { color:#44566a !important; }
.timx373-modal .timx360-tabs button { color:#eef7ff !important; }
.timx373-modal .timx360-tabs button.active { color:#075985 !important; }

/* ===== TIMX LIVE 3.8.2 – Navbar 2.0 / 1080p optimalizálás ===== */
/* Asztali, 1080p szélességű monitorokon kompakt, több sorba törhető navigáció. */
@media (min-width:761px) and (max-width:2100px){
  .topbar{
    min-height:56px!important;
    padding:7px 12px!important;
    gap:8px!important;
  }
  .topbar h1{font-size:18px!important;line-height:1.1!important}
  .topbar p{font-size:10px!important;line-height:1.1!important;margin-top:2px!important}
  .top-actions{gap:5px!important;flex-wrap:nowrap!important}
  .top-actions .header-link,
  .top-actions button,
  .top-actions .logged-user{
    font-size:10px!important;
    line-height:1!important;
  }
  .top-actions .header-link,
  .top-actions button{padding:7px 8px!important;border-radius:7px!important}
  .logged-user{white-space:nowrap!important}
  .sync-state{font-size:8px!important;padding:3px 6px!important;white-space:nowrap!important}
  .timx360-search-wrap{
    min-width:220px!important;
    max-width:360px!important;
    margin:0 6px!important;
  }
  .timx360-search-wrap input{min-height:34px!important;height:34px!important;font-size:12px!important;border-radius:9px!important}
  .timx360-center-btn{min-width:34px!important;width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;font-size:17px!important}
  .timx360-search-results{top:40px!important;left:40px!important}

  #nav,
  nav{
    top:56px!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    align-content:center!important;
    gap:2px 3px!important;
    padding:4px 8px!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    scrollbar-width:none!important;
  }
  #nav::-webkit-scrollbar,
  nav::-webkit-scrollbar{display:none!important}
  #nav a,
  nav a,
  nav button{
    flex:0 0 auto!important;
    min-width:0!important;
    width:auto!important;
    padding:7px 8px!important;
    border-radius:6px!important;
    font-size:10.5px!important;
    line-height:1.05!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
}

/* 1080p-nél keskenyebb asztali böngészőablak: további finom tömörítés. */
@media (min-width:761px) and (max-width:1700px){
  .topbar h1{font-size:16px!important}
  .topbar p{font-size:9px!important}
  .timx360-search-wrap{min-width:180px!important;max-width:285px!important}
  .top-actions .logged-user{display:none!important}
  #nav a,
  nav a,
  nav button{padding:6px 7px!important;font-size:9.5px!important}
}

/* Mobil menü marad oldalsó paneles, nem örökli az asztali tömörítést. */
@media (max-width:760px){
  #nav,nav{flex-wrap:nowrap!important;overflow-y:auto!important}
}

/* ===== TIMX LIVE 3.8.4 – Quick Task Actions ===== */
.timx384-task-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.timx384-status-btn{background:#0e7490!important;border-color:#22d3ee!important;color:#fff!important;font-weight:800!important}
.timx384-status-btn:hover{background:#155e75!important}
.timx384-quick-btn{width:36px!important;min-width:36px!important;padding:8px 0!important;background:#f59e0b!important;border-color:#fbbf24!important;color:#111827!important;font-size:16px!important;font-weight:900!important}
.timx384-quick-btn:hover{background:#fbbf24!important}
.timx384-modal{max-width:720px!important}
.timx384-status-modal>p{margin:0 0 16px;padding:12px 14px;border-radius:10px;background:#e0f2fe;color:#0f172a;line-height:1.45}
.timx384-status-modal select,.timx384-status-modal input{color:#0f172a!important;background:#fff!important}
@media(max-width:760px){
  .timx384-task-actions{justify-content:flex-start;width:100%;margin-top:8px}
  .timx380-task{align-items:flex-start!important;flex-direction:column!important}
  .timx384-status-btn{flex:1 1 110px}
  .timx384-quick-btn{flex:0 0 42px}
  .timx384-modal{width:calc(100vw - 18px)!important;max-width:none!important}
}

/* TIMX LIVE 3.8.5 – univerzális gyors státusz */
.timx385-quick-status{background:#f59e0b!important;color:#111827!important;border-color:#fbbf24!important;font-weight:800!important;white-space:nowrap}
.timx385-quick-status:hover{filter:brightness(1.08)}
.timx385-modal{max-width:680px!important}
@media(max-width:900px){.simple-actions .timx385-quick-status{order:-1}.simple-actions{gap:5px;flex-wrap:wrap}}

/* TIMX LIVE 3.8.6 – Egy pillantásos Erőforrások most */
.timx386-page{padding-bottom:32px}
.timx386-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 10px}
.timx386-summary>b{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:12px;font-size:24px;background:#13283b;border:1px solid #294963;color:#fff}
.timx386-summary>b small{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#d8e8f4}
.timx386-summary .free{border-color:#22c55e}.timx386-summary .busy{border-color:#ef4444}.timx386-summary .check{border-color:#f59e0b}.timx386-summary .blocked{border-color:#64748b}
.timx386-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#102236;color:#e7f2fa;font-size:12px;font-weight:800}
.timx386-legend .free{color:#4ade80}.timx386-legend .reserved{color:#60a5fa}.timx386-legend .check{color:#fbbf24}.timx386-legend .busy{color:#f87171}.timx386-legend .blocked{color:#cbd5e1}
.timx386-layout{display:grid;grid-template-columns:repeat(4,minmax(280px,1fr));gap:12px;align-items:start}
.timx386-category{background:#0e2032;border:1px solid #2b4c65;border-radius:12px;overflow:hidden}
.timx386-category>h2{display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 14px;background:#204866;color:#fff;font-size:17px}
.timx386-category>h2 span,.timx386-state>h3 span{background:#dbeafe;color:#10233b;border-radius:999px;padding:2px 9px;font-size:12px}
.timx386-state{padding:8px}.timx386-state>h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 7px;padding:7px 9px;border-radius:8px;background:#173955;color:#fff;font-size:12px;letter-spacing:.03em}
.timx386-card{margin:0 0 8px;padding:10px;border-radius:10px;background:#f8fafc;color:#10233b;border-left:5px solid #94a3b8;cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.5) inset}
.timx386-card:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.25)}
.timx386-card.free{border-color:#22c55e;background:#ecfdf5}.timx386-card.reserved{border-color:#3b82f6;background:#eff6ff}.timx386-card.check{border-color:#f59e0b;background:#fffbeb}.timx386-card.busy{border-color:#ef4444;background:#fef2f2}.timx386-card.blocked{border-color:#64748b;background:#e2e8f0}
.timx386-card header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:7px}.timx386-card header b{display:block;font-size:17px}.timx386-card header small{display:block;color:#475569}.timx386-card header span{max-width:52%;text-align:right;border-radius:999px;padding:4px 7px;background:#102f49;color:#fff;font-size:10px;font-weight:900}
.timx386-now,.timx386-next{display:grid;gap:2px;padding-top:6px;border-top:1px solid #cbd5e1}.timx386-next{margin-top:7px}.timx386-now small,.timx386-next small{font-size:10px;text-transform:uppercase;color:#64748b}.timx386-now strong,.timx386-next strong{font-size:13px}.timx386-next em{font-size:11px;color:#475569;font-style:normal}
.timx386-empty{padding:9px;color:#b9ccdc;font-size:12px}
@media(max-width:1500px){.timx386-layout{grid-template-columns:repeat(2,minmax(300px,1fr))}}
@media(max-width:760px){.timx386-summary{grid-template-columns:repeat(2,1fr)}.timx386-summary>b{font-size:20px;padding:10px}.timx386-layout{grid-template-columns:1fr}.timx386-card header{align-items:center}.timx386-card header span{max-width:58%}}


/* TIMX LIVE 3.8.7 – Központi erőforrás-állapotmotor */
.timx387-layout{grid-template-columns:repeat(5,minmax(270px,1fr))}
.timx386-card.severity-attention{border-color:#f59e0b!important;background:#fffbeb!important}
.timx386-card.severity-critical{border-color:#dc2626!important;background:#fff1f2!important;box-shadow:0 0 0 1px rgba(220,38,38,.18)}
.timx387-alerts{display:grid;gap:5px;margin-top:7px}
.timx387-alerts em{display:block;padding:7px 8px;border-radius:7px;font-size:11px;font-style:normal;font-weight:800;line-height:1.3}
.timx387-alerts em.yellow{background:#fef3c7;color:#78350f;border:1px solid #f59e0b}
.timx387-alerts em.red{background:#fee2e2;color:#7f1d1d;border:1px solid #ef4444}
.timx386-now>span{display:block;font-size:12px;line-height:1.35;margin-top:2px}
.timx386-now>span b{font-size:12px}
.timx386-category.special>h2{background:#6d28d9}
.timx386-category.other>h2{background:#475569}
@media(max-width:1850px){.timx387-layout{grid-template-columns:repeat(3,minmax(290px,1fr))}}
@media(max-width:1250px){.timx387-layout{grid-template-columns:repeat(2,minmax(290px,1fr))}}
@media(max-width:760px){.timx387-layout{grid-template-columns:1fr}}

/* ===== TIMX LIVE 3.8.9 – TV Display: nincs levágás, adaptív sűrűség ===== */
.tv .tv-page-controls{display:none!important}
.tv-fit-stage,.tv-fit-inner{max-height:none!important;height:auto!important;overflow:visible!important;transform:none!important}
body.tv-native-fullscreen .tv-fit-stage,body.tv-mobile-fullscreen .tv-fit-stage,
body.tv-native-fullscreen .tv-fit-inner,body.tv-mobile-fullscreen .tv-fit-inner{
  max-height:none!important;height:auto!important;overflow:visible!important;
}
.tv .tv-title{display:flex!important;align-items:center;justify-content:center;position:relative}
.tv .tv-title .tv-corner-label{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:.68em;opacity:.9}
.tv-density-ultra .tv-table th,.tv-density-ultra .tv-table td{font-size:10px!important;line-height:1.08!important;padding:3px 3px!important}
.tv-density-ultra .status-pill{font-size:9px!important;padding:2px 5px!important}
.tv-density-ultra .tiny-date,.tv-density-ultra .tv-driver-mini,.tv-density-ultra .route-date{font-size:8px!important;line-height:1.05!important}
.tv-density-micro .tv-title{font-size:15px!important;line-height:1!important;padding:5px 8px!important}
.tv-density-micro .tv-table th,.tv-density-micro .tv-table td{font-size:8.5px!important;line-height:1.02!important;padding:2px 2px!important}
.tv-density-micro .status-pill{font-size:7.5px!important;line-height:1!important;padding:1px 4px!important}
.tv-density-micro .tiny-date,.tv-density-micro .tv-driver-mini,.tv-density-micro .route-date,
.tv-density-micro small{font-size:7px!important;line-height:1!important}
.tv-density-micro .assignment-card-check,.tv-density-micro .warning-chip{font-size:7px!important;padding:1px 3px!important}
.tv-density-micro .tv-note{font-size:7px!important;line-height:1!important;margin-top:1px!important}
@media (max-width:900px){
  .tv-fit-stage,.tv-fit-inner{overflow:visible!important}
  .tv-density-ultra .tv-table th,.tv-density-ultra .tv-table td,
  .tv-density-micro .tv-table th,.tv-density-micro .tv-table td{font-size:12px!important;line-height:1.2!important;padding:6px 3px!important}
}

/* ===== TIMX LIVE 3.9.0 – Colo + Fuvar fullscreen teljes tartalom ===== */
:fullscreen .tv-mode-dual .tv-fit-stage,
:-webkit-full-screen .tv-mode-dual .tv-fit-stage,
body.tv-fullscreen .tv-mode-dual .tv-fit-stage,
body.tv-native-fullscreen .tv-mode-dual .tv-fit-stage{
  height:calc(100vh - 64px)!important;
  max-height:calc(100vh - 64px)!important;
  overflow:hidden!important;
}
:fullscreen .tv-mode-dual .tv-fit-inner,
:-webkit-full-screen .tv-mode-dual .tv-fit-inner,
body.tv-fullscreen .tv-mode-dual .tv-fit-inner,
body.tv-native-fullscreen .tv-mode-dual .tv-fit-inner{
  max-height:none!important;
  overflow:visible!important;
  will-change:transform;
}
:fullscreen .tv-mode-dual .tv-dual-grid,
:-webkit-full-screen .tv-mode-dual .tv-dual-grid,
body.tv-fullscreen .tv-mode-dual .tv-dual-grid,
body.tv-native-fullscreen .tv-mode-dual .tv-dual-grid{
  height:auto!important;
  min-height:0!important;
  align-items:start!important;
}
:fullscreen .tv-mode-dual .tv-panel,
:-webkit-full-screen .tv-mode-dual .tv-panel,
body.tv-fullscreen .tv-mode-dual .tv-panel,
body.tv-native-fullscreen .tv-mode-dual .tv-panel{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* ===== TIMX LIVE 3.9.1 – TV fullscreen: minden aktív sor látható ===== */
body.tv-native-fullscreen .tv-fit-stage,
body.tv-mobile-fullscreen .tv-fit-stage,
body.tv-fullscreen .tv-fit-stage,
:fullscreen .tv-fit-stage,
:-webkit-full-screen .tv-fit-stage{
  min-height:0!important;
  overflow:hidden!important;
}
body.tv-native-fullscreen .tv-fit-inner,
body.tv-mobile-fullscreen .tv-fit-inner,
body.tv-fullscreen .tv-fit-inner,
:fullscreen .tv-fit-inner,
:-webkit-full-screen .tv-fit-inner{
  overflow:visible!important;
  max-height:none!important;
  min-height:0!important;
  will-change:transform;
}
/* A korábbi dual-only 64px-es magasságbecslést felülírjuk. A pontos
   magasságot a 3.9.1 JavaScript a valós képernyőpozícióból számolja. */
body.tv-native-fullscreen .tv-mode-dual .tv-fit-stage,
body.tv-mobile-fullscreen .tv-mode-dual .tv-fit-stage,
body.tv-fullscreen .tv-mode-dual .tv-fit-stage,
:fullscreen .tv-mode-dual .tv-fit-stage,
:-webkit-full-screen .tv-mode-dual .tv-fit-stage,
body.tv-native-fullscreen .tv-mode-freight .tv-fit-stage,
body.tv-mobile-fullscreen .tv-mode-freight .tv-fit-stage,
body.tv-fullscreen .tv-mode-freight .tv-fit-stage,
:fullscreen .tv-mode-freight .tv-fit-stage,
:-webkit-full-screen .tv-mode-freight .tv-fit-stage,
body.tv-native-fullscreen .tv-mode-colo .tv-fit-stage,
body.tv-mobile-fullscreen .tv-mode-colo .tv-fit-stage,
body.tv-fullscreen .tv-mode-colo .tv-fit-stage,
:fullscreen .tv-mode-colo .tv-fit-stage,
:-webkit-full-screen .tv-mode-colo .tv-fit-stage{
  overflow:hidden!important;
}
.tv-mode-freight .tv-single-view,
.tv-mode-colo .tv-single-view,
.tv-mode-dual .tv-dual-grid{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
}
.tv-mode-freight .tv-panel,
.tv-mode-colo .tv-panel,
.tv-mode-dual .tv-panel{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* TIMX LIVE 3.10.0 – CVS GPS + geofence */
.timx3100-location{display:flex;align-items:center;justify-content:space-between;gap:14px;border-left:5px solid #16a34a}.timx3100-location.missing{border-left-color:#dc2626;background:#fff7f7}.timx3100-location small{display:block;margin-top:5px;color:#667085}.timx3100-location.missing small{color:#b42318;font-weight:800}.timx3100-gps{margin:8px 12px 12px;padding:9px 11px;border-radius:10px;background:#eef7ff;border:1px solid #b8d9f5;display:grid;grid-template-columns:auto 1fr;gap:2px 10px}.timx3100-gps small{grid-row:1/3;color:#35627f}.timx3100-gps b{font-size:12px}.timx3100-gps span{font-size:11px;color:#667085}html[data-cvs="error"] #syncState:after{content:" · CVS HIBA";color:#ffb4ab}html[data-cvs="ok"] #syncState:after{content:" · GPS ÉLŐ";color:#bbf7d0}

/* TIMX LIVE 4.0.0 */
.timx400-stops-card{margin:18px 0;padding:16px;border:1px solid #2d4f67;border-radius:14px;background:#0c2130}.timx400-stops-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.timx400-stops-head h3{margin:0}.timx400-stops-head p{margin:5px 0 0;color:#a8c0d0}.timx400-stop{display:grid;grid-template-columns:34px 100px 110px minmax(180px,1fr) 145px 110px 155px 38px;gap:7px;align-items:center;padding:8px 0;border-top:1px solid #244357}.timx400-handle{font-weight:900;color:#ffbc35}.timx400-attention{margin:28px 0 10px;padding:18px;border:2px solid #d94a4a;border-radius:18px;background:linear-gradient(180deg,rgba(110,20,25,.35),rgba(32,13,18,.72))}.timx400-attention-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.timx400-attention-head h2{margin:0;color:#ffb0b0}.timx400-attention-head p{margin:5px 0;color:#e7c2c2}.timx400-attention-head>strong{font-size:24px;background:#c82f3b;padding:8px 15px;border-radius:999px}.timx400-issue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:12px;margin-top:15px}.timx400-issue{padding:14px;border-radius:14px;background:#fff;color:#102333;border-left:8px solid #ef8e22}.timx400-issue.red{border-left-color:#d51e36;background:#fff1f2}.timx400-issue header{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #ddd;padding-bottom:8px}.timx400-issue header div{display:flex;flex-direction:column}.timx400-issue header span{font-weight:900;color:#bb172a}.timx400-issue h4{margin:11px 0 5px}.timx400-issue p{margin:0 0 12px}.timx400-issue-actions{display:flex;flex-wrap:wrap;gap:8px}.timx386-card.reserved header>span{background:#e5a70b;color:#102333}.timx386-card.reserved{border-left-color:#f4bd2c}
@media(max-width:900px){.timx400-stop{grid-template-columns:28px 1fr 1fr}.timx400-stop .stop-name{grid-column:2/4}.timx400-stop .stop-date,.timx400-stop .stop-time,.timx400-stop .stop-status{grid-column:auto}.timx400-stops-head,.timx400-attention-head{flex-direction:column}.timx400-issue-grid{grid-template-columns:1fr}}

/* ===== TIMX LIVE 4.0.4 – Fuvarablak / STOP elrendezés azonnali javítás ===== */
@media (min-width:1101px) and (min-height:760px){
  .modal.timx313-freight-modal.timx314-balanced-modal{
    overflow:auto!important;
    overscroll-behavior:contain;
  }
  .timx313-freight-modal .live213-freight-form>.timx400-stops-card,
  .timx314-balanced-modal .live213-freight-form>.timx400-stops-card{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:10px 0 0!important;
    position:relative!important;
    inset:auto!important;
    z-index:1!important;
    align-self:start!important;
    overflow:hidden!important;
  }
  .timx313-freight-modal .live213-freight-form>.modal-actions,
  .timx314-balanced-modal .live213-freight-form>.modal-actions{
    grid-column:1 / -1!important;
    width:100%!important;
  }
  .timx313-freight-modal .timx400-stops-head{
    margin-bottom:8px!important;
  }
  .timx313-freight-modal .timx400-stop{
    grid-template-columns:30px 92px 104px minmax(220px,1fr) 140px 100px 150px 38px!important;
    gap:6px!important;
    padding:7px 0!important;
  }
  .timx313-freight-modal .timx400-stop>*{
    min-width:0!important;
  }
}

@media (max-width:1100px), (max-height:759px){
  .timx313-freight-modal .live213-freight-form>.timx400-stops-card,
  .timx314-balanced-modal .live213-freight-form>.timx400-stops-card{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    margin:10px 0 0!important;
    position:relative!important;
    inset:auto!important;
    overflow-x:auto!important;
  }
  .timx313-freight-modal .live213-freight-form>.modal-actions,
  .timx314-balanced-modal .live213-freight-form>.modal-actions{
    grid-column:1 / -1!important;
  }
}

/* ===== TIMX LIVE 4.0.5 – Stabil többszörös lerakók ===== */
#modal .live213-freight-form>.timx405-multi-unloads{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  position:relative!important;
  inset:auto!important;
  margin:12px 0 0!important;
  z-index:1!important;
}
#modal .timx405-unload-section{
  min-width:0!important;
  padding:14px!important;
  border:1px solid #2d5873!important;
  border-radius:14px!important;
  background:#0c2130!important;
  overflow:visible!important;
}
#modal .timx405-section-head h3{margin:0 0 4px!important;font-size:17px!important}
#modal .timx405-section-head p{margin:0 0 12px!important;color:#a8c0d0!important;font-size:13px!important;line-height:1.35!important}
#modal .timx405-extra-list{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
#modal .timx405-extra-row{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) 150px 115px 38px!important;
  gap:8px!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
  padding:10px!important;
  border:1px solid #29485d!important;
  border-radius:11px!important;
  background:#0a1a28!important;
}
#modal .timx405-extra-row label{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;margin:0!important}
#modal .timx405-extra-row label span{font-size:12px!important;color:#b8cad7!important;white-space:nowrap!important}
#modal .timx405-extra-row input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
#modal .timx405-remove{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;align-self:end!important}
#modal .timx405-add-check{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;margin:12px 0 0!important;padding:9px 12px!important;border:1px solid #39708f!important;border-radius:10px!important;background:#102c40!important;cursor:pointer!important;width:max-content!important;max-width:100%!important}
#modal .timx405-add-check input{width:22px!important;height:22px!important;margin:0!important;flex:0 0 auto!important}
#modal .timx405-add-check span{font-weight:800!important;color:#eef7ff!important}
#modal .live213-freight-form>.modal-actions{grid-column:1 / -1!important;position:relative!important;z-index:2!important}
#modal .timx405-freight-modal{overflow:auto!important;overscroll-behavior:contain!important}
@media(max-width:1200px){
  #modal .live213-freight-form>.timx405-multi-unloads{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  #modal .timx405-extra-row{grid-template-columns:1fr 1fr!important}
  #modal .timx405-extra-row .timx405-place{grid-column:1 / -1!important}
  #modal .timx405-remove{grid-column:2!important;justify-self:end!important}
}

/* ===== TIMX LIVE 4.0.6 – FUVARABLAK VÉGLEGES ELRENDEZÉSI HOTFIX ===== */
/* A régi általános STOP blokk a fuvarablakban többé nem jelenhet meg. */
#modal .timx400-stops-card{display:none!important}

#modal .modal.timx406-freight-modal{
  display:block!important;
  width:min(1460px,calc(100vw - 28px))!important;
  height:auto!important;
  max-height:calc(100vh - 28px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:16px 18px!important;
  scroll-behavior:smooth;
}
#modal .timx406-freight-modal .live213-freight-form{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:min-content!important;
  gap:8px 10px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  flex:none!important;
  overflow:visible!important;
  position:static!important;
  align-content:start!important;
}
#modal .timx406-freight-modal .live213-freight-form>*{
  min-width:0!important;
  position:relative!important;
  inset:auto!important;
}
#modal .timx406-freight-modal .timx405-multi-unloads{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:14px 0 0!important;
  padding:0!important;
  position:static!important;
  clear:both!important;
  z-index:auto!important;
}
#modal .timx406-freight-modal .timx405-unload-section{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  position:static!important;
  overflow:hidden!important;
}
#modal .timx406-freight-modal .timx405-extra-list,
#modal .timx406-freight-modal .timx405-extra-row{
  position:static!important;
  height:auto!important;
}
#modal .timx406-freight-modal>.modal-actions{
  display:flex!important;
  position:sticky!important;
  bottom:-16px!important;
  z-index:20!important;
  margin:14px -18px -16px!important;
  padding:12px 18px!important;
  background:#0f1d2f!important;
  border-top:1px solid #29485d!important;
}
@media(max-width:1100px){
  #modal .modal.timx406-freight-modal{width:calc(100vw - 12px)!important;max-height:calc(100vh - 12px)!important;padding:12px!important}
  #modal .timx406-freight-modal .live213-freight-form{grid-template-columns:1fr 1fr!important}
  #modal .timx406-freight-modal .live213-allocation-field,
  #modal .timx406-freight-modal .live213-freight-form>label.span-3{grid-column:1/-1!important}
  #modal .timx406-freight-modal .timx405-multi-unloads{grid-template-columns:1fr!important}
  #modal .timx406-freight-modal>.modal-actions{bottom:-12px!important;margin:14px -12px -12px!important;padding:10px 12px!important}
}
@media(max-width:680px){
  #modal .timx406-freight-modal .live213-freight-form{grid-template-columns:1fr!important}
  #modal .timx406-freight-modal .live213-freight-form>*{grid-column:1!important}
  #modal .timx406-freight-modal .timx405-extra-row{grid-template-columns:1fr!important}
  #modal .timx406-freight-modal .timx405-extra-row .timx405-place,
  #modal .timx406-freight-modal .timx405-remove{grid-column:1!important}
  #modal .timx406-freight-modal .timx405-remove{justify-self:end!important}
}

/* ===== TIMX LIVE 4.0.7 – operatív logikai javítás ===== */
.timx386-card.free .timx387-alerts em.yellow{background:#fff7d6;color:#7a4b00;border-color:#e1b94d}
.timx407-attention{margin-top:24px}

/* TIMX LIVE 4.1.0 */
.timx410-tech-warning{background:#f6c945!important;color:#2d2300!important;border-color:#ffe586!important;cursor:help;box-shadow:0 0 0 1px rgba(255,229,134,.25)}
.timx410-resource-grid .free-driver-chip{white-space:nowrap}

/* TIMX LIVE 4.2.0 – előhúzások a következő munkanapi nézetben */
.timx420-prepull-section{margin-top:14px}
.timx420-prepull-section .live217-section-title{background:#4a3612;border-color:#b7872b}
.timx420-prepull-section .live217-section-title span{background:#8a651f}
.timx420-prepull-card{position:relative;border-color:#8a651f!important}
.timx420-prepull-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.timx420-unassigned-mark{display:inline-flex;margin-top:10px;padding:5px 9px;border-radius:999px;background:#5b4216;color:#ffd87b;border:1px solid #a97922;font-size:11px;font-weight:900}
@media(max-width:760px){.timx420-prepull-form{grid-template-columns:1fr!important}}
