.ot-ml-admin {
  display: grid;
  gap: 12px;
}
.ot-ml-admin__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(420px, 1.65fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}
.ot-ml-admin__panel {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.ot-ml-admin__panel h3 {
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #173461;
}
.ot-ml-admin__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ot-ml-admin__tabs button,
.ot-ml-admin__button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #173461;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.ot-ml-admin__tabs button[aria-selected="true"],
.ot-ml-admin__button--primary {
  background: #1f3b6d;
  color: #fff;
  border-color: #1f3b6d;
}
.ot-ml-admin__button--danger {
  border-color: #fecaca;
  color: #b91c1c;
}
.ot-ml-admin__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}
.ot-ml-admin__kpi {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}
.ot-ml-admin__kpi span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: .04em;
}
.ot-ml-admin__kpi strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: #173461;
  margin-top: 4px;
}
.ot-ml-admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ot-ml-admin th,
.ot-ml-admin td {
  border-bottom: 1px solid #edf2f7;
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
}
.ot-ml-admin th {
  color: #64748b;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .05em;
}
.ot-ml-admin__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  background: #eef6ff;
  color: #1f3b6d;
  white-space: nowrap;
}
.ot-ml-admin__badge--risk { background: #fff7ed; color: #c2410c; }
.ot-ml-admin__badge--ok { background: #ecfdf5; color: #047857; }
.ot-ml-admin__badge--locked { background: #fef2f2; color: #b91c1c; }
.ot-ml-admin__form {
  display: grid;
  gap: 8px;
}
.ot-ml-admin__form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}
.ot-ml-admin__form input,
.ot-ml-admin__form select,
.ot-ml-admin__form textarea {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
  color: #111827;
  background: #fff;
}
.ot-ml-admin__form textarea {
  min-height: 96px;
  resize: vertical;
  font-family: Consolas, Menlo, monospace;
}
.ot-ml-admin__review {
  max-height: 430px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}
.ot-ml-admin__workflow {
  display: grid;
  gap: 8px;
}
.ot-ml-admin__step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.ot-ml-admin__step i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.ot-ml-admin__step strong {
  display: block;
  font-size: 12px;
  color: #173461;
}
.ot-ml-admin__step span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
@media (max-width: 1200px) {
  .ot-ml-admin__grid { grid-template-columns: 1fr; }
  .ot-ml-admin__kpis { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}


.ot-ml-admin__excel {
  display: grid;
  gap: 8px;
}

.ot-ml-admin__file,
.ot-ml-admin__check {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
}

.ot-ml-admin__file input {
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 7px;
  background: #ffffff;
  color: #0f172a;
}
