.ylhq-realflow-page {
  width: 100%;
  max-width: 100%;
  margin: 40px 0;
  padding: 0;
  color: #1f2933;
  font-family: inherit;
}

.ylhq-realflow-header,
.ylhq-realflow-search,
.ylhq-realflow-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ylhq-realflow-header {
  margin-bottom: 18px;
}

.ylhq-realflow-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.ylhq-realflow-search {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.ylhq-realflow-bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 4px;
  background: #f8fafc;
}

.ylhq-realflow-bulk-actions span {
  margin-right: auto;
  font-weight: 600;
  color: #334e68;
}

.ylhq-realflow-search input {
  width: min(420px, 100%);
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd5df;
  border-radius: 4px;
}

.ylhq-realflow-page button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  background: #ffc523;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.ylhq-realflow-page button:hover,
.ylhq-realflow-page button:focus {
  background: #eda700;
  color: #fff;
}

.ylhq-realflow-page button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ylhq-realflow-refresh,
.ylhq-realflow-pagination button {
  background: #4b5563;
}

.ylhq-realflow-message {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 4px;
  background: #fff4cc;
  color: #5f4300;
}

.ylhq-realflow-message.is-error {
  background: #fde8e8;
  color: #9b1c1c;
}

.ylhq-realflow-modal[hidden] {
  display: none;
}

.ylhq-realflow-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, .45);
}

.ylhq-realflow-modal__panel {
  width: min(460px, 100%);
  padding: 20px;
  border: 1px solid #ead27f;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.ylhq-realflow-modal__panel h2 {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.ylhq-realflow-modal__panel p {
  margin: 0 0 16px;
  color: #334e68;
  font-weight: 600;
}

.ylhq-realflow-modal__option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #1f2933;
  font-weight: 600;
}

.ylhq-realflow-modal__option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.ylhq-realflow-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ylhq-realflow-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.ylhq-realflow-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ylhq-realflow-table th,
.ylhq-realflow-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5edf5;
  text-align: left;
  vertical-align: middle;
}

.ylhq-realflow-table th {
  background: #f4f7fb;
  color: #334e68;
  font-size: 14px;
}

.ylhq-realflow-table td {
  font-size: 15px;
}

.ylhq-realflow-select-column {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.ylhq-realflow-select-column input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.ylhq-realflow-pagination {
  justify-content: flex-end;
  margin-top: 16px;
}

.ylhq-realflow-table td:last-child {
  min-width: 238px;
}

.ylhq-realflow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ylhq-realflow-actions button {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ylhq-realflow-page {
    margin: 28px auto;
  }

  .ylhq-realflow-header h1 {
    font-size: 24px;
  }

  .ylhq-realflow-header,
  .ylhq-realflow-search,
  .ylhq-realflow-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .ylhq-realflow-page button,
  .ylhq-realflow-search input {
    width: 100%;
  }
}
