/* Cut Master · Edición Curso Lifetime v1.0
   Capa visual exclusiva. No modifica motores de cálculo. */
body.cm-course-lifetime .sidebar nav .nav[data-view="simulator"],
body.cm-course-lifetime .sidebar nav .nav[data-view="machines"],
body.cm-course-lifetime .sidebar nav .nav[data-view="mytools"],
body.cm-course-lifetime .sidebar nav .nav[data-view="quotes"],
body.cm-course-lifetime .sidebar nav .nav[data-view="settings"],
body.cm-course-lifetime .sidebar nav .nav[data-view="troubleshooting"],
body.cm-course-lifetime .sidebar nav .nav[data-view="faq"],
body.cm-course-lifetime .sidebar nav .nav[data-view="history"],
body.cm-course-lifetime .sidebar nav .nav[data-view="favorites"],
body.cm-course-lifetime .sidebar nav .nav[data-view="howto"],
body.cm-course-lifetime #view-simulator,
body.cm-course-lifetime #simulatorCalculatorAction,
body.cm-course-lifetime #simulateCurrentJobBtn,
body.cm-course-lifetime [class*="plan-card"],
body.cm-course-lifetime [class*="pricing"],
body.cm-course-lifetime [data-open-plans],
body.cm-course-lifetime #aiSetupModal,
body.cm-course-lifetime #saveQuoteBtn,
body.cm-course-lifetime #quoteNewCalcBtn,
body.cm-course-lifetime #quoteImportLastCalcBtn,
body.cm-course-lifetime #quoteProductSelect,
body.cm-course-lifetime #view-quotes .quote-side-card:has(#saveProductBtn),
body.cm-course-lifetime #view-quotes .quote-side-card:has(#quoteHistoryList){display:none!important}

body.cm-course-lifetime .cm-course-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eef8f1;border:1px solid #cfe9d6;font-size:12px;font-weight:800;color:#26733d;margin-top:8px}
body.cm-course-lifetime .cm-course-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
body.cm-course-lifetime .cm-course-card{border:1px solid #e5e7eb;background:#fff;border-radius:22px;padding:22px;text-align:left;box-shadow:0 12px 30px rgba(15,23,42,.06);cursor:pointer;transition:.18s ease}
body.cm-course-lifetime .cm-course-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(15,23,42,.09)}
body.cm-course-lifetime .cm-course-card span{font-size:11px;font-weight:900;letter-spacing:.08em;color:#64748b}
body.cm-course-lifetime .cm-course-card h3{margin:9px 0 8px;font-size:22px}
body.cm-course-lifetime .cm-course-card p{margin:0;color:#64748b;line-height:1.55}
body.cm-course-lifetime .cm-course-card b{display:block;margin-top:18px;color:#2563eb}
body.cm-course-lifetime .cm-course-strip{margin-top:18px;padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e5e7eb;color:#475569;font-size:13px}

body.cm-course-lifetime .cm-course-operation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.cm-course-lifetime .cm-course-op-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:24px;box-shadow:0 12px 28px rgba(15,23,42,.05)}
body.cm-course-lifetime .cm-course-op-card .ico{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#f1f5f9;font-size:22px}
body.cm-course-lifetime .cm-course-op-card h3{font-size:21px;margin:14px 0 8px}
body.cm-course-lifetime .cm-course-op-card p{color:#64748b;line-height:1.55;min-height:48px}
body.cm-course-lifetime .cm-course-op-card button{margin-top:14px}

body.cm-course-lifetime #view-quotes .quote-kicker{font-size:0}
body.cm-course-lifetime #view-quotes .quote-kicker:after{content:'COTIZADOR LOCAL · PDF';font-size:11px}
body.cm-course-lifetime #view-quotes .quote-topbar p{max-width:760px}
body.cm-course-lifetime #view-quotes .quote-top-actions:before{content:'El documento no se guarda dentro de Cut Master. Descarga el PDF y archívalo en tu computadora.';display:block;max-width:330px;font-size:12px;line-height:1.4;color:#64748b;margin-right:8px}
body.cm-course-lifetime #generateQuotePdfBtn{min-width:150px}

body.cm-course-lifetime .cm-oee-course{max-width:980px;margin:0 auto}
body.cm-course-lifetime .cm-oee-course-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
body.cm-course-lifetime .cm-oee-course-head h2{margin:0 0 6px}
body.cm-course-lifetime .cm-oee-course-head p{margin:0;color:#64748b}
body.cm-course-lifetime .cm-oee-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
body.cm-course-lifetime .cm-oee-stat{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px}
body.cm-course-lifetime .cm-oee-stat small{display:block;color:#64748b;margin-bottom:7px}
body.cm-course-lifetime .cm-oee-stat b{font-size:28px}
body.cm-course-lifetime .cm-oee-list{background:#fff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden}
body.cm-course-lifetime .cm-oee-row{display:grid;grid-template-columns:minmax(0,1fr) 180px 44px;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #eef2f7}
body.cm-course-lifetime .cm-oee-row:last-child{border-bottom:0}
body.cm-course-lifetime .cm-oee-row input,body.cm-course-lifetime .cm-oee-row select{width:100%}
body.cm-course-lifetime .cm-oee-empty{padding:30px;text-align:center;color:#64748b}
body.cm-course-lifetime .cm-oee-note{margin-top:14px;color:#64748b;font-size:12px}

body.cm-course-lifetime #view-aicontrol .ai-service-badge span,
body.cm-course-lifetime #view-aicontrol .ai-service-badge b{font-size:0}
body.cm-course-lifetime #view-aicontrol .ai-service-badge b:after{content:'MakiBot local';font-size:13px}
body.cm-course-lifetime #view-aicontrol .ai-service-badge span:after{content:'Incluido de por vida · sin plan';font-size:11px}

@media(max-width:900px){body.cm-course-lifetime .cm-course-home,body.cm-course-lifetime .cm-course-operation{grid-template-columns:1fr}body.cm-course-lifetime .cm-oee-stats{grid-template-columns:1fr}body.cm-course-lifetime .cm-oee-row{grid-template-columns:1fr 1fr 40px}}
/* v1.1: la edición Curso no contiene ni expone el Simulador CNC. */
body.cm-course-lifetime [data-view="simulator"],
body.cm-course-lifetime #view-simulator,
body.cm-course-lifetime #simulatorCalculatorAction,
body.cm-course-lifetime #simulateCurrentJobBtn{display:none!important}


/* v1.3 · ajustes reales de la edición Curso Lifetime */
body.cm-course-lifetime #view-home .cm-course-home,
body.cm-course-lifetime .cm-course-home{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
}
body.cm-course-lifetime .cm-course-card{min-width:0!important;min-height:218px!important;display:flex!important;flex-direction:column!important;}
body.cm-course-lifetime .cm-course-card b{margin-top:auto!important;padding-top:18px!important;}

/* Restaurar exactamente el logo histórico de Cut Master. */
body.cm-course-lifetime .sidebar .logo.brand-logo{
  height:auto!important;min-height:88px!important;padding:18px 18px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  overflow:visible!important;background:#fff!important;
}
body.cm-course-lifetime .sidebar .logo.brand-logo img.cm-original-cutmaster-logo{
  display:block!important;width:172px!important;max-width:100%!important;height:auto!important;
  object-fit:contain!important;object-position:left center!important;filter:none!important;
  border-radius:0!important;clip-path:none!important;
}

/* Botón real del cargador: texto blanco sobre azul. */
body.cm-course-lifetime #view-calculator .upload em{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;padding:0 18px!important;margin-top:12px!important;
  background:#1767e8!important;border:1px solid #1767e8!important;border-radius:10px!important;
  color:#fff!important;font-weight:800!important;line-height:1.1!important;
}

/* Paso 1: cargador arriba; unidades a la izquierda; visor ESPEJO adicional a la derecha. */
body.cm-course-lifetime #view-calculator .design-first-card{
  display:grid!important;
  grid-template-columns:minmax(300px,.72fr) minmax(420px,1.28fr)!important;
  gap:18px 22px!important;
  align-items:start!important;
}
body.cm-course-lifetime #view-calculator .design-first-card>.design-first-head{grid-column:1/-1!important;}
body.cm-course-lifetime #view-calculator .design-first-card>.file-first-upload{grid-column:1/-1!important;}
body.cm-course-lifetime #view-calculator .design-first-card>.field{grid-column:1!important;grid-row:auto!important;}
body.cm-course-lifetime #view-calculator .design-first-card>.design-gate-note{grid-column:1!important;}
body.cm-course-lifetime #view-calculator .design-first-card>.calculator-file-viewer{grid-column:1/-1!important;grid-row:auto!important;display:block!important;}

/* La pantalla de inicio debe existir desde el primer paint. */
body.cm-course-lifetime #view-home.active{display:block!important;}

@media(max-width:1120px){
 body.cm-course-lifetime #view-home .cm-course-home,body.cm-course-lifetime .cm-course-home{grid-template-columns:1fr!important;}
 body.cm-course-lifetime #view-calculator .design-first-card{grid-template-columns:1fr!important;}
 body.cm-course-lifetime #view-calculator .design-first-card>.field,
 body.cm-course-lifetime #view-calculator .design-first-card>.design-gate-note,
 body.cm-course-lifetime #view-calculator .design-first-card>.calculator-file-viewer{grid-column:1!important;grid-row:auto!important;}
}


/* v1.4 · carga de archivos: el CTA siempre debe leerse en blanco */
body.cm-course-lifetime #view-calculator .upload em,
body.cm-course-lifetime #view-calculator .upload em *,
body.cm-course-lifetime #view-calculator .file-first-upload em,
body.cm-course-lifetime #view-calculator .file-first-upload em *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
body.cm-course-lifetime .cm-course-dwg-loaded b{display:block;margin-bottom:8px;color:#17284f;font-size:14px;}
.cm-file-save-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.cm-file-save-actions .soft,.cm-file-save-actions .primary{min-width:150px}@media(max-width:680px){.cm-file-save-actions{display:grid;grid-template-columns:1fr}.cm-file-save-actions .soft,.cm-file-save-actions .primary{width:100%;min-width:0}}
