/* Personal → Tarifas de trabajo: presentación visual. Alcance exclusivo: .yp-lc-hub y .yp-lc-menu */
.yp-lc-hub{--lc-navy:#0b3a82;--lc-blue:#1d5fd0;--lc-ink:#0f2447;--lc-muted:#5b6b86;--lc-line:#d9e3f2;color:var(--lc-ink)}
.yp-lc-hub *{box-sizing:border-box}
.yp-lc-hub button:focus-visible,.yp-lc-hub input:focus-visible,.yp-lc-hub select:focus-visible,.yp-lc-menu button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.yp-lc-header h3{margin:0;font-size:1.6rem;font-weight:800;color:var(--lc-navy)}
.yp-lc-header p{margin:.1rem 0 .8rem;font-size:.85rem;color:var(--lc-muted)}

.yp-lc-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin-bottom:.8rem}
.yp-lc-kpi{display:flex;flex-direction:column;gap:.1rem;padding:.7rem .75rem;border:1px solid var(--lc-line);border-radius:14px;background:#eaf3ff;min-width:0}
.yp-lc-kpi small{font-size:.74rem;font-weight:700}
.yp-lc-kpi strong{font-size:1.7rem;line-height:1.15;font-weight:800}
.yp-lc-kpi span{font-size:.7rem;color:var(--lc-muted)}
.yp-lc-kpi.red{background:#fff0f0}.yp-lc-kpi.amber{background:#fff6e5}.yp-lc-kpi.violet{background:#f1ecff}.yp-lc-kpi.green{background:#eaf9f0}.yp-lc-kpi.sky{background:#e8f6ff}
.yp-lc-kpi.red strong{color:#b42318}.yp-lc-kpi.amber strong{color:#9a5b00}
.yp-lc-note{margin:0 0 .8rem;font-size:.78rem;color:var(--lc-muted)}

.yp-lc-bar{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:.9rem}
.yp-lc-bar .erp-btn{min-height:2.6rem;border-radius:10px;font-weight:700}
.yp-lc-tabs{display:flex;flex-wrap:wrap;gap:.3rem;border-bottom:2px solid var(--lc-line);margin-bottom:.8rem}
.yp-lc-tabs button{padding:.55rem 1rem;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:700;color:var(--lc-muted);cursor:pointer;margin-bottom:-2px}
.yp-lc-tabs button[aria-selected="true"]{color:var(--lc-navy);border-bottom-color:var(--lc-blue)}

.yp-lc-filters{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:.5rem;align-items:end;margin-bottom:.8rem}
.yp-lc-filters label{display:flex;flex-direction:column;gap:.15rem;font-size:.72rem;font-weight:700;color:var(--lc-muted);min-width:0}
.yp-lc-filters input,.yp-lc-filters select{width:100%;min-height:2.5rem;padding:.4rem .6rem;border:1px solid var(--lc-line);border-radius:10px;background:#fff;font-size:.88rem;color:var(--lc-ink)}

.yp-lc-editor{margin:.4rem 0 .9rem;padding:.9rem;border:2px solid var(--lc-blue);border-radius:14px;background:#f7faff}
.yp-lc-editor .yp-labor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.yp-lc-editor label{display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;font-weight:700}
.yp-lc-editor input:not([type=checkbox]),.yp-lc-editor select{min-height:2.4rem;padding:.35rem .55rem;border:1px solid var(--lc-line);border-radius:8px;background:#fff;font-weight:400}

.yp-lc-list{display:grid;gap:.7rem}
.yp-lc-card{padding:.8rem .9rem;border:1px solid var(--lc-line);border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(15,36,71,.06);min-width:0}
.yp-lc-main{display:grid;grid-template-columns:minmax(0,1.6fr) auto repeat(4,minmax(0,1fr)) auto;gap:.7rem;align-items:center}
.yp-lc-title h4{margin:0;font-size:1.02rem;font-weight:800;color:var(--lc-navy);overflow-wrap:anywhere}
.yp-lc-title small{display:block;font-size:.72rem;color:var(--lc-muted);overflow-wrap:anywhere}
.yp-lc-fact{min-width:0}
.yp-lc-fact small{display:block;font-size:.66rem;color:var(--lc-muted)}
.yp-lc-fact b{display:block;font-size:.82rem;overflow-wrap:anywhere}
.yp-lc-chip{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.72rem;font-weight:700;background:#eef2f8;color:var(--lc-ink);white-space:nowrap}
.yp-lc-chip.ok{background:#d9f5e3;color:#14663a}.yp-lc-chip.off{background:#e8ebf1;color:#4b5870}
.yp-lc-chip.warn{background:#fff3cf;color:#8a5a00}.yp-lc-chip.bad{background:#ffe1e1;color:#a4161a}
.yp-lc-flags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.yp-lc-toggle{border:0;background:transparent;font-size:1.1rem;cursor:pointer;color:var(--lc-muted);min-width:2.2rem;min-height:2.2rem}
.yp-lc-detail{margin-top:.7rem;padding:.7rem;border-radius:10px;background:#f6f9ff;font-size:.82rem}
.yp-lc-detail[hidden]{display:none}
.yp-lc-detail p{margin:.3rem 0}
.yp-lc-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.6rem;margin-bottom:.4rem}
.yp-lc-strip small{display:block;font-size:.66rem;color:var(--lc-muted)}
.yp-lc-strip b{font-size:.86rem}
.yp-lc-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:.7rem}
.yp-lc-actions .erp-btn{min-height:2.4rem;border-radius:10px;font-weight:700}
.yp-lc-empty{padding:1.2rem;text-align:center;color:var(--lc-muted)}
.yp-lc-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin-top:.8rem;font-size:.82rem;color:var(--lc-muted)}
.yp-lc-pager{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.yp-lc-pager select{min-height:2.2rem;border:1px solid var(--lc-line);border-radius:8px;padding:.2rem .4rem}

.yp-lc-menu{position:fixed;z-index:2147483000;display:flex;flex-direction:column;min-width:15rem;max-width:calc(100vw - 16px);padding:.3rem;border:1px solid #d9e3f2;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(15,36,71,.22)}
.yp-lc-menu button{padding:.55rem .75rem;border:0;border-radius:8px;background:transparent;text-align:left;font-size:.88rem;font-weight:600;color:#0f2447;cursor:pointer}
.yp-lc-menu button:hover,.yp-lc-menu button:focus{background:#eaf3ff}

.yp-lc-hub .yp-lc-header{margin:.35rem 0 .85rem}
.yp-lc-hub .yp-lc-header>small{display:block;margin-bottom:.2rem;font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;color:#235295;font-weight:800}
.yp-lc-hub .yp-lc-header h3{font-size:clamp(1.55rem,3vw,2.15rem)}
.yp-lc-hub .yp-lc-tabs{border:0;gap:.45rem}
.yp-lc-hub .yp-lc-tabs button{background:#edf4fd;border:1px solid var(--lc-line);border-radius:9px;min-height:2.65rem}
.yp-lc-hub .yp-lc-tabs button[aria-selected=true]{background:var(--lc-navy);border-color:var(--lc-navy);color:white}
.yp-lc-hub .yp-lc-editor:where(:not([hidden])){padding:1.05rem;border:1px solid var(--lc-line);background:white}
.yp-lc-hub:has(.yp-lc-editor:not([hidden])) :is(.yp-lc-kpis,.yp-lc-note,.yp-lc-bar,.yp-lc-tabs,.yp-lc-filters,.yp-lc-list,.yp-lc-foot){display:none}
.yp-lc-hub .yp-lc-edit-head,.yp-lc-hub .yp-lc-edit-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem;margin-bottom:.65rem}
.yp-lc-hub .yp-lc-edit-actions{justify-content:flex-start;margin-top:.85rem}
.yp-lc-hub .yp-lc-edit-head h4{font-weight:800;color:var(--lc-navy)}

@media (max-width:1100px){
  .yp-lc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .yp-lc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yp-lc-filters .yp-lc-search{grid-column:1/-1}
  .yp-lc-main{grid-template-columns:repeat(4,minmax(0,1fr))}
  .yp-lc-main .yp-lc-title{grid-column:span 2}
  .yp-lc-main .yp-lc-toggle{justify-self:end}
  .yp-lc-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:820px){
  .yp-lc-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yp-lc-main .yp-lc-title{grid-column:1/-1}
  .yp-lc-main .yp-lc-toggle{grid-column:2}
  .yp-lc-editor .yp-labor-fields{grid-template-columns:1fr}
}
@media (max-width:520px){
  .yp-lc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yp-lc-filters{grid-template-columns:1fr}
  .yp-lc-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yp-lc-bar .erp-btn{flex:1 1 100%}
  .yp-lc-actions .erp-btn{flex:1 1 calc(50% - .5rem)}
  .yp-lc-actions .yp-lc-dots{flex:0 0 auto}
}
