/**
 * @file        sg-vault.css
 * @description Documents page (L4-25): list with type chip, storage chip and lock icon, unlock prompt, audit list; mobile first
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         e7a4b091-26d3-4c5f-8f1e-b02c63d9a547
 * @version     0.2.0.2
 * @created     2026-12-01
 * @updated     2026-12-03
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Document list: one column on phones, actions wrap below the title. */
.sg-vault-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-vault-doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.sg-vault-doc:first-child { border-top: 0; }
.sg-vault-doc__main { min-width: 0; overflow-wrap: anywhere; }
.sg-vault-doc__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sg-vault-doc__actions form { margin: 0; }
.sg-vault-chip { display: inline-flex; align-items: center; gap: 4px; white-space: normal; }
.sg-vault-lock { vertical-align: -3px; flex: none; }

/* Type icon of a document (L4-25 mockup) and the lock marker after the title. */
.sg-vault-doc__icon { display: inline-flex; padding: 8px; border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.sg-vault-doc__locked { display: inline-flex; color: var(--ink-muted); }

/* Never-shared notice: text and the "All documents" link wrap. */
.sg-vault-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.sg-vault-notice p { margin: 0; }
.sg-vault-notice a { min-height: 44px; display: inline-flex; align-items: center; }
.sg-vault-empty h3 { font-size: 1.1rem; margin: 8px 0; }

/* Unlock prompt and support state: icon above the heading, as in the mockup; the "open for N minutes" line. */
.sg-vault-locked__icon { display: inline-flex; padding: 12px; border-radius: 50%; background: var(--bg); color: var(--ink); }
.sg-vault-locked__icon .sg-icon { width: 28px; height: 28px; }
.sg-vault-locked h2 { margin-top: 12px; }
.sg-vault-unlocked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 0; }
.sg-vault-unlocked form { margin: 0; }

/* Audit: dates in Plex Mono (figures), wraps at 130 % text size. */
.sg-vault-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .sg-vault-doc { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sg-vault-doc__actions { grid-column: auto; justify-content: flex-end; }
}
