.pipe-schedule-app {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pipe-schedule-app__bar,
.pipe-schedule-panel {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 16px;
  box-shadow: var(--shadow-soft, 0 16px 40px rgba(24, 39, 75, 0.08));
}

.pipe-schedule-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.pipe-schedule-app__bar h2,
.pipe-schedule-section-head h3 {
  margin: 0;
  color: var(--ink, #1d2733);
  font-size: 1.12rem;
  line-height: 1.3;
}

.pipe-schedule-app__bar p {
  margin: 6px 0 0;
  color: var(--muted, #667085);
  line-height: 1.55;
}

.pipe-schedule-app__eyebrow {
  margin: 0 0 6px;
  color: var(--primary, #005a9c);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipe-schedule-badge {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 12px;
  background: var(--color-primary-softer, #eef6ff);
  color: var(--primary, #005a9c);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.pipe-schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pipe-schedule-panel {
  padding: 22px;
}

.pipe-schedule-form {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(0, 90, 156, 0.035), rgba(255, 255, 255, 0)),
    var(--color-surface, #ffffff);
}

.pipe-schedule-input-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.pipe-schedule-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pipe-schedule-field label {
  color: var(--ink, #1d2733);
  font-size: 0.86rem;
  font-weight: 800;
}

.pipe-schedule-field select,
.pipe-schedule-result-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 12px;
  background: var(--color-surface, #ffffff);
  color: var(--ink, #1d2733);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.pipe-schedule-field select {
  font-weight: 800;
}

.pipe-schedule-field select:focus,
.pipe-schedule-result-card select:focus {
  border-color: var(--color-primary-hover, #2374b7);
  box-shadow: 0 0 0 4px var(--color-state-focus-ring, rgba(35, 116, 183, 0.14));
}

.pipe-schedule-message {
  min-height: 20px;
  color: var(--muted, #667085);
  font-size: 0.88rem;
  font-weight: 700;
}

.pipe-schedule-message.is-error {
  color: #9b2727;
}

.pipe-schedule-message.is-success {
  color: #12623c;
}

.pipe-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pipe-schedule-actions--compact {
  justify-content: flex-end;
}

.pipe-schedule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 12px;
  background: var(--color-surface, #ffffff);
  color: var(--ink, #1d2733);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.pipe-schedule-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--color-state-focus-outline, #8fbce3);
  box-shadow: var(--shadow-soft, 0 16px 40px rgba(24, 39, 75, 0.08));
}

.pipe-schedule-button--primary {
  border-color: transparent;
  background: var(--color-primary, #005a9c);
  color: var(--color-on-primary, #ffffff);
}

.pipe-schedule-button--danger {
  color: #9b2727;
}

.pipe-schedule-button:disabled {
  background: var(--color-state-disabled-bg, #eef2f6);
  color: var(--color-state-disabled-text, #98a2b3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pipe-schedule-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pipe-schedule-section-head p {
  margin: 5px 0 0;
  color: var(--muted, #667085);
  font-size: 0.9rem;
}

.pipe-schedule-section-head--actions {
  align-items: center;
}

.pipe-schedule-results {
  padding-top: 20px;
}

.pipe-schedule-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pipe-schedule-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  min-height: 146px;
  padding: 16px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 14px;
  background: var(--gradient-surface, linear-gradient(180deg, #ffffff, #f8fbff));
}

.pipe-schedule-result-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary, #005a9c);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.pipe-schedule-result-card__value {
  min-height: 36px;
  color: var(--ink, #1d2733);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pipe-schedule-result-card__hint {
  margin-top: 6px;
  color: var(--muted, #667085);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pipe-schedule-result-card select {
  min-width: 0;
  font-weight: 800;
}

.pipe-schedule-result-card--empty {
  grid-column: 1 / -1;
  color: var(--muted, #667085);
  font-weight: 700;
}

.pipe-schedule-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 14px;
}

.pipe-schedule-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: var(--color-surface, #ffffff);
}

.pipe-schedule-table th,
.pipe-schedule-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border, #d7e0ea);
  color: var(--ink, #1d2733);
  font-size: 0.86rem;
  text-align: left;
  white-space: nowrap;
}

.pipe-schedule-table th {
  background: var(--color-primary-800, #063b63);
  color: var(--color-on-primary, #ffffff);
  font-weight: 800;
}

.pipe-schedule-table tbody tr:nth-child(even) td {
  background: var(--color-primary-softer, #eef6ff);
}

.pipe-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.pipe-schedule-table__empty {
  color: var(--muted, #667085) !important;
  font-weight: 700;
  text-align: center !important;
}

.pipe-schedule-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 10px;
  background: var(--color-surface, #ffffff);
  color: #9b2727;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .pipe-schedule-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pipe-schedule-app__bar,
  .pipe-schedule-section-head,
  .pipe-schedule-section-head--actions,
  .pipe-schedule-input-row,
  .pipe-schedule-result-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pipe-schedule-badge {
    width: 100%;
  }

  .pipe-schedule-actions,
  .pipe-schedule-actions--compact,
  .pipe-schedule-button {
    width: 100%;
  }

  .pipe-schedule-result-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pipe-schedule-result-card select {
    min-width: 0;
  }
}
