/* Anfrage-Dashboard: bewusst separat und nach portal.css geladen. */
.portal-main > .portal-view.inquiry-cockpit-view[data-view="inquiries"] {
  --iq-bg: #061321;
  --iq-panel: #0b2137;
  --iq-panel-2: #0e2942;
  --iq-line: #214662;
  --iq-text: #f4f8fb;
  --iq-muted: #9eb2c4;
  --iq-accent: #39c47a;
  width: 100% !important;
  max-width: none !important;
  padding: 14px !important;
  border: 1px solid #183a55;
  border-radius: 24px;
  background: radial-gradient(circle at 84% 0, rgba(23, 111, 67, .15), transparent 28%), linear-gradient(145deg, #071725, #050f1d 70%);
  color: var(--iq-text);
  box-shadow: 0 24px 64px rgba(3, 14, 24, .22);
}

.inquiry-cockpit-view .portal-kicker { color: #63d592 !important; }

.inquiry-cockpit-view .inquiry-cockpit-hero {
  min-height: 108px !important;
  border: 1px solid var(--iq-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #0d2740, #091d31) !important;
  box-shadow: none !important;
}

.inquiry-cockpit-view .inquiry-cockpit-hero h2,
.inquiry-cockpit-view .inquiry-inbox-head strong,
.inquiry-cockpit-view .inquiry-workbench-head h2,
.inquiry-cockpit-view .inquiry-section-head h2,
.inquiry-cockpit-view .panel-heading h2 { color: var(--iq-text) !important; }

.inquiry-cockpit-view .inquiry-cockpit-hero span,
.inquiry-cockpit-view .inquiry-inbox-head > span,
.inquiry-cockpit-view .inquiry-workbench-head > div:nth-child(2) > span,
.inquiry-cockpit-view .inquiry-section-head > span,
.inquiry-cockpit-view .panel-heading span { color: var(--iq-muted) !important; }

.inquiry-cockpit-view .inquiry-cockpit-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.inquiry-cockpit-view .inquiry-cockpit-stats article {
  min-height: 82px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--iq-line) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #0d2944, #091d32) !important;
  box-shadow: none !important;
}

.inquiry-cockpit-view .inquiry-cockpit-stats article::before { background: var(--iq-accent) !important; }
.inquiry-cockpit-view .inquiry-cockpit-stats strong { color: #fff !important; font-size: 1.55rem !important; }
.inquiry-cockpit-view .inquiry-cockpit-stats span,
.inquiry-cockpit-view .inquiry-cockpit-stats small { color: var(--iq-muted) !important; }

.inquiry-cockpit-view .inquiry-cockpit-grid {
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

.inquiry-cockpit-view .inquiry-inbox-panel,
.inquiry-cockpit-view .inquiry-workbench {
  border: 1px solid var(--iq-line) !important;
  border-radius: 18px !important;
  background: var(--iq-panel) !important;
  box-shadow: none !important;
}

.inquiry-cockpit-view input,
.inquiry-cockpit-view select,
.inquiry-cockpit-view textarea {
  min-width: 0 !important;
  max-width: 100% !important;
  border-color: #24465f !important;
  background: #061522 !important;
  color: #edf5fa !important;
  box-shadow: inset 0 1px rgba(255,255,255,.02) !important;
}

.inquiry-cockpit-view input::placeholder,
.inquiry-cockpit-view textarea::placeholder { color: #748da1 !important; }
.inquiry-cockpit-view label { color: #cbd9e3 !important; }

.inquiry-cockpit-view .record-row {
  border: 1px solid #1d4560 !important;
  border-radius: 13px !important;
  background: #0b2339 !important;
  color: #eaf3f8 !important;
}

.inquiry-cockpit-view .record-row:hover { border-color: #37715d !important; background: #0d2a43 !important; }
.inquiry-cockpit-view .record-row.is-active {
  border-color: #25a764 !important;
  background: linear-gradient(135deg, #0c3a38, #0b2b3d) !important;
  box-shadow: inset 3px 0 #39c47a !important;
}

.inquiry-cockpit-view .record-title { color: #fff !important; }
.inquiry-cockpit-view .record-meta,
.inquiry-cockpit-view .record-footer { color: #91a8ba !important; }

.inquiry-cockpit-view .inquiry-workbench-head,
.inquiry-cockpit-view .inquiry-section-head,
.inquiry-cockpit-view .inquiry-chat-card > .panel-heading {
  border-color: var(--iq-line) !important;
  background: linear-gradient(135deg, #0f2b45, #0b2137) !important;
}

.inquiry-cockpit-view .inquiry-workbench-head { min-height: 108px !important; padding: 18px 20px !important; }
.inquiry-cockpit-view .inquiry-avatar { background: linear-gradient(145deg, #28a965, #176f43) !important; }

.inquiry-cockpit-view .inquiry-workbench > .inquiry-form > .inquiry-detail-stats {
  border-color: var(--iq-line) !important;
  background: #091b2d !important;
}

.inquiry-cockpit-view .inquiry-workbench-layout {
  grid-template-columns: minmax(380px, 420px) minmax(0, 1fr) !important;
  grid-template-areas: "data chat" "notes chat" "mail chat" !important;
  gap: 18px !important;
  padding: 18px !important;
  background: #071726 !important;
}

.inquiry-cockpit-view .inquiry-data-card,
.inquiry-cockpit-view .inquiry-chat-card,
.inquiry-cockpit-view .inquiry-notes-card,
.inquiry-cockpit-view .inquiry-mail-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border: 1px solid var(--iq-line) !important;
  border-radius: 16px !important;
  background: var(--iq-panel) !important;
  box-shadow: none !important;
}

.inquiry-cockpit-view .inquiry-data-card { padding: 0 !important; }
.inquiry-cockpit-view .inquiry-data-card .inquiry-main-grid { grid-template-columns: minmax(0, 1fr) !important; padding-inline: 13px !important; }
.inquiry-cockpit-view .inquiry-data-card .inquiry-text-grid { padding: 0 13px 14px !important; }
.inquiry-cockpit-view .inquiry-data-card .customer-id-strip { margin: 13px 13px 5px !important; }

.inquiry-cockpit-view .customer-id-strip,
.inquiry-cockpit-view .internal-note-list > *,
.inquiry-cockpit-view .email-log > * {
  border-color: #24465f !important;
  background: #0c263e !important;
  color: #dfeaf1 !important;
}

.inquiry-cockpit-view .message-thread {
  background: radial-gradient(circle, rgba(74,119,143,.16) 1px, transparent 1px), #071827 !important;
  background-size: 24px 24px !important;
}

.inquiry-cockpit-view .message-bubble { border-color: #28506b !important; background: #0d2942 !important; color: #eaf3f8 !important; }
.inquiry-cockpit-view .message-bubble.is-customer { background: #102f49 !important; }
.inquiry-cockpit-view .message-compose { border-color: var(--iq-line) !important; background: #0a1d30 !important; }
.inquiry-cockpit-view .ghost-button { border-color: #31536c !important; background: #102a41 !important; color: #e2edf3 !important; }
.inquiry-cockpit-view .solid-button { background: linear-gradient(135deg, #1a8c53, #176f43) !important; color: #fff !important; }

@media (max-width: 1580px) {
  .inquiry-cockpit-view .inquiry-workbench-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "data" "chat" "notes" "mail" !important;
  }
}

@media (max-width: 1180px) {
  .inquiry-cockpit-view .inquiry-cockpit-grid { grid-template-columns: 1fr !important; }
  .inquiry-cockpit-view .inquiry-inbox-panel { position: static !important; }
  .inquiry-cockpit-view .inquiry-cockpit-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 620px) {
  .portal-main > .portal-view.inquiry-cockpit-view[data-view="inquiries"] { padding: 8px !important; border-radius: 18px; }
  .inquiry-cockpit-view .inquiry-cockpit-stats { grid-template-columns: 1fr !important; }
  .inquiry-cockpit-view .inquiry-workbench-layout { padding: 10px !important; gap: 10px !important; }
}
