/* Barra de peticiones */

/* ================================================================ barra de peticiones */
.requests-panel {
  position: sticky; top: 0; z-index: 25;
  width: 0; height: calc(100vh / var(--zoom, 1)); flex-shrink: 0; overflow: hidden;
  background: var(--surface); border-left: 1px solid var(--border);
  transition: width .22s ease;
  display: flex; flex-direction: column;
}
.shell.requests-open .requests-panel { width: 360px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; min-width: 360px; }
.rp-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.rp-head h2 .icon { color: var(--accent); }
.rp-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 360px; }
.requests-toggle .nav-badge { margin-left: 2px; }
.request-card {
  --c: var(--accent);
  display: grid; gap: 8px; padding: 14px;
  border-radius: var(--radius); border: 1px solid var(--border); border-top: 4px solid var(--c);
  background: var(--surface-2);
}
.request-card header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.request-kind { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--text-2); }
.request-kind .icon { width: 14px; height: 14px; color: var(--c); }
.request-card h4 { font-size: 15px; overflow-wrap: anywhere; }
.request-desc { font-size: 13px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.5em; overflow: hidden; }
.request-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.request-meta .icon { width: 14px; height: 14px; color: var(--c); }
.request-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.request-members li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.request-members li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-by { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding-top: 8px; border-top: 1px dashed var(--border); }
.request-actions { display: flex; justify-content: flex-end; gap: 8px; }
.request-reject { display: grid; gap: 8px; }
.request-reject div { display: flex; justify-content: flex-end; gap: 8px; }
.rp-done summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 2px; }
.rp-done ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.rp-done li { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12.5px; border-left: 3px solid var(--muted); }
.rp-done li.status-approved { border-left-color: var(--success); }
.rp-done li.status-rejected { border-left-color: var(--danger); }
.rp-done li span { color: var(--muted); }

/* peticiones propias (miembros) */
.my-requests { margin-top: 26px; }
.my-requests h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.my-requests h3 .icon { color: var(--accent); }
.request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.request-item { display: flex; align-items: stretch; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.request-main { flex: 1; min-width: 0; display: grid; }
.request-status { align-self: center; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.status-approved .request-status { background: color-mix(in srgb, #22c55e 15%, transparent); color: #15803d; }
.status-rejected .request-status { background: var(--danger-soft); color: var(--danger-text); }
.request-item .icon-btn { align-self: center; }

.members-change { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.members-change .add { color: var(--success); }
.members-change .del { color: var(--danger-text); }
