/* screens_station.css — Direction A (Focus)
   Station resources / lease config screen styles (prices, catering types,
   packages, printer drivers). Owned by Slice U4.
   Add screen-specific selectors here; shared components live in components.css. */

/* ---------- page head: title block + primary action ---------- */
.st-pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.st-pagehead h1.page {
  margin: 0;
}

/* ---------- card-wrapped data table ---------- */
.st-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.st-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.st-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.st-table tbody tr:last-child td {
  border-bottom: none;
}

.st-table .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.st-table .muted {
  color: var(--muted);
}

/* row action cluster */
.st-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* Row actions are small bordered buttons (not bare text links), matching the
   styled action pattern used elsewhere in the app. */
.st-actions a,
.st-actions .link-danger {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: .15s;
}

.st-actions a:hover {
  border-color: #c9c7ba;
  text-decoration: none;
}

.st-actions form {
  display: inline;
  margin: 0;
}

/* The destructive action reads as a danger button, not a plain red link. */
.st-actions .link-danger {
  color: var(--red);
  border-color: #e0b8b2;
}

.st-actions .link-danger:hover {
  background: #f6ebe9;
  text-decoration: none;
}

/* ---------- forms ---------- */
.st-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 560px;
}

.st-field {
  margin-bottom: 18px;
}

.st-field:last-of-type {
  margin-bottom: 0;
}

.st-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
}

.st-field input[type="text"],
.st-field input[type="number"],
.st-field input[type="date"],
.st-field input[type="file"],
.st-field select,
.st-field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  transition: .15s;
}

.st-field input:focus,
.st-field select:focus,
.st-field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

.st-field textarea {
  resize: vertical;
  line-height: 1.5;
}

/* inline checkbox row */
.st-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-check label {
  margin: 0;
}

.st-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--clay);
}

.st-field .hint {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 2px 0;
}

/* form footer: submit + back */
.st-formfoot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.st-formfoot input[type="submit"],
.st-formfoot button[type="submit"] {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 22px;
  cursor: pointer;
  border: 1px solid var(--clay);
  background: var(--clay);
  color: #fff;
  transition: .15s;
}

.st-formfoot input[type="submit"]:hover,
.st-formfoot button[type="submit"]:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
}

.st-back {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.st-back:hover {
  color: var(--ink);
}

/* ---------- validation errors ---------- */
.st-errors {
  background: var(--clay-soft);
  border: 1px solid #f1c4ab;
  color: var(--clay-deep);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.st-errors p {
  margin: 0 0 6px;
  font-weight: 700;
}

.st-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* ---------- definition / detail view (catering type show) ---------- */
.st-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 560px;
}

.st-detail .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.st-detail .row:first-child {
  padding-top: 0;
}

.st-detail .row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.st-detail dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.st-detail dd {
  margin: 0;
  font-size: 15px;
}

/* ---------- content page (packages & deliveries) ---------- */
.st-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  max-width: 720px;
  line-height: 1.65;
  font-size: 15.5px;
}

.st-content p {
  margin: 0 0 14px;
}

.st-content p:last-child {
  margin-bottom: 0;
}

/* ---------- notes / empty states ---------- */
.st-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

.st-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- settings hub ---------- */
.st-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.st-settings-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  color: inherit;
}

.st-settings-tile:hover {
  border-color: var(--ink);
}

.st-settings-tile h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.st-settings-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- immutable field value / back row ---------- */
.st-readonly {
  margin: 0;
  padding: 10px 12px;
  background: var(--soft, #f4f4f5);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}

.st-back-row {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .st-settings-grid {
    grid-template-columns: 1fr;
  }

  .st-pagehead {
    flex-direction: column;
    align-items: stretch;
  }

  .st-table {
    font-size: 13px;
  }

  .st-table thead th,
  .st-table tbody td {
    padding: 12px 13px;
  }

  .st-form,
  .st-detail,
  .st-content {
    padding: 20px;
  }
}
