/* ===== Вкладка "Тарифы" (page-scoped) =================================== */
.table-wrapper {
  color: #000000;
}

/* Шапка */
.tariffs__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 1.125rem; /* 18px */
}
.tariffs__header h1 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
}

/* Комиссия агрегатора */
.commission {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  color: #707070;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 0.5rem; /* 8px */
  min-height: 1.75rem; /* 28px */
}
.commission strong {
  font-weight: 600;
  color: #333;
}
.commission__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.125rem; /* 2px */
}
.commission__input {
  width: 3.5ch;
  border: none !important;
  outline: none !important;
  background: transparent;
  font: inherit;
  text-align: right;
  padding: 0;
}
.commission__suffix {
  opacity: 0.9;
}
.table thead th{
  vertical-align: text-top;
}
.table thead th:first-child,
.table tbody td:first-child {
  text-align: left;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.td--money,
.td--unit {
  white-space: nowrap;
}

.td--right {
  text-align: right;
}

.icon-cell {
  width: 2rem; /* 32px */
}

/* Иконка */
.pencil-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 1.125rem; /* 18px */
  height: 1.125rem; /* 18px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.pencil-btn img {
  display: block;
  width: 1.125rem; /* 18px */
  height: 1.125rem; /* 18px */
  pointer-events: none;
  opacity: 0.85;
}
.pencil-btn:hover img {
  opacity: 1;
}

.rubl {
  padding-left: 0.25rem; /* 4px */
}

.unit,
.rubl {
  color: #333333;
}
.field--ghost{
  visibility: hidden;   /* место занимает, но не видно */
  pointer-events: none;
}
#commission-form{
  grid-template-columns: auto;
}
#commission-form #inp-commission{
  max-width: none;
}

.field--full {
  grid-column: 1 / -1;
  position: relative;
}
.field--full input:not([type="file"]) {
  max-width: none;
}

#tariff-modal {
  max-height: 90vh;
  overflow-y: auto;
}

.tariff-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tariff-photos__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #707070;
}
.tariff-photos__add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
}
.tariff-photos__add:focus {
  outline: none;
}
.tariff-photos__add:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 2px;
}
.tariff-photos__add.is-busy,
.tariff-photos__add.is-disabled {
  pointer-events: none;
}
.tariff-photos__add.is-busy {
  cursor: wait;
  opacity: 0.7;
}
.tariff-photos__add.is-disabled {
  opacity: 0.45;
  cursor: default;
}
#tariff-form .tariff-photos__file {
  display: none;
}
.tariff-photos__error {
  grid-column: 1 / -1;
  margin: 0;
  color: #d32525;
  font-size: 0.875rem;
}
.tariff-photos__empty {
  margin: 0;
  color: #999;
  font-size: 0.875rem;
}
.tariff-photo {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #f4f4f4;
}
.tariff-photo.is-cover {
  outline: 2px solid #cb9451;
  outline-offset: 1px;
}
.tariff-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tariff-photo__actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.55);
}
.tariff-photo__actions button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.5rem;
  cursor: pointer;
}
.tariff-photo__actions button:disabled {
  opacity: 0.35;
  cursor: default;
}
.tariff-photo__remove {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
}
#btn-add-tariff-photo {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 2.5rem;
  font-size: 0.9375rem !important;
}