/* Layout y semáforos exclusivos de Proyección de Cierre. */
.tym-pc {
  --pc-surface: #f9fbff;
  --pc-tint: #eef4fc;
  --pc-border: #d1ddef;
  --pc-text: #152749;
  --pc-muted: #516481;
  --pc-blue: #1266de;
  --pc-signal: #168342;
  --pc-positive: #08763f;
  --pc-caution: #9b5205;
  --pc-negative: #bb2433;
  --pc-target: #138b54;
  --pc-alert: #ae650a;
  --pc-track: #dce5f2;
  --pc-shadow: 0 1px 2px #233c6312;
  color: var(--pc-text);
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  line-height: 1.36;
  font-variant-numeric: tabular-nums;
}
body[data-t="dark"] .tym-pc {
  --pc-surface: #101c2b;
  --pc-tint: #17263b;
  --pc-border: #2b3d54;
  --pc-text: #e9f0fb;
  --pc-muted: #afbed2;
  --pc-blue: #64a8ff;
  --pc-signal: #29bd73;
  --pc-positive: #5cde92;
  --pc-caution: #ffc471;
  --pc-negative: #ff8188;
  --pc-target: #4ed989;
  --pc-alert: #f8b34c;
  --pc-track: #263951;
  --pc-shadow: 0 1px 2px #040a1450;
}
.tym-pc .good, .tym-pc .pc-good { --pc-tone: var(--pc-positive); }
.tym-pc .warn, .tym-pc .pc-warn { --pc-tone: var(--pc-caution); }
.tym-pc .bad, .tym-pc .pc-bad { --pc-tone: var(--pc-negative); }
.tym-pc .neutral, .tym-pc .pc-neutral { --pc-tone: var(--pc-muted); }
.tym-pc .actual { --pc-tone: var(--pc-blue); }
.tym-pc .recovery { --pc-tone: var(--pc-signal); }
.tym-pc .projected { --pc-tone: var(--pc-negative); }
.tym-pc .pc-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.tym-pc .pc-kpi {
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb,var(--pc-tone) 20%,var(--pc-border));
  background: linear-gradient(146deg,color-mix(in srgb,var(--pc-tone) 9%,var(--pc-surface)),var(--pc-surface) 85%);
  box-shadow: var(--pc-shadow);
}
.tym-pc .pc-kpi-label { display: flex; align-items: center; gap: 7px; }
.tym-pc .pc-kpi-label h3 { color: var(--pc-text); font-size: 12px; line-height: 1.24; margin: 0; font-weight: 750; }
.tym-pc .pc-icon {
  display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%;
  color: white; background: var(--pc-tone);
}
.tym-pc .pc-icon svg { width: 16px; height: 16px; }
body[data-t="dark"] .tym-pc .pc-icon { color: #081524; }
.tym-pc .pc-kpi.pc-neutral .pc-icon { background: #2359ae; color: white; }
.tym-pc .pc-kpi-number { color: var(--pc-tone); font-size: clamp(21px,2vw,33px); line-height: 1.08; font-weight: 800; overflow-wrap: anywhere; }
.tym-pc .pc-neutral .pc-kpi-number { color: var(--pc-text); }
.tym-pc .pc-kpi-sub { color: var(--pc-muted); font-size: 11px; padding-bottom: 1px; }
.tym-pc .pc-kpi-bar { height: 5px; background: var(--pc-track); border-radius: 8px; margin-top: auto; overflow: hidden; }
.tym-pc .pc-kpi-bar i { display: block; height: 100%; border-radius: inherit; background: var(--pc-tone); }
.tym-pc .pc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.tym-pc .pc-analysis { grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); }
.tym-pc .panel.pc-panel {
  min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--pc-border); border-radius: 12px;
  color: var(--pc-text); background: var(--pc-surface); box-shadow: var(--pc-shadow);
}
.tym-pc .pc-panel .pc-ph {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  min-height: 25px; min-width: 0; margin: 0 0 5px; padding: 0; color: var(--pc-text);
}
.tym-pc .pc-panel-title { display: inline-flex; align-items: center; gap: 7px; flex: 1 1 auto; font-size: 14px; font-weight: 800; }
.tym-pc .pc-panel-title i { flex: 0 0 8px; height: 8px; background: var(--pc-blue); border-radius: 50%; }
.tym-pc .pc-sub, .tym-pc .pc-foot { color: var(--pc-muted); font-size: 11px; }
.tym-pc .pc-sub { margin: 0 0 7px; }
.tym-pc .pc-foot { margin: 7px 0 0; }
.tym-pc .pc-choice { display: inline-flex; gap: 1px; border: 1px solid var(--pc-border); background: var(--pc-tint); border-radius: 8px; padding: 2px; }
.tym-pc :is(button,select,input):focus-visible, .tym-pc [tabindex="0"]:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
.tym-pc .pc-choice button {
  cursor: pointer; color: var(--pc-text); background: transparent; border: 0; font: inherit; font-size: 11px;
  font-weight: 700; padding: 3px 8px; min-height: 22px; border-radius: 6px;
}
.tym-pc .pc-choice button[aria-pressed="true"] { background: #1264d7; color: #fff; }
.tym-pc .pc-sim-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11px; margin-top: 6px; }
.tym-pc .pc-sim-controls label { margin-right: auto; font-weight: 700; }
.tym-pc .pc-sim-controls output { color: var(--pc-blue); font-weight: 800; background: var(--pc-tint); border-radius: 6px; padding: 3px 8px; }
.tym-pc .pc-reset, .tym-pc .pc-field select, .tym-pc .pc-search {
  color: var(--pc-text); background: var(--pc-surface); border: 1px solid var(--pc-border);
  border-radius: 7px; padding: 4px 7px; min-height: 26px; font: inherit; font-size: 11px;
}
.tym-pc .pc-reset { cursor: pointer; }
.tym-pc .pc-reset:disabled { cursor: default; opacity: .55; }
.tym-pc .pc-slider { appearance: none; display: block; width: calc(100% - 4px); margin: 7px 2px 0; height: 18px; border: 0; padding: 0; background: transparent; accent-color: var(--pc-blue); }
.tym-pc .pc-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 5px; background: linear-gradient(to right,var(--pc-blue) var(--pc-boost),var(--pc-track) var(--pc-boost)); }
.tym-pc .pc-slider::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -4.5px; border-radius: 50%; background: var(--pc-blue); border: 1px solid var(--pc-surface); }
.tym-pc .pc-slider::-moz-range-track { height: 6px; border-radius: 5px; background: var(--pc-track); }
.tym-pc .pc-slider::-moz-range-progress { height: 6px; border-radius: 5px; background: var(--pc-blue); }
.tym-pc .pc-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--pc-blue); border: 1px solid var(--pc-surface); }
.tym-pc .pc-range-labels { display: flex; justify-content: space-between; color: var(--pc-muted); font-size: 10px; margin-bottom: 5px; }
.tym-pc .pc-sim-row { padding: 6px 0 5px; border-top: 1px solid var(--pc-border); }
.tym-pc .pc-sim-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.tym-pc .pc-sim-caption strong { color: var(--pc-positive); font-size: 16px; }
.tym-pc .pc-sim-bar { display: flex; height: 10px; margin: 4px 0; border-radius: 4px; overflow: hidden; background: var(--pc-track); }
.tym-pc .pc-sim-bar i:first-child { background: #176edf; }
.tym-pc .pc-sim-bar i:last-child { background: var(--pc-signal); }
.tym-pc .pc-sim-values { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; font-size: 11px; color: var(--pc-muted); }
.tym-pc .pc-gain { color: var(--pc-positive); }
.tym-pc .pc-legend { display: flex; flex-wrap: wrap; gap: 3px 13px; font-size: 10px; color: var(--pc-muted); margin-top: 6px; }
.tym-pc .pc-legend span { display: inline-flex; align-items: center; gap: 4px; }
.tym-pc .pc-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pc-tone); }
.tym-pc .pc-key.alert, .tym-pc .pc-key.target { width: 12px; height: 0; border-top: 2px dashed var(--pc-alert); border-radius: 0; }
.tym-pc .pc-key.target { border-color: var(--pc-target); }
.tym-pc .pc-waterfall { display: grid; grid-template-columns: auto repeat(4,minmax(0,1fr)); padding-top: 16px; margin: 0 1px; }
.tym-pc .pc-composition { --pc-chart-height: clamp(150px,14vw,209px); }
.tym-pc .pc-w-axis { display: flex; justify-content: space-between; flex-direction: column; height: var(--pc-chart-height); padding-right: 6px; color: var(--pc-muted); font-size: 10px; transform: translateY(-.65em); text-align: right; }
.tym-pc .pc-w-axis span:last-child { transform: translateY(1em); }
.tym-pc .pc-w-col { min-width: 0; text-align: center; font-size: 11px; font-weight: 700; }
.tym-pc .pc-w-col > span { display: block; margin: 6px 3px 0; }
.tym-pc .pc-w-plot {
  position: relative; height: var(--pc-chart-height); border-bottom: 1px solid var(--pc-border);
  background: repeating-linear-gradient(to bottom,var(--pc-border) 0 1px,transparent 1px 25%);
}
.tym-pc .pc-w-col:nth-child(2) .pc-w-plot { border-left: 1px solid var(--pc-border); }
.tym-pc .pc-w-bar {
  position: absolute; left: 15%; right: 15%; bottom: var(--bottom); height: var(--height); min-height: 1px;
  border-radius: 4px 4px 0 0; background: linear-gradient(180deg,color-mix(in srgb,var(--pc-tone) 77%,white),var(--pc-tone));
}
.tym-pc .pc-w-bar.neutral { --pc-tone: #7892b2; }
.tym-pc .pc-w-value { position: absolute; top: var(--top); left: 0; right: 0; transform: translateY(calc(-100% - 2px)); font-size: clamp(10px,1vw,13px); white-space: nowrap; }
.tym-pc .pc-w-link { position: absolute; left: 85%; width: 30%; border-top: 1px dashed var(--pc-muted); z-index: 1; }
.tym-pc .pc-chart-controls, .tym-pc .pc-detail-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 11px; margin-bottom: 6px; }
.tym-pc .pc-search { min-width: 0; width: min(195px,100%); }
.tym-pc .pc-search::placeholder { color: var(--pc-muted); }
.tym-pc .pc-field { display: flex; align-items: center; gap: 5px; color: var(--pc-muted); }
.tym-pc .pc-field select { max-width: 100%; }
.tym-pc .pc-scroll { overflow: auto; scrollbar-width: thin; max-width: 100%; overscroll-behavior: contain; }
.tym-pc .pc-dumbbell { max-height: 235px; min-height: 0; padding: 0 2px; }
.tym-pc .pc-dumbbell-axis, .tym-pc .pc-dumbbell-row {
  display: grid; grid-template-columns: minmax(120px,1fr) minmax(125px,1.55fr) 88px;
  align-items: center; gap: 10px; width: 100%; min-width: 375px; padding: 5px 6px;
}
.tym-pc .pc-dumbbell-axis { position: sticky; top: 0; z-index: 2; background: var(--pc-tint); color: var(--pc-muted); font-size: 10px; font-weight: 700; }
.tym-pc .pc-dumbbell-axis > div { position: relative; height: 14px; }
.tym-pc .pc-dumbbell-axis > span:last-child { text-align: right; }
.tym-pc .pc-axis-mark { position: absolute; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.tym-pc .pc-axis-mark:nth-child(5) { visibility: hidden; }
.tym-pc .pc-dumbbell-row { text-align: left; color: var(--pc-text); font: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--pc-border); cursor: pointer; }
.tym-pc .pc-dumbbell-row:hover, .tym-pc .pc-dumbbell-row:focus-visible { background: var(--pc-tint); }
.tym-pc .pc-dumbbell-name { display: block; font-size: 10.5px; font-weight: 750; overflow-wrap: anywhere; }
.tym-pc .pc-dumbbell-name small { display: block; color: var(--pc-muted); font-size: 9.5px; font-weight: 500; }
.tym-pc .pc-track {
  display: block; position: relative; height: 25px; border-right: 1px dashed var(--pc-target);
  background: repeating-linear-gradient(90deg,var(--pc-border) 0 1px,transparent 1px 25%);
}
.tym-pc .pc-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 90%; border-left: 1px dashed var(--pc-alert); }
.tym-pc .pc-connector { position: absolute; top: 50%; transform: translateY(-50%); height: 2px; background: var(--pc-muted); opacity: .7; }
.tym-pc .pc-point { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--pc-tone); border: 1px solid var(--pc-surface); }
.tym-pc .pc-point.actual { width: 13px; height: 13px; }
.tym-pc .pc-dumbbell-values { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; text-align: right; font-size: 10px; white-space: nowrap; }
.tym-pc .pc-dumbbell-values span { color: var(--pc-blue); }
.tym-pc .pc-dumbbell-values b { color: var(--pc-tone); }
.tym-pc .pc-matrix-scroll { max-height: 268px; }
.tym-pc :is(.pc-matrix,.pc-detail-table) { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; min-width: 0; font-size: 11px; }
.tym-pc .pc-matrix { min-width: 585px; table-layout: auto; }
.tym-pc .pc-matrix th, .tym-pc .pc-matrix td, .tym-pc .pc-detail-table th, .tym-pc .pc-detail-table td {
  border: 0; border-bottom: 1px solid var(--pc-border); padding: 5px 6px; color: var(--pc-text);
  text-align: right; vertical-align: middle; background: var(--pc-surface);
}
.tym-pc .pc-matrix td { white-space: nowrap; }
html body[data-t] #pantalla .tym-pc :is(.pc-matrix,.pc-detail-table) thead th {
  position: sticky; top: 0; z-index: 2; background: var(--pc-tint) !important; color: var(--pc-muted) !important;
  font-size: 10px; line-height: 1.15; font-weight: 750; text-transform: none; text-align: right; letter-spacing: 0;
  white-space: normal; padding: 6px;
}
.tym-pc .pc-matrix th:first-child { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 116px; width: 25%; white-space: normal; }
html body[data-t] #pantalla .tym-pc :is(.pc-matrix,.pc-detail-table) thead th:first-child { z-index: 3; text-align: left; }
.tym-pc tr.pc-center > * { background: var(--pc-tint); font-weight: 750; }
.tym-pc tr.pc-child th { padding-left: 16px; }
.tym-pc .pc-pill { display: inline-block; border-radius: 5px; background: color-mix(in srgb,var(--pc-tone) 13%,transparent); color: var(--pc-tone); padding: 2px 5px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.tym-pc .pc-op-link, .tym-pc .pc-detail-table .v152-opl-link {
  cursor: pointer; padding: 1px 0; border: 0; color: var(--pc-text);
  font: inherit; font-weight: 750; text-align: left; background: none; overflow-wrap: anywhere;
}
.tym-pc .pc-op-link:hover, .tym-pc .pc-detail-table .v152-opl-link:hover { color: var(--pc-blue); text-decoration: underline; }
.tym-pc .pc-matrix .pc-op-link, .tym-pc .pc-detail-table td:nth-child(2) .v152-opl-link { white-space: normal; max-width: 100%; }
.tym-pc .pc-operating, .tym-pc .pc-priorities { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.tym-pc .pc-operating > div { display: grid; gap: 2px; padding: 5px 8px; border-radius: 7px; background: var(--pc-tint); font-size: 11px; }
.tym-pc .pc-operating span { color: var(--pc-muted); }
.tym-pc .pc-priorities { grid-template-columns: repeat(auto-fit,minmax(min(100%, max(260px, 31%)),1fr)); list-style: none; padding: 0; margin: 6px 0 0; }
.tym-pc .pc-priorities li { border: 1px solid var(--pc-border); border-radius: 8px; padding: 6px 8px; font-size: 11px; min-width: 0; }
.tym-pc .pc-priority-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tym-pc .pc-priority-title small, .tym-pc .pc-impact, .tym-pc .pc-priorities p { color: var(--pc-muted); }
.tym-pc .pc-impact { display: flex; gap: 3px 8px; flex-wrap: wrap; margin: 3px 0; }
.tym-pc .pc-impact b { color: var(--pc-negative); }
.tym-pc .pc-priorities p { margin: 0; }
.tym-pc .pc-detail-controls > span { margin-left: auto; color: var(--pc-muted); }
.tym-pc .pc-detail { position: relative; }
.tym-pc .pc-detail:has(> .tym-table-export-row) .pc-ph { padding-right: 144px; }
.tym-pc .pc-detail > .tym-table-export-row { position: absolute; top: 8px; right: 12px; width: auto; }
.tym-pc .pc-detail .v150-proy-table { max-height: 340px; margin: 0; content-visibility: visible; }
.tym-pc .pc-detail .pc-detail-table { min-width: 1260px; }
.tym-pc .pc-detail-table th { min-width: 57px; }
.tym-pc .pc-detail-table :is(td,th):first-child { left: 0; width: 32px; min-width: 32px; max-width: 32px; box-sizing: border-box; }
.tym-pc .pc-detail-table :is(td,th):nth-child(2) { left: 32px; text-align: left; width: 180px; min-width: 180px; }
.tym-pc .pc-detail-table td:nth-child(3), html body[data-t] #pantalla .tym-pc .pc-detail-table th:nth-child(3) { text-align: left; }
.tym-pc .pc-detail-table tbody tr:nth-child(even) td { background: var(--pc-tint); }
.tym-pc .pc-detail-table tbody tr[hidden] { display: none; }
.tym-pc .pc-detail-table tbody td:nth-child(-n+2) { position: sticky; z-index: 1; }
html body[data-t] #pantalla .tym-pc .pc-detail-table thead th:nth-child(2) { z-index: 3; text-align: left; }
.tym-pc .pc-detail-table td.pc-good, .tym-pc .pc-detail-table td.pc-bad { color: var(--pc-tone); }
.tym-pc .pc-detail .v148-critical-note { font-size: 10px; padding: 3px 5px; margin: 0 0 4px; color: var(--pc-muted); }
.tym-pc .pc-empty { margin: 0; padding: 12px 8px; color: var(--pc-muted); font-size: 12px; }
.pc-view-head .ico2 > svg { width: 60%; height: 60%; display: block; }
body.tym-v153-ready .pc-view-head .ico2::before { display: none; }
@media (max-width: 1050px) {
  .tym-pc .pc-analysis { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 880px) {
  .tym-pc .pc-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tym-pc .pc-grid { grid-template-columns: minmax(0,1fr); }
  .tym-pc .pc-operating { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body[data-t] #pantalla .pc-view-head > .right {
    display: inline-flex !important; align-items: center; font-size: 11px;
    margin: 0 auto 0 0; padding: 4px 8px;
  }
}
@media (max-width: 540px) {
  .tym-pc .pc-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tym-pc .pc-kpi { padding: 8px; }
  .tym-pc .pc-panel-title { flex-basis: 100%; font-size: 13px; }
  .tym-pc .pc-priorities { grid-template-columns: minmax(0,1fr); }
  .tym-pc .pc-dumbbell-axis, .tym-pc .pc-dumbbell-row {
    grid-template-columns: minmax(92px,1fr) minmax(102px,1.15fr) 71px;
    gap: 5px; min-width: 285px;
  }
  .tym-pc .pc-dumbbell-values { font-size: 9px; }
  .tym-pc .pc-detail-table :is(td,th):nth-child(2) { width: 114px; min-width: 114px; }
}
