/* Copyright (c) A|iens. All rights reserved. */

/* [HEADER] Cloud Event Grid View
 * Version: 26.11.22
 * Author: A'nil Cyborg
 * Description: Container-aware topic workflows, native reviewed forms and inspectable delivery evidence.
 * Dependencies: Shared Cloud themes, dialogs, tables and resource workspaces.
 */
.eg-screen, .eg-review, .eg-inspect { min-width: 0; max-width: 100%; }
.eg-screen [data-resource-content] { display: grid; gap: 16px; }
.eg-screen [data-resource-content] > h2 { margin: 0; font-size: 18px; }
.eg-heading, .eg-filter, .eg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.eg-heading { justify-content: space-between; margin-block: 18px; }
.eg-heading > div { min-width: 0; overflow-wrap: anywhere; }
.eg-heading h2 { margin: 0 0 6px; font-size: 21px; }
.eg-heading p { margin: 0; max-width: 68ch; color: var(--muted); line-height: 1.6; }
.eg-link { color: var(--primary-strong); font-weight: 650; overflow-wrap: anywhere; }
.eg-note, .eg-notice { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.eg-notice { padding: 10px 12px; border-inline-start: 3px solid var(--border-strong); background: var(--panel-soft); }
.eg-muted { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.eg-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); background: var(--panel-soft); font-size: 11px; font-weight: 650; white-space: normal; }
.eg-screen .table-wrap, .eg-review .table-wrap, .eg-inspect .table-wrap { max-width: 100%; overflow-x: auto; }
.eg-screen td { vertical-align: top; overflow-wrap: anywhere; }
.eg-screen td:last-child { white-space: normal; }
.eg-actions { align-items: flex-start; }
.eg-actions > *, .eg-heading > .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.eg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.eg-steps a { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); background: var(--panel-translucent); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.eg-steps span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.eg-steps a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.eg-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; }
.eg-field { display: grid; gap: 6px; min-width: 0; }
.eg-field > label { font-size: 12px; font-weight: 650; }
.eg-field input, .eg-field select, .eg-field textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.eg-field textarea { min-height: 96px; resize: vertical; }
.eg-field input:focus-visible, .eg-field select:focus-visible, .eg-field textarea:focus-visible, .eg-review summary:focus-visible, .eg-inspect summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body[data-theme="light"] .eg-field { color-scheme: light; }
body[data-theme="dark"] .eg-field { color-scheme: dark; }
.eg-full { grid-column: 1 / -1; min-width: 0; }
.eg-form [hidden] { display: none !important; }
.eg-advanced-editor { padding-block: 14px; border-block: 1px solid var(--border); }
.eg-advanced-editor > h3 { margin: 0 0 8px; font-size: 15px; }
.eg-advanced-editor [data-eg-filter-list] { display: grid; gap: 14px; margin-block: 14px; }
.eg-advanced-clause { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel-soft); }
.eg-advanced-clause > legend { padding-inline: 6px; font-size: 12px; font-weight: 650; }
.eg-string-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-width: 0; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.eg-string-entry .eg-field textarea { min-height: 60px; }
.eg-string-entry > .btn { align-self: start; }
.eg-filter-semantics { margin-top: 12px; }
.eg-filter-semantics summary { cursor: pointer; font-size: 12px; font-weight: 650; }
.eg-event-checks { min-width: 0; margin-top: 18px; }
.eg-event-checks h3 { overflow-wrap: anywhere; font-size: 14px; }
.eg-check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.eg-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.eg-sample-control { align-self: end; }
.eg-error { min-height: 1.25em; margin: 12px 0 0; color: var(--danger); line-height: 1.6; overflow-wrap: anywhere; }
.eg-review .data-table, .eg-inspect .data-table { table-layout: fixed; min-width: 0; width: 100%; }
.eg-review .data-table th, .eg-review .data-table td, .eg-inspect .data-table th, .eg-inspect .data-table td { min-width: 0; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.eg-review details, .eg-inspect details { min-width: 0; margin-top: 16px; }
.eg-review summary, .eg-inspect summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
.eg-pre { box-sizing: border-box; max-width: 100%; max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel-soft); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.eg-filter { margin: 16px 0; align-items: flex-end; }
.eg-filter .eg-field:first-child { flex: 1 1 230px; }
@media (max-width: 700px) {
  .eg-form { grid-template-columns: minmax(0, 1fr); }
  .eg-advanced-clause { padding: 12px; }
  .eg-string-entry { grid-template-columns: minmax(0, 1fr); }
  .eg-full { grid-column: auto; }
  .eg-filter { align-items: stretch; }
  .eg-filter .eg-field { flex: 1 1 100%; }
  .eg-review .data-table th, .eg-review .data-table td, .eg-inspect .data-table th, .eg-inspect .data-table td { padding: 9px 6px; }
}
/* [FOOTER] Shared dialog scrolling keeps the native footer separate from long event and evidence bodies. */
