/* Console page styles on top of ganguruu-shell.css */

.shell-console #gate {
  max-width: 28rem;
}

.shell-console .switcher {
  margin-bottom: 1rem;
}

.shell-console ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.shell-console li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.shell-console li span { color: var(--moss); }

.shell-console form { display: grid; gap: 0.7rem; }

.shell-console label { display: grid; gap: 0.25rem; font-weight: 700; }

.shell-console input,
.shell-console select,
.shell-console textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink);
  background: #fffaf1;
  color: var(--ink);
}

.shell-console button {
  justify-self: start;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--saffron);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.shell-console button.quiet,
.shell-console a {
  background: transparent;
  color: var(--ink);
}

.shell-console .error {
  min-height: 1.2rem;
  margin: 0;
  color: #8a2b16;
}

#record-text { white-space: pre-wrap; margin: 0 0 0.8rem; }

.shell-console pre {
  margin: 0.8rem 0 0;
  padding: 0.8rem;
  white-space: pre-wrap;
  background: var(--moss);
  color: #f7f0e2;
}

.shell-console .quiet { margin-top: 0.4rem; }

/* Hide inactive console views when shell is driving */
.shell-console #app[data-focus="units"] #people,
.shell-console #app[data-focus="units"] #tenants { display: none !important; }

.shell-console #app[data-focus="people"] #units,
.shell-console #app[data-focus="people"] #tenants,
.shell-console #app[data-focus="people"] #record { display: none !important; }

.shell-console #app[data-focus="tenants"] #units,
.shell-console #app[data-focus="tenants"] #people,
.shell-console #app[data-focus="tenants"] #record { display: none !important; }

#tenant-list .tenant-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

#tenant-list .tenant-unit-count {
  margin: 0;
  flex: 1 1 auto;
}
