/* ============================================================
   SPRINT 26 — مختبر التصنيع
   ============================================================ */
.tool-nav-row{
  margin-top: 6rem;
}
#scr-tool-manufacturing {
  padding: 0;
}
/* ── Header ─────────────────────────────────────────────────── */
.s26-hero {
  background: linear-gradient(135deg,
    rgba(200,169,110,0.1) 0%,
    rgba(16,185,129,0.06) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.s26-hero-icon {
  width: 44px; height: 44px;
  background: rgba(200,169,110,0.15);
  border: 1.5px solid rgba(200,169,110,0.35);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.s26-hero-title { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.s26-hero-sub   { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
/* ── Progress Steps ─────────────────────────────────────────── */
.s26-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 1.25rem .75rem;
  overflow-x: auto;
}
.s26-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  color: var(--text-muted);
  transition: all .3s ease;
  flex-shrink: 0;
}
.step-dot.active {
  border-color: var(--accent);
  background: rgba(200,169,110,0.15);
  color: var(--accent);
  transform: scale(1.1);
}
.step-dot.done {
  border-color: var(--success);
  background: rgba(16,185,129,0.15);
  color: var(--success);
}
.step-line {
  width: 40px; height: 2px;
  background: var(--border);
  flex-shrink: 0;
  transition: background .3s;
}
.step-dot.done + .step-line,
.step-line.done {
  background: var(--success);
}
.s26-step-label {
  display: none;
}
@media (min-width: 500px) {
  .s26-step-label {
    display: block;
    font-size: .62rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: .25rem;
    white-space: nowrap;
  }
}
/* ── Steps Wrapper ───────────────────────────────────────────── */
.s26-body {
  padding: 1rem 1.25rem 5rem;
}
.s26-panel-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem;
}
.s26-panel-sub {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
/* ── Options Grid ────────────────────────────────────────────── */
.s26-opts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.s26-opts-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.s26-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .85rem .5rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  text-align: center;
}
.s26-opt:hover {
  border-color: var(--accent);
  background: rgba(200,169,110,0.06);
  transform: translateY(-2px);
}
.s26-opt.active {
  border-color: var(--accent);
  background: rgba(200,169,110,0.12);
  box-shadow: 0 0 0 1px rgba(200,169,110,0.3);
}
.s26-opt-icon { font-size: 1.5rem; }
.s26-opt-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.s26-opt-desc {
  font-size: .62rem;
  color: var(--text-muted);
  line-height: 1.3;
}
/* Class options — wider */
.s26-class-opt {
  flex-direction: row;
  justify-content: flex-start;
  padding: .85rem 1rem;
  gap: .75rem;
  text-align: right;
}
.s26-class-color {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* ── Notes ───────────────────────────────────────────────────── */
.s26-notes-wrap {
  margin-bottom: 1rem;
}
.s26-notes-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
#s26Notes {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-primary);
  font-size: .8rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}
#s26Notes:focus {
  outline: none;
  border-color: var(--accent);
}
/* ── Summary Box ─────────────────────────────────────────────── */
.s26-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.s26-sum-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.25);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
}
/* ── Generate Button ─────────────────────────────────────────── */
.s26-btn-generate {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #C8A96E, #a8895a);
  color: #000;
  font-size: .95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.s26-btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,169,110,0.35);
}
.s26-btn-generate:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.s26-btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .75rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: .75rem;
  transition: var(--transition);
}
.s26-btn-back:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}
/* ── Loading ─────────────────────────────────────────────────── */
.s26-loading {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.s26-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: s26spin .8s linear infinite;
}
@keyframes s26spin { to { transform: rotate(360deg); } }
.s26-loading-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.s26-loading-sub {
  font-size: .75rem;
  color: var(--text-muted);
}
/* ── Result ──────────────────────────────────────────────────── */
.s26-result-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.s26-result-badge {
  padding: .25rem .85rem;
  border-radius: 20px;
  border: 1px solid;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.s26-result-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
}
.s26-result-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.s26-btn-sec {
  padding: .4rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: .75rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.s26-btn-sec:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.s26-result-body {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 3rem;
}
.s26-result-body h3.s26-section-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1.5rem 0 .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(200,169,110,0.2);
}
.s26-result-body h4.s26-subsection {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0 .3rem;
}
.s26-result-body ul {
  padding-right: 1.25rem;
  margin: .4rem 0;
}
.s26-result-body li {
  margin-bottom: .3rem;
}
.s26-result-body strong {
  color: var(--text-primary);
  font-weight: 700;
}
.s26-error {
  text-align: center;
  padding: 2rem;
  color: var(--danger);
  font-size: .85rem;
}
.s26-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.s26-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  direction: rtl;
}
.s26-table td {
  border: 1px solid #374151;
  padding: 10px 14px;
  text-align: right;
  vertical-align: top;
  background-color: #111827;   /* ← خلفية داكنة للخلايا */
  color: #e5e7eb;               /* ← نص رمادي فاتح واضح */
}
.s26-table th {
  border: 1px solid #4b5563;
  padding: 10px 14px;
  text-align: right;
  vertical-align: top;
  background-color: #1f2937;   /* ← خلفية داكنة للهيدر */
  color: #f9fafb;               /* ← نص أبيض واضح */
  font-weight: bold;
}
.s26-table thead tr {
  background-color: #f3f4f6;
  font-weight: bold;
}
.s26-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.s26-table tbody tr:nth-child(even) td {
  background-color: #1a2332;   /* ← تبادل خفيف للصفوف */
}
.s26-table tbody tr:hover {
  background-color: #eff6ff;
}
.s26-table tbody tr:hover td {
  background-color: #2d3748;   /* ← hover واضح */
  color: #ffffff;
}