.currency-rates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.currency-rates-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.currency-rates-header-actions .send-button,
.currency-rates-header-actions .secondary-button {
  width: auto;
  min-width: 148px;
}

.currency-rates-instruction {
  margin-bottom: 16px;
}

.currency-rates-instruction .client-prototype-block-title {
  align-items: flex-start;
  margin-bottom: 4px;
}

.currency-rates-instruction .client-prototype-block-title h3 {
  margin-bottom: 4px;
}

.currency-rates-instruction-block {
  display: grid;
  gap: 4px;
}

.currency-rates-instruction-block > strong {
  color: #1e3a8a;
  font-size: 13px;
}

.currency-rates-instruction-block ul {
  margin: 0;
}

.currency-rates-card {
  overflow: hidden;
}

.currency-rates-filters-card {
  margin-bottom: 12px;
}

.currency-rates-filters-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.currency-rates-filters-grid > button {
  width: auto;
  min-width: 148px;
}

.currency-rates-filters-grid .auth-input,
.currency-rates-filters-grid .custom-select-button,
.currency-rates-filters-grid > button {
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
}

.currency-rates-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.currency-rates-card-heading h3 {
  margin: 0 0 4px;
}

.currency-rates-table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.currency-rates-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.currency-rates-table th,
.currency-rates-table td {
  overflow: hidden;
  padding: 9px 6px;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-rates-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  font-size: 11px;
}

.currency-rates-table th:nth-child(1),
.currency-rates-table td:nth-child(1) {
  width: 8%;
}

.currency-rates-table th:nth-child(2),
.currency-rates-table td:nth-child(2) {
  width: 16%;
}

.currency-rates-table th:nth-child(3),
.currency-rates-table td:nth-child(3) {
  width: 12%;
}

.currency-rates-table th:nth-child(n + 4),
.currency-rates-table td:nth-child(n + 4) {
  width: 10.66%;
}

.currency-rates-table th:nth-child(n + 4),
.currency-rates-table td:nth-child(n + 4) {
  border-left: 1px solid #e2e8f0;
}

.currency-rates-table .google-sheets-log-status {
  max-width: 100%;
}

.currency-rates-error-row td {
  width: auto;
  max-width: none;
  padding: 0 6px 9px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

@media (max-width: 1100px) {
  .currency-rates-table th,
  .currency-rates-table td {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .currency-rates-header,
  .currency-rates-header-actions,
  .currency-rates-instruction .client-prototype-block-title {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .currency-rates-header-actions .send-button,
  .currency-rates-header-actions .secondary-button,
  .currency-rates-instruction .client-prototype-block-title button {
    width: 100%;
  }

  .currency-rates-table {
    min-width: 860px;
  }

  .currency-rates-filters-grid {
    grid-template-columns: 1fr;
  }

  .currency-rates-date-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .currency-rates-date-field input[type="date"].auth-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 8px 12px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    line-height: 20px;
  }

  .currency-rates-date-field input[type="date"].auth-input::-webkit-date-and-time-value {
    display: block;
    min-height: 20px;
    text-align: left;
  }

  .currency-rates-filters-grid > button {
    width: 100%;
  }
}
