@layer legado{.hc-label-row { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.hc-label-row label, .hc-label-row .fr-label { margin: 0; }
.hc-label-row .tip-btn.hc-tip-btn { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; margin: -12px -12px -12px -8px; font-size: 1rem; }
.hc-label-row .tip-btn.hc-tip-btn:focus-visible { outline: 2px solid #0071e3; outline-offset: -8px; border-radius: 50%; }
.hc-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 0 12px; }
.wh-jline .hu-jornada-alterar { border: 1px solid #1d4ed8; background: transparent; color: #1d4ed8; border-radius: 8px; padding: 4px 12px; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.wh-jline .hu-jornada-alterar:hover, .wh-jline .hu-jornada-alterar:focus-visible { background: #1d4ed8; color: #fff; }
body.dark-mode .wh-jline .hu-jornada-alterar { border-color: #93c5fd; color: #93c5fd; }
body.dark-mode .wh-jline .hu-jornada-alterar:hover, body.dark-mode .wh-jline .hu-jornada-alterar:focus-visible { background: #93c5fd; color: #0f172a; }
.hc-pair .form-group { min-width: 0; }
.hc-add { display: inline-flex; align-items: center; width: auto; max-width: 100%; align-self: flex-start; background: none; border: 0; padding: 0; margin: 0; min-height: 44px; color: #0071e3; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: left; }
.hc-add:hover { text-decoration: underline; }
.hc-add:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.hc-add[disabled] { color: #6c757d; cursor: default; text-decoration: none; }
.hc-help { font-size: .88rem; color: #495057; margin: 0 0 8px; }
.hc-check { display: flex; align-items: center; gap: 8px;  min-height: 44px; font-size: .95rem; }


.wh-group { border: 0; padding: 0; min-width: 0; }
.wh-group > legend { padding: 0; }
.wh-group > .form-group:last-child, .wh-group > .hc-check:last-child { margin-bottom: 0; }
.wh-dows { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-dow { min-width: 52px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--border-color, #d2d2d7); border-radius: 10px; background: var(--content-bg, #fff); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.wh-dow.is-on { border-color: var(--primary-color, #0071e3); background: rgba(0, 113, 227, .1); color: #0b4f9c; }
.wh-dow:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.wh-diff { margin-top: var(--sp-2); display: grid; gap: var(--sp-4); }
.wh-diff .wh-clock { margin-bottom: 0; }
.fr-tool .form-group.wh-clock input.wh-t-in { width: 7em; max-width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.wh-grid { display: grid; gap: 0; }
.wh-days { display: grid; gap: 0; }
.wh-row { display: grid; grid-template-columns: minmax(4.6em, .9fr) minmax(8.4em, 1.3fr) repeat(4, minmax(3.9em, .85fr)) minmax(4.8em, 1fr); gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.wh-head { padding: 0 0 6px; font-size: .82rem; font-weight: 600; color: #495057; align-items: end; }
.wh-same { padding: 8px 0 10px; }
.wh-same .wh-c-day { grid-column: 1 / 3; }
.wh-same-title { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.3; }
#wh-same-done { margin: 6px 0 0; }
#wh-same-done:empty { display: none; }
.wh-c-day { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.wh-c-st { grid-column: 2; grid-row: 1; min-width: 0; }
.wh-k-0 { grid-column: 3; grid-row: 1; }
.wh-k-1 { grid-column: 4; grid-row: 1; }
.wh-k-2 { grid-column: 5; grid-row: 1; }
.wh-k-3 { grid-column: 4; grid-row: 2; }
.wh-k-4 { grid-column: 5; grid-row: 2; }
.wh-k-z { grid-column: 6; grid-row: 1; }
.wh-c-tot { grid-column: 7; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wh-d-date { font-weight: 600; }
.wh-day-info { font-size: .82rem; color: #495057; }
.wh-day-info:empty { display: none; }
.wh-row.is-off .wh-d-date { color: #495057; font-weight: 400; }
.wh-t { position: relative; min-width: 0; }
.wh-t-lab { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wh-k-3 .wh-t-lab, .wh-k-4 .wh-t-lab { position: static; width: auto; height: auto; margin: 0 0 2px; overflow: visible; clip: auto; white-space: normal; display: block; font-size: .8rem; }
.fr-tool .form-group .wh-t input.wh-t-in { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.fr-tool .form-group .wh-c-st select { min-height: 44px; padding: 8px 2px 8px 8px; font-size: .92rem; }
.wh-row.is-rest .wh-t, .wh-row.is-rest .wh-add-pair { display: none; }
.wh-t .field-error { position: absolute; left: 0; top: 100%; z-index: 3; width: max-content; max-width: min(18em, calc(100vw - 64px)); margin: 4px 0 0; padding: 4px 8px; border: 1px solid #f1b5b0; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); font-size: .85rem; }
body.dark-mode .wh-t .field-error { background: #1c1c1e; border-color: #7f1d1d; }
.wh-tot-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wh-tot { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wh-c-sub { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: .82rem; color: #495057; }
.wh-c-sub:not(:has(> :not([hidden]):not(:empty))) { display: none; }
.wh-eff:empty { display: none; }
.wh-c-sub .hc-add { min-height: 28px; font-size: .82rem; white-space: nowrap; }
@media (max-width: 768px) {
    .wh-head { display: none; }
    .wh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 10px 12px; margin: 0 0 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--content-bg, #fff); }
    .wh-same { border-style: dashed; }
    .wh-c-day { grid-column: 1; grid-row: 1; }
    .wh-c-st { grid-column: 2; grid-row: 1; }
    .wh-same .wh-c-day { grid-column: 1 / -1; }
    .wh-k-0 { grid-column: 1; grid-row: 2; }
    .wh-k-1 { grid-column: 2; grid-row: 2; }
    .wh-k-2 { grid-column: 1; grid-row: 3; }
    .wh-k-z { grid-column: 2; grid-row: 3; }
    .wh-k-3 { grid-column: 1; grid-row: 4; }
    .wh-k-4 { grid-column: 2; grid-row: 4; }
    .wh-c-tot { grid-column: 1 / -1; grid-row: 5; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
    .wh-row.is-rest .wh-c-tot { grid-row: 2; }
    .wh-c-sub { grid-row: 6; }
    .wh-row.is-rest .wh-c-sub { grid-row: 3; }
    .wh-same .wh-c-sub { grid-row: 5; }
    .wh-t-lab { position: static; width: auto; height: auto; margin: 0 0 2px; overflow: visible; clip: auto; white-space: normal; display: block; font-size: .8rem; }
    .wh-st-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .wh-tot-lab { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .85rem; color: #495057; }
    .wh-t .field-error { position: static; width: auto; max-width: none; box-shadow: none; }
    body.dark-mode .wh-row { background: #1c1c1e; border-color: #3a3a3c; }
}
.wh-wide { margin-top: var(--sp-5); }
.wh-wide > .form-group { margin-bottom: var(--sp-5); }
#wh-more > summary { list-style: none; cursor: pointer; min-height: 44px;  align-items: center; }
.wh-jline { margin: 4px 0 0; }
.fr-modo-on #wh-more > summary { display: none; }
.wh-fills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#wh-shift { margin-bottom: 8px; }
.wh-view {   margin: 0 0 8px; }
#wh-tool[data-modo="basica"] ~ * .wh-view, .wh-view[hidden] { display: none; }
.wh-chart .acc-pos { fill: #e8730c; } .wh-chart .acc-neg { fill: #94a3b8; } .wh-chart .zero { stroke: #64748b; stroke-width: 1; }
body.dark-mode .wh-chart .acc-pos { fill: #f5a05a; } body.dark-mode .wh-chart .acc-neg { fill: #64748b; }
#wh-more > summary::-webkit-details-marker { display: none; }
.wh-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.wh-chip { min-height: 40px; padding: 6px 12px; border: 1px solid var(--border-color, #d2d2d7); border-radius: 999px; background: var(--content-bg, #fff); color: inherit; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.wh-chip:hover { border-color: var(--primary-color, #0071e3); }
.wh-chip:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.wh-opt { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
.wh-short { max-width: 12em; }
.wh-money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 0 16px; }
.wh-band-extra { align-self: stretch; width: 100%; max-width: 640px; margin: 18px 0 0; text-align: left; }




.wh-chart { overflow-x: auto; }
.wh-chart svg { display: block; max-width: none; height: auto; }
.wh-chart .b { fill: #0071e3; }
.wh-chart .b-x { fill: #c27803; }
.wh-chart .b-u { fill: none; stroke: #0071e3; stroke-width: 1.5; stroke-dasharray: 3 2; }
.wh-chart .j { stroke: #1f2937; stroke-width: 2; }
.wh-chart .lbl { font-size: 10px; fill: #4b5563; }
.wh-chart .flag { fill: #b3261e; }
.wh-chart .bar { cursor: pointer; }
.wh-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .85rem; color: #4b5563; }
.wh-leg li { display: inline-flex; align-items: center; gap: 6px; }
.wh-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.wh-sw--b { background: #0071e3; } .wh-sw--x { background: #c27803; } .wh-sw--u { border: 1.5px dashed #0071e3; }
.wh-sw--j { height: 2px; background: #1f2937; } .wh-sw--pos { background: #e8730c; } .wh-sw--neg { background: #94a3b8; }
body.dark-mode .wh-leg { color: #cbd5e0; } body.dark-mode .wh-sw--j { background: #e5e7eb; }
.wh-chart rect[data-fr-tip]:focus-visible { outline: 2px solid #0071e3; }
.wh-chart .bar:focus-visible { outline: 2px solid #0071e3; }
@media (prefers-reduced-motion: no-preference) { .wh-chart .grow { transform-box: fill-box; transform-origin: bottom; animation: wh-grow .5s ease-out both; animation-delay: calc(var(--i, 0) * 25ms); } }
@keyframes wh-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.wh-table tr.is-hit { background: rgba(0, 113, 227, .08); }
body.dark-mode .wh-chip{ background: #1c1c1e; border-color: #3a3a3c; }


body.dark-mode .wh-chart .j { stroke: #e5e7eb; }
body.dark-mode .wh-chart .lbl { fill: #cbd5e0; }
.wh-restore, .wh-hol-error { margin: 0 0 var(--sp-4); font-size: .92rem; }
.wh-hol-error { color: #b3261e; }
.wh-table-wrap { overflow-x: auto; }
.wh-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.wh-table th, .wh-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-color, #e5e7eb); text-align: right; vertical-align: top; }
.wh-table th:first-child, .wh-table td:first-child { text-align: left; }
.wh-table tr.is-out td { color: #6c757d; }
.wh-table .wh-flag { display: block; font-size: .82rem; color: #8a4b00; font-weight: 600; }
.wh-table { min-width: 560px; } .wh-table .wh-flag { min-width: 9em; text-align: right; }
.wh-alerts { margin: 0; padding-left: 1.2em; }
.wh-alerts li { margin: 0 0 6px; }

.hc-editorial .table-data { width: 100%; }
body.dark-mode .hc-help, body.dark-mode .wh-day-info, body.dark-mode .wh-head, body.dark-mode .wh-tot-lab, body.dark-mode .wh-c-sub { color: #cbd5e0; }
body.dark-mode .wh-dow.is-on { color: #9cc7ff; background: rgba(10, 132, 255, .16); border-color: #0a84ff; }
body.dark-mode .wh-dow { background: #1c1c1e; border-color: #3a3a3c; color: #e8e8e8; }
body.dark-mode .wh-table .wh-flag { color: #ffb86b; }

@media (max-width: 520px) {
    .hc-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .wh-table th, .wh-table td { padding: 6px; }
}
#wh-chart-wrap, #wh-details > div + div { border-top: 1px solid #e3e8ef; padding-top: 16px; margin-top: 16px; }
body.dark-mode #wh-chart-wrap, body.dark-mode #wh-details > div + div { border-top-color: #374151; }
#wh-result .wh-table th:first-child, #wh-result .wh-table td:first-child { padding-left: 14px; }
#wh-result .wh-table th:last-child, #wh-result .wh-table td:last-child { padding-right: 14px; }
@media (max-width: 600px) { #wh-result .wh-table { font-size: 12.5px; min-width: 0; } #wh-result .wh-table th, #wh-result .wh-table td { padding-left: 5px; padding-right: 5px; white-space: normal; } #wh-result .wh-table th:first-child, #wh-result .wh-table td:first-child { padding-left: 12px; } #wh-result .wh-table th:last-child, #wh-result .wh-table td:last-child { padding-right: 12px; } }
#wh-cards, #wh-cards > .frc { width: 100%; }
#wh-result #wh-chart-wrap { display: none; }
#wh-cards .frr-seg.r3-bar--g { background: #c53030; }
#wh-cards .frb-legend .r3-bar--g { fill: #c53030; }
body.dark-mode #wh-cards .frr-seg.r3-bar--g { background: #f87171; }
body.dark-mode #wh-cards .frb-legend .r3-bar--g { fill: #f87171; }
}
