/* logs.css split from legacy.css on 2026-07-13T14:30:34.722Z. */

.detail-btn {
      border: 0;
      background: rgb(15 23 42 / 0.06);
      color: #334155;
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 600;
      cursor: pointer;
    }

.msg-row.user .detail-btn { background: rgb(255 255 255 / 0.16); color: #fff; }

.readable-detail {
      display: grid;
      gap: 14px;
    }

.detail-section {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
    }

.detail-section-title {
      padding: 10px 12px;
      background: #f8fafc;
      border-bottom: 1px solid var(--line);
      font-size: 12px;
      font-weight: 700;
      color: var(--heading);
    }

.detail-grid {
      padding: 10px 12px;
      display: grid;
      gap: 8px;
    }

.detail-row {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 10px;
      align-items: start;
      font-size: 12px;
    }

.detail-label {
      color: var(--muted);
      font-weight: 500;
    }

.detail-value {
      color: var(--text);
      white-space: pre-wrap;
      word-break: break-word;
    }

.log-dashboard {
      display: grid;
      gap: 12px;
    }

.log-summary-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 10px;
    }

.log-summary-card {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 14px;
      padding: 10px 12px;
      min-width: 0;
    }

.log-summary-label {
      font-size: 10.5px;
      color: var(--muted);
      font-weight: 600;
      margin-bottom: 5px;
    }

.log-summary-value {
      color: var(--heading);
      font-size: 18px;
      font-weight: 800;
      line-height: 1.1;
    }

.log-filter-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 170px;
      gap: 9px;
      align-items: center;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 10px;
      position: sticky;
      top: -18px;
      z-index: 3;
      box-shadow: 0 6px 20px rgb(15 23 42 / 0.04);
    }

.log-count-hint {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      padding: 0 2px;
    }

.log-list-panel {
      display: grid;
      gap: 7px;
    }

.log-entry-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 8px 10px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      box-shadow: 0 3px 10px rgb(15 23 42 / 0.025);
    }

.log-entry-card.realtime-log {
      border-color: #bfdbfe;
      background: linear-gradient(135deg, #f8fbff 0%, #fff 78%);
    }

.shopee-proposal-accordion {
      margin-bottom: 10px;
    }

.detail-section-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 0;
      padding: 13px 14px;
      background: #f8fafc;
      color: var(--heading);
      text-align: left;
      cursor: pointer;
      font: inherit;
    }

.detail-section-toggle:hover {
      background: #f1f5f9;
    }

.detail-section-arrow {
      display: inline-grid;
      width: 20px;
      height: 20px;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 999px;
      background: #e8eef8;
      color: #405a7e;
      font-size: 18px;
      line-height: 1;
      transition: transform 160ms ease;
    }

.detail-section-toggle[aria-expanded="true"] .detail-section-arrow {
      transform: rotate(90deg);
    }

.shopee-proposal-detail {
      padding: 13px 14px 14px;
      border-top: 1px solid var(--line);
      color: var(--text);
      font-size: 13px;
      line-height: 1.55;
    }

.shopee-proposal-detail p {
      margin: 0 0 9px;
    }

.shopee-proposal-detail .stage-action-row {
      margin-top: 12px;
    }

.detail-meta {
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
    }

.log-entry-card.runtime-event {
      border-color: #c7d2fe;
      background: linear-gradient(135deg, #eef2ff 0%, #fff 82%);
    }

.log-entry-card.runtime-event[data-log-status*="fail"],
.log-entry-card.runtime-event[data-log-status*="error"] {
      border-color: #fecaca;
      background: linear-gradient(135deg, #fff1f2 0%, #fff 82%);
    }

.log-line-main {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: nowrap;
    }

.log-step {
      font-size: 11.5px;
      font-weight: 800;
      color: var(--heading);
      white-space: nowrap;
      flex-shrink: 0;
    }

.log-one-line {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #334155;
      line-height: 1.35;
      font-size: 12px;
      font-weight: 500;
    }

.log-entry-side {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      flex-shrink: 0;
    }

.log-time {
      font-size: 10.5px;
      color: var(--muted-2);
      white-space: nowrap;
    }

.log-detail-action {
      border: 0;
      background: var(--primary-soft);
      color: var(--primary);
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
    }

.log-detail-action:hover { background: #e0e7ff; }

.log-detail-meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 12px;
    }

.log-detail-meta-card {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      padding: 9px 10px;
      min-width: 0;
    }

.log-detail-meta-label {
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 700;
      margin-bottom: 3px;
    }

.log-detail-meta-value {
      color: var(--heading);
      font-size: 12px;
      font-weight: 600;
      word-break: break-word;
    }

.log-raw-json {
      margin: 8px 0 0;
      max-height: 420px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      background: #0f172a;
      color: #e5e7eb;
      border-radius: 12px;
      padding: 11px;
      font-size: 11px;
      line-height: 1.52;
    }

.runtime-field-table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
    }

.runtime-field-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 520px;
      font-size: 11.5px;
    }

.runtime-field-table th,
.runtime-field-table td {
      padding: 8px 10px;
      border-bottom: 1px solid #eef2f7;
      text-align: left;
      vertical-align: top;
    }

.runtime-field-table th {
      color: #475569;
      background: #f8fafc;
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

.runtime-field-table tr:last-child td { border-bottom: 0; }
