.quote-rule-host-block {
  margin-top: 12px;
  border-top: 1px solid #dbe4ef;
}

.quote-rule-host-block > summary {
  padding: 12px 2px;
  color: #17365f;
  font-weight: 700;
  cursor: pointer;
}

.quote-rule-host-table-wrap {
  overflow: auto;
  max-height: 520px;
  border: 1px solid #dbe4ef;
  background: #fff;
}

.quote-rule-host-table-wrap > button {
  margin: 8px;
}

.quote-rule-host-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.quote-rule-host-table.wide {
  min-width: 980px;
}

.quote-rule-host-table th,
.quote-rule-host-table td {
  padding: 6px 8px;
  border-right: 1px solid #dbe4ef;
  border-bottom: 1px solid #dbe4ef;
  text-align: left;
  white-space: nowrap;
}

.quote-rule-host-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef4fb;
  color: #17365f;
}

.quote-rule-host-table input:not([type="checkbox"]),
.quote-rule-host-table select {
  width: 100%;
  min-width: 120px;
  min-height: 32px;
  border: 1px solid #dbe4ef;
  padding: 5px 7px;
  background: #fff;
}

.quote-rule-host-table td:first-child input,
.quote-rule-host-table td:first-child b {
  min-width: 190px;
}

.quote-rule-host-table td:last-child input:not([type="checkbox"]) {
  min-width: 260px;
}

.quote-rule-host-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.quote-rule-host-form-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #334155;
  font-size: 12px;
}

.quote-rule-host-form-grid label.checkline {
  display: flex;
  align-items: center;
  min-height: 38px;
}

.quote-rule-host-form-grid input:not([type="checkbox"]) {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #dbe4ef;
  padding: 6px 8px;
  background: #fff;
}

@media (max-width: 1000px) {
  .quote-rule-host-form-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .quote-rule-host-form-grid {
    grid-template-columns: 1fr;
  }
}
