/* ───────── Material-Requests Admin-Tab ───────── */
.mr-tab { padding: 8px 0; }
.mr-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.mr-filter-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #4a5562;
}
.mr-filter-btn:hover { background: rgba(0,0,0,0.04); }
.mr-filter-btn.active {
  background: var(--theme-primary, #0d2840);
  color: #fff;
  border-color: var(--theme-primary, #0d2840);
}
.mr-list { display: flex; flex-direction: column; gap: 8px; }
.mr-loading, .mr-empty { padding: 30px; text-align: center; color: #6b7785; font-size: 13px; }
.mr-error { padding: 8px 12px; background: #fde8e8; color: #c0392b; border-radius: 4px; font-size: 13px; }

.mr-row {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mr-row-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mr-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mr-status-requested { background: #fff4d6; color: #8a6d00; }
.mr-status-ho-approved { background: #d6efff; color: #014c8a; }
.mr-status-ho-rejected, .mr-status-declined { background: #ffe2e2; color: #8a0000; }
.mr-status-accepted { background: #d8f5d6; color: #155724; }
.mr-status-cancelled { background: #eee; color: #555; }
.mr-status-completed { background: #c8e6c9; color: #155724; }

.mr-cat { font-size: 12px; color: #4a5562; font-weight: 600; }
.mr-urgency { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #ffe9b8; color: #8a5a00; }

.mr-row-main { font-size: 14px; color: #1c2530; }
.mr-desc { font-weight: 500; white-space: pre-wrap; }
.mr-qty { font-size: 12px; color: #6b7785; margin-top: 2px; }
.mr-row-meta { display: flex; justify-content: space-between; font-size: 12px; color: #6b7785; }
.mr-date { font-variant-numeric: tabular-nums; }
.mr-reason { padding: 6px 8px; background: #f4f5f7; border-radius: 4px; font-size: 12px; color: #4a5562; }

.mr-row-actions { display: flex; gap: 6px; justify-content: flex-end; padding-top: 4px; border-top: 1px solid rgba(0,0,0,0.06); }
.mr-btn {
  border: 1px solid rgba(0,0,0,0.12);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  color: #1c2530;
  font-weight: 500;
}
.mr-btn:hover { background: rgba(0,0,0,0.04); }
.mr-btn-primary { background: var(--theme-primary, #0d2840); border-color: transparent; color: #fff; }
.mr-btn-primary:hover { opacity: 0.9; }
.mr-btn-danger { background: #c0392b; border-color: transparent; color: #fff; }
.mr-btn-danger:hover { opacity: 0.9; }
.mr-btn-secondary { background: #fff; border-color: rgba(0,0,0,0.18); }

/* ───────── Modal: Neue Anfrage ───────── */
.mr-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9700;
  display: flex; align-items: center; justify-content: center;
}
.mr-modal {
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 12px;
}
.mr-modal h3 { margin: 0; font-size: 17px; color: #1c2530; }
.mr-modal-sub { font-size: 13px; color: #6b7785; }
.mr-field { display: flex; flex-direction: column; gap: 4px; }
.mr-field label { font-size: 12px; font-weight: 600; color: #4a5562; }
.mr-field .opt { font-weight: 400; color: #95a0ad; }
.mr-field input, .mr-field select, .mr-field textarea {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
}
.mr-field textarea { resize: vertical; min-height: 60px; }
.mr-field-row { display: flex; gap: 12px; }
.mr-field-row .mr-field { flex: 1; }
.mr-modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.mr-modal .mr-error { display: none; }

/* Request-Button im Transfer-Panel-Match */
.tr-match-request {
  margin-top: 6px;
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.18);
  color: var(--theme-primary, #0d2840);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all .15s ease;
}
.tr-match-request:hover {
  background: var(--theme-primary, #0d2840);
  color: #fff;
  border-color: var(--theme-primary, #0d2840);
}

/* Request-Button im Transfer-Panel-Match */
.tr-match-request {
  margin-top: 6px;
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.18);
  color: var(--theme-primary, #0d2840);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all .15s ease;
}
.tr-match-request:hover {
  background: var(--theme-primary, #0d2840);
  color: #fff;
  border-color: var(--theme-primary, #0d2840);
}
