
/* =============================================================
   1) Page-Styling für Geräteseiten (View-Mode)
   ============================================================= */
.page-content .eq-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1f2937; max-width: 980px; }

.page-content .eq-status {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  background: linear-gradient(135deg, #f8fafc, #eef4fa);
  border: 1px solid #e1e8f0; border-radius: 12px;
  padding: 14px 18px; margin: 18px 0 26px;
}
.page-content .eq-status-pill {
  font-weight: 600; font-size: 13px; letter-spacing: 0.4px;
  padding: 6px 14px; border-radius: 999px;
  background: #e5e7eb; color: #374151;
}
.page-content .eq-status-pill.is-ok    { background: #d1fae5; color: #065f46; }
.page-content .eq-status-pill.is-warn  { background: #fef3c7; color: #92400e; }
.page-content .eq-status-pill.is-alert { background: #fee2e2; color: #991b1b; }
.page-content .eq-status-pill::before  { content: "● "; }

.page-content .eq-status-meta { display: flex; flex-direction: column; }
.page-content .eq-status-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; font-weight: 500;
}
.page-content .eq-status-value { font-size: 14px; color: #111827; font-weight: 500; }

.page-content .eq-h {
  font-size: 13px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: #206EA6 !important; margin: 30px 0 10px !important;
  padding-bottom: 6px; border-bottom: 2px solid #e1e8f0;
}

.page-content .eq-grid {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e1e8f0; border-radius: 10px; overflow: hidden;
  margin: 4px 0 8px;
}
.page-content .eq-grid th, .page-content .eq-grid td {
  padding: 11px 14px; vertical-align: top; border: none;
  border-bottom: 1px solid #eef0f3;
}
.page-content .eq-grid tr:last-child th, .page-content .eq-grid tr:last-child td { border-bottom: none; }
.page-content .eq-grid th {
  background: #f7fafd; font-weight: 500; color: #4b5563;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
  text-align: left; width: 19%;
}
.page-content .eq-grid td { font-size: 14px; color: #111827; width: 31%; }

.page-content .eq-hint { font-size: 12px; color: #6b7280; font-style: italic; margin: -4px 0 8px; }

.page-content .eq-log {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e1e8f0; border-radius: 10px; overflow: hidden;
  font-size: 13px;
}
.page-content .eq-log thead th {
  background: #206EA6; color: #fff; padding: 10px 12px;
  text-align: left; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.4px; border: none;
}
.page-content .eq-log tbody td { padding: 9px 12px; border-bottom: 1px solid #eef0f3; }
.page-content .eq-log tbody tr:last-child td { border-bottom: none; }
.page-content .eq-log-empty { text-align: center; color: #9ca3af; font-style: italic; padding: 18px !important; }

.page-content .eq-notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px;
}
.page-content .eq-note-card {
  background: #f8fafc; border: 1px solid #e1e8f0;
  border-radius: 10px; padding: 12px 14px;
}
.page-content .eq-note-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; font-weight: 500; margin-bottom: 4px;
}
.page-content .eq-note-value { font-size: 14px; color: #111827; white-space: pre-wrap; }

/* =============================================================
   2) Floating Buttons
   ============================================================= */
.mb-fab-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mb-fab {
  background: #206EA6; color: #fff; border: none; border-radius: 28px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mb-fab.secondary { background: #4b5563; }
.mb-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* =============================================================
   3) Modal (gemeinsam für Export und Quick-Edit)
   ============================================================= */
.mb-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 20px;
}
.mb-modal {
  background: #fff; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  color: #1f2937; position: relative; width: 100%; max-width: 720px;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.mb-modal.narrow { max-width: 520px; }
.mb-modal-head {
  padding: 20px 28px 14px; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
}
.mb-modal-head h3 { margin: 0; font-size: 18px; color: #206EA6; }
.mb-modal-body { padding: 18px 28px; overflow-y: auto; flex: 1; }
.mb-modal-foot {
  padding: 14px 28px; border-top: 1px solid #e5e7eb; background: #f9fafb;
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
}
.mb-close {
  background: transparent; color: #6b7280; font-size: 24px;
  border: none; cursor: pointer; padding: 0; width: 28px; height: 28px;
}
.mb-close:hover { color: #111827; }

.mb-btn {
  background: #206EA6; color: #fff; border: none; border-radius: 6px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.mb-btn:hover { background: #185683; }
.mb-btn.secondary { background: #6b7280; }
.mb-btn.danger    { background: #b91c1c; }
.mb-btn:disabled  { opacity: 0.5; cursor: not-allowed; }

.mb-progress {
  flex: 1; padding: 8px 12px; background: #f3f4f6; border-radius: 6px;
  font-size: 12px; font-family: ui-monospace, monospace;
}
.mb-progress.error   { background: #fee2e2; color: #991b1b; }
.mb-progress.success { background: #d1fae5; color: #065f46; }

/* Quick Edit form */
.qe-section {
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6;
}
.qe-section:last-child { border-bottom: none; }
.qe-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #206EA6; font-weight: 700; margin-bottom: 10px;
}
.qe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.qe-row { display: flex; flex-direction: column; gap: 4px; }
.qe-row.full { grid-column: 1 / -1; }
.qe-row label { font-size: 11px; color: #6b7280; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }
.qe-row input, .qe-row select, .qe-row textarea {
  border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px;
  font: inherit; font-size: 14px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qe-row input:focus, .qe-row select:focus, .qe-row textarea:focus {
  outline: none; border-color: #206EA6; box-shadow: 0 0 0 3px rgba(32,110,166,0.15);
}
.qe-row textarea { resize: vertical; min-height: 56px; }

.qe-log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qe-log-table th { text-align: left; font-size: 11px; color: #6b7280; padding: 4px 6px; font-weight: 500; text-transform: uppercase; }
.qe-log-table td { padding: 3px; }
.qe-log-table input, .qe-log-table select {
  width: 100%; box-sizing: border-box; border: 1px solid #d1d5db;
  border-radius: 5px; padding: 6px 8px; font-size: 13px; background: #fff;
}
.qe-log-remove {
  background: #fee2e2; color: #991b1b; border: none; border-radius: 5px;
  padding: 6px 9px; cursor: pointer; font-size: 13px;
}
.qe-log-remove:hover { background: #fecaca; }
.qe-log-add {
  margin-top: 8px; background: #eef4fa; color: #206EA6;
  border: 1px dashed #206EA6; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.qe-log-add:hover { background: #dbe7f3; }

.mb-status { font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.mb-status.ok { background: #d1fae5; color: #065f46; }
.mb-status.no { background: #fee2e2; color: #991b1b; }
.mb-row-line { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.mb-scope { background: #eef4fa; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 8px 0 12px; }
