/* ESRS v206: layman-friendly Customer Notification Process Log. */
.naysa-process-log-card { margin-top: 0; overflow: hidden; }
.naysa-process-log-head { align-items: flex-start !important; gap: 18px; }
.naysa-process-log-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.naysa-process-log-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; color: #64748b; font-size: 11px; }
.naysa-process-log-filters { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 10px; padding: 12px 0; }
.naysa-process-log-filters label { display: grid; gap: 5px; color: #475569; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
.naysa-process-log-filters select,
.naysa-process-log-filters input { width: 100%; height: 34px; border: 1px solid #cfd9e6; border-radius: 7px; background: #fff; color: #1e293b; padding: 0 9px; font: inherit; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal; outline: none; }
.naysa-process-log-filters select:focus,
.naysa-process-log-filters input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.naysa-process-log-list { display: grid; border: 1px solid #dbe4ef; border-radius: 10px; overflow: hidden; }
.naysa-process-log-row { display: grid; grid-template-columns: 165px minmax(0,1fr) auto; column-gap: 14px; align-items: start; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e7edf5; }
.naysa-process-log-row:last-child { border-bottom: 0; }
.naysa-process-log-row:hover { background: #f8fbff; }
.naysa-process-log-row.expanded { background: #f8fbff; }
.naysa-process-log-time { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 11px; font-weight: 700; line-height: 1.4; }
.naysa-process-log-time svg { color: #3b82f6; flex: 0 0 auto; }
.naysa-process-log-content { min-width: 0; }
.naysa-process-log-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.naysa-process-log-title strong { color: #143f70; font-size: 13px; }
.naysa-process-log-content p { margin: 5px 0; color: #334155; font-size: 12px; line-height: 1.5; }
.naysa-process-log-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.naysa-process-log-meta span { padding: 3px 7px; border: 1px solid #e1e8f0; border-radius: 999px; background: #f8fafc; color: #64748b; font-size: 10px; font-weight: 700; }
.naysa-process-log-status { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .02em; }
.naysa-process-log-status.status-in_progress { background: #e8f2ff; color: #1d4ed8; }
.naysa-process-log-status.status-completed { background: #dcfce7; color: #166534; }
.naysa-process-log-status.status-failed { background: #fee2e2; color: #b91c1c; }
.naysa-process-log-details-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid #d5dfeb; border-radius: 7px; background: #fff; color: #285b93; font-size: 11px; font-weight: 800; cursor: pointer; }
.naysa-process-log-details-toggle:hover { background: #eef6ff; border-color: #9fc4ed; }
.naysa-process-log-details { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; padding: 10px; border: 1px dashed #cbd7e5; border-radius: 8px; background: #fff; }
.naysa-process-log-details > div { min-width: 0; display: grid; gap: 3px; }
.naysa-process-log-details > div.wide { grid-column: 1 / -1; }
.naysa-process-log-details span { color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.naysa-process-log-details strong { overflow-wrap: anywhere; color: #334155; font-size: 11px; font-weight: 700; }
.naysa-process-log-message-box { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 11px 12px; border-radius: 8px; font-size: 12px; }
.naysa-process-log-message-box.error { border: 1px solid #fecaca; background: #fff1f2; color: #991b1b; }
.naysa-process-log-message-box.empty { border: 1px solid #dbeafe; background: #eff6ff; color: #1e40af; }
.naysa-process-log-message-box button { margin-left: auto; border: 0; background: transparent; color: inherit; font-weight: 900; cursor: pointer; text-decoration: underline; }
.naysa-process-log-footnote { display: flex; align-items: center; gap: 7px; padding-top: 10px; color: #64748b; font-size: 10px; font-weight: 700; }
.dark .naysa-process-log-head p,
.dark .naysa-process-log-head-actions,
.dark .naysa-process-log-time,
.dark .naysa-process-log-footnote { color: #9fb0c2; }
.dark .naysa-process-log-filters label { color: #cbd5e1; }
.dark .naysa-process-log-filters select,
.dark .naysa-process-log-filters input,
.dark .naysa-process-log-row,
.dark .naysa-process-log-details,
.dark .naysa-process-log-details-toggle { background: #10243a; border-color: #29435d; color: #e7eef7; }
.dark .naysa-process-log-list { border-color: #29435d; }
.dark .naysa-process-log-row { border-bottom-color: #29435d; }
.dark .naysa-process-log-row:hover,
.dark .naysa-process-log-row.expanded { background: #142c45; }
.dark .naysa-process-log-title strong { color: #bfdbfe; }
.dark .naysa-process-log-content p,
.dark .naysa-process-log-details strong { color: #dce8f4; }
.dark .naysa-process-log-meta span { background: #142c45; border-color: #29435d; color: #b8c7d9; }
@media (max-width: 980px) {
  .naysa-process-log-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .naysa-process-log-row { grid-template-columns: 140px minmax(0,1fr); }
  .naysa-process-log-details-toggle { grid-column: 2; justify-self: start; margin-top: 8px; }
  .naysa-process-log-details { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .naysa-process-log-head { display: grid !important; }
  .naysa-process-log-head-actions { justify-content: flex-start; }
  .naysa-process-log-filters { grid-template-columns: 1fr; }
  .naysa-process-log-row { grid-template-columns: 1fr; gap: 8px; }
  .naysa-process-log-details-toggle,
  .naysa-process-log-details { grid-column: 1; }
  .naysa-process-log-details { grid-template-columns: 1fr; }
}

/* ESRS v206 deployment fallback controls. */
.naysa-process-log-refresh{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid #b8c9dc;border-radius:7px;background:#fff;color:#245a91;font-size:11px;font-weight:800;cursor:pointer}.naysa-process-log-refresh:disabled{opacity:.65;cursor:wait}
.naysa-process-log-details[hidden] { display: none !important; }
