/* ── Planificación — estilos compartidos entre PlanActivas, PlanLiberadas y PlanNueva ── */

/* Search bar */
.plan-search-wrap { position: relative; display: flex; align-items: center; }
.plan-search-icon { position: absolute; left: 11px; color: #AEAEB2; font-size: 0.875rem; pointer-events: none; }
.plan-search-input {
    width: 100%; height: 38px; padding: 0 34px; font-size: 0.875rem;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
    border: 1px solid #E5E5EA; border-radius: 12px; color: #1D1D1F; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-search-input:focus { border-color: #007AFF; box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
.plan-search-clear { position: absolute; right: 10px; background: none; border: none; color: #AEAEB2; cursor: pointer; padding: 0; font-size: 0.9rem; line-height: 1; }
.plan-count-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; font-size: 0.8rem; font-weight: 600; background: rgba(0,122,255,0.08); color: #007AFF; border-radius: 15px; white-space: nowrap; }

/* Lista */
.plan-list { display: flex; flex-direction: column; gap: 8px; }

/* Fila */
.plan-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; transition: box-shadow 0.15s; }
.plan-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.plan-row--lac { background: rgba(224,242,241,0.6); border-color: #B2DFDB; }
.plan-row--lac:hover { background: rgba(224,242,241,0.9); }
.plan-row--pre { background: rgba(232,240,254,0.6); border-color: #C5D8FB; }
.plan-row--pre:hover { background: rgba(232,240,254,0.9); }
.plan-row--lib { background: rgba(245,245,247,0.8); border-color: #E5E5EA; }
.plan-row--lib:hover { background: rgba(235,235,240,0.9); }

/* Avatar */
.plan-row__avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-row--lac .plan-row__avatar { background: rgba(0,137,123,0.14); color: #00897B; }
.plan-row--pre .plan-row__avatar { background: rgba(66,133,244,0.13); color: #4285F4; }

/* Bloque principal */
.plan-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plan-row__name { font-size: 0.9375rem; font-weight: 600; color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-row__sub { font-size: 0.8rem; color: #6E6E73; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan-row__sep { color: #D1D1D6; }
.plan-tag--self { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(0,137,123,0.12); color: #00695C; }

/* Detalles */
.plan-row__details { display: flex; gap: 20px; flex-shrink: 0; }
.plan-detail-item { display: flex; flex-direction: column; gap: 2px; min-width: 80px; }
.plan-detail-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #AEAEB2; font-weight: 500; }
.plan-detail-value { font-size: 0.875rem; color: #3C3C43; }
.plan-detail-value--bold { font-weight: 600; color: #1D1D1F; }

/* Acciones */
.plan-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.plan-action-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; font-size: 0.8125rem; font-weight: 500; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.1s; white-space: nowrap; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.plan-action-btn:active { transform: scale(0.97); }
.plan-action-btn--view { background: #00897B; color: #fff; border-color: rgba(0,105,92,0.4); box-shadow: 0 2px 8px rgba(0,137,123,0.28); }
.plan-action-btn--view:hover { background: #00796B; box-shadow: 0 4px 14px rgba(0,137,123,0.38); transform: translateY(-1px); }
.plan-action-btn--release { background: rgba(120,120,128,0.12); color: #3C3C43; border-color: rgba(120,120,128,0.2); }
.plan-action-btn--release:hover { background: rgba(255,159,10,0.12); color: #7a4400; border-color: rgba(255,159,10,0.35); }
.plan-action-btn--reactivar { background: rgba(255,149,0,0.1); color: #7a4400; border-color: rgba(255,149,0,0.3); }
.plan-action-btn--reactivar:hover { background: rgba(255,149,0,0.2); border-color: rgba(255,149,0,0.5); }

/* Paginación */
.plan-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #E5E5EA; }
.plan-pag-info { font-size: 0.75rem; color: #6E6E73; white-space: nowrap; margin-right: 4px; }
.plan-pag-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; font-size: 0.8125rem; background: #fff; border: 1px solid #E5E5EA; border-radius: 8px; color: #3C3C43; cursor: pointer; transition: background 0.15s, border-color 0.15s; user-select: none; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.plan-pag-btn:hover:not(:disabled) { background: #F2F2F7; border-color: #D1D1D6; }
.plan-pag-btn--active { background: #00897B !important; border-color: #00897B !important; color: #fff !important; font-weight: 600; box-shadow: 0 2px 6px rgba(0,137,123,0.3); }
.plan-pag-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.plan-pag-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 30px; font-size: 0.8125rem; color: #AEAEB2; user-select: none; }

/* Empty */
.plan-empty { text-align: center; padding: 60px 20px; color: #AEAEB2; }
.plan-empty i { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.plan-empty p { font-size: 0.9rem; margin: 0; }

/* Hijos históricos */
.hijo-hist-wrap { background: rgba(0,122,255,0.04); border: 1px dashed rgba(0,122,255,0.25); border-radius: 10px; padding: 10px 12px; }
.hijo-hist-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6E6E73; font-weight: 600; margin-bottom: 8px; }
.hijo-hist-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hijo-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; font-size: 0.8rem; font-weight: 500; border-radius: 15px; border: 1px solid #D1D1D6; background: #fff; color: #3C3C43; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.hijo-chip:hover { background: #F2F2F7; border-color: #AEAEB2; }
.hijo-chip--on { background: rgba(0,137,123,0.1); border-color: #00897B; color: #00695C; font-weight: 600; }
.hijo-chip__cert { font-size: 0.65rem; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: rgba(0,137,123,0.15); color: #00695C; margin-left: 2px; }
