/**
 * @file        sg-originals.css
 * @description Styles of the originals module: G3-01 target status, G3-02 FTP warning, G3-03 schedule and history, D3-07 figures
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         9e3b7c15-48d2-4a6f-b0e1-5c7a2f9d8e36
 * @version     0.1.0.2
 * @created     2026-12-01
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Codes, addresses, sizes and dates use the mono face (design notes). */
.sg-orig-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

/* Target line: address, protocol label and state chips wrap on narrow screens. */
.sg-orig-target {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Permanent "Unencrypted" label of an FTP target (G3-02 confirmed state). */
.sg-orig-unencrypted {
  border-color: var(--mahogany);
  color: var(--mahogany);
}

.sg-orig-locked {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--ink-muted);
}

/* G3-02: the warning sits above the form with a strong border; no second orange focal point. */
.sg-orig-dialog {
  border: 2px solid var(--mahogany);
  border-radius: var(--radius-lg);
  max-width: 35rem;
}

.sg-orig-dialog__label {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  color: var(--mahogany);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.sg-orig-dialog__form .sg-actions {
  flex-wrap: wrap;
}

/* Weekday, day of month and time sit side by side when there is room (360 px: stacked). */
.sg-orig-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .sg-orig-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* History table scrolls inside its own box, never the page. */
.sg-orig-table {
  overflow-x: auto;
  max-width: 100%;
}

.sg-orig-table table {
  width: 100%;
  border-collapse: collapse;
}

.sg-orig-table th,
.sg-orig-table td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sg-orig-status {
  overflow-wrap: anywhere;
}

/* Mockup pass 2026-12-02: G3-02 warning box and the D3-07 intro row with the state chip. */
.sg-orig-dialog__warn {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-warm);
  background: var(--beige);
  color: var(--warm-ink);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.sg-orig-dialog__warn .sg-icon,
.sg-orig-dialog__label .sg-icon {
  width: 18px;
  height: 18px;
}

.sg-orig-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.sg-orig-head p {
  flex: 1 1 16rem;
  margin: 0 0 1rem;
}
