/* FlowCAD3D admin portal: panels, status tags, the help requests and the integrations (js/admin/admin-dashboard.js).
   The panels and status tags are also used by the content calendar and the interaction (admin-content.js,
   admin-engage.js). The dashboard and the costs and result moved to the central platform of CloudVoyagers (2026.10.81). */
.dsh-root, :root { --dsh-ok: var(--ok); --dsh-warn: var(--warn); --dsh-err: var(--err); --dsh-off: var(--fg3); }

.dsh-panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 9px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.dsh-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dsh-ph h3 { margin: 0; font-size: 14px; }
.dsh-err { color: var(--danger-fg); margin: 0; }
.dsh-panel p { margin: 0; }
.dsh-panel > .btn { align-self: flex-start; }
.dsh-int .grid2 > .field.full { grid-column: 1 / -1; }
.dsh-int .grid2 > .field.full .inp { width: 100%; }
.dsh-replybox .row .field { display: flex; align-items: center; gap: 8px; }
.neg { color: var(--danger-fg); }

/* status: icon + word, never colour alone */
.dsh-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dsh-st .ico { width: 14px; height: 14px; }
.dsh-st.st-ok { color: var(--ban-ok-fg); } .dsh-st.st-ok .ico { color: var(--dsh-ok); }
.dsh-st.st-warn { color: var(--ban-warn-fg); } .dsh-st.st-warn .ico { color: var(--dsh-warn); }
.dsh-st.st-error { color: var(--danger-fg); } .dsh-st.st-error .ico { color: var(--dsh-err); }
.dsh-st.st-off { color: var(--fg3); font-weight: 500; }

/* help requests */
.dsh-unread { font-weight: 700; }
.dsh-tmeta .field { min-width: 180px; }
.dsh-thread { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 16px; max-width: 900px; }
.dsh-thread .msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg2); }
.dsh-thread .msg.staff { margin-left: 48px; background: var(--accentbg); border-color: transparent; }
.dsh-thread .msg.internal { background: var(--ban-warn-bg); color: var(--ban-warn-fg); border-style: dashed; border-color: var(--warn); }
.dsh-thread .mb { white-space: pre-wrap; margin-top: 4px; }
.dsh-replybox { max-width: 900px; }
.dsh-replybox .field.full { display: block; }
.dsh-replybox .field.full label { display: block; margin-bottom: 4px; }
.dsh-replybox textarea { width: 100%; }

/* report dialog, integrations */
.dsh-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.dsh-secs .field { grid-template-columns: 1fr auto; }
.dsh-integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dsh-int textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; }
.dsh-int p .ico { width: 14px; height: 14px; vertical-align: -2px; }
.p-capset, .p-report { max-width: 760px; }
.p-capset { margin-bottom: 12px; }

@media (max-width: 900px) {
  .dsh-secs { grid-template-columns: 1fr 1fr; }
  .dsh-integrations { grid-template-columns: minmax(0, 1fr); }
  .dsh-thread .msg.staff { margin-left: 16px; }
}
