:root{font:15px/1.5 system-ui,sans-serif;color:#15252b;background:#eef2f0;--dark:#122b30;--lime:#c9f57a;--line:#dbe4df;--muted:#637775}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:var(--dark);color:white;height:68px;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:3px;text-decoration:none;color:white;font-size:23px;font-weight:850;letter-spacing:-1px}.brand>span:last-child{color:var(--lime)}.mark{background:var(--lime);color:var(--dark);border-radius:8px;margin-right:8px;width:36px;height:36px;display:grid;place-items:center;font-style:italic;font-size:28px}.mode{font-size:11px;color:#b8c9c7}#shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 68px)}aside{background:#193238;color:#c3d2cf;padding:24px 16px;display:flex;flex-direction:column}aside p,.eyebrow{letter-spacing:1.7px;font-size:10px;font-weight:800;color:#7eaaa0;margin:0 0 10px}#workspace{padding:10px;background:#29474a;border-radius:8px;margin-bottom:24px;font-size:13px}#workspace select{max-width:100%;margin-top:7px}nav{display:flex;flex-direction:column;gap:6px}nav button{background:transparent;color:#bed0cc;text-align:left;font-weight:600}nav button.active{background:#35514e;color:var(--lime)}.asidebottom{margin-top:auto;padding:24px 0 0;font-size:12px;display:grid;gap:10px}.asidebottom .sub{background:transparent;color:#c2d5ce;border-color:#536d66}main{padding:36px;max-width:1350px;width:100%;margin:0 auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:14px}h1{font-size:clamp(29px,4vw,39px);letter-spacing:-1.7px;line-height:1.13;margin:8px 0}h2{font-size:20px;letter-spacing:-.5px;margin:0 0 16px}p{margin:8px 0;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.metrics>div{background:white;border:1px solid var(--line);border-radius:12px;padding:16px 18px}.metrics span{display:block;color:var(--muted);font-size:12px}.metrics strong{font-size:34px;line-height:1.2;letter-spacing:-1.4px}.red{color:#aa3f2c}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.toolbar input{flex:1;min-width:100px}.item{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:16px 0}.item h3{margin:0;font-size:15px}.item p{font-size:12px;margin:4px 0;overflow-wrap:anywhere}.item h3,.item>div{min-width:0;overflow-wrap:anywhere}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tag{display:inline-block;border-radius:20px;background:#e9efec;color:#3d5b52;font-size:11px;padding:4px 9px;font-weight:750;margin:3px 4px 3px 0}.tag.red{background:#f8e5e1;color:#a73f2b}.tag.done{background:#e0f0d9;color:#426337}button,input,textarea,select{font:inherit}button{border:1px solid transparent;border-radius:8px;background:var(--lime);color:var(--dark);padding:10px 14px;font-size:13px;font-weight:750;cursor:pointer}button.sub{border-color:var(--line);background:white;color:#304945}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #428b7e;outline-offset:2px}input,textarea,select{min-width:0;border:1px solid #c9d5ce;background:#fff;border-radius:7px;padding:10px;color:#15252b}label{display:grid;gap:5px;font-size:13px;font-weight:700;margin-bottom:12px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}dialog{width:min(500px,calc(100% - 24px));border:1px solid var(--line);border-radius:14px;max-height:90vh;padding:24px}dialog::backdrop{background:#112b30a0}#message:not(:empty){padding:10px 12px;background:#dfecdf;margin:12px 0;border-radius:8px;color:#264b3d;font-size:13px}#message.error{background:#f9e1de;color:#912f20}.foot{font-size:11px}.auth{max-width:420px;background:#fff;border-radius:14px;padding:25px;margin:40px auto}.report{border:1px solid var(--line);padding:16px;border-radius:8px;margin:10px 0}.report p{white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:16px;color:var(--muted)}@media(max-width:740px){#shell{grid-template-columns:1fr}header{padding:0 15px;height:59px}aside{padding:10px 12px}aside>p{display:none}#workspace{margin:0 0 7px}nav{flex-direction:row;overflow:auto}nav button{white-space:nowrap;font-size:11px;padding:9px}.asidebottom{padding:8px 0 0;display:flex;justify-content:space-between;align-items:center}main{padding:19px 13px}.panel{padding:13px}.metrics{gap:6px;margin:16px 0}.metrics>div{padding:10px}.metrics strong{font-size:27px}.metrics span{font-size:10px}.item{align-items:start;flex-direction:column;gap:6px}.heading{align-items:start}.heading button{flex-shrink:0;font-size:11px;padding:10px}.brand{font-size:20px}.mode{font-size:10px}.auth{margin:20px 12px}.fields{grid-template-columns:1fr 1fr;gap:8px}}@media print{header,aside,.heading button,.metrics,#message,.toolbar,button,.foot{display:none!important}#shell{display:block}main{padding:0}.panel{border:none}.report{break-inside:avoid}body{background:white}}
#shell>aside,#shell>main,.heading>div{min-width:0}nav{max-width:100%}.heading h1{overflow-wrap:anywhere}@media(max-width:740px){#shell{grid-template-columns:minmax(0,1fr)}.toolbar>*{max-width:100%}}

.quick-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.fault-button{background:#fbe9e3;border-color:#de9785;color:#882e20}nav button{display:flex;align-items:center;gap:9px}nav button span:first-child{font-size:20px;line-height:1} @media(max-width:740px){#shell{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#193238;border-top:1px solid #405359;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));overflow:visible}nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:55px;font-size:12px;padding:6px 2px;white-space:normal;line-height:1.15;text-align:center}nav button span:first-child{font-size:23px}button{min-height:44px}input,select,textarea{font-size:16px;min-height:46px;width:100%}main{padding:16px 12px}.heading{display:block}.heading h1{font-size:29px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;margin-top:14px}.quick-actions button{font-size:14px;min-height:52px}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar input{grid-column:1/-1}.item .actions{width:100%}.item .actions button{flex:1}.item h3{font-size:16px}.item p{font-size:13px}dialog{padding:18px;max-height:90dvh;overflow:auto}dialog .actions button{flex:1}#workspace select{width:100%}.fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.asidebottom{flex-wrap:wrap}.metrics>div{padding:10px 8px}.metrics span{font-size:11px}.auth button{width:100%;margin-top:6px}} @media(max-width:360px){.quick-actions{grid-template-columns:1fr}.metrics strong{font-size:24px}.metrics span{font-size:10px}}
#qrBody{text-align:center}#qrBody canvas{max-width:100%;height:auto;image-rendering:pixelated}#qrBody p{overflow-wrap:anywhere}#machineCardBody .item{display:block}#machineCardBody .actions{margin:16px 0}#machineCardBody h2{overflow-wrap:anywhere}
#inviteResult{width:100%;margin:12px 0;overflow-wrap:anywhere}#photoList figure{margin:12px 0;display:grid;gap:8px}#photoList img{width:100%;max-height:430px;object-fit:contain;border-radius:8px;background:#eef2f0}#teamDialog .actions{width:100%}#teamDialog .actions select{max-width:100%}#teamDialog h3{overflow-wrap:anywhere}#teamDialog .item{align-items:start;flex-direction:column}.due-overdue{background:#f8e5e1;color:#a73f2b}.due-planned{background:#e7efdc;color:#385a34} @media(max-width:740px){#inspectionPlan{grid-column:1/-1}#teamOpen,#installApp{min-height:44px}.asidebottom{gap:6px}}
.alerts-bar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.comment{border-left:3px solid #a3c76f;background:#f1f5f0;padding:12px;margin:8px 0;border-radius:7px}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;color:#15252b}.comment strong{font-size:12px;overflow-wrap:anywhere}.comment small{color:#637775}#commentForm{margin:16px 0}.alerts-bar .fault-button{background:#fbe9e3;color:#882e20;border-color:#de9785}@media(max-width:740px){.alerts-bar button{flex:1}.toolbar select{width:100%}}
#billingContent .item{padding:18px 0}#billingContent .item h3{font-size:18px}.auth a{color:#26584e}#billingOpen{min-height:44px}
#taskCount{font-size:12px;color:#60786d}#moreTasks{margin:12px auto;display:block}#moreTasks[hidden]{display:none}.report h4{margin:12px 0 4px}.report .completed{color:#386447}#exportBackup{min-height:44px}
.access-banner{background:#e9f3df;color:#244d29;border:1px solid #a6c98b;border-radius:12px;padding:12px 16px;font-weight:600}.access-banner.expired{background:#fff0d8;border-color:#d7a75d;color:#754c13}.access-banner[hidden]{display:none}#supportList article,#adminTickets article{display:block;white-space:pre-wrap;overflow-wrap:anywhere}#adminTickets textarea{min-height:100px;width:100%}#supportList .item p{white-space:pre-wrap}
.kpi-dialog{width:min(1080px,94vw);max-width:94vw;max-height:92dvh;overflow:auto}.kpi-dialog .heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.kpi-tile{background:#f0f5f2;border:1px solid #d1e1d9;border-radius:12px;padding:14px;min-width:0}.kpi-tile span,.kpi-tile small{display:block;color:#536961;font-size:12px;overflow-wrap:anywhere}.kpi-tile strong{font-size:24px;display:block;margin:8px 0;color:#183f34;overflow-wrap:anywhere}.kpi-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.kpi-charts section{min-width:0;max-height:340px;overflow:auto;padding:12px;background:#f6f8f7;border-radius:12px}.kpi-bar-row{margin:10px 0;font-size:13px;overflow-wrap:anywhere}.kpi-track{background:#e0e8e4;height:10px;border-radius:6px}.kpi-bar{background:#42765b;height:100%;border-radius:6px}.kpi-dialog details{margin:15px 0;padding:12px;border:1px solid #ccdcd3;border-radius:10px}.kpi-dialog summary{cursor:pointer;font-weight:bold}.kpi-dialog label{min-width:0}.kpi-dialog .toolbar{flex-wrap:wrap}.kpi-dialog input,.kpi-dialog select{max-width:100%}.kpi-dialog h2{font-size:22px}.kpi-dialog .fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:600px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-charts{grid-template-columns:1fr}.kpi-dialog .fields{grid-template-columns:1fr}.kpi-tile strong{font-size:21px}}
.chat-dialog{width:min(760px,94vw);max-width:94vw;max-height:92dvh;overflow:auto}.chat-dialog .heading{display:flex;justify-content:space-between;gap:10px;align-items:start}.chat-dialog .toolbar{flex-wrap:wrap}.chat-dialog label{min-width:0}.chat-list{height:min(42dvh,420px);min-height:180px;overflow:auto;background:#eef4f1;border:1px solid #d1e0d8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}.chat-bubble{align-self:flex-start;background:white;max-width:88%;border-radius:12px;padding:10px 14px;overflow-wrap:anywhere;border:1px solid #d8e4dd}.chat-bubble.mine{align-self:flex-end;background:#dcefcf;border-color:#b9d8a4}.chat-bubble p{white-space:pre-wrap;margin:5px 0}.chat-bubble small{font-size:11px;color:#526b60}.chat-bubble strong{font-size:12px;color:#245747}.chat-note,#chatStatus{font-size:12px;color:#536961}.chat-dialog textarea{width:100%;resize:vertical}.chat-dialog h2{font-size:24px;margin-top:4px}
#demoRole{width:100%;margin-bottom:12px}#simpleBackBar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.simple-intro{margin-bottom:18px}.simple-intro h2{font-size:30px;line-height:1.15;margin:0}.simple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.simple-tile{display:flex;align-items:center;text-align:left;gap:14px;min-height:94px;border:1px solid #d2dfd6;border-radius:16px;padding:16px;background:#fff;color:#193238;width:100%;box-shadow:0 2px 6px #00000008}.simple-tile>span:first-child{display:grid;place-items:center;background:#e4efd9;border-radius:12px;flex:0 0 44px;height:44px;font-size:25px}.simple-tile strong{display:block;font-size:18px;line-height:1.2}.simple-tile small{display:block;color:#536b60;font-weight:500;margin-top:5px;font-size:12px}.simple-fault{background:#c9f57a;border-color:#b0dc69;grid-column:1/-1}.simple-fault>span:first-child{background:#163b36;color:#c9f57a}.simple-hint{font-size:12px;margin:16px 0}.simple-ui #shell{display:block}.simple-ui aside{padding:10px 16px;gap:6px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.simple-ui aside>p,.simple-ui aside nav{display:none}.simple-ui #workspace{margin:0;flex:1;min-width:140px;padding:6px 9px}.simple-ui #workspace button{display:none}.simple-ui .asidebottom{margin:0;padding:0;display:flex;flex-wrap:wrap;gap:5px;align-items:center}.simple-ui .asidebottom #role{display:none}.simple-ui #demoRole{width:auto;margin:0;font-size:12px}.simple-ui main{padding:20px;max-width:880px}.simple-ui .metrics,.simple-ui .alerts-bar,.simple-ui #mainHeading .quick-actions,.simple-ui #accessBanner:not(.expired){display:none!important}.simple-ui #csv,.simple-ui #kindFilter,.simple-ui #dueFilter,.simple-ui #inspectionPlan{display:none}.simple-ui #taskList .item .actions button{min-height:44px}.simple-ui #taskList .item{align-items:stretch}.simple-ui #taskList .item .primary{background:#c9f57a;font-size:15px}.simple-check{display:flex!important;align-items:center;gap:10px}.simple-check input{width:auto;min-width:20px;height:20px}.simple-ui .foot{font-size:11px}.simple-ui #newAsset{display:none!important}@media(max-width:560px){.simple-ui main{padding:16px}.simple-grid{grid-template-columns:1fr;gap:9px}.simple-tile{min-height:76px;padding:12px}.simple-tile strong{font-size:17px}.simple-tile small{font-size:12px}.simple-intro h2{font-size:26px}.simple-ui aside{padding:8px 12px}.simple-ui #taskList .item{flex-direction:column}.simple-ui header{height:58px}.simple-ui .panel{padding:12px}}
.worker-list {
  display: grid;
  gap: .35rem;
  max-height: 13rem;
  overflow-y: auto;
}
.worker-list label {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.worker-list input[type="checkbox"] {
  width: 1.25rem;
  min-height: 1.25rem;
}
#shiftsList {
  max-height: 18rem;
  overflow-y: auto;
}
#taskFilesList {
  display: grid;
  gap: .5rem;
}

@media (max-width: 740px) {
  #taskList .item { display: grid; grid-template-columns: minmax(0, 1fr); }
  #taskList .item .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    align-items: stretch;
    gap: 8px;
  }
  #taskList .item .actions button {
    min-height: 44px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }
}

.inspection-dialog { width:min(40rem,94vw); max-height:90dvh; overflow:auto; }
.inspection-dialog label {display:grid; gap:4px; margin:.6rem 0;}
.inspection-dialog label:has([type=checkbox]) {display:flex; align-items:center; gap:.5rem;}
.inspection-dialog input[type=checkbox] {width:auto;}
.inspection-dialog button,.inspection-home button {margin:4px;min-height:44px;overflow-wrap:normal;}
.inspection-block,.inspection-point,.inspection-row {padding:10px 0;border-bottom:1px solid #cbd7d3;}
.inspection-row {display:grid;gap:4px;justify-items:start;}
.inspection-block p {white-space:pre-wrap;overflow-wrap:anywhere;}
.inspection-error {color:#982d17;}
.inspection-dialog video {width:100%;max-height:34vh;object-fit:contain;}
.inspection-home {margin:0 0 14px;}

/* Panel roboczy */
@media screen {
  :root {--muted:#4c605d;--line:#c8d5ce;}
  #mainHeading #subtitle {display:none;}
  #mainHeading h1,.simple-intro h2 {font-size:clamp(21px,3vw,28px);letter-spacing:-.65px;}
  .simple-grid {gap:6px;}
  .simple-tile {min-height:48px;padding:7px 12px;gap:10px;border-radius:7px;box-shadow:none;}
  .simple-tile>span:first-child {flex-basis:28px;height:28px;border-radius:5px;font-size:17px;}
  .simple-tile strong {font-size:15px;}
  .simple-intro,.simple-hint {margin:8px 0;}
  .panel,.metrics>div {border-radius:8px;}
  .metrics {gap:6px;margin:10px 0;}
  .metrics>div {padding:6px 10px;}
  .metrics strong {font-size:22px;}
  nav button.active {color:#182f26;background:#d4f4a1;box-shadow:inset 0 -3px #6a9732;}
  summary {cursor:pointer;}
  .account-menu>summary,.task-filters>summary,.task-more>summary {padding:10px 8px;font-size:13px;font-weight:650;}
  .account-menu>summary {color:#fff;}
  .account-menu .asidebottom {padding-top:4px;}
  .task-filters {margin-bottom:6px;}
  .task-filters>summary,.task-more>summary {color:#214c40;}
  #tasks .toolbar {gap:6px;margin-bottom:6px;}
  #tasks #search {width:100%;}
  #taskList .item {padding:10px 0;gap:6px;}
  #taskList .item .actions {display:flex;align-items:start;flex-wrap:wrap;gap:6px;}
  #taskList .item .actions button {flex:none;}
  .task-more[open] {flex-basis:100%;}
  .task-options {display:flex;flex-wrap:wrap;gap:6px;padding:4px 0;}
  button.primary,#taskList .item .actions .primary {background:#225441;color:#fff;}
  button.sub {border-color:#b5c6be;}
  dialog,.inspection-dialog {border-radius:9px;padding:15px;max-height:min(80dvh,50rem);color:#172b26;}
  dialog::backdrop {background:#122b307d;}
  dialog h2,.chat-dialog h2,.kpi-dialog h2 {margin:0 0 10px;font-size:19px;line-height:1.25;}
  dialog h3 {margin:8px 0 4px;font-size:15px;}
  dialog label,.inspection-dialog label {margin:6px 0;gap:3px;}
  dialog button,.inspection-dialog button {padding:7px 10px;margin:2px 0;}
  .inspection-block,.inspection-point,.inspection-row {padding:6px 0;}
  .inspection-row {gap:1px;}
  .inspection-row>button {text-align:left;color:#154c39;}
  .inspection-home.panel {border:0;border-bottom:1px solid var(--line);padding:0 0 8px;margin-bottom:10px;}
  .inspection-block h3 {font-size:15px;margin:4px 0;}
  .inspection-block p {margin:4px 0;}
  .inspection-error:empty {display:none;}
}
@media screen and (max-width:740px) {
  header,.simple-ui header {height:48px;}
  #shell>aside,.simple-ui #shell>aside {display:flex;flex-direction:row;align-items:start;flex-wrap:wrap;gap:6px;padding:6px 12px;}
  #workspace,.simple-ui #workspace {flex:1 1 145px;min-width:0;margin:0;padding:0;background:transparent;}
  #workspace:has(select)>strong {display:none;}
  #workspace select {margin:0;}
  #workspace:not(:has(select)) {align-self:center;}
  .account-menu[open] {flex-basis:100%;}
  .account-menu .asidebottom {display:flex;gap:6px;justify-content:flex-start;}
  main,.simple-ui main {padding:12px;}
  .simple-grid {grid-template-columns:1fr;}
  .quick-actions {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
  .quick-actions button,.simple-ui #taskList .item .primary {font-size:13px;}
  .quick-actions button {min-height:44px;}
  nav button {min-height:46px;gap:2px;}
  nav button span:first-child {font-size:17px;}
  .simple-hint {font-size:12px;}
  .item p {color:#485b56;}
  dialog,.inspection-dialog,.chat-dialog,.kpi-dialog {max-height:78dvh;width:calc(100% - 32px);padding:13px;}
  dialog .fields {gap:6px;}
  dialog input:not([type=checkbox]),dialog select {padding:6px 8px;min-height:42px;}
  dialog textarea {min-height:54px;}
  dialog .actions {gap:6px;}
  .chat-list {min-height:92px;height:auto;max-height:28dvh;}
  .task-more>summary,.account-menu>summary,.task-filters>summary {min-height:44px;}
}
.inspection-bar {display:flex;justify-content:space-between;align-items:center;gap:8px;position:sticky;top:-1px;z-index:1;padding:4px 0;margin-bottom:8px;background:white;border-bottom:1px solid var(--line);}
.inspection-bar strong {font-size:13px;color:#37544a;}
aside>#kpiOpen {align-self:start;background:transparent;border-color:#79948a;color:#fff;}

.home-menu-links{display:none}.simple-ui .home-menu-links{display:flex;flex-wrap:wrap;gap:4px;width:100%}.simple-ui .home-menu-links .simple-tile{width:auto;min-height:36px;padding:4px 7px;background:#29474a;border-color:#79948a;color:#fff;box-shadow:none}.simple-ui .home-menu-links .simple-tile>span:first-child{display:none}.simple-ui .home-menu-links .simple-tile strong{font-size:12px}.simple-ui #simpleHome{display:flex;flex-direction:column;gap:7px;min-width:0}.simple-ui #simpleHome .inspection-home{display:none!important}.simple-ui #simpleHome .simple-fault{min-height:40px;height:40px;padding:4px 8px;display:flex;justify-content:center;border-radius:5px}.home-work{border:2px solid #315d4d;background:white;border-radius:5px;padding:4px;min-width:0}.home-work h2,#homeChat h2{font-size:13px;line-height:20px;margin:0 0 3px;padding:0 3px;letter-spacing:0;display:flex;justify-content:space-between}#homeRows{height:116px;overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#55796a #e7eeea;overscroll-behavior:contain;border-top:1px solid #315d4d}.home-row{display:flex;align-items:center;gap:4px;border:0;border-bottom:1px solid #dce5df;border-radius:0;background:#fff;width:100%;height:29px;min-height:29px;padding:0 3px;color:#15252b;text-align:left;font-size:12px;font-weight:550;line-height:28px;white-space:nowrap}.home-row:nth-child(odd){background:#eef3ef}.home-row:focus-visible{outline-offset:-2px}.home-num{flex:0 0 23px;text-align:right;font-variant-numeric:tabular-nums}.home-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.home-empty{font-size:12px;margin:5px}#homeChat{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #b9c9c2;border-radius:5px;padding:5px;min-height:220px;flex:1}#homeUnread{color:#a42e21;font-size:12px}#homeChatNotice{background:#fbe9e3;color:#882e20;margin:0 0 3px;padding:2px 5px;font-size:12px}#homeChatMount,#homeChat #chatContent{display:flex;flex-direction:column;min-height:0;flex:1}#homeChat #chatSource,#homeChat .chat-note,#homeChat #chatStatus{display:none}#homeChat .toolbar{display:flex;align-items:center;gap:4px;margin:0 0 4px}#homeChat .toolbar label{display:block;flex:1;margin:0;font-size:11px}#homeChat select,#homeChat .toolbar button{min-height:30px;height:30px;font-size:12px;padding:3px 5px}#homeChat .chat-list{height:clamp(130px,calc(100dvh - 360px),650px);min-height:130px;max-height:none;flex:1;border-radius:4px;padding:5px;gap:4px}#homeChat .chat-bubble{padding:3px 6px;border-radius:5px;font-size:12px}#homeChat .chat-bubble p{margin:1px 0;color:#15252b}#homeChat .chat-bubble strong,#homeChat .chat-bubble small{font-size:10px}#homeChat #chatForm{display:flex;gap:4px;align-items:flex-end;margin:4px 0 0}#homeChat #chatForm label{display:block;font-size:0;flex:1;margin:0}#homeChat textarea{display:block;width:100%;font-size:16px;min-height:36px;height:36px;max-height:90px;padding:6px;resize:vertical}#homeChat #chatForm button{height:36px;min-height:36px;font-size:12px;padding:4px 8px}.simple-ui main:has(#simpleHome:not([hidden])) .foot{display:none}.simple-ui main:has(#simpleHome:not([hidden])){padding:8px;max-width:880px}@media(max-width:740px){.simple-ui #shell{padding-bottom:0}.simple-ui #workspace select{min-height:34px;height:34px;padding:4px 7px;font-size:14px}.simple-ui header{height:44px}.simple-ui header .mode{display:none}.simple-ui .account-menu>summary{min-height:34px;padding:4px 6px}}

#homeRows{height:117px}

/* High contrast chat, both the embedded panel and dialog. */
#chatContent .chat-list{background:#deecff;border-color:#90b7e7}
#chatContent .chat-bubble{background:#fff;color:#142c48;border:1px solid #aec9eb}
#chatContent .chat-bubble p{color:#142c48}
#chatContent .chat-bubble strong{color:#184a83}
#chatContent .chat-bubble small{color:#49617a}
#chatContent .chat-bubble.mine{background:#1959a8;border-color:#1959a8;color:#fff}
#chatContent .chat-bubble.mine p,#chatContent .chat-bubble.mine strong{color:#fff}
#chatContent .chat-bubble.mine small{color:#e0eeff}

/* Compact technician dashboard: four rows per scroll list. */
#accessBanner[hidden]{display:none!important}
.simple-ui #simpleHome{gap:4px}
.simple-ui main{padding:5px 7px}
.simple-ui #shell>aside{padding:4px 7px;gap:4px}
.simple-ui #workspace select{min-height:34px;height:34px;padding:3px 6px;font-size:13px}
.simple-ui .account-menu>summary{min-height:32px;padding:4px 6px;font-size:12px}
.simple-ui .home-quick{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.simple-ui .home-quick button{width:100%;height:34px;min-height:34px;padding:3px 5px;font-size:12px;border-radius:4px}
.simple-ui .home-work{padding:2px}
.simple-ui .home-work h2,#homeChat h2{font-size:12px;line-height:17px;margin:0 0 1px}

.simple-ui #homeRows{height:117px}
.simple-ui .home-row{font-size:12px;line-height:28px;min-height:29px;height:29px}
#homeChat{padding:3px}
#chatContent .chat-list,#dmList{gap:2px;padding:3px}
#chatContent .chat-bubble,#dmList .chat-bubble{padding:2px 5px!important;border-radius:4px!important;max-width:88%;font-size:12px;line-height:1.2;margin:0;min-height:0}
#chatContent .chat-bubble p,#dmList .chat-bubble p{margin:1px 0!important;font-size:12px;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#chatContent .chat-bubble strong,#chatContent .chat-bubble small,#dmList .chat-bubble strong,#dmList .chat-bubble small{font-size:10px;line-height:1.1}
#chatContent .chat-bubble small,#dmList .chat-bubble small{display:block;text-align:right}
#privateDialog{width:min(94vw,580px);padding:10px}
#privateDialog .dm-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
#privateDialog h2{font-size:16px;margin:0}
#privateDialog label{font-size:12px;margin:5px 0}
#privateDialog select{height:35px;min-height:35px;font-size:14px}
#dmList{height:clamp(150px,45dvh,500px);background:#deecff;border:1px solid #90b7e7;overflow:auto;display:flex;flex-direction:column}
#dmList .chat-bubble{background:white;color:#142c48;border:1px solid #aec9eb;align-self:flex-start}
#dmList .chat-bubble.mine{background:#1959a8;border-color:#1959a8;color:white;align-self:flex-end}
#dmList .chat-bubble.mine p,#dmList .chat-bubble.mine strong,#dmList .chat-bubble.mine small{color:white}
#dmForm{display:flex;gap:4px;align-items:end;margin-top:4px}
#dmForm[hidden]{display:none!important}
#dmBody{min-height:36px;height:36px;font-size:16px;flex:1;min-width:0;padding:5px}
#dmStatus{font-size:12px;margin:3px 0}
#expiredDialog{width:min(90vw,420px)}
@media(max-width:740px){body.simple-ui>header{padding:4px 8px;min-height:40px;gap:5px}body.simple-ui>header .brand{font-size:16px}body.simple-ui>header .mark{width:30px;height:30px;font-size:19px}.simple-ui #homeChat .chat-list{height:clamp(150px,calc(100dvh - 360px),600px)}}

body.simple-ui>header{gap:8px}
body.simple-ui>header #logout{margin:0;min-height:27px;padding:3px 7px;font-size:12px;width:auto;white-space:nowrap}
body.simple-ui aside{gap:4px;padding:5px 8px}
body.simple-ui #workspace{flex:0 1 auto;width:auto;min-width:0;max-width:100%;margin:0}
body.simple-ui #workspace select{width:auto;max-width:100%;min-height:28px;height:28px;padding:2px 22px 2px 7px;font-size:13px}
body.simple-ui .account-menu{flex:1 0 100%;width:100%}
body.simple-ui .account-menu>summary{display:none}
body.simple-ui .account-menu .asidebottom{display:flex;gap:4px;padding:0;margin:0}
body.simple-ui .home-menu-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
body.simple-ui .home-menu-links .simple-tile{width:100%;min-width:0;min-height:35px;padding:3px 2px;justify-content:center;text-align:center;line-height:1.08}
body.simple-ui .home-menu-links .simple-tile strong{font-size:10px;font-weight:700;overflow-wrap:anywhere}
body.simple-ui .asidebottom #shiftsOpen{display:none}
body.simple-ui .home-work,body.simple-ui .home-work #homeRows{background:#dce8df}
body.simple-ui .home-work #homeRows>*{background:#f0f5f1}
body.simple-ui #homeChat h2{align-items:center;justify-content:space-between;gap:6px}
body.simple-ui #privateChatTab{width:auto;min-height:27px;padding:3px 8px;font-size:12px;white-space:nowrap;background:#dceaff;color:#164a82;border:1px solid #87a9cf}
body:not(.simple-ui) #privateChatTab,body:not(.simple-ui) #simpleAll{display:none}

/* Dense, high-contrast technician screens only. */
body.simple-ui #workspace select{width:auto!important;max-width:100%;min-width:120px;padding-right:28px}
body.simple-ui main{padding:6px 8px}
body.simple-ui #mainHeading{margin:3px 0 6px;padding:0;gap:4px}
body.simple-ui #mainHeading h1,body.simple-ui #heading{font-size:19px;line-height:1.18;margin:0 0 5px;letter-spacing:-.3px}
body.simple-ui #simpleBackBar{margin:0 0 5px;gap:4px}
body.simple-ui #simpleBack{font-size:12px;min-height:30px;padding:3px 8px}
body.simple-ui main .panel{padding:6px;border-radius:6px;margin:0 0 5px}
body.simple-ui main .panel h2,body.simple-ui dialog h2{font-size:15px;line-height:1.22;margin:4px 0}
body.simple-ui main .panel h3,body.simple-ui dialog h3{font-size:14px;line-height:1.25;margin:2px 0}
body.simple-ui main .panel p,body.simple-ui dialog p{font-size:12px;line-height:1.35;margin:3px 0}
body.simple-ui main .panel .toolbar,body.simple-ui dialog .toolbar{gap:4px;margin:0 0 4px}
body.simple-ui main .panel .item{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:6px 8px;margin:0 0 4px;border:1px solid #b4c8c0;border-radius:5px;background:#fff;box-shadow:none}
body.simple-ui main .panel .item>div{min-width:0;width:auto}
body.simple-ui main .panel .actions,body.simple-ui dialog .actions{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0}
body.simple-ui main .panel button,body.simple-ui dialog button{min-height:32px;padding:4px 8px;font-size:12px;line-height:1.2;border-radius:5px;width:auto;max-width:100%;white-space:normal}
body.simple-ui main .panel input:not([type=checkbox]):not([type=radio]),body.simple-ui main .panel select,body.simple-ui dialog input:not([type=checkbox]):not([type=radio]),body.simple-ui dialog select{min-height:34px;padding:4px 7px;font-size:14px;border-radius:5px;margin:0;max-width:100%}
body.simple-ui main .panel textarea,body.simple-ui dialog textarea{min-height:58px;padding:5px 7px;font-size:14px;border-radius:5px}
body.simple-ui main .panel form,body.simple-ui dialog form,body.simple-ui main .panel .fields,body.simple-ui dialog .fields{gap:5px;margin:3px 0}
body.simple-ui main .panel label,body.simple-ui dialog label{font-size:12px;line-height:1.25;gap:3px;margin:2px 0}
body.simple-ui main .panel summary,body.simple-ui dialog summary{min-height:30px;padding:4px 5px;font-size:12px;line-height:1.3}
body.simple-ui main .panel .task-options{gap:4px;padding:2px 0}
body.simple-ui main .panel .tag,body.simple-ui main .panel .pill{font-size:11px;padding:2px 5px;margin:0}
body.simple-ui #tasks.panel{background:transparent;border:0;padding:0}
body.simple-ui #tasks>.toolbar{background:#e2eaf0;border:1px solid #9cabb7;border-bottom:0;padding:5px;margin:0;border-radius:6px 6px 0 0}
body.simple-ui #tasks>.toolbar::before{content:'Wyszukiwanie zadań i awarii';display:block;width:100%;font-size:11px;font-weight:700;color:#314d60}
body.simple-ui #tasks>.toolbar #search{width:100%;flex:1 1 100%;background:white}
body.simple-ui #tasks>.task-filters{background:#e2eaf0;border:1px solid #9cabb7;border-top:0;padding:0 5px 4px;margin:0 0 6px;border-radius:0 0 6px 6px}
body.simple-ui #tasks #taskCount{color:#203d32;font-weight:700;font-size:12px;margin:5px 0 4px;padding:4px 6px;background:#dce8df;border-radius:4px}
body.simple-ui #taskList .item{border-left:4px solid #28735d}
body.simple-ui #taskList .item[data-kind=fault]{background:#fff7ee;border:1px solid #d5ad8b;border-left:4px solid #b84c27}
body.simple-ui #taskList .item[data-kind=fault] h3{color:#81351f}
body.simple-ui #taskList .item h3::before{display:block;font-size:10px;font-weight:800;letter-spacing:.04em;margin-bottom:2px;content:'ZADANIE';color:#285c47}
body.simple-ui #taskList .item[data-kind=fault] h3::before{content:'AWARIA';color:#923d25}
body.simple-ui #tasks .inspection-block{margin:0 0 4px;padding:5px 7px;border:1px solid #9aafc7;border-left:4px solid #456f9c;border-radius:5px;background:#eef4fc}
body.simple-ui #tasks .inspection-block h3{color:#214d78;font-size:13px;margin:0 0 3px}
body.simple-ui #tasks .inspection-row{padding:3px 0;gap:2px;border-color:#b9cbe1;font-size:12px}
body.simple-ui #tasks .inspection-row button{min-height:30px;text-align:left;padding:3px 6px;background:#fff;border-color:#a6bad0}
body.simple-ui #tasks .inspection-row small{font-size:11px;line-height:1.25}
body.simple-ui #assets>.toolbar,body.simple-ui #handover form{padding:5px;background:#e2eaf0;border:1px solid #9cabb7;border-radius:5px;margin-bottom:5px}
body.simple-ui dialog{padding:9px;border-radius:8px;width:min(96vw,700px);max-height:92dvh;overflow:auto}
body.simple-ui dialog .inspection-block,body.simple-ui dialog .inspection-point,body.simple-ui dialog .inspection-row{padding:4px;margin:2px 0}
body.simple-ui dialog .inspection-point{border:1px solid #b4c8c0;border-radius:5px}
body.simple-ui dialog .dm-heading{gap:5px;margin-bottom:4px}
body.simple-ui dialog .chat-list{gap:3px}
body.simple-ui main footer,body.simple-ui footer{font-size:11px;margin:4px 0}
@media(min-width:700px){body.simple-ui main .panel .item{flex-direction:row;align-items:center}body.simple-ui main .panel .item .actions{justify-content:flex-end}}

body.simple-ui #tasks>.inspection-home{display:none!important}
body.simple-ui #compactWorkBox{border:1px solid #78958b;border-radius:6px;overflow:hidden;background:#fff;margin:0 0 7px}
body.simple-ui #compactWorkBox h2{display:flex;align-items:center;gap:5px;background:#103e38;color:white;padding:6px 8px;margin:0;font-size:14px;line-height:18px}
body.simple-ui #compactWorkRows{height:128px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;overscroll-behavior:contain}
body.simple-ui #compactWorkRows::-webkit-scrollbar{width:5px}
body.simple-ui #compactWorkRows::-webkit-scrollbar-thumb{background:#315c52;border-radius:4px}
body.simple-ui #compactWorkRows .compact-work-row{display:grid;grid-template-columns:21px 55px minmax(0,1fr) 49px 58px;align-items:center;gap:3px;width:100%;max-width:none;min-height:32px;height:32px;padding:0 4px;margin:0;border:0;border-bottom:1px solid #b8c9c2;border-radius:0;background:#fff;color:#142f2a;text-align:left;font-size:11px;line-height:1.1;white-space:nowrap;box-shadow:none}
body.simple-ui #compactWorkRows .compact-work-row:nth-child(even){background:#f1f5f4}
body.simple-ui #compactWorkRows .compact-work-row.chosen{background:#e1f4c8;box-shadow:inset 3px 0 #387721}
body.simple-ui #compactWorkRows .compact-num{font-weight:800;text-align:center}
body.simple-ui #compactWorkRows .compact-type{font-weight:750;border-radius:4px;padding:3px 2px;text-align:center;background:#d3ece0;color:#145440;font-size:10px}
body.simple-ui #compactWorkRows [data-kind=inspection] .compact-type{background:#d4f1a0;color:#285500}
body.simple-ui #compactWorkRows [data-kind=fault] .compact-type{background:#ffdcd8;color:#922b22}
body.simple-ui #compactWorkRows .compact-name,body.simple-ui #compactWorkRows .compact-status{min-width:0;overflow:hidden;text-overflow:ellipsis}
body.simple-ui #compactWorkRows .compact-name{font-weight:650}
body.simple-ui #compactWorkRows .compact-date{font-variant-numeric:tabular-nums;color:#354e48}
body.simple-ui #compactWorkRows .compact-status{font-weight:700;color:#16513e}
body.simple-ui #compactWorkRows [data-kind=fault] .compact-status{color:#8d3026}
body.simple-ui #compactWorkRows .compact-empty{padding:6px;color:#415c54}
body.simple-ui #tasks #taskCount{display:none}
body.simple-ui #taskList>.item[hidden],#compactWorkBox[hidden],#compactInspectionDetail[hidden]{display:none!important}
body.simple-ui #compactInspectionDetail{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px;border:1px solid #93b0a4;border-left:4px solid #75a934;border-radius:6px;background:#f7fcf2}
body.simple-ui #compactInspectionDetail .compact-detail-info{min-width:0;overflow-wrap:anywhere;font-size:13px}
body.simple-ui #compactInspectionDetail button{flex-shrink:0}
body.simple-ui #tasks>.toolbar::before{display:none}
body.simple-ui #tasks>.task-filters{background:#164c40;color:white;border-color:#164c40;border-radius:0 0 6px 6px}
body.simple-ui #tasks>.task-filters>summary{color:white}
body.simple-ui #tasks>.task-filters[open]>.toolbar{background:#e2eaf0;padding:4px;border-radius:4px;color:#203d32}
body.simple-ui #taskList>.item{margin:0}
@media(min-width:550px){body.simple-ui #compactWorkRows .compact-work-row{grid-template-columns:28px 78px minmax(0,1fr) 80px 110px;font-size:13px;gap:5px}body.simple-ui #compactWorkRows .compact-type{font-size:12px}}

body.simple-ui header .brand{cursor:pointer}
#machineListHeading{display:none}
body.simple-ui #assets.panel{padding:0;overflow:hidden;background:#fff;border:1px solid #8ba79e;border-radius:7px}
body.simple-ui #machineListHeading{display:flex;gap:5px;background:#103e38;color:white;margin:0;padding:6px 8px;font-size:14px;line-height:18px}
body.simple-ui #assets>.toolbar{margin:0;padding:5px;background:#e2eaf0;border:0;border-bottom:1px solid #a7bcb4;border-radius:0}
body.simple-ui #assetList{height:144px;overflow:auto;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;scrollbar-gutter:stable;overscroll-behavior:contain}
body.simple-ui #assetList>.machine-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;height:36px;min-height:36px;margin:0;padding:0 4px;border:0;border-bottom:1px solid #b4c8c0;border-radius:0;box-shadow:none;background:#fff}
body.simple-ui #assetList>.machine-row:nth-child(even){background:#edf5f1}
body.simple-ui #assetList>.machine-row>div:first-child{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(0,.6fr);align-items:center;gap:4px}
body.simple-ui #assetList .machine-num{font-weight:800;font-size:12px}
body.simple-ui #assetList .machine-row h3,body.simple-ui #assetList .machine-row p{font-size:11px;line-height:1.2;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.simple-ui #assetList .machine-row p{color:#3e5c51}
body.simple-ui #assetList .machine-row .actions{display:flex;flex-wrap:nowrap;gap:3px;margin:0;width:auto}
body.simple-ui #assetList .machine-row .actions button{height:28px;min-height:28px;width:auto;flex:0 0 auto;padding:2px 6px;font-size:11px;line-height:1.1;white-space:nowrap;border:0;background:#c5f477;color:#163629}
body.simple-ui #assetList .machine-row .actions button:nth-child(2){background:#124b40;color:#fff}
@media(min-width:600px){body.simple-ui #assetList .machine-row h3,body.simple-ui #assetList .machine-row p,body.simple-ui #assetList .machine-row .actions button{font-size:13px}}

body.simple-ui .home-quick{grid-template-columns:1fr}
body.simple-ui #privateChatTab.fault-button{background:#c5f477;color:#14362a;border-color:#6f9e38}

body.simple-ui .home-menu-links{grid-template-columns:repeat(4,minmax(0,1fr))}
#simpleHandover[hidden],#simpleHistory[hidden],nav button[hidden],#handoverForm[hidden]{display:none!important}
#reportWorkers{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:4px;max-height:160px;overflow:auto;border:1px solid #9cb2aa;border-radius:5px;padding:5px;background:#f4f8f6}
#reportWorkers label.report-worker{display:flex;flex-direction:row;align-items:center;gap:5px;margin:0;padding:3px 5px;background:white;border-radius:4px;font-size:13px}
#reportWorkers input{width:16px;height:16px;min-height:0;margin:0;flex-shrink:0}
#reportPresentCount{font-size:13px;margin:4px 0}
#reportList .report-entry{border:1px solid #9bb1a9;border-radius:6px;margin:5px 0;background:#f7faf8}
#reportList .report-entry>summary{padding:8px;font-size:13px;font-weight:700;color:#173e34;cursor:pointer}
#reportList .report-entry .report{margin:0;padding:8px;background:white;border-radius:0 0 6px 6px}

body:not(.simple-ui) .account-menu{flex-basis:100%;width:100%}
body:not(.simple-ui) .account-menu>summary,body:not(.simple-ui) .account-menu #role{display:none!important}
body:not(.simple-ui) .account-menu .asidebottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px 0;margin:0}
body:not(.simple-ui) .account-menu .asidebottom>.sub{width:100%;min-width:0;min-height:30px;padding:3px;font-size:11px;line-height:1.1;border-radius:4px;color:#edf6f3;white-space:normal}
body:not(.simple-ui) .account-menu .asidebottom>.home-menu-links{display:none}
body:not(.simple-ui) #mainHeading{margin:0 0 5px;gap:4px}
body:not(.simple-ui) #mainHeading h1{font-size:20px;margin:0}
body:not(.simple-ui) .quick-actions{display:flex;gap:4px;margin:4px 0}
body:not(.simple-ui) .quick-actions button{flex:1;min-height:32px;height:32px;font-size:12px;padding:3px 6px;border-radius:5px}
body:not(.simple-ui) .alerts-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:5px 0}
body:not(.simple-ui) .alerts-bar button{width:100%;min-height:36px;padding:3px;font-size:11px;line-height:1.15;border-radius:5px}
body:not(.simple-ui) .alerts-bar #managerDM{grid-column:auto;width:100%}
body:not(.simple-ui) .metrics{gap:4px;margin:5px 0}
body:not(.simple-ui) .metrics>div{padding:4px 6px;border-radius:5px;background:#e0ece7;border-color:#91afa1}
body:not(.simple-ui) .metrics span{font-size:10px;color:#183e34}
body:not(.simple-ui) .metrics strong{font-size:18px;line-height:1.1}
body:not(.simple-ui) #message:not(:empty){padding:4px 7px;margin:4px 0;font-size:11px}
body:not(.simple-ui) #tasks,body:not(.simple-ui) #assets{padding:6px;border-color:#91aaa0}
body:not(.simple-ui) #tasks>.inspection-home{display:none!important}
body:not(.simple-ui) #compactWorkBox{border:1px solid #456f62;border-radius:5px;overflow:hidden;margin:0 0 5px;background:white}
body:not(.simple-ui) #compactWorkBox h2{display:flex;gap:4px;align-items:center;background:#103e38;color:white;padding:5px 7px;margin:0;font-size:13px;line-height:18px}
body:not(.simple-ui) #compactWorkRows{height:192px;overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;overscroll-behavior:contain}
body:not(.simple-ui) #compactWorkRows .manager-work-row{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:2px;width:100%;height:48px;min-height:48px;padding:3px 6px;margin:0;border:0;border-bottom:1px solid #afc2b9;border-left:4px solid #38865e;border-radius:0;background:#f6fbf8;color:#122d25;text-align:left;font-size:11px;line-height:15px}
body:not(.simple-ui) #compactWorkRows .manager-work-row[data-kind=fault]{background:#fff0e8;border-left-color:#b54535}
body:not(.simple-ui) #compactWorkRows .manager-work-row[data-kind=inspection]{background:#eaf3ff;border-left-color:#286ca4}
body:not(.simple-ui) #compactWorkRows .manager-work-row.chosen{box-shadow:inset 0 0 0 2px #236e49;background:#e3f2cc}
.manager-work-first,.manager-work-second{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
.manager-num{font-weight:800;min-width:19px}
.manager-task-name{font-weight:750;font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.manager-chevron{font-size:16px}
.manager-kind{font-weight:700}
.manager-state{min-width:0;overflow:hidden;text-overflow:ellipsis}
.manager-date{margin-left:auto;flex-shrink:0;font-variant-numeric:tabular-nums;font-weight:650}
.manager-date.late{color:#9a2922}
body:not(.simple-ui) #taskList>.item[hidden]{display:none!important}
body:not(.simple-ui) #tasks>.toolbar,body:not(.simple-ui) #assets>.toolbar{background:#e2eaf0;border:1px solid #a4b8bc;border-radius:5px;padding:4px;margin:4px 0;gap:4px}
body:not(.simple-ui) #tasks>.toolbar input,body:not(.simple-ui) #assets>.toolbar input{min-height:32px;height:32px;font-size:13px;padding:3px 6px}
body:not(.simple-ui) .task-filters>summary{padding:5px 7px;background:#174e41;color:white;border-radius:4px;font-size:12px}
body:not(.simple-ui) #taskCount{font-size:11px;margin:4px 0}
body:not(.simple-ui) #machineListHeading{display:flex;gap:5px;background:#103e38;color:white;margin:0;padding:5px 7px;font-size:14px;border-radius:5px}
body:not(.simple-ui) #assets #newAsset{min-height:32px;height:32px;padding:3px 6px;font-size:12px}
body:not(.simple-ui) #assetList{height:144px;overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc}
body:not(.simple-ui) #assetList>.machine-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;height:36px;min-height:36px;margin:0;padding:0 3px;border:0;border-bottom:1px solid #adbbb6;background:#fff}
body:not(.simple-ui) #assetList>.machine-row:nth-child(even){background:#e8f1ed}
body:not(.simple-ui) #assetList>.machine-row>div:first-child{display:grid;grid-template-columns:17px minmax(0,1fr);grid-template-rows:15px 12px;gap:0 2px;align-items:center}
body:not(.simple-ui) #assetList .machine-num{grid-row:span 2;font-size:11px;font-weight:800}
body:not(.simple-ui) #assetList .machine-row h3,body:not(.simple-ui) #assetList .machine-row p{font-size:10px;line-height:12px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body:not(.simple-ui) #assetList .machine-row p{color:#355c4f}
body:not(.simple-ui) #assetList .machine-row .actions{display:flex;flex-wrap:nowrap;gap:2px;margin:0;width:auto}
body:not(.simple-ui) #assetList .machine-row .actions button{height:26px;min-height:26px;width:auto;flex:0 0 auto;padding:2px 4px;font-size:10px;line-height:1;border:1px solid #91ac9e;border-radius:4px;background:#e3f2c9;color:#163629}
body:not(.simple-ui) #assetList .machine-row .actions button:nth-child(2){background:#124b40;color:white}
@media(max-width:740px){body:not(.simple-ui) #shell aside{padding:5px 8px;gap:4px}body:not(.simple-ui) #workspace select{height:34px;min-height:34px;font-size:13px}body:not(.simple-ui) #kpiOpen{min-height:34px;height:34px;padding:3px 8px;font-size:12px}body:not(.simple-ui) main{padding:7px}}

#chatChannelField[hidden]{display:none!important}
#chatContent>.toolbar{display:flex;gap:5px;justify-content:flex-end}
#chatContent>.toolbar button{min-height:30px;padding:4px 8px;font-size:12px}

#workspace{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%}#workspace select{min-width:0!important;max-width:100%!important;padding-right:28px!important} .chat-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:5px 0 8px}.chat-switch button{min-height:32px;padding:4px 8px;font-size:13px;border-radius:5px}.chat-switch button[aria-pressed=true]{background:#174e41;color:white;border-color:#174e41}.chat-switch button.sub{background:#e1eee8;color:#193e34}

#workspace:has(.workspace-name){display:inline-flex!important;flex:0 1 auto!important;width:fit-content!important;min-width:0!important;max-width:100%!important;padding:0!important;background:transparent!important;margin:0!important}.workspace-name{display:block;box-sizing:border-box;width:fit-content;max-width:100%;padding:5px 11px;min-height:28px;border:1px solid #9bb3a9;border-radius:5px;background:#fff;color:#122d25;font-size:13px;font-weight:650;line-height:18px;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;overflow:visible}

#handover.panel{padding:6px;border:1px solid #91aaa0;border-radius:6px;background:#fff}
#handover>h2{display:flex;align-items:center;gap:5px;margin:0;padding:6px 8px;font-size:14px;line-height:18px;background:#103e38;color:white;border-radius:5px 5px 0 0}
#handover #openList{height:144px;overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;overscroll-behavior:contain;border:1px solid #91aaa0;border-top:0;border-radius:0 0 5px 5px;margin:0 0 6px;background:#f1f6f3;box-sizing:content-box}
#handover #openList>.handover-row{box-sizing:border-box;height:36px;min-height:36px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-template-rows:16px 13px;align-content:center;align-items:center;gap:0 5px;padding:2px 5px;margin:0;border:0;border-bottom:1px solid #afc2b9;border-left:4px solid #38865e;border-radius:0;background:#f6fbf8;color:#122d25;text-align:left;font-size:11px;line-height:13px;overflow:hidden}
#handover #openList>.handover-row[data-kind=fault]{background:#fff0e8;border-left-color:#b54535}
#handover #openList>.handover-row[data-kind=inspection]{background:#eaf3ff;border-left-color:#286ca4}
#handover .handover-num{grid-row:span 2;font-weight:800;font-size:12px}
#handover .handover-title{grid-column:2/4;font-weight:750;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#handover .handover-kind{grid-column:2;color:#284b3f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#handover .handover-state{grid-column:3;font-weight:750;color:#174e41;white-space:nowrap}
#handover .handover-row[data-kind=fault] .handover-kind{color:#9b382a}
#handover .handover-row[data-kind=inspection] .handover-kind{color:#175b91}
#handover #openList>.empty{padding:6px;font-size:12px}
#handover #handoverForm{display:grid;gap:5px;margin:0;padding:6px;background:#e2eaf0;border:1px solid #9aadb8;border-radius:5px}
#handover #handoverForm[hidden]{display:none!important}
#handover #handoverForm label{margin:0;font-size:12px;line-height:15px;gap:3px}
#handover #handoverForm input:not([type=checkbox]){box-sizing:border-box;margin:0;min-height:32px;height:32px;padding:4px 7px;font-size:13px;border:1px solid #8ea9a0;border-radius:4px}
#handover #handoverForm>.fields{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0}
#handover #reportPresentCount{margin:0;padding:4px 6px;color:white;background:#174e41;border-radius:4px 4px 0 0;font-size:12px;line-height:16px}
#handover #reportWorkers{margin-top:-5px;gap:3px;padding:4px;background:#f5faf7;border-radius:0 0 4px 4px;max-height:112px;grid-template-columns:repeat(2,minmax(0,1fr))}
#handover #reportWorkers label.report-worker{font-size:11px;line-height:14px;min-width:0;padding:3px;gap:4px}
#handover #reportWorkers label.report-worker span{min-width:0;overflow-wrap:anywhere}
#handover #reportWorkers input{width:16px;height:16px;margin:0;flex:0 0 16px}
#handover #handoverForm textarea{margin:0;min-height:64px;height:64px;padding:5px 7px;font-size:13px;border:1px solid #8ea9a0;border-radius:4px;resize:vertical}
#handover #handoverForm>button[type=submit]{width:100%;min-height:34px;padding:4px 8px;font-size:13px;border-radius:5px}
#reportList .manager-report-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px;margin:4px 0;border:1px solid #91aaa0;border-radius:5px;background:#eaf2ee;padding:4px}#reportList .manager-report-row .report-entry{margin:0;border:0;background:transparent;min-width:0}#reportList .manager-report-row .report-entry>summary{padding:5px;font-size:12px;line-height:17px;overflow-wrap:anywhere}#reportList .manager-report-row>button{font-size:12px;min-height:30px;padding:4px 9px;background:#174e41;color:white}#reportList .manager-report-row .report{border:0;padding:6px;font-size:12px;overflow-wrap:anywhere}#reportList .manager-report-row .report p{font-size:12px;line-height:1.4;margin:4px 0;white-space:pre-wrap}#editReportWorkers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#eef5f1;border:1px solid #9ab1a4;border-radius:5px;max-height:150px;overflow:auto}#editReportWorkers .report-worker{display:flex;flex-direction:row;align-items:center;gap:5px;margin:0;font-size:12px;min-width:0;overflow-wrap:anywhere}#editReportWorkers input{width:16px;height:16px;margin:0;flex:0 0 16px}#reportEditForm{display:grid;gap:6px}#reportEditForm label{font-size:12px;margin:0}#reportEditForm .fields{display:grid;grid-template-columns:1fr 1fr;gap:5px}#reportEditForm input:not([type=checkbox]){min-height:32px;padding:4px 6px;font-size:13px}#reportEditForm textarea{min-height:70px;font-size:13px}#reportEditForm h3{margin:0;font-size:13px}#reportEditDialog{max-width:calc(100vw - 20px)}#history.manager-reports>h2{font-size:14px;background:#103e38;color:white;padding:6px 8px;border-radius:5px;margin:0 0 5px}#history.manager-reports>p{display:none}#history.manager-reports{padding:6px}
#quickFault{display:none!important}

@media screen and (max-width:740px){
 #shell:not([hidden]){grid-template-rows:max-content 1fr;align-content:start;align-items:start}
 #shell>aside,.simple-ui #shell>aside{align-self:start;align-content:flex-start;align-items:center;height:auto;min-height:0;justify-content:flex-start}
 #shell>main{align-self:start;min-height:0}
 #shell>aside #workspace:not(:has(select)){align-self:center}
 body:not(.simple-ui) #shell>aside>.account-menu{flex:0 0 100%;margin:0;align-self:flex-start}
 body:not(.simple-ui) #shell>aside>.account-menu .asidebottom{align-items:stretch;align-content:start;grid-auto-rows:36px;gap:4px;padding:3px 0 0}
 body:not(.simple-ui) #shell>aside>.account-menu .asidebottom>.sub{height:36px;min-height:36px;margin:0}
}
body:not(.simple-ui) #mainHeading{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;min-height:36px;box-sizing:border-box;gap:5px;margin:0 0 5px}
body:not(.simple-ui) #mainHeading>div:first-child{flex:1 1 auto;min-width:0}
body:not(.simple-ui) #mainHeading h1{margin:0;font-size:20px;line-height:1.15}
body:not(.simple-ui) #mainHeading>.quick-actions{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;margin:0;padding:0;gap:0;width:auto}
body:not(.simple-ui) #mainHeading #add{flex:none;width:auto;min-height:32px;height:32px;padding:3px 8px;font-size:12px;white-space:nowrap}
body:not(.simple-ui) #mainHeading #add[hidden]{display:none!important}
@media(max-width:370px){body:not(.simple-ui) #mainHeading h1{font-size:18px}body:not(.simple-ui) #mainHeading #add{font-size:11px;padding:3px 6px}}

body.simple-ui .home-menu-links{grid-template-columns:repeat(4,minmax(0,1fr))!important}#simpleChat[hidden]{display:none!important}

#simpleBack[hidden]{display:none!important}#simpleBackBar:not(:has(button:not([hidden]))){display:none!important;margin:0!important;padding:0!important}

/* Fixed conversation viewport; messages scroll independently of the composer. */
#chatContent #chatList.chat-list,#homeChat #chatList.chat-list,#privateDialog #dmList.chat-list{box-sizing:border-box;height:200px!important;min-height:200px!important;max-height:200px!important;flex:0 0 200px!important;overflow-y:scroll!important;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#7296b2 #e4edf5;overscroll-behavior-y:contain}
#chatList>.chat-bubble,#dmList>.chat-bubble{flex-shrink:0}
#chatForm,#dmForm{flex-shrink:0}

/* Independent fixed-size lists, never expand with record count. */
#homeRows,#compactWorkRows,#assetList,#handover #openList,.inspection-scroll,.machine-task-scroll{overflow-y:auto!important;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;overscroll-behavior-y:contain;flex-shrink:0}
#homeRows{min-height:117px;max-height:117px}
body.simple-ui #compactWorkRows{min-height:128px;max-height:128px}
body:not(.simple-ui) #compactWorkRows{min-height:192px;max-height:192px}
#assetList,#handover #openList{min-height:144px;max-height:144px}
.inspection-scroll,.machine-task-scroll{box-sizing:content-box;height:192px;min-height:192px;max-height:192px;border:1px solid #a6bdc8;border-radius:5px;background:#f1f6fb;counter-reset:workrow;margin:4px 0}
.inspection-scroll>.inspection-row,.machine-task-scroll>.machine-task-row{box-sizing:border-box;height:48px;min-height:48px;max-height:48px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-template-rows:20px 16px;align-content:center;align-items:center;gap:0 4px;padding:2px 5px;margin:0;border:0;border-bottom:1px solid #b4c7ce;border-left:4px solid #286ca4;border-radius:0;background:#eaf3ff;color:#152f3d;font-size:11px;line-height:15px}
.inspection-scroll>.inspection-row::before,.machine-task-scroll>.machine-task-row::before{counter-increment:workrow;content:counter(workrow) ".";grid-row:1/3;grid-column:1;font-weight:800;font-size:12px}
.inspection-scroll>.inspection-row>button{grid-column:2/4;grid-row:1;min-width:0;min-height:0;height:20px;margin:0;padding:0 2px;text-align:left;border:0;border-radius:3px;background:transparent;color:#153d67;font-size:12px;font-weight:750;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inspection-scroll>.inspection-row>span,.inspection-scroll>.inspection-row>small{grid-row:2;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:14px}
.inspection-scroll>.inspection-row>span{grid-column:2}
.inspection-scroll>.inspection-row>small{grid-column:3;max-width:115px}
.inspection-scroll>.inspection-row:has(.inspection-error){border-left-color:#a32d24;background:#fff0e8}
.inspection-scroll>.inspection-row>.inspection-error{display:none}
.machine-task-scroll>.machine-task-row{background:#f6fbf8;border-left-color:#38865e}
.machine-task-scroll>.machine-task-row[data-kind=fault]{background:#fff0e8;border-left-color:#b54535}
.machine-task-scroll>.machine-task-row[data-kind=inspection]{background:#eaf3ff;border-left-color:#286ca4}
.machine-task-scroll .machine-task-row>summary{display:contents;cursor:pointer}
.machine-task-scroll .machine-task-row .machine-history-title{grid-row:1;grid-column:2/4;font-weight:750;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.machine-task-scroll .machine-task-row .machine-history-status{grid-row:2;grid-column:2/4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.machine-history-detail{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;padding:6px;border:1px solid #9db6aa;border-radius:5px;background:#fff;margin:4px 0}
.machine-history-detail[hidden]{display:none!important}

body.simple-ui #managerHomeNav{display:none!important}
body:not(.simple-ui) #shell>aside>.account-menu .asidebottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;align-items:stretch;grid-auto-rows:36px;gap:4px}
body:not(.simple-ui) #shell>aside>.account-menu .asidebottom>.sub:not([hidden]){box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:3px;font-size:11px;line-height:1.1;border-radius:4px;white-space:normal;overflow-wrap:normal}
body:not(.simple-ui) #shell>aside>.account-menu .asidebottom>.sub[hidden]{display:none!important}
body:not(.simple-ui) #managerHomeNav{grid-column:1}
body:not(.simple-ui) #refreshNow,body:not(.simple-ui) #managerDM,body:not(.simple-ui) .metrics>div:has(#mDone){display:none!important}
body:not(.simple-ui) .alerts-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.simple-ui) .metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.simple-ui) .metrics>div[role=button]{cursor:pointer;transition:background-color .12s;border:1px solid #91afa1}body:not(.simple-ui) .metrics>div[aria-pressed=true]{background:#174e41;color:white;border-color:#174e41}body:not(.simple-ui) .metrics>div[aria-pressed=true] span,body:not(.simple-ui) .metrics>div[aria-pressed=true] strong{color:white}body:not(.simple-ui) .metrics>div[aria-pressed=true]:has(#mUrgent){background:#a33628;border-color:#a33628}body:not(.simple-ui) .metrics>div[role=button]:focus-visible{outline:2px solid #548b70;outline-offset:2px}
#alertsOpen.unread-alerts{background:#a53226!important;color:#fff!important;border-color:#84281f!important;font-weight:750}

#teamDialog{box-sizing:border-box;width:min(640px,calc(100vw - 16px));max-width:calc(100vw - 16px);padding:8px;max-height:calc(100dvh - 24px);overflow-y:auto}
#teamDialog .team-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 6px}
#teamDialog .team-heading h2{font-size:17px;line-height:22px;margin:0}
#teamDialog .team-heading button{min-height:30px;padding:4px 8px;font-size:12px}
#teamDialog .team-section{margin:0 0 7px;border:1px solid #91aaa0;border-radius:5px;overflow:hidden;background:#f4f8f6}
#teamDialog .team-section h3{font-size:13px;line-height:18px;margin:0;padding:5px 7px;background:#103e38;color:white}
#teamDialog .team-add{background:#e5f0de;border-color:#91ad82}
#teamDialog .team-add h3{background:#285b35}
#teamDialog #inviteForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;margin:0}
#teamDialog #inviteForm label{font-size:12px;line-height:15px;margin:0;min-width:0;gap:3px}
#teamDialog #inviteForm label:has(input[type=email]){grid-column:1/-1}
#teamDialog #inviteForm input,#teamDialog #inviteForm select{box-sizing:border-box;width:100%;min-width:0;min-height:32px;height:32px;font-size:13px;padding:4px 6px;margin:0;border:1px solid #8fa99d;border-radius:4px}
#teamDialog #inviteForm>button{align-self:end;min-height:32px;height:auto;padding:5px 6px;font-size:12px;line-height:15px;border-radius:4px}
#teamDialog #inviteResult:not([hidden]){box-sizing:border-box;width:calc(100% - 12px);margin:0 6px 6px;min-height:48px;font-size:13px}
#teamDialog #teamList,#teamDialog #inviteList{box-sizing:border-box;max-height:240px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#315c52 #d4e0dc;overscroll-behavior-y:contain;counter-reset:teamrow}
#teamDialog #inviteList{max-height:180px}
#teamDialog #teamList>.item,#teamDialog #inviteList>.item{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:3px 5px;padding:5px 6px;margin:0;border:0;border-bottom:1px solid #b3c6bd;background:#fff;border-radius:0}
#teamDialog #teamList>.item:nth-child(even){background:#e7f1eb}
#teamDialog #inviteList>.item:nth-child(even){background:#e9f0f8}
#teamDialog #teamList>.item:before,#teamDialog #inviteList>.item:before{counter-increment:teamrow;content:counter(teamrow) ".";font-size:12px;font-weight:800;grid-column:1;grid-row:1;color:#183f34}
#teamDialog .item>div:first-child,#teamDialog .item>p:first-child{grid-column:2;min-width:0}
#teamDialog .item h3{font-size:13px;line-height:16px;padding:0;margin:0;background:transparent;color:#132f29;overflow-wrap:anywhere}
#teamDialog .item p{font-size:11px;line-height:15px;margin:0;color:#32574c;overflow-wrap:anywhere}
#teamDialog .item>.actions,#teamDialog .item>button{grid-column:2}
#teamDialog .item>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:0;padding:0}
#teamDialog .item button,#teamDialog .item select{box-sizing:border-box;min-height:28px;height:auto;min-width:0;width:100%;font-size:11px;line-height:14px;padding:3px 5px;margin:0;border-radius:4px}
#teamDialog .team-invites{background:#eef4fa;border-color:#9fb5ca}
#teamDialog .team-invites>h3{background:#285679}
#teamDialog .team-section .empty{padding:6px;font-size:12px}

#teamDialog .team-identity{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow-x:auto;min-width:0;max-width:100%;font-size:12px;line-height:1.35;padding:2px 0}#teamDialog .team-identity>*{flex:0 0 auto;margin:0}#teamDialog .team-identity>span:before{content:" · ";opacity:.6}#teamDialog #teamList .item,#teamDialog #inviteList .item{min-width:0;padding-top:5px;padding-bottom:5px}

#teamDialog #teamList>.team-row,#teamDialog #inviteList>.team-row{grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:2px 4px;padding:3px 4px;min-height:27px}
#teamDialog .team-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) auto;align-items:center;gap:4px;overflow:hidden;font-size:11px;line-height:1.35;padding:0;white-space:nowrap}
#teamDialog .team-identity>*{min-width:0;overflow:hidden;text-overflow:ellipsis;margin:0}
#teamDialog .team-identity>span:before{content:none}
#teamDialog .team-identity>span:last-child{font-weight:600}
#teamDialog #inviteList .team-identity{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto minmax(0,.7fr)}
#teamDialog .team-row>.team-edit,#teamDialog .team-invite-row>button{grid-column:3;grid-row:1;width:auto;min-height:26px;font-size:10px;padding:2px 5px}
#teamDialog .team-row>.team-edit-actions{grid-column:2/-1;grid-row:2}
#teamDialog .team-edit-actions[hidden]{display:none!important}
#teamDialog .team-edit-details{grid-column:1/-1;overflow-wrap:anywhere;font-size:11px;line-height:1.3}
#teamDialog .team-invite-row:not(:has(>button))>.team-identity{grid-column:2/-1}


@media screen and (min-width:1024px){
  body:has(#shell:not([hidden])){background:#f3f6f4}
  body #shell:not([hidden]),body.simple-ui #shell:not([hidden]){display:grid!important;grid-template-columns:244px minmax(0,1fr);grid-template-rows:1fr;align-items:start;min-height:calc(100vh - 60px);padding-bottom:0!important}
  body #shell>aside,body.simple-ui #shell>aside{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:12px;padding:16px 12px;position:sticky;top:0;align-self:start;min-height:calc(100vh - 60px);max-height:100vh;overflow-y:auto;border-right:1px solid #36564f}
  body #shell>aside>#workspace{width:100%!important;max-width:100%!important;flex:none!important}
  body #shell>aside>#workspace select{width:100%!important;max-width:100%!important}
  body #shell>aside>nav{position:static;display:flex;flex-direction:column;grid-template-columns:none;gap:5px;padding:0;border:0;overflow:visible;background:transparent}
  body #shell>aside>nav button:not([hidden]){justify-content:flex-start;min-height:38px;font-size:13px;padding:7px 10px;gap:8px;text-align:left}
  body.simple-ui #shell>aside>nav{display:none}
  body #shell>aside>.account-menu{width:100%;flex:none;min-width:0;margin:0}
  body:not(.simple-ui) #shell>aside>.account-menu .asidebottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:40px;gap:6px;padding:0}
  body:not(.simple-ui) #shell>aside>.account-menu .asidebottom>.sub:not([hidden]){height:40px;min-height:40px;font-size:12px;padding:5px}
  body.simple-ui #shell>aside>.account-menu .asidebottom{display:flex;flex-direction:column;gap:6px}
  body.simple-ui #shell>aside .home-menu-links{display:grid;grid-template-columns:1fr!important;gap:6px}
  body.simple-ui #shell>aside .home-menu-links .simple-tile:not([hidden]){min-height:38px;padding:6px 10px;justify-content:flex-start;text-align:left;font-size:13px}
  body #shell>main,body.simple-ui #shell>main,body:not(.simple-ui) #shell>main{width:100%;max-width:1700px;margin:0 auto;padding:18px 22px;min-width:0}
  body #mainHeading{align-items:center;gap:12px;margin-bottom:8px}
  body:not(.simple-ui) #mainHeading h1,body.simple-ui #mainHeading h1{font-size:22px;line-height:1.2}
  body:not(.simple-ui) #mainHeading #add{min-height:36px;padding:6px 12px;font-size:13px}
  body:not(.simple-ui) .metrics{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin:10px 0}
  body:not(.simple-ui) .metrics>div{padding:8px 12px}
  body:not(.simple-ui) .metrics span{font-size:12px}
  body #shell>main .panel{padding:12px;border-radius:7px}
  body.simple-ui #simpleHome:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start}
  body.simple-ui #simpleHome>.home-quick,body.simple-ui #simpleHome>#simpleSummary{grid-column:1/-1}
  body.simple-ui #simpleHome>.home-quick{display:flex;justify-content:flex-start}
  body.simple-ui #simpleHome .simple-fault{width:auto;min-width:190px;padding:6px 15px;font-size:14px}
  body.simple-ui #simpleHome>.home-work,body.simple-ui #simpleHome>#homeChat{padding:9px;min-width:0;border-radius:6px}
  body.simple-ui #simpleHome h2{font-size:15px;line-height:24px;margin-bottom:5px}
  body.simple-ui #simpleHome #homeRows{height:248px;min-height:248px;max-height:248px}
  body.simple-ui #simpleHome .home-row{min-height:31px;height:31px;line-height:30px;font-size:13px}
  body #homeChat #chatList,body #chatDialog #chatList,body #privateDialog #dmList{height:300px!important;min-height:300px!important;max-height:300px!important;flex:0 0 300px!important}
  body.simple-ui #compactWorkRows,body:not(.simple-ui) #compactWorkRows{height:320px;min-height:320px;max-height:320px}
  body #assetList,body #handover #openList{height:288px;min-height:288px;max-height:288px}
  body .inspection-scroll,body .machine-task-scroll{height:320px;min-height:320px;max-height:320px}
  body #shell>main .toolbar{gap:8px;flex-wrap:wrap}
  body #shell>main .toolbar input,body #shell>main .toolbar select{font-size:13px;min-height:34px}
  body dialog{width:min(760px,calc(100vw - 64px));max-width:calc(100vw - 64px);max-height:88vh;padding:18px}
  body #teamDialog,body #machineCard,body #kpiDialog,body #chatDialog,body #privateDialog{width:min(960px,calc(100vw - 64px));max-width:calc(100vw - 64px)}
  body #teamDialog #teamList,body #teamDialog #inviteList{max-height:360px}
  body #teamDialog .team-identity{font-size:13px;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(80px,.55fr);gap:12px}
  body #teamDialog #inviteList .team-identity{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto minmax(0,.8fr)}
  body #teamDialog .team-row>.team-edit{font-size:12px;padding:5px 12px}
  body #teamDialog #teamList>.team-row,body #teamDialog #inviteList>.team-row{padding:6px 8px;min-height:34px}
  body #teamDialog .team-row>.team-edit-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  body #teamDialog .team-edit-details{font-size:12px}
  body #teamDialog .team-row>.team-edit-actions[hidden]{display:none!important}
  body #teamDialog .item select,body #teamDialog .item button{font-size:12px;min-height:30px}
}
@media screen and (min-width:1440px){
  body #shell:not([hidden]),body.simple-ui #shell:not([hidden]){grid-template-columns:270px minmax(0,1fr)}
  body #shell>main,body.simple-ui #shell>main,body:not(.simple-ui) #shell>main{padding:22px 28px}
}

#shiftsDialog .shift-generator[hidden],#shiftsDialog #sgRotationLabel[hidden]{display:none!important}
#shiftsDialog .shift-generator{border:1px solid #325a50;background:#edf4ef;border-radius:5px;padding:6px;margin:6px 0 9px}
#shiftsDialog .shift-generator>summary{background:#245347;color:#fff;font-weight:750;padding:6px 8px;border-radius:3px;font-size:13px;cursor:pointer}
#shiftsDialog .sg-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:5px 0}
#shiftsDialog .sg-settings label,#shiftsDialog .sg-team label{font-size:11px;line-height:1.25;gap:2px;margin:0}
#shiftsDialog .sg-settings input,#shiftsDialog .sg-settings select,#shiftsDialog .sg-team input[type=text],#shiftsDialog .sg-hour input{box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:32px;font-size:12px;padding:3px 4px;margin:0;border-radius:4px}
#shiftsDialog .sg-section{border:1px solid #acbeb5;background:white;padding:5px;margin-top:5px;border-radius:4px;font-size:12px}
#shiftsDialog .sg-section>strong{display:block;background:#d9e8df;padding:3px 5px;margin:-5px -5px 5px;color:#183e32}
#shiftsDialog .sg-hours{display:grid;gap:3px}
#shiftsDialog .sg-hour{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:4px;align-items:center}
#shiftsDialog .sg-color{font-weight:800;text-align:center;padding:4px;border-radius:3px;white-space:nowrap}
#shiftsDialog .sg-c0{background:#0065c8;color:white}#shiftsDialog .sg-c1{background:#d97706;color:#1e1705}#shiftsDialog .sg-c2{background:#7035a0;color:white}#shiftsDialog .sg-c3{background:#dfe3e6;color:#29353b}
#shiftsDialog .sg-teams{display:grid;gap:4px}
#shiftsDialog .sg-team{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:end}
#shiftsDialog .sg-workers{border:1px solid #a9beb4;border-radius:4px;padding:3px;background:#f4f7f5;min-width:0}
#shiftsDialog .sg-workers summary{font-size:11px;cursor:pointer;padding:3px}
#shiftsDialog .sg-workers[open]{grid-column:1/-1}
#shiftsDialog .sg-workers .worker-list{max-height:120px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
#shiftsDialog .sg-workers label{overflow-wrap:anywhere}
#shiftsDialog .sg-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:5px}
#shiftsDialog .sg-actions button{font-size:12px;min-height:32px;padding:4px}
#shiftsDialog .sg-actions button:disabled{opacity:.45;cursor:not-allowed}
#shiftsDialog .sg-table-scroll{max-width:100%;overflow:auto}
#shiftsDialog .sg-table{border-collapse:separate;border-spacing:2px;width:max-content;font-size:11px}
#shiftsDialog .sg-table th{padding:3px;text-align:left;white-space:nowrap}
#shiftsDialog .sg-table th:first-child{position:sticky;left:0;background:#fff;z-index:1}
#shiftsDialog .sg-status{font-weight:700;margin:4px 0}
#shiftsDialog #shiftsList{max-height:220px;overflow:auto}
#shiftsDialog #shiftsList .item{padding:5px 7px;margin:3px 0}
#shiftsDialog #shiftsList .item p{font-size:11px;line-height:1.3;margin:2px 0}
#shiftsDialog #shiftForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#shiftsDialog #shiftForm[hidden]{display:none!important}
#shiftsDialog #shiftForm h3,#shiftsDialog #shiftForm label:first-of-type,#shiftsDialog #shiftForm fieldset,#shiftsDialog #shiftForm .actions{grid-column:1/-1}
#shiftsDialog #shiftForm label{font-size:11px;min-width:0;margin:0}
#shiftsDialog #shiftForm input:not([type=checkbox]){min-width:0;width:100%;min-height:32px;padding:4px;font-size:12px}
@media screen and (min-width:1024px){#shiftsDialog{width:min(960px,calc(100vw - 64px))}#shiftsDialog .sg-settings{grid-template-columns:repeat(5,minmax(0,1fr))}#shiftsDialog .sg-hours{grid-template-columns:repeat(3,minmax(0,1fr))}#shiftsDialog .sg-teams{grid-template-columns:repeat(2,minmax(0,1fr))}#shiftsDialog #shiftsList{max-height:280px}}

#shiftsDialog #shiftTeamPanel[hidden]{display:none!important}
#shiftsDialog #shiftPublished{margin:5px 0;border:1px solid #b5c4bd;border-radius:4px;padding:4px}
#shiftsDialog #shiftPublished>summary{font-size:12px;font-weight:700;cursor:pointer;padding:4px}
#shiftsDialog .sg-team-panel{border:1px solid #315d4d;border-radius:5px;background:#edf4ef;padding:5px;margin:6px 0}
#shiftsDialog .sg-team-panel>h3{font-size:13px;background:#245347;color:white;margin:-5px -5px 5px;padding:6px 8px;border-radius:4px 4px 0 0}
#shiftsDialog #shiftTeamList{max-height:145px;overflow:auto}
#shiftsDialog .sg-saved-team{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:4px;border-bottom:1px solid #b6c8be;background:white;font-size:12px}
#shiftsDialog .sg-team-info{display:flex;align-items:center;gap:8px;min-width:0}
#shiftsDialog .sg-team-info strong{white-space:nowrap}
#shiftsDialog .sg-team-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#31564b}
#shiftsDialog .sg-saved-team button{min-height:26px;font-size:11px;padding:3px 8px}
#shiftsDialog #shiftTeamForm{display:grid;gap:4px;margin:5px 0}
#shiftsDialog #shiftTeamForm label,#shiftsDialog .sg-team-slot{font-size:11px;gap:2px;margin:0}
#shiftsDialog #shiftTeamForm input[type=text],#shiftsDialog #shiftTeamName,#shiftsDialog .sg-team-slot select{box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:32px;font-size:12px;padding:3px 5px;margin:0;border-radius:4px}
#shiftsDialog #shiftTeamForm fieldset{margin:0;padding:4px;border:1px solid #acbeb5;min-width:0}
#shiftsDialog #shiftTeamForm legend{font-size:11px}
#shiftsDialog #shiftTeamWorkers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;max-height:130px;overflow:auto}
#shiftsDialog #shiftTeamWorkers label{overflow-wrap:anywhere}
#shiftsDialog .sg-teams{grid-template-columns:repeat(2,minmax(0,1fr))}
@media screen and (min-width:1024px){#shiftsDialog .sg-teams{grid-template-columns:repeat(4,minmax(0,1fr))}#shiftsDialog #shiftTeamWorkers{grid-template-columns:repeat(4,minmax(0,1fr))}}
