:root,html[data-hy-theme]{color-scheme:light;--hy-bg:#142d49;--hy-surface:#f9fbff;--hy-sidebar:#112b47;--hy-text:#101e34;--hy-muted:#62738a;--hy-border:#cad4e1;--hy-input:white;--hy-accent:#066bc3;--hy-hover:#dbefff;--hy-head:#142d49;--hy-soft:#edf3f9}*{box-sizing:border-box}body{margin:0;font:14px 'Segoe UI',Tahoma,system-ui,sans-serif;background:#142d49!important;color:#10213a!important}.hy-shell{display:flex;min-height:100vh}.hy-content{flex:1;min-width:0}.hy-sidebar{background:linear-gradient(150deg,#102842,#173755)!important;width:218px;min-width:218px;padding:14px 8px;border-right:2px solid #071b2f!important;flex-shrink:0;min-height:100vh}.hy-brand{display:flex;flex-direction:column;padding:0 8px;gap:0}.hy-brand>.hy-iconbtn{align-self:flex-end;font-size:18px;color:white!important;padding:4px}.real-brand{text-align:center;color:white;padding:0 0 20px;width:100%}.logo-window{width:60px;height:58px;overflow:hidden;border-radius:7px;margin:0 auto 4px;background:#0c683f}.logo-window img{width:60px;height:60px;object-fit:cover;object-position:top;clip-path:inset(0 0 5% 0)}.real-brand b{display:block;font-size:29px;font-style:italic;letter-spacing:2px;line-height:1.2}.real-brand small{font-size:8px;letter-spacing:1.5px;color:#a4bad0}.hy-links{gap:7px}.hy-link{display:flex;gap:12px;align-items:center;color:#e7eef8!important;padding:12px 13px;border-radius:6px;font-size:13px;white-space:normal}.hy-link.selected{background:linear-gradient(90deg,#078ddc,#0751ac)!important;box-shadow:inset 4px 0 #3ee0ff,0 3px 8px #00172e66;color:white!important}.hy-link:hover{background:#244866!important}.hy-navlabel{color:#8ea7c0!important;font-size:9px;letter-spacing:1.4px;padding-top:20px}.hy-sidebar-bottom,.hy-iconbtn{color:#c9d8e8!important}.icon{width:25px;height:25px;flex-shrink:0;vertical-align:middle}.hy-link .icon{width:22px;height:22px}.hy-content>div:first-child:not(.layout){font-size:10px!important;padding:5px 14px!important;background:#24425e!important;color:#bbcede!important;border:0!important}.hy-theme-trigger,.hy-theme-panel,html body #hyThemeTrigger.hy-theme-trigger{display:none!important}main{padding:16px!important;margin:0;max-width:none;min-width:0}.ref-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 14px;padding:0!important;background:transparent!important}.ref-header h1{font-size:clamp(20px,1.65vw,31px);line-height:1.2;margin:0 0 7px;color:white!important;letter-spacing:-.5px}.ref-header p{color:#c5d6e8!important;font-size:12px;margin:0}.filters{display:flex;align-items:flex-end;gap:9px;flex-shrink:0}.filters label{color:white;display:grid;gap:4px;font-size:11px}.filters input,.filters select{height:35px;border-radius:6px;padding:6px 8px;border:1px solid #a3b5c9;font:600 12px system-ui;background:#fff;color:#12243a;min-width:95px}.filters input{width:140px}.filters button{height:55px;display:flex;align-items:center;gap:9px;background:#2b4868;color:#fff;border:0;border-radius:7px;padding:9px;cursor:pointer;font-size:11px}.filters button .icon{width:29px;height:29px}.filters button small{display:block;margin-top:4px}.filters i{display:inline-block;background:#3ac76e;width:8px;height:8px;border-radius:50%;margin-left:4px}.ref-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:14px}.ref-kpi{background:linear-gradient(120deg,#e1f4ff,#fff);border:1px solid #d5deea;border-radius:10px;padding:15px 10px;display:flex;gap:9px;box-shadow:0 3px 6px #04142655;min-width:0}.ref-kpi>.icon{width:33px;height:33px;margin-top:5px}.ref-kpi>div{min-width:0}.ref-kpi b{font-size:12px;line-height:1.35;display:block;min-height:34px}.ref-kpi b small{display:block;font-size:10px;font-weight:500}.ref-kpi strong{display:block;white-space:nowrap;font-size:clamp(20px,1.8vw,34px);letter-spacing:-.8px;margin:4px 0}.ref-kpi em{font-style:normal;font-size:14px;letter-spacing:0}.change{font-size:11px;font-weight:650;color:#107536}.change.down{color:#ba2f32}.k2{background:linear-gradient(120deg,#ddf7e8,#f5fff9);color:#114f32}.k3,.k4{background:linear-gradient(120deg,#f8dada,#fff3f3)}.k3>.icon,.k4>.icon{color:#b42b31}.k5{background:linear-gradient(120deg,#e8ddfb,#faf7ff)}.k5>.icon{color:#7654bd}.ref-middle{display:grid;grid-template-columns:42% 1fr;gap:10px}.ref-panel{background:linear-gradient(130deg,#fff,#f3f6fb);border:1px solid #ccd6e4;border-radius:11px;padding:13px;min-width:0;box-shadow:0 3px 7px #06172b55}.ref-panel h2{font-size:16px;line-height:1.3;margin:0 0 12px;font-weight:750;color:#10213c;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ref-panel h2 a{margin-left:auto;color:#254761;font-size:11px}.ref-charts{display:grid;grid-template-rows:1fr 1.6fr;gap:9px}#ref-machines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ref-machine{background:linear-gradient(110deg,#eff9ef,#fff);border:1px solid #b5c6b8;border-radius:9px;padding:10px;text-align:left;color:#14233a;cursor:pointer;min-width:0}.ref-machine>b{font-size:22px}.state{float:right;font-size:11px;font-weight:750;background:#20a73a;color:white;border-radius:4px;padding:2px 9px}.ref-machine>div{display:flex;align-items:center;gap:9px;margin-top:9px}.ref-machine>div>.icon{width:38px;height:38px;color:#149821}.ref-machine strong{font-size:18px;white-space:nowrap;display:block}.ref-machine small{font-size:11px;white-space:nowrap}.ref-machine span>small{display:block;margin-top:3px}.ref-machine small .icon{width:14px;height:14px}.ref-machine.stop{background:linear-gradient(110deg,#fff8f8,#fadcdc);border-color:#d99398}.ref-machine.stop .state{background:#c53533}.ref-machine.stop>div>.icon{color:#81878a}.ref-machine.chosen{outline:2px solid #4389c5;outline-offset:1px}.ref-legend{margin-left:auto;font-size:10px;display:flex;gap:5px;align-items:center;font-weight:500}.ref-legend i,.donut-key i{width:11px;height:11px;background:#20af37;display:inline-block;border-radius:3px}.ref-legend .red,.donut-key .red{background:#ec706b}.donut-key .gray{background:#98a4b3}.timeline-bar{display:flex;height:43px;margin-top:22px;border:1px solid #a9b7c8;padding:9px 0}.timeline-bar i{flex:1}.axis{display:flex;justify-content:space-between;font-size:10px;color:#46566c;margin-top:7px}#ref-speed svg{display:block;width:100%;height:170px}#ref-trend-chart svg{width:100%;height:160px}.ref-bottom{display:grid;grid-template-columns:1fr 1.3fr .9fr 1.2fr;gap:9px;margin-top:10px}.ref-bottom h2{font-size:14px}.donut-wrap{display:flex;align-items:center;gap:13px;min-height:180px}.donut{width:130px;height:130px;flex-shrink:0;border-radius:50%;background:conic-gradient(#23b83d 0 80.8%,#ef7069 80.8% 97.5%,#a6b0bb 97.5%);display:grid;place-items:center;box-shadow:inset 0 0 7px #2345}.donut>b{background:#f9fbff;width:88px;height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;font-size:27px;box-shadow:0 0 5px #0002}.donut small{font-size:13px}.donut-key{font-size:10px}.donut-key p{margin:10px 0}.donut-key b{display:block;margin-left:14px;font-size:11px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{background:#e8eff7;text-align:left;white-space:nowrap;padding:7px 5px}td{padding:9px 5px;border-bottom:1px solid #d9e1eb;white-space:nowrap}td .icon{width:15px;height:15px;color:#d2534d;margin-right:4px}.oee-row{display:flex;align-items:center;gap:7px;font-size:11px;margin:7px 0}.oee-row>div{flex:1;height:11px;border-radius:4px;background:#d4dfeb;overflow:hidden}.oee-row i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#27c86a,#22b548)}.oee-row>span{width:44px;text-align:right}.ref-panel h2 select{margin-left:auto;font:10px system-ui;padding:4px;border-radius:5px;border:1px solid #afbbcb;max-width:110px}.chart-note{font-size:10px;color:#718196}.ref-footer{font-size:10px;color:#b7c9dc;display:flex;justify-content:space-between;margin-top:10px}.hy-content main:not(:has(.ref-header)){background:#eaf0f7;min-height:calc(100vh - 25px)}.hy-content main:not(:has(.ref-header))>h1{color:#183957}.hy-content main:not(:has(.ref-header)) :is(.admin-panel,.card,.hy-card){background:#fff!important;color:#142b44!important;border-color:#c9d7e5!important;border-radius:10px}.hy-content main:not(:has(.ref-header)) header{border-radius:9px}.hy-mobile{background:#142d49!important;color:white!important}
@media(min-width:1550px){.ref-kpi{padding:17px 14px}.ref-header{flex-wrap:wrap}.ref-header h1{font-size:28px}.filters{margin-left:auto}.ref-bottom{grid-template-columns:1fr 1.3fr .8fr 1.1fr}}
@media(max-width:1350px){.ref-header{flex-wrap:wrap}.ref-kpi{display:block}.ref-kpi>.icon{float:left;width:25px;height:25px;margin:0 6px 2px 0}.ref-kpi strong{font-size:23px;clear:both}.ref-bottom{grid-template-columns:1fr 1.2fr}.ref-machine>div{gap:5px}.ref-machine>div>.icon{width:28px;height:28px}.ref-machine strong{font-size:15px}.ref-machine{padding:8px}.ref-machine small{font-size:9px}.hy-sidebar{width:195px;min-width:195px}.donut-wrap{justify-content:center}.filters{width:100%}.ref-middle{grid-template-columns:45% 1fr}}
@media(max-width:1000px){.ref-kpis{grid-template-columns:repeat(3,1fr)}.ref-middle{grid-template-columns:1fr}.ref-charts{grid-template-rows:auto auto}.ref-machine strong{font-size:20px}.ref-machine small{font-size:12px}.ref-machine>div>.icon{width:40px;height:40px}.ref-kpi{display:flex}.ref-kpi>.icon{float:none}.ref-kpi strong{font-size:28px}.ref-header h1{font-size:24px}}
@media(max-width:760px){main{padding:10px!important}.hy-sidebar{position:fixed;top:0;bottom:0;left:0;width:230px;z-index:35}.hy-overlay{z-index:34}.ref-header h1{font-size:21px}.filters{flex-wrap:wrap;gap:7px}.filters label{flex:1}.filters input,.filters select{min-width:0;width:100%}.filters button{height:35px;font-size:10px;width:100%;justify-content:center}.filters button small{display:inline;margin-left:5px}.filters button .icon{height:21px}.ref-kpis{grid-template-columns:repeat(2,1fr)}.ref-kpi{padding:12px 9px}.ref-kpi b{font-size:11px}.ref-kpi strong{font-size:24px}.ref-kpi em{font-size:11px}.ref-kpi>.icon{width:25px;height:25px}.ref-bottom{grid-template-columns:1fr}.ref-machine strong{font-size:15px}.ref-machine>div>.icon{width:24px;height:24px}.ref-machine small{font-size:9px}.ref-machine>b{font-size:19px}.state{padding:2px 5px;font-size:9px}#ref-machines{gap:6px}.ref-legend{width:100%;margin:0}.ref-footer{display:block}.ref-footer span{display:block}}
.timeline-bar{display:flex;height:54px;border:1px solid #c3cedb;margin:20px 0 0;padding:14px 0;background:#f0f4f9}.timeline-bar i{flex:1;height:25px}.axis{display:flex;justify-content:space-between;font-size:10px;color:#364b64;margin-top:5px}.ref-legend{font-size:9px;margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-weight:500}.ref-legend i,.donut-key i{display:inline-block;background:#24b43e;width:11px;height:11px;border-radius:2px;margin-right:3px}.ref-legend .red,.donut-key .red{background:#ed716c}.donut-key .gray{background:#9aa5b4}#ref-speed svg{width:100%;height:180px;display:block}#ref-trend-chart svg{width:100%;height:175px;display:block}.donut-wrap{display:flex;align-items:center;gap:17px;min-height:200px}.donut{width:145px;height:145px;flex-shrink:0;border-radius:50%;background:conic-gradient(#20b83e 0 80.8%,#ee726e 80.8% 97.5%,#98a3b1 97.5%);display:grid;place-items:center;box-shadow:inset 0 0 8px #0002}.donut b{display:flex;flex-direction:column;align-items:center;justify-content:center;width:101px;height:101px;border-radius:50%;background:#f9fbff;font-size:29px}.ref-machine.stop{background:linear-gradient(110deg,#fff3f3,#fbd8d8);border-color:#df9393}.ref-machine.stop .state{background:#c6322b}.ref-machine.stop>div>.icon{color:#7d858c}.ref-machine.chosen{outline:2px solid #4384c4;outline-offset:1px}.ref-machine:hover{box-shadow:0 0 0 2px #5e9dd0}.ref-machine small .icon{width:14px;height:14px;margin-right:2px}.ref-kpi b small{white-space:normal}@media(max-width:760px){.ref-bottom{grid-template-columns:1fr}#ref-machines{gap:6px}.ref-machine>b{font-size:18px}.ref-machine>div{gap:4px}.ref-machine>div>.icon{width:27px;height:27px}.ref-machine strong{font-size:14px}.ref-machine small{font-size:9px}.state{font-size:9px;padding:2px 5px}.ref-panel h2{font-size:14px}.ref-footer{flex-wrap:wrap}}
/* Sidebar proportions in both states */
.hy-sidebar{overflow:visible}.real-brand{min-width:0}.hy-brand>.hy-iconbtn{cursor:pointer}.hy-link{position:relative}.hy-link .icon{flex-shrink:0}
@media(min-width:761px){body.hy-collapsed .hy-sidebar{width:64px!important;min-width:64px!important;padding:12px 6px!important;gap:15px}body.hy-collapsed .hy-brand{padding:0!important;gap:10px;align-items:center}body.hy-collapsed .hy-brand>.hy-iconbtn{align-self:center;padding:5px;width:34px;height:34px}body.hy-collapsed .real-brand{width:40px;padding:0;margin:0}body.hy-collapsed .logo-window{width:36px;height:34px;margin:0 auto}body.hy-collapsed .logo-window img{width:36px;height:36px}body.hy-collapsed .real-brand b,body.hy-collapsed .real-brand small{display:none!important}body.hy-collapsed .hy-link{padding:11px 0!important;justify-content:center;gap:0;width:50px;min-height:46px}body.hy-collapsed .hy-link span,body.hy-collapsed .hy-navlabel,body.hy-collapsed .hy-sidebar-bottom{display:none!important}body.hy-collapsed .hy-link:hover:after{content:attr(aria-label);position:absolute;left:58px;top:8px;background:#071d33;color:white;padding:7px 12px;border-radius:6px;white-space:nowrap;z-index:100;box-shadow:0 3px 10px #0004;font-size:12px}}
.monitor-toggle,.monitor-exit{border:1px solid #6e9ac1!important;background:#24577c!important;color:#fff!important;border-radius:6px;cursor:pointer;padding:8px 12px;font:600 12px system-ui}.monitor-exit{display:none}.monitor-mode .hy-sidebar,.monitor-mode .hy-mobile,.monitor-mode .hy-overlay,.monitor-mode .hy-content>div:first-child:not(.layout){display:none!important}.monitor-mode .hy-shell{min-height:100vh}.monitor-mode .monitor-toggle{display:none!important}.monitor-mode .monitor-exit{display:block;position:fixed;right:12px;top:8px;z-index:100;font-size:11px;padding:6px 10px;opacity:.7}.monitor-mode .monitor-exit:hover,.monitor-mode .monitor-exit:focus{opacity:1}.monitor-mode .ref-header{padding-right:130px!important}.monitor-mode .ref-footer{font-size:9px}.monitor-mode main{background:#142d49!important}
@media(min-width:1000px) and (min-height:600px){
.monitor-mode main{height:100dvh;display:grid;grid-template-rows:auto minmax(88px,.85fr) minmax(210px,2.6fr) minmax(195px,2.15fr) auto;gap:10px;padding:12px!important;overflow:hidden;width:100%;max-width:none}
.monitor-mode .ref-header{margin:0;flex-wrap:nowrap;gap:12px}.monitor-mode .ref-header h1{font-size:clamp(17px,1.6vw,30px)}.monitor-mode .ref-header p{font-size:clamp(9px,.8vw,15px)}.monitor-mode .filters{width:auto;margin:0;gap:7px}.monitor-mode .filters label{font-size:10px}.monitor-mode .filters input{width:130px}.monitor-mode .filters select{min-width:75px}.monitor-mode .filters button{height:43px;font-size:10px}
.monitor-mode .ref-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0}.monitor-mode .ref-kpi{display:flex;padding:10px;gap:9px;align-items:center}.monitor-mode .ref-kpi>.icon{float:none;width:clamp(25px,2.3vw,42px);height:clamp(25px,2.3vw,42px);margin:0}.monitor-mode .ref-kpi b{font-size:clamp(10px,.85vw,17px);min-height:0}.monitor-mode .ref-kpi b small{font-size:clamp(9px,.7vw,13px)}.monitor-mode .ref-kpi strong{font-size:clamp(22px,2.3vw,46px);margin:2px 0}.monitor-mode .ref-kpi em{font-size:clamp(11px,1vw,20px)}.monitor-mode .change{font-size:clamp(9px,.8vw,15px)}
.monitor-mode .ref-middle{grid-template-columns:40% 1fr;min-height:0;gap:10px}.monitor-mode .ref-charts{grid-template-rows:1fr 1.6fr;min-height:0}.monitor-mode .ref-panel{min-height:0;padding:10px;overflow:hidden}.monitor-mode .ref-panel h2{font-size:clamp(12px,1.1vw,21px);margin:0 0 8px}.monitor-mode .machine-panel{display:flex;flex-direction:column}.monitor-mode #ref-machines{flex:1;min-height:0;grid-template-rows:repeat(3,1fr);gap:7px}.monitor-mode .ref-machine{padding:7px;display:flex;flex-wrap:wrap;align-content:center;justify-content:space-between}.monitor-mode .ref-machine>b{font-size:clamp(17px,1.5vw,29px)}.monitor-mode .ref-machine>div{width:100%;margin-top:3px;gap:6px}.monitor-mode .ref-machine>div>.icon{width:clamp(25px,2.6vw,50px);height:clamp(25px,2.6vw,50px)}.monitor-mode .ref-machine strong{font-size:clamp(13px,1.3vw,25px)}.monitor-mode .ref-machine small{font-size:clamp(9px,.85vw,16px)}.monitor-mode .state{font-size:clamp(9px,.8vw,15px);align-self:center}.monitor-mode .ref-charts>.ref-panel{display:flex;flex-direction:column}.monitor-mode #ref-timeline{flex:1;display:flex;align-items:center}.monitor-mode .timeline-bar{width:100%;margin:0;height:45px;padding:9px 0}.monitor-mode #ref-speed{flex:1;min-height:0}.monitor-mode #ref-speed svg{height:100%}.monitor-mode .ref-legend{font-size:clamp(8px,.7vw,13px);width:auto}.monitor-mode .axis{font-size:clamp(8px,.7vw,13px)}
.monitor-mode .ref-bottom{grid-template-columns:1fr 1.35fr .85fr 1.15fr;min-height:0;margin:0;gap:10px}.monitor-mode .ref-bottom>.ref-panel{display:flex;flex-direction:column}.monitor-mode .donut-wrap{flex:1;min-height:0;gap:10px}.monitor-mode .donut{width:clamp(95px,10vw,210px);height:clamp(95px,10vw,210px)}.monitor-mode .donut b{width:70%;height:70%;font-size:clamp(22px,2.3vw,44px)}.monitor-mode .donut-key{font-size:clamp(9px,.75vw,14px)}.monitor-mode .donut-key b{font-size:clamp(9px,.8vw,16px)}.monitor-mode .donut-key p{margin:8px 0}.monitor-mode .table-scroll{flex:1;min-height:0}.monitor-mode table{font-size:clamp(9px,.75vw,15px)}.monitor-mode td{padding:clamp(4px,.7vh,10px) 4px}.monitor-mode th{padding:5px 4px}.monitor-mode #ref-oee{flex:1;display:flex;flex-direction:column;justify-content:space-around}.monitor-mode .oee-row{margin:0;font-size:clamp(9px,.8vw,16px)}.monitor-mode .oee-row>span{width:48px}.monitor-mode .oee-row>div{height:clamp(8px,1vh,18px)}.monitor-mode #ref-trend-chart{flex:1;min-height:0}.monitor-mode #ref-trend-chart svg{height:100%}.monitor-mode .ref-footer{margin:0}.monitor-mode .chart-note{font-size:clamp(8px,.65vw,12px)}
}
@media(min-width:1800px){.monitor-mode main{padding:18px!important;gap:14px}.monitor-mode .ref-panel{padding:15px}.monitor-mode .filters label{font-size:14px}.monitor-mode .filters input,.monitor-mode .filters select{font-size:14px;height:39px}.monitor-mode .ref-footer{font-size:12px}}
@media(max-width:999px),(max-height:599px){.monitor-mode main{height:auto;overflow:visible;padding-top:45px!important}.monitor-mode .ref-header{padding-right:0!important}.monitor-mode .ref-middle{grid-template-columns:1fr}.monitor-mode .ref-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.monitor-mode .ref-bottom{grid-template-columns:1fr}.monitor-toggle{width:100%}}
.nas-status{color:#c4d5e8;font-size:10px;margin:0 0 8px}.nas-status.offline{color:#ffd2a1}.nas-offline{background:#eef1f5!important;border-color:#c4ced8!important}.nas-offline .state{background:#7d8998}.nas-offline>div>.icon{color:#8b97a4}.monitor-mode .nas-status{display:none}.monitor-mode main{grid-template-rows:auto minmax(88px,.85fr) minmax(210px,2.6fr) minmax(195px,2.15fr) auto}.hy-content>div:first-child:not(.layout){background:transparent!important}.donut-key p:last-child{font-size:10px}#ref-trend-chart{display:flex;align-items:center;justify-content:center;text-align:center;color:#62738a;font-size:12px}
