/* ============================================================================
   LIT-CRM — an employee's own documents (documents.php)
   [2026-08-31] Opened from OmniCredit by staff who have no CRM account.

   Deliberately its own stylesheet: this page is not inside the app shell, and it
   should not inherit chrome built for a signed-in CRM. Phone-first — most people
   will open it on their own device between calls.
   ========================================================================== */

:root {
  --pd-ink: #0f172a;
  --pd-muted: #64748b;
  --pd-line: #dbe3ee;
  --pd-accent: #0f766e;
  --pd-bg: #f6f8fb;
  --pd-card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.pd-wrap { max-width: 620px; margin: 0 auto; padding: 28px 18px 56px; }

.pd-head { margin-bottom: 20px; }

.pd-kicker {
  margin: 0 0 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pd-accent);
}

.pd-head h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.pd-who { margin: 6px 0 0; color: var(--pd-muted); font-weight: 600; }
.pd-intro { margin: 0 0 16px; color: #475569; }

.pd-card {
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  padding: 22px 20px;
}

.pd-card h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.pd-card p { margin: 0; color: #475569; }
.pd-empty h2 { color: var(--pd-accent); }

/* --- the list ------------------------------------------------------------ */

.pd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.pd-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  padding: 14px 16px;
}

.pd-item-main { min-width: 0; }

.pd-item-name {
  display: block; font-weight: 700; color: var(--pd-ink);
  overflow-wrap: anywhere;
}

.pd-item-meta {
  display: block; margin-top: 3px;
  font-size: 13px; color: var(--pd-muted);
  font-variant-numeric: tabular-nums;
}

.pd-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--pd-line);
  background: #fff; color: var(--pd-ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
}

.pd-btn:hover { border-color: #bfd0ee; }
.pd-btn:focus-visible { outline: 2px solid var(--pd-accent); outline-offset: 2px; }

.pd-btn-primary {
  background: var(--pd-accent); border-color: var(--pd-accent); color: #fff;
}
.pd-btn-primary:hover { background: #115e56; border-color: #115e56; }

.pd-foot { margin-top: 26px; text-align: center; }
.pd-muted { color: var(--pd-muted); font-size: 13px; margin: 0; }

@media (max-width: 520px) {
  .pd-item { align-items: flex-start; }
  .pd-item-actions { width: 100%; }
  .pd-btn { flex: 1 1 0; }
}

/* Repainted rather than left transparent, so the page holds up on a phone set
   to dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --pd-ink: #e8eef6; --pd-muted: #94a3b8; --pd-line: #2b3648;
    --pd-accent: #2dd4bf; --pd-bg: #0c1220; --pd-card: #131b2b;
  }
  .pd-btn { background: #0e1727; }
  .pd-btn-primary { color: #05201d; }
}
