/*
 * OCFai CSS contract
 * AI_RULE: define only classes matching OCFAI_ALLOWED_PREFIXES in this file.
 * AI_RULE: shared UI patterns must use their canonical component CSS instead of local variants.
 * OCFAI_ROLE: component
 * OCFAI_ALLOWED_PREFIXES: mk-table, mk-table__, mk-table-wrap
 */
/* Component: mk_table */
.mk-table-wrap {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: auto;
  border: 1px solid var(--mk-color-line);
  border-radius: var(--mk-card-radius);
  background: var(--mk-color-surface);
  box-shadow: var(--mk-shadow-soft);
}

.mk-table {
  width: 100%;
  min-width: var(--mk-table-min-width, 760px);
  margin: 0;
  border-collapse: collapse;
  background: var(--mk-color-surface);
  color: var(--mk-color-text);
}

.mk-table__col--12 {
  width: 12%;
}

.mk-table__col--22 {
  width: 22%;
}

.mk-table__col--28 {
  width: 28%;
}

.mk-table__col--38 {
  width: 38%;
}

.mk-table__cell {
  min-width: 0;
  padding: var(--mk-table-cell-padding, 20px 24px);
  border-bottom: 1px solid var(--mk-color-line);
  border-left: 1px solid var(--mk-color-line);
  color: var(--mk-color-muted);
  font-size: var(--mk-font-size-base);
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.mk-table__cell--first {
  border-left: 0;
}

.mk-table__cell--head {
  background: var(--mk-color-bg-public-soft);
  color: var(--mk-color-text);
  font-size: var(--mk-font-size-xs);
  font-weight: 760;
  text-transform: uppercase;
  white-space: nowrap;
}

.mk-table__cell--last-row {
  border-bottom: 0;
}

.mk-table__cell--top-left {
  border-top-left-radius: calc(var(--mk-card-radius) - 1px);
}

.mk-table__cell--top-right {
  border-top-right-radius: calc(var(--mk-card-radius) - 1px);
}

.mk-table__cell--bottom-left {
  border-bottom-left-radius: calc(var(--mk-card-radius) - 1px);
}

.mk-table__cell--bottom-right {
  border-bottom-right-radius: calc(var(--mk-card-radius) - 1px);
}

.mk-table__strong {
  color: var(--mk-color-text);
  font-weight: 650;
}

.mk-table__cell--actions {
  width: 124px;
  min-width: 124px;
}

.mk-table__button {
  min-height: 42px;
  padding: 0 var(--mk-space-5);
  font-size: var(--mk-font-size-xs);
  white-space: nowrap;
}

.mk-table__lines {
  display: grid;
  gap: var(--mk-space-1);
}

.mk-table__line {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mk-table__line--plain:first-child {
  color: var(--mk-color-text);
  font-weight: 650;
}

.mk-table__line--link {
  color: var(--mk-color-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(var(--mk-accent-rgb) / .26);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mk-table__line--link:hover,
.mk-table__line--link:focus-visible {
  color: var(--mk-color-accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
