.section-one-hmi{--hmi-blue: #147bfa;--hmi-green: #0da45c;--hmi-text: #192838;--hmi-muted: #5e748b;--hmi-line: #d2dde7;background:#e8eef3;border:1px solid #d7e0e8;border-radius:10px;padding:12px;margin-bottom:14px;color:var(--hmi-text);font-variant-numeric:tabular-nums;container-type:inline-size}.hmi-overview{display:grid;grid-template-columns:1fr;gap:8px}.hmi-overview-2{grid-template-columns:1fr 1fr}.hmi-group{background:#fff;border:1px solid var(--hmi-line);border-radius:9px;padding:10px;margin-bottom:8px;min-width:0}.hmi-group-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px;min-height:20px}.hmi-group h3{margin:0;padding:2px 0 2px 10px;border-left:3px solid var(--hmi-blue);font-size:11px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;color:#526a82}.hmi-legend{display:flex;gap:6px;align-items:center;font-size:8px;color:#6a8095;letter-spacing:.06em}.hmi-legend i{width:14px;border-top:2px dashed #283c50}.hmi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}.hmi-overview .hmi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}.hmi-wide{grid-template-columns:1fr}.hmi-card{min-width:0;background:#f3f6f9;border:1px solid var(--hmi-line);border-radius:6px;text-align:center;padding:9px 10px}.hmi-card-heading{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--hmi-muted);font-size:12px;font-weight:500;line-height:1.45;min-height:30px}.hmi-card-heading>span{overflow-wrap:anywhere}.hmi-value{font:700 28px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--hmi-green);letter-spacing:-.055em;margin:7px 0;overflow-wrap:anywhere}.hmi-value small{font-size:11px;color:var(--hmi-muted);margin-left:6px;letter-spacing:0;font-weight:600;white-space:nowrap}.hmi-scale-note{font-size:8px;color:#718499;margin-top:12px;line-height:1.4}.hmi-setpoint{font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#526d86;padding-top:5px;margin-top:5px;border-top:1px solid #dce5ee}.hmi-bar{position:relative;height:7px;background:#d5dee7;border-radius:7px;margin:8px 0 2px}.hmi-bar>div{height:100%;border-radius:inherit;background:var(--hmi-green);transition:width .9s ease}.hmi-bar i{position:absolute;top:-7px;height:21px;border-left:3px dashed #203447;transform:translate(-50%)}.hmi-production .hmi-value{font-size:32px;margin:7px 0}.hmi-cycle-times{display:flex;flex-direction:column;justify-content:center}.hmi-cycle-times .hmi-value{color:#23394d;font-size:27px;margin:7px 0;letter-spacing:-.04em}.hmi-cycle-times .hmi-value small{display:block;font-size:8px;line-height:1.5;letter-spacing:.2em;margin:4px 0 0;color:#75899c}.hmi-group-pressures .hmi-grid{gap:8px}.hmi-pressures{background:linear-gradient(180deg,#fff,#f3f7fb);border-color:#d3e0ec;padding:9px 10px}.hmi-pressures .hmi-card-heading{color:#34516b;font-weight:600;font-size:11px}.hmi-pressure-instrument{position:relative;max-width:148px;margin:6px auto 0}.hmi-gauge{display:block;width:100%;overflow:visible}.hmi-gauge path{fill:none}.hmi-gauge-bezel{stroke:#eaf0f6;stroke-width:18;stroke-linecap:round}.hmi-gauge-track{stroke:#d6e2ee;stroke-width:9;stroke-linecap:round}.hmi-gauge-fill{stroke:#2488df;stroke-width:9;stroke-linecap:butt;transition:stroke-dasharray .9s ease}.hmi-dial-tick{stroke:#a7b8c8;stroke-width:1}.hmi-dial-tick.major{stroke:#6b8298;stroke-width:1.5}.hmi-gauge text{fill:#526b83;font:10px ui-monospace,SFMono-Regular,Consolas,monospace}.hmi-gauge .hmi-dial-midpoint{fill:#6d8295;font-size:9px}.hmi-gauge path.hmi-needle{fill:#193d5a;stroke:#193d5a;stroke-width:1;stroke-linejoin:round}.hmi-needle-assembly{transform-origin:100px 94px;transition:transform .9s ease}.hmi-dial-hub{fill:#264e6d;stroke:#fff;stroke-width:2}.hmi-gauge path.hmi-gauge-set{fill:#263b4e;stroke:#fff;stroke-width:1}.hmi-gauge .hmi-set-guide{stroke:#263b4e;stroke-width:1.5;stroke-dasharray:2 2}.hmi-pressure-range{display:block;margin-top:-3px;font-size:7px;color:#70879b;letter-spacing:.07em}.hmi-pressures .hmi-value{margin:5px 0 0;font-size:28px;color:#1b507c;letter-spacing:-.035em}.hmi-pressures .hmi-value small{font-size:10px;color:#617b91}.hmi-pressures .hmi-setpoint{font-size:10px;color:#3f5d77;border-top-color:#dce6f0}.hmi-pressure-instrument.is-unavailable{opacity:.45}.hmi-thermometer{height:70px;display:flex;justify-content:center;gap:8px;margin:7px 0 10px}.hmi-thermo-track{position:relative;width:15px;height:100%;background:#d5dee7;border-radius:12px}.hmi-thermo-fill{position:absolute;bottom:0;width:100%;background:var(--hmi-green);border-radius:10px 10px 0 0;transition:height .9s ease}.hmi-thermo-track:after{content:"";position:absolute;bottom:-10px;left:-5px;width:25px;height:25px;border-radius:50%;background:var(--hmi-green)}.hmi-thermo-track i{position:absolute;left:-12px;width:39px;border-top:2px dashed #243c4f;z-index:1}.hmi-thermo-track i:before{content:"";position:absolute;left:-2px;top:-5px;border-right:7px solid #243c4f;border-top:4px solid transparent;border-bottom:4px solid transparent}.hmi-thermo-ticks{display:flex;flex-direction:column;justify-content:space-between;color:var(--hmi-muted);font:9px ui-monospace,monospace}.hmi-thermo-ticks span:before{content:"—";margin-right:6px;color:#8a9bad}.hmi-temperatures .hmi-value{font-size:28px;margin:4px 0}.hmi-speeds{display:grid;grid-template-columns:minmax(100px,1.2fr) minmax(60px,1fr) minmax(95px,auto);align-items:center;gap:0 10px;padding:9px 10px;text-align:left}.hmi-speeds .hmi-card-heading{grid-column:1;grid-row:1 / 3;justify-content:flex-start;color:#24394d}.hmi-speeds .hmi-value{grid-column:3;grid-row:1;text-align:right;font-size:23px;margin:0;color:#213548}.hmi-speeds .hmi-bar{grid-column:2;grid-row:1 / 3;margin:8px 0;height:12px}.hmi-speeds .hmi-setpoint{grid-column:3;grid-row:2;margin:3px 0 0;padding:0;border:0;text-align:right;font-size:10px}.hmi-speeds .hmi-scale-note{grid-column:2;margin-top:3px;font-size:8px}.hmi-positions{padding:10px 12px}.hmi-positions .hmi-card-heading{min-height:22px}.hmi-positions .hmi-value{font-size:26px;color:#1f3346;margin:4px 0 0}.hmi-position{display:flex;align-items:center;height:112px;padding:6px 10px 28px;max-width:1150px;margin:0 auto 6px}.hmi-cylinder{position:relative;width:28%;height:48px;border:2px solid #6e8499;background:#d7e0e8;border-radius:10px;z-index:2;display:grid;place-items:center}.hmi-cylinder span{color:#7b8fa1;font-size:9px;letter-spacing:.15em}.hmi-cylinder i{position:absolute;top:12px;bottom:12px;left:9px;width:2px;background:#b5c4d2}.hmi-cylinder i:last-child{left:auto;right:9px}.hmi-stroke{position:relative;flex:1;height:48px;margin-right:24px}.hmi-rod{position:absolute;top:19px;height:10px;background:#637e94;transition:width .9s ease}.hmi-piston{position:absolute;top:3px;height:42px;width:16px;border-radius:5px;background:var(--hmi-blue);transform:translate(-50%);transition:left .9s ease}.hmi-stop{height:60px;width:26px;background:#d7e0e8;border:2px solid #6e8499;border-radius:7px}.hmi-position-set{position:absolute;top:-5px;bottom:-8px;border-left:2px dashed #283e53}.hmi-ruler{position:absolute;left:0;right:0;top:63px;border-top:1px solid #7c91a6;display:flex;justify-content:space-between;font:10px ui-monospace,monospace;color:#5f768c}.hmi-ruler span{padding-top:7px;position:relative}.hmi-ruler span:before{content:"";position:absolute;top:0;left:50%;height:6px;border-left:1px solid #7c91a6}.hmi-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:8px;color:#6b8196;padding:2px 1px 0;letter-spacing:.04em}.hmi-visibility{border:0;border-radius:4px;background:transparent;color:#536e87;cursor:pointer;padding:5px;flex-shrink:0}.hmi-visibility:hover{background:#dbe7f3}.hmi-visibility:focus-visible{outline:2px solid var(--hmi-blue);outline-offset:2px}.hmi-hidden{opacity:.5}@container (max-width: 700px){.hmi-overview-2{grid-template-columns:1fr;gap:0}.hmi-speeds{grid-template-columns:minmax(100px,1fr) minmax(60px,1fr) minmax(95px,auto);gap:0 12px}}@container (max-width: 520px){.hmi-speeds{grid-template-columns:1fr auto;gap:8px}.hmi-speeds .hmi-card-heading{grid-column:1;grid-row:1}.hmi-speeds .hmi-value{grid-column:2;grid-row:1;font-size:23px}.hmi-speeds .hmi-bar{grid-column:1 / -1;grid-row:2}.hmi-speeds .hmi-setpoint{grid-column:1 / -1;grid-row:3}.hmi-speeds .hmi-scale-note{grid-column:1 / -1}.hmi-position{padding-left:0;padding-right:0;height:112px}.hmi-cylinder{width:24%}.hmi-cylinder span{display:none}.hmi-stop{width:24px}.hmi-positions{padding:12px}.hmi-ruler{font-size:8px}}@media (max-width:650px){.section-one-hmi,.hmi-group{padding:12px}}@media (prefers-reduced-motion:reduce){.section-one-hmi *{transition:none!important}}.hmi-workspace{display:grid;gap:8px;align-items:start}.hmi-workspace-split{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.hmi-column{min-width:0}.hmi-workspace .hmi-group{margin-bottom:8px}.hmi-group-temperatures .hmi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}.hmi-temperatures{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;column-gap:8px;text-align:left}.hmi-temperatures .hmi-card-heading{grid-column:1 / -1;justify-content:flex-start;min-height:30px;font-size:11px}.hmi-temperatures .hmi-thermometer{grid-column:1;grid-row:2 / 4;gap:9px}.hmi-temperatures .hmi-value{grid-column:2;grid-row:2;align-self:end}.hmi-temperatures .hmi-setpoint{grid-column:2;grid-row:3;align-self:start;font-size:10px;border:0;padding:0;margin:3px 0}.hmi-temperatures .hmi-scale-note{grid-column:2}.hmi-thermo-track{width:10px}.hmi-thermo-track:after{width:18px;height:18px;left:-4px;bottom:-7px}.hmi-thermo-track i{left:-6px;width:24px}.hmi-thermo-ticks{font-size:8px}.hmi-thermo-ticks span:before{margin-right:3px}.hmi-production .hmi-card-heading,.hmi-cycle-times .hmi-card-heading{min-height:30px}.hmi-overview .hmi-card{padding:8px 10px}.hmi-overview{align-items:start}.hmi-footer{padding-top:3px}@container (max-width: 850px){.hmi-workspace-split{grid-template-columns:1fr;gap:0}.hmi-group-temperatures .hmi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}}.hmi-workspace-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.hmi-workspace .hmi-group{margin-bottom:12px}.hmi-group-production .hmi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hmi-group-cycle-times .hmi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}.hmi-group-pressures .hmi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))}.hmi-group-positions .hmi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hmi-position{height:95px;padding:4px 2px 27px}.hmi-cylinder{height:38px;width:26%}.hmi-cylinder span{font-size:8px}.hmi-stroke{height:38px;margin-right:14px}.hmi-rod{top:15px;height:8px}.hmi-piston{top:1px;height:36px;width:12px}.hmi-stop{height:48px;width:20px}.hmi-ruler{top:50px;font-size:8px}@container (max-width: 850px){.hmi-workspace-split{grid-template-columns:1fr;gap:0}}@container (max-width: 520px){.hmi-group-production .hmi-grid,.hmi-group-positions .hmi-grid{grid-template-columns:1fr}.hmi-position{height:95px}}.time-clock-trigger{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}.time-clock-panel{margin-top:8px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.time-clock-heading{display:flex;justify-content:center;align-items:center;gap:3px;font-size:24px;font-weight:700}.time-clock-heading button,.time-clock-number{border:0;cursor:pointer;font:inherit}.time-clock-heading>button{padding:2px 5px;border-radius:5px;background:transparent;color:var(--text-2)}.time-clock-heading>button.active{color:var(--green);background:var(--card-alt)}.time-clock-period{display:flex;flex-direction:column;margin-left:10px}.time-clock-period button{background:transparent;color:var(--text-2);font-size:11px;padding:2px 5px;border-radius:4px}.time-clock-period button.active{background:var(--green);color:#fff}.time-clock-panel p{margin:8px 0;text-align:center;color:var(--text-2);font-size:12px}.time-clock-face{position:relative;width:220px;max-width:100%;aspect-ratio:1;margin:auto;border-radius:50%;background:var(--card-alt)}.time-clock-hand{position:absolute;left:50%;bottom:50%;width:2px;height:40%;background:var(--green);transform-origin:center bottom;pointer-events:none}.time-clock-number{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;background:transparent;color:var(--text-1);font-size:13px;z-index:1}.time-clock-number:hover,.time-clock-number.selected{background:var(--green);color:#fff}.time-clock-center{position:absolute;left:50%;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:50%;background:var(--green)}.time-clock-exact{display:flex!important;justify-content:center;align-items:center;gap:8px;margin-top:12px;font-size:12px}.time-clock-exact input{width:55px;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--text-1)}.time-clock-done{display:block;margin:12px 0 0 auto;padding:6px 14px;border:0;border-radius:6px;background:var(--green);color:#fff;cursor:pointer}.date-time-clock-popover{position:absolute;top:100%;left:0;z-index:200;width:min(300px,90vw)}.date-time-clock-popover .time-clock-panel{box-shadow:0 10px 28px #00000029}:root{--bg: #F6F8F5;--card: #FFFFFF;--card-alt: #F0F5EE;--line: #E4E9E0;--text-1: #1D2A1C;--text-2: #63705F;--text-3: #98A392;--green: #3C8F5C;--green-soft: #E4F3E9;--green-ring: #3C8F5C;--amber: #C9852B;--amber-soft: #FBEEDD;--red: #D9534F;--red-soft: #FDF2F2;--blue: #3F6FD1;--blue-soft: #EEF4FF;--gold: #B4841A;--gold-soft: #FBF1DD;--sans: "Inter", sans-serif}*{box-sizing:border-box;margin:0;padding:0}html{overscroll-behavior-x:none}body{background:var(--bg);color:var(--text-1);font-family:var(--sans);font-size:14px;min-height:100vh;-webkit-font-smoothing:antialiased}.app-container{display:flex;min-height:100vh;background:var(--bg)}.header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-bottom:20px;gap:16px}.header-left{display:flex;flex-direction:column;justify-content:center}.header h1{font-size:20px;font-weight:800;letter-spacing:-.01em;color:var(--text-1);display:flex;align-items:center;gap:10px}.header .sub{font-size:12px;color:var(--text-2);margin-top:3px;display:flex;align-items:center;gap:8px}.header-center{display:flex;justify-content:center;align-items:center}.company-select-wrapper{position:relative;display:flex;align-items:center}.header-company-select{padding:8px 34px;border-radius:14px;border:1.5px solid var(--green);background:var(--green-soft);color:var(--green);font-weight:700;font-size:13px;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:0 2px 6px #3c8f5c14;transition:all .2s ease}.header-company-select:hover{background:#d8ede0}.company-badge-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 16px;border-radius:14px;background:var(--card-alt);border:1px solid var(--line);color:var(--text-1);font-weight:700;font-size:13px}.header-right{display:flex;align-items:center;justify-content:flex-end;gap:16px}.tstamp{font-size:11.5px;color:var(--text-3);font-weight:500}.profile-dropdown-container{position:relative;display:inline-block}.profile-icon-btn{width:38px;height:38px;border-radius:50%;background:var(--card);border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0000000a;transition:all .2s ease}.profile-icon-btn:hover{background:var(--green-soft);border-color:var(--green);transform:translateY(-1px)}.profile-popover{position:absolute;top:calc(100% + 8px);right:0;width:240px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 10px 30px #0000001f;z-index:1000;opacity:0;visibility:hidden;transform:translateY(6px) scale(.97);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;pointer-events:none}.profile-dropdown-container:hover .profile-popover,.profile-popover.active{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto}.profile-popover-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}.profile-avatar-circle{width:38px;height:38px;border-radius:50%;background:var(--green-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}.profile-info-text{display:flex;flex-direction:column;overflow:hidden}.profile-name{font-size:14px;font-weight:700;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-email{font-size:11.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-role-row{display:flex;align-items:center;justify-content:space-between;background:var(--card-alt);padding:6px 10px;border-radius:8px;font-size:11.5px;margin-bottom:12px}.role-label{color:var(--text-2);font-weight:600}.role-badge{font-weight:700;color:var(--green);font-size:10.5px}.profile-popover-divider{height:1px;background:var(--line);margin:0 -16px 12px}.profile-logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border-radius:10px;border:none;background:var(--red-soft);color:var(--red);font-size:12.5px;font-weight:700;cursor:pointer;transition:background .15s ease}.profile-logout-btn:hover{background:#fcdbdb}.sidebar{width:240px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;padding:20px 14px;height:calc(100vh - 60px);position:sticky;top:60px;z-index:90;box-shadow:2px 0 10px #00000005}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:6px 8px 18px;border-bottom:1px solid var(--line)}.sidebar-logo-circle{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#3c8f5c,#16a34a);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #3c8f5c40;flex-shrink:0}.sidebar-brand-text{display:flex;flex-direction:column;overflow:hidden}.brand-title{font-size:13px;font-weight:800;color:#0f172a;letter-spacing:-.01em;line-height:1.25;white-space:normal}.brand-subtitle{font-size:10.5px;font-weight:700;color:var(--green);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.sidebar-nav{display:flex;flex-direction:column;gap:6px;margin-top:18px;flex-grow:1}.sidebar-section-label{font-size:9.5px;font-weight:800;letter-spacing:.08em;color:var(--text-3);padding:4px 8px;margin-bottom:2px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;font-size:13px;font-weight:600;color:var(--text-2);background:transparent;border:none;cursor:pointer;transition:all .2s ease;position:relative;text-align:left;width:100%}.sidebar-link:hover{background:var(--card-alt);color:var(--text-1)}.sidebar-link.active{background:var(--green-soft);color:var(--green);font-weight:800}.sidebar-link .sidebar-icon{width:17px;height:17px;transition:transform .2s ease;flex-shrink:0}.sidebar-link.active .sidebar-icon{color:var(--green)}.active-indicator{position:absolute;right:0;top:15%;bottom:15%;width:4px;background:var(--green);border-radius:4px 0 0 4px}.sidebar-group{display:flex;flex-direction:column}.sidebar-sub-menu{display:flex;flex-direction:column;gap:3px;margin-left:14px;padding-left:12px;border-left:2px solid var(--line);margin-top:4px;margin-bottom:6px}.sidebar-sub-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;font-size:12.5px;font-weight:600;color:var(--text-2);background:transparent;border:none;cursor:pointer;transition:all .15s ease;text-align:left;width:100%}.sidebar-sub-link:hover{background:var(--card-alt);color:var(--text-1)}.sidebar-sub-link.active{background:var(--green-soft);color:var(--green);font-weight:800}.sidebar-sub-link .sidebar-sub-icon{width:15px;height:15px;flex-shrink:0}.sidebar-sub-link.active .sidebar-sub-icon{color:var(--green)}.sidebar-footer{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--line)}.sidebar-company-card{background:var(--card-alt);border:1px solid var(--line);border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:8px}.sidebar-company-info{display:flex;flex-direction:column;overflow:hidden}.company-label{font-size:8.5px;font-weight:800;color:var(--text-3);letter-spacing:.05em}.company-name{font-size:11.5px;font-weight:800;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-card{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--card-alt);border:1px solid var(--line);cursor:pointer;transition:all .2s ease}.sidebar-user-card:hover,.sidebar-user-card.active{background:var(--green-soft);border-color:var(--green)}.user-avatar{width:32px;height:32px;border-radius:50%;background:var(--green-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-info{display:flex;flex-direction:column;overflow:hidden}.user-name{font-size:12px;font-weight:700;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:10px;font-weight:600;color:var(--text-3)}.sidebar-profile-popover{position:absolute;bottom:calc(100% + 10px);left:0;right:0;width:250px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 12px 36px #00000026;z-index:1000;animation:popUp .2s cubic-bezier(.16,1,.3,1)}@keyframes popUp{0%{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.popover-user-header{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:10px}.popover-avatar-circle{width:38px;height:38px;border-radius:50%;background:var(--green-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}.popover-user-name{font-size:13.5px;font-weight:800;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popover-user-badge{font-size:9px;font-weight:800;color:var(--green);letter-spacing:.05em;margin-top:2px}.popover-details-list{display:flex;flex-direction:column;gap:8px}.popover-detail-item{display:flex;align-items:center;gap:8px;background:var(--card-alt);padding:6px 10px;border-radius:8px;border:1px solid var(--line)}.popover-detail-item .detail-icon{width:14px;height:14px;color:var(--green);flex-shrink:0}.popover-detail-item .detail-content{display:flex;flex-direction:column;overflow:hidden}.popover-detail-item .detail-label{font-size:8px;font-weight:800;color:var(--text-3);letter-spacing:.05em}.popover-detail-item .detail-val{font-size:11.5px;font-weight:700;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popover-pass-btn{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px dashed var(--line);background:transparent;color:var(--text-1);font-size:12px;font-weight:700;cursor:pointer;transition:background .15s ease}.popover-pass-btn:hover{background:var(--card-alt)}.popover-pass-form{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:10px;background:var(--card-alt);border-radius:10px;border:1px solid var(--line)}.pass-input-group{display:flex;flex-direction:column;gap:2px}.pass-input-group label{font-size:9.5px;font-weight:700;color:var(--text-2)}.pass-input-group input{font-size:11.5px;padding:5px 8px;border-radius:6px;border:1px solid var(--line);outline:none;background:#fff}.pass-submit-btn{background:var(--green);color:#fff;border:none;padding:6px;border-radius:6px;font-size:11.5px;font-weight:700;cursor:pointer;margin-top:4px}.pass-msg{font-size:10.5px;font-weight:700;padding:4px 6px;border-radius:4px;text-align:center}.pass-msg.error{background:#fee2e2;color:#991b1b}.pass-msg.success{background:#dcfce7;color:#166534}.popover-divider{height:1px;background:var(--line);margin:10px 0}.sidebar-logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border-radius:10px;border:none;background:#fef2f2;color:#dc2626;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .15s ease}.sidebar-logout-btn:hover{background:#fee2e2}.sidebar-company-select-wrapper{display:flex;align-items:center;gap:6px;background:var(--card-alt);border:1px solid var(--line);border-radius:10px;padding:6px 10px;-webkit-user-select:none;user-select:none;transition:all .2s ease}.sidebar-company-select-wrapper:hover{background:var(--green-soft);border-color:var(--green)}.sidebar-company-popover{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 36px #00000029;z-index:1010;animation:slideUp .18s cubic-bezier(.16,1,.3,1)}.company-popover-title{font-size:9.5px;font-weight:800;color:var(--text-3);letter-spacing:.05em;padding:2px 6px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}.company-popover-list{max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.company-popover-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-1);cursor:pointer;transition:all .15s ease}.company-popover-item:hover{background:var(--green-soft);color:var(--green)}.company-popover-item.active{background:var(--green-soft);color:var(--green);font-weight:700}.company-item-name{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main-wrapper{flex-grow:1;display:flex;flex-direction:column;min-width:0;padding:12px 10px 24px}.app-top-header{height:60px;background:#fff;border-bottom:1px solid #e5e9ee;display:flex;align-items:center;justify-content:space-between;padding:0 20px 0 0;margin:0;width:100%;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #00000008}.header-logo-container{width:184px;min-width:184px;height:60px;display:flex;align-items:center;justify-content:center;padding:0 8px;border-right:1px solid #e5e9ee;box-sizing:border-box;flex-shrink:0}.header-left-space{width:160px}.header-center-company{display:flex;align-items:center;gap:10px;justify-content:center}.header-company-icon-circle{width:32px;height:32px;border-radius:8px;background:var(--green-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-company-title{font-size:17px;font-weight:800;color:#0f172a;letter-spacing:.04em;text-transform:uppercase}.header-right-controls{width:200px;display:flex;justify-content:flex-end}.top-company-select-wrapper{position:relative}.top-company-trigger{display:flex;align-items:center;gap:6px;background:var(--green-soft);border:1px solid var(--green);border-radius:20px;padding:6px 14px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease}.top-company-trigger:hover{background:#dcfce7;transform:translateY(-1px)}.top-company-label{font-size:11.5px;font-weight:700;color:var(--green);white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}.top-company-popover{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 36px #00000029;z-index:1010;animation:slideUp .18s cubic-bezier(.16,1,.3,1)}.top-company-badge{display:flex;align-items:center;gap:6px;background:var(--green-soft);border:1px solid var(--green);border-radius:20px;padding:6px 14px;font-size:11.5px;font-weight:700;color:var(--green)}.main-content{flex-grow:1}.app-footer{margin-top:32px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--text-3)}.auth-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:12px;font-size:12.5px;font-weight:600;color:var(--text-1);background:var(--card-alt);border:1px solid var(--line);cursor:pointer;transition:all .15s ease}.auth-btn:hover{background:var(--line)}.kpi-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:24px}.kpi{background:var(--card);border-radius:16px;padding:16px 18px;box-shadow:0 1px 3px #1d2a1c0f;border:1px solid rgba(228,233,224,.7);transition:transform .15s ease,box-shadow .15s ease}.kpi:hover{transform:translateY(-2px);box-shadow:0 4px 12px #1d2a1c14}.kpi .lbl{font-size:11.5px;color:var(--text-2);font-weight:500}.kpi .val{font-size:22px;font-weight:800;margin-top:8px;color:var(--text-1)}.kpi .val small{font-size:11.5px;color:var(--text-3);font-weight:500}.kpi .d{font-size:11px;font-weight:600;color:var(--green);margin-top:5px}.kpi .d.warn{color:var(--amber)}.section-title{font-size:13px;font-weight:700;color:var(--text-1);margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}.meter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.meter-card{background:var(--card);border-radius:18px;padding:18px;box-shadow:0 1px 3px #1d2a1c0f;border:1px solid rgba(228,233,224,.7);display:flex;flex-direction:column;gap:14px;transition:transform .15s ease,box-shadow .15s ease}.meter-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px #1d2a1c14}.meter-head{display:flex;justify-content:space-between;align-items:flex-start}.meter-name{font-size:15px;font-weight:700;color:var(--text-1)}.meter-id{font-size:11px;color:var(--text-3);margin-top:1px}.status-chip{font-size:10.5px;font-weight:700;padding:4px 10px;border-radius:20px}.status-chip.ok{background:var(--green-soft);color:var(--green)}.status-chip.warn{background:var(--amber-soft);color:var(--amber)}.status-chip.error{background:var(--red-soft);color:var(--red)}.ring-row{display:flex;align-items:center;gap:16px}.ring-wrap{position:relative;width:80px;height:80px;flex-shrink:0}.ring-num{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-num .n{font-size:16px;font-weight:800;line-height:1}.ring-num .u{font-size:8.5px;color:var(--text-3);margin-top:2px}.ring-side{font-size:12px;flex:1}.ring-side .row{display:flex;justify-content:space-between;gap:10px;padding:3px 0}.ring-side .k{color:var(--text-2)}.ring-side .v{font-weight:600}.phase-pills{display:flex;gap:6px}.voltage-group{display:flex;flex-direction:column;gap:7px}.voltage-title{font-size:10.5px;color:var(--text-2);font-weight:600}.phase-pill{flex:1;background:var(--card-alt);border-radius:10px;padding:7px 8px;text-align:center}.phase-pill .v{font-size:12.5px;font-weight:700;display:block}.phase-pill .l{font-size:9.5px;color:var(--text-3)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:12px}.stat-grid .row{display:flex;justify-content:space-between}.stat-grid .k{color:var(--text-2)}.stat-grid .v{font-weight:600}.stat-grid .v.flag{color:var(--amber)}.cost-pill{display:flex;justify-content:space-between;align-items:baseline;background:var(--gold-soft);border-radius:12px;padding:10px 14px}.cost-pill .k{font-size:11.5px;color:var(--text-2);font-weight:500}.cost-pill .v{font-size:16px;font-weight:800;color:var(--gold)}.cost-pill .v small{font-size:10px;color:var(--text-3);font-weight:500}.charts-row{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.panel{background:var(--card);border-radius:18px;padding:14px 16px;box-shadow:0 1px 3px #1d2a1c0f;border:1px solid rgba(228,233,224,.7)}.panel-title{font-size:14px;font-weight:700;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}.panel-title span{font-size:11.5px;color:var(--text-3);font-weight:500}.table-card{background:var(--card);border-radius:18px;padding:14px 16px;box-shadow:0 1px 3px #1d2a1c0f;border:1px solid rgba(228,233,224,.7);overflow-x:auto}.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.search-input{padding:8px 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg);font-size:13px;color:var(--text-1);outline:none;width:260px}.search-input:focus{border-color:var(--green)}.btn-primary{display:inline-flex;align-items:center;gap:6px;background:var(--green);color:#fff;font-size:13px;font-weight:600;padding:8px 16px;border-radius:10px;border:none;cursor:pointer;transition:opacity .15s ease}.btn-primary:hover{opacity:.9}.btn-secondary{display:inline-flex;align-items:center;gap:6px;background:var(--card-alt);color:var(--text-1);font-size:13px;font-weight:600;padding:8px 16px;border-radius:10px;border:1px solid var(--line);cursor:pointer}.btn-secondary:hover{background:var(--line)}.btn-danger{display:inline-flex;align-items:center;gap:6px;background:var(--red-soft);color:var(--red);font-size:12px;font-weight:600;padding:6px 12px;border-radius:8px;border:none;cursor:pointer}.btn-icon{background:transparent;border:none;color:var(--text-2);cursor:pointer;padding:6px;border-radius:6px}.btn-icon:hover{color:var(--text-1);background:var(--card-alt)}.btn-icon .delete-icon{color:var(--red)}.data-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.data-table th{background:var(--card-alt);padding:10px 14px;font-weight:700;color:var(--text-2);border-bottom:1px solid var(--line);font-size:11.5px;text-transform:uppercase;letter-spacing:.03em}.data-table td{padding:12px 14px;border-bottom:1px solid var(--line);color:var(--text-1)}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background:#f0f5ee66}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1d2a1c66;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal-content{background:var(--card);border-radius:20px;padding:24px;width:100%;max-width:480px;box-shadow:0 10px 30px #0000001f;border:1px solid var(--line);display:flex;flex-direction:column;gap:18px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center}.modal-header h3{font-size:18px;font-weight:800;color:var(--text-1)}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:12px;font-weight:600;color:var(--text-2)}.form-control{padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg);font-size:13px;color:var(--text-1);outline:none}.form-control:focus{border-color:var(--green)}.crud-form-fields .form-group{min-width:0}.crud-form-fields .form-control{box-sizing:border-box;width:100%;height:42px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:11.5px;color:var(--text-3);display:flex;justify-content:space-between}@media (max-width: 1200px){.top-info-grid{grid-template-columns:repeat(3,1fr)!important}.meter-grid{grid-template-columns:repeat(2,1fr)}.kpi-strip{grid-template-columns:repeat(3,1fr)}.charts-row{grid-template-columns:1fr}}@media (max-width: 768px){.top-info-grid{grid-template-columns:repeat(2,1fr)!important}.meter-grid{grid-template-columns:1fr}.kpi-strip{grid-template-columns:repeat(2,1fr)}.header{flex-direction:column;gap:12px;align-items:flex-start}.header-right{align-items:flex-start}}input[type=number][name=cost_per_unit]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}input[type=number][name=cost_per_unit]::-webkit-inner-spin-button,input[type=number][name=cost_per_unit]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.process-dashboard-shell{--bg: #f7f8fa;--line: #e5e9ee}.process-dashboard-shell .sidebar{width:186px;padding:24px 10px 14px;background:#f7f8fa;box-shadow:none}.process-dashboard-shell .main-wrapper{padding:16px 12px 28px}.process-dashboard-shell .sidebar-link{font-size:12px;padding:10px;border-radius:7px;color:#111827}.process-dashboard-shell .sidebar-link.active{background:#d4f8dc;color:#008415}.process-dashboard-shell .active-indicator{background:#00bf29}.process-dashboard{color:#15191d;display:flex;flex-direction:column;gap:18px}.process-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.process-status-card{display:flex;align-items:center;gap:10px;min-height:54px;padding:9px 12px;border:1px solid #e4e8f3;border-radius:9px;background:linear-gradient(110deg,#f8f9ff,#f3f6fb);box-shadow:0 1px 2px #101b3210}.process-status-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;flex-shrink:0}.process-status-icon.shift{background:#f0e8ff;color:#8028ed}.process-status-icon.meters{background:#fff0e6;color:#ff563c}.process-status-icon.hours{background:#edf0ff;color:#172990}.process-status-icon.live{background:#dcffe8;color:#00b639}.process-status-label{display:block;color:#141b68;font-size:9px;font-weight:800}.process-status-card strong{display:block;font-size:13px;line-height:1.3}.process-status-card small{display:block;font-size:9px}.process-status-card .process-live{color:#00a52b}.process-status-card .process-stale{color:#b45309}.process-overview-heading{display:flex;align-items:center;gap:20px;border-bottom:1px solid #cbd2d8;padding:0 4px 12px;min-height:42px;flex-wrap:wrap}.process-overview-heading h2{border-left:6px solid #176c35;padding-left:10px;font-size:21px;line-height:1;font-weight:800;letter-spacing:-.5px}.process-line-subtitle{border-left:1px solid #c9cfd5;padding-left:22px;color:#737b83;font-size:13px}.process-edit-toolbar{margin-left:auto;display:flex;align-items:center;gap:6px}.process-edit-toolbar button{font-size:11px!important;padding:6px 10px!important;border-radius:5px!important}.process-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:0 0 20px;border-bottom:1px solid #cbd2d8}.process-stage{position:relative;min-width:0}.process-stage-title{background:linear-gradient(100deg,#28583d,#306a47,#28583d);color:#fff;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);text-align:center;padding:6px 8px;margin:0 auto;width:92%;font-size:13px;font-weight:750;line-height:1.15}.process-machine-image{height:150px;display:flex;align-items:flex-end;justify-content:center;margin:8px 0 10px}.process-machine-image img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.process-stages-bottom .process-machine-image{height:180px}.process-readings{border:1px solid #c9d0d7;border-radius:6px;padding:4px 10px;background:linear-gradient(#fff,#f8f9fa)}.process-reading{display:flex;align-items:center;gap:6px;padding:6px 0;min-height:28px;border-bottom:1px solid #dce1e5}.process-reading:last-child{border-bottom:0}.process-sensor-name{flex:1;min-width:0;color:#171b1e;font-size:11px;font-weight:500;line-height:1.25}.process-reading-value{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap}.process-reading-value strong{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}.process-reading-value>span{font-size:11px;color:#41484f}.process-empty{padding:14px 8px;color:#8a939a;font-size:11px;grid-column:1 / -1}.process-visibility{border:0;border-radius:4px;background:#def3e5;color:#247443;padding:4px;cursor:pointer;display:inline-flex}.process-reading.is-hidden{opacity:.4}@media (max-width: 1050px){.process-stages{gap:12px}.process-stage-title{font-size:11px;width:100%}.process-readings{padding:4px 6px}.process-reading{flex-wrap:wrap}.process-reading-value{margin-left:auto}.process-overview-heading h2{font-size:18px}.process-line-subtitle{font-size:11px}}@media (max-width: 800px){.process-stages,.process-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.process-dashboard-shell .sidebar{width:150px}}@media (max-width: 540px){.process-stages,.process-status-grid{grid-template-columns:1fr}.process-line-subtitle{border-left:0;padding-left:16px}.process-dashboard-shell .sidebar{width:120px;padding:18px 5px}}.process-stages-bottom{border-bottom:0;padding-top:2px}.process-stage-title+.process-readings{margin-top:10px}.process-stage:not(:has(.process-machine-image)){align-self:start;border:1px solid #c9d4ce;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 6px #1f412b0a}.process-stage:not(:has(.process-machine-image)) .process-stage-title{clip-path:none;width:100%;margin:0;padding:12px 14px;text-align:left;background:#285d3f}.process-stage:not(:has(.process-machine-image)) .process-readings{margin-top:0;border:0;border-radius:0;padding:4px 14px;background:#fff}.process-stage:not(:has(.process-machine-image)) .process-reading{padding:12px 0;min-height:46px}.dashboard-loading{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#285b40}.dashboard-loading>span:last-child{color:#64748b;font-size:14px}.dashboard-loading-spinner{width:42px;height:42px;border:4px solid #dce9df;border-top-color:#328b53;border-radius:50%;animation:dashboard-loading-spin .8s linear infinite}@keyframes dashboard-loading-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.dashboard-loading-spinner{animation:none}}.company-cell-text{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-stages-adaptive{grid-template-columns:repeat(var(--section-columns),minmax(0,1fr))}.process-stages-adaptive .process-readings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));column-gap:24px}.process-stages-adaptive .process-reading{min-width:0}.process-stages-adaptive .process-machine-image{height:180px}@media (max-width: 800px){.process-stages-adaptive{grid-template-columns:repeat(min(var(--section-columns),2),minmax(0,1fr))}}@media (max-width: 540px){.process-stages-adaptive{grid-template-columns:1fr}}.process-stages-adaptive .process-stage-title{width:fit-content;max-width:92%;min-width:min(240px,92%);padding:7px 28px;margin-left:auto;margin-right:auto}.header-center-company.p4-brand{justify-content:flex-start;gap:10px;min-width:0;flex:1;padding:0 18px}.p4-brand-mark{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:#123b59;color:#fff;border-radius:8px;font-size:17px;font-weight:850;letter-spacing:-1px}.p4-brand-copy{min-width:0}.p4-brand-title{font-size:16px;line-height:1.25;font-weight:750;color:#1c354b;letter-spacing:-.025em}.p4-brand-company{font-size:9px;line-height:1.4;color:#62788b;text-transform:uppercase;letter-spacing:.1em;margin-top:3px;overflow-wrap:anywhere}.p4-header-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.dashboard-status-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding:8px 12px;border:1px solid #dce5ec;border-radius:7px;background:#fff;color:#334e65;font-size:11px;min-height:36px}.dashboard-shift,.dashboard-machine-count,.dashboard-sync{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.dashboard-status-strip svg{color:#688399;flex-shrink:0}.dashboard-status-caption{color:#718597}.dashboard-status-strip strong{font-size:12px;font-weight:700;color:#213d54}.dashboard-shift-hours{border-left:1px solid #dbe4ec;padding-left:9px;color:#355e7d;font-size:11px;font-variant-numeric:tabular-nums}.dashboard-shift-hours span{color:#748798;font-size:10px;margin-left:3px}.dashboard-machine-count{border-left:1px solid #dbe4ec;padding-left:18px}.dashboard-sync{margin-left:auto}.dashboard-sync i{width:6px;height:6px;border-radius:50%;background:#8799a8}.dashboard-sync.is-live i{background:#15a16e;box-shadow:0 0 0 3px #15a16e12}.dashboard-sync.is-live strong{color:#16835e}.dashboard-sync.is-stale i{background:#c68420}.dashboard-sync.is-stale strong{color:#a36914}.dashboard-sync time{font-size:10px;color:#788d9f;font-variant-numeric:tabular-nums}@media (max-width:1100px){.p4-header-controls{flex-wrap:wrap;gap:3px}.p4-brand-title{font-size:14px}.header-center-company.p4-brand{padding:0 12px}}@media (max-width:700px){.app-top-header{height:auto;min-height:60px;flex-wrap:wrap;padding:6px 10px;gap:6px}.app-top-header .header-logo-container{width:100px;min-width:100px;height:40px;border:0}.header-center-company.p4-brand{padding:0 4px}.p4-brand-mark{width:28px;height:28px;font-size:15px}.p4-header-controls{width:100%;justify-content:space-between}.dashboard-status-strip{gap:8px 12px}.dashboard-machine-count{padding-left:0;border:0}.dashboard-shift{flex-basis:100%}.dashboard-shift-hours span{display:none}}.app-top-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:16px;padding-right:16px}.header-center-company.p4-brand{grid-column:2;justify-content:center;padding:0;text-align:center}.p4-brand-title{font-family:inherit;font-size:19px;font-weight:750;letter-spacing:-.035em;line-height:1.25;color:#16364f}.p4-brand-company{font-size:10px;font-weight:650;letter-spacing:.12em;color:#397468;margin-top:4px;text-align:center}.p4-header-controls{grid-column:3;justify-self:end;justify-content:flex-end;flex-wrap:wrap;gap:3px 8px;max-width:100%}.process-overview-heading{gap:10px 16px;padding-bottom:8px}.process-overview-heading h2{font-size:16px;margin:0;border-left-width:4px;white-space:nowrap}.process-overview-heading .dashboard-status-strip{flex:1;min-width:0;border:0;border-radius:0;background:transparent;padding:3px 0;min-height:28px;gap:8px 14px}.process-overview-heading .dashboard-machine-count{padding-left:12px}.process-overview-heading .dashboard-sync{margin-left:0}.process-overview-heading .process-edit-toolbar{margin-left:auto}@media (max-width:1050px){.app-top-header{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:auto;min-height:60px;padding:8px 12px;gap:8px}.header-center-company.p4-brand{grid-column:1 / -1;grid-row:1;padding:0}.app-top-header .header-logo-container{grid-column:1;grid-row:2;width:150px;min-width:0;height:36px;border:0;padding:0}.p4-header-controls{grid-column:2;grid-row:2;width:auto}.p4-brand-title{font-size:18px}.process-overview-heading .dashboard-status-strip{flex-basis:100%;order:3}}@media (max-width:550px){.app-top-header .header-logo-container{width:100px}.p4-brand-title{font-size:17px}.process-overview-heading h2{font-size:14px}.process-overview-heading .dashboard-shift{flex-basis:auto}.process-overview-heading .dashboard-machine-count{padding-left:0}}.sidebar,.process-dashboard-shell .sidebar{width:184px;padding:10px 8px;background:#f4f7fa;border-right:1px solid #cad6e1;box-shadow:none}.sidebar .sidebar-nav{margin-top:0;gap:4px;min-height:0;overflow-y:auto;padding:2px 0 12px;scrollbar-width:thin}.sidebar .sidebar-link{min-height:42px;padding:10px 12px;border:1px solid transparent;border-radius:4px;color:#40576b;font-size:12px;font-weight:600;gap:11px;transition:background .15s,color .15s}.sidebar .sidebar-link:hover{background:#e5edf4;color:#123e5e}.sidebar .sidebar-link.active{background:#173d58;border-color:#173d58;color:#fff;font-weight:700}.sidebar .sidebar-link .sidebar-icon{width:17px;height:17px;stroke-width:1.8;color:#657e91}.sidebar .sidebar-link.active .sidebar-icon{color:#bedff5;stroke-width:2}.sidebar .active-indicator{left:0;right:auto;width:3px;top:9px;bottom:9px;background:#67c5ef;border-radius:0 2px 2px 0}.sidebar .sidebar-group{margin-top:8px;padding-top:12px;border-top:1px solid #d6e0e9}.sidebar .sidebar-sub-menu{margin:8px 0 2px 20px;padding-left:8px;border-left:1px solid #becddb;gap:2px}.sidebar .sidebar-sub-link{min-height:36px;padding:8px;gap:9px;border-radius:3px;color:#536d82;font-size:11px;font-weight:550}.sidebar .sidebar-sub-link:hover{background:#e5edf4;color:#173d58}.sidebar .sidebar-sub-link.active{background:#dce9f3;color:#15486b;font-weight:750;box-shadow:inset 2px 0 #337ba9}.sidebar .sidebar-sub-link .sidebar-sub-icon{width:14px;height:14px;stroke-width:1.8}.sidebar .sidebar-sub-link.active .sidebar-sub-icon{color:#21638f}.sidebar .sidebar-footer{padding-top:10px;border-top:1px solid #ccd9e3;gap:4px;flex-shrink:0}.sidebar .sidebar-user-card{width:100%;padding:9px 7px;gap:9px;border-radius:4px;border:1px solid #d2dee8;background:#fff;text-align:left;font-family:inherit}.sidebar .sidebar-user-card:hover,.sidebar .sidebar-user-card.active{background:#eaf1f7;border-color:#a5bdcf}.sidebar .user-avatar{width:30px;height:30px;border-radius:4px;background:#e2ebf2}.sidebar .user-avatar svg{color:#335c78!important}.sidebar .user-name{color:#213f55;font-size:11px}.sidebar .user-role{color:#6c8294;font-size:9px;margin-top:3px;font-weight:500}.sidebar .sidebar-footer>div:last-child{font-size:8px!important;line-height:1.5;margin-top:6px!important;color:#7a8e9e!important}.sidebar .sidebar-profile-popover{border-radius:6px;border-color:#c9d8e3;box-shadow:0 8px 30px #17384f20;max-height:calc(100dvh - 180px);overflow-y:auto}.sidebar .sidebar-link:focus-visible,.sidebar .sidebar-sub-link:focus-visible,.sidebar .sidebar-user-card:focus-visible{outline:2px solid #2b82c6;outline-offset:1px}@media (max-width:700px){.sidebar,.process-dashboard-shell .sidebar{width:146px;padding:8px 6px}.sidebar .sidebar-link{padding:10px 7px;gap:7px;font-size:11px}.sidebar .sidebar-sub-menu{margin-left:13px;padding-left:6px}.sidebar .sidebar-sub-link{padding:8px 5px;gap:6px}}@media (prefers-reduced-motion:reduce){.sidebar *{transition:none!important}}.shift-dashboard{display:flex;flex-direction:column;gap:12px;color:#17324a}.shift-dashboard h1{margin:0;font-size:24px}.shift-dashboard p{color:#64748b;margin:6px 0 0}.shift-dashboard-filters{display:flex;flex-wrap:wrap;gap:10px;padding:10px 12px;background:#fff;border:1px solid #dce5ec;border-radius:10px}.shift-dashboard-field{display:flex;flex:1 1 175px;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#475569}.shift-dashboard-field select,.shift-dashboard-field input{width:100%;min-width:0;padding:7px 9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1e293b}.shift-dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px}.shift-dashboard-cards article,.shift-dashboard-table{background:#fff;border:1px solid #dce5ec;border-radius:8px;padding:12px 14px}.shift-dashboard-cards article{display:flex;flex-direction:column;gap:4px}.shift-dashboard-cards span{color:#64748b;font-size:13px;font-weight:600}.shift-dashboard-cards strong{font-size:25px;color:#087a5b}.shift-dashboard-cards small{color:#64748b;line-height:1.4}.shift-dashboard-table h2{font-size:15px;margin:0}.shift-dashboard-table-scroll{overflow:auto}.shift-dashboard-table table{width:100%;border-collapse:collapse;margin-top:16px;text-align:left}.shift-dashboard-table th,.shift-dashboard-table td{padding:11px;border-bottom:1px solid #e8edf2;font-size:13px}.shift-dashboard-table th{color:#64748b}.shift-dashboard .shift-dashboard-error{color:#b42318}.shift-dashboard-pie{position:relative;height:250px;max-width:550px;margin:10px auto 0}.shift-sensor-cards{margin-top:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}.shift-sensor-cards article{background:#f8fafc}.shift-sensor-cards strong small{font-size:13px;font-weight:500}.section-code-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px}.section-code-toolbar [role=status]{color:#087a5b;font-size:13px}.billet-count-card{position:relative;padding-right:120px!important}.billet-count-card .billet-target{position:absolute;top:12px;right:14px;color:#64748b;font-size:12px}.billet-count-card .billet-target b{color:#17324a}.shift-dashboard{gap:12px}.shift-dashboard-filters{padding:12px 14px;gap:12px;border-color:#dbe5e9;box-shadow:0 3px 12px #173c4910}.shift-dashboard-field{color:#536b7c;font-size:11px;letter-spacing:.025em}.shift-dashboard-field input,.shift-dashboard-field select{min-height:36px;background:#f8fafb;border-color:#d7e3e6;color:#173a4c;font-size:13px;font-weight:500}.shift-dashboard-field input:focus,.shift-dashboard-field select:focus{outline:2px solid #2ca78055;border-color:#2ca780}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-kpis article{min-height:122px;padding:14px 16px 13px 58px;position:relative;overflow:hidden;border-color:#cce5dc;background:linear-gradient(115deg,#fff 42%,#f0faf6);box-shadow:0 3px 12px #173c490d}.dashboard-kpis .productivity-card{background:linear-gradient(115deg,#fff 42%,#f0f7fc);border-color:#d6e7ee}.dashboard-kpis .kpi-icon{position:absolute;top:15px;left:15px;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:#09835d;background:#e0f4eb}.dashboard-kpis .productivity-card .kpi-icon{color:#237aa8;background:#e1f2fa}.dashboard-kpis .kpi-label{color:#526c79;font-size:12px}.dashboard-kpis strong{font-size:30px;line-height:1.15;letter-spacing:-.035em;color:#087a5b}.dashboard-kpis strong small{font-size:13px;letter-spacing:0;font-weight:600}.dashboard-kpis article>small{font-size:11px}.dashboard-kpis .billet-target{top:14px;right:14px;padding:4px 8px;border:1px solid #cfe8db;border-radius:20px;background:#fff;color:#617d71;font-size:11px}.shift-dashboard-table{border-color:#dce7e9;box-shadow:0 3px 12px #173c490a;padding:14px}.dashboard-section-heading{display:flex;align-items:center;gap:10px}.dashboard-heading-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#eaf6f1;color:#168461}.dashboard-heading-icon.distribution-icon{background:#eaf3fa;color:#337ca3}.dashboard-section-heading h2{color:#17394a;font-size:14px;font-weight:750}.shift-dashboard .dashboard-section-heading p{margin:2px 0 0;color:#7a8e99;font-size:11px}.dashboard-count{margin-left:auto;padding:4px 8px;border:1px solid #e1eaec;border-radius:20px;color:#6c838e;font-size:10px;font-weight:600;white-space:nowrap}.shift-sensor-cards{gap:9px;margin-top:12px}.shift-sensor-cards article{min-height:86px;padding:11px 12px;background:#f7faf9;border-color:#e0ebe7}.shift-sensor-cards article>span{color:#617782;font-size:11px;line-height:1.35}.shift-sensor-cards strong{color:#116d56;font-size:22px;line-height:1.2}.shift-sensor-cards article>small{color:#8a9ba1;font-size:10px}.shift-dashboard-pie{margin-top:8px}@media (max-width:600px){.dashboard-kpis{grid-template-columns:1fr}.dashboard-kpis article{min-height:108px}.dashboard-count{display:none}}.dashboard-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:10px}.dashboard-analytics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}.dashboard-analytics>section{min-width:0}.distribution-content{display:flex;gap:12px;align-items:center;margin-top:12px}.distribution-chart{width:155px;height:155px;flex:none;position:relative}.distribution-center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;color:#607586;font-size:10px}.distribution-center strong{color:#17394a;font-size:14px}.distribution-table-wrap{flex:1;min-width:0;overflow:auto;max-height:180px}.distribution-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.distribution-table th,.distribution-table td{padding:7px 6px;border-bottom:1px solid #e9eff1}.distribution-table th{background:#f2f6f8;color:#567080;font-size:10px}.distribution-table th:nth-child(n+2),.distribution-table td:nth-child(n+2){text-align:right;white-space:nowrap}.distribution-table td:first-child{min-width:115px}.distribution-table i{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:2px}.trend-chart{height:180px;margin-top:12px}@media (max-width:1100px){.dashboard-analytics{grid-template-columns:1fr}}@media (max-width:500px){.distribution-content{flex-direction:column;align-items:stretch}.distribution-chart{align-self:center}}.shift-dashboard-table .distribution-table{margin-top:0;font-size:11px}.shift-dashboard-table .distribution-table th,.shift-dashboard-table .distribution-table td{padding:7px 6px;font-size:11px}.dashboard-kpis article{min-height:112px;padding:15px 18px!important;border-left:4px solid #16a45b;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.dashboard-kpis .billet-count-card{background:linear-gradient(110deg,#fff 35%,#f0faf5)}.dashboard-kpis .productivity-card{border-left-color:#1971d4;background:linear-gradient(110deg,#fff 35%,#f0f7fd)}.dashboard-kpis .kpi-main{display:flex;align-items:center;gap:14px;position:relative;z-index:1;min-width:0}.dashboard-kpis .kpi-icon,.dashboard-kpis .productivity-card .kpi-icon{position:static;width:42px;height:42px;flex:none;border-radius:10px}.dashboard-kpis .productivity-card .kpi-icon{background:#e4f2fd;color:#1267bd}.dashboard-kpis .kpi-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.dashboard-kpis .kpi-label{color:#394f66;font-size:12px;font-weight:700}.dashboard-kpis .kpi-copy strong{font-size:30px;color:#0b8845}.dashboard-kpis .productivity-card .kpi-copy strong{color:#0962bc}.dashboard-kpis .kpi-copy strong small{color:#526a80;font-size:13px;font-weight:500}.dashboard-kpis .kpi-copy>small{color:#7b8c9b;font-size:10px;line-height:1.35}.billet-target-group{display:flex;align-items:center;gap:12px;padding-left:15px;border-left:1px solid #e3ece7;z-index:1;flex:none}.billet-target-box{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:76px;padding:8px;background:#eaf7ef;border-radius:8px}.billet-target-box span{display:flex;gap:4px;align-items:center;font-size:10px;color:#648978}.dashboard-kpis .billet-target-box strong{font-size:19px;color:#0b8845}.target-ring{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:conic-gradient(#098d43 var(--target-progress),#dceee3 0)}.target-ring>div{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#fff}.target-ring b{color:#173447;font-size:12px;line-height:1.2}.target-ring small{color:#738995;font-size:9px}.productivity-accent{display:flex;align-items:flex-end;gap:4px;height:38px;opacity:.7;z-index:1}.productivity-accent i{display:block;width:10px;border-radius:2px 2px 0 0;background:#b2dcf7}.productivity-accent i:nth-child(1){height:12px}.productivity-accent i:nth-child(2){height:19px}.productivity-accent i:nth-child(3){height:27px}.productivity-accent i:nth-child(4){height:35px}@media (max-width:440px){.dashboard-kpis article{flex-wrap:wrap}.billet-target-group{margin-left:56px;padding-left:0;border:0}.productivity-accent{display:none}}.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-kpis .speed-summary-card{border-left-color:#758b7a;background:#fff}.speed-summary-card .kpi-copy{width:100%}.speed-bars{height:28px;display:flex;align-items:end;gap:3px;margin:4px 0}.speed-bars span{flex:1;min-width:3px;max-width:28px;background:#9bb7a8;border-radius:2px 2px 0 0}@media (max-width:900px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.dashboard-kpis{grid-template-columns:1fr}}.dashboard-kpis .summary-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;min-height:150px;padding:18px 20px!important;border:1px solid #e5e9e3;border-radius:10px;background:#fff;box-shadow:0 2px 8px #173c490a}.summary-card .summary-label{color:#74827c;font-size:12px;font-weight:600}.summary-card .summary-value{color:#24312d;font-size:32px;font-weight:700;line-height:1.1;letter-spacing:-.03em}.summary-card .summary-value small{color:#86938d;font-size:13px;font-weight:500;letter-spacing:0}.summary-card>small{color:#84928b;font-size:11px;line-height:1.4}.summary-progress{height:8px;overflow:hidden;border-radius:5px;background:#e8ebe5}.summary-progress span{display:block;height:100%;border-radius:inherit;background:#168b7e}.summary-card .speed-bars{height:28px;margin:0}.summary-card .speed-bars span{background:#c7ccc0}.dashboard-kpis .summary-card{overflow:visible}.speed-bars .speed-bar{position:relative;flex:1;min-width:3px;max-width:28px;padding:0;border:0;border-radius:2px 2px 0 0;background:#c7ccc0;cursor:pointer}.speed-bars .speed-bar:hover,.speed-bars .speed-bar:focus-visible{background:#168b7e;outline:2px solid #168b7e;outline-offset:2px}.speed-bars .speed-bar .speed-tooltip{display:none;position:absolute;z-index:10;left:50%;bottom:calc(100% + 8px);transform:translate(-50%);min-width:100px;padding:8px 10px;border-radius:7px;background:#263c36;color:#fff;box-shadow:0 4px 12px #0003;font-size:11px;line-height:1.4;text-align:left;white-space:nowrap;pointer-events:none}.speed-bars .speed-bar .speed-tooltip span{display:block;background:transparent;color:#d4e9df}.speed-bars .speed-bar:hover .speed-tooltip,.speed-bars .speed-bar:focus-visible .speed-tooltip{display:block}.speed-bars .speed-bar:first-child .speed-tooltip{left:0;transform:none}.speed-bars .speed-bar:last-child .speed-tooltip{left:auto;right:0;transform:none}.section-run-toggle{border:0;background:none;padding:3px 0;color:#173c49;font:inherit;font-weight:700;text-align:left;cursor:pointer}.section-run-toggle:focus-visible{outline:2px solid #168b7e;outline-offset:3px}.section-run-toggle small,.section-run-row small{color:#7b8c88;font-weight:400}.shift-dashboard-table .section-run-row{background:#f7faf8}.shift-dashboard-table .section-run-row th{padding-left:32px;font-weight:500}.shift-dashboard-filters .dashboard-actions{align-self:end;flex:0 0 auto}.shift-dashboard-filters .dashboard-actions .btn-primary{white-space:nowrap;min-height:36px}@media (max-width:600px){.shift-dashboard-filters .dashboard-actions{flex:1 1 100%;justify-content:flex-start}}.sidebar-date-time{display:flex;justify-content:center;margin-top:8px}.sidebar-date-time>div{max-width:100%}.sidebar-clock{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;padding:5px 7px;border:1px solid #e2e8f0;border-radius:20px;background:#f8fafc;white-space:nowrap;color:#334155;font-size:10px;font-weight:700}.sidebar-clock svg{width:12px;height:12px;flex:none;color:var(--green)}.sidebar-clock-divider{width:1px;height:15px;margin:0 1px;background:#cbd5e1}.sidebar-clock-time{font-family:monospace;color:#0f172a}.all-shifts-dashboard{display:flex;flex-direction:column;gap:20px}.individual-shift-dashboard>h2{margin:0 0 10px;font-size:16px;color:#173a4c}.dashboard-report-filters{align-items:end}.dashboard-report-filters .btn-primary{min-height:36px;white-space:nowrap}.dashboard-report-filters .shift-dashboard-error{flex-basis:100%;margin:0}.section-run-time{display:inline-block;margin-left:5px;color:#7b8c88;font-size:11px;font-weight:400;white-space:nowrap}
