/* 4.17.419 · Órdenes de trabajo: menú de sectores y ficha con la jerarquía de Materiales/Maquinaria */
body:not([data-route="ordenes"]) #order-sector-menu{display:none!important}
body:not([data-route="ordenes"]) #order-sector-menu{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;}
body[data-route="ordenes"] #order-sector-menu.machine-sector-menu{
  display:flex!important;
  grid-template-columns:none!important;
  gap:0!important;
  align-items:stretch!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  min-height:76px!important;
  padding:0!important;
  border:1px solid #d9e5f2!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(21,58,99,.04)!important;
}
body[data-route="ordenes"] #order-sector-menu.hidden{display:none!important}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn{
  position:relative!important;
  flex:1 0 102px!important;
  min-width:102px!important;
  min-height:74px!important;
  height:auto!important;
  margin:0!important;
  padding:8px 7px 7px!important;
  border:0!important;
  border-right:1px solid #e6eef7!important;
  border-radius:0!important;
  background:#fff!important;
  color:#25486f!important;
  box-shadow:none!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  cursor:pointer!important;
  transition:background .16s ease, box-shadow .16s ease!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn:last-child{border-right:0!important}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn:hover{
  background:color-mix(in srgb, var(--client-nav-accent) 7%, white)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--client-nav-accent) 18%, transparent)!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn.active{
  background:color-mix(in srgb, var(--client-nav-accent) 10%, white)!important;
  box-shadow:inset 0 -4px var(--client-nav-accent)!important;
  color:#143b68!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn b{
  width:31px!important;height:31px!important;display:grid!important;place-items:center!important;
  margin:0 auto 2px!important;background:none!important;border:0!important;
  color:var(--client-nav-accent)!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn b svg,body[data-route="ordenes"] #order-sector-menu .material-sector-btn b .wf-svg-icon{
  width:27px!important;height:27px!important;color:var(--client-nav-accent)!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn span{
  display:block!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  font-weight:750!important;
  letter-spacing:.01em!important;
  color:#173d6b!important;
  white-space:normal!important;
  text-align:center!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn.active span{
  color:var(--client-nav-accent)!important;
}
body[data-route="ordenes"] #order-sector-menu .material-sector-btn small{
  position:absolute!important;
  top:6px!important;right:8px!important;
  min-width:18px!important;height:16px!important;
  padding:0 5px!important;
  border-radius:8px!important;
  display:grid!important;place-items:center!important;
  font-size:9px!important;font-weight:800!important;line-height:1!important;
  color:var(--client-nav-accent)!important;
  background:color-mix(in srgb, var(--client-nav-accent) 12%, white)!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:12px!important;
  min-height:80px!important;
  height:auto!important;
  padding:6px 8px 6px 12px!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu > div:not(#order-sector-menu){
  flex:0 0 auto!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu.machine-sector-menu{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  grid-auto-flow:column!important;
  flex:1 1 auto!important;
  margin:0 0 0 auto!important;
  max-width:880px!important;
  min-height:66px!important;
  height:66px!important;
  width:auto!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn{
  flex:1 1 0!important;
  min-width:88px!important;
  width:auto!important;
  min-height:0!important;
  height:100%!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu{flex-wrap:wrap!important}
body[data-route="ordenes"] #order-sector-context #order-sector-menu.machine-sector-menu{
    flex:1 1 100%!important;max-width:none!important;overflow-x:auto!important;
  }
body[data-route="ordenes"] #order-sector-context.has-sector-menu > div:nth-child(2):not(#order-sector-menu){
  display:flex!important;flex-direction:column!important;gap:1px!important;min-width:160px!important;
}
body[data-route="ordenes"] #order-sector-context .material-sector-context-icon{
  width:40px!important;height:40px!important;min-width:40px!important;
}
body[data-route="ordenes"] #order-sector-context .material-sector-context-icon svg,body[data-route="ordenes"] #order-sector-context .material-sector-context-icon .wf-svg-icon{
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu > div:nth-child(2) strong{
  font-size:18px!important;line-height:1.15!important;font-weight:700!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu > div:nth-child(2) span{
  font-size:10px!important;margin-top:2px!important;
}
body:not([data-route="ordenes"]) #order-sector-context{display:none!important}
body[data-route="ordenes"] #order-sector-context{
  background:#fff!important;border:1px solid #cddff0!important;border-radius:7px!important;
  margin:0 0 10px!important;color:#123b6d!important;
}
body[data-route="ordenes"] #order-sector-context .material-sector-context-icon{
  border-radius:50%!important;display:grid!important;place-items:center!important;color:#fff!important;flex:0 0 auto!important;
}
body[data-route="ordenes"] #order-sector-context .material-sector-context-icon svg{color:#fff!important}
body[data-route="ordenes"] #order-sector-context strong{color:#123b6d!important}
body[data-route="ordenes"] #order-sector-context > div:nth-child(2) span{color:#64809d!important}
body[data-route="ordenes"] #order-sector-context #order-sector-menu.machine-sector-menu{
  flex:1 1 auto!important;
  max-width:1180px!important;
  height:72px!important;
  min-height:72px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn{
  flex:1 1 0!important;
  min-width:118px!important;
  padding:8px 14px 7px!important;
  gap:5px!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu{
  gap:24px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu.machine-sector-menu{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  margin-left:auto!important;
  height:66px!important;
  min-height:66px!important;
  overflow-x:auto!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn{
  flex:0 0 120px!important;
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
  padding:6px 8px 5px!important;
  gap:4px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn span{
  font-family:"Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  font-weight:400!important;
  font-size:11px!important;
  letter-spacing:0!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn.active span{
  font-family:"Segoe UI","Segoe UI Bold",Arial,sans-serif!important;
  font-weight:700!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-weight:600!important;
  font-size:11px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn.active span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-weight:700!important;
  font-size:12px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-weight:500!important;
  font-size:12px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn.active span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-weight:650!important;
  font-size:12px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:500!important;
  color:#17325c!important;
  -webkit-text-stroke:0!important;
  text-shadow:none!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn.active span{
  font-weight:650!important;
  color:var(--client-nav-accent,#0b4b9c)!important;
}
#order-sector-menu .material-sector-btn > b.wf-has-picto{
  width:34px!important;height:34px!important;min-width:34px!important;margin:0 auto!important;
  background:none!important;border:0!important;
}
body[data-route="ordenes"] #order-sector-context.has-sector-menu{
  height:auto!important;min-height:104px!important;align-items:center!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu.machine-sector-menu{
  height:92px!important;min-height:92px!important;max-height:none!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn{
  flex:0 0 120px!important;width:120px!important;min-width:120px!important;max-width:120px!important;
  height:100%!important;padding:7px 6px 6px!important;gap:5px!important;justify-content:center!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn > b{
  width:50px!important;height:50px!important;min-width:50px!important;margin:0 auto!important;
  display:grid!important;place-items:center!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn img.nav{
  width:50px!important;height:50px!important;
}
body[data-route="ordenes"] #order-sector-context #order-sector-menu .material-sector-btn > b svg{
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn.active{
  background:color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 12%, white)!important;
  box-shadow:inset 0 -4px 0 var(--nav-pic,var(--client-nav-accent,#1477f2))!important;
}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn.active span{
  color:color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 70%, #0b2240)!important;
}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn:hover:not(.active){
  box-shadow:inset 0 -3px 0 var(--nav-pic,var(--client-nav-accent,#1477f2))!important;
}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn{background:#fff!important;box-shadow:none!important;flex:1 0 142px!important;min-width:142px!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn:hover:not(.active){background:color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 7%, white)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 18%, transparent)!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn span{color:#173d6b!important;font-weight:700!important;font-size:12px!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn :is(img.nav,b){opacity:.55!important;filter:saturate(.35)!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn:is(:hover,.active) :is(img.nav,b){opacity:1!important;filter:none!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn.active{background:color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 12%, white)!important;box-shadow:inset 0 -4px 0 var(--nav-pic,var(--client-nav-accent,#1477f2))!important}
html body[data-route] #order-sector-context #order-sector-menu .machine-sector-btn.material-sector-btn.active span{color:color-mix(in srgb, var(--nav-pic,var(--client-nav-accent,#1477f2)) 70%, #0b2240)!important;font-weight:800!important}
/* 4.17.410 · copia para Maquinaria. 4.17.389 · ficha de producto: cabecera y botones como Materiales */
#record-modal.order-mode .record-dialog-head{height:66px;min-height:66px;padding:10px 18px;background:#fff;border-bottom:1px solid #d7e5f4}
#record-modal.order-mode .record-dialog-actions{position:static;display:flex;justify-content:flex-end;padding:9px 0 0;background:#f4f8fc;border-top:1px solid #d7e5f4}
#record-modal.order-mode .record-head-title,#record-modal.order-mode .record-head-title{align-items:center;gap:16px}
#record-modal.order-mode .record-back-list,#record-modal.order-mode .record-back-list{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#0878ec;font:700 12px/1 'Segoe UI',Arial,sans-serif;cursor:pointer;padding:8px 4px;white-space:nowrap}
#record-modal.order-mode .record-back-list:hover,#record-modal.order-mode .record-back-list:hover{color:#075fb8;text-decoration:underline}
#record-modal.order-mode .record-head-title>div,#record-modal.order-mode .record-head-title>div{display:flex;align-items:center;gap:10px;min-width:0}
#record-modal.order-mode .record-head-actions>.btn,#record-modal.order-mode .record-head-actions>.btn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 16px;border-radius:4px;font:700 11px/1 'Segoe UI',Arial,sans-serif}
#record-modal.order-mode .record-head-title,#record-modal.order-mode .record-head-title{
  gap:18px!important;
  align-items:center!important;
}
#record-modal.order-mode .record-back-list,#record-modal.order-mode .record-back-list{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:0 14px!important;
  border:1px solid #a9c9ed!important;
  border-radius:4px!important;
  background:#f4f8fd!important;
  color:#0b5db7!important;
  font:700 12.5px/1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  text-decoration:none!important;
}
#record-modal.order-mode .record-back-list svg,#record-modal.order-mode .record-back-list svg{
  width:17px!important;
  height:17px!important;
}
#record-modal.order-mode .record-back-list:hover,#record-modal.order-mode .record-back-list:hover{
  color:#075fb8!important;
  background:#eaf3fd!important;
  border-color:#7eafe4!important;
  border-radius:4px!important;
  text-decoration:none!important;
}
#record-modal.order-mode .record-head-actions,#record-modal.order-mode .record-head-actions{
  gap:8px!important;
}
#record-modal.order-mode .record-head-actions>.btn,#record-modal.order-mode .record-head-actions>.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:38px!important;
  min-width:132px!important;
  padding:0 16px!important;
  border-radius:4px!important;
  box-shadow:none!important;
  font:700 11.5px/1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  letter-spacing:.01em!important;
  cursor:pointer!important;
}
#record-modal.order-mode #record-head-cancel,#record-modal.order-mode #record-head-cancel{
  border:1px solid #a9c9ed!important;
  background:#f4f8fd!important;
  color:#0b5db7!important;
}
#record-modal.order-mode #record-head-cancel:hover,#record-modal.order-mode #record-head-cancel:hover{
  background:#eaf3fd!important;
  border-color:#7eafe4!important;
}
#record-modal.order-mode #record-head-save:not(.is-dirty),#record-modal.order-mode #record-head-save:not(.is-dirty){
  border:1px solid #76c997!important;
  background:#effbf4!important;
  color:#098644!important;
}
#record-modal.order-mode #record-head-save:hover:not(.is-dirty),#record-modal.order-mode #record-head-save:hover:not(.is-dirty){
  background:#e2f7eb!important;
  border-color:#55b77a!important;
}
#record-modal.order-mode .record-head-actions>.btn svg,#record-modal.order-mode .record-head-actions>.btn svg{
  width:16px!important;
  height:16px!important;
}
#record-modal.order-mode .record-head-actions,#record-modal.order-mode .record-head-actions{
  flex:0 0 auto!important;
  margin-left:auto!important;
}
#record-modal.order-mode .record-head-title{display:flex!important;align-items:center!important}
#record-modal.order-mode .record-dialog-actions,#record-modal.order-mode #record-close{display:none!important}
#record-modal.order-mode #record-mode{display:none!important}
#record-modal.order-mode .record-head-actions{display:flex!important;align-items:center;gap:8px}
#record-modal.order-mode #record-head-save{order:2}
#record-modal.order-mode #record-head-save-exit{order:3}
#record-modal.order-mode #record-head-cancel{order:4}
#record-modal.order-mode #record-close{order:6}
.record-modal.order-mode .record-dialog-head{
  min-height:62px;
  padding:12px 18px;
  flex:0 0 auto;
}
.record-modal.order-mode .record-dialog-head small{
  font-size:10px;
  letter-spacing:.2px;
}
.record-modal.order-mode .record-dialog-head h2{
  font-size:22px;
  margin:2px 0 0;
}
#record-modal.order-mode .record-dialog-head{
  min-height:62px!important;
  padding:12px 18px!important;
  flex:0 0 auto!important;
}
#record-modal.order-mode .record-dialog-head h2{
  font-size:22px!important;
}
#record-modal.order-mode .record-dialog-head{min-height:64px;padding:10px 16px;gap:12px}
#record-modal.order-mode .record-head-title{align-items:center;gap:16px}
#record-modal.order-mode .record-back-list{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#0878ec;font:700 12px/1 'Segoe UI',Arial,sans-serif;cursor:pointer;padding:8px 4px;white-space:nowrap}
#record-modal.order-mode .record-back-list:hover{color:#075fb8;text-decoration:underline}
#record-modal.order-mode .record-head-title>div{display:flex;align-items:center;gap:10px;min-width:0}
#record-modal.order-mode .record-dialog-head small{margin:0;color:#0878ec;font-size:10px;font-weight:800;letter-spacing:.02em}
#record-modal.order-mode .record-dialog-head h2{font-size:20px;line-height:1.1;margin:0;color:#0b2d5c;font-weight:700}
#record-modal.order-mode .record-head-actions>.btn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 16px;border-radius:4px;font:700 11px/1 'Segoe UI',Arial,sans-serif}
#record-modal.order-mode .record-dialog-head{
  min-height:76px!important;
  padding:12px 20px!important;
  gap:16px!important;
  border-bottom:1px solid #d7e5f4!important;
  background:#fff!important;
}
#record-modal.order-mode .record-head-title{
  gap:18px!important;
  align-items:center!important;
}
#record-modal.order-mode .record-back-list{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:0 14px!important;
  border:1px solid #a9c9ed!important;
  border-radius:4px!important;
  background:#f4f8fd!important;
  color:#0b5db7!important;
  font:700 12.5px/1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  text-decoration:none!important;
}
#record-modal.order-mode .record-back-list svg{
  width:17px!important;
  height:17px!important;
}
#record-modal.order-mode .record-back-list:hover{
  color:#075fb8!important;
  background:#eaf3fd!important;
  border-color:#7eafe4!important;
  border-radius:4px!important;
  text-decoration:none!important;
}
#record-modal.order-mode .record-dialog-head small{
  display:block!important;
  margin:0 0 3px!important;
  color:#0878ec!important;
  font:800 10px/1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  letter-spacing:.04em!important;
}
#record-modal.order-mode .record-dialog-head small:empty{display:none!important}
#record-modal.order-mode .record-dialog-head h2{
  margin:0!important;
  color:#0b2d5c!important;
  font:700 23px/1.1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  white-space:nowrap!important;
}
#record-modal.order-mode .record-head-actions{
  gap:8px!important;
}
#record-modal.order-mode .record-head-actions>.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:38px!important;
  min-width:132px!important;
  padding:0 16px!important;
  border-radius:4px!important;
  box-shadow:none!important;
  font:700 11.5px/1 "Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  letter-spacing:.01em!important;
  cursor:pointer!important;
}
#record-modal.order-mode .record-head-actions>.btn svg{
  width:16px!important;
  height:16px!important;
}
#record-modal.order-mode .record-head-actions{
  flex:0 0 auto!important;
  margin-left:auto!important;
}
#record-modal.order-mode .record-dialog-head h2#record-title{font-size:20px!important;line-height:1.1!important;color:#0b2d5c!important;font-weight:700!important;font-family:"Segoe UI",Arial,sans-serif!important}
#record-modal.order-mode .record-dialog-actions{display:none!important}
#record-modal.order-mode #record-head-cancel{order:3}#record-modal.order-mode #record-head-save{order:1}#record-modal.order-mode #record-head-save-exit{order:2}#record-modal.order-mode #record-close{display:none!important}
/* 4.17.394 · ficha de producto con la jerarquía de Clientes */
#record-modal.order-mode #record-fields{gap:10px!important;padding:10px 2px 30px!important}
#record-modal.order-mode #record-fields>*{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#record-modal.order-mode .material-section{background:#fff;border:1px solid #cfe0f1;border-radius:4px}
#record-modal.order-mode .material-section .client-section-title{display:flex!important;align-items:center;gap:10px;padding:7px 12px!important;min-height:36px;background:#eaf2fc!important;font:700 13px 'Segoe UI',Arial,sans-serif!important;color:#0b2d5c!important}
#record-modal.order-mode .wf-pr-secpic{width:24px;height:24px;object-fit:contain}
#record-modal.order-mode .wf-pr-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px 10px!important;padding:10px 12px 12px!important}
#record-modal.order-mode .wf-pr-grid .field-group{gap:3px!important;margin:0!important}
#record-modal.order-mode .wf-pr-grid .field-group>span{font-size:10px!important;color:#34495e;text-transform:uppercase;letter-spacing:.1px}
#record-modal.order-mode .wf-pr-grid input,#record-modal.order-mode .wf-pr-grid select{height:34px!important;min-height:0!important;padding:0 10px!important;font-size:12.5px!important;border:1px solid #c9d8e8!important;border-radius:4px!important;box-shadow:0 1px 2px rgba(20,60,110,.06)}
#record-modal.order-mode .wf-pr-grid .wf-pr-wide{grid-column:span 2}
#record-modal.order-mode .wf-pr-combo>button{height:34px;border-radius:0 4px 4px 0}
#record-modal.order-mode .wf-pr-combo input{border-radius:4px 0 0 4px!important}
#record-modal.order-mode #product-hero .product-hero{min-height:64px;padding:10px 14px}
#record-modal.order-mode #product-hero .product-avatar{width:48px;height:48px;font-size:16px}
#record-modal.order-mode #product-hero .product-identity strong{font-size:17px}
#record-modal.order-mode .wf-pr-titsec{display:inline-block;vertical-align:middle;margin-left:12px;padding:5px 12px;border-radius:4px;font:800 12px 'Segoe UI',Arial;letter-spacing:.3px;color:var(--c);background:color-mix(in srgb,var(--c) 12%,white);border:1px solid color-mix(in srgb,var(--c) 35%,white)}
/* composición */
#record-modal.order-mode .wf-cp{padding:0!important}
#record-modal.order-mode .wf-pr-medidas{padding:8px 12px 2px!important;font-size:11px}
#record-modal.order-mode .wf-cp-row{padding:8px 12px!important;gap:10px!important}
#record-modal.order-mode .wf-cp-h{flex:0 0 130px!important;width:130px!important;font-size:11.5px!important}
#record-modal.order-mode .wf-cp-col>.wf-cp-h{flex:0 0 auto!important;width:auto!important}
#record-modal.order-mode .wf-cp-f{width:110px;gap:3px}#record-modal.order-mode .wf-cp-f span{font-size:10px!important;text-transform:uppercase;color:#34495e}
#record-modal.order-mode .wf-cp-grow{flex:1}
#record-modal.order-mode .wf-cp input,#record-modal.order-mode .wf-cp select{height:32px!important;min-height:0!important;padding:0 8px!important;font-size:12px!important;border-radius:4px}
#record-modal.order-mode .wf-cp-extras{padding-left:142px!important;gap:4px 14px!important;margin-top:4px}
#record-modal.order-mode .wf-cp-x{padding:3px 8px!important;grid-template-columns:minmax(140px,1fr) 128px 56px 62px 78px 70px 20px!important}
#record-modal.order-mode .wf-cp-x input,#record-modal.order-mode .wf-cp-x select{height:28px!important;font-size:11.5px!important}
#record-modal.order-mode .wf-cp-o{padding-left:142px!important;margin-top:4px}
#record-modal.order-mode .wf-cp-total{padding:10px 14px!important;font-size:12.5px!important}#record-modal.order-mode .wf-cp-total b{font-size:17px!important}
/* precio */
#record-modal.order-mode #wf-pr-precio{padding:4px 12px 10px}
#record-modal.order-mode .wf-pr-precio-top{padding:8px 2px 10px!important;gap:28px!important}
#record-modal.order-mode .wf-pr-precio-top b{font-size:17px!important}
#record-modal.order-mode .wf-pr-precio-top input,#record-modal.order-mode .wf-pr-tar input{height:30px;padding:0 8px;border:1px solid #c9d8e8;border-radius:4px}
#record-modal.order-mode .wf-pr-tar th{padding:6px 10px!important}
#record-modal.order-mode .wf-pr-tar td{padding:5px 10px!important;font-size:12.5px!important}
/* 4.17.395 · sombras como Clientes, info general fija al hacer scroll, semibold en composición */
#record-modal.order-mode .material-section{box-shadow:0 1px 4px rgba(16,55,100,.10)}
#record-modal.order-mode .wf-pr-grid input,#record-modal.order-mode .wf-pr-grid select,#record-modal.order-mode .wf-cp input,#record-modal.order-mode .wf-cp select,#record-modal.order-mode .wf-pr-precio-top input,#record-modal.order-mode .wf-pr-tar input{box-shadow:0 2px 4px rgba(16,55,100,.13)!important;border-color:#c3d4e7!important}
#record-modal.order-mode .wf-pr-combo>button{box-shadow:0 2px 4px rgba(16,55,100,.13)}
#record-modal.order-mode #record-fields>section.material-section:first-of-type{position:sticky!important;top:-10px;z-index:30;box-shadow:0 6px 14px rgba(16,55,100,.16)}
#record-modal.order-mode .wf-cp-h{font-weight:600!important}
#record-modal.order-mode .wf-cp-tot,#record-modal.order-mode .wf-cp-xt,#record-modal.order-mode .wf-cp-total,#record-modal.order-mode .wf-cp-total b{font-weight:600!important}
/* 4.17.397 · ficha de producto en una sola pantalla */
#record-modal.order-mode #product-hero .product-hero{min-height:0!important;padding:6px 12px!important}
#record-modal.order-mode #product-hero .product-avatar{width:38px!important;height:38px!important;font-size:14px!important}
#record-modal.order-mode #product-hero .product-identity strong{font-size:15px!important}
#record-modal.order-mode #record-fields{gap:8px!important;padding:6px 2px 12px!important}
#record-modal.order-mode #record-fields>section.material-section:first-of-type{top:-6px}
#record-modal.order-mode .material-section .client-section-title{min-height:30px!important;padding:4px 12px!important;font-size:12.5px!important}
#record-modal.order-mode .wf-pr-secpic{width:20px!important;height:20px!important}
#record-modal.order-mode .wf-pr-grid{gap:5px 10px!important;padding:6px 12px 8px!important}
#record-modal.order-mode .wf-pr-grid .field-group>span{font-size:9.5px!important}
#record-modal.order-mode .wf-pr-grid input,#record-modal.order-mode .wf-pr-grid select,#record-modal.order-mode .wf-pr-combo>button{height:30px!important;font-size:12px!important}
#record-modal.order-mode .wf-pr-grid label:has([name="notas"]){grid-column:span 3!important}
#record-modal.order-mode .wf-pr-medidas{padding:4px 12px 0!important}
#record-modal.order-mode .wf-cp-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0 14px;align-items:start}
#record-modal.order-mode .wf-cp-left,#record-modal.order-mode .wf-cp-right{min-width:0}
#record-modal.order-mode .wf-cp-right{border-left:1px solid #e3ecf6}
#record-modal.order-mode .wf-cp-row{padding:5px 10px!important;gap:8px!important}
#record-modal.order-mode .wf-cp-h{flex:0 0 96px!important;width:96px!important;font-size:11px!important}
#record-modal.order-mode .wf-cp-f{width:84px!important}
#record-modal.order-mode .wf-cp-f span{font-size:9.5px!important}
#record-modal.order-mode .wf-cp input,#record-modal.order-mode .wf-cp select{height:28px!important;font-size:11.5px!important}
#record-modal.order-mode .wf-cp-calc{width:auto!important;min-width:70px;font-size:10.5px!important}
#record-modal.order-mode .wf-cp-tot{width:78px!important;font-size:12px!important}
#record-modal.order-mode .wf-cp-extras{grid-template-columns:1fr!important;padding-left:0!important;gap:3px!important;margin-top:3px!important}
#record-modal.order-mode .wf-cp-x{padding:1px 6px!important;grid-template-columns:minmax(120px,1fr) 124px 50px 56px 72px 64px 18px!important}
#record-modal.order-mode .wf-cp-x input,#record-modal.order-mode .wf-cp-x select{height:25px!important;font-size:11px!important}
#record-modal.order-mode .wf-cp-chk{font-size:11px!important}
#record-modal.order-mode .wf-cp-o{padding-left:0!important;margin-top:3px!important}
#record-modal.order-mode .wf-cp-foot{display:grid;grid-template-columns:260px 1fr;align-items:stretch;border-top:2px solid #cfe0f3}
#record-modal.order-mode .wf-cp-foot .wf-cp-total{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;border-top:0!important;padding:8px 14px!important;font-size:11px!important}
#record-modal.order-mode .wf-cp-foot .wf-cp-total b{margin:0!important;font-size:20px!important}
#record-modal.order-mode #wf-pr-precio{padding:0!important}
#record-modal.order-mode #wf-pr-precio .wf-cp-row{padding:6px 10px!important}
#record-modal.order-mode .wf-pv{padding-left:0!important;gap:8px!important;margin-top:4px!important}
#record-modal.order-mode .wf-pv-row{grid-template-columns:auto 1fr 1fr!important;padding:4px 8px!important;gap:4px 10px!important}
#record-modal.order-mode .wf-pv-row span{font-size:12px!important}
#record-modal.order-mode .wf-pv-iva input{height:26px!important}
#record-modal.order-mode #record-fields .wf-pr-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
#record-modal.order-mode #record-fields .wf-pr-grid .wf-pr-wide{grid-column:span 2!important}
#record-modal.order-mode #record-fields .wf-pr-grid label:has([name="notas"]){grid-column:span 3!important}
    #record-modal.order-mode .wf-pr-empty{color:#7890aa;text-align:center;padding:16px}
    #record-modal.order-mode .wf-kc-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
    #record-modal.order-mode .wf-kc{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #cfe0f1;border-radius:6px;background:#fff;box-shadow:0 1px 4px rgba(16,55,100,.10);min-width:0}
    #record-modal.order-mode .wf-kc img{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
    #record-modal.order-mode .wf-kc div{min-width:0}#record-modal.order-mode .wf-kc small{display:block;font-size:9.5px;color:#51627a;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #record-modal.order-mode .wf-kc b{display:block;font-size:19px;font-weight:600;color:#0b2d5c;white-space:nowrap}
    #record-modal.order-mode .wf-kc em{display:block;font-style:normal;font-size:9.5px;color:#7890aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #record-modal.order-mode .wf-kc.main{border-color:#1477f2;background:#f3f8ff}
#record-modal.order-mode .ot-tabs{margin:8px 0 0}
#record-modal.order-mode #machine-tab-content{display:flex;flex-direction:column;gap:10px;padding-top:10px}
#record-modal.order-mode #order-hero .product-sector-chip{display:none!important}
#record-modal.order-mode .wf-mq-prod{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;padding:10px 12px}
#record-modal.order-mode .wf-mq-h{display:flex;align-items:center;gap:10px;font:600 11.5px 'Segoe UI',Arial;color:#0b2d5c;margin-bottom:6px}
#record-modal.order-mode .wf-mq-h i{font-weight:400;font-style:normal;color:#7890aa;font-size:10.5px}
#record-modal.order-mode .wf-mq-h button,#record-modal.order-mode .wf-mq-modo button,#record-modal.order-mode .wf-mq-cr button{border:1px solid #bcd3ee;background:#fff;color:#0b5cbf;font:700 10px 'Segoe UI',Arial;padding:5px 9px;cursor:pointer;border-radius:3px}
#record-modal.order-mode .wf-mq-modo button,#record-modal.order-mode .wf-mq-cr button{border:0;color:#c43;font-size:13px}
#record-modal.order-mode .wf-mq-modo{display:grid;grid-template-columns:1fr 110px 170px 24px;gap:8px;align-items:center;margin-bottom:5px}
#record-modal.order-mode .wf-mq-modo label{display:flex;align-items:center;gap:6px;font-size:11px;color:#51627a}
#record-modal.order-mode .wf-mq-prod input{height:30px;padding:0 8px;border:1px solid #c3d4e7;border-radius:4px;box-shadow:0 2px 4px rgba(16,55,100,.13);font-size:12px;min-width:0;width:100%;box-sizing:border-box}
#record-modal.order-mode .wf-mq-tin .field-group{display:flex;flex-direction:column;gap:3px}#record-modal.order-mode .wf-mq-tin .field-group span{font-size:9.5px;color:#34495e}
#record-modal.order-mode .wf-mq-tin small{display:block;color:#7890aa;font-size:10.5px;margin-top:6px}
#record-modal.order-mode .wf-mq-kpi{padding:0 12px 12px}
#record-modal.order-mode .wf-kc em label{display:inline-flex;align-items:center;gap:4px}#record-modal.order-mode .wf-kc em input{width:64px;height:20px;padding:0 4px;border:1px solid #c3d4e7;border-radius:3px;font-size:10px}
#record-modal.order-mode .wf-mq-cr{display:grid;grid-template-columns:minmax(180px,2fr) 120px 110px 90px 100px 130px 100px 28px;gap:8px;align-items:center;padding:6px 12px;border-bottom:1px solid #edf2f8;font-size:12px}
#record-modal.order-mode .wf-mq-cr b{font-weight:600}#record-modal.order-mode .wf-mq-ch{background:#eef4fb;font:600 10px 'Segoe UI',Arial;color:#51627a}
#record-modal.order-mode .wf-mq-cr label{display:flex;align-items:center;gap:4px;font-size:10.5px;color:#51627a}#record-modal.order-mode .wf-mq-cr label input{width:60px;height:26px;padding:0 6px;border:1px solid #c3d4e7;border-radius:4px}
#record-modal.order-mode .wf-mq-cr .low{color:#c43;font-weight:700}#record-modal.order-mode .wf-mq-cr .ok{color:#0b6b37}
#record-modal.order-mode .wf-mq-link{display:flex;gap:10px;padding:10px 12px}#record-modal.order-mode .wf-mq-link select{flex:1;height:34px;border:1px solid #c3d4e7;border-radius:4px;padding:0 8px}
#record-modal.order-mode .wf-pr-empty{padding:12px;color:#7890aa;text-align:center;font-size:12px}
#wf-order-title-picto{width:42px;height:42px;object-fit:contain}
#record-modal.order-mode .material-section,#record-modal.order-mode .material-fields{min-height:0!important;height:auto!important}
/* 4.17.413 · pestañas de la ficha = mismas reglas que Materiales */
#record-modal.order-mode .material-tabs{display:flex!important;height:auto!important;border:1px solid #d9e5f2;border-radius:6px;overflow:hidden;background:#fff;margin:10px 0}
#record-modal.order-mode .material-tab{flex:1 1 0!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:8px 6px 6px!important;height:74px!important;background:#fff!important;border:0!important;border-right:1px solid #e6eef7!important;color:#17385e!important;font:600 12px "Segoe UI",Arial!important;cursor:pointer}
#record-modal.order-mode .material-tab:last-child{border-right:0!important}
#record-modal.order-mode .material-tab > b{width:38px;height:38px;display:grid;place-items:center}
#record-modal.order-mode .material-tab > b img{width:38px;height:38px;opacity:.6;filter:saturate(.45);transition:opacity .15s,filter .15s}
#record-modal.order-mode .material-tab:hover > b img,#record-modal.order-mode .material-tab.active > b img{opacity:1;filter:none}
#record-modal.order-mode .material-tab.active{background:#eaf7ef!important;box-shadow:inset 0 -3px #12a150!important;color:#0b8f4a!important}
#record-modal.order-mode .material-tab:hover{box-shadow:inset 0 -3px #1477f2!important}
#record-modal.order-mode #order-hero .material-tabs2{display:flex!important;flex:0 1 auto;gap:0;border:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;flex-wrap:nowrap}
#record-modal.order-mode #order-hero .material-tabs2 .client-tab{flex:0 0 auto;min-width:96px;padding:6px 10px}
#record-modal.order-mode #order-hero .material-tabs2{order:3;width:100%;flex-wrap:wrap}
#record-modal.order-mode #order-hero .material-tabs2{margin-left:auto!important;flex:0 0 auto!important}
#record-modal.order-mode #order-hero .material-tabs2 .client-tab{min-width:0!important;width:auto!important;padding:6px 12px!important}
#record-modal.order-mode #order-hero .material-tabs2 .client-tab span{white-space:nowrap;font-size:12px}
#record-modal.order-mode #order-hero .material-tabs2{order:3;width:100%;justify-content:flex-end;flex-wrap:wrap}
#record-modal.order-mode #order-hero .material-tabs2 > .client-tab.material-tab{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;padding:6px 14px!important;overflow:visible!important}
#record-modal.order-mode #order-hero .material-tabs2 > .client-tab.material-tab span{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;width:auto!important;font-size:11.5px!important}
#record-modal.order-mode #order-hero .material-tabs2 > .client-tab.material-tab{flex:0 0 142px!important;width:142px!important;min-width:142px!important;max-width:142px!important;padding:6px 4px!important}
#record-modal.order-mode #order-hero .material-tabs2{display:flex!important;margin-left:auto!important;border:0!important;background:transparent!important;padding:0!important}
#record-modal.order-mode .material-section,#record-modal.order-mode .material-fields{min-height:0!important;height:auto!important}
#record-modal.order-mode #order-hero{overflow:visible!important}
#record-modal.order-mode #order-hero .product-hero{display:flex!important;align-items:center;gap:14px;padding:6px 14px!important}
#record-modal.order-mode #order-hero .product-identity{flex:1 1 auto!important;min-width:200px}
#record-modal.order-mode #order-hero .product-identity strong{white-space:nowrap}
#record-modal.order-mode #order-hero .material-tabs2{flex:0 0 auto!important}
#record-modal.order-mode #order-hero > .ot-tabs.material-tabs2{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;margin:0 0 0 auto!important;justify-content:flex-end!important;grid-template-columns:none!important}
/* 4.17.415 · rejilla de 8 columnas en la ficha de máquina */
#record-modal.order-mode #record-fields .wf-pr-grid.wf-mq-g8{grid-template-columns:repeat(8,minmax(0,1fr))!important}
#record-modal.order-mode #record-fields .wf-pr-grid .wf-mq-s2{grid-column:span 2!important}
#record-modal.order-mode #record-fields .wf-pr-grid .wf-mq-full{grid-column:1 / -1!important}
/* 4.17.416 · NUEVO en la cabecera y cuaderno de averías */
#record-modal:not(.order-mode) #wf-mq-nuevo{display:none!important}
#record-modal.order-mode #wf-mq-nuevo{order:0;height:38px;padding:0 16px;border:1px solid #9ad7b0;background:#effaf3;color:#0b8f4a;font:700 11px 'Segoe UI',Arial;border-radius:4px;cursor:pointer}
#record-modal.order-mode .wf-av{padding:6px 12px 12px}
#record-modal.order-mode .wf-av-r{display:grid;grid-template-columns:140px 2fr 2fr 150px 120px 28px;gap:8px;align-items:start;padding:5px 0;border-bottom:1px solid #edf2f8}
#record-modal.order-mode .wf-av-hd{font:600 10px 'Segoe UI',Arial;color:#51627a;background:#eef4fb;padding:6px 4px}
#record-modal.order-mode .wf-av-r input,#record-modal.order-mode .wf-av-r select,#record-modal.order-mode .wf-av-r textarea{width:100%;box-sizing:border-box;border:1px solid #c3d4e7;border-radius:4px;box-shadow:0 2px 4px rgba(16,55,100,.13);font:12px 'Segoe UI',Arial;padding:6px 8px;min-height:30px;resize:vertical}
#record-modal.order-mode .wf-av-r button{border:0;background:none;color:#c43;font-size:13px;cursor:pointer;margin-top:6px}
#record-modal.order-mode .wf-av-r.ok textarea,#record-modal.order-mode .wf-av-r.ok input{background:#f2fbf5}
#record-modal.order-mode .wf-av .wf-mq-h button{margin-left:auto}

#record-modal.order-mode .ot-top-actions{display:none!important}
#record-modal.order-mode #order-hero{display:flex!important;flex-direction:row!important;align-items:center;gap:14px;padding:6px 14px!important;margin-top:8px;border:1px solid #cfe0f1;border-radius:6px;background:#fff}
#record-modal.order-mode #order-hero .ot-identity{flex:1 1 auto;min-width:220px}
#record-modal.order-mode #order-hero > .ot-tabs{order:0!important;display:flex!important;border:0!important;min-height:0!important;grid-template-columns:none!important}
#record-modal.order-mode #order-hero > .ot-tabs > .ot-tab{flex:0 0 132px!important;width:132px!important;min-width:132px!important;max-width:132px!important;flex-direction:column!important;border:0!important;border-bottom:3px solid transparent!important}
#record-modal.order-mode .wf-pr-titsec{display:inline-block;vertical-align:middle;margin-left:12px;padding:5px 12px;border-radius:4px;font:800 12px 'Segoe UI',Arial;color:#1477f2;background:#eaf3ff;border:1px solid #bcd3ee}
#record-modal:not(.order-mode) :is(#wf-ot-nuevo,#wf-ot-print){display:none!important}
#record-modal.order-mode #wf-ot-nuevo{order:0;height:38px;padding:0 16px;border:1px solid #9ad7b0;background:#effaf3;color:#0b8f4a;font:700 11px 'Segoe UI',Arial;border-radius:4px;cursor:pointer}
#record-modal.order-mode #wf-ot-print{order:4;height:38px;padding:0 16px;border:1px solid #bcd3ee;background:#fff;color:#0b5cbf;font:700 11px 'Segoe UI',Arial;border-radius:4px;cursor:pointer}
#record-modal.order-mode .client-section-title .wf-ot-mini{margin-left:10px;border:1px solid #bcd3ee;background:#fff;color:#0b5cbf;font:700 10px 'Segoe UI',Arial;padding:5px 9px;cursor:pointer;border-radius:3px}
#record-modal.order-mode .client-section-title .wf-ot-mini+.wf-ot-mini{margin-left:6px}
#record-modal.order-mode .wf-ot-lh{background:#eef4fb;font:600 10px 'Segoe UI',Arial!important;color:#51627a}
#record-modal.order-mode :is(.wf-ot-l,.wf-ot-c,.wf-ot-f){display:grid;gap:8px;align-items:center;padding:6px 12px;border-bottom:1px solid #edf2f8;font-size:12px}
#record-modal.order-mode .wf-ot-l{grid-template-columns:minmax(260px,3fr) 110px 110px 80px 100px 110px 110px 28px}
#record-modal.order-mode .wf-ot-c{grid-template-columns:minmax(260px,3fr) 140px 120px 100px}
#record-modal.order-mode .wf-ot-f{grid-template-columns:minmax(160px,1.4fr) minmax(140px,1.2fr) minmax(130px,1fr) 110px 80px 80px 104px 100px 28px}
#record-modal.order-mode :is(.wf-ot-l,.wf-ot-f) :is(input,select){width:100%;box-sizing:border-box;height:30px;padding:0 8px;border:1px solid #c3d4e7;border-radius:4px;box-shadow:0 2px 4px rgba(16,55,100,.13);font-size:12px;background:#fff}
#record-modal.order-mode .wf-ot-l label{display:flex;align-items:center;gap:4px;color:#51627a;font-size:11px}
#record-modal.order-mode :is(.wf-ot-l,.wf-ot-f) button[data-ldel],#record-modal.order-mode .wf-ot-f button[data-fdel]{border:0;background:none;color:#c43;font-size:13px;cursor:pointer}
#record-modal.order-mode .wf-ot-f span small{display:block;color:#7890aa;font-size:10px}
#record-modal.order-mode .wf-ot-f.ok{background:#f2fbf5}#record-modal.order-mode .wf-ot-f.run{background:#fff8ec}
#record-modal.order-mode .wf-ot-cr{height:30px;border:1px solid #9ad7b0;background:#effaf3;color:#0b8f4a;font:700 10.5px 'Segoe UI',Arial;border-radius:4px;cursor:pointer}
#record-modal.order-mode .wf-ot-cr.stop{border-color:#f0b8a8;background:#fff2ee;color:#c43}
#record-modal.order-mode .wf-ot-add{display:flex;align-items:center;gap:14px;padding:10px 12px}#record-modal.order-mode .wf-ot-add small{color:#7890aa;font-size:11px}
#record-modal.order-mode .wf-ot-kpi{padding:10px 12px}
#record-modal.order-mode #record-fields{display:flex;flex-direction:column;gap:10px}
#record-modal.order-mode .order-dialog .record-dialog-head,#record-modal.order-mode .record-dialog-head{display:flex!important}
#record-modal.order-mode #order-hero .ot-identity{order:0!important}#record-modal.order-mode #order-hero > .ot-tabs{order:2!important;margin-left:auto!important;flex:0 0 auto!important;width:auto!important}
/* 4.17.421 · origen: texto libre / producto del catálogo */
#record-modal.order-mode .wf-ot-origen{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px 2px}
#record-modal.order-mode .wf-ot-seg{display:inline-flex;border:1px solid #bcd3ee;border-radius:5px;overflow:hidden;box-shadow:0 2px 4px rgba(16,55,100,.10)}
#record-modal.order-mode .wf-ot-seg button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border:0;background:#fff;color:#34495e;font:700 11px 'Segoe UI',Arial;cursor:pointer}
#record-modal.order-mode .wf-ot-seg button+button{border-left:1px solid #bcd3ee}
#record-modal.order-mode .wf-ot-seg button.on{background:#eaf3ff;color:#0b5cbf;box-shadow:inset 0 -3px 0 #1477f2}
#record-modal.order-mode .wf-ot-segpic{width:18px;height:18px}
#record-modal.order-mode .wf-ot-prodsel{display:flex;align-items:center;gap:12px;flex:1;min-width:320px}
#record-modal.order-mode .wf-ot-prodsel[hidden]{display:none}
#record-modal.order-mode .wf-ot-prodsel select{flex:1;max-width:620px;height:36px;border:1px solid #c3d4e7;border-radius:4px;box-shadow:0 2px 4px rgba(16,55,100,.13);padding:0 10px;font-size:12.5px}
#record-modal.order-mode .wf-ot-prodsel small{color:#7890aa;font-size:11px}
/* 4.17.422 · la ficha de la orden ocupa toda la página, como el resto */
#record-modal.order-mode,.record-modal.order-mode{position:fixed!important;inset:0!important;padding:0!important;background:#f4f8fc!important;z-index:1200;align-items:stretch!important}
#record-modal.order-mode .record-dialog.order-dialog{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;max-width:none!important;max-height:none!important;margin:8px auto!important;border-radius:5px!important;border:1px solid #9fb8d0!important;box-shadow:none!important;background:#f4f8fc!important}
/* 4.17.423 · RRHH: guardar parpadeante, guardar y salir, aviso */
#rrhh-data-save.is-dirty{border-color:#0a7a3e!important}
body #rrhh-data-save.is-dirty.wf-blink-on{background:#12B95B!important;color:#fff!important}
body #rrhh-data-save.is-dirty.wf-blink-on svg,body #rrhh-data-save.is-dirty.wf-blink-on .wf-svg-icon{color:#fff!important;stroke:#fff!important}
.wf-rrhh-saveexit{background:#1477f2!important;color:#fff!important;border-color:#1477f2!important}
.wf-rrhh-toast{position:fixed;right:24px;bottom:24px;z-index:5000;background:#0b8f4a;color:#fff;padding:12px 18px;border-radius:6px;font:600 13px 'Segoe UI',Arial;box-shadow:0 6px 18px rgba(0,0,0,.18)}
/* 4.17.425 · parpadeo de GUARDAR CAMBIOS en todas las fichas y sin borde azul en la fila seleccionada */
body .is-dirty.wf-blink-on:is(#record-head-save,#rrhh-data-save,[data-budget-editor-action="save"],[data-ventas-editor-action="save"],[data-compras-editor-action="save"]){background:#12B95B!important;color:#fff!important;border-color:#0a7a3e!important}
body .is-dirty.wf-blink-on:is(#record-head-save,#rrhh-data-save,[data-budget-editor-action="save"],[data-ventas-editor-action="save"],[data-compras-editor-action="save"]) :is(svg,.wf-svg-icon,span){color:#fff!important;stroke:#fff!important}
body .records-table tbody tr,body .records-table tbody tr:focus,body .records-table tbody tr:focus-visible,body .records-table tbody tr.selected,body table tbody tr.selected{outline:none!important}
body .records-table tbody tr.selected,body .records-table tbody tr.selected td{border-color:transparent!important}
/* 4.17.435 · ficha de material: caja de SECTOR celeste, mayúsculas y semibold */
#record-fields select[data-wf-sector]{background-color:#e6f2fd !important;text-transform:uppercase !important;font-weight:600 !important;color:#0b4f8a !important;border-color:#9cc8ee !important}
#record-fields select[data-wf-sector] option{text-transform:uppercase;font-weight:600;background:#fff;color:#1f2937}
/* 4.17.437 · selects dentro del panel de filtros de materiales */
#material-smart-search .wf-mf-sel{display:flex;flex-direction:column;gap:4px;margin-top:10px}
#material-smart-search .wf-mf-sel span{font-size:12px;color:#64748b}
#material-smart-search .wf-mf-sel select{height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:0 8px;text-transform:uppercase;font-size:13px}
/* 4.17.449 · OT: resúmenes al final de la página; botones de imagen/documentos en línea y más grandes */
#record-fields:has(.wf-ot-resumen){display:flex!important;flex-direction:column!important;min-height:calc(100vh - 230px)}
#record-fields .wf-ot-resumen{margin-top:auto!important}
.ot-image-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:12px}
.ot-image-actions small{flex-basis:100%}
.ot-image-actions .wf-action-btn,.ot-doc-add .wf-action-btn{min-height:44px!important;padding:0 20px!important;font-size:14px!important;gap:8px}
.ot-doc-add{display:flex;align-items:center;gap:12px}
/* 4.17.455 · botón IMPRIMIR del listado de órdenes en verde */
.client-row-actions .row-print{color:#0a7a3e!important;border-color:#86d3a6!important;background:#effaf3!important}
.client-row-actions .row-print:hover{background:#12b95b!important;color:#fff!important;border-color:#12b95b!important}
.client-row-actions .row-print .wf-svg-icon,.client-row-actions .row-print svg{color:inherit!important;stroke:currentColor!important}
/* 4.17.456 · botones de acción de todos los listados con la misma jerarquía:
   Imprimir verde · Editar azul · Borrar rojo · Ver gris azulado (fondo suave, color intenso al pasar el ratón) */
body .client-row-actions .row-edit,body .row-actions .row-edit{color:#0b63c9!important;border:1px solid #9cc8ee!important;background:#eef6ff!important}
body .client-row-actions .row-edit:hover,body .row-actions .row-edit:hover{background:#1474e8!important;color:#fff!important;border-color:#1474e8!important}
body .client-row-actions .row-delete,body .row-actions .row-delete{color:#c8202f!important;border:1px solid #f2a7ae!important;background:#fff1f2!important}
body .client-row-actions .row-delete:hover,body .row-actions .row-delete:hover{background:#e23448!important;color:#fff!important;border-color:#e23448!important}
body .client-row-actions .row-view,body .row-actions .row-view{color:#475569!important;border:1px solid #cbd5e1!important;background:#f8fafc!important}
body .client-row-actions .row-view:hover,body .row-actions .row-view:hover{background:#475569!important;color:#fff!important;border-color:#475569!important}
body .row-actions .row-print{color:#0a7a3e!important;border:1px solid #86d3a6!important;background:#effaf3!important}
body .row-actions .row-print:hover{background:#12b95b!important;color:#fff!important;border-color:#12b95b!important}
body .row-actions :is(.row-edit,.row-delete,.row-view,.row-print){border-radius:6px!important;transition:background .12s,color .12s}
body .row-actions :is(.row-edit,.row-delete,.row-view,.row-print) :is(svg,.wf-svg-icon,small){color:inherit!important;stroke:currentColor!important}
/* 4.17.462 · operarios sin precios en órdenes de trabajo */
body.wf-sin-precios .wf-ot-l>:nth-child(6),body.wf-sin-precios .wf-ot-l>:nth-child(7),
body.wf-sin-precios .wf-ot-c>:nth-child(3),body.wf-sin-precios .wf-ot-f>:nth-child(8){visibility:hidden!important}
/* 4.17.463 · sin precios: importes de la composición del producto y de tintas */
body.wf-sin-precios :is(.wf-cp-tot,.wf-cp-xt,.wf-cp-total,.wf-cp-eur,.wf-ti-e,.wf-ti-t,#wf-pr-precio-host,.wf-pr-pvsec){visibility:hidden!important}
body.wf-sin-precios .wf-pr-pvsec,body.wf-sin-precios .wf-cp-total{display:none!important}
.industrial-kpi-icon .wf-picto-img{width:46px!important;height:46px!important;object-fit:contain}.industrial-kpi-icon:has(.wf-picto-img){background:transparent!important;box-shadow:none!important}
/* 4.17.467 · Base industrial en fichas */
.wf-kb-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:34px;padding:4px 0}
.wf-kb-chips b{background:#eef3ff;color:#3b2fb0;border:1px solid #cfd8ff;border-radius:6px;padding:4px 9px;font-size:12px;font-weight:600}
.wf-kb-chips em{color:#94a3b8;font-style:normal}.wf-kb-chips i{color:#64748b;font-size:13px}
.wf-kb-av{display:flex;flex-direction:column;gap:6px}.wf-kb-av>div{background:#fff8f1;padding:6px 10px;border-radius:6px;font-size:13px}
/* 4.17.472 · Base industrial con IA */
.wf-ia-dlg{max-width:980px;width:96vw}
.wf-ia-body{padding:4px 18px 18px;display:flex;flex-direction:column;gap:10px;max-height:78vh;overflow:auto}
.wf-ia-body textarea{width:100%;font:inherit;padding:10px;border:1px solid #c9d6e6;border-radius:8px}
.wf-ia-st{color:#6b4fbb;font-weight:600}
.wf-ia-exp{background:#f4f0ff;border-left:4px solid #7c5cd6;padding:8px 12px;border-radius:6px}
.wf-ia-sec{border:1px solid #e1e8f2;border-radius:10px;padding:8px 12px}
.wf-ia-sec h4{margin:0 0 6px;font-size:12px;letter-spacing:.05em;color:#33475b;display:flex;align-items:center;gap:8px}
.wf-ia-sec h4 input,.wf-ia-row input:not([type=checkbox]){font:inherit;padding:4px 8px;border:1px solid #c9d6e6;border-radius:6px;min-width:220px}
.wf-ia-row{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:13px;flex-wrap:wrap}
.wf-ia-row i{color:#64748b}.wf-ia-row code{background:#f1f5f9;padding:1px 5px;border-radius:4px;font-size:12px}
.wf-ia-new{background:#7c5cd6;color:#fff;border-radius:5px;padding:2px 8px;font-size:11px;font-weight:700}
.wf-ia-mini{margin-left:auto;padding:4px 10px!important;min-height:0!important;font-size:12px!important}
#wf-kb-prod .client-section-title{display:flex;align-items:center;gap:8px}
.wf-ia-out{margin-top:10px;background:#f7f4ff;border:1px solid #ddd3fb;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column;gap:5px;font-size:13px}
/* 4.17.473 · Configurador industrial */
.wf-cfg-dlg{max-width:1180px;width:96vw}
.wf-cfg-body{padding:4px 18px 18px;display:flex;flex-direction:column;gap:10px;max-height:80vh;overflow:auto}
.wf-cfg-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.wf-cfg-grid .wide{grid-column:span 5}
.wf-cfg-grid .field-group{display:flex;flex-direction:column;gap:4px}
.wf-cfg-grid .field-group>span{font-size:11px;font-weight:700;color:#33475b;letter-spacing:.04em}
.wf-cfg-grid input,.wf-cfg-grid select,.wf-cfg-tab select{font:inherit;padding:7px 9px;border:1px solid #c9d6e6;border-radius:7px;background:#fff}
.wf-cfg-tab{width:100%;border-collapse:collapse;font-size:13px}
.wf-cfg-tab th{text-align:left;font-size:11px;color:#64748b;padding:6px;border-bottom:1px solid #e1e8f2}
.wf-cfg-tab td{padding:6px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.wf-cfg-tab code{background:#f1f5f9;padding:1px 5px;border-radius:4px;font-size:11px}
.wf-cfg-no{color:#b45309}.wf-cfg-bajo{color:#c8202f;font-weight:700}
.wf-cfg-help{font-size:12px;color:#64748b;margin-top:6px}
@media(max-width:760px){.wf-cfg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-cfg-grid .wide{grid-column:span 2}}
/* 4.17.474 · Configurador: costes y ruta editable */
.wf-cfg-mcell{display:flex;align-items:center;gap:6px}
.wf-cfg-mcell select{max-width:260px}
.wf-cfg-link{border:1px solid #b9d3f5;background:#eef6ff;color:#0b63c9;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.wf-cfg-coste{width:78px;text-align:right;font:inherit;padding:5px 6px;border:1px solid #c9d6e6;border-radius:6px}
.wf-cfg-coste.man{background:#fff7e6;border-color:#f0b65a}
.wf-cfg-tot{background:#e7f8ee!important;color:#08793f!important}
.wf-cfg-pasos{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.wf-cfg-pasos li{display:flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #e1e8f2;border-radius:7px;background:#f8fbff;font-size:13px}
.wf-cfg-pasos li span{font-weight:600;color:#1d3557}.wf-cfg-pasos li i{color:#64748b;margin-right:auto}
.wf-cfg-pasos button{border:1px solid #c9d6e6;background:#fff;border-radius:5px;width:26px;height:24px;cursor:pointer;font-size:11px}
.wf-cfg-pasos button.del{color:#c8202f;border-color:#f1b9bf}.wf-cfg-pasos button:disabled{opacity:.35;cursor:default}
.wf-cfg-add{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.wf-cfg-add select{font:inherit;padding:6px 8px;border:1px solid #c9d6e6;border-radius:7px;min-width:300px}
.wf-cfg-ed{font-size:12px;color:#b45309;font-weight:600}
.wf-cfg-tab td:has(.wf-cfg-coste){white-space:nowrap}
.wf-cfg-bad{background:#fdecee!important;color:#c8202f;text-decoration:line-through}
.wf-cfg-est{font-size:11px;color:#b45309;margin-top:2px}
/* 4.17.476 · Calculadora de presupuesto */
.wf-calc-sec{border:1px solid #e1e8f2;border-radius:10px;padding:10px 14px;background:#fff}
.wf-calc-sec h4{margin:0 0 8px;font-size:12.5px;letter-spacing:.05em;color:#1d3557;display:flex;align-items:center;gap:8px}
.wf-calc-sec h4>b{background:#1477f2;color:#fff;border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.wf-cfg-grid .c2{grid-column:span 2}.wf-cfg-grid .c3{grid-column:span 3}.wf-cfg-grid .c5{grid-column:span 5}
.wf-calc-med{font-size:13px;line-height:1.25;padding-top:4px}.wf-calc-med small{color:#64748b}
.wf-calc-tar{margin-left:auto;font-size:11px;color:#33475b;display:flex;align-items:center;gap:6px}
.wf-calc-tar input{width:70px;text-align:right;font:inherit;padding:4px 6px;border:1px solid #c9d6e6;border-radius:6px}
.wf-cfg-tab td.nw{white-space:nowrap}
.wf-calc-in{font:inherit;padding:5px 7px;border:1px solid #c9d6e6;border-radius:6px}.w140{width:140px}
.wf-calc-del{border:1px solid #f1b9bf;color:#c8202f;background:#fff;border-radius:5px;width:26px;height:26px;cursor:pointer}
.wf-calc-bar{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:12px;color:#64748b;flex-wrap:wrap}
.wf-calc-bar select{font:inherit;padding:6px 8px;border:1px solid #c9d6e6;border-radius:7px;min-width:260px;color:#1d3557}
.wf-calc-res{background:#f6faff;border-color:#b9d3f5}
.wf-calc-grid{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:16px}
.wf-calc-col{display:flex;flex-direction:column;gap:6px}
.wf-calc-col>div,.wf-calc-col>label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.wf-calc-col span{color:#475569}
.wf-calc-col .tot{border-top:2px solid #1d3557;padding-top:6px;font-size:14px}.wf-calc-col .tot b{color:#1d3557}
.wf-calc-col input{width:110px;text-align:right;font:inherit;font-weight:700;padding:6px 8px;border:1px solid #c9d6e6;border-radius:7px}
.wf-calc-col input.man{background:#fff7e6;border-color:#f0b65a}
.wf-calc-col.big b{font-size:20px;color:#08793f}
.wf-calc-col .ref{font-size:12px;color:#0b63c9;display:block}
@media(max-width:760px){.wf-calc-grid{grid-template-columns:1fr}}
/* 4.17.477 · Calcular con IA */
.wf-calc-ia{background:linear-gradient(135deg,#f7f3ff,#eef6ff);border-color:#d8ccfb}
.wf-calc-ia h4{color:#5b3fc4}
.wf-calc-iarow{display:flex;gap:10px;align-items:stretch}
.wf-calc-iarow textarea{flex:1;font:inherit;padding:10px;border:1px solid #c9bdf3;border-radius:8px;resize:vertical;min-height:56px;background:#fff}
.wf-calc-iarow .wf-action-btn{white-space:nowrap}
.wf-calc-iast{font-size:12.5px;color:#5b3fc4;margin-top:6px}
/* 4.17.482 · TEMA OSCURO (inversión inteligente: todo se oscurece y las imágenes/colores de marca se mantienen) */
html[data-theme="dark"]{background:#0f1115;filter:invert(.9) hue-rotate(180deg);color-scheme:light}
html[data-theme="dark"] img,html[data-theme="dark"] video,html[data-theme="dark"] canvas,html[data-theme="dark"] iframe,
html[data-theme="dark"] .nav-picto img,html[data-theme="dark"] [style*="background-image"],html[data-theme="dark"] .wf-tema-prev{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark"] .wf-tema-prev.oscuro{filter:none}
.wf-tema-grid{display:grid;grid-template-columns:repeat(3,minmax(0,200px));gap:14px;padding:4px 0 6px}
.wf-tema-op{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px;border:2px solid #dbe5f1;border-radius:12px;cursor:pointer;background:#fff;text-align:center}
.wf-tema-op input{display:none}.wf-tema-op.on{border-color:#1477f2;background:#eef6ff}
.wf-tema-op small{color:#64748b;font-size:11.5px}
.wf-tema-prev{width:64px;height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:22px;border:1px solid #cbd5e1}
.wf-tema-prev.claro{background:#fff}.wf-tema-prev.oscuro{background:#1b1f27}.wf-tema-prev.auto{background:linear-gradient(90deg,#fff 50%,#1b1f27 50%)}
@media(max-width:700px){.wf-tema-grid{grid-template-columns:1fr}}
/* 4.17.483 · Barra de accesos del cliente no debe aparecer fuera de su módulo */
body[data-route="configuracion"] #client-selected-bar,body[data-route="base_industrial"] #client-selected-bar,body[data-route="informes"] #client-selected-bar,body[data-route="inicio"] #client-selected-bar{display:none!important}

/* 4.17.483 · BOTONES DE ACCIÓN con el estilo de los accesos de la ficha (Ficha/Contacto/Comercial…):
   fondo blanco, borde fino del color de la acción, icono en círculo, texto oscuro, barra inferior al pasar/activo */
.wf-action-btn{--acc:#1477f2;height:44px!important;min-width:118px;padding:0 16px 0 8px!important;gap:10px!important;justify-content:flex-start!important;
  background:#fff!important;border:1px solid color-mix(in srgb,var(--acc) 45%,white)!important;border-radius:4px!important;color:#14365f!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:0!important;box-shadow:none!important;position:relative;transition:background .15s,box-shadow .15s}
.wf-action-btn.success{--acc:#08a957}.wf-action-btn.primary{--acc:#1477f2}.wf-action-btn.orange{--acc:#f28c00}.wf-action-btn.danger{--acc:#e0283c}.wf-action-btn.purple{--acc:#7d4ce6}
.wf-action-btn>svg,.wf-action-btn>.wf-svg-icon{width:30px!important;height:30px!important;padding:6px;box-sizing:border-box;border-radius:50%;flex:0 0 30px;
  background:radial-gradient(circle at 35% 30%,#fff,color-mix(in srgb,var(--acc) 16%,white));color:var(--acc)!important;box-shadow:0 1px 3px color-mix(in srgb,var(--acc) 25%,transparent)}
.wf-action-btn:hover:not(:disabled),.wf-action-btn.active{background:color-mix(in srgb,var(--acc) 8%,white)!important;box-shadow:inset 0 -3px var(--acc)!important}
.wf-action-btn:disabled{opacity:.55;cursor:default}
.wf-action-btn.wf-ia-mini{height:32px!important;min-width:0;font-size:12px!important;padding:0 10px!important}
.wf-action-btn.wf-ia-mini>svg{width:22px!important;height:22px!important;flex-basis:22px;padding:4px}
html[data-theme="dark"] .wf-action-btn>svg{filter:none}
/* 4.17.484 · MENÚS HORIZONTALES con el estilo de los accesos de la ficha: icono en círculo a la izquierda + texto, caja blanca con borde de color */
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs){
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(138px,1fr))!important;gap:6px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important;overflow:visible!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button,
html body:not(#_a):not(#_b) button[data-rrhh-tab],html body:not(#_a):not(#_b) button[data-informes-section]{
  --acc:var(--client-nav-accent,var(--industrial-accent,var(--config-accent,var(--order-accent,var(--product-accent,var(--machine-accent,var(--sector-accent,var(--rrhh-color,var(--informes-accent,#1477f2)))))))));
  flex:1 1 0!important;min-width:0!important;width:auto!important;height:50px!important;min-height:0!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  padding:0 8px!important;margin:0!important;background:#fff!important;border:1px solid color-mix(in srgb,var(--acc) 40%,white)!important;border-radius:4px!important;
  box-shadow:none!important;color:#14365f!important;cursor:pointer;position:relative;transition:background .15s,box-shadow .15s}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button:hover,
html body:not(#_a):not(#_b) button[data-rrhh-tab]:hover,html body:not(#_a):not(#_b) button[data-informes-section]:hover{background:color-mix(in srgb,var(--acc) 6%,white)!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button.active,
html body:not(#_a):not(#_b) button[data-rrhh-tab].active,html body:not(#_a):not(#_b) button[data-informes-section].active{background:color-mix(in srgb,var(--acc) 11%,white)!important;box-shadow:inset 0 -4px var(--acc)!important}
/* icono: primer hijo en círculo */
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button>:first-child:not(small):not(span:only-child),
html body:not(#_a):not(#_b) button[data-rrhh-tab]>:first-child,html body:not(#_a):not(#_b) button[data-informes-section]>:first-child{
  width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;margin:0!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:radial-gradient(circle at 35% 30%,#fff,color-mix(in srgb,var(--acc) 16%,white))!important;color:var(--acc)!important;box-shadow:0 1px 3px color-mix(in srgb,var(--acc) 25%,transparent)!important;overflow:hidden;border:0!important;position:static!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button>:first-child svg,
html body:not(#_a):not(#_b) button[data-rrhh-tab]>:first-child svg,html body:not(#_a):not(#_b) button[data-informes-section]>:first-child svg,
html body:not(#_a):not(#_b) :is(.client-tabs,.ot-tabs)>button>svg:first-child{width:19px!important;height:19px!important;color:var(--acc)!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button>:first-child img,
html body:not(#_a):not(#_b) button[data-rrhh-tab]>:first-child img,html body:not(#_a):not(#_b) button[data-informes-section]>:first-child img{width:34px!important;height:34px!important;border-radius:50%;object-fit:cover;margin:0!important}
html body:not(#_a):not(#_b) :is(.client-tabs,.ot-tabs)>button>svg:first-child{width:34px!important;height:34px!important;padding:7px;box-sizing:border-box;border-radius:50%;flex:0 0 34px;background:radial-gradient(circle at 35% 30%,#fff,color-mix(in srgb,var(--acc) 16%,white))}
/* texto */
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button :is(small,span:not(:first-child),em),
html body:not(#_a):not(#_b) button[data-rrhh-tab] :is(small,span:not(:first-child)),html body:not(#_a):not(#_b) button[data-informes-section] :is(small,span:not(:first-child)){
  font-size:13px!important;font-weight:700!important;color:#14365f!important;text-transform:none!important;letter-spacing:0!important;margin:0!important;line-height:1.15!important;white-space:nowrap;text-align:left}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button::after,
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button::before{display:none!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs)>button :is(small,span:not(:first-child)){white-space:normal!important;overflow:visible}
/* menús dentro de una barra (accesos del cliente, sectores): fila que se ajusta al contenido */
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu){display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;flex:1 1 auto!important;min-width:0!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu)>button{flex:0 0 auto!important;min-width:118px!important;max-width:none!important;width:auto!important;padding:0 14px 0 8px!important;overflow:visible!important}
html body:not(#_a):not(#_b) :is(#client-selected-bar .client-industrial-nav,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu)>button :is(small,span:not(:first-child)){white-space:nowrap!important}
html body:not(#_a):not(#_b) .material-sector-context{height:auto!important;max-height:none!important;overflow:visible!important}
html body:not(#_a):not(#_b) :is(.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,#client-selected-bar .client-industrial-nav){height:auto!important;min-height:0!important;max-height:none!important}
html body:not(#_a):not(#_b) :is(#material-sector-context,.material-sector-context,#client-selected-bar,#industrial-online-tabs,#config-online-tabs){flex:0 0 auto!important;height:auto!important}
html body:not(#_a):not(#_b) .material-sector-btn>small:last-child:not(:first-child){position:absolute!important;top:-7px!important;right:-6px!important;min-width:20px;height:20px;padding:0 6px!important;border-radius:10px;display:inline-flex!important;align-items:center;justify-content:center;
  font-size:11px!important;font-weight:800!important;background:var(--acc)!important;color:#fff!important;line-height:1!important;box-shadow:0 1px 3px rgba(0,0,0,.18);z-index:2}
html body:not(#_a):not(#_b) .material-sector-btn{overflow:visible!important}
html body:not(#_a):not(#_b):not(#_c) :is(#client-selected-bar .client-industrial-nav,#industrial-online-tabs,#config-online-tabs,.client-tabs,.material-sector-menu,.product-sector-menu,.machine-sector-menu,#order-sector-menu,.rrhh-tabs,.ot-tabs,.informes-online-tabs,.material-sector-context,#client-selected-bar).hidden{display:none!important}

/* 4.17.488 · mismo estilo de botones también en barras con reglas propias (Proveedores…) */
html body:not(#_a):not(#_b) .wf-action-btn{--acc:#1477f2;height:44px!important;min-width:118px;padding:0 16px 0 8px!important;gap:10px!important;justify-content:flex-start!important;
  background:#fff!important;border:1px solid color-mix(in srgb,var(--acc) 45%,white)!important;border-radius:4px!important;color:#14365f!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:0!important;box-shadow:none!important;position:relative;transition:background .15s,box-shadow .15s}
html body:not(#_a):not(#_b) .wf-action-btn.success{--acc:#08a957}.wf-action-btn.primary{--acc:#1477f2}.wf-action-btn.orange{--acc:#f28c00}.wf-action-btn.danger{--acc:#e0283c}.wf-action-btn.purple{--acc:#7d4ce6}
html body:not(#_a):not(#_b) .wf-action-btn>svg,html body:not(#_a):not(#_b) .wf-action-btn>.wf-svg-icon{width:30px!important;height:30px!important;padding:6px;box-sizing:border-box;border-radius:50%;flex:0 0 30px;
  background:radial-gradient(circle at 35% 30%,#fff,color-mix(in srgb,var(--acc) 16%,white));color:var(--acc)!important;box-shadow:0 1px 3px color-mix(in srgb,var(--acc) 25%,transparent)}
html body:not(#_a):not(#_b) .wf-action-btn:hover:not(:disabled),html body:not(#_a):not(#_b) .wf-action-btn.active{background:color-mix(in srgb,var(--acc) 8%,white)!important;box-shadow:inset 0 -3px var(--acc)!important}
html body:not(#_a):not(#_b) .wf-action-btn:disabled{opacity:.55;cursor:default}
html body:not(#_a):not(#_b) .wf-action-btn.wf-ia-mini{height:32px!important;min-width:0;font-size:12px!important;padding:0 10px!important}
html body:not(#_a):not(#_b) .wf-action-btn.wf-ia-mini>svg{width:22px!important;height:22px!important;flex-basis:22px;padding:4px}
html[data-theme="dark"] .wf-action-btn>svg{filter:none}
html body:not(#_a):not(#_b) .wf-action-btn.success{--acc:#08a957}html body:not(#_a):not(#_b) .wf-action-btn.primary{--acc:#1477f2}html body:not(#_a):not(#_b) .wf-action-btn.orange{--acc:#f28c00}html body:not(#_a):not(#_b) .wf-action-btn.danger{--acc:#e0283c}html body:not(#_a):not(#_b) .wf-action-btn.purple{--acc:#7d4ce6}
html body:not(#_a):not(#_b) #provider-smart-search .client-smart-panel{grid-template-columns:repeat(4,minmax(190px,1fr))!important;width:min(1000px,calc(100vw - 260px))!important}
html body:not(#_a):not(#_b) #provider-smart-search .client-smart-panel>footer{grid-column:1/-1}
html body:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .material-sector-btn>small:last-child:not(:first-child){color:#fff!important;-webkit-text-fill-color:#fff}
/* 4.17.491 · pestañas de fichas (OT, presupuestos…): siempre en fila horizontal */
html body:not(#_a):not(#_b):not(#_c) .client-tabs{display:flex!important;flex-wrap:wrap!important;flex:1 1 100%!important;width:100%!important;min-width:0!important}
html body:not(#_a):not(#_b):not(#_c) .client-tabs>button{flex:1 1 130px!important;min-width:120px!important}
html body:not(#_a):not(#_b):not(#_c) .client-tabs>button{min-width:0!important}
html body:not(#_a):not(#_b):not(#_c):not(#_d) .client-tabs>button :is(span,small){white-space:normal!important}
/* 4.17.494 · Facturar cliente */
.wf-fc-dlg{max-width:1100px;width:96vw}
.wf-fc-body{padding:4px 18px 18px;display:flex;flex-direction:column;gap:12px;max-height:80vh;overflow:auto}
.wf-fc-top{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}
.wf-fc-top .field-group{display:flex;flex-direction:column;gap:4px;min-width:340px}
.wf-fc-top .field-group span{font-size:11px;font-weight:700;color:#33475b}
.wf-fc-top select{font:inherit;padding:8px 10px;border:1px solid #c9d6e6;border-radius:7px}
.wf-fc-chk{font-size:13px;color:#33475b;display:flex;gap:6px;align-items:center;padding-bottom:8px}
.wf-fc-empty{padding:28px;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:10px}
.wf-fc-tab tbody tr{cursor:pointer}.wf-fc-tab tbody tr.on{background:#eef6ff}
.wf-fc-t{font-size:11px;font-weight:800;padding:3px 8px;border-radius:10px;white-space:nowrap}
.wf-fc-t.P{background:#eef6ff;color:#0b63c9}.wf-fc-t.A{background:#fff4e5;color:#c26a00}.wf-fc-t.O{background:#f3edff;color:#6b3fd6}
.wf-fc-tot{margin-right:auto;font-size:14px;color:#14365f}
html body:not(#_a):not(#_b) .module-toolbar .client-toolbar-actions{flex-wrap:wrap!important;justify-content:flex-end;row-gap:8px}
/* 4.17.495 · facturado */
.wf-fz-badge{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;background:#f3edff;color:#6b3fd6;font-weight:800;font-size:11px;padding:4px 9px;border-radius:6px;line-height:1.1}
.wf-fz-badge small{font-weight:600;font-size:10px;color:#7c5cd6}
tr.wf-facturada td{color:#64748b}
.wf-fz-aviso{margin:8px 10px;padding:10px 14px;border-radius:8px;background:#f3edff;border:1px solid #d8ccfb;color:#3b2a7a;font-size:13px}
.wf-ref-btn{border:1px solid #c9d6e6;background:#f3f8ff;color:#0b63c9;font-weight:800;width:30px;cursor:pointer;border-radius:0 6px 6px 0}
input.wf-ref-auto{background:#f2fbf5!important;color:#08793f!important}
/* 4.17.499 · Inicio */
.nav-picto.nav-img img.wf-picto-img.nav{width:26px;height:26px;border-radius:50%}
.organizer-kpi-icon.wf-kpi-img{background:none!important;box-shadow:none!important}
.organizer-kpi-icon.wf-kpi-img img{width:46px;height:46px;border-radius:50%;object-fit:cover}
html body:not(#_a):not(#_b) #dashboard-page-nav{display:flex!important;gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important}
html body:not(#_a):not(#_b) #dashboard-page-nav>button{--acc:var(--client-nav-accent,#1477f2);flex:0 0 auto;height:50px!important;display:flex!important;align-items:center;gap:10px;padding:0 16px 0 8px!important;background:#fff!important;border:1px solid color-mix(in srgb,var(--acc) 40%,white)!important;border-radius:4px!important;color:#14365f!important;font-weight:700;font-size:13px;box-shadow:none!important}
html body:not(#_a):not(#_b) #dashboard-page-nav>button.active{background:color-mix(in srgb,var(--acc) 11%,white)!important;box-shadow:inset 0 -4px var(--acc)!important}
#dashboard-page-nav .wf-dn-ic{width:34px;height:34px;border-radius:50%;overflow:hidden;display:inline-flex}
#dashboard-page-nav .wf-dn-ic img{width:34px;height:34px;object-fit:cover}
.wf-org-views{display:flex;gap:8px;justify-content:flex-end;margin:4px 0 10px}
.wf-org-views button{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1px solid #9fc9f5;background:#fff;color:#1477f2;font-weight:700;border-radius:4px;cursor:pointer}
.wf-org-views button.active{background:#1477f2;color:#fff;border-color:#1477f2}
.wf-org-lista{padding:12px}
.wf-org-lista tbody tr{cursor:pointer}
.wf-org-kanban{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;align-items:start}
.wf-kb-col{background:#f4f7fb;border:1px solid #e1e8f2;border-top:4px solid var(--kc);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:8px;min-height:200px}
.wf-kb-col header{display:flex;justify-content:space-between;align-items:center;padding:2px 4px}
.wf-kb-col header b{font-size:12px;letter-spacing:.04em;color:#14365f}
.wf-kb-col header span{background:var(--kc);color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:800}
.wf-kb-col article{background:#fff;border:1px solid #e1e8f2;border-left:4px solid var(--kc);border-radius:6px;padding:8px 10px;display:flex;flex-direction:column;gap:3px;cursor:pointer;font-size:12.5px}
.wf-kb-col article:hover{box-shadow:0 2px 8px rgba(20,54,95,.12)}
.wf-kb-top{display:flex;justify-content:space-between;align-items:center}
.wf-kb-col small{color:#64748b}.wf-kb-vacio{color:#94a3b8;font-size:12px;text-align:center;padding:16px}
@media(max-width:900px){.wf-org-kanban{grid-template-columns:1fr 1fr}}
/* 4.17.503 · órdenes del día */
.wf-org-dia{padding:14px}
.wf-dia-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.wf-dia-head h2{margin:0;font-size:18px;color:#14365f}.wf-dia-head small{color:#64748b}
.wf-dia-ctl{display:flex;gap:6px;align-items:center;font-size:13px;color:#33475b}
.wf-dia-ctl button{height:34px;min-width:34px;border:1px solid #c9d6e6;background:#fff;border-radius:6px;cursor:pointer;font-weight:700;color:#1477f2}
.wf-dia-ctl input[type=date]{height:34px;border:1px solid #c9d6e6;border-radius:6px;padding:0 8px;font:inherit}
.wf-dia-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;align-items:start}
.wf-dia-sec{background:#f4f7fb;border:1px solid #e1e8f2;border-top:4px solid var(--kc);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:8px}
.wf-dia-sec header{display:flex;justify-content:space-between;align-items:center;padding:2px 4px}
.wf-dia-sec header b{font-size:12.5px;letter-spacing:.04em;color:#14365f}
.wf-dia-sec header span{background:var(--kc);color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:800}
.wf-dia-sec article{background:#fff;border:1px solid #e1e8f2;border-left:4px solid var(--kc);border-radius:6px;padding:8px 10px;display:flex;flex-direction:column;gap:3px;cursor:pointer;font-size:12.5px}
.wf-dia-sec article.retr{border-left-color:#e0283c;background:#fff6f6}
.wf-dia-sec article small{color:#64748b}
.wf-kb-col.over{background:#e8f1ff;outline:2px dashed var(--kc)}
.wf-kb-col article{cursor:grab}.wf-kb-col article.drag{opacity:.45}
/* 4.17.506 · Configuración: cabecera y KPI como el resto de módulos */
.wf-cfg-titlerow{display:flex!important;align-items:center;gap:12px}
.wf-cfg-titlerow .module-head-icon{width:50px;height:50px;flex:0 0 50px;display:inline-flex}
.wf-cfg-titlerow .module-head-icon img{width:50px;height:50px;border-radius:50%;object-fit:cover}
html body:not(#_a) .wf-cfg-titlerow h1{font:700 22px "Segoe UI",Arial,sans-serif!important;color:#12345f!important;margin:3px 0 2px!important}
html body:not(#_a) .wf-cfg-titlerow p{font-size:12px!important;color:var(--muted,#64748b)!important;margin:0!important}
html body:not(#_a) .config-kpi-icon.wf-kpi-img{background:none!important;box-shadow:none!important;width:56px!important;height:56px!important;padding:0!important;overflow:hidden;border-radius:50%}
.config-kpi-icon.wf-kpi-img img{width:56px;height:56px;object-fit:cover;border-radius:50%}
html body:not(#_a) .wf-cfg-titlerow{justify-content:flex-start!important;text-align:left!important}html body:not(#_a) .wf-cfg-titlerow>div{text-align:left!important;margin:0!important}

/* 4.17.507 informes */
html body:not(#_a) .wf-cfg-titlerow .informes-year-select{margin-left:auto!important}

/* 4.17.508 del día por cliente */
.wf-dia-cli{margin:6px 0 10px}.wf-dia-cli-h{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:#12345f;background:#f1f5fb;border-radius:6px;padding:5px 8px;margin-bottom:6px;text-transform:uppercase}
.wf-dia-cli-h i{font-style:normal;background:var(--kc,#1477f2);color:#fff;border-radius:10px;padding:0 7px;font-size:11px}
/* 4.17.511 Del día compacto */
.wf-dl-chips{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.wf-dl-chips button{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:20px;border:1.5px solid var(--kc);color:var(--kc);background:#fff;font:700 13px "Segoe UI",Arial;cursor:pointer}
.wf-dl-chips button i{font-style:normal;background:var(--kc);color:#fff;border-radius:10px;padding:0 8px;font-size:12px}
.wf-dl-chips button.on{background:var(--kc);color:#fff}.wf-dl-chips button.on i{background:#fff;color:var(--kc)}
.wf-dl-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.wf-dl-sec{border:1px solid #e3e8f0;border-top:4px solid var(--kc);border-radius:10px;overflow:hidden;background:#fff}
.wf-dl-sec.ancho{grid-column:1/-1}
.wf-dl-sec>header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;font:700 14px "Segoe UI",Arial;color:#12345f}
.wf-dl-sec em{font-style:normal;color:#e0283c;font-size:12px;margin-left:8px;font-weight:700}
.wf-dl-sec i{font-style:normal;background:var(--kc);color:#fff;border-radius:10px;padding:0 9px;font-size:12px}
.wf-dl-cli{display:flex;justify-content:space-between;align-items:center;background:#f1f5fb;padding:7px 14px;font:700 12.5px "Segoe UI",Arial;color:#12345f;border-top:1px solid #e8edf5;cursor:pointer;user-select:none}
.wf-dl-cli b{color:#64748b;margin-right:6px;display:inline-block;width:10px}.wf-dl-cli i{font-size:11px;padding:0 8px}
.wf-dl-row{display:grid;grid-template-columns:10px 130px minmax(0,1fr) 140px 110px 100px 70px;gap:10px;align-items:center;padding:7px 14px 7px 28px;font-size:13px;border-top:1px solid #f1f4f9;cursor:pointer;color:#1e293b}
.wf-dl-row:hover{background:#f2f7ff}.wf-dl-row .d{width:8px;height:8px;border-radius:50%;background:#cbd5e1}
.wf-dl-row.at{background:#fff6f6}.wf-dl-row.at .d{background:#e0283c}.wf-dl-row.at .f{color:#e0283c;font-weight:700}
.wf-dl-row .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-dl-row .mu,.wf-dl-row .f{color:#64748b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-dl-row .st{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:10px;background:#fff3dc;color:#b86e00;text-align:center;white-space:nowrap}
.wf-dl-row .pr{font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;background:#e7f7ee;color:#12a150;text-align:center}
.wf-dl-row .pr.p-urgente,.wf-dl-row .pr.p-alta{background:#fde2e4;color:#c81e2b}.wf-dl-row .pr.p-normal,.wf-dl-row .pr.p-media{background:#e0edff;color:#1477f2}
.wf-dl-sec:not(.ancho) .wf-dl-row{grid-template-columns:10px 120px minmax(0,1fr) 90px 70px}.wf-dl-sec:not(.ancho) .wf-dl-row :is(.mu,.st){display:none}
@media(max-width:900px){.wf-dl-grid{grid-template-columns:1fr}.wf-dl-row{grid-template-columns:10px 110px minmax(0,1fr) 70px}.wf-dl-row :is(.mu,.st,.f){display:none}}
/* 4.17.512 jerarquía visual Del día */
.wf-dl-sec{border:none!important;box-shadow:0 2px 8px rgba(18,52,95,.10);border-radius:12px}
.wf-dl-sec>header{background:var(--kc)!important;color:#fff!important;padding:9px 14px!important;font-size:15px!important;letter-spacing:.3px}
.wf-dl-sh{display:flex;align-items:center;gap:10px}.wf-dl-sh img{width:34px;height:34px;border-radius:50%;background:#fff;padding:2px;box-sizing:border-box}
.wf-dl-sr{display:flex;align-items:center;gap:10px}
.wf-dl-sec>header em{background:#fff;color:#e0283c!important;border-radius:12px;padding:2px 9px;font-size:11.5px}
.wf-dl-sec>header i{background:rgba(255,255,255,.25)!important;color:#fff!important;font-size:12px;padding:2px 10px!important;border-radius:12px}
.wf-dl-cli{background:color-mix(in srgb,var(--kc) 10%,#fff)!important;border-top:1px solid color-mix(in srgb,var(--kc) 25%,#fff)!important;border-left:5px solid var(--kc);font-size:13px!important;padding:8px 14px 8px 12px!important;text-transform:uppercase}
.wf-dl-cli i{background:#fff!important;color:var(--kc)!important;border:1.5px solid var(--kc)}
.wf-dl-cli em{color:#e0283c;font-style:normal;font-size:11.5px;margin-left:8px}
.wf-dl-row{padding-left:40px!important;background:#fff;font-size:13px}
.wf-dl-row:nth-of-type(even){background:#fafbfd}
.wf-dl-row>b{color:var(--kc);font-weight:800;letter-spacing:.2px}
.wf-dl-row .t{font-weight:600;color:#12345f}
.wf-dl-row .d{background:var(--kc)!important;opacity:.35}
.wf-dl-row.at{background:#fff1f2!important;box-shadow:inset 4px 0 0 #e0283c}
.wf-dl-row.at .d{background:#e0283c!important;opacity:1}
.wf-dl-row.at>b{color:#c81e2b}
.wf-dl-row:hover{background:color-mix(in srgb,var(--kc) 7%,#fff)!important}
/* 4.17.513 Inicio: cabecera fija + tonos claros */
#wf-ini-top{position:sticky;top:58px;z-index:20;background:var(--bg,#f3f6fb);padding:6px 0 12px;margin-top:-6px;box-shadow:0 8px 10px -10px rgba(18,52,95,.25)}
#wf-ini-top .organizer-kpis{margin:10px 0 12px!important}
#wf-ini-top .organizer-kpis.wf-oculto{display:none!important}
#wf-ini-top #dashboard-page-nav{margin:0!important}
#dashboard-organizer-page .wf-org-views{display:none!important}
#dashboard-organizer-page .wf-org-dia{margin-top:14px}
html body .wf-dl-sec>header{background:color-mix(in srgb,var(--kc) 16%,#fff)!important;color:color-mix(in srgb,var(--kc) 75%,#0b1f3a)!important;border-bottom:2px solid color-mix(in srgb,var(--kc) 45%,#fff)}
html body .wf-dl-sec>header i{background:var(--kc)!important;color:#fff!important}
html body .wf-dl-sec>header em{border:1px solid #f3b2b8}
html body .wf-dl-cli{background:color-mix(in srgb,var(--kc) 6%,#fff)!important;border-left-width:4px!important}
#wf-ini-top{top:0!important;padding-top:14px!important;margin-top:-18px!important}
#wf-ini-top>.welcome{margin-top:0!important;padding-top:0!important}
/* 4.17.514 Inicio estático, solo scroll del listado; botones a la derecha */
#dashboard-organizer-page .wf-dl-grid{overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}
#wf-ini-top #dashboard-page-nav{display:flex!important;justify-content:flex-end!important}
/* 4.17.515 sin botón de fecha; listado más compacto */
#dashboard-calendar-button{display:none!important}
html body .wf-dl-sec>header{padding:5px 12px!important;font-size:13px!important}
html body .wf-dl-sh img{width:24px!important;height:24px!important}
html body .wf-dl-sec>header em,html body .wf-dl-sec>header i{font-size:10.5px!important;padding:1px 8px!important}
html body .wf-dl-cli{padding:4px 12px 4px 10px!important;font-size:11.5px!important}
html body .wf-dl-cli i{font-size:10px!important;padding:0 6px!important}
html body .wf-dl-row{padding-top:3px!important;padding-bottom:3px!important;padding-left:32px!important;font-size:12px!important;gap:8px!important;grid-template-columns:8px 115px minmax(0,1fr) 120px 95px 90px 60px}
html body .wf-dl-sec:not(.ancho) .wf-dl-row{grid-template-columns:8px 110px minmax(0,1fr) 85px 60px}
html body .wf-dl-row .mu,html body .wf-dl-row .f{font-size:11px!important}
html body .wf-dl-row .st,html body .wf-dl-row .pr{font-size:9.5px!important;padding:1px 6px!important}
html body .wf-dl-row .d{width:6px!important;height:6px!important}
.wf-dl-grid{gap:10px!important}
.wf-dl-chips{margin:2px 0 10px!important}.wf-dl-chips button{padding:4px 11px!important;font-size:12px!important}
.wf-org-dia .wf-dia-head h2{font-size:16px!important}
/* 4.17.516 tamaño intermedio */
html body .wf-dl-sec>header{padding:7px 14px!important;font-size:14px!important}
html body .wf-dl-sh img{width:28px!important;height:28px!important}
html body .wf-dl-sec>header em,html body .wf-dl-sec>header i{font-size:11px!important;padding:2px 9px!important}
html body .wf-dl-cli{padding:6px 14px 6px 11px!important;font-size:12px!important}
html body .wf-dl-cli i{font-size:10.5px!important;padding:0 7px!important}
html body .wf-dl-row{padding-top:5px!important;padding-bottom:5px!important;padding-left:36px!important;font-size:12.5px!important;gap:9px!important;grid-template-columns:8px 125px minmax(0,1fr) 130px 100px 95px 64px}
html body .wf-dl-sec:not(.ancho) .wf-dl-row{grid-template-columns:8px 118px minmax(0,1fr) 90px 64px}
html body .wf-dl-row .mu,html body .wf-dl-row .f{font-size:11.5px!important}
html body .wf-dl-row .st,html body .wf-dl-row .pr{font-size:10px!important;padding:2px 7px!important}
html body .wf-dl-row .d{width:7px!important;height:7px!important}
.wf-dl-grid{gap:12px!important}
.wf-dl-chips button{padding:5px 12px!important;font-size:12.5px!important}
.wf-org-dia .wf-dia-head h2{font-size:17px!important}
/* 4.17.517 número de OT y trabajo en semibold */
html body .wf-dl-row>b{font-weight:600!important;letter-spacing:0!important}
html body .wf-dl-row .t{font-weight:400!important}
html body .wf-dl-row.at .f{font-weight:600!important}
/* 4.17.518 estados con color de OT, cajas rectas, URGENTE intermitente */
html body .wf-dl-row .st,html body .wf-dl-row .pr{border-radius:2px!important;border:1px solid transparent;font-weight:700!important;text-transform:uppercase}
html body .wf-dl-row .st.s-pend{background:#FFF4DE!important;color:#D68910!important;border-color:#F5D9A3}
html body .wf-dl-row .st.s-prod{background:#E6F0FF!important;color:#1477F2!important;border-color:#B7D2FB}
html body .wf-dl-row .st.s-mani{background:#F0E9FD!important;color:#7D4CE6!important;border-color:#D3C2F7}
html body .wf-dl-row .st.s-esp{background:#EEF2F7!important;color:#5B6B80!important;border-color:#D3DCE7}
html body .wf-dl-row .st.s-term{background:#E5F6EC!important;color:#139A4A!important;border-color:#B6E3C7}
html body .wf-dl-row .st.s-entr{background:#E1F5F1!important;color:#0A8F78!important;border-color:#AFE0D6}
html body .wf-dl-row .pr.p-baja{background:#E7F7EF!important;color:#0A8F78!important;border-color:#B9E5D3}
html body .wf-dl-row .pr.p-normal,html body .wf-dl-row .pr.p-media{background:#E8F2FF!important;color:#1477F2!important;border-color:#BCD6FA}
html body .wf-dl-row .pr.p-alta{background:#FFF1D6!important;color:#D97706!important;border-color:#F4D39A}
html body .wf-dl-row .pr.p-urgente{border:1px solid #D92D3A!important;animation:wf-priority-urgent-blink 1.3s steps(1,end) infinite!important}
@media (prefers-reduced-motion:reduce){html body .wf-dl-row .pr.p-urgente{animation:none!important;background:#D92D3A!important;color:#fff!important}}
html body .wf-dl-sec:not(.ancho) .wf-dl-row{grid-template-columns:8px 112px minmax(0,1fr) 82px 92px 62px!important}
html body .wf-dl-sec:not(.ancho) .wf-dl-row .st{display:block!important}
html body .wf-dl-sec:not(.ancho) .wf-dl-row{grid-template-columns:8px 112px minmax(0,1fr) 82px 108px 62px!important}
html body .wf-dl-sec.ancho .wf-dl-row{grid-template-columns:8px 125px minmax(0,1fr) 130px 100px 110px 64px!important}
html body .wf-dl-row .st{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 4.17.519 Agenda / Calendario */
.wf-ag{padding:14px 16px!important}
.wf-ag-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.wf-ag-tit{display:flex;align-items:center;gap:12px}.wf-ag-tit img{width:50px;height:50px;border-radius:50%}
.wf-ag-tit h2{font:700 22px "Segoe UI",Arial,sans-serif;color:#12345f;margin:0}.wf-ag-tit small{color:#64748b;font-size:12px}
.wf-ag-ctl{display:flex;align-items:center;gap:10px;font-size:13px;color:#33475b}
.wf-ag-ctl select{height:34px;border:1px solid #c9d6e6;border-radius:4px;padding:0 8px;font:inherit}
.wf-ag-vistas{display:flex;border:1px solid #c9d6e6;border-radius:4px;overflow:hidden}
.wf-ag-vistas button{border:0;background:#fff;padding:8px 14px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer;border-right:1px solid #c9d6e6}
.wf-ag-vistas button:last-child{border-right:0}.wf-ag-vistas button.on{background:#0aaf62;color:#fff}
.wf-ag-nav{display:flex;align-items:center;gap:6px;margin:12px 0 10px}
.wf-ag-nav button{height:32px;min-width:34px;border:1px solid #c9d6e6;background:#fff;border-radius:4px;font-weight:700;color:#0aaf62;cursor:pointer;padding:0 10px}
.wf-ag-nav h3{margin:0 0 0 10px;font:700 17px "Segoe UI",Arial;color:#12345f}
.wf-ag-body{overflow:auto}
.wf-ag-dh{display:grid;grid-template-columns:repeat(7,1fr);background:#eef3fa;border:1px solid #dbe4ef;border-bottom:0}
.wf-ag-dh span{padding:6px;text-align:center;font:700 11px "Segoe UI";color:#46607f;text-transform:uppercase}
.wf-ag-mg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #dbe4ef;border-top:1px solid #dbe4ef}
.wf-ag-cel{min-height:112px;border-right:1px solid #dbe4ef;border-bottom:1px solid #dbe4ef;padding:4px;background:#fff;display:flex;flex-direction:column;gap:3px}
.wf-ag-cel.fuera{background:#f7f9fc;opacity:.6}.wf-ag-cel.finde{background:#fafbfd}.wf-ag-cel.hoy{box-shadow:inset 0 0 0 2px #0aaf62;background:#f2fbf6}
.wf-ag-cel .n{display:flex;justify-content:space-between;font:700 12px "Segoe UI";color:#12345f}
.wf-ag-cel .n i{font-style:normal;background:#12345f;color:#fff;border-radius:2px;padding:0 6px;font-size:10.5px}
.wf-ag-ot{border-left:3px solid var(--kc);background:color-mix(in srgb,var(--kc) 8%,#fff);padding:3px 6px;font-size:11.5px;cursor:pointer;display:flex;flex-wrap:wrap;gap:2px 6px;align-items:center;color:#1e293b;border-radius:2px}
.wf-ag-ot:hover{background:color-mix(in srgb,var(--kc) 16%,#fff)}
.wf-ag-ot b{color:var(--kc);font-weight:600}.wf-ag-ot .cl{color:#475569;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.wf-ag-cel .wf-ag-ot{flex-wrap:nowrap;overflow:hidden}.wf-ag-cel .wf-ag-ot .cl{flex:1;min-width:0}
.wf-ag-ot.at{border-left-color:#e0283c;background:#fff1f2}.wf-ag-ot.at b{color:#c81e2b}
.wf-ag-ot .urg{font-style:normal;font-size:9px;font-weight:700;padding:0 4px;border:1px solid #D92D3A;border-radius:2px;animation:wf-priority-urgent-blink 1.3s steps(1,end) infinite}
.wf-ag-ot .ti{width:100%;font-weight:400;color:#12345f}.wf-ag-ot .op{color:#64748b;font-size:11px}
.wf-ag-ot .st{font-size:9.5px;font-weight:700;padding:1px 6px;border-radius:2px;border:1px solid transparent}
.wf-ag-ot .st.s-pend{background:#FFF4DE;color:#D68910}.wf-ag-ot .st.s-prod{background:#E6F0FF;color:#1477F2}.wf-ag-ot .st.s-mani{background:#F0E9FD;color:#7D4CE6}.wf-ag-ot .st.s-esp{background:#EEF2F7;color:#5B6B80}.wf-ag-ot .st.s-term{background:#E5F6EC;color:#139A4A}.wf-ag-ot .st.s-entr{background:#E1F5F1;color:#0A8F78}
.wf-ag-cel .mas{font-size:11px;color:#1477f2;cursor:pointer;font-weight:600}
.wf-ag-sem{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wf-ag-col{border:1px solid #dbe4ef;background:#fff;min-height:420px}.wf-ag-col.hoy{border-color:#0aaf62;box-shadow:0 0 0 1px #0aaf62}
.wf-ag-colh{display:flex;gap:6px;align-items:center;padding:7px 10px;background:#eef3fa;font-size:13px;color:#12345f;cursor:pointer}.wf-ag-col.hoy .wf-ag-colh{background:#e3f6ec}
.wf-ag-colh i{margin-left:auto;font-style:normal;background:#12345f;color:#fff;border-radius:2px;padding:0 6px;font-size:11px}
.wf-ag-colb{padding:6px;display:flex;flex-direction:column;gap:5px}
.wf-ag-dia{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;align-items:start}
.wf-ag-dia section{border:1px solid #dbe4ef;background:#fff}
.wf-ag-dia header{display:flex;justify-content:space-between;padding:7px 12px;background:color-mix(in srgb,var(--kc) 14%,#fff);color:color-mix(in srgb,var(--kc) 75%,#0b1f3a);font:700 13px "Segoe UI";border-bottom:2px solid color-mix(in srgb,var(--kc) 45%,#fff)}
.wf-ag-dia header i{font-style:normal;background:var(--kc);color:#fff;padding:0 7px;border-radius:2px;font-size:11px}
.wf-ag-dl{padding:6px;display:flex;flex-direction:column;gap:5px}
.wf-ag .vacio{color:#94a3b8;font-size:12px;text-align:center;padding:16px}
/* 4.17.520 agenda título fuera del calendario · resumen económico */
.wf-ag-out{margin:4px 0 12px;padding:0 2px}
#wf-ini-top #kpis{margin:10px 0 12px!important}
#wf-ini-top #kpis.wf-oculto{display:none!important}
#kpis .kpi-icon-canvas img.wf-kpi-pic{width:46px;height:46px;border-radius:50%;object-fit:cover;display:block}
#kpis .kpi-icon-canvas:has(img){background:none!important;box-shadow:none!important;width:46px!important;height:46px!important;padding:0!important}
#dashboard-summary-page .bottom-row{display:none!important}
#dashboard-summary-page{padding-top:4px}
#dashboard-agenda-page,#dashboard-summary-page{padding-top:14px!important}
.wf-ag-out{margin-top:0!important}
#dashboard-agenda-page,#dashboard-summary-page{padding-top:22px!important}
/* 4.17.521 KPI unificados (tamaño de Clientes) + acción */
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi){min-height:88px!important;height:88px!important;padding:13px 14px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:12px!important;cursor:pointer!important;transition:box-shadow .15s,transform .15s,border-color .15s}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi):hover{box-shadow:0 6px 16px rgba(18,52,95,.14)!important;transform:translateY(-1px);border-color:#9cc0f5!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi).wf-kpi-on{border-color:#1477f2!important;box-shadow:0 0 0 2px rgba(20,119,242,.25)!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) img{width:56px!important;height:56px!important;flex:0 0 56px!important;max-width:none!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) :is(.kpi-icon-canvas,.module-kpi-icon,.industrial-kpi-icon,.config-kpi-icon,.organizer-kpi-icon):has(img){width:56px!important;height:56px!important;flex:0 0 56px!important;background:none!important;box-shadow:none!important;padding:0!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) strong{font-size:22px!important;line-height:1.15!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) small:first-child{font-size:11.5px!important}
html body:not(#_a) #kpis .kpi-card .trend{font-size:10.5px!important;margin-top:1px!important;display:block}
html body:not(#_a) #kpis .kpi-card>div:last-child{text-align:left!important}
/* Agenda: título en la cabecera, a la izquierda de los botones */
.wf-ag-navtit{display:none!important;margin-right:auto;align-items:center;gap:12px}
#dashboard-view:has(#dashboard-agenda-page:not(.hidden)) .wf-ag-navtit{display:flex!important}
#wf-ini-top #dashboard-page-nav{align-items:center}
.wf-ag-nav{flex-wrap:wrap}.wf-ag-nav .wf-ag-ctl{margin-left:auto}
/* 4.17.522 todos los KPI con la jerarquía visual de Inicio */
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi){background:#fff!important;border:1px solid #dce6f1!important;border-radius:9px!important;box-shadow:none!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi):hover{border-color:#1477f2!important;box-shadow:0 0 0 1px #1477f2!important;transform:none!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) :is([data-kpi-title],.module-kpi-copy>small,.config-kpi small:first-of-type){font-size:11px!important;font-weight:600!important;color:#5c708a!important;text-transform:lowercase!important;letter-spacing:0!important;display:block}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) :is([data-kpi-title],.module-kpi-copy>small,.config-kpi small:first-of-type)::first-letter{text-transform:uppercase!important}
html body:not(#_a) :is(.organizer-kpi,#kpis .kpi-card,.industrial-kpi,.att-kpi,.rrhh-kpi,.config-kpi,.module-mini-kpi) :is(strong,b){font-size:22px!important;font-weight:700!important;color:#12345f!important}
html body:not(#_a) :is(#kpis .kpi-card .trend,.module-mini-kpi .module-kpi-copy>span,.config-kpi em,.industrial-kpi small:not([data-kpi-title]),.rrhh-kpi small:not([data-kpi-title]),.att-kpi small:not([data-kpi-title])){display:none!important}
/* 4.17.523 Correo + Google en Agenda */
#correo-online-view{padding:4px 2px}
.wf-co-tabs{display:flex;gap:8px;margin:14px 0}
.wf-co-tabs button{border:1px solid #c9d6e6;background:#fff;border-radius:8px;padding:9px 16px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer}
.wf-co-tabs button.on{border-color:#1477f2;box-shadow:inset 0 -3px 0 #1477f2;color:#1477f2}
.wf-co-bar{display:flex;gap:8px;margin-bottom:10px}.wf-co-bar select,.wf-co-bar input{height:36px;border:1px solid #c9d6e6;border-radius:6px;padding:0 10px;font:inherit}.wf-co-bar input{flex:1}
.wf-co-bar button,.wf-co-acc button{height:36px;border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:0 14px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer}
.wf-co-acc{display:flex;gap:8px;flex-wrap:wrap}.wf-co-acc button.pri{background:#1477f2;border-color:#1477f2;color:#fff}.wf-co-acc button.dan{color:#d92d3a;border-color:#f2a9b2}
.wf-co-split{display:grid;grid-template-columns:380px 1fr;gap:12px;height:calc(100vh - 290px);min-height:420px}
.wf-co-lista,.wf-co-lector{background:#fff;border:1px solid #dce6f1;border-radius:9px;overflow:auto}
.wf-co-item{padding:9px 12px;border-bottom:1px solid #eef2f7;cursor:pointer;font-size:12.5px}.wf-co-item:hover{background:#f5f9ff}.wf-co-item.on{background:#e8f1ff;box-shadow:inset 3px 0 0 #1477f2}
.wf-co-item .l1{display:flex;justify-content:space-between;gap:8px}.wf-co-item .l1 b{font-weight:500;color:#12345f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-co-item .l1 span{color:#64748b;font-size:11px;white-space:nowrap}
.wf-co-item.nuevo .l1 b,.wf-co-item.nuevo .l2{font-weight:700}
.wf-co-item .l2{color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-co-item .l3 i{font-style:normal;font-size:11px;background:#e7f7ef;color:#0a8f78;padding:1px 6px;border-radius:4px}
.wf-co-item .l4{color:#94a3b8;font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-co-mh{padding:14px 16px;border-bottom:1px solid #eef2f7;font-size:12.5px;color:#33475b}.wf-co-mh h3{margin:0 0 6px;color:#12345f;font-size:17px}.wf-co-mh .mu{color:#64748b;margin:2px 0 8px}
.wf-co-cli{background:#e7f7ef;color:#0a8f78;padding:4px 8px;border-radius:6px;display:inline-block;margin-bottom:8px}
.wf-co-adj{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.wf-co-adj span{border:1px solid #dce6f1;border-radius:6px;padding:3px 8px;font-size:12px;background:#f8fafc}
.wf-co-html{width:100%;height:calc(100% - 170px);min-height:300px;border:0;background:#fff}.wf-co-txt{white-space:pre-wrap;padding:14px 16px;font:13px "Segoe UI",Arial;margin:0}
.wf-co-vacio{color:#94a3b8;text-align:center;padding:40px 12px;font-size:13px}.wf-co-vacio.err{color:#d92d3a}
.wf-co-card{background:#fff;border:1px solid #dce6f1;border-radius:9px;padding:16px 18px;margin-bottom:14px}
.wf-co-card h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#12345f;font-size:16px}.wf-co-card h3 img{width:34px;height:34px;border-radius:50%}
.wf-co-card p.ok{color:#0aaf62}.wf-co-card .mu,.wf-co-tabla .mu{color:#64748b;font-size:12.5px}
.wf-co-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-top:10px;background:#fff}
#correo-online-view .wf-co-body>.wf-co-form{border:1px solid #dce6f1;border-radius:9px;padding:16px}
.wf-co-form label{display:flex;flex-direction:column;gap:4px;font:600 11.5px "Segoe UI",Arial;color:#46607f;text-transform:uppercase}
.wf-co-form label.full,.wf-co-form .full{grid-column:1/-1}.wf-co-form label.chk{flex-direction:row;align-items:center;text-transform:none;font-weight:500}
.wf-co-form input:not([type=checkbox]),.wf-co-form select,.wf-co-form textarea{height:36px;border:1px solid #c9d6e6;border-radius:6px;padding:0 10px;font:13px "Segoe UI",Arial;text-transform:none;color:#12345f}
.wf-co-form textarea{height:auto;padding:8px 10px;resize:vertical}
.wf-co-copy{display:flex;gap:6px}.wf-co-copy input{flex:1}.wf-co-copy button{border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:0 12px;cursor:pointer}
.wf-co-tabla{width:100%;border-collapse:collapse;font-size:12.5px}.wf-co-tabla th{text-align:left;font-size:11px;color:#46607f;background:#eef3fa;padding:6px 8px}.wf-co-tabla td{padding:7px 8px;border-bottom:1px solid #eef2f7}
.wf-co-tabla td.acc{display:flex;gap:6px;justify-content:flex-end}.wf-co-tabla td.acc button{border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:4px 10px;cursor:pointer;font-size:12px}.wf-co-tabla td.acc button.dan{color:#d92d3a}
.wf-ag-gbtn{height:34px;border:1px solid #0aaf62;background:#fff;color:#0a8f50;border-radius:6px;padding:0 12px;font:600 12.5px "Segoe UI",Arial;cursor:pointer}.wf-ag-gbtn.off{border-color:#c9d6e6;color:#12345f}
.wf-ag-ot.wf-ag-g{background:#eafaf1!important;border-left-color:#0aaf62!important}.wf-ag-ot .gtag{font-style:normal;font-size:9px;font-weight:800;color:#fff;background:#0aaf62;border-radius:2px;padding:0 4px}
body.correo-online-active #module-view > :not(#correo-online-view){display:none!important}
.wf-co-carp{display:flex;border:1px solid #c9d6e6;border-radius:6px;overflow:hidden}.wf-co-carp button{border:0;background:#fff;padding:0 12px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer;height:34px}.wf-co-carp button.on{background:#1477f2;color:#fff}
.wf-co-pred{display:inline-flex;align-items:center;padding:0 10px;height:30px;border-radius:6px;background:#fff7e0;color:#b86e00;font:600 12px "Segoe UI",Arial}
/* 4.17.530 editor de correo flotante */
.wf-co-tabs .wf-co-nuevo{background:#1477f2;color:#fff;border-color:#1477f2}
/* 4.17.570 · KPIs propios de Correo y acceso directo a Firmas */
#correo-online-view .wf-co-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.wf-co-tabs .wf-co-irfirmas{margin-left:auto}
#correo-firmas{scroll-margin-top:122px}
/* 4.17.571 · FIX de fondo: la pestana Configuracion de Correo no podia
   desplazarse. Las reglas 4.16.495/4.16.496 ("listados continuos" y "scroll
   aislado") fijan body/.content/#module-view al alto de la pantalla con
   overflow:hidden en todas las rutas menos cinco. Para un listado es
   correcto (la tabla scrollea por dentro), pero Configuracion de Correo es
   un formulario largo sin scroll propio: quedaba cortado y no habia forma
   de llegar a Firmas ni de volver arriba. Solo se libera en esa pestana;
   la Bandeja conserva su pantalla fija de 3 columnas. */
html body:not(#_a).correo-cfg{overflow:visible!important;height:auto!important}
html body:not(#_a).correo-cfg .content{height:auto!important;min-height:0!important;overflow:visible!important}
html body:not(#_a).correo-cfg #module-view{height:auto!important;min-height:0!important;overflow:visible!important;display:block!important}
/* 4.17.571 · barra de pestanas fija y boton flotante para volver arriba */
#correo-online-view .wf-co-tabs-fija{position:sticky;top:58px;z-index:7;background:#f5f9fd;padding:8px 2px;margin:8px -2px 10px;border-bottom:1px solid #e3ecf6}
#correo-arriba{position:fixed;left:225px;bottom:20px;z-index:60;display:none;align-items:center;gap:6px;
  height:40px;padding:0 16px;border:1px solid #1477f2;border-radius:20px;background:#1477f2;color:#fff;
  font:700 13px "Segoe UI",Arial;cursor:pointer;box-shadow:0 8px 22px rgba(18,52,95,.28)}
#correo-arriba.ver{display:inline-flex}
#correo-arriba:hover{background:#0f63cc;border-color:#0f63cc}
@media(max-width:820px){#correo-arriba{left:88px}}
@media(max-width:1180px){#correo-online-view .wf-co-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
#wf-comp{position:fixed;right:24px;bottom:16px;width:min(800px,calc(100vw - 260px));height:min(680px,calc(100vh - 90px));background:#fff;border:1px solid #b9cbe4;border-radius:10px;box-shadow:0 18px 50px rgba(18,52,95,.30);z-index:9000;display:flex;flex-direction:column;font:13px "Segoe UI",Arial}
#wf-comp.max{right:2vw;left:calc(2vw + 200px);width:auto;top:70px;height:auto;bottom:14px}
#wf-comp.min{height:42px;width:360px}#wf-comp.min .wf-cp-in{display:none}
#wf-comp .wf-cp-h{background:#12345f;color:#fff;padding:0 8px 0 14px;height:42px;border-radius:10px 10px 0 0;display:flex;justify-content:space-between;align-items:center;font-weight:600;cursor:default;flex:0 0 42px}
#wf-comp .wf-cp-hb button{background:none;border:0;color:#fff;font-size:15px;width:30px;height:30px;cursor:pointer;border-radius:4px}#wf-comp .wf-cp-hb button:hover{background:rgba(255,255,255,.15)}
#wf-comp .wf-cp-in{display:flex;flex-direction:column;flex:1;min-height:0}
#wf-comp .wf-cp-f{display:flex;align-items:center;gap:8px;border-bottom:1px solid #eef2f7;padding:5px 14px;min-height:36px}#wf-comp .wf-cp-f.oc{display:none}
#wf-comp .wf-cp-f>label{width:52px;color:#64748b;font-size:12px;flex:0 0 52px}#wf-comp .wf-cp-f>select,#wf-comp .wf-cp-f>input{flex:1;border:0;outline:0;font:inherit;color:#12345f;height:30px;background:transparent}#wf-comp .wf-cp-f>a{color:#1477f2;font-size:12px;text-decoration:none;white-space:nowrap}
#cp-asunto{font-weight:600}
#wf-comp .wf-cp-dest{flex:1;display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative;cursor:text}#wf-comp .wf-cp-dest input{flex:1;min-width:160px;border:0;outline:0;font:inherit;height:28px}
#wf-comp .wf-cp-dest .pill{background:#e8f1ff;border:1px solid #bcd6fa;border-radius:12px;padding:2px 8px;font-size:12px;color:#12345f}#wf-comp .wf-cp-dest .pill.mal{background:#fde2e4;border-color:#f2a9b2}#wf-comp .wf-cp-dest .pill b{cursor:pointer;color:#64748b;margin-left:3px}
#wf-comp .wf-cp-sug{position:absolute;top:100%;left:0;z-index:5;background:#fff;border:1px solid #c9d6e6;border-radius:6px;box-shadow:0 8px 20px rgba(0,0,0,.14);width:380px;max-height:260px;overflow:auto}
#wf-comp .wf-cp-sug div{padding:6px 10px;cursor:pointer;font-size:12px;border-bottom:1px solid #f1f4f9}#wf-comp .wf-cp-sug div.on,#wf-comp .wf-cp-sug div:hover{background:#eef5ff}#wf-comp .wf-cp-sug small{color:#0a8f78;background:#e7f7ee;border-radius:4px;padding:0 5px}#wf-comp .wf-cp-sug span{color:#64748b}
#wf-comp .wf-cp-tb{display:flex;flex-wrap:wrap;gap:3px;padding:6px 10px;border-bottom:1px solid #eef2f7;align-items:center;background:#f8fafc}
#wf-comp .wf-cp-tb button,#wf-comp .wf-cp-tb select,#wf-comp .wf-cp-col{height:28px;min-width:28px;border:1px solid #dce6f1;background:#fff;border-radius:4px;padding:0 7px;font:12px "Segoe UI",Arial;color:#12345f;cursor:pointer;display:inline-flex;align-items:center;gap:2px}
#wf-comp .wf-cp-tb button:hover{background:#eef5ff}#wf-comp .wf-cp-col{position:relative;font-weight:700;color:#d92d3a}#wf-comp .wf-cp-col.hl{color:#e2c400}#wf-comp .wf-cp-col input{position:absolute;inset:0;opacity:0;cursor:pointer}
#wf-comp .wf-cp-tb .sep{flex:1}#wf-comp .wf-cp-dd{position:relative}#wf-comp .wf-cp-menu{position:absolute;right:0;top:32px;z-index:6;background:#fff;border:1px solid #c9d6e6;border-radius:6px;box-shadow:0 8px 20px rgba(0,0,0,.14);min-width:260px}
#wf-comp .wf-cp-menu div{padding:7px 12px;cursor:pointer;font-size:12.5px}#wf-comp .wf-cp-menu div:hover{background:#eef5ff}#wf-comp .wf-cp-menu hr{margin:2px 0;border:0;border-top:1px solid #eef2f7}
#wf-comp .wf-cp-ed{flex:1;overflow:auto;padding:14px 18px;outline:0;font:14px "Segoe UI",Arial;color:#1e293b;line-height:1.5}#wf-comp .wf-cp-ed img{max-width:100%}#wf-comp .wf-cp-ed .wf-firma{color:#46607f}
#wf-comp .wf-cp-adjs{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px;border-top:1px solid #eef2f7}#wf-comp .wf-cp-adjs span{border:1px solid #dce6f1;border-radius:6px;padding:4px 9px;font-size:12px;background:#f8fafc}#wf-comp .wf-cp-adjs span b{cursor:pointer;color:#d92d3a;margin-left:4px}#wf-comp .wf-cp-adjs .vacio{border-style:dashed;color:#94a3b8;background:#fff}
#wf-comp .wf-cp-ft{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-top:1px solid #eef2f7}#wf-comp .wf-cp-st{color:#0aaf62;font-size:11.5px}
#wf-comp .wf-cp-ft button{height:34px;border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:0 14px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer;margin-left:6px}#wf-comp .wf-cp-ft button.pri{background:#1477f2;border-color:#1477f2;color:#fff;padding:0 22px}
#wf-comp .wf-cp-drop{display:none;position:absolute;inset:42px 0 0;background:rgba(20,119,242,.08);border:3px dashed #1477f2;border-radius:0 0 10px 10px;align-items:center;justify-content:center;font:700 16px "Segoe UI";color:#1477f2;pointer-events:none}#wf-comp.drag .wf-cp-drop{display:flex}
.wf-co-firmas{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wf-co-firma b{display:block;margin-bottom:4px;color:#12345f}.wf-co-fed{min-height:90px;border:1px solid #c9d6e6;border-radius:6px;padding:8px 10px;outline:0;font:13px "Segoe UI",Arial;margin-bottom:6px}.wf-co-fed img{max-height:80px}
.wf-co-firma button{border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:5px 12px;cursor:pointer}
/* 4.17.531 bandeja tipo Thunderbird */
.wf-co-3{display:grid;grid-template-columns:250px 370px 1fr;gap:10px;height:calc(100vh - 235px);min-height:480px}
.wf-co-arbol{background:#fff;border:1px solid #dce6f1;border-radius:9px;padding:8px;overflow:auto}
.wf-co-t{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:12.5px;color:#1e293b;white-space:nowrap}
.wf-co-t span{flex:1;overflow:hidden;text-overflow:ellipsis}.wf-co-t:hover{background:#f2f7ff}.wf-co-t.on{background:#e8f1ff;color:#1477f2;font-weight:600}
.wf-co-t.top{font-weight:700;font-size:13px}.wf-co-t.cta{font-weight:600;color:#12345f}.wf-co-t.sub{padding-left:28px;font-weight:400}
.wf-co-t .fl{width:12px;color:#64748b;font-weight:400}.wf-co-t i{font-style:normal;background:#1477f2;color:#fff;border-radius:9px;padding:0 7px;font-size:11px;font-weight:600}.wf-co-t em{font-style:normal;background:#d92d3a;color:#fff;border-radius:9px;padding:0 6px;font-size:11px}
.wf-co-grp{font-size:10.5px;color:#94a3b8;font-weight:700;margin:12px 0 4px 8px;letter-spacing:.5px}
.wf-co-col{background:#fff;border:1px solid #dce6f1;border-radius:9px;display:flex;flex-direction:column;overflow:hidden}
.wf-co-lh{display:flex;justify-content:space-between;align-items:center;padding:9px 12px 4px}.wf-co-lh b{font-size:14px;color:#12345f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-co-lh button{border:1px solid #c9d6e6;background:#fff;border-radius:6px;width:30px;height:28px;cursor:pointer;font-size:14px}.wf-co-lh button.gira{animation:wf-online-spin 1s linear infinite}
#co-buscar{margin:4px 10px;height:32px;border:1px solid #c9d6e6;border-radius:6px;padding:0 10px;font:13px "Segoe UI",Arial}
.wf-co-flt{display:flex;gap:5px;padding:4px 10px 8px;border-bottom:1px solid #eef2f7}.wf-co-flt span{border:1px solid #c9d6e6;border-radius:12px;padding:2px 9px;font-size:11.5px;cursor:pointer}.wf-co-flt span.on{background:#1477f2;color:#fff;border-color:#1477f2}
.wf-co-col .wf-co-lista{border:0;border-radius:0;flex:1}
.wf-co-item .l3{display:flex;gap:6px;align-items:center}.wf-co-item .l3 u{text-decoration:none;font-size:10.5px;background:#eef2f7;color:#5b6b80;padding:1px 6px;border-radius:4px}.wf-co-item em.st{font-style:normal;color:#f2a900;margin-right:4px}
.wf-co-3 .wf-co-lector{display:flex;flex-direction:column}.wf-co-3 .wf-co-html{flex:1;height:auto}
.wf-co-mh .wf-co-acc{margin-bottom:8px}.wf-co-mh .wf-co-acc button{height:30px;padding:0 10px;font-size:12px}.wf-co-mh .wf-co-acc button.star{color:#f2a900;border-color:#f5d78a}
.wf-co-acc.verde button{background:#e7f7ee;border-color:#9fdcbf;color:#0a8f50}
/* 4.17.532 editor centrado, más grande, redimensionable y movible */
#wf-comp{right:auto!important;bottom:auto!important;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1100px,92vw);height:min(840px,90vh);min-width:560px;min-height:420px;max-width:98vw;max-height:97vh;resize:both;overflow:hidden}
#wf-comp.movido{transform:none}
#wf-comp.max{left:1vw!important;top:1.5vh!important;width:98vw!important;height:97vh!important;transform:none;resize:none}
#wf-comp.min{left:auto!important;right:24px!important;top:auto!important;bottom:16px!important;transform:none;width:360px!important;height:42px!important;min-height:0;min-width:0;resize:none}
#wf-comp .wf-cp-h{cursor:move;user-select:none}
#wf-comp::after{content:"";position:absolute;right:2px;bottom:2px;width:12px;height:12px;background:linear-gradient(135deg,transparent 50%,#9fb3cf 50%,#9fb3cf 60%,transparent 60%,transparent 72%,#9fb3cf 72%,#9fb3cf 82%,transparent 82%);pointer-events:none}
#wf-comp.min::after,#wf-comp.max::after{display:none}
#wf-comp-velo{position:fixed;inset:0;background:rgba(15,35,65,.28);z-index:8999}
.wf-co-adjb{display:inline-flex;gap:2px;padding:0!important;overflow:hidden}.wf-co-adjb a{padding:4px 9px;color:#12345f;text-decoration:none}.wf-co-adjb a:hover{background:#e8f1ff;color:#1477f2}.wf-co-adjb a+a{border-left:1px solid #dce6f1}
.wf-co-gal{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.wf-co-gal a{width:150px;height:110px;border:1px solid #dce6f1;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f8fafc;color:#94a3b8;font-size:11px;text-decoration:none}
.wf-co-gal a:hover{border-color:#1477f2}.wf-co-gal img{width:100%;height:100%;object-fit:cover}
/* 4.17.536 Inicio › Correo */
#dashboard-page-nav [data-dashboard-page="correo"]{position:relative}.wf-ini-co-ic{width:30px;height:30px;border-radius:50%}
.wf-ini-co-n{position:absolute;top:-7px;right:-7px;background:#e0283c;color:#fff;border-radius:10px;padding:0 6px;font:700 11px "Segoe UI";line-height:18px;min-width:18px;text-align:center}
#dashboard-correo-page{padding-top:22px!important}
.wf-ini-co{padding:14px 16px!important}.wf-ini-co-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.wf-ini-co-h h2{margin:0;font-size:17px;color:#14365f}.wf-ini-co-h small{color:#64748b}.wf-ini-co-ctl{display:flex;align-items:center;gap:8px}.wf-ini-co-ctl .wf-dl-chips{margin:0!important}
.wf-ini-co-b{height:32px;border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:0 12px;font:600 12.5px "Segoe UI",Arial;color:#12345f;cursor:pointer}.wf-ini-co-b.pri{background:#1477f2;border-color:#1477f2;color:#fff}
.wf-ini-co-l{overflow:auto;border:1px solid #e3e8f0;border-radius:9px}
.wf-ini-co-r{display:grid;grid-template-columns:8px 210px minmax(0,1fr) auto 70px;gap:10px;align-items:center;padding:7px 14px;border-bottom:1px solid #f1f4f9;font-size:12.5px;cursor:pointer;color:#33475b}
.wf-ini-co-r:hover{background:#f2f7ff}.wf-ini-co-r .d{width:7px;height:7px;border-radius:50%}.wf-ini-co-r.nuevo .d{background:#1477f2}.wf-ini-co-r.nuevo .de,.wf-ini-co-r.nuevo .as{font-weight:700;color:#12345f}
.wf-ini-co-r .de{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-ini-co-r .as{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-ini-co-r .as em{font-style:normal;font-weight:400;color:#94a3b8}
.wf-ini-co-r .tg{display:flex;gap:5px;align-items:center}.wf-ini-co-r .tg i{font-style:normal;font-size:10.5px;padding:1px 6px;border-radius:4px}.wf-ini-co-r .cli{background:#e7f7ee;color:#0a8f78}.wf-ini-co-r .cta{background:#eef2f7;color:#5b6b80}
.wf-ini-co-r .fe{text-align:right;color:#64748b;font-size:11.5px}
#wf-ini-top #dashboard-page-nav,#dashboard-page-nav [data-dashboard-page="correo"]{overflow:visible!important}.wf-ini-co-n{top:-9px;right:-6px;z-index:2}#wf-ini-top{padding-top:18px!important}
/* 4.17.537 KPI de correo en Inicio */
.wf-co-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 12px}.wf-co-kpis.wf-oculto{display:none}
.wf-co-kpi{height:88px;box-sizing:border-box;padding:13px 14px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dce6f1;border-radius:9px;cursor:pointer;transition:box-shadow .15s,border-color .15s}
.wf-co-kpi:hover{border-color:#1477f2;box-shadow:0 0 0 1px #1477f2}.wf-co-kpi.on{border-color:#1477f2;box-shadow:0 0 0 2px rgba(20,119,242,.25)}
.wf-co-kpi img{width:56px;height:56px;border-radius:50%;flex:0 0 56px}.wf-co-kpi span{display:block;font:600 11px "Segoe UI",Arial;color:#5c708a}.wf-co-kpi b{display:block;font:700 22px "Segoe UI",Arial;color:#12345f}
/* 4.17.538 KPI agenda */
.wf-ag-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:10px 0 12px}.wf-ag-kpis.wf-oculto{display:none}
.wf-ag-filt{height:30px;border:1px solid #f2a9b2;background:#fff1f2;color:#c81e2b;border-radius:15px;padding:0 12px;font:600 12px "Segoe UI",Arial;cursor:pointer;margin-left:10px}
html body .wf-ag-nav .wf-ag-filt{border:1px solid #f2a9b2!important;background:#fff1f2!important;color:#c81e2b!important;min-width:0!important}
/* 4.17.539 bandeja de correo en Inicio */
#dashboard-correo-page #correo-online-view{background:#fff;border:1px solid #dce6f1;border-radius:12px;padding:12px 14px}
.wf-co-tabs-ini{margin-bottom:10px}
/* 4.17.540 botones de Inicio encima de los KPI */
#wf-ini-top{display:flex!important;flex-wrap:wrap;align-items:flex-end;column-gap:16px}
#wf-ini-top>*{order:3;flex:0 0 100%;min-width:0}
#wf-ini-top>.welcome{order:0;flex:1 1 320px;margin-bottom:0!important}
#wf-ini-top>#dashboard-page-nav{order:1;flex:0 1 auto;margin:0 0 2px!important;flex-wrap:wrap;gap:8px}
#wf-ini-top>.organizer-kpis,#wf-ini-top>#kpis,#wf-ini-top>.wf-co-kpis,#wf-ini-top>.wf-ag-kpis{order:2;margin:14px 0 0!important}
html body #dashboard-view #wf-ini-top #dashboard-page-nav .wf-ag-navtit{display:none!important}
/* 4.17.542 eventos Google en la agenda */
.wf-ag-gbtn.nuevo{background:#0aaf62;color:#fff;border-color:#0aaf62}
.wf-ag-mas{display:none;margin-left:auto;width:20px;height:20px;line-height:18px;padding:0;border:1px solid #0aaf62;border-radius:50%;background:#fff;color:#0a8f50;font:700 13px "Segoe UI",Arial;cursor:pointer}
.wf-ag-cel:hover .wf-ag-mas,.wf-ag-col:hover .wf-ag-mas{display:inline-block}
.wf-ag-cel .n{display:flex;align-items:center;gap:4px}.wf-ag-cel .n .wf-ag-mas{order:3}
.wf-ag-colh{display:flex;align-items:center;gap:6px}.wf-ag-colh .wf-ag-mas{margin-left:auto}.wf-ag-colh .wf-ag-mas+i{margin-left:6px!important}
.wf-ag-mas:hover{background:#0aaf62;color:#fff}
.wf-ag-ot.wf-ag-g{background:color-mix(in srgb,var(--kc) 13%,#fff)!important;border-left-color:var(--kc)!important;cursor:pointer}
.wf-ag-ot.wf-ag-g .gtag{background:var(--kc)!important}
#wf-ag-ev{position:fixed;inset:0;background:rgba(18,52,95,.35);z-index:9500;display:flex;align-items:center;justify-content:center;font:13px "Segoe UI",Arial}
.wf-ag-ev-box{width:min(560px,94vw);background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(18,52,95,.35);overflow:hidden}
.wf-ag-ev-h{display:flex;justify-content:space-between;align-items:center;background:#0aaf62;color:#fff;padding:10px 14px;font-size:15px}.wf-ag-ev-h button{background:none;border:0;color:#fff;font-size:16px;cursor:pointer}
.wf-ag-ev-b{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.wf-ag-ev-b label{display:flex;flex-direction:column;gap:4px;color:#64748b;font-size:12px;font-weight:600}
.wf-ag-ev-b input,.wf-ag-ev-b select,.wf-ag-ev-b textarea{height:34px;border:1px solid #c9d6e6;border-radius:6px;padding:0 10px;font:13px "Segoe UI",Arial;color:#12345f;text-transform:none}
.wf-ag-ev-b textarea{height:auto;padding:8px 10px;resize:vertical}
.wf-ag-ev-b input.tit{height:40px;font-size:17px;font-weight:600;border-width:0 0 2px;border-radius:0;padding:0 2px}.wf-ag-ev-b input.tit:focus{outline:0;border-color:#0aaf62}.wf-ag-ev-b input.err{border-color:#e0283c}
.wf-ag-ev-b label.chk{flex-direction:row;align-items:center;gap:6px;color:#12345f;font-size:13px}.wf-ag-ev-b label.chk input{height:auto}
.wf-ag-ev-b .fila{display:grid;grid-template-columns:1fr 118px 1fr 118px;gap:8px}
.wf-ag-ev-b .aviso{background:#fff7e0;color:#b86e00;border-radius:6px;padding:6px 10px}
.wf-ag-ev-f{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-top:1px solid #eef2f7;background:#f8fafc}.wf-ag-ev-f a{color:#1477f2;text-decoration:none;font-size:12px}
.wf-ag-ev-f button{height:34px;border:1px solid #c9d6e6;background:#fff;border-radius:6px;padding:0 14px;font:600 13px "Segoe UI",Arial;color:#12345f;cursor:pointer;margin-left:6px}
.wf-ag-ev-f button.pri{background:#0aaf62;border-color:#0aaf62;color:#fff}.wf-ag-ev-f button.del{color:#c81e2b;border-color:#f2a9b2}
/* 4.17.543 verde más suave + rejilla horaria */
.wf-ag-vistas button.on{background:#e3f4eb!important;color:#1d7a50!important;box-shadow:inset 0 -2px 0 #6cc29a}
.wf-ag-nav button{color:#2e9466}
.wf-ag-gbtn{border-color:#a9dcc3;color:#1d7a50}.wf-ag-gbtn.nuevo{background:#e3f4eb;color:#1d7a50;border-color:#a9dcc3}.wf-ag-gbtn.nuevo:hover{background:#d3eee0}
.wf-ag-cel.hoy{box-shadow:inset 0 0 0 2px #9ed6bb;background:#f6fcf9}
.wf-ag-col.hoy{border-color:#9ed6bb;box-shadow:none}
.wf-ag-mas{border-color:#8fcfb0;color:#2e9466}.wf-ag-mas:hover{background:#e3f4eb;color:#1d7a50}
.wf-ag-ev-h{background:#e3f4eb;color:#1d6b47;border-bottom:1px solid #c5e8d6}.wf-ag-ev-h button{color:#1d6b47}
.wf-ag-ev-f button.pri{background:#3fa676;border-color:#3fa676}
.wf-ag-ev-b input.tit:focus{border-color:#6cc29a}
.wf-ag-rj{display:flex;flex-direction:column;height:100%;border:1px solid #dbe4ef;background:#fff}
.wf-ag-rj .rj-h,.wf-ag-rj .rj-ad,.wf-ag-rj .rj-in{display:grid;grid-template-columns:58px repeat(var(--n),minmax(0,1fr))}
.wf-ag-rj .rj-h,.wf-ag-rj .rj-ad,.wf-ag-rj .rj-g{scrollbar-gutter:stable}
.wf-ag-rj .rj-h{overflow:hidden;flex:0 0 auto;background:#eef3fa;border-bottom:1px solid #dbe4ef}
.rj-dh{display:flex;align-items:center;gap:6px;padding:7px 10px;font-size:13px;color:#12345f;cursor:pointer;border-left:1px solid #dbe4ef}
.rj-dh i{font-style:normal;background:#12345f;color:#fff;font-size:10.5px;padding:0 6px;border-radius:2px}.rj-dh .wf-ag-mas{margin-left:auto}
.rj-dh.hoy{background:#eaf7f0;color:#1d6b47}.rj-dh:hover .wf-ag-mas{display:inline-block}
.wf-ag-rj .rj-ad{flex:0 1 auto;max-height:44%;min-height:60px;overflow-y:auto;border-bottom:2px solid #dbe4ef}
.wf-ag-rj .gut{font-size:10.5px;color:#7a8aa0;text-align:right;padding:6px 6px 0 0;line-height:1.2}
.rj-adc{border-left:1px solid #e6edf5;padding:5px;display:flex;flex-direction:column;gap:5px;min-width:0}.rj-adc.hoy{background:#f7fcf9}
.rj-adc .wf-ag-dia{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.rj-adc.sobre,.wf-ag-cel.sobre{background:#e6f5ee!important;box-shadow:inset 0 0 0 2px #8fcfb0}
.wf-ag-rj .rj-g{flex:1;overflow-y:auto;position:relative}
.wf-ag-rj .rj-in{position:relative}
.wf-ag-rj .rj-in>.gut{position:relative;padding:0}.wf-ag-rj .rj-in>.gut span{position:absolute;right:6px;transform:translateY(-50%)}
.rj-c{position:relative;border-left:1px solid #e6edf5;background:repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#edf1f6 43px,#edf1f6 44px);cursor:cell}
.rj-c.hoy{background-color:#f7fcf9}
.rj-ahora{position:absolute;left:0;right:0;border-top:2px solid #e0574f;pointer-events:none;z-index:3}.rj-ahora:before{content:"";position:absolute;left:-5px;top:-6px;width:10px;height:10px;border-radius:50%;background:#e0574f}
.wf-ag-gev{position:absolute;z-index:2;box-sizing:border-box;border-radius:5px;padding:3px 7px;overflow:hidden;font:12px "Segoe UI",Arial;color:#183049;cursor:pointer;
  background:color-mix(in srgb,var(--kc) 22%,#fff);border:1px solid color-mix(in srgb,var(--kc) 45%,#fff);border-left:4px solid var(--kc);display:flex;flex-direction:column;gap:1px;user-select:none;touch-action:none}
.wf-ag-gev b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wf-ag-gev .hr,.wf-ag-gev .lg{font-size:11px;color:#46607f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-ag-gev.corto{flex-direction:row;align-items:center;gap:6px;padding-top:1px}
.wf-ag-gev.mov{cursor:grab}.wf-ag-gev.arr{cursor:grabbing;opacity:.88;box-shadow:0 8px 20px rgba(18,52,95,.25);z-index:5}
.wf-ag-gev .rs{position:absolute;left:0;right:0;bottom:0;height:7px;cursor:ns-resize}.wf-ag-gev .rs:after{content:"";position:absolute;left:50%;bottom:2px;width:18px;margin-left:-9px;border-top:2px solid color-mix(in srgb,var(--kc) 60%,#fff);opacity:0}
.wf-ag-gev:hover .rs:after{opacity:1}
.wf-ag-ot.wf-ag-g[draggable=true]{cursor:grab}.wf-ag-ot.arr{opacity:.5}
/* 4.17.544 Gran formato y Digital a la misma altura */
#dashboard-organizer-page .wf-dl-sec.par{align-self:stretch}
/* 4.17.545 chips más suaves + scroll dentro de cada sector */
#dashboard-organizer-page .wf-dl-chips button{border:1px solid color-mix(in srgb,var(--kc) 35%,#fff)!important;color:color-mix(in srgb,var(--kc) 80%,#334155)!important;background:#fff!important;font-weight:600!important}
#dashboard-organizer-page .wf-dl-chips button i{background:color-mix(in srgb,var(--kc) 14%,#fff)!important;color:color-mix(in srgb,var(--kc) 85%,#0b1f3a)!important;font-weight:700}
#dashboard-organizer-page .wf-dl-chips button:hover{background:color-mix(in srgb,var(--kc) 6%,#fff)!important}
#dashboard-organizer-page .wf-dl-chips button.on{background:color-mix(in srgb,var(--kc) 12%,#fff)!important;border-color:color-mix(in srgb,var(--kc) 55%,#fff)!important;color:color-mix(in srgb,var(--kc) 85%,#0b1f3a)!important;box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--kc) 45%,#fff)}
#dashboard-organizer-page .wf-dl-chips button.on i{background:color-mix(in srgb,var(--kc) 25%,#fff)!important}
#dashboard-organizer-page .wf-dl-sec{display:flex;flex-direction:column}
#dashboard-organizer-page .wf-dl-cuerpo{overflow-y:auto;max-height:max(200px,calc(var(--dlh,640px)*.42 - 46px));scrollbar-width:thin}
#dashboard-organizer-page .wf-dl-sec.par .wf-dl-cuerpo{max-height:max(260px,calc(var(--dlh,640px)*.66 - 46px));flex:1}
#dashboard-organizer-page .wf-dl-sec.ancho .wf-dl-cuerpo{max-height:none}
/* 4.17.545 teclado en el calendario */
#dashboard-agenda-page .kfoco{outline:2px dashed #5b9cf0;outline-offset:1px;z-index:4}
#dashboard-agenda-page .ksel{outline:2px solid #1477f2!important;box-shadow:0 0 0 4px rgba(20,119,242,.18)!important}
/* 4.17.546 Gran formato/Digital dejan ver 2 órdenes de cada sector de abajo */
#dashboard-organizer-page .wf-dl-cuerpo{max-height:112px}
#dashboard-organizer-page .wf-dl-sec.par .wf-dl-cuerpo{max-height:max(220px,calc(var(--dlh,640px) - 212px));height:max(220px,calc(var(--dlh,640px) - 212px))}
/* 4.17.548 listados más compactos (líneas más estrechas) */
html body:not(#_a) #module-view .module-card table tbody td{padding-top:7px!important;padding-bottom:7px!important;height:auto!important}
html body:not(#_a) #module-view .module-card table thead th{padding-top:7px!important;padding-bottom:7px!important}
html body:not(#_a) #module-view tbody :is(.client-list-avatar,.budget-list-avatar){width:28px!important;height:28px!important;min-width:28px!important;font-size:10.5px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;padding:0!important;text-align:center!important;box-sizing:border-box!important;vertical-align:middle!important}
html body:not(#_a) #module-view tbody .row-actions{gap:4px!important;flex-wrap:nowrap!important;align-items:center!important}
html body:not(#_a) #module-view tbody .row-actions button{height:26px!important;min-height:26px!important;min-width:0!important;padding:0 7px!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;line-height:1!important}
html body:not(#_a) #module-view tbody .row-actions button :is(svg,.wf-svg-icon){width:14px!important;height:14px!important}
html body:not(#_a) #module-view tbody .row-actions button small{font-size:11px!important;margin:0!important;line-height:1!important}
html body:not(#_a) #module-view tbody :is(.status-pill,.badge,.pill,[class*="estado"]){padding-top:2px!important;padding-bottom:2px!important}
/* 4.17.550 botones de acción con ancho automático (Órdenes y demás listados) */
html body:not(#_a) #module-view tbody .row-actions button{width:auto!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important;white-space:nowrap!important}
html body:not(#_a) #module-view tbody td:has(>.row-actions),html body:not(#_a) #module-view tbody td:has(.row-actions){width:1%!important;white-space:nowrap!important}
html body:not(#_a) #module-view tbody .row-actions{justify-content:flex-start!important;width:max-content!important}
/* en Órdenes la columna de acciones es estrecha: solo iconos */
html body[data-route="ordenes"]:not(#_a) #module-view tbody .row-actions button{width:28px!important;min-width:28px!important;padding:0!important;justify-content:center!important}
html body[data-route="ordenes"]:not(#_a) #module-view tbody .row-actions button small{display:none!important}
html body[data-route="ordenes"]:not(#_a) #module-view tbody .row-actions{gap:4px!important}
/* 4.17.551 aviso de correo nuevo (abajo a la derecha) */
#wf-avisos-correo{position:fixed;right:18px;bottom:18px;z-index:9800;display:flex;flex-direction:column;gap:10px;align-items:flex-end;pointer-events:none}
.wf-aviso-co{pointer-events:auto;position:relative;width:360px;max-width:calc(100vw - 36px);display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #cfe0f5;border-left:4px solid #1477f2;border-radius:10px;padding:12px 34px 14px 12px;box-shadow:0 12px 32px rgba(18,52,95,.22);cursor:pointer;font:13px "Segoe UI",Arial;color:#12345f;overflow:hidden;
  opacity:0;transform:translateX(30px);transition:opacity .25s,transform .25s}
.wf-aviso-co.in{opacity:1;transform:none}.wf-aviso-co.out{opacity:0;transform:translateX(30px)}
.wf-aviso-co:hover{border-color:#9cc4f2;background:#f7fbff}
.wf-aviso-co>img{width:38px;height:38px;border-radius:50%;flex:0 0 38px}
.wf-aviso-co .tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.wf-aviso-co small{color:#64748b;font-size:11px}.wf-aviso-co small b{color:#1477f2;font-weight:600}
.wf-aviso-co strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-aviso-co .as{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-aviso-co .rs{color:#64748b;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wf-aviso-co .x{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;background:none;color:#94a3b8;cursor:pointer;border-radius:4px}.wf-aviso-co .x:hover{background:#eef2f7;color:#12345f}
.wf-aviso-co .perm{position:absolute;left:62px;bottom:3px;font-size:10.5px;color:#1477f2;text-decoration:none}
.wf-aviso-co:has(.perm){padding-bottom:22px}
.wf-aviso-co .barra{position:absolute;left:0;bottom:0;height:3px;background:#1477f2;opacity:.35;width:100%;animation:wf-aviso-t 15s linear forwards}
.wf-aviso-co.pausa .barra{animation-play-state:paused}
@keyframes wf-aviso-t{to{width:0}}
/* 4.17.552 vista Sectores en Órdenes de trabajo (mismo estilo que Inicio) */
#order-board.wf-ot-sec .wf-dl-grid{overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}
#order-board.wf-ot-sec .wf-dl-sec.par{align-self:stretch}
#order-board.wf-ot-sec .wf-dl-sec{display:flex;flex-direction:column}
#order-board.wf-ot-sec .wf-dl-sec.ancho .wf-dl-cuerpo{max-height:none}
#order-board.wf-ot-sec .wf-dl-cuerpo{max-height:112px}
#order-board.wf-ot-sec .wf-dl-sec.par .wf-dl-cuerpo{max-height:max(220px,calc(var(--dlh,640px) - 212px));height:max(220px,calc(var(--dlh,640px) - 212px))}
#order-board.wf-ot-sec{padding:12px 14px 0}
#order-board.wf-ot-sec .wf-dl-row{cursor:pointer}
#order-board.wf-ot-sec .wf-dl-grid{padding-bottom:4px}
:is(#dashboard-organizer-page,#order-board.wf-ot-sec) .wf-dl-sec.ancho .wf-dl-cuerpo{max-height:none!important;height:auto!important}
#order-board.wf-ot-sec .wf-dl-cuerpo{overflow-y:auto;scrollbar-width:thin}
/* 4.17.553 Kanban y Por cliente con el estilo de Sectores */
#order-board.wf-ot-sec .wf-dl-grid.wf-kb{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
#order-board.wf-ot-sec .wf-kb .wf-dl-cuerpo{max-height:none!important;height:calc(var(--dlh,640px) - 56px);padding:8px;display:flex;flex-direction:column;gap:7px;background:color-mix(in srgb,var(--kc) 4%,#fff)}
.wf-kb-card{background:#fff;border:1px solid #e3e8f0;border-left:3px solid var(--sc);border-radius:7px;padding:7px 9px;cursor:pointer;display:flex;flex-direction:column;gap:3px;font-size:12px;color:#33475b;box-shadow:0 1px 2px rgba(18,52,95,.06)}
.wf-kb-card:hover,.wf-kb-card:focus{border-color:#9cc4f2;box-shadow:0 3px 10px rgba(18,52,95,.12);outline:0}
.wf-kb-card.at{background:#fff5f5;border-color:#f6c3c8;border-left-color:#e0283c}
.wf-kb-card .l1{display:flex;justify-content:space-between;align-items:center;gap:6px}.wf-kb-card .l1 b{color:var(--sc);font-weight:600;font-size:12.5px}
.wf-kb-card .l2{font-weight:600;color:#12345f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-kb-card .l3{display:flex;justify-content:space-between;gap:6px;color:#64748b;font-size:11.5px}.wf-kb-card .l3 span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-kb-card .l3 .rojo{color:#e0283c;font-weight:600}
.wf-kb-card .l4{display:flex;align-items:center;gap:5px;color:#94a3b8;font-size:10.5px}.wf-kb-card .l4 img{width:14px;height:14px}
.wf-kb-card .pr{font-size:9.5px;padding:1px 6px}
.wf-kb-vacio{color:#94a3b8;text-align:center;padding:14px 0;font-size:12px}
#order-board.wf-ot-sec .wf-cli .wf-dl-cuerpo{max-height:260px!important;height:auto!important}
.wf-cli-av{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;color:#fff;font:700 10px "Segoe UI",Arial;margin-right:8px;flex:0 0 26px}
#order-board .wf-dl-sec>header .wf-dl-sh{display:inline-flex;align-items:center}
.wf-cli-sec span{display:inline-flex;align-items:center;gap:6px;color:color-mix(in srgb,var(--kc) 80%,#0b1f3a)}.wf-cli-sec img{width:16px;height:16px}
.wf-cli .wf-dl-row .mu{color:var(--kc)!important;font-size:11px;font-weight:600}
/* 4.17.553 Sectores en Órdenes: sectores pequeños con 3 órdenes visibles; el resto con el scroll general */
#order-board.wf-ot-sec .wf-dl-grid:not(.wf-kb):not(.wf-cli) .wf-dl-sec:not(.par):not(.ancho) .wf-dl-cuerpo{max-height:170px}
#order-board.wf-ot-sec .wf-dl-grid:not(.wf-kb):not(.wf-cli) .wf-dl-sec.par .wf-dl-cuerpo{max-height:max(260px,calc(var(--dlh,640px) - 272px));height:max(260px,calc(var(--dlh,640px) - 272px))}
#order-board.wf-ot-sec .wf-dl-grid{scrollbar-width:auto}
#order-board.wf-ot-sec .wf-dl-grid{align-content:start;grid-auto-rows:max-content}#order-board.wf-ot-sec .wf-dl-grid:not(.wf-kb) .wf-dl-cuerpo{flex-shrink:0}
/* 4.17.554 ficha de orden: sombras en las cajas como en Clientes + cabecera con nº y cliente */
#record-modal.order-mode #record-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select,textarea){box-shadow:2px 2px 4px rgba(20,58,110,.24)!important}
#record-modal.order-mode #record-form :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{box-shadow:2px 2px 4px rgba(20,58,110,.24),0 0 0 3px rgba(20,119,242,.15)!important}
body[data-route="ordenes"] :is(#module-search,.client-toolbar select,.module-toolbar select){box-shadow:2px 2px 4px rgba(20,58,110,.24)!important}
#order-hero .ot-identity strong{font-size:22px!important;letter-spacing:.2px}
#order-hero .ot-identity small{font-size:14px!important;font-weight:600;color:#1d4f86!important}
#order-hero .ot-identity small.wf-ot-sincli{color:#94a3b8!important;font-weight:500;font-style:italic}
#order-hero .ot-identity{min-width:340px;flex:0 0 auto}#order-hero .ot-identity strong{white-space:nowrap}#order-hero .ot-identity small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;display:block}
html body #record-modal #order-hero .ot-identity small{font-size:13.5px!important;text-transform:none}html body #record-modal #order-hero .ot-identity strong{font-size:22px!important}
/* 4.17.555 nombre del cliente completo en la cabecera de la orden */
html body #record-modal #order-hero .ot-identity{flex:1 1 auto!important;min-width:0!important;max-width:none!important}
html body #record-modal #order-hero .ot-identity>div{min-width:0!important;max-width:none!important;width:auto!important;flex:1 1 auto!important}
html body #record-modal #order-hero .ot-identity small{max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block!important;width:auto!important}
/* 4.17.556 producto en texto libre */
.wf-prod-libre{display:none;align-items:center;gap:6px;width:100%}
.wf-prod-libre.on{display:flex}
.wf-prod-libre input{flex:1;min-width:0;height:42px;border:1px solid #1477f2;border-radius:6px;padding:0 12px;font:600 14px "Segoe UI",Arial;color:#12345f;text-transform:uppercase;box-shadow:2px 2px 4px rgba(20,58,110,.24),0 0 0 3px rgba(20,119,242,.10)!important;background:#fff}
.wf-prod-libre input::placeholder{text-transform:none;font-weight:400;color:#94a3b8}
.wf-prod-libre button{height:42px;flex:0 0 auto;border:1px solid #c9d6e6;background:#f7fbff;border-radius:6px;padding:0 12px;font:600 12.5px "Segoe UI",Arial;color:#1477f2;cursor:pointer;box-shadow:2px 2px 4px rgba(20,58,110,.18)}
.wf-prod-libre button:hover{background:#eaf3ff}
select.wf-oculto-libre{display:none!important}
html body #record-modal #order-hero .ot-identity small{white-space:nowrap!important;overflow:visible!important}html body #record-modal #order-hero .ot-identity>div{overflow:visible!important}
/* 4.17.563 varias máquinas por producto */
.wf-cp-maqs{margin:4px 10px 10px 108px;border:1px dashed #b8cfe6;border-radius:8px;padding:8px 10px;background:#f8fbff}
.wf-cp-maqs-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.wf-cp-maqs-h b{font-size:11.5px;color:#12345f}.wf-cp-maqs-h i{font-style:normal;color:#7a8aa0;font-size:11px;flex:1}
.wf-cp-maqs-h button{height:26px;border:1px solid #9cc4f2;background:#fff;color:#1477f2;border-radius:5px;padding:0 10px;font:600 11.5px "Segoe UI",Arial;cursor:pointer}.wf-cp-maqs-h button:hover{background:#eaf3ff}
.wf-cp-maqs-l{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.wf-cp-maqs .mq{display:inline-flex;align-items:center;gap:8px;border:1px solid #d5e2f0;background:#fff;border-radius:7px;padding:5px 8px;font-size:12px;color:#33475b}
.wf-cp-maqs .mq b{color:#12345f;font-weight:600}.wf-cp-maqs .mq small{color:#64748b;font-size:11.5px}
.wf-cp-maqs .mq.on{border-color:#1477f2;background:#eef6ff;box-shadow:inset 0 -2px 0 #1477f2}.wf-cp-maqs .mq.on em{font-style:normal;font-size:9.5px;font-weight:700;color:#fff;background:#1477f2;border-radius:3px;padding:1px 6px}
.wf-cp-maqs .mq.vacio{color:#94a3b8;font-style:italic;border-style:dashed}
.wf-cp-maqs .mq u{text-decoration:none;font-weight:600}.wf-cp-maqs .mq u.mas{color:#c81e2b}.wf-cp-maqs .mq u.menos{color:#0a8f50}
.wf-cp-maqs .mq button{height:22px;border:1px solid #d5e2f0;background:#fff;border-radius:4px;padding:0 7px;font:600 11px "Segoe UI",Arial;color:#1477f2;cursor:pointer}
.wf-cp-maqs .mq button[data-ma-del]{color:#c81e2b;border-color:#f2c4c9}.wf-cp-maqs .mq button:hover{background:#f1f6ff}
.wf-co-terr{margin:-2px 8px 6px 26px;padding:4px 8px;border-radius:5px;background:#fff1f2;color:#b42318;font-size:11px;line-height:1.3;word-break:break-word}
/* 4.17.573 · Listados: la REFERENCIA va la primera (resaltada como celda
   principal) y el resto de datos en seminegrita. La ultima columna son las
   acciones y conserva su estilo. */
html body:not(#_a) .records-table tbody td:not(:last-child):not(.main-cell):not(.multi-select-col){font-weight:600!important}
html body:not(#_a) .records-table tbody td.main-cell{white-space:nowrap}
body[data-route="materiales"] .records-table td.main-cell{min-width:0!important}
/* 4.17.574 · REFERENCIA mas compacta: la columna se ajusta a su contenido */
html body:not(#_a) table.records-table td.main-cell{width:1%;font-size:12px!important;padding-right:14px!important}
/* 4.17.574 · Ancho de columnas ajustable (app.62-anchos-columnas.js) */
.wf-col-resize{position:absolute;top:0;right:0;width:7px;height:100%;cursor:col-resize;z-index:3;user-select:none}
.wf-col-resize::after{content:"";position:absolute;top:22%;bottom:22%;right:2px;width:2px;border-radius:2px;background:transparent;transition:background .12s}
th:hover>.wf-col-resize::after{background:#c3d3e6}
.wf-col-resize:hover::after,.wf-col-resize.on::after{background:#1477f2}
body.wf-col-resizing,body.wf-col-resizing *{cursor:col-resize!important;user-select:none!important}
table.wf-cols-fijas th,table.wf-cols-fijas td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.wf-cols-fijas td.main-cell{width:auto}
/* 4.17.574 · el min-width:245px de la primera columna (pensado para
   avatar + nombre) ya no aplica: la primera ahora es la REFERENCIA. El aire
   se da a la columna que lleva el avatar, este donde este. */
html body:not(#_a) table.records-table :is(th,td):first-child{min-width:0!important}
html body:not(#_a) table.records-table td:has(> .material-list-identity){min-width:245px}
html body:not(#_a) table.wf-cols-fijas :is(th,td){min-width:0!important}
/* 4.17.575 · Productos: buscador a todo el ancho (no hay selector de Estado
   delante, que es lo que lo dejaba encogido en 190 px) y contador de filtros */
.materials-toolbar.products-toolbar{grid-template-columns:minmax(320px,1fr) auto!important}
.wf-pf-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-right:4px;border-radius:10px;background:#1477f2;color:#fff;font:700 11px "Segoe UI",Arial}
/* 4.17.576 · Panel de filtros de Productos (y Materiales): entero y con el
   estilo del programa. Antes los desplegables nativos (estilo Windows) eran
   tan anchos como su opción más larga y empujaban las columnas fuera del
   panel, cortando Favoritos y el botón APLICAR. */
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .client-smart-panel{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,.9fr)!important;width:min(780px,calc(100vw - 260px))!important;max-width:calc(100vw - 260px)}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .client-smart-panel section{min-width:0}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .wf-mf-sel{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;margin-top:10px!important;min-height:0!important}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .wf-mf-sel span{font:600 11px "Segoe UI",Arial!important;color:#5c708a!important;text-transform:uppercase;letter-spacing:.02em}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .wf-mf-sel select{
  -webkit-appearance:none;appearance:none;width:100%;max-width:100%;height:34px;padding:0 30px 0 10px;
  border:1px solid #c9d6e6;border-radius:7px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231477f2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color:#17365f;font:600 12.5px "Segoe UI",Arial;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .wf-mf-sel select:hover{border-color:#9cc0f5}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .wf-mf-sel select:focus{outline:0;border-color:#1477f2;box-shadow:0 0 0 3px rgba(20,119,242,.15)}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .client-smart-panel input[type=checkbox],
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .client-smart-panel input[type=radio]{width:16px;height:16px;accent-color:#1477f2;flex:0 0 16px}
html body:not(#_a) :is(#product-smart-search,#material-smart-search) .client-favorites button{white-space:normal;text-align:left}
/* 4.17.576 · desplegables en una sola línea (etiqueta + selector) para que el panel no crezca hacia abajo */
html body:not(#_a) #product-smart-search .wf-mf-sel{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin-top:8px!important}
html body:not(#_a) #product-smart-search .wf-mf-sel span{font-size:10.5px!important;line-height:1.15}
html body:not(#_a) #product-smart-search .wf-mf-sel select{height:32px}
/* 4.17.577 · Sobre de correo en la barra superior */
.icon-btn.top-mail-btn{display:inline-grid;place-items:center;padding:0;width:30px;height:30px;cursor:pointer}
.icon-btn.top-mail-btn img{width:26px;height:26px;border-radius:50%;display:block}
.icon-btn.top-mail-btn em{background:#1477f2!important;top:-5px!important;right:-7px!important}
.icon-btn.top-mail-btn em[hidden]{display:none!important}
.icon-btn.top-mail-btn:hover img{filter:brightness(1.05);box-shadow:0 0 0 3px rgba(20,119,242,.15)}
/* 4.17.578 · Menú lateral recogido: la regla antigua «nav span{display:none}»
   escondía también el pictograma de Inicio (era el único sin imagen). Los
   pictogramas se mantienen siempre visibles; solo se ocultan los textos. */
body.sidebar-collapsed .sidebar nav a > .nav-picto,
body.sidebar-collapsed .sidebar nav .nav-group-toggle > .nav-picto{display:inline-grid!important;place-items:center}
/* 4.17.579 · Inicio › Órdenes de trabajo: sectores plegables */
#dashboard-organizer-page .wf-dl-sec>header[data-secpleg]{cursor:pointer;user-select:none}
#dashboard-organizer-page .wf-dl-sec>header[data-secpleg]:hover{filter:brightness(.97)}
#dashboard-organizer-page .wf-dl-sec.ancho>header[data-secpleg]{cursor:default}
#dashboard-organizer-page .wf-dl-sec.ancho .wf-dl-tg{display:none}
.wf-dl-tg{display:inline-grid;place-items:center;width:18px;margin-right:4px;font-size:12px;color:inherit;opacity:.8}
#dashboard-organizer-page .wf-dl-sec.recogido>header{border-bottom:0!important}
#dashboard-organizer-page .wf-dl-sec.recogido .wf-dl-cuerpo{display:none!important}
/* 4.17.580 · dos columnas independientes para los sectores secundarios */
#dashboard-organizer-page .wf-dl-col{display:flex;flex-direction:column;gap:10px;min-width:0;align-self:start}
/* 4.17.582 · sector recogido = solo la cabecera (sin franja vacía debajo) y
   el sector abierto de abajo usa el alto disponible, ya que es el único abierto */
html body #dashboard-organizer-page .wf-dl-sec.recogido{align-self:start!important;height:auto!important;min-height:0!important}
html body #dashboard-organizer-page .wf-dl-grid{align-content:start!important;grid-auto-rows:max-content!important}
html body #dashboard-organizer-page .wf-dl-col>.wf-dl-sec{align-self:stretch!important;width:100%}
/* 4.17.583 · Sector secundario abierto: su lista flota POR ENCIMA del
   sector, tapando Gran formato / Digital, sin mover ningún otro sector */
html body #dashboard-organizer-page .wf-dl-col>.wf-dl-sec{position:relative;overflow:visible!important}
html body #dashboard-organizer-page .wf-dl-sec.flotante{z-index:30}
/* 4.17.584 · la cabecera sube junto con la lista: el sector abierto flota
   entero (cabecera arriba, órdenes debajo) y su parte de abajo coincide con
   el sitio donde estaba plegado. Las posiciones las calcula app.53. */
html body #dashboard-organizer-page .wf-dl-sec.flotante>header{position:absolute!important;left:0;right:0;z-index:2;border-radius:10px 10px 0 0!important;box-shadow:0 -8px 24px rgba(18,52,95,.20)}
html body #dashboard-organizer-page .wf-dl-sec.flotante .wf-dl-cuerpo{
  position:absolute!important;left:0;right:0;overflow-y:auto!important;
  background:#fff;border:1px solid color-mix(in srgb,var(--kc) 45%,#fff);border-top:0;
  border-radius:0 0 10px 10px;box-shadow:0 14px 30px rgba(18,52,95,.24)}
html body #dashboard-organizer-page .wf-dl-sec.flotante>header{border-bottom:0!important}

/* 4.17.585 · Órdenes de trabajo › Sectores: misma jerarquía que Inicio */
html body #order-board.wf-ot-sec .wf-dl-grid{align-content:start!important;grid-auto-rows:max-content!important}
html body #order-board.wf-ot-sec .wf-dl-col{display:flex;flex-direction:column;gap:10px;min-width:0;align-self:start}
html body #order-board.wf-ot-sec .wf-dl-col>.wf-dl-sec{align-self:stretch!important;width:100%;position:relative;overflow:visible!important}
html body #order-board.wf-ot-sec .wf-dl-sec>header[data-secpleg]{cursor:pointer;user-select:none}
html body #order-board.wf-ot-sec .wf-dl-sec>header[data-secpleg]:hover{filter:brightness(.97)}
html body #order-board.wf-ot-sec .wf-dl-sec.recogido{align-self:start!important;height:auto!important;min-height:0!important}
html body #order-board.wf-ot-sec .wf-dl-sec.recogido>header{border-bottom:0!important}
html body #order-board.wf-ot-sec .wf-dl-sec.recogido .wf-dl-cuerpo{display:none!important}
html body #order-board.wf-ot-sec .wf-dl-sec.flotante{z-index:30}
html body #order-board.wf-ot-sec .wf-dl-sec.flotante>header{position:absolute!important;left:0;right:0;z-index:2;border-bottom:0!important;border-radius:10px 10px 0 0!important;box-shadow:0 -8px 24px rgba(18,52,95,.20)}
html body #order-board.wf-ot-sec .wf-dl-sec.flotante .wf-dl-cuerpo{
  position:absolute!important;left:0;right:0;overflow-y:auto!important;
  background:#fff;border:1px solid color-mix(in srgb,var(--kc) 45%,#fff);border-top:0;
  border-radius:0 0 10px 10px;box-shadow:0 14px 30px rgba(18,52,95,.24)}
/* 4.17.586 · orden seleccionada (un clic) en los listados por sector, Kanban y Por cliente */
html body :is(#dashboard-organizer-page,#order-board) .wf-dl-row.sel,
html body :is(#dashboard-organizer-page,#order-board) .wf-dl-row.sel:hover{background:#dbeafe!important;box-shadow:inset 4px 0 0 #1477f2,inset 0 0 0 1px #9cc0f5!important}
html body #order-board .wf-kb-card.sel{outline:2px solid #1477f2;outline-offset:-1px;background:#eef5ff!important}
html body :is(#dashboard-organizer-page,#order-board) .wf-dl-row{cursor:default;user-select:none}
/* 4.17.587 · Kanban de Órdenes: arrastrar entre estados */
html body #order-board .wf-kb .wf-kb-card{cursor:grab}
html body #order-board .wf-kb .wf-kb-card.arrastrando{opacity:.45;cursor:grabbing}
html body #order-board .wf-kb .wf-dl-sec.sobre{box-shadow:0 0 0 3px var(--kc),0 8px 22px rgba(18,52,95,.18)!important;background:color-mix(in srgb,var(--kc) 7%,#fff)!important}
/* 4.17.588 · botón WhatsApp en Órdenes de trabajo */
html body .wf-action-btn.wf-wa-btn{border-color:#25D366!important;color:#128C4A!important;background:#fff!important}
html body .wf-action-btn.wf-wa-btn:hover{background:#eafaf1!important}
html body .wf-action-btn.wf-wa-btn img{width:24px;height:24px;border-radius:50%;margin-right:6px}
html body #record-modal .record-head-actions .btn.wf-ot-wa{border-color:#25D366!important;color:#fff!important;background:#25D366!important}
html body #record-modal .record-head-actions .btn.wf-ot-wa:hover{background:#1ebe5a!important}
/* 4.17.690 · carpetas propias de la cuenta */
.wf-co-sep{height:1px;background:#e5edf6;margin:4px 8px 4px 28px}
.wf-co-t.sub.nl{font-weight:700;color:#12345f}
.wf-co-t.wf-co-cargando{color:#8a9bb0;font-style:italic;cursor:default}
.wf-co-arbol{overflow-y:auto}
.wf-co-t span{overflow:hidden;text-overflow:ellipsis}
/* 4.17.691 · mover a carpeta */
.wf-co-movw{position:relative;display:inline-block}
.wf-co-movpop{position:absolute;z-index:50;top:calc(100% + 4px);left:0;width:280px;background:#fff;border:1px solid #cfdbe8;border-radius:8px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:8px}
.wf-co-movpop input{width:100%;box-sizing:border-box;height:30px;border:1px solid #cfdbe8;border-radius:6px;padding:0 8px;font-size:12.5px;margin-bottom:6px}
.wf-co-movpop .l{max-height:320px;overflow:auto}
.wf-co-movpop .l>div{padding:5px 8px;border-radius:5px;font-size:12.5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#12355f}
.wf-co-movpop .l>div:hover{background:#eaf2fc}
.wf-co-movpop .l i{color:#8a9bb0;font-size:12px;padding:6px}
.wf-co-movpop hr{border:0;border-top:1px solid #e5edf6;margin:4px 0}
/* 4.17.693 · lista de correos: remitente y asunto diferenciados; los no leídos con el asunto en azul */
html body .wf-co-item .l1 b{font-size:13px;font-weight:600;color:#0f2747}
html body .wf-co-item .l2{font-size:12.5px;font-weight:400;color:#475569;margin-top:1px}
html body .wf-co-item.nuevo .l1 b{font-weight:800;color:#0b1f3a}
html body .wf-co-item.nuevo .l2{font-weight:700;color:#1467d6}
html body .wf-co-item.nuevo .l1 b::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#1477f2;margin-right:6px;vertical-align:1px}
/* 4.17.694 · lista de correos más compacta */
html body .wf-co-item{padding:7px 10px}
html body .wf-co-item .l1 b{font-size:12px;font-weight:600}
html body .wf-co-item .l1 span{font-size:10.5px}
html body .wf-co-item .l2{font-size:11.5px}
html body .wf-co-item.nuevo .l1 b{font-weight:700}
html body .wf-co-item.nuevo .l2{font-weight:600}
html body .wf-co-item.nuevo .l1 b::before{width:6px;height:6px;margin-right:5px}
/* 4.17.694 · columnas ajustables y recogibles */
.wf-co-split{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize;z-index:5;border-radius:4px}
.wf-co-split:hover,.wf-co-split.on{background:rgba(20,119,242,.18)}
.wf-co-split::after{content:"";position:absolute;left:3px;top:50%;width:2px;height:34px;margin-top:-17px;border-radius:2px;background:#c3d3e6}
body.wf-co-arrastrando{cursor:col-resize!important;user-select:none!important}
body.wf-co-arrastrando iframe{pointer-events:none}
.wf-co-arbol,.wf-co-col{position:relative}
.wf-co-pleg{position:absolute;top:6px;right:6px;z-index:4;width:22px;height:22px;border:1px solid #cfdbe8;background:#fff;border-radius:5px;color:#1f6fd1;font-weight:800;font-size:13px;line-height:18px;padding:0;cursor:pointer}
.wf-co-pleg:hover{background:#eaf2fc}
.wf-co-col>.wf-co-pleg{top:8px;right:44px}
.wf-co-recogido{overflow:hidden!important;padding:0!important}
.wf-co-recogido>:not(.wf-co-pleg){display:none!important}
.wf-co-recogido>.wf-co-pleg{position:static;margin:8px auto 0;display:block}
.wf-co-arbol>.wf-co-t.top{margin-right:26px}
/* 4.17.695 · aviso de búsqueda */
.wf-co-busc{padding:6px 12px;font-size:11.5px;color:#8a6d00;background:#fff8e1;border-bottom:1px solid #f3e3a8}
.wf-co-busc.ok{color:#5b6b80;background:#f6f9fd;border-bottom-color:#e5edf6}
.wf-co-busc a{color:#1467d6;font-weight:600}
/* 4.17.696 · archivo de correos */
.wf-co-t.top.arch{margin-top:2px;color:#5b4a00}
.wf-co-arch{padding:9px 12px;background:#fbf8ee;border-bottom:1px solid #eee3c3;font-size:12px;color:#4b5563}
.wf-co-arch .st b{color:#12345f;font-size:13px}
.wf-co-arch .ac{margin-top:7px;display:flex;flex-direction:column;gap:4px}
.wf-co-arch .ac button,.wf-co-arch .pr button{align-self:flex-start;border:1px solid #1477f2;background:#1477f2;color:#fff;border-radius:6px;padding:5px 10px;font-weight:700;font-size:12px;cursor:pointer}
.wf-co-arch .pr button{background:#fff;color:#d92d3a;border-color:#f2a9b2;margin-top:5px;padding:3px 9px}
.wf-co-arch .ac small{color:#8a9bb0}
.wf-co-arch .pr{margin-top:6px}.wf-co-arch .bar{height:6px;background:#e5edf6;border-radius:3px;margin-top:5px;overflow:hidden}.wf-co-arch .bar i{display:block;height:100%;background:#1477f2;transition:width .4s}
.wf-co-arch .ul{margin-top:6px;color:#6b7a90;font-size:11.5px}
.wf-co-lector.es-arch [data-co-mov],.wf-co-lector.es-arch [data-co-movmenu],.wf-co-lector.es-arch .wf-co-movw,.wf-co-lector.es-arch [data-co-star],.wf-co-lector.es-arch [data-co-leido]{display:none!important}
.wf-co-archnota{margin:2px 0 8px;padding:6px 10px;border-radius:6px;background:#fbf8ee;border:1px solid #eee3c3;color:#5b4a00;font-size:12px}
.wf-co-arch .er{margin-top:6px;color:#b4232f;font-size:11.5px;background:#fdecee;border:1px solid #f3b4bb;border-radius:6px;padding:5px 8px}
/* 4.17.700 · títulos de los apartados de las fichas (Información general, Datos técnicos, Unidades y stock, Precios…) más grandes */
html body #record-modal#record-modal .material-section .client-section-title,html body #record-modal#record-modal .client-section .client-section-title{font-size:15px!important;font-weight:700!important;min-height:38px!important;padding:6px 14px!important;color:#12345f!important;letter-spacing:.1px}
html body #record-modal#record-modal .material-section .client-section-title svg,html body #record-modal#record-modal .material-section .client-section-title img{width:18px!important;height:18px!important}
