/* Indicadores y horario personal. */
.jd-view {
  --jd-ink: #173648;
  --jd-muted: #536b78;
  --jd-line: #dbe4e8;
  --jd-gutter: clamp(14px, 2vw, 25px);
  --jd-hour-width: 68px;
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--jd-ink);
  container: jornada / inline-size;
}
.jd-view h2, .jd-view h3, .jd-view h4, .jd-view p { margin: 0; }
.jd-view h2 { font-size: 1.13rem; line-height: 1.35; font-weight: 760; letter-spacing: -.035em; }
.jd-view :focus-visible { outline: 2px solid #0c7395; outline-offset: 2px; }
.jd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Un mismo panel para la lectura rápida del día y su distribución por objetivo. */
.jd-overview {
  --overview-pad: clamp(14px, 2vw, 25px);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--jd-line);
  border-radius: 5px;
}
.jd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0;
}
.jd-metric {
  display: grid;
  align-content: start;
  min-width: 0;
  row-gap: 3px;
  padding: 0 var(--overview-pad);
}
.jd-metric + .jd-metric { border-left: 1px solid #e0e7ea; }
.jd-metric-top { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.jd-metric-top > span:first-child { color: #496270; font-size: .8rem; font-weight: 680; line-height: 1.4; }
.jd-metric-icon { order: -1; display: inline-flex; color: #5c7885; }
.jd-metric-time .jd-metric-icon { color: #087568; }
.jd-metric strong {
  color: #1b3748;
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: -.042em;
  font-variant-numeric: tabular-nums;
}
.jd-metric-time strong { color: #086b60; }
.jd-metric small { color: var(--jd-muted); font-size: .77rem; line-height: 1.4; }

.jd-timeline {
  min-width: 0;
  padding: 12px var(--overview-pad) 13px;
  border-top: 1px solid #dde7e9;
  background: #f8fbfb;
  border-radius: 0 0 4px 4px;
}
.jd-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jd-line-heading h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 760;
  color: #294d5c;
  letter-spacing: -.012em;
}
.jd-line-heading h2 svg { color: #547482; width: 15px; height: 15px; }
.jd-line-heading > span { color: #60717b; font-size: .74rem; }
.jd-line-heading b { margin-left: 3px; color: #375461; font-weight: 700; font-variant-numeric: tabular-nums; }
.jd-scale { margin-top: 9px; }
.jd-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 2px;
  background: repeating-linear-gradient(-45deg, #e4eaed 0 2px, #f7f9fa 2px 6px);
  box-shadow: inset 0 0 0 1px #dce5e8;
}
.jd-block { position: absolute; height: 100%; border-right: 1px solid #fff; background: var(--event-accent); }
.jd-open-bar { background: repeating-linear-gradient(-45deg, transparent 0 4px, #ffffff75 4px 6px), var(--event-accent); }
.jd-ticks { position: relative; height: 20px; }
.jd-ticks span {
  position: absolute;
  top: 3px;
  color: #546d78;
  font-size: .7rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.jd-ticks .first { transform: none; }
.jd-ticks .last { transform: translateX(-100%); }
.jd-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 15px; margin-top: 1px; }
.jd-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; line-height: 1.4; color: #496371; }
.jd-legend i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--event-accent); }

@container jornada (max-width: 570px) {
  .jd-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-block: 0; }
  .jd-metric { padding: 10px 12px; }
  .jd-metric:nth-child(odd) { border-left: none; }
  .jd-metric:nth-child(n+3) { border-top: 1px solid #e0e7ea; }
  .jd-metric-top { gap: 5px; }
  .jd-metric-top > span:first-child { font-size: .76rem; }
  .jd-metric-icon svg { width: 14px; height: 14px; }
  .jd-legend { gap: 4px 10px; }
}

/* Los anchos y sangrías son comunes a las cabeceras, los tramos y la lista. */
.jd-activities {
  --jd-hour-width: 54px;
  --jd-data-columns: minmax(0,2.2fr) minmax(0,1.48fr) minmax(54px,.48fr) minmax(54px,.48fr) minmax(62px,.52fr) minmax(101px,.86fr) minmax(48px,.44fr);
  --jd-title-inset: 13px;
  --jd-cell-inset: 7px;
  --jd-band-height: 32px;
  min-width: 0;
  background: #fff;
  border: 1px solid #d7e2e6;
  border-radius: 5px;
}
.jd-activities-head {
  position: sticky; top: 0; z-index: 7; display: grid; grid-template-columns: minmax(0,1fr) auto;
  --jd-control-height: 2.375rem;
  align-items: center; gap: .25rem 1rem; min-height: 4.25rem;
  padding: .875rem var(--jd-gutter); border-bottom: 1px solid var(--jd-line);
  border-radius: 4px 4px 0 0; background: #fff;
}
.jd-activities-intro { min-width: 0; display: flex; align-items: center; gap: .625rem; }
.jd-activities-summary { min-width: 0; display: grid; gap: .625rem; }
.jd-activities-head:has(.jd-schedule-meta) { min-height: 5.5rem; }
.jd-activities-intro h2 { margin: 0; color: #153848; font-size: 1.125rem; font-weight: 760; line-height: 1.3; letter-spacing: -.035em; }
.jd-filter-count { flex: none; padding: .1rem .35rem; color: #46616d; background: #eff3f5; border-radius: 3px; font-size: .6875rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jd-activities[data-filtered] .jd-filter-count { color: #13594e; background: #e9f4f1; }
.jd-activities-head .jd-schedule-meta { margin: 0; font-size: .75rem; line-height: 1.45; color: #576a76; font-variant-numeric: tabular-nums; }
.jd-actions { display: flex; align-items: center; justify-content: flex-end; gap: .625rem; min-width: 0; }
.jd-activities-head + :is(.jd-calendar,.jd-list-view,.jd-week-host) { padding-block-start: .625rem; }
.jd-schedule-meta [data-jd-jump-plan] { padding: 0; border: 0; background: transparent; color: #27675e; font: inherit; text-decoration: underline; text-decoration-color: #a8c5bc; text-underline-offset: 2px; }
.jd-schedule-meta [data-jd-jump-plan]:hover { text-decoration-color: currentColor; }
.jd-view-switch { display: inline-flex; align-items: center; align-self: center; --jd-control-height: 2.375rem; border: 1px solid #cbd9dd; padding: 2px; border-radius: 4px; background: #f2f5f6; }
.jd-view-switch button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: calc(var(--jd-control-height) - 6px); padding: 4px 9px; color: #526571; background: transparent; border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: .81rem; font-weight: 650; line-height: 1.3; }
.jd-view-switch button:hover { color: #176457; background: #e8efec; }
.jd-view-switch button[aria-pressed=true] { color: #125e53; background: #fff; border-color: #b8cdca; box-shadow: 0 1px 2px #184d3d0e; }
.jd-view .jd-edit-day {
  width: var(--jd-control-height); height: var(--jd-control-height); flex: none; min-height: 0; padding: 0; display: grid; place-items: center;
  justify-self: end; border-radius: 4px;
}
.jd-filter-slot { position: relative; flex: none; }
.jd-filters { display: flex; align-items: center; gap: .5rem; }
.jd-filter-control { display: flex; align-items: center; min-width: 0; font-size: .75rem; color: #334e5b; }
.jd-filter-control > span, .jd-filter-toggle, .jd-filter-clear span, .jd-scale-icon { display: none; }
.jd-filter-control select:not([multiple]) {
  width: 8.45rem; min-width: 0; height: var(--jd-control-height); padding: .2rem 1.45rem .2rem .55rem;
  border: 1px solid #cad8dc; border-radius: 4px; background-color: #fff;
  background-position: right .4rem center; background-size: .75rem; font: inherit;
  color: #334e5b; text-overflow: ellipsis; cursor: pointer;
}
.jd-goal-filter select:not([multiple]) { width: clamp(9rem,15cqi,12rem); }
.jd-filter-control select[data-active], .jd-filter-toggle[data-active] { border-color: #78a69e; background-color: #eff8f5; color: #13594e; }
.jd-filter-toggle, .jd-filter-clear {
  align-items: center; justify-content: center; gap: .3rem; height: var(--jd-control-height); padding: 0 .5rem;
  border: 1px solid #cad8dc; border-radius: 4px; background: #fff; color: #365361; font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer;
}
.jd-filter-clear { display: inline-flex; width: 1.75rem; padding: 0; border-color: transparent; }
.jd-filter-toggle:hover, .jd-filter-clear:hover { background-color: #eff6f4; color: #13594e; }
.jd-filter-toggle b { font: inherit; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .jd-activities-head { --jd-control-height: 2.75rem; }
}

.jd-calendar, .jd-list-view { min-width: 0; padding: 0 var(--jd-gutter) 16px; }
.jd-hatch-key, .jd-scale-picker { display: inline-flex; align-items: center; gap: 6px; color: #586b75; font-size: .78rem; line-height: 1.4; }
.jd-hatch-key { margin-left: 8px; padding-left: 8px; border-left: 1px solid #cfdade; white-space: nowrap; vertical-align: baseline; }
.jd-hatch-key i { width: 15px; height: 10px; flex: none; border: 1px solid #c8d6dc; border-radius: 2px; background: repeating-linear-gradient(135deg,#fff 0 3px,#dce5e9 3px 5px); }
.jd-scale-picker select:not([multiple]) { height: var(--jd-control-height); padding: 3px 22px 3px 7px; background-color: #fff; background-position: right 4px center; background-size: 13px; border: 1px solid #d1dee1; border-radius: 4px; font: inherit; font-weight: 650; color: #3b5764; }
.jd-cal-scroll, .jd-list-scroll { position: relative; min-width: 0; background: #fff; border: 1px solid #d3dfe3; border-radius: 4px; }
@media (forced-colors: none) {
  html:has(.jd-activities), .jw-scroller, .jd-detail { scrollbar-width: thin; scrollbar-color: #59717e32 transparent; }
  :is(.jw-scroller,.jd-detail):focus-visible { scrollbar-color: #59717e70 transparent; }
}
.jd-cal-canvas, .jd-list-canvas { position: relative; width: 100%; min-width: 0; }
.jd-cal-head, .jd-list-head {
  position: sticky; top: var(--jd-toolbar-height, 0px); z-index: 5; display: grid; align-items: stretch; min-height: 33px;
  background: #f1f5f6; border-bottom: 1px solid #cedbe0; color: #465f6a;
  font-size: .77rem; font-weight: 720; line-height: 1.25;
}
.jd-cal-head, .jd-list-head { grid-template-columns: var(--jd-hour-width) var(--jd-data-columns); }
.jd-cal-head > span, .jd-list-head > span { display: flex; align-items: center; min-width: 0; padding: 6px var(--jd-cell-inset); overflow-wrap: anywhere; }
.jd-cal-head > :first-child, .jd-list-head > :first-child { justify-content: center; padding-inline: 2px; }
.jd-cal-head > :nth-child(2), .jd-list-head > :nth-child(2) { padding-left: var(--jd-title-inset); }
.jd-cal-head > :last-child, .jd-list-head > :last-child { justify-content: center; text-align: center; padding-inline: 1px; }
.jd-activities :is(.jd-plan-row,.jd-event-title,.jd-status-input,.jd-done input,.jw-event,.jw-plan-task) { scroll-margin-block-start: calc(var(--jd-toolbar-height, 0px) + var(--jd-column-height, 24px) + 3px); }

.jd-grid {
  position: relative; height: var(--grid-height); min-height: 0; isolation: isolate;
  background: repeating-linear-gradient(135deg,#fff 0 5px,#ecf1f3 5px 8px);
}
.jd-activities[data-filtered] .jd-grid { background: #f8fafb; }
.jd-grid::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--jd-hour-width); background: #fcfdfd; border-right: 1px solid #cbd8dd; pointer-events: none; }
.jd-grid-rule { position: absolute; left: 0; right: 0; height: 0; z-index: 0; border-top: 1px solid #cedbe0; pointer-events: none; }
.jd-grid-rule time {
  display: block; width: var(--jd-hour-width); padding: 2px 2px 0; text-align: center;
  color: #47616f; font-size: .77rem; font-weight: 660; line-height: 16px; font-variant-numeric: tabular-nums;
}
.jd-grid-last time { transform: translateY(-100%); padding-top: 0; padding-bottom: 2px; }
.jd-events { margin: 0; padding: 0; list-style: none; position: absolute; inset: 0 0 0 var(--jd-hour-width); min-width: 0; z-index: 1; }
.jd-slot-track { position: absolute; left: 0; right: 0; margin: 0; padding: 0; min-height: 0; overflow: clip; container: tramo / size; }
.jd-slot-track.jd-instant { overflow: visible; pointer-events: none; }
.jd-instant .jd-event { visibility: hidden; }
.jd-instant::after { content: ''; position: absolute; inset: 0 0 auto; border-top: 1px dashed var(--event-accent); }
.jd-slot-track:focus-within { z-index: 2; }
.jd-grid .jd-calendar-empty { position: absolute; left: calc(var(--jd-hour-width) + 12px); top: 11px; max-width: calc(100% - var(--jd-hour-width) - 18px); padding: 3px 7px; color: #4d6572; background: #fff; font-size: .83rem; line-height: 1.4; }

/* El ancho de estas siete columnas es el mismo en cabecera, tramo y medición. */
.jd-event, .jd-row-data {
  display: grid; grid-template-columns: var(--jd-data-columns); align-items: start; align-content: start;
  position: relative; min-width: 0; border-radius: 0;
  --jd-ribbon: var(--ribbon-color,#d7e8e7);
  --jd-body: color-mix(in srgb,var(--event-accent,#4f7a83) 7%,white);
  color: #294550; background-color: #f3f7f7;
  background-image: linear-gradient(to bottom,var(--jd-ribbon) 0 var(--jd-band-height),var(--jd-body) var(--jd-band-height));
  box-shadow: inset 3px 0 var(--event-accent,#3c7a70),inset 0 -1px #ffffffdb;
}
.jd-event { --jd-band-height: var(--jd-measured-band,18px); width: 100%; height: 100%; min-height: 0; overflow: hidden; margin: 0; grid-template-rows: var(--jd-band-height) auto; }
.jd-event-head { min-width: 0; }
.jd-event .jd-event-head { display: contents; }
.jd-event-title, .jd-probe-title {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 2px var(--jd-cell-inset) 2px var(--jd-title-inset);
  border: 0; border-radius: 0; background: transparent; text-align: left; text-transform: none;
  color: var(--ribbon-ink,#163c47); font-family: inherit; font-size: .6875rem; font-weight: 760; line-height: 1.25;
  white-space: pre-line; overflow-wrap: anywhere; letter-spacing: 0;
}
.jd-event-title { cursor: pointer; }
.jd-event-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.jd-event-title:focus-visible { outline-offset: -2px; }
.jd-event .jd-event-title, .jd-probe-title { grid-column: 1 / span 2; grid-row: 1; }
.jd-event-context, .jd-probe-context, .jd-probe-comment {
  min-width: 0; margin: 0 !important; padding: 2px var(--jd-cell-inset) 2px var(--jd-title-inset);
  color: #3e5964; font-size: .6875rem; font-weight: 500; line-height: 1.25;
  white-space: pre-line; overflow-wrap: anywhere;
}
.jd-event .jd-event-context, .jd-probe-context { grid-row: 2; grid-column: 1; }
.jd-event .jd-field-comments, .jd-probe-comment { grid-row: 2; grid-column: 2; }
.jd-probe-comment { padding-left: var(--jd-cell-inset); }
.jd-event-fields { display: contents; }
.jd-field { min-width: 0; padding: 2px var(--jd-cell-inset); color: #294550; font-size: .6875rem; line-height: 1.25; }
.jd-field-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.jd-field-value { display: block; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.jd-event .jd-field-start { grid-row: 1; grid-column: 3; }
.jd-event .jd-field-end { grid-row: 1; grid-column: 4; }
.jd-event .jd-field-duration { grid-row: 1; grid-column: 5; }
.jd-event .jd-field-status, .jd-probe-control { grid-row: 1; grid-column: 6; }
.jd-event .jd-field-done { grid-row: 1; grid-column: 7; }
.jd-event :is(.jd-field-start,.jd-field-end,.jd-field-duration,.jd-field-status,.jd-field-done) { align-self: center; }
.jd-field-start, .jd-field-end, .jd-field-duration { font-weight: 670; font-variant-numeric: tabular-nums; }
.jd-field-start .jd-field-value, .jd-field-end .jd-field-value, .jd-field-duration .jd-field-value { white-space: nowrap; }
.jd-field-status { padding: 0 3px; }
.jd-status-input:not([multiple]) {
  display: block; width: 100%; max-width: 113px; min-height: 0; height: 17px; margin: 0;
  border: 1px solid #adc3bb; border-radius: 0; padding: 0 15px 0 4px;
  background-color: #f4f8f4; background-position: right 2px center; background-size: 11px; color: #35584b;
  font: inherit; font-size: .6875rem; font-weight: 660; line-height: 1.05; cursor: pointer;
}
.jd-status-input:has(option:checked[value="Pendiente"]) { color: #455967; border-color: #bfcdd3; background-color: #f4f6f8; }
.jd-status-input:has(option:checked[value="En proceso"]) { color: #724911; border-color: #dabd8b; background-color: #fff3d9; }
.jd-status-input:has(option:checked[value="Culminado"]) { color: #235c3e; border-color: #a4c6af; background-color: #eef8ee; }
.jd-field-done { display: flex; justify-content: center; padding: 0 1px; }
.jd-done { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 18px; cursor:pointer; }
.jd-done input { width: 13px; height: 13px; margin: 0; accent-color: #147769; cursor: pointer; }
.jd-event-open { box-shadow: inset 3px 0 var(--event-accent,#147769),inset 0 -1px #649b8b; }
.jd-event-goal { display: none; position: absolute; bottom: 3px; left: var(--jd-title-inset); max-width: calc(100% - 22px); gap: 4px; align-items: center; color: #516b76; font-size: .6875rem; line-height: 1.25; }
.jd-event-goal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-slot-track[data-room-for-goal="true"] .jd-event-goal { display: flex; }
.jd-measure { position: absolute; top: 0; left: var(--jd-hour-width); right: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.jd-probe-card { display: grid; grid-template-columns: var(--jd-data-columns); grid-template-rows: auto auto; align-items: start; }
.jd-probe-control { display: block; min-height: 18px; }

@container tramo (max-height: 20px) {
  .jd-event { --jd-band-height: 100%; }
  .jd-event .jd-event-title { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .jd-event .jd-event-context, .jd-event .jd-field-comments, .jd-event .jd-event-goal { display: none; }
}
@container tramo (max-height: 13px) {
  .jd-event { display: block; background: var(--jd-ribbon); }
  .jd-event .jd-event-fields { display: none; }
  .jd-event .jd-event-title { position: absolute; inset: 0; height: 100%; padding: 0; font-size: 0; line-height: 0; }
}

.jd-readable-list, .jd-plan-list { margin: 0; padding: 0; list-style: none; }
.jd-readable-list, .jd-plan-list { display: grid; gap: 1px; background: #dbe4e8; }
.jd-plan-list { border-top: 1px solid #cbd7dc; }
.jd-list-row, .jd-plan-row { display: grid; grid-template-columns: var(--jd-hour-width) minmax(0,1fr); min-width: 0; }
.jd-row-hour { display: grid; align-content: start; justify-items: center; min-width: 0; padding: 4px 2px; text-align: center; border-right: 1px solid #cbd8dd; background: #f8fafb; color: #4b6370; font-size: .6875rem; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.jd-plan-row .jd-row-hour { background: #eff3f4; }
.jd-row-data { padding: 0 0 4px; min-height: 34px; }
.jd-row-data .jd-field { padding-block: 4px; }
.jd-row-data .jd-field-status, .jd-row-data .jd-field-done { padding-block: 2px; }
.jd-row-data .jd-done { min-height: 18px; }
.jd-list-row .jd-event-title, .jd-plan-row .jd-event-title { height: auto; min-height: var(--jd-band-height); padding-block: 7px; overflow: visible; white-space: normal; line-height: 18px; overflow-wrap: anywhere; }
.jd-list-row .jd-event-context, .jd-plan-row .jd-event-context { padding-top: 4px; }
.jd-list-view > p, .jd-list-empty { margin: 0; padding: 14px 10px; color: #546b75; font-size: .84rem; }
.jd-plan-row .jd-row-data { background: #f8fafb; box-shadow: inset 3px 0 var(--event-accent,#67818b); }
.jd-plan-row .jd-event-title { color: #244553; }

.jd-detail { width: min(565px,calc(100% - 20px)); max-width: 100%; max-height: 88dvh; margin: auto; padding: 20px; overflow: auto; border: 1px solid #c4d2d7; border-radius: 5px; background: #fff; color: #254553; box-shadow: 0 16px 55px #12374730; }
.jd-detail::backdrop { background: #12304865; }
.jd-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jd-detail-heading h2 { margin: 0; padding-left: 9px; border-left: 4px solid var(--event-accent,#147769); color: #193b4c; font-size: 1.25rem; line-height: 1.33; overflow-wrap: anywhere; }
.jd-detail-close.icon-btn { flex: none; width: 32px; height: 32px; border-radius: 4px; }
.jd-detail-sub, .jd-detail-context { margin: 9px 0 0; color: #475f6a; font-size: .87rem; line-height: 1.5; overflow-wrap: anywhere; }
.jd-detail .jd-event-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-block: 15px 1px; margin-top: 12px; border-top: 1px solid #dae4e7; }
.jd-detail .jd-field { display: flex; flex-direction: column; align-items: start; gap: 4px; padding: 0; font-size: .88rem; }
.jd-detail .jd-field-comments { grid-column: 1/-1; }
.jd-detail .jd-field-status { grid-column: span 2; }
.jd-detail .jd-field-label { position: static; width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; overflow: visible; color: #556b74; font-weight: 650; font-size: .78rem; }
.jd-detail .jd-field-value { white-space: normal; }
.jd-detail .jd-done { height: 26px; justify-content: start; }
.jd-detail :focus-visible { outline: 2px solid #13777b; outline-offset: 1px; }

@container jornada (max-width: 900px) {
  .jd-activities { --jd-hour-width: 46px; --jd-title-inset: 9px; --jd-cell-inset: 4px; --jd-data-columns: minmax(0,1.85fr) minmax(0,1.15fr) minmax(46px,.43fr) minmax(46px,.43fr) minmax(53px,.48fr) minmax(91px,.7fr) minmax(40px,.36fr); }
  .jd-status-input:not([multiple]) { padding-left: 4px; padding-right: 14px; }
}
@container jornada (max-width: 700px) {
  .jd-activities { --jd-hour-width: 43px; --jd-title-inset: 8px; --jd-cell-inset: 3px; --jd-mobile-columns: minmax(0,1fr) 87px 37px; }
  .jd-calendar { padding-inline: 9px; }
  .jd-cal-head { grid-template-columns: var(--jd-hour-width) var(--jd-mobile-columns); }
  .jd-cal-head > :is([data-col=comments],[data-col=start],[data-col=end],[data-col=duration]), .jd-calendar .jd-field-comments, .jd-calendar .jd-field-start, .jd-calendar .jd-field-end, .jd-calendar .jd-field-duration { display: none; }
  .jd-calendar .jd-row-data { grid-template-columns: var(--jd-mobile-columns); }
  .jd-calendar .jd-row-data .jd-event-head { display: contents; }
  .jd-calendar .jd-row-data .jd-event-title { grid-column: 1; grid-row: 1; }
  .jd-calendar .jd-row-data .jd-event-context { grid-column: 1/-1; grid-row: 2; }
  .jd-calendar .jd-row-data[data-has-comment=true] .jd-field-comments { display: block; grid-column: 1/-1; grid-row: 3; padding: 2px var(--jd-title-inset); }
  .jd-calendar .jd-row-data[data-has-comment=true] .jd-field-comments .jd-field-value::before { content: 'Comentarios '; font-weight: 680; }
  .jd-cal-head > :first-child, .jd-grid-rule time { font-size: .6875rem; }
  .jd-calendar .jd-event, .jd-probe-card { grid-template-columns: var(--jd-mobile-columns); }
  .jd-event .jd-event-title, .jd-probe-title { grid-row: 1; grid-column: 1; }
  .jd-calendar .jd-field-status, .jd-probe-control { grid-row: 1; grid-column: 2; }
  .jd-calendar .jd-field-done { grid-row: 1; grid-column: 3; }
  .jd-event .jd-event-context, .jd-probe-context { grid-row: 2; grid-column: 1 / -1; }
  .jd-calendar .jd-event[data-has-comment=true] .jd-field-comments, .jd-probe-comment { display: block; grid-row: 3; grid-column: 1 / -1; padding: 2px var(--jd-cell-inset) 2px var(--jd-title-inset); }
  .jd-calendar .jd-event[data-has-comment=true] .jd-field-comments .jd-field-label, .jd-probe-comment::before { position: static; width: auto; height: auto; margin: 0 3px 0 0; padding: 0; clip-path: none; overflow: visible; white-space: normal; font-weight: 680; }
  .jd-probe-comment::before { content: "Comentarios"; }
  .jd-calendar .jd-field-comments .jd-field-value { display: inline; }
  .jd-list-head { grid-template-columns: var(--jd-hour-width) minmax(0,1fr); }
  .jd-list-head > :nth-child(n+3) { display: none; }
  .jd-list-view .jd-row-data { grid-template-columns: minmax(0,1fr); gap: 2px; padding-bottom: 8px; }
  .jd-list-view .jd-event-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 6px; padding: 1px 8px; }
  .jd-list-view .jd-field { display: grid; justify-items: start; gap: 2px; padding: 0; }
  .jd-list-view .jd-field-label { position: static; width: auto; height: auto; margin: 0; clip-path: none; overflow: visible; color: #5b6d76; font-size: .6875rem; line-height: 1.25; font-weight: 620; }
  .jd-list-view .jd-field-comments { grid-column: 1/-1; }
  .jd-list-view .jd-field-status { grid-column: span 2; }
  .jd-list-view .jd-done { height: 24px; }
}
@container jornada (max-width: 65rem) {
  .jd-scale-label { display: none; }
  .jd-actions { gap: .5rem; }
}
@container jornada (max-width: 61rem) {
  .jd-actions .jd-scale-picker {
    position: relative; display: grid; place-items: center; width: var(--jd-control-height); height: var(--jd-control-height);
    flex: none; border: 1px solid #cad8dc; border-radius: 4px; color: #365361;
  }
  .jd-scale-icon { display: grid; }
  .jd-actions .jd-scale-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .jd-actions .jd-scale-picker:focus-within { outline: 2px solid #0c7395; outline-offset: 2px; }
}
@container jornada (max-width: 54rem) {
  .jd-filter-toggle { display: inline-flex; }
  .jd-filters {
    display: none; position: absolute; inset: calc(100% + .375rem) 0 auto auto;
    width: min(17rem, calc(100cqi - 5rem)); padding: .75rem; background: #fff;
    border: 1px solid #cbd9dd; border-radius: 4px; box-shadow: 0 5px 18px #17364824;
  }
  .jd-filter-toggle[aria-expanded=true] + .jd-filters { display: grid; gap: .6rem; }
  .jd-filter-control { display: grid; gap: .25rem; }
  .jd-filter-control > span, .jd-filter-clear span { display: inline; }
  .jd-filter-control select:not([multiple]) { width: 100%; }
  .jd-filter-clear { width: auto; justify-self: start; height: auto; padding: .2rem 0; color: #17695c; }
}
@container jornada (max-width: 38rem) {
  .jd-activities-head { grid-template-columns: minmax(0,1fr); row-gap: .375rem; padding-block: .625rem; }
  .jd-activities-summary { gap: .25rem; }
  .jd-activities-intro h2 { font-size: 1.04rem; }
}
@container jornada (max-width: 540px) {
  .jd-activities { --jd-gutter: 10px; }
  .jd-grid-rule time { padding-inline: 0; }
}
@container jornada (max-width: 28rem) {
  .jd-actions { gap: .3rem; }
  .jd-activities-head .jd-schedule-meta { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .jd-hatch-key .jd-hatch-caption { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .jd-filter-toggle > span { display: none; }
  .jd-filter-toggle { position: relative; width: 2.125rem; padding: 0; }
  .jd-filter-toggle[data-active] svg { margin-right: .25rem; }
  .jd-filter-toggle b { position: absolute; top: 0; right: .1rem; font-size: .625rem; }
}

@container jornada (max-width: 22rem) {
  .jd-actions { gap: .25rem; }
  .jd-actions .jd-scale-picker { width: 1.875rem; }
  .jd-view .jd-edit-day { width: 2.125rem; }
}

/* El horario, la lista y las actividades sin hora usan la misma letra compacta. */
.jd-activities { --jd-band-height: 21px; }
.jd-calendar, .jd-list-view, .jd-cal-head, .jd-list-head, .jd-grid-rule time,
.jd-calendar .jd-calendar-empty, .jd-list-view .jd-list-empty { font-size: .6875rem; }
.jd-list-row, .jd-plan-row { border-radius: 0; min-height: 34px; }
.jd-plan-list, .jd-readable-list { gap: 1px; }
.jd-list-row .jd-event-title, .jd-plan-row .jd-event-title { padding-block: 3px; line-height: 1.25; }
.jd-cal-head, .jd-list-head { min-height: 24px; }
.jd-cal-head > span, .jd-list-head > span { padding-block: 4px; }
.jd-grid-rule time { line-height: 13px; }
.jd-detail-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding-top:10px; }
.jd-detail-actions .btn { min-height:30px; padding-block:5px; }
/* Cortar en líneas enteras impide que el borde de un tramo muestre media letra. */
.jd-slot-track .jd-event-title, .jd-slot-track .jd-event-context > span,
.jd-slot-track .jd-field-comments .jd-field-value {
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden;
  line-height:1.25; overflow-wrap:anywhere;
}
.jd-slot-track .jd-event-title { -webkit-line-clamp:var(--jd-title-lines,1); }
.jd-slot-track .jd-event-context > span { -webkit-line-clamp:var(--jd-context-lines,1); }
.jd-slot-track .jd-field-comments .jd-field-value { -webkit-line-clamp:var(--jd-comment-lines,1); }
.jd-calendar .jd-slot-track[data-context-lines="0"] .jd-event-context,
.jd-calendar .jd-slot-track[data-comment-lines="0"] .jd-field-comments { display:none; }
@container jornada (max-width:700px) {
  .jd-calendar .jd-event[data-has-comment=true] .jd-field-comments .jd-field-label { display:none; }
  .jd-calendar .jd-event[data-has-comment=true] .jd-field-comments .jd-field-value::before { content:"Comentarios "; font-weight:680; }
}

.jd-space-label { display: inline-block; margin-right: 5px; padding: 1px 4px; border-radius: 3px; background: #f5ebda; color: #775120; font-size: .625rem; font-weight: 720; vertical-align: baseline; }
@media (max-width: 1120px) {
  .workbar .jd-view-switch button { padding-inline: 7px; }
}
@media (max-width: 650px) {
  .workbar .jd-view-switch button { min-height: 31px; padding-inline: 9px; }
}
