/* بخش چندزبانی */
.i18n-card {
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 12px;
  background: var(--ui-surface, #fff);
  padding: 12px 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.i18n-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.i18n-card-head h3 {
  margin: 0;
  font-size: 1rem;
}
.i18n-card-actions,
.i18n-filters,
.i18n-add-locale,
.i18n-add-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.i18n-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
.i18n-pagination .pagination {
  justify-content: center;
}
.i18n-messages-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
}
.i18n-messages-table th,
.i18n-locales-table th {
  white-space: nowrap;
}
.i18n-key-cell {
  min-width: 10rem;
  vertical-align: top;
}
.i18n-key-cell code {
  display: block;
  font-size: 0.72rem;
  word-break: break-all;
  margin-bottom: 4px;
}
.i18n-cell {
  width: 100%;
  min-width: 9rem;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: vertical;
  background: #fff;
}
.i18n-cell:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.i18n-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.i18n-add-locale,
.i18n-add-key {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.i18n-guide {
  margin-bottom: 1rem;
}
.i18n-guide details {
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 14px 12px;
}
.i18n-guide summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.i18n-guide summary::-webkit-details-marker {
  display: none;
}
.i18n-guide summary::before {
  content: '▸';
  color: #64748b;
  font-size: 0.85em;
}
.i18n-guide details[open] summary::before {
  content: '▾';
}
.i18n-guide-body {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
}
.i18n-guide-body p {
  margin: 0 0 0.65rem;
}
.i18n-guide-body ul {
  margin: 0 0 0.75rem;
  padding-inline-start: 1.25rem;
}
.i18n-guide-body li {
  margin-bottom: 0.35rem;
}
.i18n-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.5rem 0 0.75rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.i18n-guide-table th,
.i18n-guide-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: start;
  vertical-align: top;
}
.i18n-guide-table th {
  background: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
}
.i18n-guide-table code {
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}
.i18n-guide-module-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  color: #1e40af;
}
.i18n-section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.i18n-guide-module-btn.is-active {
  background: #dbeafe;
  border-color: #60a5fa;
  font-weight: 600;
}
.i18n-guide-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0.5rem 0 0;
}
