:root{--pink:#e93455;--bg:#f0f0f0;--ink:#262728;--line:#ddd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Montserrat,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--pink);outline-offset:3px}input:focus,textarea:focus{outline:0;border-color:var(--pink)!important}header{height:63px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px 0 17px;position:sticky;top:0;z-index:30;box-shadow:0 2px 8px #0001}header .logo{width:130px;height:45px;object-fit:contain}nav{display:flex;gap:16px;height:100%}.navitem{position:relative;height:100%;display:flex;align-items:center}.navbutton{padding:4px 0;min-width:90px;font-size:14px;font-weight:500}.navbutton>i{display:block;font-size:20px;margin-bottom:4px}.navbutton .fa-chevron-down{font-size:12px}.navright{display:flex;align-items:center;gap:14px}.navright>button{font-size:20px}.dropdown{display:none;position:absolute;left:0;top:60px;min-width:205px;background:#fff;box-shadow:0 5px 18px #0003;border-radius:0 0 5px 5px;padding:8px 0;z-index:40}.dropdown.right{right:0;left:auto}.navitem.open .dropdown{display:block}.dropdown a,.dropdown button{display:block;padding:12px 18px;text-align:left;width:100%;white-space:nowrap}.dropdown a:hover,.dropdown button:hover{background:#f8e7eb;color:var(--pink)}.dropdown i{width:27px}main{padding:20px;min-height:calc(100vh - 100px)}.heading{min-height:74px;border-radius:12px 12px 0 0;background:#fff;box-shadow:0 4px 18px #0001;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:24px}.heading h2{font-size:25px;font-weight:600;margin:0;display:flex;align-items:center;gap:24px}.back{color:var(--pink);font-size:25px;padding:0}.actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--pink);border:1px solid var(--pink);border-radius:5px;background:white;min-height:31px;padding:5px 9px;box-shadow:0 2px 4px #0002;font:14px Roboto,Arial,sans-serif;white-space:nowrap}.btn:hover{background:#fff0f3}.btn.split{padding:0 0 0 8px;gap:12px}.btn.split i{background:var(--pink);color:white;padding:7px 10px;align-self:stretch;border-radius:3px}.btn.solid{background:var(--pink);color:white;border-radius:22px;padding:11px 17px}.smallselect{border:0;border-bottom:1px solid var(--pink);padding:8px;background:white;color:var(--pink);font:13px Roboto,Arial,sans-serif}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin:0 4px 24px}.stat{background:#fff;border:1px solid #dedede;border-radius:9px;min-height:134px;display:flex;gap:16px;padding:18px 15px;box-shadow:0 1px 5px #00000006}.stat img{width:54px;height:58px;object-fit:contain}.stat h4{font-size:14px;font-variant:small-caps;margin:0 0 8px;font-weight:700}.stat .number{font-size:28px;font-weight:500;line-height:1.2}.stat p{font:15px/20px Roboto,Arial,sans-serif;color:#777;margin:4px 0}.green{color:#64aa76;font-weight:700}.panel{background:white}.section{padding:28px 20px;background:white;margin-bottom:20px}.collapse{display:block;margin:auto;height:26px;font-size:15px}.filters{display:flex;align-items:center;gap:34px;padding:40px 23px 60px}.filters label{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:500}.filters select,.filters input{border:0;border-bottom:1px solid #999;min-width:190px;max-width:220px;border-radius:0;height:36px;background:white;font-size:13px}.stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 18px 28px}.station{border:1px solid #c9c9c9;border-radius:22px;box-shadow:1px 3px 5px #00000014;padding:20px 20px 15px;height:294px}.station h4{font-size:14px;font-weight:600;margin:2px 0 15px;display:flex;align-items:center;justify-content:space-between}.machinebadge{position:relative;border-radius:50%;width:29px;height:29px;background:#292929;color:white;text-align:center;padding-top:7px}.machinebadge small{position:absolute;bottom:-2px;right:-3px;border-radius:50%;background:var(--pink);color:#fff;font:10px Arial;padding:1px 4px}.lot-list{max-height:216px;overflow:auto;padding-right:8px;scrollbar-color:#999 #fff;scrollbar-width:thin}.lot{margin-bottom:15px;border-left:1px solid #ccc;padding-left:10px}.lot>a{display:inline-block;font:700 15px Roboto,Arial,sans-serif;background:#efefef;border-radius:15px;padding:4px 7px;box-shadow:3px 3px 5px #0001;max-width:100%}.lot>a:hover{color:var(--pink)}.lot .time{font:12px Roboto,Arial,sans-serif;margin:5px 0 0 11px}.gear{background:#25c41b;color:white;display:inline-block;width:23px;height:21px;text-align:center;border-radius:50%;margin-right:7px;padding:3px;box-shadow:0 0 9px #25c41b88}.gear.orange{background:#edb249;box-shadow:0 0 9px #edb24988}.tablewrap{overflow:auto;border:1px solid #ddd;background:#fff;max-width:100%}.data-table{border-collapse:collapse;width:100%;font:13px Roboto,Arial,sans-serif;min-width:650px}.data-table th{text-align:left;height:48px;padding:10px 16px;font-weight:500;color:#666;background:#fafafa;border-bottom:1px solid #ccc;white-space:nowrap}.data-table th.sortable{cursor:pointer}.data-table th.sortable:hover{color:var(--pink)}.data-table td{height:43px;padding:8px 16px;border-bottom:1px solid #ddd;white-space:nowrap}.data-table tr:nth-child(even) td{background:#fafafa}.data-table tbody tr:hover td{background:#fff1f4}.data-table .filterrow td{padding:5px 8px;background:#f9f9f9}.colfilter{display:flex;gap:3px}.colfilter input{width:100%;min-width:60px;height:27px;border:1px solid #aaa;border-radius:4px;padding:4px}.colfilter button{padding:2px;color:#555}.lot-table{min-width:1680px}.data-table a{color:var(--pink)}.row-actions{display:flex;gap:6px}.square{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;color:white;background:var(--pink);border-radius:5px}.square:hover{background:#c92343}.pagination{display:flex;justify-content:space-between;align-items:center;padding:18px 6px;font:13px Roboto,Arial;gap:20px}.pagination .pages{display:flex;align-items:center;gap:16px}.pagination button{font-size:16px}.pagination select{border:0;border-bottom:1px solid var(--pink);background:#fff;padding:6px 14px}.empty{text-align:center!important;padding:35px!important;color:#888}.selected-count{padding:10px;color:var(--pink)}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.field{display:flex;flex-direction:column;gap:16px;margin-bottom:22px;font-size:13px}.field input:not([type=checkbox]),.field textarea,.field select{border:0;border-bottom:1px solid #888;border-radius:0;min-height:36px;padding:8px 4px;background:#fff;width:100%}.field textarea{min-height:90px;resize:vertical}.field>span,.field>label{font-weight:500;text-transform:uppercase}.form-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:25px;align-items:center}.form-main{padding:60px 48px}.full{grid-column:1/-1}.form-main .submit{display:flex;justify-content:flex-end;margin-top:20px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:48px 35px;padding:45px 28px}.detail-grid h4{font-size:14px;font-weight:600;margin:0 0 20px}.detail-grid p{font-size:14px;margin:0}.detail-mapgrid{display:grid;grid-template-columns:1fr 1fr;gap:26px;padding:0 20px 28px}.plan{position:relative;overflow:hidden;min-height:280px}.plan img{width:100%;height:100%;object-fit:contain}.plan .dot{position:absolute;background:#fe4d58;width:13px;height:13px;border-radius:50%;box-shadow:0 0 10px 4px #fd576677;top:39%;left:74%}.delivery{border:1px solid #e4e4e4;border-radius:13px;padding:20px;box-shadow:0 1px 4px #0001}.delivery h4{font-size:13px;margin:0 0 20px}.delivery p{font-size:14px}.timeline{display:grid;grid-template-columns:repeat(4,1fr);background:#eee;border-radius:14px;overflow:hidden}.timeline span{padding:14px 5px;text-align:center;font-size:12px}.timeline span:nth-child(2){background:#a6c7f5}.timeline span:nth-child(3){background:#f3d6a4}.risk{border-radius:15px;padding:4px 10px;font-size:12px}.risk.Alto{color:#b12626;background:#fae4e4}.risk.Medio{color:#9a7411;background:#fff4c8}.risk.Basso{color:#297a2d;background:#e5f3e4}.map-layout{display:grid;grid-template-columns:1fr 210px;gap:15px;padding:25px 20px;min-height:640px}.mapstage{position:relative;overflow:hidden;min-height:580px;touch-action:none}.mapcanvas{position:relative;width:100%;height:100%;transform-origin:center;transition:transform .15s}.mapcanvas img{position:absolute;width:100%;height:100%;object-fit:contain}.map-controls{position:absolute;left:0;top:20px;display:flex;flex-direction:column;gap:28px;z-index:3}.map-controls button{background:var(--pink);color:white;border-radius:50%;width:45px;height:40px;font-size:18px;box-shadow:0 3px 5px #0002}.map-marker{position:absolute;transform:translate(-50%,-50%);font:14px Roboto,Arial;text-align:center;max-width:150px}.map-marker b{display:block;border:1px solid #555;border-radius:50%;background:#bbb;width:26px;height:26px;padding:5px;font-size:12px;margin:6px auto}.map-marker:hover b{background:var(--pink);color:white}.mapaside{max-height:600px;overflow:auto;font:14px Roboto,Arial}.mapaside input{width:100%;border:0;border-bottom:1px solid #aaa;padding:12px 4px;margin-bottom:14px}.mapaside details{border-bottom:1px solid #eee;padding:10px 5px}.mapaside summary{cursor:pointer}.mapaside small{display:block;color:#777;margin-top:4px}.mapaside .btn{margin-top:12px}.dates{display:flex;gap:20px;align-items:flex-end;padding:25px 0}.dates label{display:flex;flex-direction:column;gap:10px}.dates input,.dates select{padding:7px;border:0;border-bottom:1px solid #aaa;background:white}.notice{padding:13px 18px;background:#fff8e6;border-left:3px solid #e8b743;color:#765d27;font-size:12px;line-height:1.7;margin:15px 0}.chart{display:flex;height:180px;align-items:end;gap:4px;border-left:1px solid #ddd;border-bottom:1px solid #ddd;padding:20px 10px;margin:35px 0}.chart .bar{background:#66be8d;flex:1;min-height:8px}.pill{display:inline-block;padding:4px 10px;border-radius:15px;background:#f5e3e7;color:var(--pink)}dialog{border:0;border-radius:8px;padding:0;min-width:420px;max-width:min(680px,95vw);box-shadow:0 15px 90px #0005;color:#333}dialog::backdrop{background:#0006}.dialog-head{padding:20px 24px;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;font-size:23px;font-weight:600}.dialog-body{padding:25px;line-height:1.7}.dialog-body input,.dialog-body select,.dialog-body textarea{max-width:100%;padding:9px}.dialog-foot{padding:18px 24px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #eee}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:14px 24px;background:#313131;color:white;border-radius:6px;box-shadow:0 3px 15px #0003;z-index:90;display:none;max-width:90vw}footer{text-align:center;color:#999;font-size:10px;padding:20px}footer button{color:#777;font-size:11px}.mobile-menu{display:none}.hint{color:#888;font-size:12px}.checkline{display:flex;gap:10px;align-items:center;margin:25px 0}.page-title{font-weight:600}.muted{color:#777}@media(min-width:1600px){.stations{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1000px){header{padding:0 14px}nav{gap:5px}.navbutton{font-size:11px;min-width:70px}.navright{gap:8px}.heading{align-items:flex-start;flex-direction:column}.actions{gap:12px}.stats{gap:16px}.station{padding:17px 14px}.stations{gap:14px}.filters{gap:20px}.filters select,.filters input{min-width:100px}.map-layout{grid-template-columns:1fr 170px}.form-main{padding:30px 24px}}@media(max-width:700px){header{height:61px}.logo{max-width:105px}nav{position:absolute;top:61px;background:white;left:0;right:0;height:auto;display:none;box-shadow:0 5px 10px #0002;padding:10px}.mobile-open nav{display:flex;flex-wrap:wrap}.mobile-menu{display:block!important}.navright .navbutton{min-width:55px}.navbutton>i{font-size:17px}.dropdown{top:47px}.navright>button{font-size:17px}main{padding:12px}.heading{padding:18px 15px;margin-bottom:16px;gap:16px}.heading h2{font-size:22px}.stats{gap:8px;margin:0 0 16px}.stat{padding:12px 10px;min-height:135px;gap:7px;display:block}.stat img{width:30px;height:30px;float:left;margin-right:8px}.stat h4{font-size:10px;min-height:32px}.stat .number{font-size:24px}.stat p{font-size:11px;line-height:15px}.stations{grid-template-columns:1fr;padding:0 12px 20px}.station{height:280px}.filters{flex-wrap:wrap;padding:25px 16px;gap:14px}.filters label{width:100%}.filters select,.filters input{flex:1;max-width:none}.form-grid,.detail-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr 1fr}.form-row .field:first-child{grid-column:1/-1}.detail-grid{padding:24px 14px;gap:25px}.detail-mapgrid{grid-template-columns:1fr;padding:0 12px 20px}.map-layout{display:block;padding:12px}.mapstage{min-height:340px}.mapaside{max-height:280px}.map-marker{font-size:9px;max-width:90px}.map-marker b{font-size:10px;width:20px;height:20px;padding:3px}.dates{flex-wrap:wrap;gap:10px}.section{padding:20px 12px}.pagination{flex-wrap:wrap}.pagination .pages{gap:10px}dialog{min-width:0;width:94vw}.dialog-head h2{font-size:20px}.form-main{padding:30px 16px}.actions .btn{font-size:12px}}
.navbutton>.fa-chevron-down{display:inline;font-size:12px;margin:0}.stat{height:134px;min-height:134px}.stat h4{font-size:15px}.station{position:relative}.station h4{height:19px;display:block}.station .machinebadge{position:absolute;right:21px;top:23px}.station .lot-list{margin-top:0}.filters .btn.split{padding:5px 8px;gap:6px}.filters .btn.split i{background:none;color:var(--pink);padding:0}

/* Second read-only parity audit: original desktop spacing and grid filter popover. */
@media(min-width:1001px){.heading{min-height:76px;padding-top:19px;padding-bottom:19px}.filters{padding-top:46px;padding-bottom:64px;gap:34px}.filters select{min-width:194px}.filters .btn{margin-left:18px}.actions{padding-right:18px}}
.column-filter-popup{position:fixed;z-index:80;width:252px;background:#fafafa;border:1px solid #aaa;border-radius:4px;box-shadow:0 4px 10px #0003;padding:12px;font:13px Roboto,Arial}.column-filter-popup>select,.column-filter-popup>input,.column-filter-popup #extraCondition>select,.column-filter-popup #extraCondition>input{display:block;width:100%;height:32px;margin-bottom:8px;border:1px solid #aaa;border-radius:3px;background:#fff;padding:5px}.filter-join{display:flex;justify-content:center;gap:28px;margin:12px 0}.column-filter-popup [hidden]{display:none!important}

.station-filter{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:500}.station-picker{position:relative;min-width:194px;width:194px;z-index:4}.station-picker summary{height:36px;border-bottom:1px solid #999;list-style:none;cursor:pointer;padding:9px 19px 4px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}.station-picker summary>i{position:absolute;right:4px;top:10px}.station-options{position:absolute;top:36px;left:0;width:250px;max-height:260px;overflow:auto;background:#fff;border:1px solid #ddd;box-shadow:0 4px 8px #0002}.filters .station-options label{display:flex;gap:8px;padding:10px 12px;font-size:13px;cursor:pointer}.filters .station-options input{width:14px;height:14px;min-width:14px;margin:0}.station-options label:hover{background:#fff0f3}@media(max-width:700px){.station-filter{width:100%}.station-picker{flex:1}.station-options{max-width:90vw}}

/* Original map model coordinates and real-size plan rather than approximate percentage markers. */
.map-layout{grid-template-columns:minmax(0,4fr) minmax(200px,1fr);gap:8px;padding:25px 20px;min-height:735px}.mapstage{min-height:682px;height:682px;cursor:grab}.mapstage.panning{cursor:grabbing}.mapcanvas{height:100%;user-select:none}.mapcanvas .plan-map{display:block;width:100%;height:100%}.plan-map .svg-station{cursor:pointer}.plan-map .svg-station text{font:12px Arial,sans-serif;fill:#111}.plan-map .svg-station circle{fill:#c1c1c1;stroke:#333;stroke-width:.8}.plan-map .svg-station .map-count{font-size:8px}.plan-map .svg-station:hover circle{fill:#e93455}.map-controls{left:19px;top:20px}.mapaside{max-height:682px;padding-left:0}.mapaside-heading{display:flex;align-items:center;justify-content:space-between;height:40px;font:14px Montserrat,Arial}.mapaside-heading .btn{font-size:12px;padding:5px 6px;gap:4px}.mapaside-heading .btn i{background:none;color:var(--pink);padding:0}.mapaside .station-picker{width:100%;margin:10px 0 16px;min-width:0;overflow:visible}.mapaside .station-options{right:0;left:auto;width:100%;z-index:6}.mapaside .station-options label{display:flex;padding:10px;gap:8px;font-size:12px}.mapaside .station-options input{width:14px;padding:0;margin:0}.mapaside .map-lot{padding:0;border:0}.map-lot summary{list-style:none;padding:16px 20px 16px 0;font:14px Montserrat,Arial;position:relative}.map-lot summary:after{content:'⌄';position:absolute;right:1px;top:16px;color:#888}.map-lot[open] summary:after{content:'⌃'}.map-lot small{font-size:10px;color:#333}.map-lot-detail{font-size:12px;line-height:1.5;padding:2px 0 14px}.map-lot-detail .row-actions{gap:5px}.map-lot-detail .square{width:23px;height:23px}.map-lot-detail p{margin:8px 0}.map-lot-detail a{color:var(--pink)}@media(max-width:700px){.map-layout{display:block;padding:12px;min-height:0}.mapstage{height:400px;min-height:400px}.mapaside{max-height:350px}.map-controls{left:0;top:10px}.mapaside .station-picker{max-width:none}}

.detail-plan-svg{display:block;width:100%;height:auto;max-height:350px}.import-info{padding:0 4px 0 0;color:#333}.pink-link{color:var(--pink)}#importInfo{font-size:12px;line-height:1.7}#importInfo[hidden]{display:none}#importFeedback .tablewrap{max-height:250px;overflow:auto}#importFeedback .data-table{min-width:400px}

/* Conveyor geometry from the existing Conveyor Flow demo, within the Komete UI. */
.conveyor-map text{font:12px Arial,sans-serif;fill:#76868d}.conveyor-map .center-code{font-size:17px!important;font-weight:600!important;fill:#58656d!important}.conveyor-map .center-label{font-size:12px!important;fill:#626a6f!important}.conveyor-map .center-caption{font-size:10px!important;fill:#879097!important}.conveyor-map .belt-label{font-size:11px;fill:#8b989e}.conveyor-map .conveyor-center{fill:#f4f5f6;stroke:#c8d0d5;stroke-width:2}.conveyor-map .conveyor-center.occupied{fill:#fcf2f5;stroke:#e9869c}.conveyor-map .svg-station circle{fill:#e93455;stroke:white;stroke-width:3}.conveyor-map .svg-station .map-count{fill:white;font-size:13px;font-weight:600}.conveyor-map .svg-station:hover .conveyor-center,.conveyor-map .svg-station:focus .conveyor-center{stroke:#e93455;stroke-width:3}.conveyor-map .conveyor-dock{fill:#edf1f4;stroke:#acbac3}.conveyor-map .aux-zone{fill:#fafafa;stroke:#d6d9dc}.conveyor-map .aux-label{font-size:13px!important;fill:#646a6e!important}.mapcanvas .conveyor-map{height:100%;width:100%}

.conveyor-point{cursor:pointer}.conveyor-point circle{fill:white;stroke:#e93455;stroke-width:2}.conveyor-point text{fill:#c72748;font:bold 10px Arial,sans-serif;pointer-events:none}.conveyor-point:hover circle,.conveyor-point:focus circle,.conveyor-point.selected circle{fill:#e93455;stroke:white;stroke-width:3}.conveyor-point:hover text,.conveyor-point:focus text,.conveyor-point.selected text{fill:white}.point-panel{border:1px solid #efd3da;background:#fff9fb;border-radius:8px;padding:12px;margin:0 0 18px;font-size:12px}.point-panel p{line-height:1.5;margin:8px 0;color:#767676}.point-panel small{display:block;color:#8a7e82;font-size:10px}.point-panel select{width:100%;margin:7px 0;padding:7px;border:1px solid #ddd;background:white}.point-panel .btn{margin:5px 0 12px;font-size:12px}.point-reading{border-top:1px solid #efdde2;padding-top:7px}

.conveyor-point.is-empty circle{fill:#fff;stroke:#a9b3ba;stroke-width:2}.conveyor-point .empty-id{fill:#89959d;font:11px Arial}.conveyor-point .pallet-shape{fill:#e93455;stroke:#fff;stroke-width:2}.conveyor-point .pallet-label-bg{fill:white;stroke:#efadbd;stroke-width:1}.conveyor-point .pallet-id{fill:#bd2745;font:bold 14px Arial}.conveyor-point .pallet-order{fill:#454b50;font:13px Arial}.conveyor-point.selected .pallet-label-bg{stroke:#e93455;stroke-width:2}.conveyor-point:hover .pallet-id,.conveyor-point:focus .pallet-id,.conveyor-point.selected .pallet-id{fill:#bd2745}.conveyor-point:hover .pallet-order,.conveyor-point:focus .pallet-order,.conveyor-point.selected .pallet-order{fill:#454b50}.map-lot .list-pallet{display:block;color:#c92f4b;font-size:12px;margin-bottom:5px}
.flow-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.flow-controls small{width:100%;font-size:10px;color:#888}.conveyor-map .flow-pallet .pallet-shape{stroke:white;stroke-width:2}.flow-pallet text{pointer-events:none}
