/* FES-Ladung — Plugin-Styles. Wird nur auf der Intern-Page (Page-ID 793) geladen. */

.fes-charge-tab .muted { color: #999; }
.fes-charge-tab .small { font-size: 0.85em; }

.fes-charge-tab .subtitle {
  font-size: 1.38rem;
  color: #555;
  font-weight: 500;
  margin: 0 0 16px 0;
}

/* ---- Status-Karte ---- */
.fes-status-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.fes-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.fes-status-label {
  font-weight: 500;
  color: #555;
}
.fes-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fes-state-inaktiv { background: #eee; color: #666; }
.fes-state-aktiv   { background: #d4edda; color: #155724; }
.fes-state-geplant { background: #fff3cd; color: #856404; }
.fes-state-error   { background: #f8d7da; color: #721c24; }

.fes-status-detail {
  margin: 8px 0 12px 0;
  font-size: 0.95em;
}
.fes-status-detail strong { color: #333; }

.fes-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85em;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.fes-meta-hint {
  margin-top: 4px;
  font-style: italic;
  font-size: 0.8em;
}

.fes-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ---- Buttons ---- */
.fes-charge-tab .btn {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.fes-charge-tab .btn-primary {
  background: #2271b1;
  color: white;
  border-color: #2271b1;
}
.fes-charge-tab .btn-primary:hover { background: #135e96; border-color: #135e96; }
.fes-charge-tab .btn-secondary {
  background: #fff;
  color: #2271b1;
  border-color: #2271b1;
}
.fes-charge-tab .btn-secondary:hover { background: #f0f6fc; }
.fes-charge-tab .btn-danger {
  background: #d63638;
  color: white;
  border-color: #d63638;
}
.fes-charge-tab .btn-danger:hover { background: #b32d2e; border-color: #b32d2e; }
.fes-charge-tab .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Audit ---- */
.fes-audit {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.fes-audit summary {
  cursor: pointer;
  color: #666;
  font-size: 0.9em;
  user-select: none;
}
.fes-audit-list {
  margin: 12px 0 0 0;
  padding-left: 16px;
  list-style: none;
  font-size: 0.85em;
  color: #555;
}
.fes-audit-list li {
  padding: 4px 0;
  border-bottom: 1px dotted #eee;
}
.fes-audit-list .audit-ts {
  color: #999;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  margin-right: 8px;
}
.fes-audit-list .audit-type {
  display: inline-block;
  background: #eef;
  color: #335;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  margin-right: 6px;
}

/* ---- Modal ---- */
.fes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.fes-modal-overlay[hidden] { display: none !important; }
.fes-modal {
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.fes-modal h3 { margin: 0 0 16px 0; }

.fes-modal .form-row { margin-bottom: 14px; }
.fes-modal .form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #444;
  font-size: 0.9em;
}
.fes-modal .form-row label .required { color: #d63638; }
.fes-modal .form-row input[type=text],
.fes-modal .form-row input[type=date],
.fes-modal .form-row input[type=datetime-local],
.fes-modal .form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: inherit;
}
.fes-modal .form-row textarea { min-height: 60px; resize: vertical; }
.fes-modal .form-row .radio-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.fes-modal .form-row .radio-row label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}

.fes-modal-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.9em;
}

.fes-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
