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

/* [HEADER] Cloud PostgreSQL Recovery View
 * Version: 26.11.15
 * Author: A'nil Cyborg
 * Description: Scoped recovery coverage, distinct local operations and reviewed native forms.
 * Dependencies: Shared Cloud themes, resource workspaces, tables and dialog scrolling.
 * Integration Notes: Metadata evidence stays separate from database contents and provider execution.
 */
.pgr-section, .pgr-review, .pgr-inspect { min-width: 0; max-width: 100%; }
.pgr-dialog .dialog-foot { flex-wrap: wrap; flex-shrink: 0; }
.pgr-dialog .dialog-foot .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pgr-section { display: grid; gap: 16px; }
.pgr-heading, .pgr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.pgr-heading { justify-content: space-between; }
.pgr-heading > div, .pgr-actions > * { min-width: 0; max-width: 100%; }
.pgr-heading h2, .pgr-heading h3 { margin: 0 0 6px; }
.pgr-heading p { max-width: 72ch; margin: 0; color: var(--muted); line-height: 1.6; }
.pgr-actions { align-items: flex-start; }
.pgr-actions .btn, .pgr-heading > .btn { white-space: normal; overflow-wrap: anywhere; }
.pgr-notice, .pgr-note, .pgr-boundary { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pgr-notice { padding: 12px 14px; border-inline-start: 3px solid var(--border-strong); background: var(--panel-soft); }
.pgr-note:first-child { margin-top: 0; }
.pgr-muted { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.pgr-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--panel-soft); color: var(--text); font-size: 11px; font-weight: 650; white-space: normal; }
.pgr-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.pgr-summary > div { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.pgr-summary dt { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.pgr-summary dd { margin: 0; font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.pgr-operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.pgr-operation { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-translucent); box-shadow: var(--shadow); }
.pgr-operation h3 { margin: 0; font-size: 15px; }
.pgr-operation p { flex: 1; margin: 0; color: var(--muted); line-height: 1.6; font-size: 12px; }
.pgr-operation .btn { align-self: flex-start; max-width: 100%; white-space: normal; }
.pgr-operation [role="note"] { font-size: 11px; line-height: 1.55; color: var(--muted); }
.pgr-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.pgr-field { display: grid; gap: 6px; min-width: 0; }
.pgr-field > label { font-size: 12px; font-weight: 650; line-height: 1.5; }
.pgr-field input, .pgr-field select, .pgr-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; }
.pgr-field textarea { min-height: 88px; resize: vertical; }
.pgr-field input:focus-visible, .pgr-field select:focus-visible, .pgr-field textarea:focus-visible, .pgr-inspect summary:focus-visible, .pgr-review summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body[data-theme="light"] .pgr-field { color-scheme: light; }
body[data-theme="dark"] .pgr-field { color-scheme: dark; }
.pgr-full { grid-column: 1 / -1; min-width: 0; }
.pgr-form fieldset { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.pgr-form legend { padding-inline: 5px; font-weight: 650; font-size: 13px; }
.pgr-form [hidden] { display: none !important; }
.pgr-check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.pgr-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.pgr-error { min-height: 1.25em; margin: 12px 0 0; color: var(--danger); line-height: 1.6; overflow-wrap: anywhere; }
.pgr-link { color: var(--primary-strong); font-weight: 650; overflow-wrap: anywhere; }
.pgr-section .table-wrap, .pgr-form .table-wrap, .pgr-review .table-wrap, .pgr-inspect .table-wrap { max-width: 100%; overflow-x: auto; }
.pgr-section td { vertical-align: top; overflow-wrap: anywhere; }
.pgr-section td:last-child { white-space: normal; }
.pgr-form .data-table, .pgr-review .data-table, .pgr-inspect .data-table { min-width: 0; width: 100%; table-layout: fixed; }
.pgr-form .data-table th, .pgr-form .data-table td, .pgr-review .data-table th, .pgr-review .data-table td, .pgr-inspect .data-table th, .pgr-inspect .data-table td { min-width: 0; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.pgr-review details, .pgr-inspect details { margin-top: 16px; min-width: 0; }
.pgr-review summary, .pgr-inspect summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
.pgr-pre { box-sizing: border-box; max-width: 100%; max-height: 340px; 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; }
@media (max-width: 700px) {
  .pgr-form { grid-template-columns: minmax(0, 1fr); }
  .pgr-full { grid-column: auto; }
  .pgr-review .data-table th, .pgr-review .data-table td, .pgr-inspect .data-table th, .pgr-inspect .data-table td { padding: 9px 6px; }
}
/* [FOOTER] Long evidence scrolls inside the shared dialog body; review controls remain in its real footer. */
