:root{--bg:#07111f;--panel:#0d1b2d;--panel2:#10233b;--txt:#e9f2ff;--muted:#91a4bd;--acc:#23d18b;--warn:#ffd166;--bad:#ff5c7a;--line:#213956}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 0,#17365b 0,#07111f 45%);color:var(--txt);font-family:Inter,Segoe UI,Arial,sans-serif}a{color:#8ecbff}.top{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(5,13,25,.8);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.brand{display:flex;align-items:center;font-size:24px;font-weight:800}.mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#23d18b,#32a8ff);margin-right:12px}.right{display:flex;gap:12px;align-items:center}.pill{padding:7px 12px;border-radius:999px;background:#122a45;color:#bfe2ff}.status{font-weight:800}.PRODUCIENDO{color:#23d18b}.ONLINE{color:#ffd166}.OFFLINE{color:#8793a5}select,input{background:#0a1628;color:#fff;border:1px solid #2d4b70;border-radius:9px;padding:9px}nav{display:flex;gap:8px;padding:12px 20px;overflow:auto;background:#081524;border-bottom:1px solid var(--line)}nav button{white-space:nowrap;background:#10233b;color:#cfe1f5;border:1px solid #254466;padding:10px 13px;border-radius:10px;cursor:pointer}nav button.active{background:#1d6bdd;color:#fff}.wrap{padding:22px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card{background:linear-gradient(180deg,rgba(18,39,66,.96),rgba(11,25,43,.96));border:1px solid #203a5c;border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);margin-bottom:14px}.k{color:var(--muted);font-size:13px}.v{font-size:30px;font-weight:900;margin-top:6px}.small{font-size:13px;color:var(--muted)}h1,h2,h3{margin:0 0 14px}.tablewrap{overflow:auto;border-radius:14px;border:1px solid #203a5c}table{width:100%;border-collapse:collapse;background:#0a1729}th,td{text-align:left;border-bottom:1px solid #1b314f;padding:10px 12px;font-size:13px}th{background:#10233b;color:#cde2ff;position:sticky;top:0}tr:hover td{background:#10233b}.badge{padding:4px 8px;border-radius:8px;background:#123}.ok{background:#0d4a33;color:#b9ffdf}.missing{background:#5a3b12;color:#ffe0a3}.filename{background:#173c5a;color:#bde4ff}.bar{height:12px;border-radius:10px;background:#10243b;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,#23d18b,#32a8ff)}.svgbox{width:100%;height:260px;background:#081627;border:1px solid #203a5c;border-radius:14px;padding:10px}.tv .top, .tv nav{display:none}.tv .wrap{padding:35px}.tv .grid{grid-template-columns:repeat(4,1fr)}.tv .v{font-size:56px}.tv .card{border-radius:26px;padding:28px}@media(max-width:1000px){.grid,.grid2{grid-template-columns:1fr}.v{font-size:24px}}

.toolbar{display:flex;gap:14px;align-items:center;margin:12px 0 18px}.toolbar select{background:#10263d;color:#e8f1ff;border:1px solid #315679;border-radius:8px;padding:8px 12px}


/* V1.3 table sorting and machine selector polish */
th{cursor:pointer;user-select:none} th:hover{background:#183553}.sortmark{font-size:11px;color:#7fb8e8;margin-left:6px}.version{font-size:12px;margin-left:8px;color:#8ecbff;background:#10233b;border:1px solid #254466;border-radius:999px;padding:3px 8px}.right select#machineSel{min-width:190px;height:42px;font-size:15px;font-weight:700;background:#10263d;color:#e8f1ff;border:1px solid #3d6d98;border-radius:12px;padding:8px 38px 8px 12px}.right .pill{height:38px;display:flex;align-items:center}.toolbar select{min-width:150px;font-size:14px;font-weight:700}.tablewrap{max-height:70vh}td,th{vertical-align:middle}


/* V1.4 neutral brand + multi-machine selector */
.brand{gap:12px;font-size:20px;line-height:1.1}.brand .mark{margin-right:0}.brand-main{font-size:22px;font-weight:900;color:#f4f9ff}.brand-sub{font-size:12px;font-weight:700;color:#91a4bd;margin-top:3px}.machine-label{font-size:12px;color:#91a4bd;margin-left:4px}.right select#machineSel{min-width:260px;height:46px;font-size:16px;font-weight:800;background:#0f2b49;color:#fff;border:2px solid #4e86b8;border-radius:14px;padding:9px 42px 9px 14px;box-shadow:0 0 0 2px rgba(50,168,255,.08)}.right select#machineSel:focus{outline:none;border-color:#23d18b;box-shadow:0 0 0 3px rgba(35,209,139,.18)}
@media(max-width:900px){.top{height:auto;gap:12px;align-items:flex-start;flex-direction:column;padding:14px 18px}.right{flex-wrap:wrap}.right select#machineSel{min-width:220px;width:100%}}

/* V1.6 Home production cards + daily target */
.sixcards{grid-template-columns:repeat(6,minmax(0,1fr))}.metric .k{font-size:14px;font-weight:900;letter-spacing:.08em;color:#b6c8dc}.mlbig{font-size:34px}.mlbig span,.target-card .v span{font-size:16px;color:#91a4bd}.compare{margin-top:8px;min-height:20px}.trend{font-weight:900;border-radius:999px;padding:3px 8px}.trend.up{background:#0d4a33;color:#b9ffdf}.trend.down{background:#5a1d27;color:#ffb3c1}.muted{color:#6f8197}.target-card{border-color:#2f6a99}.target-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.target-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.target-form input{width:110px;height:42px;font-weight:800;font-size:16px}.target-form button{height:42px;border:0;border-radius:10px;padding:0 14px;background:#1d6bdd;color:#fff;font-weight:900;cursor:pointer}.targetbar{height:18px;border-radius:999px;background:#10243b;overflow:hidden;margin-top:16px}.targetbar span{display:block;height:100%;transition:width .25s}.targetbar.good span{background:#23d18b}.targetbar.warn span{background:#ffd166}.targetbar.bad span{background:#ff5c7a}.status-card{border-left:7px solid #8793a5}.status-card.READY{border-left-color:#23d18b}.status-card.WORKING{border-left-color:#32a8ff}.status-card.ALARM{border-left-color:#ffb02e}.status-card.OFFLINE{border-left-color:#ff5c7a}.status-large{font-size:42px;font-weight:1000;margin:10px 0}.program-now{margin-top:12px;font-size:20px;font-weight:800}.READY{color:#23d18b}.WORKING{color:#32a8ff}.ALARM{color:#ffb02e}.OFFLINE{color:#ff5c7a}.tvstate{font-size:72px;font-weight:1000;text-align:center;margin:0 0 18px}.tvwrap .sixcards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1400px){.sixcards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.sixcards{grid-template-columns:1fr}.target-head{align-items:flex-start;flex-direction:column}}

/* V1.7 unified filters + reports */
.reports-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}.report-card{background:#0a1729;border:1px solid #203a5c;border-radius:16px;padding:16px}.report-card h3{margin:0 0 12px;color:#e9f2ff}.report-actions{display:flex;gap:8px;flex-wrap:wrap}.report-btn{display:inline-flex;align-items:center;justify-content:center;background:#10263d;border:1px solid #315679;color:#e8f1ff;text-decoration:none;border-radius:10px;padding:9px 12px;font-weight:800}.report-btn:hover{background:#1d6bdd;color:#fff}.toolbar label{font-weight:800;color:#cfe1f5}.toolbar select#globalPeriod{min-width:190px;height:42px;font-size:15px;font-weight:800;background:#10263d;color:#fff;border:1px solid #4e86b8;border-radius:12px}


/* Enterprise 1.8: seguimiento de pedidos */
.order-progress{display:flex;align-items:center;gap:10px;min-width:165px}
.order-progress-track{width:110px;height:12px;background:#15283d;border:1px solid #294866;border-radius:999px;overflow:hidden}
.order-progress-track span{display:block;height:100%;border-radius:999px}
.progress-0 .order-progress-track span{background:#e05252}
.progress-25 .order-progress-track span{background:#f59e42}
.progress-50 .order-progress-track span{background:#e8c94f}
.progress-75 .order-progress-track span{background:#35c477}
.progress-100 .order-progress-track span{background:#20d98b}
.progress-none{color:#91a4bd}
.order-edit{display:grid;grid-template-columns:85px 95px auto;gap:6px;min-width:290px}
.order-edit input{min-width:0;padding:7px 8px;border-radius:7px;border:1px solid #294866;background:#102033;color:#eaf4ff}
.order-edit button{padding:7px 10px;border:0;border-radius:7px;background:#2388d9;color:white;cursor:pointer}
.order-state{white-space:nowrap}

/* Enterprise 1.8.2: planificación BWKL automática e integración EXEP */
.orders-page{display:flex;flex-direction:column;gap:14px}.orders-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.orders-heading h2{margin-bottom:6px}.planning-source{display:flex;align-items:center;gap:8px;color:#b9cce0;background:#0d2036;border:1px solid #294866;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}.source-dot{width:9px;height:9px;border-radius:50%;background:#23d18b;box-shadow:0 0 0 4px rgba(35,209,139,.12)}.orders-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.order-metric{margin:0;min-height:118px}.order-metric .v{font-size:28px}.order-metric .v span{font-size:14px;color:#91a4bd}.orders-list-card{margin:0}.orders-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.orders-toolbar label{display:flex;flex-direction:column;gap:6px;color:#cfe1f5;font-size:13px;font-weight:800}.orders-toolbar select,.orders-toolbar input{height:42px;min-width:185px;background:#10263d;color:#fff;border:1px solid #4e86b8;border-radius:11px}.orders-toolbar input{min-width:220px}.orders-tablewrap{max-height:66vh}.orders-table th{top:0}.order-row{cursor:pointer}.order-row td:first-child{white-space:nowrap}.order-row:hover td{background:#153151}.row-arrow{float:right;color:#7fb8e8;font-size:23px;line-height:16px;margin-left:12px}.planning-pending{display:inline-flex;align-items:center;color:#9fb0c4;background:#14263b;border:1px dashed #45617e;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.order-state.finished{background:#0d4a33;color:#b9ffdf}.order-state.working{background:#123f67;color:#bde4ff}.order-state.pending{background:#59430f;color:#ffe7a3}.order-state.unindexed{background:#273548;color:#c3cfdd}.empty-state{padding:42px 20px;text-align:center;color:#91a4bd;border:1px dashed #294866;border-radius:14px;background:#091728}.empty-state.compact{padding:22px}.modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(1,7,15,.82);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px}.order-modal{width:min(1180px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#10233b,#081524);border:1px solid #315679;border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.55);padding:22px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #203a5c}.modal-head h2{font-size:30px;margin:4px 0 0}.modal-close{width:42px;height:42px;border:1px solid #315679;border-radius:12px;background:#132a45;color:#fff;font-size:28px;line-height:1;cursor:pointer}.modal-close:hover{background:#1d6bdd}.modal-loading{padding:70px 20px;text-align:center;color:#b9cce0;font-size:18px}.detail-progress{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0}.detail-progress .order-progress-track{width:260px;height:16px}.detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail-metrics .order-metric{background:#0a1729}.detail-section{margin-top:22px}.detail-section h3{margin-bottom:12px}.bwkl-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.bwkl-item{display:flex;flex-direction:column;gap:6px;background:#091728;border:1px solid #294866;border-radius:12px;padding:13px}.bwkl-item span{font-size:12px;color:#91a4bd}.detail-programs{max-height:48vh}.detail-programs th{top:0}.path-text{max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.detail-note{margin-top:12px;padding:12px 14px;border-left:4px solid #32a8ff;background:#0d2036;color:#b9cce0;border-radius:8px}.badge.pending{background:#59430f;color:#ffe7a3}
@media(max-width:1200px){.orders-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.orders-heading{flex-direction:column}.orders-summary,.detail-metrics{grid-template-columns:1fr}.orders-toolbar{align-items:stretch;flex-direction:column}.orders-toolbar select,.orders-toolbar input{width:100%;min-width:0}.modal-backdrop{padding:8px}.order-modal{padding:15px;border-radius:14px}.detail-progress{align-items:flex-start;flex-direction:column}.detail-progress .order-progress-track{width:200px}}

/* Enterprise 1.9.0: Biesse Rover / Nesting */
.nesting-status{border-left:7px solid #8793a5;margin-bottom:14px}.nesting-status.READY{border-left-color:#23d18b}.nesting-status.WORKING{border-left-color:#32a8ff}.nesting-status.ALARM{border-left-color:#ff5c7a}.nesting-status.OFFLINE{border-left-color:#8793a5}.nesting-current{display:flex;flex-direction:column;gap:5px;margin-top:14px;padding:12px 14px;border-radius:12px;background:#091728;border:1px solid #294866}.nesting-current strong{font-size:20px;color:#f4f9ff}.nesting-current span{font-size:12px;color:#91a4bd;word-break:break-all}.nesting-empty{margin-top:12px}.nesting-summary{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:14px}.nesting-metric{min-height:112px;margin:0}.nesting-metric .v{font-size:27px}.nesting-state-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.nest-state{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border:1px solid #294866;border-radius:11px;background:#091728}.nest-state strong{font-size:12px;border-radius:999px;padding:4px 8px}.nest-state.on strong{background:#0d4a33;color:#b9ffdf}.nest-state.off strong{background:#273548;color:#c3cfdd}.nest-state.on{border-color:#277c5a}.nesting-row td:first-child{min-width:280px}.nesting-row td{white-space:nowrap}.nesting-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.nesting-kpis>.card{margin:0;min-height:126px}.nesting-modal{width:min(1320px,97vw)}.nesting-tv-program .v{font-size:34px;word-break:break-word}.badge.bad{background:#5a1d27;color:#ffb3c1}.badge.working{background:#123f67;color:#bde4ff}.badge.finished{background:#0d4a33;color:#b9ffdf}.badge.pending{background:#59430f;color:#ffe7a3}
@media(max-width:1450px){.nesting-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.nesting-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.nesting-summary,.nesting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.nesting-state-grid{grid-template-columns:1fr}}
@media(max-width:620px){.nesting-summary,.nesting-kpis{grid-template-columns:1fr}}

/* 1.9.1 OPC notification classification */
.opc-notice{margin-top:8px;color:#ffd166}.opc-alarm-message{margin-top:10px;padding:10px 12px;border-left:4px solid #ff5c7a;background:#301622;color:#ffd6de;border-radius:8px;font-weight:800}.badge.notification{background:#273548;color:#c3cfdd}


/* Enterprise 1.9.2: colores y filtros por severidad en Errores Winline */
.alarms-page{border-left:6px solid #ff4d67}
.alarms-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.alarm-legend{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.alarm-legend span{border-radius:999px;padding:5px 9px;font-size:11px;font-weight:1000;letter-spacing:.04em}
.legend-critical{background:rgba(255,77,103,.18);color:#ff9aad;border:1px solid rgba(255,77,103,.52)}
.legend-warning{background:rgba(255,209,102,.16);color:#ffe49e;border:1px solid rgba(255,209,102,.48)}
.legend-warning86{background:rgba(50,168,255,.16);color:#a9dbff;border:1px solid rgba(50,168,255,.5)}
.legend-error{background:rgba(35,209,139,.16);color:#a8f3d2;border:1px solid rgba(35,209,139,.48)}
.alarm-filterbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:4px 0 16px}
.alarm-filter{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 11px;border:1px solid #315679;border-radius:11px;background:#0d2036;color:#cfe1f5;font-weight:900;cursor:pointer}
.alarm-filter:hover{transform:translateY(-1px);background:#153151}
.alarm-filter.active{box-shadow:0 0 0 2px rgba(255,255,255,.12) inset,0 0 0 1px currentColor}
.alarm-filter strong{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.08);font-size:12px}
.alarm-filter-dot,.alarm-type-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#8793a5;box-shadow:0 0 0 3px rgba(135,147,165,.12)}
.alarm-filter-critical .alarm-filter-dot,.alarm-type-critical .alarm-type-dot{background:#ff4d67;box-shadow:0 0 0 3px rgba(255,77,103,.16)}
.alarm-filter-warning .alarm-filter-dot,.alarm-type-warning .alarm-type-dot{background:#ffd166;box-shadow:0 0 0 3px rgba(255,209,102,.15)}
.alarm-filter-warning86 .alarm-filter-dot,.alarm-type-warning86 .alarm-type-dot{background:#32a8ff;box-shadow:0 0 0 3px rgba(50,168,255,.15)}
.alarm-filter-error .alarm-filter-dot,.alarm-type-error .alarm-type-dot{background:#23d18b;box-shadow:0 0 0 3px rgba(35,209,139,.15)}
.alarm-filter-other .alarm-filter-dot,.alarm-type-other .alarm-type-dot{background:#8793a5}
.alarm-filter-critical{color:#ff9aad}
.alarm-filter-warning{color:#ffe49e}
.alarm-filter-warning86{color:#a9dbff}
.alarm-filter-error{color:#a8f3d2}
.alarm-tablewrap{max-height:68vh}
.alarm-row td{transition:background .15s,border-color .15s}
.alarm-row td:first-child{border-left:5px solid transparent}
.alarm-critical td{background:rgba(255,77,103,.075)}
.alarm-critical td:first-child{border-left-color:#ff4d67}
.alarm-warning td{background:rgba(255,209,102,.065)}
.alarm-warning td:first-child{border-left-color:#ffd166}
.alarm-warning86 td{background:rgba(50,168,255,.075)}
.alarm-warning86 td:first-child{border-left-color:#32a8ff}
.alarm-error td{background:rgba(35,209,139,.065)}
.alarm-error td:first-child{border-left-color:#23d18b}
.alarm-other td{background:rgba(135,147,165,.045)}
.alarm-other td:first-child{border-left-color:#8793a5}
.alarm-row:hover td{filter:brightness(1.18)}
.alarm-code{font-weight:1000;letter-spacing:.02em}
.alarm-type{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:1000;border:1px solid #294866;background:#0a1729}
.alarm-type-critical{color:#ff9aad;border-color:rgba(255,77,103,.5)}
.alarm-type-warning{color:#ffe49e;border-color:rgba(255,209,102,.48)}
.alarm-type-warning86{color:#a9dbff;border-color:rgba(50,168,255,.5)}
.alarm-type-error{color:#a8f3d2;border-color:rgba(35,209,139,.48)}
.alarm-type-other{color:#c3cfdd}
@media(max-width:800px){.alarms-heading{flex-direction:column}.alarm-filter{flex:1 1 170px;justify-content:flex-start}.alarm-legend{display:none}}


/* Enterprise Web 1.9.3: orden persistente en Pedidos */
.order-activity{
  margin-top:4px;
  color:#8fa8c4;
  white-space:nowrap;
  font-weight:500;
}
.orders-toolbar label{
  min-width:150px;
}
.orders-toolbar #orderSortFilter{
  min-width:175px;
}


/* Enterprise Web 1.9.6: "Sin pedido" permanece siempre al final */
.order-row[data-unassigned="1"] td{
  opacity:.72;
  background:rgba(120,135,155,.035);
}
.order-row[data-unassigned="1"] td:first-child strong{
  color:#8fa2b9;
}


/* Enterprise Web 1.9.7: pedidos numéricos antes de etiquetas como DIVERSE */
.order-row[data-order-group="1"] td{
  background:rgba(77,126,170,.035);
}
.order-row[data-order-group="1"] td:first-child strong{
  color:#9db4ce;
}


/* Enterprise Web 1.9.8: cambio rápido de máquina */
.machine-loading{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin-top:18px;
}
.machine-loading h2{
  margin:0 0 6px;
}
.machine-spinner{
  width:42px;
  height:42px;
  border-radius:50%;
  border:4px solid rgba(78,126,170,.22);
  border-top-color:#23d18b;
  animation:machine-spin .75s linear infinite;
}
.status.CARGANDO{
  color:#b9d9ff;
  border-color:#3978ad;
  background:rgba(57,120,173,.14);
}
@keyframes machine-spin{
  to{transform:rotate(360deg)}
}


/* Enterprise Web 1.9.9: carga progresiva de Rover Nesting */
.nesting-background-load{
  display:flex;
  align-items:center;
  gap:9px;
  margin:14px 0 8px;
  padding:9px 12px;
  border:1px solid rgba(57,120,173,.35);
  border-radius:9px;
  background:rgba(57,120,173,.08);
  color:#a9c9e7;
  font-size:.9rem;
}
.mini-spinner{
  width:15px;
  height:15px;
  flex:0 0 auto;
  border-radius:50%;
  border:2px solid rgba(78,126,170,.25);
  border-top-color:#23d18b;
  animation:machine-spin .7s linear infinite;
}


/* Enterprise Web 1.10.1: gráfico de producción por barras */
.production-chart-card{
  min-width:0;
}
.production-chart{
  border:1px solid #203a5c;
  border-radius:14px;
  background:#081627;
  overflow:hidden;
}
.production-chart-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:#203a5c;
  border-bottom:1px solid #203a5c;
}
.production-chart-summary>div{
  display:flex;
  flex-direction:column;
  min-height:72px;
  padding:12px 14px;
  background:#0b1b2e;
}
.production-chart-summary span{
  color:#91a4bd;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.production-chart-summary strong{
  margin-top:4px;
  color:#eef7ff;
  font-size:20px;
}
.production-chart-summary small{
  margin-top:2px;
  color:#91a4bd;
}
.production-chart-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 8px 0;
}
.production-bars-svg{
  display:block;
  width:100%;
  height:320px;
}
.chart-grid line{
  stroke:#1c3451;
  stroke-width:1;
  stroke-dasharray:4 5;
}
.chart-grid text,
.chart-x-label,
.chart-unit{
  fill:#8ea5bf;
  font-size:12px;
}
.chart-unit{
  font-size:13px;
  font-weight:600;
}
.chart-axis{
  stroke:#3a5878;
  stroke-width:1.25;
}
.production-bar rect{
  fill:#23435f;
  transition:filter .16s ease,opacity .16s ease;
}
.production-bar.has-data rect{
  fill:url(#productionBarGradient);
}
.production-bar circle{
  fill:#7fffd3;
}
.production-bar:hover rect{
  filter:brightness(1.2);
}
.chart-value{
  fill:#dffcf3;
  font-size:11px;
  font-weight:700;
}
.production-chart-note{
  padding:0 14px 12px;
  color:#7189a4;
  font-size:11px;
}
.production-chart-empty{
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #203a5c;
  border-radius:14px;
  background:#081627;
  color:#91a4bd;
  text-align:center;
}
.production-chart-empty strong{
  color:#d8e8f8;
}
.empty-chart-icon{
  color:#23d18b;
  font-size:36px;
}
@media(max-width:700px){
  .production-chart-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .production-chart-summary strong{
    font-size:17px;
  }
}


/* Enterprise 1.10.3: exportación Excel del historial de errores */
.alarm-export-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:10px 0 4px;
}
.alarm-export-toolbar .toolbar{
  margin:0;
}
.alarm-export-btn{
  min-height:42px;
  background:linear-gradient(135deg,#146c43,#1f8f5f);
  border-color:#36b77e;
  color:#ffffff;
  box-shadow:0 5px 18px rgba(31,143,95,.18);
}
.alarm-export-btn:hover{
  background:linear-gradient(135deg,#1b8052,#26a46e);
}
.alarm-export-note{
  margin:8px 0 16px;
}
@media(max-width:700px){
  .alarm-export-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .alarm-export-btn{
    width:100%;
  }
}


/* Web 1.10.3.1: carga tolerante a tiempos de espera */
.interface-load-warning{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid #9a7228;
  border-left:5px solid #ffd166;
  border-radius:10px;
  background:rgba(154,114,40,.13);
  color:#f4deb0;
}
.interface-load-warning div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.interface-load-warning strong{
  color:#ffe39b;
}
.interface-load-warning span{
  font-size:12px;
  word-break:break-word;
}
.interface-load-warning button{
  flex:0 0 auto;
  min-height:36px;
  padding:7px 12px;
}
.status.SIN.DATOS,
.status[class~="SIN"]{
  color:#ffd166;
  border-color:#9a7228;
  background:rgba(154,114,40,.13);
}
@media(max-width:700px){
  .interface-load-warning{
    align-items:stretch;
    flex-direction:column;
  }
}


/* Enterprise 1.10.4.1: contadores de mantenimiento Winline */
.maintenance-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
}
.maintenance-page-head h2{margin-bottom:5px}
.maintenance-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:16px;
}
.maintenance-summary-card{
  min-height:105px;
  border-left:5px solid #718096;
}
.maintenance-summary-card.due{border-left-color:#ff4d67}
.maintenance-summary-card.warning{border-left-color:#ffd166}
.maintenance-summary-card.healthy{border-left-color:#23d18b}
.maintenance-summary-card.neutral{border-left-color:#52a8ff}
.maintenance-summary-card .v{margin-top:7px}
.maintenance-counter-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:14px;
}
.maintenance-counter{
  border:1px solid #294561;
  border-left:5px solid #718096;
  border-radius:13px;
  padding:15px;
  background:linear-gradient(150deg,#0d2035,#0a1728);
}
.maintenance-counter.due{border-left-color:#ff4d67}
.maintenance-counter.warning{border-left-color:#ffd166}
.maintenance-counter.healthy{border-left-color:#23d18b}
.maintenance-counter.inactive{border-left-color:#718096;opacity:.72}
.maintenance-counter-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.maintenance-counter h3{margin:3px 0 5px;font-size:17px}
.maintenance-counter code,.maintenance-raw-table code{
  color:#9db8d3;
  font-size:11px;
}
.maintenance-slot{
  color:#7f9ab5;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.maintenance-life{margin:17px 0 13px}
.maintenance-life-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.maintenance-life-head strong{font-size:24px}
.maintenance-life-head span{
  color:#8ea5bc;
  font-size:11px;
  text-transform:uppercase;
}
.maintenance-life-bar{
  height:10px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#1a3048;
}
.maintenance-life-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#718096;
}
.maintenance-life.due .maintenance-life-bar span{background:#ff4d67}
.maintenance-life.warning .maintenance-life-bar span{background:#ffd166}
.maintenance-life.healthy .maintenance-life-bar span{background:#23d18b}
.maintenance-counter-data{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.maintenance-counter-data div{
  padding:9px;
  border-radius:8px;
  background:rgba(27,57,84,.45);
}
.maintenance-counter-data span{
  display:block;
  margin-bottom:4px;
  color:#8098b1;
  font-size:10px;
  text-transform:uppercase;
}
.maintenance-counter-data strong{font-size:13px}
.maintenance-raw-table{margin-top:18px}
.badge.neutral{
  color:#c3cfdb;
  border-color:#66788c;
  background:rgba(102,120,140,.14);
}
@media(max-width:900px){
  .maintenance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .maintenance-page-head{flex-direction:column}
  .maintenance-summary{grid-template-columns:1fr 1fr}
  .maintenance-counter-data{grid-template-columns:1fr}
}

.maintenance-life-foot{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  color:#8ea5bc;
  font-size:11px;
}
.maintenance-life-foot strong{color:#dce8f3}


/* Enterprise 1.11.0: página Estadística Winline */
.statistics-page{display:flex;flex-direction:column;gap:14px}
.statistics-page>.card,.statistics-main-grid>.card{margin-bottom:0}
.statistics-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.statistics-heading h2{margin:4px 0 6px}
.statistics-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.statistics-toolbar label{display:flex;flex-direction:column;gap:6px;color:#cfe1f5;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.statistics-toolbar select{min-width:190px;height:42px;font-size:14px;font-weight:800;border-color:#4e86b8}
.statistics-toolbar button{height:42px;border:1px solid #3978ad;border-radius:10px;padding:0 15px;background:#1d6bdd;color:#fff;font-weight:900;cursor:pointer}
.statistics-start-note{display:flex;gap:10px;align-items:center;border-color:#3978ad;background:rgba(29,107,221,.1)}
.statistics-start-note strong{color:#bfe0ff}.statistics-start-note span{color:#91a4bd}
.statistics-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.statistics-metric{margin:0;min-height:124px;border-left:6px solid #4e6075}
.statistics-metric.WORKING{border-left-color:#32a8ff}.statistics-metric.LOAD_UNLOAD{border-left-color:#8b7dff}.statistics-metric.READY{border-left-color:#23d18b}.statistics-metric.ALARM{border-left-color:#ffb02e}.statistics-metric.OFFLINE{border-left-color:#ff5c7a}
.statistics-metric.UTILIZATION{border-left-color:#8b7dff}.statistics-metric.AVAILABILITY{border-left-color:#38d9c5}.statistics-metric.PROGRAMS{border-left-color:#7fb8e8}.statistics-metric.PRODUCTION{border-left-color:#23d18b}.statistics-metric.ENERGY{border-left-color:#f4c95d}
.statistics-metric .v{font-size:29px}.statistics-main-grid{align-items:stretch}.statistics-main-grid>.card{height:100%}
.statistics-distribution{display:flex;flex-direction:column;gap:14px}
.statistics-distribution-row{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(180px,3fr) 65px;gap:12px;align-items:center}
.statistics-distribution-row>div:first-child{display:grid;grid-template-columns:12px 1fr;column-gap:9px;align-items:center}
.statistics-distribution-row small{grid-column:2;color:#91a4bd;margin-top:2px}
.state-dot{width:10px;height:10px;border-radius:3px;background:#8793a5}.state-dot.WORKING{background:#32a8ff}.state-dot.LOAD_UNLOAD{background:#8b7dff}.state-dot.READY{background:#23d18b}.state-dot.ALARM{background:#ffb02e}.state-dot.OFFLINE{background:#ff5c7a}
.statistics-distribution-track{height:15px;overflow:hidden;border-radius:5px;background:#091728;border:1px solid #294866}
.statistics-distribution-track span{display:block;height:100%;min-width:1px}.statistics-distribution-track span.WORKING{background:#32a8ff}.statistics-distribution-track span.LOAD_UNLOAD{background:#8b7dff}.statistics-distribution-track span.READY{background:#23d18b}.statistics-distribution-track span.ALARM{background:#ffb02e}.statistics-distribution-track span.OFFLINE{background:#ff5c7a}
.statistics-distribution-row>b{text-align:right;color:#e9f2ff}
.statistics-stop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.statistics-stop-grid>div{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #294866;border-radius:11px;background:#091728}.statistics-stop-grid span{font-size:12px;color:#91a4bd}.statistics-stop-grid strong{font-size:22px}
.statistics-timeline{display:flex;width:100%;height:42px;overflow:hidden;border:1px solid #294866;border-radius:7px;background:#091728;margin-top:14px}
.statistics-timeline-segment{display:block;flex-basis:0;min-width:2px;border-right:1px solid rgba(7,17,31,.55)}
.statistics-timeline-segment.WORKING{background:#32a8ff}.statistics-timeline-segment.LOAD_UNLOAD{background:#8b7dff}.statistics-timeline-segment.READY{background:#23d18b}.statistics-timeline-segment.ALARM{background:#ffb02e}.statistics-timeline-segment.OFFLINE{background:#ff5c7a}
.statistics-timeline-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:11px;color:#b7c8da;font-size:12px}.statistics-timeline-legend span{display:flex;gap:7px;align-items:center}.statistics-timeline-legend i{display:block;width:12px;height:12px;border-radius:3px}.statistics-timeline-legend i.WORKING{background:#32a8ff}.statistics-timeline-legend i.LOAD_UNLOAD{background:#8b7dff}.statistics-timeline-legend i.READY{background:#23d18b}.statistics-timeline-legend i.ALARM{background:#ffb02e}.statistics-timeline-legend i.OFFLINE{background:#ff5c7a}
.statistics-chart-scroll{overflow-x:auto;border:1px solid #203a5c;border-radius:12px;background:#081627}.statistics-chart-svg{display:block;width:100%;height:300px}.statistics-chart-grid{stroke:#1f3855;stroke-width:1;stroke-dasharray:4 5}.statistics-chart-axis{stroke:#4e6c8d;stroke-width:1}.statistics-chart-y,.statistics-chart-x{fill:#91a4bd;font-size:10px}.statistics-chart-title{fill:#cfe1f5;font-size:12px;font-weight:800}.statistics-chart-bar{fill:url(#statisticsGradient,#32a8ff);fill:#32a8ff;opacity:.88}.statistics-chart-bar:hover{opacity:1;filter:brightness(1.2)}
.statistics-state-badge{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:1000;background:#26384b;color:#dbe8f6}.statistics-state-badge.WORKING{background:#123f67;color:#bde4ff}.statistics-state-badge.LOAD_UNLOAD{background:#332b70;color:#d9d3ff}.statistics-state-badge.READY{background:#0d4a33;color:#b9ffdf}.statistics-state-badge.ALARM{background:#66420d;color:#ffe0a3}.statistics-state-badge.OFFLINE{background:#5a1d27;color:#ffb3c1}
@media(max-width:1200px){.statistics-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.statistics-heading{align-items:flex-start;flex-direction:column}.statistics-card-grid{grid-template-columns:1fr}.statistics-distribution-row{grid-template-columns:1fr}.statistics-distribution-row>b{text-align:left}.statistics-stop-grid{grid-template-columns:1fr}.statistics-toolbar{width:100%}.statistics-toolbar label,.statistics-toolbar select{width:100%}}


/* Enterprise 1.12.0: Resumen Winline y hardware OPC */
.summary-winline-page{display:flex;flex-direction:column;gap:14px}
.summary-winline-page>.card{margin-bottom:0}
.hw-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.hw-page-heading h2{margin:4px 0 6px}
.hw-live-pill{padding:8px 12px;border-radius:8px;font-size:12px;font-weight:1000;letter-spacing:.05em}
.hw-live-pill.live{color:#b9ffdf;background:#0d4a33;border:1px solid #217452}
.hw-live-pill.stale{color:#ffe0a3;background:#5a3b12;border:1px solid #8f6321}
.hw-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hw-overview-grid .statistics-metric{min-height:115px}
.hw-spindle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hw-spindle-card{border:1px solid #294866;border-left:6px solid #718096;border-radius:16px;padding:17px;background:linear-gradient(155deg,#10243b,#091728);box-shadow:0 10px 28px rgba(0,0,0,.18)}
.hw-spindle-card.running{border-left-color:#32a8ff}.hw-spindle-card.stopped{border-left-color:#718096}
.hw-spindle-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.hw-spindle-card>header span{color:#8ea5bc;font-size:10px;font-weight:900;letter-spacing:.08em}
.hw-spindle-card>header h3{margin:4px 0;font-size:23px}.hw-spindle-card>header small{color:#7891aa}
.hw-run-badge{padding:6px 9px;border-radius:7px;font-size:11px}.hw-run-badge.running{color:#bde4ff;background:#123f67}.hw-run-badge.stopped{color:#c3cfdb;background:#26384b}
.hw-tool-active{margin:16px 0;padding:14px;border-radius:12px;background:#081627;border:1px solid #294866}
.hw-tool-active span,.hw-tool-active small{display:block;color:#8ea5bc;font-size:11px}.hw-tool-active strong{display:block;margin:5px 0;font-size:25px;color:#f1f8ff}
.hw-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hw-metric{padding:11px;border-radius:10px;background:rgba(25,52,79,.65);border:1px solid rgba(56,91,124,.55)}
.hw-metric span{display:block;color:#8ea5bc;font-size:10px;text-transform:uppercase}.hw-metric strong{display:block;margin-top:5px;font-size:19px}.hw-metric strong small{font-size:11px;color:#91a4bd}.hw-metric em{display:block;margin-top:4px;color:#8ea5bc;font-size:10px;font-style:normal}
.hw-temperature-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.hw-temp{padding:12px;border-radius:10px;border:1px solid #294866;background:#081627}.hw-temp>div{display:flex;justify-content:space-between;gap:10px}.hw-temp span{color:#91a4bd;font-size:11px}.hw-temp strong{font-size:18px}.hw-temp>b{display:inline-block;margin:8px 0 4px;padding:3px 7px;border-radius:6px;font-size:10px}.hw-temp small{display:block;color:#7891aa;font-size:9px}.hw-temp.normal>b{color:#b9ffdf;background:#0d4a33}.hw-temp.warning>b{color:#ffe0a3;background:#5a3b12}.hw-temp.alarm>b{color:#ffb3c1;background:#5a1d27}.hw-temp.low>b{color:#bde4ff;background:#123f67}.hw-temp.unknown>b{color:#c3cfdb;background:#26384b}
.hw-state-row{display:flex;justify-content:space-between;gap:12px;margin-top:11px;color:#91a4bd;font-size:11px}.hw-state-row b{color:#e9f2ff}.ok-text{color:#23d18b!important}.bad-text{color:#ff5c7a!important}
.hw-notice{display:flex;flex-direction:column;gap:5px;border-color:#806c2a;background:rgba(128,108,42,.12)}.hw-notice strong{color:#ffe0a3}.hw-notice span{color:#b9c6d5;font-size:13px}
@media(max-width:1150px){.hw-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hw-spindle-grid{grid-template-columns:1fr}}
@media(max-width:700px){.hw-page-heading{align-items:flex-start;flex-direction:column}.hw-overview-grid{grid-template-columns:1fr}.hw-metric-grid,.hw-temperature-grid{grid-template-columns:1fr}.hw-state-row{flex-direction:column}}


/* Enterprise 1.13.0 · historial técnico y herramientas */
.technical-history-section,.tool-history-section{display:flex;flex-direction:column;gap:14px}
.technical-section-heading,.technical-history-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.technical-section-heading h2,.technical-history-heading h2{margin:4px 0 6px}
.technical-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.technical-toolbar label{display:flex;flex-direction:column;gap:6px;color:#cfe1f5;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.technical-toolbar select{min-width:175px;height:42px;font-size:13px;font-weight:800;border-color:#4e86b8}
.technical-toolbar button{height:42px;border:1px solid #3978ad;border-radius:10px;padding:0 15px;background:#1d6bdd;color:#fff;font-weight:900;cursor:pointer}
.technical-spindle-history{margin:0}
.technical-summary-mini{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.technical-summary-mini span{display:flex;flex-direction:column;gap:3px;min-width:105px;padding:9px 11px;border:1px solid #294866;border-radius:9px;background:#091728;color:#8ea5bc;font-size:10px;text-transform:uppercase}
.technical-summary-mini b{color:#e9f2ff;font-size:14px;text-transform:none}
.technical-chart-grid{display:grid;grid-template-columns:1fr;gap:13px;margin-top:14px}
.technical-chart{border:1px solid #203a5c;border-radius:12px;background:#081627;overflow:hidden}
.technical-chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #203a5c}
.technical-chart-head>div{display:flex;gap:14px;flex-wrap:wrap;color:#9eb2c7;font-size:11px}
.technical-chart-head span{display:flex;align-items:center;gap:6px}.technical-chart-head i{width:16px;height:3px;border-radius:4px;display:block}
.technical-chart-head i.series-1{background:#32a8ff}.technical-chart-head i.series-2{background:#23d18b}
.technical-chart-scroll{overflow-x:auto}.technical-chart-svg{display:block;width:100%;height:285px}
.technical-grid{stroke:#1f3855;stroke-width:1;stroke-dasharray:4 5}.technical-axis{stroke:#4e6c8d;stroke-width:1}
.technical-y,.technical-x,.technical-title,.technical-limit-label{fill:#91a4bd;font-size:10px}.technical-title{font-weight:800;fill:#cfe1f5}
.technical-line{fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.technical-line.series-1{stroke:#32a8ff}.technical-line.series-2{stroke:#23d18b}
.technical-limit{stroke-width:1.2;stroke-dasharray:7 5}.technical-limit.warning{stroke:#ffb02e}.technical-limit.alarm{stroke:#ff5c7a}.technical-limit-label{font-size:9px}
.technical-chart-empty,.technical-loading{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;min-height:150px;color:#91a4bd}.technical-chart-empty strong{color:#dce8f3}
@media(max-width:850px){.technical-section-heading,.technical-history-heading{align-items:flex-start;flex-direction:column}.technical-summary-mini{justify-content:flex-start}.technical-toolbar,.technical-toolbar label,.technical-toolbar select{width:100%}}


/* 1.13.2 — valores instantáneos junto a los gráficos históricos */
.technical-chart-live-row{
 display:grid;
 grid-template-columns:190px minmax(0,1fr);
 gap:14px;
 align-items:stretch
}
.technical-chart-live-graph{
 min-width:0
}
.technical-chart-live-graph>.technical-chart,
.technical-chart-live-graph>.technical-chart-empty{
 height:100%
}
.technical-live-panel{
 display:flex;
 flex-direction:column;
 gap:10px;
 min-width:0;
 padding:12px;
 border:1px solid #203a5c;
 border-radius:12px;
 background:#081627
}
.technical-live-panel-single{
 justify-content:flex-start
}
.technical-live-panel-title{
 color:#7891ab;
 font-size:10px;
 font-weight:900;
 letter-spacing:.08em;
 text-transform:uppercase
}
.technical-live-value{
 display:flex;
 flex-direction:column;
 gap:5px;
 padding:12px;
 border:1px solid #294866;
 border-left:4px solid #32a8ff;
 border-radius:9px;
 background:#091728
}
.technical-live-value>span{
 color:#8ea5bc;
 font-size:10px;
 font-weight:900;
 letter-spacing:.05em;
 text-transform:uppercase
}
.technical-live-value>strong{
 color:#edf6ff;
 font-size:27px;
 line-height:1;
 font-variant-numeric:tabular-nums
}
.technical-live-value>strong small{
 color:#9eb2c7;
 font-size:12px
}
.technical-live-value>em{
 color:#91a4bd;
 font-size:10px;
 font-style:normal;
 text-transform:uppercase
}
.technical-live-value.warning{
 border-left-color:#ffb02e
}
.technical-live-value.alarm{
 border-left-color:#ff5c7a
}
.technical-live-value.low{
 border-left-color:#8b7dff
}
.technical-live-value.running{
 border-left-color:#23d18b
}
.technical-live-value.stopped,
.technical-live-value.unknown{
 border-left-color:#60748a
}
.technical-live-value.reference{
 border-left-color:#8b7dff
}
@media(max-width:900px){
 .technical-chart-live-row{
  grid-template-columns:1fr
 }
 .technical-live-panel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
 .technical-live-panel-title{
  grid-column:1/-1
 }
 .technical-live-panel-single{
  grid-template-columns:1fr
 }
}
@media(max-width:560px){
 .technical-live-panel{
  grid-template-columns:1fr
 }
 .technical-live-value>strong{
  font-size:23px
 }
}


/* Enterprise 1.14.3: días visibles y fin de semana fuera de la media sin producción */
.metric.no-work{
  border-color:#344b65;
  background:linear-gradient(180deg,rgba(19,39,61,.96),rgba(10,25,42,.96));
}
.metric .no-work-title{
  margin-top:15px;
  font-size:27px;
  line-height:1.1;
  color:#c4d2e2;
}
.metric .no-work-note{
  margin-top:8px;
  color:#91a4bd;
  font-weight:700;
}

.alarm-search-label{display:flex;flex-direction:column;gap:5px;min-width:min(420px,100%);font-size:13px;font-weight:800;color:#cfe1f5}.alarm-search-label input{height:42px;min-width:320px;background:#10263d;border:1px solid #4e86b8}.alarm-clear-search{height:42px;align-self:flex-end;background:#152a42;color:#d7e8fa;border:1px solid #315679;border-radius:10px;padding:0 14px;font-weight:800;cursor:pointer}.alarm-clear-search:hover{background:#1d6bdd}.alarm-results-summary{margin:0 0 10px;color:#b9cce0;font-size:13px}.alarm-results-summary strong{color:#fff}.alarm-export-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.alarm-export-toolbar .toolbar{margin:0}.alarm-export-btn{margin-left:auto}@media(max-width:800px){.alarm-search-label,.alarm-search-label input{min-width:100%;width:100%}.alarm-clear-search{align-self:stretch}.alarm-export-btn{margin-left:0}}
