/* Inventario > Ropa de trabajo (mismo lenguaje que Vehículos) */
.rt-acciones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#rt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rt-kpi { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.rt-kpi span { font-size: 13px; color: var(--text-secondary); }
.rt-kpi strong { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
#rt-tabs { margin-bottom: 16px; flex-wrap: wrap; }
.rt-bloque { margin-bottom: 20px; }
.rt-bloque-tit { margin: 4px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.rt-matriz td, .rt-matriz th { white-space: nowrap; }
.rt-num { text-align: right; font-variant-numeric: tabular-nums; }
.rt-matriz th.rt-num { text-align: right; }
.rt-cero { color: var(--text-secondary); opacity: .55; }
.rt-total { font-weight: 600; }
.rt-matriz tfoot td { font-weight: 600; border-top: 1px solid var(--border); background: var(--bg-hover); }
.rt-personas { display: grid; gap: 10px; }
.rt-persona { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.rt-persona-info { min-width: 0; }
.rt-persona-info small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.rt-persona-info p { margin: 6px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.rt-persona-acc { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rt-pastilla { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--bg-hover); color: var(--text-secondary); font-size: 12px; font-weight: 500; white-space: nowrap; }
.rt-movs td { vertical-align: middle; }
.rt-quien { display: block; font-size: 12px; color: var(--text-secondary); }
.rt-anulado td { color: var(--text-secondary); }
.rt-anulado td:nth-child(3), .rt-anulado td:nth-child(4) { text-decoration: line-through; }
.rt-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rt-rejilla .form-group { margin: 0; min-width: 0; }
.rt-rejilla input, #rt-e-notas, #rt-n-notas, #rt-d-notas, #rt-p-nombre { width: 100%; }
.rt-tallas-emp { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); font-size: 13px; line-height: 1.5; }
.rt-lineas { display: grid; gap: 10px; margin-bottom: 12px; }
.rt-linea { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 80px 32px; gap: 10px; align-items: end; }
.rt-linea .form-group { margin: 0; min-width: 0; }
.rt-linea input { width: 100%; }
html body .rt-linea input.rt-l-cantidad { height: 40px !important; min-height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.rt-l-quitar { height: 38px; }
.rt-tallas-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.rt-talla-caja { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.rt-talla-caja span { font-weight: 600; }
.rt-talla-caja input { width: 100%; text-align: center; }
.rt-talla-caja small { font-size: 11.5px; color: var(--text-secondary); }
.rt-modal-ancho { max-width: 980px; }
.rt-fecha-corta { max-width: 220px; }
.rt-recuento input { width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.rt-recuento td, .rt-recuento th { padding-left: 6px; padding-right: 6px; }
.rt-quitar-prenda { margin-left: 6px; border: 0; background: none; color: var(--danger); font: inherit; font-size: 12px; cursor: pointer; }
.rt-seg { display: flex; gap: 2px; padding: 3px; margin-top: 12px; border-radius: 12px; background: var(--bg-hover); }
.rt-seg button { flex: 1 1 0; min-height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text-secondary); font: inherit; font-size: 13.5px; cursor: pointer; }
.rt-seg button.rt-seg-on { background: var(--bg-card); color: var(--text-primary); font-weight: 600; }
.rt-nueva-acc { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rt-pie-izq { margin-right: auto; }
.rt-ficha-tit { margin: 18px 0 8px; }
.rt-ficha-tallas { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 800px) {
  #rt-kpis { grid-template-columns: 1fr 1fr; }
  .rt-acciones { width: 100%; justify-content: stretch; }
  .rt-acciones .btn { flex: 1 1 auto; }
  .rt-persona { flex-direction: column; align-items: stretch; }
  .rt-persona-acc { justify-content: space-between; }
  .rt-rejilla { grid-template-columns: 1fr; }
  .rt-linea { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rt-linea .rt-l-uds { grid-column: 1; }
  .rt-l-quitar { grid-column: 2; justify-self: end; }
  .rt-seg { flex-direction: column; }
}
/* Actas de entrega y firma */
.rt-f-lineas { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid #e3e6ea; border-radius: 12px; overflow: hidden; }
.rt-f-lineas li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 14px; }
.rt-f-lineas li + li { border-top: 1px solid #eef0f2; }
.rt-f-lineas strong { font-variant-numeric: tabular-nums; }
.rt-me-aviso { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--warning-bg); color: var(--warning); font-size: 13.5px; font-weight: 500; }
.rt-me-acta .ps-actions { margin-top: 8px; }
.rt-me-tiene { margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); }
.rt-aviso { margin: 0 0 8px; font-size: 13px; color: var(--warning); }
.ps-dialog .ps-status:empty { display: none; }
#me-ropa .rt-me-acta { border-bottom: 0; }
#me-ropa .rt-me-acta .ps-actions { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.rt-me-tiene { padding: 0 2px; }
/* Peticiones de los trabajadores (REC-7, 12-nov-2026) */
.rt-pet { padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.rt-pet-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rt-pet-cab small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.rt-pet-lineas { display: grid; gap: 6px; margin-top: 10px; }
.rt-pet-linea { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 10px; border-radius: 10px; background: var(--bg-hover); font-size: 14px; }
.rt-pet-linea > span:first-child { flex: 1 1 200px; min-width: 0; }
.rt-pet-stock { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rt-pet-hay { background: #dcfce7; color: #166534; }
.rt-pet-falta { background: #ffedd5; color: #9a3412; }
.rt-pet-rechazar, .rt-me-cancelar { border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px 2px; min-height: 32px; }
.rt-me-sol-tit { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.rt-me-sol { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: 14px; }
.rt-me-sol small { display: block; font-size: 12px; color: var(--text-secondary); }
.rt-me-sol-acc { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ps-state.rt-sol-no { background: var(--bg-hover); color: var(--text-secondary); }
.rt-me-pedir { width: 100%; margin-top: 14px; }
.rt-pedir .ps-label { display: block; margin: 14px 0 8px; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--border, #e0e4eb); border-radius: 12px; background: var(--bg-card, #fff); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.rt-chip-talla { min-width: 56px; font-variant-numeric: tabular-nums; }
.rt-chip.rt-chip-on { border-color: #50773d; background: #eef5ea; color: #2f4d22; font-weight: 600; }
.rt-uds { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rt-uds > button:not(.rt-me-anadir) { width: 44px; height: 44px; border: 1px solid var(--border, #e0e4eb); border-radius: 12px; background: var(--bg-card, #fff); font-size: 20px; cursor: pointer; color: inherit; }
.rt-uds strong { min-width: 28px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.rt-me-anadir { min-height: 44px; padding: 0 14px; border: 1px solid #50773d; border-radius: 12px; background: #fff; color: #2f4d22; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-left: auto; }
.rt-pedir [data-lista] { margin-top: 14px; }
.rt-p-notas { width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: 1px solid var(--border, #e0e4eb); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; }
@media (max-width: 800px) { .rt-pet-cab { flex-direction: column; align-items: stretch; } .rt-me-anadir { margin-left: 0; width: 100%; } }
