/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.app-navbar {
  background: #1A2332; color: #fff; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 100;
}
.app-navbar .text-muted { color: #8b9ab0 !important; }

/* ── Filter bar ──────────────────────────────────────────────────────────────── */
.filter-bar {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  padding: 10px 20px; position: sticky; top: 52px; z-index: 90;
}

/* ── Table ───────────────────────────────────────────────────────────────────── */
.table-wrapper { padding: 16px 20px; }
.wi-table { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.wi-table thead th {
  background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #e2e8f0;
  padding: 10px 12px; white-space: nowrap;
}
.wi-table tbody td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.wi-table tbody tr.item-row { cursor: pointer; transition: background .1s; }
.wi-table tbody tr.item-row:hover { background: #f8fafc; }

.wi-title-cell { font-weight: 600; color: #1e293b; font-size: 14px; }

.badge-status {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.s-open  { background: #f1f5f9; color: #475569; }
.s-done  { background: #d1fae5; color: #065f46; }
.s-blocked { background: #fee2e2; color: #dc2626; }
.s-deleted { background: #f9fafb; color: #cbd5e1; }

.btn-row-edit {
  border: none; background: none; color: #94a3b8;
  padding: 2px 6px; border-radius: 4px; transition: all .15s; font-size: 14px;
}
.btn-row-edit:hover { background: #e2e8f0; color: #1e293b; }

.table-empty { text-align: center; padding: 60px 20px; }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb-bar {
  background: #eff6ff; border-bottom: 1px solid #bfdbfe;
  padding: 7px 20px; display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.bc-content { display: flex; align-items: center; gap: 4px; flex: 1; }
.bc-clickable { color: #1d4ed8; cursor: pointer; }
.bc-clickable:hover { text-decoration: underline; }
.bc-active { font-weight: 700; color: #1e3a5f; }
.bc-sep { color: #9ca3af; }

/* ── Detail view panels ───────────────────────────────────────────────────────── */
.detail-body { padding: 16px 20px; }
.panel-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
.panel-header {
  background: #f8fafc; color: #1e293b; font-weight: 700; font-size: 13px;
  padding: 10px 14px; border-bottom: 1px solid #e2e8f0;
}
.panel-body { padding: 12px 14px; }

.expand-label { font-weight: 700; color: #1e3a5f; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.expand-text { white-space: pre-wrap; line-height: 1.6; }

.event-row {
  padding: 10px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .1s;
}
.event-row:hover { background: #f8fafc; }
.event-row.event-failed { background: #fef2f2; }
.event-row.event-failed:hover { background: #fee2e2; }

.json-block {
  background: #0f1629; color: #e2e8f0; padding: 10px 12px; border-radius: 8px;
  font-size: 12px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  direction: ltr; text-align: left;
}

/* ── טופס יצירה/עריכה — רוחב מוגבל וממורכז, לא נמתח על כל המסך (זה מיועד לטבלאות) ── */
.form-view-wrap {
  max-width: 760px;
  margin: 0 auto;
}
