/* ============================================================
   goud999safe — pagina-CSS: Mijn documenten
   Afgesplitst uit de oude pagina-CSS (fase 2). Alleen deze pagina('s).
   ============================================================ */

/* ============================================================
   MIJN DOCUMENTEN (mijn-documenten.html) — doc-
   ============================================================ */
/* Status-tellers */
.doc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.doc-stat { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--grey-line); background: var(--paper); }
.doc-stat.is-ok { background: var(--status-ok-bg); border-color: rgba(46,125,79,0.2); }
.doc-stat.is-warn { background: #fcefdc; border-color: rgba(184,116,44,0.28); }
.doc-stat.is-error { background: #fae8ea; border-color: rgba(184,72,79,0.25); }
.doc-stat-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-stat-icon svg { width: 18px; height: 18px; }
.doc-stat.is-ok .doc-stat-icon { color: var(--status-ok); }
.doc-stat.is-warn .doc-stat-icon { color: #b8742c; }
.doc-stat.is-error .doc-stat-icon { color: var(--status-error); }
.doc-stat-text { display: flex; flex-direction: column; line-height: 1.2; }
.doc-stat-count { font-size: var(--fs-22); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.doc-stat-label { font-size: var(--fs-12); color: var(--text-soft); font-weight: 600; }

/* Lijst van inklapbare documentblokken */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-block { border: 1px solid var(--grey-line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.doc-block:hover { border-color: rgba(22,46,37,0.25); box-shadow: none; }

/* badge-kolom = breedte van de breedste pill in de lijst (via JS in --doc-badge-w),
   zodat de meta-kolom (2de van rechts) over alle rijen verticaal uitlijnt; smallere pills -> kolom schuift mee. */
.doc-header { display: grid; grid-template-columns: auto 1fr auto var(--doc-badge-w, auto) auto; align-items: center; gap: 16px; padding: 15px 20px; cursor: pointer; user-select: none; transition: background var(--t-fast); }
.doc-header:hover { background: rgba(22,46,37,0.02); }
.doc-ic { width: 30px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--forest); flex-shrink: 0; }
.doc-ic svg { width: 23.4px; height: 23.4px; }
.doc-titleblock { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.doc-type { font-size: var(--fs-11); font-weight: 700; color: var(--forest); letter-spacing: 0.1em; text-transform: uppercase; }
.doc-name { font-size: var(--fs-15); font-weight: 700; color: var(--ink); line-height: 1.3; }
.doc-name-sub { color: var(--text-muted); font-weight: 500; }
.doc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; white-space: nowrap; }
.doc-meta-label { font-size: var(--fs-11); color: var(--text-muted); font-weight: 500; }
.doc-meta-value { font-size: var(--fs-13); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.doc-meta-value.is-warn { color: #b8742c; }
.doc-meta-value.is-error { color: var(--status-error); }

.doc-badge { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--r-pill); font-size: var(--fs-11); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.doc-badge svg { width: 12px; height: 12px; }
.doc-badge.is-ok { background: var(--status-ok-bg); color: var(--status-ok); }
.doc-badge.is-warn { background: #fcefdc; color: #b8742c; }
.doc-badge.is-error { background: #fae8ea; color: var(--status-error); }

.doc-toggle { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); flex-shrink: 0; transition: transform 0.25s ease; }
.doc-toggle svg { width: 18px; height: 18px; }
.doc-block.is-open .doc-toggle { transform: rotate(180deg); }

/* Tussenresoluties (zijbalk zichtbaar maar smalle content): val sneller terug op de
   compacte kop + gestapelde statusblokken zodat niets overlapt of buiten beeld valt. */
@media (max-width: 960px) {
  .doc-stats { gap: 8px; }
  .doc-stat { flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 11px 6px; }
  .doc-stat-icon { width: 28px; height: 28px; }
  .doc-stat-icon svg { width: 15px; height: 15px; }
  .doc-stat-text { align-items: center; }
  .doc-stat-count { font-size: var(--fs-18); }
  .doc-stat-label { font-size: 10px; line-height: 1.2; }
  .doc-header { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .doc-meta, .doc-badge.is-ok { display: none; }
  .doc-badge { font-size: 0; padding: 7px; gap: 0; }
  .doc-badge svg { width: 16px; height: 16px; }
  .doc-titleblock { overflow: hidden; }
  .doc-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doc-name { white-space: normal; }
}

/* Inklapbaar lichaam */
.doc-body { display: none; padding: 0 20px 20px; }
.doc-block.is-open .doc-body { display: block; }
.doc-body-inner { padding-top: 16px; }
.doc-body p { font-size: var(--fs-13); color: var(--text-soft); margin-bottom: 14px; line-height: 1.55; }
.doc-body p b { color: var(--ink); }

/* Upload-zones */
.doc-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; align-items: start; }
.doc-upload-col { display: flex; flex-direction: column; gap: 8px; }
.doc-upload-caption { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 600; color: var(--status-ok); }
.doc-upload-caption svg { width: 14px; height: 14px; flex-shrink: 0; }
.doc-upload { position: relative; border: 1.5px dashed rgba(22,46,37,0.25); border-radius: var(--r-md); padding: 16px 18px; min-height: 90px; text-align: center; background: var(--grey-soft); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; transition: border-color var(--t-fast), background var(--t-fast); }
.doc-upload:hover { border-color: var(--forest); background: var(--cream); }
.doc-upload.has-file { border-style: solid; border-color: var(--status-ok); background: var(--status-ok-bg); }
.doc-upload--wide { margin-bottom: 14px; }
.doc-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-upload-icon { width: 26px; height: 26px; color: var(--forest); }
.doc-upload.has-file .doc-upload-icon { color: var(--status-ok); }
.doc-upload-title { font-size: var(--fs-13); font-weight: 700; color: var(--ink); line-height: 1.3; }
.doc-upload-sub { font-size: var(--fs-11); color: var(--text-muted); font-weight: 500; }
.doc-upload-file { font-size: var(--fs-12); color: var(--status-ok); font-weight: 700; word-break: break-all; max-width: 100%; }
/* Geüploade foto als preview — volledige foto schaalt in het blok */
.doc-upload-grid > .doc-upload { height: 185px; min-height: 0; }
.doc-upload--preview { height: 185px; min-height: 0; padding: 8px; overflow: hidden; border-style: solid; border-color: var(--status-ok); background: var(--paper); }
.doc-upload-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

/* Externe links */
.doc-extlinks { display: flex; flex-direction: column; gap: 8px; }
.doc-extlink { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-13); font-weight: 600; color: var(--forest); }
.doc-extlink svg { width: 14px; height: 14px; flex-shrink: 0; }
.doc-extlink:hover { color: var(--forest-deep); text-decoration: underline; }

.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* Actieknoppen vullen de volledige breedte van het panel. */
.doc-actions > .btn-on-white--solid, .doc-actions > .btn-on-white--ghost { flex: 1 1 100%; width: 100%; justify-content: center; }
.doc-help-deco { position: absolute; top: -14px; right: -14px; color: rgba(192,154,95,0.16); pointer-events: none; }
.doc-help-deco svg { width: 104px; height: 104px; }
.doc-help-strong { font-weight: 600; }
.doc-help-list { list-style: none; margin: 6px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-help-list li { display: flex; align-items: center; gap: 9px; font-size: var(--fs-13); color: var(--ink); }
.doc-help-contact { display: flex; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.doc-help-hours { font-size: var(--fs-12); color: var(--text-muted); }
.doc-help-list li svg { width: 16px; height: 16px; color: var(--forest); flex-shrink: 0; }
.doc-help-list a { color: var(--forest); font-weight: 600; text-decoration: underline; }
.doc-help-divider { height: 1px; background: rgba(192,154,95,0.3); margin: 16px 0; }

@media (max-width: 768px) {
  /* Compacte tellers: 3 naast elkaar, gestapelde inhoud. */
  .doc-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .doc-stat { flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 11px 6px; }
  .doc-stat-icon { width: 28px; height: 28px; }
  .doc-stat-icon svg { width: 15px; height: 15px; }
  .doc-stat-text { align-items: center; }
  .doc-stat-count { font-size: var(--fs-18); }
  .doc-stat-label { font-size: 10px; line-height: 1.2; }
  .doc-header { grid-template-columns: auto 1fr auto auto; gap: 10px; padding: 14px 15px; }
  /* Op mobiel enkel de actie-badges (verloopt binnenkort / ontbreekt) tonen,
     zoals op desktop; de "Geverifieerd"-badge en de meta-kolom blijven verborgen. */
  .doc-meta, .doc-badge.is-ok { display: none; }
  /* Compacte badge: enkel het icoon (label verbergen via font-size:0), iets groter icoon. */
  .doc-badge { font-size: 0; padding: 7px; gap: 0; }
  .doc-badge svg { width: 16px; height: 16px; }
  .doc-titleblock { overflow: hidden; }
  .doc-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Naam mag wrappen; de tussen-haakjes-naam op een eigen regel eronder. */
  .doc-name { white-space: normal; }
  .doc-name-sub { display: block; font-size: var(--fs-13); }
  .doc-upload-grid { grid-template-columns: 1fr; }
  /* .doc-help mobiel-padding staat in 03-components.css (doc-help wordt ook op
     registratie-bevestiging gebruikt). */
  /* Telefoon: openingsuren onder het nummer op mobiel. */
  .doc-help-contact { flex-direction: column; align-items: flex-start; gap: 0; }
}
