/* Jornales y horas: estilos acotados al dialogo .yp-dl-hub */
.yp-daily-labor-dialog.yp-dl-hub{width:min(1000px,calc(100% - 24px));padding:0;border:1px solid #d6e2f0;border-radius:16px;background:#fff;color:#0f2744;box-shadow:0 24px 60px rgba(15,39,68,.25)}
.yp-dl-hub>*{margin-left:20px;margin-right:20px}
.yp-dl-hub>header{margin:0;padding:16px 20px;background:#f4f8fd;border-bottom:1px solid #d6e2f0;align-items:center}
.yp-dl-hub>header h2{margin:0;font-size:1.35rem;color:#0f2744}
.yp-dl-hub>header button{min-height:40px;border:1px solid #bac9d7;border-radius:10px;background:#fff;color:#1d4f91;font-weight:700;padding:6px 16px}
.yp-dl-hub>p{color:#4a6384;font-size:.88rem;margin-top:10px;margin-bottom:0}
.yp-dl-hub>p[role=status]:empty{display:none}
.yp-dl-hub>p[role=status]{padding:8px 12px;border-radius:10px;background:#fdecee;margin-top:8px}
.yp-dl-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}
.yp-dl-kpi{border:1px solid #d6e2f0;border-radius:12px;padding:10px 12px;background:#eef5ff;display:grid;gap:2px;min-width:0}
.yp-dl-kpi:nth-child(2){background:#fff7e6}.yp-dl-kpi:nth-child(4){background:#fff1f1}.yp-dl-kpi:nth-child(5){background:#ecfaf1}
.yp-dl-kpi b{font-size:.78rem;color:#2c4b73}.yp-dl-kpi strong{font-size:1.45rem;line-height:1.1}.yp-dl-kpi small{color:#5d7596;font-size:.72rem}
.yp-dl-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px;border-bottom:2px solid #d6e2f0}
.yp-dl-tabs button{min-height:42px;border:1px solid #d6e2f0;border-bottom:0;border-radius:10px 10px 0 0;background:#f4f8fd;color:#1d4f91;font-weight:700;padding:6px 14px}
.yp-dl-tabs button.on{background:#0f2744;color:#fff;border-color:#0f2744}
.yp-dl-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin-top:12px}
.yp-dl-filters[hidden],.yp-dl-hub [hidden]{display:none!important}
.yp-dl-filters label{font-size:.8rem;font-weight:700;color:#2c4b73}
.yp-dl-filters button{min-height:44px;border:1px solid #bac9d7;border-radius:8px;background:#fff;color:#1d4f91;font-weight:700;padding:6px 14px}
.yp-dl-hub [data-dl-pane]{display:none}
.yp-dl-hub[data-tab=reg] [data-dl-pane=reg],.yp-dl-hub[data-tab=rates] [data-dl-pane=rates],.yp-dl-hub[data-tab=costs] [data-dl-pane=costs]{display:block}
.yp-dl-hub[data-tab=pend] [data-dl-pane=list],.yp-dl-hub[data-tab=hist] [data-dl-pane=list]{display:block}
.yp-dl-hub[data-tab=reg] [data-labor-list],.yp-dl-hub[data-tab=rates] [data-labor-list]{display:none}
.yp-dl-hub>details>summary{display:none}
.yp-dl-hub>details{border:0;margin-top:12px;padding-top:0}
.yp-dl-hub [data-labor-editor]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #d6e2f0;border-radius:12px;background:#f9fbff}
.yp-dl-hub [data-labor-editor]>p,.yp-dl-hub [data-labor-editor]>label:has(textarea),.yp-dl-hub [data-labor-editor]>button{grid-column:1/-1}
.yp-dl-hub [data-labor-editor]>button{justify-self:start}
.yp-dl-hub [data-labor-editor] button[type=submit]{background:#0f2744;color:#fff;border:0;border-radius:10px;font-weight:700;padding:8px 20px}
.yp-dl-hub [data-dl-cancel]{background:#fff;color:#1d4f91;border:1px solid #bac9d7;border-radius:10px;font-weight:700;padding:8px 20px}
.yp-dl-hub [data-labor-total]{font-weight:700;color:#0f2744;background:#eef5ff;border-radius:10px;padding:10px 12px;margin:0}
.yp-dl-hub input,.yp-dl-hub select,.yp-dl-hub textarea{border-radius:8px;border-color:#bac9d7}
.yp-dl-hub [data-labor-list]{display:grid;gap:10px;margin-top:12px}
.yp-dl-hub [data-labor-list]>article{border:1px solid #d6e2f0;border-radius:12px;padding:10px 14px;margin:0;background:#fff}
.yp-dl-hub [data-labor-batch]{border:1px solid #d6e2f0;border-radius:12px;padding:12px 14px;background:#f4f8fd}
.yp-dl-hub [data-labor-batch] button{margin:4px 6px 0 0;max-width:100%;white-space:normal}
.yp-dl-hub [data-labor-select-label]{display:flex;align-items:center;gap:8px}
.yp-dl-hub article h3{margin:4px 0 0;font-size:1rem}
.yp-dl-hub article p{margin:4px 0;color:#2c4b73;font-size:.9rem}
.yp-dl-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.yp-dl-chip{border-radius:999px;padding:3px 10px;font-size:.74rem;font-weight:700;background:#e5eefb;color:#1d4f91}
.yp-dl-chip[data-s=pending]{background:#fff0cc;color:#8a5b00}.yp-dl-chip[data-s=approved]{background:#d9f4e3;color:#146c38}
.yp-dl-chip[data-s=rejected],.yp-dl-chip[data-s=voided]{background:#fde1e4;color:#a61b29}.yp-dl-chip[data-s=pay]{background:#e3e8ff;color:#3340a0}
.yp-dl-menu-btn{margin-left:auto;min-width:44px;min-height:40px!important;border:1px solid #bac9d7;border-radius:10px;background:#fff;color:#0f2744;font-size:1.2rem;font-weight:700;line-height:1}
.yp-dl-menu{position:fixed;z-index:10;min-width:210px;padding:6px;border:1px solid #bac9d7;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(15,39,68,.22);display:grid;gap:2px}
.yp-dl-menu button{min-height:42px;text-align:left;border:0;border-radius:8px;background:#fff;color:#0f2744;font-weight:600;padding:8px 12px}
.yp-dl-menu button:hover,.yp-dl-menu button:focus-visible{background:#eef5ff}
.yp-dl-hub [data-labor-refresh]{margin-top:12px;border:1px solid #bac9d7;border-radius:10px;background:#fff;color:#1d4f91;font-weight:700;padding:6px 16px}
.yp-dl-hub [data-dl-empty]{padding:14px;text-align:center;color:#4a6384}
.yp-dl-hub>details:last-child{margin-bottom:20px}.yp-dl-hub>[data-dl-pane=list]:last-child{margin-bottom:20px}
.yp-dl-hub [data-dl-pane=reg]{margin-bottom:16px}
@media(max-width:820px){.yp-dl-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.yp-dl-filters{grid-template-columns:1fr 1fr}.yp-dl-filters label:first-child{grid-column:1/-1}}
@media(max-width:520px){.yp-dl-hub>*{margin-left:12px;margin-right:12px}.yp-dl-hub [data-labor-editor]{grid-template-columns:1fr}
.yp-dl-tabs{flex-wrap:nowrap;overflow-x:auto}.yp-dl-tabs button{white-space:nowrap}.yp-daily-labor-dialog.yp-dl-hub{width:calc(100% - 8px);max-height:96vh}}

.yp-dl-hub[data-personal-journals] .yp-dl-eyebrow{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;color:#235295;font-weight:800;margin-bottom:.25rem}
.yp-dl-hub[data-personal-journals] header h2{font-size:clamp(1.35rem,2.75vw,2rem);overflow-wrap:anywhere}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs{border:0;padding-bottom:.2rem}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs button{border:1px solid #d6e2f0;border-radius:9px}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs button.on{background:#0b3a82;color:white}
.yp-dl-hub[data-personal-journals] [data-labor-editor]{background:#fff}
.yp-dl-hub[data-personal-journals] .yp-dl-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));padding:.75rem;background:#f5f9ff;border:1px solid #d6e2f0;border-radius:12px}
.yp-dl-hub[data-personal-journals] .yp-dl-filters label{display:grid;gap:.2rem;min-width:0}
.yp-dl-hub[data-personal-journals] .yp-dl-filters input{width:100%;min-width:0}
.yp-dl-hub[data-personal-journals] .yp-dl-pager{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.5rem;margin-bottom:1rem}
.yp-dl-hub[data-personal-journals] [data-labor-list]>article{border-color:#cfdef2;box-shadow:0 1px 3px #0f244711}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs{flex-wrap:wrap;overflow:visible}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs button{min-width:0;white-space:normal}
.yp-dl-hub[data-personal-journals] .yp-dl-tabs button:is([data-dl-tab=pend],[data-dl-tab=hist]){flex:1 1 130px}
.yp-dl-hub[data-personal-journals] :is(.yp-dl-period,.yp-dl-metrics){margin:0;color:#2c4b73}
.yp-dl-hub[data-personal-journals] .yp-dl-period>div{display:grid;gap:.5rem;margin-top:.5rem}
.yp-dl-hub[data-personal-journals] .yp-dl-metrics{margin-top:.65rem}
.yp-dl-hub .yp-dl-row-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin:.65rem 0}
.yp-dl-hub .yp-dl-row-actions button{min-height:44px;margin:0}
.yp-dl-hub [data-labor-row-status]:empty{display:none}
.yp-dl-hub [data-labor-row-status]:not(:empty){padding:.5rem .7rem;border-radius:8px;background:#fff0cc}

.yp-daily-labor-dialog [data-labor-journal-money]>summary{font-weight:700;color:#1d4f91}
.yp-journal-money-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.55rem;margin:.25rem 0 .65rem;padding:.7rem;background:#f4f8fd;border:1px solid #d6e2f0;border-radius:10px}
.yp-journal-money-facts dt{font-size:.82rem;color:#2c4b73}
.yp-journal-money-facts dd{margin:0;color:#0f2744;font-weight:650}
.yp-daily-labor-dialog [data-journal-money] form{padding:.65rem;margin:.55rem 0;border:1px solid #d6e2f0;border-radius:10px}
.yp-daily-labor-dialog [data-money-purpose]{min-width:0;padding:.4rem .6rem;border:1px solid #bfd5ee;border-radius:8px}
.yp-daily-labor-dialog [data-money-purpose] legend{font-weight:700}
.yp-daily-labor-dialog [data-money-purpose] label{display:flex;align-items:center;gap:.45rem;min-height:44px}
.yp-daily-labor-dialog [data-money-purpose] input[type=radio]{width:1.25rem;min-width:1.25rem;min-height:1.25rem;margin:0;padding:0}
.yp-journal-money-event{margin:0 0 .65rem;padding:.55rem;border-left:3px solid #bfd5ee}
.yp-journal-money-event details{margin-top:.25rem}
.yp-daily-labor-dialog [data-journal-money-status]:empty,.yp-daily-labor-dialog [data-money-meaning]:empty{display:none}

.yp-dl-hub .yp-dl-review-summary{min-width:0;padding:12px;border:1px solid #cfdef2;border-radius:12px;background:#f4f8fd;overflow-wrap:anywhere}
.yp-dl-hub .yp-dl-review-summary h4{font-size:1rem;margin:0 0 .3rem;color:#0f2744}
.yp-dl-hub .yp-dl-review-summary small{display:block;margin-top:.45rem;color:#2c4b73}
.yp-dl-hub .yp-dl-review-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:.65rem}
.yp-dl-hub .yp-dl-review-actions button{min-height:44px;margin:0;white-space:normal}
.yp-dl-hub [data-labor-decision-status]:empty,.yp-dl-hub [data-labor-source-summary]:empty{display:none}
.yp-dl-hub [data-labor-decision-status]:not(:empty){padding:.5rem .7rem;border-radius:8px;background:#fff0cc}
.yp-dl-hub :is([data-labor-reject-panel],[data-labor-adjust-panel],[data-pw-confirmations]){display:grid;gap:8px;padding:.75rem;border:1px solid #d6e2f0;border-radius:10px}
.yp-dl-hub [data-pw-options]{min-width:0;overflow-wrap:anywhere}
.yp-dl-hub [data-pw-options] button{margin:.25rem .35rem .25rem 0;max-width:100%;white-space:normal}
@media(max-width:520px){.yp-dl-hub .yp-dl-review-actions button:first-child{flex-basis:100%}.yp-dl-hub .yp-dl-review-actions button:not(:first-child){flex:1 1 125px}}

.yp-support-review-dialog{background:#fff;color:#0f2744}
.yp-support-review-dialog header{align-items:center}
.yp-support-review-dialog [data-support-content]>article{display:grid;gap:.55rem}
.yp-support-review-dialog button{justify-self:start}
.yp-support-review-dialog [data-support-content] p{margin:.15rem 0}
.yp-support-review-dialog [data-support-form]{padding:.8rem;border:1px solid #d6e2f0;border-radius:10px;background:#f7fbff}
.yp-support-comparison,[data-support-quantities]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.65rem}
.yp-support-comparison section{padding:.65rem;border:1px solid #cddff3;background:#f4f8fd;border-radius:8px}
