/* Additions for the Django console that the carried-over design system does not have. */

/* Shown on every page while a staff member is acting as a salon user. */
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid #0a0f0a;
  background: var(--warn);
  color: #0a0f0a;
  font-size: 13px;
}

.impersonation-banner .btn {
  border-color: #0a0f0a;
  color: #0a0f0a;
  background: transparent;
  white-space: nowrap;
}

/* Admin console: a grid of label/value facts inside a section card. */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  font-size: 13px;
}

.facts dt {
  opacity: 0.6;
}

.facts dd {
  margin: 0;
  word-break: break-word;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.admin-grid .section-card {
  margin-bottom: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form input[type="text"],
.inline-form input[type="date"],
.inline-form select,
.resolve-form input[type="text"],
.resolve-form textarea {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--card);
  color: inherit;
  font: inherit;
  font-size: 13px;
}

.resolve-form textarea {
  width: 100%;
  min-height: 72px;
}

.resolve-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.table-wrap td.wrap {
  white-space: normal;
  max-width: 44ch;
}

/* Buttons that post a form, side by side in a table row. */
.row-actions {
  display: flex;
  gap: 8px;
}

/* Progress of a background "Add to Shopify" batch. */
.add-batch .body {
  flex: 1;
}

.batch-bar {
  position: relative;
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}

.batch-bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--forest);
  transition: width 0.4s ease;
}
