*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[215px\]{height:215px}.h-\[320px\]{height:320px}.h-\[360px\]{height:360px}.h-\[460px\]{height:460px}.h-\[520px\]{height:520px}.h-full{height:100%}.max-h-72{max-height:18rem}.max-h-\[300px\]{max-height:300px}.max-h-\[360px\]{max-height:360px}.max-h-\[380px\]{max-height:380px}.max-h-\[420px\]{max-height:420px}.max-h-\[430px\]{max-height:430px}.max-h-\[620px\]{max-height:620px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-2\.5{width:.625rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-5xl{max-width:64rem}.max-w-\[1980px\]{max-width:1980px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-current{border-color:currentColor}.border-t-transparent{border-top-color:transparent}.bg-transparent{background-color:transparent}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pr-1{padding-right:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-\[\.12em\]{letter-spacing:.12em}.tracking-\[\.14em\]{letter-spacing:.14em}.tracking-\[\.16em\]{letter-spacing:.16em}.tracking-\[\.18em\]{letter-spacing:.18em}.tracking-\[\.22em\]{letter-spacing:.22em}.tracking-\[\.25em\]{letter-spacing:.25em}.tracking-wider{letter-spacing:.05em}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,summary{font-family:inherit}summary::-webkit-details-marker{display:none}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-\[1fr_180px_auto_auto_auto_auto\]{grid-template-columns:1fr 180px auto auto auto auto}}@media (min-width: 1024px){.lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:flex{display:flex}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\:grid-cols-\[1fr_320px\]{grid-template-columns:1fr 320px}.xl\:grid-cols-\[280px_minmax\(0\,1fr\)\]{grid-template-columns:280px minmax(0,1fr)}.xl\:grid-cols-\[620px_1fr\]{grid-template-columns:620px 1fr}}@media (min-width: 1536px){.\32xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Ajustes de impresión/PDF para informes extensos */
@media print{
  @page{size:A4 landscape;margin:10mm;}
  html,body,#root{background:#fff!important;min-height:auto!important;}
  body *{visibility:hidden!important;}
  .print-report,.print-report *{visibility:visible!important;}
  .print-report{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#111827!important;}
  .print-report .report-scroll{max-height:none!important;overflow:visible!important;}
  .print-report .print-break{break-inside:auto!important;page-break-inside:auto!important;}
  .print-report section.print-break{page-break-after:always;}
  .print-report section.print-break:last-child{page-break-after:auto;}
  .print-report table{width:100%!important;border-collapse:collapse!important;font-size:9px!important;}
  .print-report thead{display:table-header-group!important;}
  .print-report tr{break-inside:avoid!important;page-break-inside:avoid!important;}
  .print-report th,.print-report td{padding:4px 5px!important;vertical-align:top!important;}
  .print-report .h-\[360px\]{height:245px!important;}
  .print-report .grid{gap:6px!important;}
  .print-report .xl\:grid-cols-8{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  .print-report .xl\:grid-cols-2{grid-template-columns:1fr!important;}
  .print-report .space-y-8>:not([hidden])~:not([hidden]){margin-top:1rem!important;}
}

/* Refuerzo PDF: tablas largas y textos extensos */
@media print{
  .print-report{font-size:10px!important;line-height:1.25!important;}
  .print-report table{table-layout:auto!important;}
  .print-report th,.print-report td{white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;}
  .print-report .rounded-2xl{border-radius:8px!important;}
}

/* Ajustes impresión informe técnico: tablas largas sin cortes */
@media print{
  .report-scroll{max-height:none!important;overflow:visible!important;}
  table{page-break-inside:auto!important;}
  tr{page-break-inside:avoid!important;page-break-after:auto!important;}
  thead{display:table-header-group!important;}
  tfoot{display:table-footer-group!important;}
}

/* Informe semanal por contrato */
.report-scroll{scrollbar-width:thin}
@media print{
  .no-print{display:none!important}
  .print-report{border:none!important;box-shadow:none!important;padding:0!important}
  .print-break{break-after:page;page-break-after:always;border-radius:0!important;box-shadow:none!important}
  .print-break:last-child{break-after:auto;page-break-after:auto}
  .report-scroll{max-height:none!important;overflow:visible!important}
  table{page-break-inside:auto}
  tr{page-break-inside:avoid;page-break-after:auto}
}

/* Ajuste Informe Equipos - versión despacho técnico */
.print-report section.print-break{
  box-shadow:0 18px 38px rgba(15,23,42,.08);
}
.print-report section.print-break > .mb-4:first-child{
  padding:16px 18px!important;
  margin:-4px -4px 16px -4px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 65%,rgba(161,52,60,.10) 100%)!important;
  border:1px solid #e5e7eb!important;
}
.print-report section.print-break h2{
  letter-spacing:.02em;
}
.print-report section.print-break h3{
  color:#111827;
  border-left:5px solid #A1343C;
  padding-left:10px;
}
.print-report section.print-break table th{
  background:#A1343C!important;
  color:#fff!important;
  font-weight:900!important;
}
.print-report section.print-break table td{
  vertical-align:top!important;
}
@media print{
  @page{size:A4 landscape;margin:7mm;}
  .print-report section.print-break{min-height:auto!important;page-break-after:always!important;break-after:page!important;padding:8px!important;border:1px solid #d1d5db!important;}
  .print-report section.print-break:last-child{page-break-after:auto!important;break-after:auto!important;}
  .print-report section.print-break > .mb-4:first-child{padding:8px 10px!important;margin:0 0 6px 0!important;border-radius:6px!important;}
  .print-report h1{font-size:18px!important;line-height:1.1!important;}
  .print-report h2{font-size:17px!important;line-height:1.1!important;}
  .print-report h3{font-size:12px!important;margin-bottom:4px!important;}
  .print-report p{font-size:9px!important;line-height:1.15!important;}
  .print-report table{font-size:7.4px!important;line-height:1.12!important;}
  .print-report th,.print-report td{padding:3px 4px!important;}
  .print-report .h-\[320px\]{height:170px!important;}
  .print-report .grid{gap:4px!important;}
  .print-report .p-3{padding:5px!important;}
  .print-report .p-4,.print-report .p-5{padding:6px!important;}
  .print-report .mt-4{margin-top:6px!important;}
  .print-report .mt-5{margin-top:7px!important;}
}


/* =========================================================
   Informe de Criticidad — rediseño 2026
   ========================================================= */
.equipment-report-page{font-family:Inter,"Segoe UI",Arial,sans-serif}
.equipment-report{--report-red:#A1343C;--report-red-dark:#7d2730;--report-ink:#172033;--report-muted:#64748b;--report-line:#dfe4ea;--report-soft:#f7f8fa;color:var(--report-ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
.equipment-report-list{display:flex;flex-direction:column;gap:24px}
.equipment-report-sheet{position:relative;background:#fff;border:1px solid var(--report-line);padding:22px;box-shadow:0 5px 18px rgba(15,23,42,.05)}
.report-empty-state{padding:32px;text-align:center;background:#fff;border:1px solid var(--report-line)}
.report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:14px;border-bottom:2px solid var(--report-red);margin-bottom:16px}
.report-header-main{display:flex;align-items:flex-start;gap:12px;min-width:0}.report-accent{width:5px;height:44px;background:var(--report-red);flex:0 0 5px}.report-header h1{font-size:23px;line-height:1.1;font-weight:850;color:#101827;letter-spacing:-.02em}.report-header p{margin-top:4px;color:var(--report-muted);font-size:12px}.report-header-meta{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;min-width:300px}.report-header-meta div{border-left:1px solid var(--report-line);padding-left:10px}.report-header-meta span{display:block;color:var(--report-muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.report-header-meta strong{display:block;margin-top:3px;font-size:11px;color:var(--report-ink)}
.report-kpi-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin-bottom:15px}.report-kpi-card{min-width:0;border:1px solid var(--report-line);padding:10px 10px 9px;background:#fff}.report-kpi-card span{display:block;font-size:8.5px;line-height:1.15;text-transform:uppercase;letter-spacing:.06em;color:var(--report-muted);font-weight:750}.report-kpi-card strong{display:block;margin-top:5px;font-size:15px;line-height:1.15;color:var(--report-ink);font-weight:850;white-space:normal;overflow-wrap:anywhere}.report-kpi-primary{border-left:4px solid var(--report-red);background:#fbf6f7}.report-kpi-primary strong{color:var(--report-red-dark)}
.report-section{margin-top:15px}.report-section-title{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:0!important;border:0!important;color:var(--report-ink)!important;font-size:14px;font-weight:850;letter-spacing:0!important}.report-section-title:before{content:"";display:block;width:4px;height:15px;background:var(--report-red)}.report-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:7px}.report-section-heading .report-section-title{margin-bottom:1px}.report-section-heading p{font-size:10px;color:var(--report-muted)}
.report-table-scroll{overflow:auto;border:1px solid var(--report-line);background:#fff}.report-table{width:100%;min-width:850px;border-collapse:collapse;table-layout:auto;font-size:10px;line-height:1.25}.report-table th{padding:7px 7px!important;text-align:left;background:var(--report-red)!important;color:#fff!important;font-size:9px;font-weight:800;white-space:normal;vertical-align:bottom;border-right:1px solid rgba(255,255,255,.2)}.report-table td{padding:7px!important;border-top:1px solid var(--report-line);border-right:1px solid #edf0f3;vertical-align:top;color:#253047;overflow-wrap:anywhere}.report-table tbody tr:nth-child(even){background:#fafbfc}.report-table tbody tr:hover{background:#fff8f8}.report-number{text-align:right!important;white-space:nowrap}.report-strong{font-weight:800;color:#101827!important}.report-total-row{background:#f1f3f6!important;font-weight:850}.report-total-row td{border-top:2px solid #bac2cc}.report-empty-cell{padding:18px!important;text-align:center;color:var(--report-muted);font-size:11px}.report-failures-scroll{max-height:440px}.report-table-failures{min-width:1280px}.report-table-asset{min-width:1100px}.report-table-similar{min-width:1100px}.report-selected-row{background:#fff0f1!important;box-shadow:inset 4px 0 0 var(--report-red)}
.report-group-select{min-width:160px;border:1px solid var(--report-line);background:#fff;color:var(--report-ink);padding:7px 10px;font-size:11px;font-weight:750;outline:none}.report-chart-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:14px;border:1px solid var(--report-line);padding:12px;background:#fff}.report-chart{height:265px;min-width:0}.report-chart-metrics{display:flex;flex-direction:column;justify-content:center;gap:5px}.report-chart-metrics div{border-bottom:1px solid #edf0f3;padding:5px 0}.report-chart-metrics strong{display:block;font-size:10px;color:var(--report-ink)}.report-chart-metrics span{display:block;margin-top:2px;font-size:9px;color:var(--report-muted)}
.report-findings{border-top:1px solid var(--report-line);padding-top:13px}.report-findings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-finding{display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:start;border:1px solid var(--report-line);padding:9px;background:var(--report-soft)}.report-finding>span{display:flex;align-items:center;justify-content:center;width:26px;height:26px;background:var(--report-red);color:#fff;font-size:9px;font-weight:850}.report-finding p{font-size:10px;line-height:1.35;color:#263247}
.report-footer{display:flex;justify-content:space-between;gap:16px;margin-top:16px;padding-top:8px;border-top:1px solid var(--report-line);font-size:8.5px;color:var(--report-muted)}.report-page-number:after{content:" " counter(page)}
@media(max-width:1400px){.report-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.report-chart-layout{grid-template-columns:1fr}.report-chart-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.equipment-report-sheet{padding:12px}.report-header{flex-direction:column}.report-header-meta{min-width:0;width:100%}.report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-findings-grid{grid-template-columns:1fr}}

@media print{
  @page{size:A4 portrait;margin:10mm 8mm 13mm 8mm}
  html,body,#root{width:100%!important;background:#fff!important}
  body *{visibility:hidden!important}
  .print-report,.print-report *{visibility:visible!important}
  .print-report{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;color:#111827!important;font-size:9px!important;line-height:1.2!important}
  .equipment-report-list{gap:0!important}
  .equipment-report-sheet{width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;page-break-after:always!important;break-after:page!important;page-break-inside:auto!important;break-inside:auto!important}
  .equipment-report-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .report-header{margin:0 0 7px!important;padding:0 0 7px!important;gap:10px!important}
  .report-header h1{font-size:16px!important}.report-header p{font-size:8px!important}.report-accent{height:32px!important}.report-header-meta{min-width:235px!important;gap:4px!important}.report-header-meta span{font-size:6.5px!important}.report-header-meta strong{font-size:7.5px!important}
  .report-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;margin-bottom:6px!important}.report-kpi-card{padding:4px 5px!important}.report-kpi-card span{font-size:6.3px!important}.report-kpi-card strong{font-size:10px!important;margin-top:2px!important}
  .report-section{margin-top:7px!important}.report-section-title{font-size:9.5px!important;margin-bottom:3px!important}.report-section-title:before{height:10px!important;width:3px!important}.report-section-heading{margin-bottom:3px!important}.report-section-heading p{font-size:6.5px!important}
  .report-table-scroll,.report-failures-scroll{max-height:none!important;overflow:visible!important;border-color:#cfd5dc!important}
  .report-table{min-width:0!important;width:100%!important;font-size:6.5px!important;line-height:1.12!important;table-layout:fixed!important}
  .report-table thead{display:table-header-group!important}.report-table tfoot{display:table-footer-group!important}.report-table tr{page-break-inside:avoid!important;break-inside:avoid!important}.report-table th,.report-table td{padding:2.2px 2.5px!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important}.report-table th{font-size:5.9px!important}.report-table-failures{font-size:5.5px!important}.report-table-failures th{font-size:5.2px!important}.report-number{white-space:normal!important}
  .report-chart-section{page-break-inside:avoid!important;break-inside:avoid!important}.report-chart-layout{grid-template-columns:1fr 155px!important;gap:6px!important;padding:4px!important}.report-chart{height:145px!important}.report-chart-metrics{display:block!important}.report-chart-metrics div{padding:2px 0!important}.report-chart-metrics strong{font-size:6px!important}.report-chart-metrics span{font-size:5.5px!important}
  .report-findings{page-break-inside:avoid!important;break-inside:avoid!important;padding-top:5px!important}.report-findings-grid{gap:3px!important}.report-finding{grid-template-columns:18px 1fr;gap:4px;padding:4px!important}.report-finding>span{width:16px;height:16px;font-size:5.8px}.report-finding p{font-size:6.2px!important;line-height:1.2!important}
  .report-footer{margin-top:6px!important;padding-top:3px!important;font-size:5.8px!important;page-break-inside:avoid!important}
  .no-print{display:none!important}
}


/* Ajustes Informe Equipos — detalle técnico 2026-07-14 */
.report-table-similar-detail{min-width:1450px}
.report-table-similar-detail th:nth-child(1){width:90px}
.report-table-similar-detail th:nth-child(2){width:115px}
.report-table-similar-detail th:nth-child(3){width:120px}
.report-table-similar-detail th:nth-child(4){width:105px}
.report-table-similar-detail th:nth-child(5){width:120px}
.report-table-similar-detail th:nth-child(6){width:95px}
.report-table-similar-detail th:nth-child(7){width:130px}
.report-table-similar-detail th:nth-child(8){width:150px}
.report-table-similar-detail th:nth-child(9){width:300px}
.report-table-similar-detail th:nth-child(10){width:75px}
.report-findings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-finding p{font-size:10.5px;line-height:1.4}
@media print{.report-table-similar-detail{font-size:5.5px!important}.report-table-similar-detail th{font-size:5.1px!important}.report-findings-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* Informe Equipos - impresión fiel y legible 2026-07-14 */
@media print{
  @page{size:A4 portrait;margin:9mm 8mm 12mm 8mm}
  html,body,#root{background:#fff!important;width:100%!important;height:auto!important}
  *,*::before,*::after{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
  body *{visibility:hidden!important}
  .print-report,.print-report *{visibility:visible!important}
  .print-report{position:absolute!important;left:0!important;top:0!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;color:#101827!important;font-family:Inter,"Segoe UI",Arial,sans-serif!important}
  .equipment-report-list{display:block!important;gap:0!important}
  .equipment-report-sheet{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;page-break-after:always!important;break-after:page!important;page-break-inside:auto!important;break-inside:auto!important}
  .equipment-report-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .report-header{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between!important;margin:0 0 8px!important;padding:0 0 8px!important;border-bottom:1px solid #d9dee5!important;gap:12px!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .report-accent{display:block!important;width:5px!important;height:38px!important;background:#A1343C!important}
  .report-header h1{font-size:17px!important;line-height:1.1!important;color:#101827!important}.report-header p{font-size:8.5px!important;line-height:1.25!important;color:#5f6b7a!important}
  .report-header-meta{display:grid!important;grid-template-columns:repeat(2,minmax(100px,1fr))!important;min-width:225px!important;gap:6px!important}.report-header-meta div{border-left:1px solid #d9dee5!important;padding-left:8px!important}.report-header-meta span{font-size:6.8px!important;color:#6b7280!important}.report-header-meta strong{font-size:8px!important;color:#101827!important}
  .report-kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin-bottom:8px!important;break-inside:avoid!important;page-break-inside:avoid!important}.report-kpi-card{padding:6px!important;border:1px solid #d9dee5!important;background:#fff!important}.report-kpi-primary{border-left:4px solid #A1343C!important;background:#fbf6f7!important}.report-kpi-card span{font-size:6.8px!important;color:#667085!important}.report-kpi-card strong{font-size:11px!important;line-height:1.15!important;color:#101827!important;margin-top:3px!important}
  .report-section{margin-top:9px!important;page-break-inside:auto!important;break-inside:auto!important}.report-section-title{font-size:10.5px!important;line-height:1.2!important;margin:0 0 4px!important;color:#101827!important;break-after:avoid-page!important;page-break-after:avoid!important}.report-section-title:before{width:3px!important;height:11px!important;background:#A1343C!important}
  .report-table-scroll,.report-failures-scroll{display:block!important;max-height:none!important;overflow:visible!important;border:1px solid #d9dee5!important;background:#fff!important}
  .report-table{width:100%!important;min-width:0!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:7.2px!important;line-height:1.22!important;background:#fff!important}
  .report-table thead{display:table-header-group!important}.report-table tfoot{display:table-footer-group!important}.report-table tr{page-break-inside:avoid!important;break-inside:avoid!important}.report-table th{padding:3.6px 3.8px!important;background:#A1343C!important;color:#fff!important;font-size:6.8px!important;line-height:1.15!important;border-right:1px solid rgba(255,255,255,.25)!important}.report-table td{padding:3.6px 3.8px!important;color:#253047!important;border-top:1px solid #dfe4ea!important;border-right:1px solid #edf0f3!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}.report-table tbody tr:nth-child(even){background:#fafbfc!important}.report-table tbody tr:hover{background:inherit!important}.report-total-row{background:#f1f3f6!important}.report-number{white-space:nowrap!important}.report-strong{color:#101827!important}
  .report-table-asset{font-size:7px!important}.report-table-failures{font-size:6.6px!important}.report-table-failures th{font-size:6.2px!important}.report-table-similar-detail{font-size:6.25px!important}.report-table-similar-detail th{font-size:5.9px!important}
  .report-table-similar-detail th:nth-child(1){width:7%!important}.report-table-similar-detail th:nth-child(2){width:9%!important}.report-table-similar-detail th:nth-child(3){width:9%!important}.report-table-similar-detail th:nth-child(4){width:8%!important}.report-table-similar-detail th:nth-child(5){width:9%!important}.report-table-similar-detail th:nth-child(6){width:8%!important}.report-table-similar-detail th:nth-child(7){width:11%!important}.report-table-similar-detail th:nth-child(8){width:13%!important}.report-table-similar-detail th:nth-child(9){width:19%!important}.report-table-similar-detail th:nth-child(10){width:7%!important}
  .report-findings{border-top:1px solid #d9dee5!important;padding-top:7px!important;break-inside:avoid!important;page-break-inside:avoid!important}.report-findings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}.report-finding{display:grid!important;grid-template-columns:22px 1fr!important;gap:6px!important;padding:6px!important;border:1px solid #d9dee5!important;background:#f7f8fa!important}.report-finding>span{width:20px!important;height:20px!important;background:#A1343C!important;color:#fff!important;font-size:7px!important}.report-finding p{font-size:7.4px!important;line-height:1.3!important;color:#263247!important}
  .report-footer{display:flex!important;margin-top:8px!important;padding-top:5px!important;border-top:1px solid #d9dee5!important;font-size:6.5px!important;color:#667085!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .no-print{display:none!important}
}


/* Informe Equipos - ajuste fino de exportación PDF 2026-07-14 */
@media print {
  @page { size: A4 portrait; margin: 7mm 7mm 10mm 7mm; }

  .print-report,
  .print-report * {
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-report {
    width: 100% !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  .equipment-report-sheet {
    width: 100% !important;
    overflow: visible !important;
  }

  .report-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 215px !important;
    align-items: start !important;
    gap: 10px !important;
    margin-bottom: 7px !important;
    padding-bottom: 7px !important;
  }

  .report-header-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .report-header-main > div:last-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .report-accent {
    flex: 0 0 5px !important;
    width: 5px !important;
    height: 36px !important;
  }

  .report-header h1 {
    margin: 0 !important;
    max-width: 390px !important;
    font-size: 15.5px !important;
    line-height: 1.08 !important;
    letter-spacing: -.15px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .report-header p {
    margin-top: 3px !important;
    font-size: 7.7px !important;
    line-height: 1.22 !important;
  }

  .report-header-meta {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    min-width: 0 !important;
    width: 215px !important;
    gap: 5px !important;
  }

  .report-header-meta div {
    min-width: 0 !important;
    padding-left: 7px !important;
  }

  .report-header-meta span,
  .report-header-meta strong {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .report-header-meta span { font-size: 6.5px !important; }
  .report-header-meta strong { font-size: 7.5px !important; line-height: 1.2 !important; }

  .report-kpi-grid {
    gap: 4px !important;
    margin-bottom: 7px !important;
  }

  .report-kpi-card {
    min-width: 0 !important;
    padding: 5px 6px !important;
  }

  .report-kpi-card span {
    font-size: 6.4px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .report-kpi-card strong {
    font-size: 10px !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .report-section {
    margin-top: 8px !important;
  }

  .report-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 0 4px !important;
    font-size: 10.8px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .report-section-title::before {
    flex: 0 0 3px !important;
    width: 3px !important;
    height: 11px !important;
  }

  .report-table-scroll,
  .report-failures-scroll {
    width: 100% !important;
    overflow: visible !important;
    max-height: none !important;
  }

  .report-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 7.25px !important;
    line-height: 1.28 !important;
  }

  .report-table thead { display: table-header-group !important; }
  .report-table tfoot { display: table-footer-group !important; }
  .report-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .report-table th {
    padding: 3.4px 3px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 6.75px !important;
    line-height: 1.16 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .report-table td {
    padding: 3.4px 3px !important;
    text-align: left !important;
    vertical-align: middle !important;
    font-size: inherit !important;
    line-height: 1.28 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .report-table .report-number,
  .report-table td.report-number {
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  /* Datos del activo */
  .report-table-asset th:nth-child(1), .report-table-asset td:nth-child(1) { width: 9% !important; }
  .report-table-asset th:nth-child(2), .report-table-asset td:nth-child(2) { width: 8% !important; }
  .report-table-asset th:nth-child(3), .report-table-asset td:nth-child(3) { width: 12% !important; }
  .report-table-asset th:nth-child(4), .report-table-asset td:nth-child(4) { width: 8% !important; }
  .report-table-asset th:nth-child(5), .report-table-asset td:nth-child(5) { width: 12% !important; }
  .report-table-asset th:nth-child(6), .report-table-asset td:nth-child(6) { width: 6% !important; text-align: center !important; }
  .report-table-asset th:nth-child(7), .report-table-asset td:nth-child(7) { width: 13% !important; }
  .report-table-asset th:nth-child(8), .report-table-asset td:nth-child(8) { width: 22% !important; text-align: center !important; }
  .report-table-asset th:nth-child(9), .report-table-asset td:nth-child(9) { width: 10% !important; text-align: center !important; }
  .report-table-asset td:nth-child(1),
  .report-table-asset td:nth-child(6),
  .report-table-asset td:nth-child(8),
  .report-table-asset td:nth-child(9) { white-space: nowrap !important; }

  /* Contratos donde estuvo */
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(1),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(1) { width: 16% !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(2),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(2) { width: 15% !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(3),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(3) { width: 15% !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(4),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(4) { width: 8% !important; text-align: center !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(5),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(5) { width: 16% !important; text-align: center !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(6),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(6) { width: 15% !important; text-align: center !important; }
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(7),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(7) { width: 15% !important; text-align: center !important; }

  /* Fallas del equipo */
  .report-table-failures { font-size: 7px !important; }
  .report-table-failures th:nth-child(1), .report-table-failures td:nth-child(1) { width: 9% !important; white-space: nowrap !important; }
  .report-table-failures th:nth-child(2), .report-table-failures td:nth-child(2) { width: 8% !important; white-space: nowrap !important; text-align: center !important; }
  .report-table-failures th:nth-child(3), .report-table-failures td:nth-child(3) { width: 6% !important; text-align: center !important; }
  .report-table-failures th:nth-child(4), .report-table-failures td:nth-child(4) { width: 13% !important; }
  .report-table-failures th:nth-child(5), .report-table-failures td:nth-child(5) { width: 15% !important; }
  .report-table-failures th:nth-child(6), .report-table-failures td:nth-child(6) { width: 18% !important; }
  .report-table-failures th:nth-child(7), .report-table-failures td:nth-child(7) { width: 15% !important; }
  .report-table-failures th:nth-child(8), .report-table-failures td:nth-child(8) { width: 7% !important; text-align: center !important; white-space: nowrap !important; }
  .report-table-failures th:nth-child(9), .report-table-failures td:nth-child(9) { width: 9% !important; text-align: center !important; white-space: nowrap !important; }

  /* La tabla extensa comienza en una página limpia y usa más espacio legible. */
  .report-similar-section {
    break-before: page !important;
    page-break-before: always !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .report-table-similar-detail {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 6.8px !important;
    line-height: 1.26 !important;
  }

  .report-table-similar-detail th { font-size: 6.35px !important; }
  .report-table-similar-detail th:nth-child(1), .report-table-similar-detail td:nth-child(1) { width: 7% !important; text-align: center !important; white-space: nowrap !important; }
  .report-table-similar-detail th:nth-child(2), .report-table-similar-detail td:nth-child(2) { width: 9% !important; white-space: nowrap !important; }
  .report-table-similar-detail th:nth-child(3), .report-table-similar-detail td:nth-child(3) { width: 9% !important; text-align: center !important; white-space: nowrap !important; }
  .report-table-similar-detail th:nth-child(4), .report-table-similar-detail td:nth-child(4) { width: 8% !important; }
  .report-table-similar-detail th:nth-child(5), .report-table-similar-detail td:nth-child(5) { width: 10% !important; }
  .report-table-similar-detail th:nth-child(6), .report-table-similar-detail td:nth-child(6) { width: 9% !important; text-align: center !important; white-space: nowrap !important; }
  .report-table-similar-detail th:nth-child(7), .report-table-similar-detail td:nth-child(7) { width: 12% !important; }
  .report-table-similar-detail th:nth-child(8), .report-table-similar-detail td:nth-child(8) { width: 13% !important; }
  .report-table-similar-detail th:nth-child(9), .report-table-similar-detail td:nth-child(9) { width: 17% !important; }
  .report-table-similar-detail th:nth-child(10), .report-table-similar-detail td:nth-child(10) { width: 6% !important; text-align: center !important; white-space: nowrap !important; }

  .report-findings {
    margin-top: 8px !important;
    padding-top: 7px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .report-findings-grid { gap: 5px !important; }
  .report-finding { align-items: center !important; padding: 6px !important; }
  .report-finding p {
    font-size: 7.5px !important;
    line-height: 1.32 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .report-footer {
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    font-size: 6.4px !important;
    line-height: 1.2 !important;
  }

  .report-footer span { white-space: normal !important; }
  .report-page-number { display: none !important; }
}

/* ============================================================
   Informe Equipos / Informe de Criticidad — v5 2026-07-14
   Bloque final autoritativo: pantalla + impresión A4.
   Reemplaza al bloque "Ajuste cabecera PDF" que estaba corrupto
   (contenía secuencias backslash-n literales y el navegador lo descartaba).
   ============================================================ */

/* ---------- PANTALLA ---------- */

.report-company-title{display:none}

.report-screen-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:0 0 14px;padding:10px 14px;
  background:#fff;border:1px solid var(--report-line);
  border-left:4px solid var(--report-red);
}
.report-screen-toolbar-info{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap}
.report-screen-toolbar-info span{
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--report-muted);
}
.report-screen-toolbar-info strong{font-size:14px;font-weight:850;color:var(--report-ink);overflow-wrap:anywhere}
.report-screen-toolbar-btn{
  flex:0 0 auto;border:0;cursor:pointer;border-radius:10px;
  background:var(--report-red);color:#fff;padding:8px 16px;
  font-size:12px;font-weight:850;font-family:inherit;
}
.report-screen-toolbar-btn:hover{background:var(--report-red-dark)}

/* Legibilidad de tablas en pantalla */
.report-table{font-size:10.5px}
.report-table th{word-break:keep-all;overflow-wrap:normal;hyphens:none}
.report-table td{overflow-wrap:break-word;word-break:normal}
.report-table td.report-number,.report-table th.report-number{white-space:nowrap}
.report-section{margin-top:18px}
.report-finding p{font-size:11px;line-height:1.42}

@media(max-width:780px){
  .report-screen-toolbar{flex-direction:column;align-items:stretch}
  .report-screen-toolbar-btn{width:100%}
}

/* ---------- IMPRESIÓN (A4 vertical) ---------- */

@media print{
  @page{size:A4 portrait;margin:9mm 8mm 12mm 8mm}

  html,body,#root{width:100%!important;height:auto!important;background:#fff!important}
  *,*::before,*::after{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}

  /* Sólo el informe es visible */
  body *{visibility:hidden!important}
  .print-report,.print-report *{visibility:visible!important}
  .no-print,.no-print *{display:none!important;visibility:hidden!important}
  .report-screen-toolbar{display:none!important}

  .print-report{
    position:absolute!important;left:0!important;top:0!important;
    width:100%!important;margin:0!important;padding:0!important;
    background:#fff!important;color:#101827!important;
    font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  }
  .equipment-report-list{display:block!important;gap:0!important}
  .equipment-report-sheet{
    display:block!important;width:100%!important;max-width:none!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;background:#fff!important;
    page-break-after:always!important;break-after:page!important;
    page-break-inside:auto!important;break-inside:auto!important;
  }
  .equipment-report-sheet:last-child{page-break-after:auto!important;break-after:auto!important}

  /* Cabecera corporativa centrada, sin metadatos técnicos */
  .report-company-title{
    display:block!important;visibility:visible!important;
    width:100%!important;margin:0 0 4px!important;
    text-align:center!important;color:#101827!important;
    font-size:11px!important;line-height:1.15!important;
    font-weight:850!important;letter-spacing:.06em!important;text-transform:uppercase!important;
  }
  .report-header{
    display:block!important;width:100%!important;text-align:center!important;
    margin:0 0 8px!important;padding:0 0 8px!important;
    border-bottom:2px solid #A1343C!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .report-header-main{display:block!important;width:100%!important;text-align:center!important}
  .report-header-main>div:last-child{width:100%!important;max-width:none!important;text-align:center!important}
  .report-header h1{
    margin:0!important;max-width:none!important;width:100%!important;
    text-align:center!important;font-size:17px!important;line-height:1.12!important;
    color:#101827!important;white-space:normal!important;hyphens:none!important;
  }
  .report-header p{width:100%!important;text-align:center!important;margin-top:3px!important;font-size:8.5px!important;color:#5f6b7a!important}
  .report-accent{display:none!important}
  .report-header-meta{display:none!important}

  /* Tarjetas resumen */
  .report-kpi-grid{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:4px!important;margin-bottom:8px!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .report-kpi-card{padding:5px 6px!important;border:1px solid #d9dee5!important;background:#fff!important}
  .report-kpi-primary{border-left:4px solid #A1343C!important;background:#fbf6f7!important}
  .report-kpi-card span{font-size:6.6px!important;color:#667085!important;white-space:normal!important}
  .report-kpi-card strong{font-size:10.5px!important;line-height:1.12!important;margin-top:3px!important;color:#101827!important}
  .report-kpi-primary strong{color:#7d2730!important}

  /* Secciones: el título nunca queda separado de su tabla */
  .report-section{margin-top:9px!important;break-inside:auto!important;page-break-inside:auto!important}
  .report-section-title{
    font-size:10.5px!important;line-height:1.2!important;margin:0 0 4px!important;color:#101827!important;
    break-after:avoid-page!important;page-break-after:avoid!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .report-section-title::before{width:3px!important;height:11px!important;background:#A1343C!important}

  /* Tablas: encabezados repetidos, filas sin cortar, fondo rojo */
  .report-table-scroll,.report-failures-scroll{
    display:block!important;width:100%!important;max-height:none!important;
    overflow:visible!important;border:1px solid #d9dee5!important;background:#fff!important;
  }
  .report-table{
    width:100%!important;min-width:0!important;table-layout:fixed!important;
    border-collapse:collapse!important;font-size:7.3px!important;line-height:1.26!important;background:#fff!important;
  }
  .report-table thead{display:table-header-group!important}
  .report-table tfoot{display:table-footer-group!important}
  .report-table tr{page-break-inside:avoid!important;break-inside:avoid!important}
  .report-table th{
    padding:3.6px 3.4px!important;text-align:center!important;vertical-align:middle!important;
    background:#A1343C!important;color:#fff!important;
    font-size:6.8px!important;line-height:1.16!important;
    border-right:1px solid rgba(255,255,255,.25)!important;
    white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important;
  }
  .report-table td{
    padding:3.6px 3.4px!important;vertical-align:middle!important;
    color:#253047!important;border-top:1px solid #dfe4ea!important;border-right:1px solid #edf0f3!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important;
  }
  .report-table tbody tr:nth-child(even){background:#fafbfc!important}
  .report-table tbody tr:hover{background:inherit!important}
  .report-total-row{background:#f1f3f6!important}
  .report-total-row td{border-top:2px solid #bac2cc!important}
  .report-number,.report-table td.report-number{text-align:center!important;white-space:nowrap!important;overflow-wrap:normal!important}
  .report-strong{color:#101827!important}
  .report-empty-cell{padding:10px!important;font-size:7.5px!important}

  /* Datos del activo */
  .report-table-asset{font-size:7.1px!important}
  .report-table-asset th:nth-child(1),.report-table-asset td:nth-child(1){width:9%!important;white-space:nowrap!important}
  .report-table-asset th:nth-child(2),.report-table-asset td:nth-child(2){width:9%!important}
  .report-table-asset th:nth-child(3),.report-table-asset td:nth-child(3){width:13%!important}
  .report-table-asset th:nth-child(4),.report-table-asset td:nth-child(4){width:9%!important}
  .report-table-asset th:nth-child(5),.report-table-asset td:nth-child(5){width:12%!important}
  .report-table-asset th:nth-child(6),.report-table-asset td:nth-child(6){width:6%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-asset th:nth-child(7),.report-table-asset td:nth-child(7){width:11%!important;text-align:center!important}
  .report-table-asset th:nth-child(8),.report-table-asset td:nth-child(8){width:21%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-asset th:nth-child(9),.report-table-asset td:nth-child(9){width:10%!important;text-align:center!important}

  /* Contratos donde estuvo */
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(1),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(1){width:17%!important;white-space:nowrap!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(2),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(2){width:14%!important;text-align:center!important;white-space:nowrap!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(3),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(3){width:14%!important;text-align:center!important;white-space:nowrap!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(4),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(4){width:9%!important;text-align:center!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(5),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(5){width:16%!important;text-align:center!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(6),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(6){width:15%!important;text-align:center!important;white-space:nowrap!important}
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) th:nth-child(7),
  .report-section table:not(.report-table-asset):not(.report-table-failures):not(.report-table-similar-detail) td:nth-child(7){width:15%!important;text-align:center!important}

  /* Fallas del equipo */
  .report-table-failures{font-size:7px!important}
  .report-table-failures th{font-size:6.5px!important}
  .report-table-failures th:nth-child(1),.report-table-failures td:nth-child(1){width:8.5%!important;white-space:nowrap!important;text-align:center!important}
  .report-table-failures th:nth-child(2),.report-table-failures td:nth-child(2){width:8%!important;white-space:nowrap!important;text-align:center!important}
  .report-table-failures th:nth-child(3),.report-table-failures td:nth-child(3){width:6.5%!important;text-align:center!important}
  .report-table-failures th:nth-child(4),.report-table-failures td:nth-child(4){width:13%!important}
  .report-table-failures th:nth-child(5),.report-table-failures td:nth-child(5){width:14.5%!important}
  .report-table-failures th:nth-child(6),.report-table-failures td:nth-child(6){width:17.5%!important}
  .report-table-failures th:nth-child(7),.report-table-failures td:nth-child(7){width:15.5%!important}
  .report-table-failures th:nth-child(8),.report-table-failures td:nth-child(8){width:7.5%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-failures th:nth-child(9),.report-table-failures td:nth-child(9){width:9%!important;text-align:center!important;white-space:nowrap!important}

  /* Fallas de equipos semejantes: la tabla más larga.
     No se fuerza salto de página incondicional (evita páginas casi vacías);
     el título queda unido al inicio de la tabla y los encabezados se repiten. */
  .report-similar-section{
    break-before:auto!important;page-break-before:auto!important;
    margin-top:9px!important;padding-top:0!important;
    break-inside:auto!important;page-break-inside:auto!important;
  }
  .report-table-similar-detail{width:100%!important;min-width:0!important;font-size:6.9px!important;line-height:1.24!important}
  .report-table-similar-detail th{font-size:6.35px!important}
  .report-table-similar-detail th:nth-child(1),.report-table-similar-detail td:nth-child(1){width:7%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-similar-detail th:nth-child(2),.report-table-similar-detail td:nth-child(2){width:9%!important;white-space:nowrap!important}
  .report-table-similar-detail th:nth-child(3),.report-table-similar-detail td:nth-child(3){width:9.5%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-similar-detail th:nth-child(4),.report-table-similar-detail td:nth-child(4){width:8%!important}
  .report-table-similar-detail th:nth-child(5),.report-table-similar-detail td:nth-child(5){width:9.5%!important}
  .report-table-similar-detail th:nth-child(6),.report-table-similar-detail td:nth-child(6){width:8.5%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-similar-detail th:nth-child(7),.report-table-similar-detail td:nth-child(7){width:12.5%!important}
  .report-table-similar-detail th:nth-child(8),.report-table-similar-detail td:nth-child(8){width:13%!important}
  .report-table-similar-detail th:nth-child(9),.report-table-similar-detail td:nth-child(9){width:16.5%!important}
  .report-table-similar-detail th:nth-child(10),.report-table-similar-detail td:nth-child(10){width:6.5%!important;text-align:center!important;white-space:nowrap!important}

  /* Hallazgos clave */
  .report-findings{
    margin-top:9px!important;padding-top:7px!important;border-top:1px solid #d9dee5!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .report-findings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .report-finding{display:grid!important;grid-template-columns:20px 1fr!important;gap:6px!important;padding:6px!important;border:1px solid #d9dee5!important;background:#f7f8fa!important;align-items:center!important}
  .report-finding>span{width:18px!important;height:18px!important;background:#A1343C!important;color:#fff!important;font-size:6.6px!important}
  .report-finding p{font-size:7.5px!important;line-height:1.32!important;color:#263247!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}

  /* Pie: sólo código del equipo y período */
  .report-footer{
    display:flex!important;justify-content:center!important;text-align:center!important;
    margin-top:9px!important;padding-top:5px!important;border-top:1px solid #d9dee5!important;
    font-size:6.6px!important;color:#667085!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .report-footer span{white-space:normal!important}
  .report-page-number{display:none!important}
}

/* v8 2026-07-14: "Datos del activo" sin columna Horómetro/Odómetro (8 columnas) */
.report-table-asset{min-width:900px}
@media print{
  .report-table-asset th:nth-child(1),.report-table-asset td:nth-child(1){width:11%!important;white-space:nowrap!important;text-align:left!important}
  .report-table-asset th:nth-child(2),.report-table-asset td:nth-child(2){width:11%!important;text-align:left!important;white-space:normal!important}
  .report-table-asset th:nth-child(3),.report-table-asset td:nth-child(3){width:15%!important;text-align:left!important;white-space:normal!important}
  .report-table-asset th:nth-child(4),.report-table-asset td:nth-child(4){width:11%!important;text-align:left!important;white-space:normal!important}
  .report-table-asset th:nth-child(5),.report-table-asset td:nth-child(5){width:15%!important;text-align:left!important;white-space:normal!important}
  .report-table-asset th:nth-child(6),.report-table-asset td:nth-child(6){width:8%!important;text-align:center!important;white-space:nowrap!important}
  .report-table-asset th:nth-child(7),.report-table-asset td:nth-child(7){width:14%!important;text-align:center!important;white-space:normal!important}
  .report-table-asset th:nth-child(8),.report-table-asset td:nth-child(8){width:15%!important;text-align:center!important;white-space:normal!important}
}

/* V17: el Informe de Criticidad no muestra pie repetido de equipo/período. */
.report-criticality .report-footer, .technical-report .report-footer { display:none !important; }
