/* Connectors page (ticket 708), route #/connectors: the fleet table, plus ticket 713's Add
   Connector panel above it. The table reuses table.data, .section and .table-scroll from
   console.css; the panel reuses .login-label/.login-input/.login-error and .btn there. A row
   opens its detail page through the Name link (ticket 757), so the pointer cursor table.data
   gives the whole row is undone. */

table.connectors-table tbody tr {
  cursor: default;
}

/* Status chips (ticket 720): the entities.css pill shape, scoped to this table, tinted per
   status with the page's own variables. */
.connectors-table .chip,
.connector-detail .chip {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  white-space: nowrap;
}

.connectors-table .chip--online,
.connector-detail .chip--online {
  color: var(--st-2xx);
  border-color: var(--st-2xx);
}

.connectors-table .chip--offline,
.connector-detail .chip--offline {
  color: var(--st-5xx, var(--ink-muted));
  border-color: var(--st-5xx, var(--border-strong));
}

.connectors-table .chip--never,
.connectors-table .chip--removed,
.connector-detail .chip--never,
.connector-detail .chip--removed {
  color: var(--ink-muted);
  border-color: var(--border-strong);
}

/* Paused (ticket 866) sits beside the status chip: the Connector is up but answers nothing. */
.connectors-table .chip--paused,
.connector-detail .chip--paused {
  margin-left: 0.35rem;
  color: var(--st-4xx, var(--ink-muted));
  border-color: var(--st-4xx, var(--border-strong));
}

.connector-pause {
  margin: 0.8rem 0;
}

/* The version and clock warning lines under a Version cell (ticket 720). */
.connectors-warning {
  margin-top: 0.15rem;
  font-size: var(--fs-2xs);
  color: var(--st-4xx, var(--ink-muted));
}

.connectors-add {
  margin: 0 0 1.2rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 0.7rem);
  background: var(--panel-deep);
  color: var(--ink);
}

.connectors-add__title {
  margin: 0 0 0.6rem;
  font-size: var(--fs-sm);
}

.connectors-add__form,
.connectors-add__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
}

.connectors-add__command,
.connectors-add__install {
  flex: 1 1 24rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: 0.3rem 0.55rem;
  background: var(--panel-deep);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
}

.connectors-add__title--later {
  margin-top: 0.9rem;
}

/* `.login-label { display: flex }` (console.css) beats the browser's `[hidden] { display: none }`,
   so the address field would stay on screen when the server fixes the address. */
.connectors-add .login-label[hidden] {
  display: none;
}

/* The Deploy to AWS block's parameter table (ticket 1009). */
.connectors-add__params {
  width: 100%;
  margin-top: 0.6rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.connectors-add__params th,
.connectors-add__params td {
  padding: 0.25rem 0.5rem 0.25rem 0;
  text-align: left;
  vertical-align: top;
}

.connectors-add__param {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.connectors-add__steps {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  font-size: var(--fs-sm);
}

.connectors-add__hint {
  margin: 0.5rem 0 0;
  font-size: var(--fs-2xs);
  color: var(--ink-muted);
}

.connectors-add .login-error {
  margin-bottom: 0.6rem;
}

.connectors-actions {
  white-space: nowrap;
}

.connector-detail__section,
.connector-remove {
  margin-top: 1.5rem;
}

.connector-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.connector-detail p,
.connector-detail td {
  overflow-wrap: anywhere;
}

.connector-remove__confirm {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 0.7rem);
}

.connector-checks__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.75rem;
}

.connector-checks__row .login-input {
  width: 8rem;
}

.connector-checks__row .login-error {
  flex-basis: 100%;
}

.connector-checks__stranded {
  overflow-wrap: anywhere;
}

/* Add Connector's "Where it stands" row (docs/design/console-towers.md): provider, region and site
   side by side under one label, so the form keeps its single row on a wide screen. */
.connectors-add__location {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.4rem;
}

.connectors-add__location > span {
  flex-basis: 100%;
}

.connectors-add__location > select,
.connectors-add__location > input {
  width: auto;
  min-width: 9rem;
  flex: 1 1 9rem;
}
