sv-platform-workspace {
  display: block;
}
sv-platform-workspace .icon {
  width: 20px;
  height: 20px;
  flex: none;
}
sv-platform-workspace .hint,
.admin-attention p {
  margin-top: 0;
}
.admin-back {
  display: inline-block;
  margin-bottom: 1rem;
}
.admin-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-toolbar label {
  flex: 1;
  min-width: min(220px, 100%);
  margin: 0;
}
.admin-toolbar small {
  margin-left: auto;
  align-self: center;
  color: #626980;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: #fff;
  border: 1px solid #e0e3ef;
  border-radius: 0.8rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-stat > span {
  color: #5e647a;
  font-size: 0.9rem;
}
.admin-stat > strong {
  font-size: 2.2rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #292540;
}
.admin-stat small {
  color: #656b7d;
  line-height: 1.5;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.admin-detail-grid > .panel {
  margin: 0 0 1.5rem;
  min-width: 0;
}
.admin-account-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}
.admin-account-heading h2 {
  font-size: 1.6rem;
  margin: 0.5rem 0;
}
.admin-credit-balance {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid #e6e8f0;
  margin-bottom: 1.5rem;
}
.admin-credit-balance > strong {
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  color: #5142a0;
}
.admin-credit-balance small {
  display: block;
  color: #626980;
  margin-top: 0.4rem;
}
.admin-account-list,
.admin-screen-list,
.admin-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-account-list > li,
.admin-screen-list > li {
  display: flex;
  align-items: start;
  gap: 1rem;
  border-top: 1px solid #e6e8f0;
  padding: 1.25rem 0;
}
.admin-account-list > li > div:first-child {
  flex: 1;
}
.admin-account-list small,
.admin-account-list span,
.admin-screen-list small,
.admin-screen-list > li > div > span,
.admin-screen-list > li > div > strong {
  display: block;
}
.admin-account-list small,
.admin-screen-list small {
  color: #626980;
  margin: 0.35rem 0;
}
.admin-screen-list > li > div {
  flex: 1;
  min-width: 0;
}
.admin-screen-list ul {
  padding-left: 1.1rem;
  margin: 0.7rem 0 0;
  color: #6c5a33;
  line-height: 1.7;
}
.admin-screen-list .badge {
  display: inline-block;
}
.admin-screen-list .good {
  background: #eaf4ed;
  color: #275a3a;
}
.admin-trend {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.8rem 0 1rem;
  margin-bottom: 1rem;
}
.admin-trend > div {
  flex: 1 0 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.admin-trend meter {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 18px;
  height: 90px;
  accent-color: #5142a0;
}
.admin-trend small {
  color: #656b7d;
  font-size: 0.7rem;
}
.admin-table-wrap {
  overflow: auto;
}
.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.admin-table-wrap th,
.admin-table-wrap td {
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid #e6e8f0;
  vertical-align: top;
}
.admin-table-wrap th {
  font-size: 0.85rem;
  color: #626980;
}
.admin-table-wrap td small {
  display: block;
  margin-top: 0.3rem;
}
.admin-history > li {
  padding: 1rem 0;
  border-bottom: 1px solid #e6e8f0;
  overflow-wrap: anywhere;
}
.admin-history small {
  display: block;
  margin-top: 0.3rem;
  color: #626980;
}
.admin-history details {
  margin: 0.6rem 0 0;
}
sv-platform-workspace details > summary {
  padding: 0.6rem 0;
}
sv-platform-workspace form label {
  margin-bottom: 1rem;
}
@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 620px) {
  .admin-stats {
    gap: 0.6rem;
  }
  .admin-stat {
    padding: 1rem;
  }
  .admin-screen-list > li,
  .admin-account-heading {
    flex-direction: column;
  }
  .admin-screen-list > li > div {
    width: 100%;
  }
  .admin-account-list > li {
    flex-wrap: wrap;
  }
}
sv-platform-workspace fieldset,
.store-location fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.admin-trend:focus-visible {
  outline: 2px solid #5142a0;
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.admin-activation-queue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-left: 3px solid var(--color-accent);
}
.admin-activation-queue h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.admin-activation-queue p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 6px;
}
.admin-activation-queue small {
  color: var(--color-muted);
}
.admin-activation-queue button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.account-activation-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid #ded8ef;
  border-radius: 10px;
  background: #f0edf8;
}
.account-activation-notice > div {
  flex: 1;
  min-width: 0;
}
.account-activation-notice strong {
  display: block;
  overflow-wrap: anywhere;
}
.account-activation-notice p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}
.activation-status-icon {
  color: var(--color-accent);
  flex: none;
}
.activation-status-icon .icon {
  width: 22px;
  height: 22px;
}
@media (max-width: 700px) {
  .admin-activation-queue {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-activation-notice {
    flex-wrap: wrap;
    padding: 18px;
  }
}
.admin-screen-list > li:has(> .admin-video-support) {
  flex-wrap: wrap;
}
.admin-video-support {
  flex-basis: 100%;
}
.admin-video-support summary {
  cursor: pointer;
  font-weight: 600;
}
/* Affärsinställningar: one form in sections, each a card; the fieldset only disables them while saving. */
.settings-sections {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.settings-sections > .panel {
  margin: 0;
}
.settings-sections h2 {
  margin-top: 0;
}
.settings-stop {
  border-inline-start: 4px solid var(--status-action, #d8891c);
}
/* Prices, discounts and the dynamic table in one column; capacity, compensation, AI and the stop in the other. Each column
   stacks on its own; the review spans both. */
.settings-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.settings-column > .panel {
  margin: 0;
}
@container workspace (min-width: 900px) {
  .settings-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .settings-sections > .settings-confirm {
    grid-column: 1 / -1;
  }
}
/* Fields as wide as the numbers they hold, side by side while they fit. */
.settings-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px 20px;
}
.settings-fields > label {
  flex: 0 1 12.5rem;
  min-width: min(100%, 9rem);
  margin: 0;
}
.settings-discounts > label {
  flex-basis: 7.5rem;
  min-width: min(100%, 7rem);
}
.settings-sections .hint {
  margin: 0 0 16px;
}
.settings-sections h2 + .hint {
  margin-top: -4px;
}
.settings-confirm label {
  max-inline-size: 40rem;
}
.settings-confirm textarea {
  inline-size: 100%;
}
.settings-confirm > button {
  margin-top: 12px;
}
.settings-preview {
  margin-top: 16px;
}
