#cecotec-tech-launch{position:fixed;right:18px;bottom:18px;z-index:9997;border:0;border-radius:12px;background:#1b3658;color:white;padding:12px 18px;box-shadow:0 3px 12px #0003;cursor:pointer}#cecotec-tech-overlay[hidden]{display:none}#cecotec-tech-overlay{position:fixed;inset:0;z-index:9998;background:#0009;display:flex;align-items:center;justify-content:center;padding:15px}.st-panel{background:white;color:#1a2635;border-radius:14px;padding:20px;width:min(1050px,100%);max-height:92vh;overflow:auto;font:14px system-ui}.st-panel header,.st-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.st-panel button{cursor:pointer;padding:8px 12px}.st-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.st-grid label{display:grid;gap:5px}.st-grid input,.st-grid select,.st-grid textarea{padding:8px;border:1px solid #c9d2df;border-radius:6px;width:100%;box-sizing:border-box}.st-wide{grid-column:1/-1}.st-grid textarea{min-height:70px}.st-scroll{overflow:auto}.st-scroll table{width:100%;border-collapse:collapse}.st-scroll td,.st-scroll th{padding:9px;border-bottom:1px solid #e1e6ee;text-align:left}#st-message{color:#a13d24}@media(max-width:650px){.st-grid{grid-template-columns:1fr}#cecotec-tech-launch{bottom:12px;right:12px}}
/* Servicio Técnico integrado en el contenido principal, no como ventana emergente. */
#cecotec-tech-overlay.st-embedded{position:relative;inset:auto;z-index:auto;background:transparent;display:block;padding:22px 26px;min-height:75vh}
#cecotec-tech-overlay.st-embedded .st-panel{width:100%;max-width:1500px;max-height:none;overflow:visible;margin:0 auto;border:1px solid #e1e6ee;box-shadow:0 3px 18px #0000000a}
body.st-module-open .period-selector{visibility:hidden;pointer-events:none}
@media(max-width:650px){#cecotec-tech-overlay.st-embedded{padding:12px}#cecotec-tech-overlay.st-embedded .st-panel{padding:14px}}

/* Servicio Técnico: mismo lenguaje visual que el resto de Control Ventas. */
#cecotec-tech-overlay.st-embedded{padding:20px 26px 36px}
#cecotec-tech-overlay .st-panel{font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:transparent;border:0!important;box-shadow:none!important;padding:0!important;color:#20283a}
#cecotec-tech-overlay .st-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(120deg,#20283a,#354666);border-radius:22px;padding:30px 34px;color:#fff;margin-bottom:22px;min-height:156px}
#cecotec-tech-overlay .st-hero:after{content:"";position:absolute;right:-60px;top:-110px;width:320px;height:320px;border-radius:50%;background:#d87816;opacity:.18;pointer-events:none}
#cecotec-tech-overlay .st-hero h2{font-size:clamp(27px,3vw,38px);font-weight:750;letter-spacing:-.035em;color:#fff;margin:6px 0}
#cecotec-tech-overlay .st-hero p{color:#d9e2f1;margin:5px 0 0;font-size:14px}
#cecotec-tech-overlay .st-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#f2c391}
#cecotec-tech-overlay .st-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}
#cecotec-tech-overlay .st-kpi{--tone:#66758b;display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e0e6ef;border-top:4px solid var(--tone);border-radius:16px;padding:18px 20px;box-shadow:0 8px 26px #1f283a09}
#cecotec-tech-overlay .st-kpi--blue{--tone:#1472c9}#cecotec-tech-overlay .st-kpi--orange{--tone:#d87816}#cecotec-tech-overlay .st-kpi--green{--tone:#0f8a5f}
#cecotec-tech-overlay .st-kpi span{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.065em;color:#69778b}
#cecotec-tech-overlay .st-kpi strong{font-size:34px;line-height:1.15;font-weight:780;color:#20283a}
#cecotec-tech-overlay .st-kpi small{color:#7a8797;font-size:12px}
#cecotec-tech-overlay .st-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:0 2px}
#cecotec-tech-overlay .st-toolbar h3{margin:0 0 5px;font-size:21px;color:#20283a}
#cecotec-tech-overlay .st-toolbar p{margin:0;color:#748094;font-size:13px}
#cecotec-tech-overlay .st-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#cecotec-tech-overlay .st-btn,#cecotec-tech-overlay .st-panel button{border:1px solid #d7dfeb;border-radius:10px;padding:9px 13px;background:#fff;color:#26364e;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s}
#cecotec-tech-overlay .st-btn:hover,#cecotec-tech-overlay .st-panel button:hover{background:#eef5fc;border-color:#9bbbdc}
#cecotec-tech-overlay .st-btn--primary{background:#20283a!important;color:white!important;border-color:#20283a!important}
#cecotec-tech-overlay .st-btn--primary:hover{background:#354666!important}
#cecotec-tech-overlay .st-btn--ghost{background:#ffffff1f!important;color:#fff!important;border-color:#ffffff50!important;position:relative;z-index:1}
#cecotec-tech-overlay .st-btn--small{padding:6px 11px!important;font-size:12px!important}
#cecotec-tech-overlay .st-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e0e6ef;border-radius:14px 14px 0 0;padding:14px 16px}
#cecotec-tech-overlay .st-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#657187;flex:1 1 200px}
#cecotec-tech-overlay .st-filters input,#cecotec-tech-overlay .st-filters select{height:39px;min-width:0;padding:8px 11px;border:1px solid #d6dfeb;border-radius:9px;color:#26364e;background:#fff;font:inherit;font-size:13px}
#cecotec-tech-overlay #st-count{color:#748094;font-size:12px;padding-bottom:10px;white-space:nowrap}
#cecotec-tech-overlay .st-scroll{background:#fff;border:1px solid #e0e6ef;border-radius:0 0 14px 14px;overflow-x:auto}
#cecotec-tech-overlay .st-scroll table{min-width:750px;width:100%;border-collapse:collapse;font-size:13px}
#cecotec-tech-overlay .st-scroll th{background:#f4f6fa;color:#647188;font-size:11px;letter-spacing:.075em;text-transform:uppercase;font-weight:800;padding:13px 15px}
#cecotec-tech-overlay .st-scroll td{padding:14px 15px;vertical-align:middle;border-bottom:1px solid #e9edf3;color:#344154}
#cecotec-tech-overlay .st-scroll tbody tr:hover{background:#f7faff}
#cecotec-tech-overlay .st-scroll tbody tr[hidden]{display:none}
#cecotec-tech-overlay .st-subline{display:block;margin-top:4px;color:#8591a1;font-size:11px}
#cecotec-tech-overlay .st-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:750;white-space:nowrap;background:#edf0f5;color:#556174}
#cecotec-tech-overlay .st-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
#cecotec-tech-overlay .st-badge--info{background:#e8f2ff;color:#176bb4}
#cecotec-tech-overlay .st-badge--warning{background:#fff0dd;color:#a95c08}
#cecotec-tech-overlay .st-badge--success{background:#e3f6ec;color:#137b51}
#cecotec-tech-overlay .st-badge--danger{background:#ffe9e9;color:#ba3434}
#cecotec-tech-overlay .st-badge--test{background:#f1eafe;color:#7751ae}
#cecotec-tech-overlay .st-empty{padding:28px;text-align:center;color:#758296}
#cecotec-tech-overlay .st-form-heading{margin:0 0 18px;font-size:23px;color:#20283a}
#cecotec-tech-overlay #st-form{background:#fff;border:1px solid #e0e6ef;border-radius:16px;padding:24px;box-shadow:0 8px 26px #1f283a09}
#cecotec-tech-overlay .st-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#cecotec-tech-overlay .st-grid label{font-weight:650;color:#536177;font-size:13px}
#cecotec-tech-overlay .st-grid input,#cecotec-tech-overlay .st-grid select,#cecotec-tech-overlay .st-grid textarea{font:inherit;color:#20283a;background:#fff;border:1px solid #d7dfeb;border-radius:10px;padding:11px}
#cecotec-tech-overlay .st-grid input:focus,#cecotec-tech-overlay .st-grid select:focus,#cecotec-tech-overlay .st-grid textarea:focus{outline:2px solid #c7e1f7;border-color:#1472c9}
#cecotec-tech-overlay .st-actions{margin:18px 0;justify-content:flex-end;flex-wrap:wrap}
#cecotec-tech-overlay #st-message:not(:empty){padding:12px 16px;margin-bottom:16px;border-radius:10px;background:#fff1e7;color:#9a4d13;border:1px solid #f6d8bf}
@media(max-width:1100px){#cecotec-tech-overlay .st-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#cecotec-tech-overlay .st-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){#cecotec-tech-overlay.st-embedded{padding:12px}#cecotec-tech-overlay .st-hero{padding:22px;flex-direction:column;align-items:flex-start}#cecotec-tech-overlay .st-kpis{gap:9px}#cecotec-tech-overlay .st-kpi{padding:12px}#cecotec-tech-overlay .st-kpi strong{font-size:27px}#cecotec-tech-overlay .st-grid{grid-template-columns:1fr}#cecotec-tech-overlay #st-form{padding:15px}#cecotec-tech-overlay .st-toolbar-actions{justify-content:flex-start}}


/* Flujo integrado REM / MAN. Estos estilos no afectan a ningún otro módulo. */
#cecotec-tech-overlay .st-section{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:20px 24px;margin:18px 0;box-shadow:0 5px 18px #1f283a07}
#cecotec-tech-overlay .st-section h4{margin:0 0 13px;color:#25354d;font-size:17px}
#cecotec-tech-overlay .st-section h5{font-size:15px;margin:20px 0 12px;color:#2f4664}
#cecotec-tech-overlay .st-section p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#cecotec-tech-overlay .st-readonly-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#cecotec-tech-overlay .st-readonly-grid>div{display:flex;flex-direction:column;gap:7px;background:#fff;border:1px solid #e3e8ef;border-radius:13px;padding:16px;min-width:0;overflow-wrap:anywhere}
#cecotec-tech-overlay .st-readonly-grid small{color:#75849a;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.04em}
#cecotec-tech-overlay .st-readonly-grid strong{color:#20283a;font-size:15px}
#cecotec-tech-overlay .st-readonly-grid span{font-size:12px;color:#59697b}
#cecotec-tech-overlay .st-photos{display:grid;grid-template-columns:repeat(3,minmax(0,190px));gap:12px;margin-top:14px}
#cecotec-tech-overlay .st-photos a{display:block;border:1px solid #dce6ef;border-radius:12px;overflow:hidden;color:#2471ba;text-decoration:none;background:#f5f7fa}
#cecotec-tech-overlay .st-photos img{display:block;object-fit:cover;width:100%;height:140px}
#cecotec-tech-overlay .st-photos span{display:block;padding:6px 9px;font-size:12px}
#cecotec-tech-overlay .st-grid label:not(.st-check){display:flex;flex-direction:column;gap:7px}
#cecotec-tech-overlay .st-grid input:not([type="checkbox"]),#cecotec-tech-overlay .st-grid textarea,#cecotec-tech-overlay .st-grid select{box-sizing:border-box;width:100%;min-height:43px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;color:#20283a;padding:10px 12px}
#cecotec-tech-overlay .st-grid label small{font-weight:400;color:#8a96a5;font-size:12px}
#cecotec-tech-overlay .st-check{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:750}
#cecotec-tech-overlay .st-check input{width:20px;height:20px;flex:none}
#cecotec-tech-overlay .st-field{display:flex;flex-direction:column;gap:9px;margin:14px 0;color:#43566f;font-weight:750}
#cecotec-tech-overlay .st-field input,#cecotec-tech-overlay .st-field textarea{border:1px solid #cbd7e7;border-radius:9px;min-height:43px;padding:10px;background:#fff;color:#26364e}
#cecotec-tech-overlay #st-intake{border:1px solid #dfe6ef;border-radius:16px;background:#fff;padding:24px}
#cecotec-tech-overlay .st-terms{border-left:4px solid #d87816;background:#fff8ec;color:#5d5360;padding:14px 16px;margin:20px 0;border-radius:0 10px 10px 0;font-size:12px;line-height:1.6}
#cecotec-tech-overlay .st-left{justify-content:flex-start;flex-wrap:wrap}
#cecotec-tech-overlay .st-workflow form{padding:18px;margin-top:16px;border:1px solid #e4eaf3;border-radius:13px;background:#fafcfe}
#cecotec-tech-overlay .st-workflow textarea{min-height:90px}
#cecotec-tech-overlay .st-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
#cecotec-tech-overlay .st-catalog-item{display:flex;gap:10px;align-items:center;padding:13px;border:1px solid #dce4ee;border-radius:10px;background:#fff;font-size:13px}
#cecotec-tech-overlay .st-catalog-item input{flex:none;width:18px;height:18px}
#cecotec-tech-overlay .st-catalog-item span{flex:1;min-width:0}
#cecotec-tech-overlay .st-catalog-item strong{color:#2d607f;white-space:nowrap}
#cecotec-tech-overlay .st-line-items{display:flex;flex-direction:column;gap:0;margin:15px 0}
#cecotec-tech-overlay .st-line-items>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f6;font-size:13px}
#cecotec-tech-overlay .st-line-items strong{white-space:nowrap}
#cecotec-tech-overlay .st-ready{background:#eaf7ef;border:1px solid #a9d8c1;border-radius:13px;padding:15px;margin-bottom:12px;color:#145d3b}
#cecotec-tech-overlay .st-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#cecotec-tech-overlay .st-timeline article{border-left:3px solid #217fb4;background:#f5f8fd;padding:12px;border-radius:0 10px 10px 0}
#cecotec-tech-overlay .st-timeline strong{display:block;font-size:13px;color:#20283a;text-transform:capitalize}
#cecotec-tech-overlay .st-timeline small{display:block;margin:5px 0;color:#667389;font-size:11px}
#cecotec-tech-overlay .st-timeline p{margin:4px 0}
#cecotec-tech-overlay .st-note{color:#79879b;font-size:12px;line-height:1.5}
#cecotec-tech-overlay .st-detail-status{display:flex;align-items:center;gap:10px;margin:12px 0 16px}
#cecotec-tech-overlay .st-panel button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:1050px){#cecotec-tech-overlay .st-readonly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cecotec-tech-overlay .st-catalog{grid-template-columns:1fr}}
@media(max-width:680px){#cecotec-tech-overlay #st-intake,#cecotec-tech-overlay .st-section{padding:14px}#cecotec-tech-overlay .st-readonly-grid,#cecotec-tech-overlay .st-timeline{grid-template-columns:1fr}#cecotec-tech-overlay .st-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* REM/MAN: opciones de edición, impresión y archivo; aisladas al módulo técnico. */
#cecotec-tech-overlay .st-sku-feedback{display:block;min-height:19px;color:#1a729e;font-size:12px;font-weight:600;line-height:1.4}
#cecotec-tech-overlay .st-grid input[readonly]{background:#ecf7f1;border-color:#9ed3ba;color:#144f3a;font-weight:750;cursor:default}
#cecotec-tech-overlay .st-document-groups{display:grid;gap:13px}
#cecotec-tech-overlay .st-document-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e0e7ef;background:#fafcff;border-radius:12px;padding:13px 16px}
#cecotec-tech-overlay .st-document-item>strong{font-size:13px;color:#273953}
#cecotec-tech-overlay .st-doc-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#cecotec-tech-overlay .st-btn--danger,#cecotec-tech-overlay .st-panel .st-btn--danger{border-color:#f0c4c4;background:#fff6f6;color:#ab3535}
#cecotec-tech-overlay .st-btn--danger:hover,#cecotec-tech-overlay .st-panel .st-btn--danger:hover{border-color:#cf5555;background:#ffeded;color:#9b2020}
#cecotec-tech-overlay .st-history-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:200px}
#cecotec-tech-overlay #st-edit-document{border:1px solid #dfe6ef;border-radius:16px;background:#fff;padding:24px}
#cecotec-tech-overlay #st-edit-document h4{font-size:16px;margin:0 0 12px;color:#273953}
#cecotec-tech-overlay .st-photo-edit{display:flex;flex-direction:column;gap:7px;border:1px solid #e0e8f1;border-radius:12px;overflow:hidden;padding:6px;background:#fff}
#cecotec-tech-overlay .st-photo-edit img{width:100%;height:135px;object-fit:cover;border-radius:8px}
#cecotec-tech-overlay .st-edit-lines{display:flex;flex-direction:column;gap:12px;margin:13px 0}
#cecotec-tech-overlay .st-edit-line{display:grid;grid-template-columns:minmax(210px,2fr) minmax(90px,.55fr) minmax(130px,.8fr) auto;align-items:end;gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#fafcfe}
#cecotec-tech-overlay .st-edit-line label{display:flex;flex-direction:column;gap:7px;color:#536177;font-size:12px;font-weight:700}
#cecotec-tech-overlay .st-edit-line input{width:100%;min-width:0;box-sizing:border-box;height:43px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;color:#20283a;padding:9px 12px}
@media(max-width:950px){#cecotec-tech-overlay .st-edit-line{grid-template-columns:minmax(0,1fr) minmax(85px,.4fr)}}
@media(max-width:650px){#cecotec-tech-overlay #st-edit-document{padding:15px}#cecotec-tech-overlay .st-document-item{align-items:stretch;flex-direction:column}#cecotec-tech-overlay .st-edit-line{grid-template-columns:minmax(0,1fr)}#cecotec-tech-overlay .st-history-actions{min-width:160px}}

/* Solo Servicio Técnico: estado al guardar MAN y archivo de expedientes. */
#cecotec-tech-overlay .st-budget-message:not(:empty){margin:12px 0;padding:12px 15px;color:#855005;background:#fff4de;border:1px solid #ead3aa;border-radius:10px;line-height:1.45;font-weight:650}
#cecotec-tech-overlay .st-case-danger{display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:12px 0;margin:16px 0;border-top:1px solid #e4eaf2}
#cecotec-tech-overlay .st-case-danger small{color:#7b8697;font-size:12px;line-height:1.5}

/* Notificaciones de tareas por rol: estilos exclusivos de Servicio Técnico. */
.sidebar .st-nav-count{
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;min-width:22px;height:22px;padding:0 6px;margin-left:auto;
  border-radius:100px;background:#d53940;color:#fff;
  font-size:11px;font-weight:800;line-height:1;letter-spacing:0;
  box-sizing:border-box;white-space:nowrap;
}
.topbar .st-title-count{
  display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;
  min-width:22px;height:22px;margin-left:9px;padding:0 6px;
  border-radius:100px;background:#d53940;color:#fff;font-size:11px;font-weight:800;line-height:1;
  box-sizing:border-box;
}
#cecotec-tech-overlay .st-pending{margin:0 0 17px;}
#cecotec-tech-overlay .st-pending-head{
  display:flex;align-items:center;gap:14px;margin-bottom:10px;color:#263950;
}
#cecotec-tech-overlay .st-pending-head strong{font-size:16px}
#cecotec-tech-overlay .st-pending-head span{
  background:#fff0f0;border-radius:25px;padding:5px 10px;
  color:#b02d36;font-size:12px;font-weight:750;
}
#cecotec-tech-overlay .st-pending-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:10px;
}
#cecotec-tech-overlay .st-pending-item{
  display:flex;flex-direction:column;gap:5px;text-align:left;cursor:pointer;
  padding:12px 15px;background:#fff;border:1px solid #e2d5d6;
  border-left:4px solid #d53940;border-radius:11px;min-height:90px;
  font:inherit;color:#273850;box-shadow:0 2px 6px #00000008;
}
#cecotec-tech-overlay .st-pending-item:hover,#cecotec-tech-overlay .st-pending-item:focus-visible{
  border-color:#cb5260;background:#fff9f8;
}
#cecotec-tech-overlay .st-pending-item strong{font-size:13px}
#cecotec-tech-overlay .st-pending-item span{font-size:12px;overflow-wrap:anywhere}
#cecotec-tech-overlay .st-pending-item small{font-size:11px;color:#a1323d}
#cecotec-tech-overlay .st-pending-empty{background:#eef8f3;border:1px solid #d2e8dc;border-radius:10px;padding:11px 15px;font-size:12px;color:#296448}
