/* Page layouts from the UI rework (steps 3–5): the store's screens, a screen's own page, the sales
   settings' screen list, the gallery list and the supplier's bookings. Surfaces and colours: surfaces.css. */

/* Shared parts: a back link above the heading, actions beside it, tabs within a page, a two-way switch. */
.page-heading > .page-actions {
  margin-left: auto;
}
.crumb {
  margin: -8px 0 6px;
}
.crumb .text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0;
  font-weight: 600;
}
.crumb .icon {
  width: 16px;
  height: 16px;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.page-tabs {
  display: flex;
  /* On a phone the tabs wrap instead of scrolling, so none is hidden off the edge. */
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0 0 24px;
  border-block-end: 1px solid var(--color-line);
}
@media (max-width: 480px) {
  .page-tabs {
    column-gap: 18px;
  }
}
.page-tabs [role='tab'] {
  flex: none;
  min-height: 44px;
  margin-block-end: -1px;
  padding: 0;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}
.page-tabs [role='tab']:hover {
  background: none;
  color: var(--color-ink);
}
.page-tabs [role='tab'][aria-selected='true'] {
  border-block-end-color: var(--area, var(--color-accent));
  color: var(--color-ink);
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-tint-strong, #eeecf7);
}
.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
}
.segmented button:hover {
  background: rgb(255 255 255 / 0.6);
  color: var(--color-ink);
}
.segmented button[aria-pressed='true'] {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 1px 2px rgb(32 36 60 / 0.15);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}

/* Screens as tiles: the frame shows what the screen shows; the name opens the screen's own page. */
.store-screens-now {
  margin-top: 36px;
}
.store-screens-now > .section-heading,
.screen-facts > .section-heading {
  display: flex;
  /* Stays a wrapping row on phones too, so the heading keeps to the left edge like the rest of the page. */
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.screen-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.screen-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.screen-tile .monitor-stage {
  margin: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--area-soft, #eeecf7) 70%, var(--surface-page, #fff));
  transition: background 0.15s;
}
.screen-tile:hover .monitor-stage {
  background: var(--area-soft, #eeecf7);
}
.screen-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.screen-tile-text h3 {
  margin: 0;
  font-size: 15px;
}
.screen-tile-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}
.screen-tile-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-weight: 650;
  text-align: start;
}
.screen-tile-link:hover {
  background: none;
  color: var(--color-accent);
  text-decoration: underline;
}
/* The name's button covers the whole tile, so the picture is clickable too. */
.screen-tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
}
.screen-tile-link:focus-visible {
  outline: none;
}
.screen-tile-link:focus-visible::after {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.screen-tile-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px !important;
}
.screen-tile-status .screen-connection {
  margin: 0;
  font-size: 13px;
}

/* Screens as a list, with prices to compare. */
.table-scroll {
  overflow-x: auto;
}
.screens-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}
.screens-table th,
.screens-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line-soft, #e8e8f1);
  text-align: start;
  vertical-align: middle;
}
.screens-table thead th {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 650;
}
.screens-table tbody th {
  font-weight: 600;
}
.screens-table tbody th .text-action {
  min-height: 0;
  padding: 0;
  font-weight: 650;
}
.screens-table tbody th small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}
.screens-table .number {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.screens-table .screen-connection {
  margin: 0;
}

/* A screen's own page. */
.screen-page-heading p {
  margin-top: 4px;
}
.screen-tab-panel {
  min-height: 200px;
}
.loop-embedded-intro,
.display-embedded-intro {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--color-muted);
}
.screen-facts {
  margin-bottom: 28px;
}
.screen-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 28px;
  margin: 0;
}
.screen-facts dt {
  color: var(--color-muted);
  font-size: 12.5px;
}
.screen-facts dd {
  margin: 2px 0 0;
  font-weight: 500;
}

/* The screen's Pris och försäljning tab: what is left on top, then prices beside the sales state. */
.screen-tab-panel .sales-screen .sales-readiness {
  margin: 0 0 20px;
}
@container workspace (min-width: 900px) {
  .screen-tab-panel .sales-screen > form > fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px 32px;
    max-width: 60rem;
  }
  .screen-tab-panel .sales-screen > form > fieldset > :not(.sales-price-fields, .sales-state-fields) {
    grid-column: 1 / -1;
  }
}

/* Sales settings: each screen links to its own page, where its price and sales are set. */
.sales-screen-list {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft, #e8e8f1);
  list-style: none;
}
.sales-screen-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft, #e8e8f1);
}
.sales-screen-list a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--color-ink);
  text-decoration: none;
}
.sales-screen-list a strong {
  color: var(--color-accent);
}
.sales-screen-list a:hover strong {
  text-decoration: underline;
}
.sales-screen-list a span {
  color: var(--color-muted);
  font-size: 13px;
}

@media (max-width: 740px) {
  .page-actions {
    width: 100%;
  }
  .screen-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}
@media (max-width: 420px) {
  .screen-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-tile .monitor-stage {
    transition: none;
  }
}

/* Gallery: Ladda upp bild and Skapa med AI first and the AI balance at the end of one row; the upload form opens
   as a card below it. Then search and filters in one row, then the materials as rows or tiles. */
.gallery-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 20px;
}
.gallery-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-inline-end: auto;
}
.gallery-add .icon,
sv-media-gallery .gallery-upload .icon {
  width: 16px;
  height: 16px;
}
.gallery-add button,
sv-media-gallery .gallery-upload button[type='submit'] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-upload-toggle[aria-expanded='true'] {
  background: var(--color-accent-hover);
}
/* Köp fler AI-bilder follows the balance; its offer and messages open on their own row. */
.gallery-add > sv-ai-credits,
.gallery-add .ai-credits {
  display: contents;
}
.gallery-add .ai-credits > :is(.panel, .alert) {
  flex-basis: 100%;
  margin: 0;
}
sv-media-gallery .gallery-upload {
  margin: -6px 0 20px;
  padding: 18px 20px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
}
sv-media-gallery .gallery-upload[hidden] {
  display: none;
}
sv-media-gallery .gallery-upload fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
sv-media-gallery .gallery-upload label {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
}
sv-media-gallery .gallery-upload button[type='submit'] {
  flex: none;
  min-height: 46px;
}
/* The file field is as tall as the text fields beside it, with a button in the page's style. */
sv-media-gallery .gallery-upload input[type='file'] {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 46px;
}
sv-media-gallery .gallery-upload input[type='file']::file-selector-button {
  min-height: 44px;
  margin-inline-end: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control, 7px);
  background: var(--surface-tint-strong, #eeecf7);
  color: var(--color-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
sv-media-gallery .gallery-upload input[type='file']::file-selector-button:hover {
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
}
sv-media-gallery .gallery-upload .hint {
  margin: 12px 0 0;
  max-width: 72ch;
}
sv-media-gallery .gallery-upload-context {
  margin: 0 0 12px;
}
/* Bilder som skapas: a card whose rows have room on both sides, and a chevron instead of the browser's triangle. */
.ai-jobs {
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
}
.ai-jobs > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.ai-jobs > summary::-webkit-details-marker {
  display: none;
}
.ai-jobs > summary::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-inline-start: 2px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(-45deg);
}
.ai-jobs[open] > summary::before {
  transform: translateY(-2px) rotate(45deg);
}
.ai-jobs article,
.ai-jobs article:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 12px 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-muted, #f5f5fa);
}
.ai-jobs article small {
  margin-block-start: 4px;
}
@media (max-width: 600px) {
  .ai-jobs article,
  .ai-jobs article:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* On the grid, the add row is a toolbar; a line sets it apart from the collections below. */
sv-media-gallery > .gallery-add ~ sv-media-collections .collections-home {
  margin-block-start: 4px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--color-line);
}
.gallery-add-credits {
  justify-content: flex-start;
}
@media (max-width: 600px) {
  sv-media-gallery .gallery-upload {
    padding: 16px;
  }
  sv-media-gallery .gallery-upload button[type='submit'] {
    flex: 1 1 100%;
    justify-content: center;
  }
}
.ai-balance-inline {
  color: var(--color-muted);
  font-size: 13px;
}
.gallery-view {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}
.media-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft, #e8e8f1);
  list-style: none;
}
.media-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft, #e8e8f1);
}
/* Choosing for a screen: Välj, its scaling note or why an image does not fit share one column, so the formats line up. */
.media-rows.picking .media-row {
  grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 0.8fr) 19rem;
}
.media-rows.picking .media-row-actions {
  flex-wrap: nowrap;
}
/* The picker's hints keep a gap above the breadcrumb. */
sv-media-gallery > .gallery-intro {
  margin-block-end: 12px;
}
sv-media-gallery > .gallery-intro + .hint {
  margin-block: -6px 16px;
}
.media-row:hover {
  background: color-mix(in srgb, var(--area-soft, #f1eefa) 45%, transparent);
}
/* Archived or unfit material keeps readable text and working buttons; only the picture is dimmed. */
:is(.media-row.archived, .media-row.unfit, .media-tile.unfit) :is(.media-row-thumb, .media-tile-thumb) img {
  opacity: 0.45;
}
.media-row-thumb,
.media-tile-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--surface-tint-strong, #eeecf7);
  cursor: zoom-in;
}
.media-row-thumb {
  inline-size: 72px;
  block-size: 52px;
  min-height: 0;
  border-radius: 8px;
}
.media-row-thumb img,
.media-tile-thumb img {
  max-inline-size: 100%;
  max-block-size: 100%;
  inline-size: auto;
  block-size: auto;
  object-fit: contain;
}
.media-row-text,
.media-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.media-row-text strong,
.media-tile-text strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-row-text span,
.media-tile-text span {
  color: var(--color-muted);
  font-size: 12.5px;
}
.media-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  /* Half a one-line chip's height: one line is a pill, and a chip whose text wraps is a rounded box, not an oval. */
  border-radius: 15px;
  background: var(--surface-tint-strong, #eeecf7);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: start;
}
.format-chip:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.format-chip.unfit {
  color: var(--color-muted);
}
.format-chip > :is(.icon, .format-shape) {
  flex: none;
}
/*
 * The screens an image fits come first; its pixels follow, quieter. Each part starts with a gutter that holds the dot
 * between them, and the gutter at the start of a line is cut away: on one line the parts read "Passar Entrén · 1920 ×
 * 1080", and where the pixels go below the screens no dot is left hanging.
 */
.format-text {
  --format-gutter: 1.2em;
  display: flex;
  flex-wrap: wrap;
  min-inline-size: 0;
  margin-inline-start: calc(-1 * var(--format-gutter));
  clip-path: inset(0 0 0 var(--format-gutter));
}
.format-text > span {
  padding-inline-start: var(--format-gutter);
}
/*
 * With the icon beside the text a chip can be no narrower than its longest word, and a screen's name may be one long
 * word. Such a name is hyphenated, or broken where no hyphenation is known, so the chip stays inside a narrow tile.
 */
.media-formats > li {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.format-chip {
  max-inline-size: 100%;
}
.format-screens {
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* The pixels stay on one line wherever they fit; in a narrower chip they wrap rather than run past the cut edge. */
.format-pixels {
  position: relative;
}
.format-sep {
  position: absolute;
  inset-inline-start: 0;
  inline-size: var(--format-gutter);
  text-align: center;
}
.format-screens ~ .format-pixels {
  color: var(--color-muted);
  font-weight: 500;
}
.format-chip.format-missing .format-pixels {
  color: inherit;
}
/* A size the company's screens need but the material lacks: dashed, and a click makes it with AI. */
.format-chip.format-missing {
  /* The border is inside the chip's padding, so dashed and filled chips are equally tall. */
  padding: 2.5px 8.5px;
  border: 1.5px dashed color-mix(in srgb, var(--color-accent) 45%, var(--control-border, #a1a8bb));
  background: transparent;
  color: var(--color-accent);
}
.format-chip.format-missing:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.format-chip.format-missing .icon {
  width: 13px;
  height: 13px;
}
.quick-ai-dialog {
  width: min(560px, calc(100vw - 32px));
}
/* The button's icon sits on the text's line. */
.quick-ai-dialog button[type='submit'] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quick-ai-dialog button[type='submit'] .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.quick-ai-dialog form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.quick-ai-source {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.quick-ai-source img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 8px;
  background: #14212a;
}
.quick-ai-source p {
  margin: 0;
}
.ai-disclaimer {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--status-action-soft, #fdebd6);
  color: var(--status-action, #864210);
}
.format-shape {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.format-shape.landscape {
  inline-size: 14px;
  block-size: 9px;
}
.format-shape.portrait {
  inline-size: 8px;
  block-size: 13px;
}
.format-shape.square {
  inline-size: 11px;
  block-size: 11px;
}
.media-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.media-wrong-format {
  color: var(--color-muted);
  font-size: 12.5px;
}
/* Välj with a note when the image is scaled to the screen. */
.media-select {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.media-scale-note {
  max-inline-size: 13rem;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: end;
}
.media-actions-menu {
  position: relative;
}
.media-actions-menu > summary {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 10px;
  color: var(--color-ink);
  list-style: none;
  cursor: pointer;
}
.media-actions-menu > summary::-webkit-details-marker {
  display: none;
}
.media-actions-menu > summary:hover,
.media-actions-menu[open] > summary {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.media-actions-menu > summary .icon {
  width: 20px;
  height: 20px;
  margin: 0;
}
.media-actions-menu > .menu-panel {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  z-index: 30;
  min-inline-size: 250px;
}
.media-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 22px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.media-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}
.media-tile-thumb {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
/* Under the picture: the name with the ⋯ menu beside it, then the formats on a row of their own. */
.media-tile .media-tile-text {
  grid-column: 1;
  grid-row: 2;
}
.media-tile .media-row-actions {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.media-tile .media-formats {
  grid-column: 1 / -1;
  grid-row: 3;
}
@media (max-width: 740px) {
  .media-row,
  .media-rows.picking .media-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
  /*
   * On a phone the formats get the row's whole width under the picture and the name, as in a tile, so a chip's pixels
   * stay on one line; the ⋯ menu stays beside the name.
   */
  .media-row .media-formats {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .media-row .media-row-actions {
    grid-column: 3;
    grid-row: 1;
  }
  /* Choosing on a phone: Välj and its notes get a row of their own, so they never squeeze the name and formats. */
  .media-rows.picking .media-row .media-formats {
    grid-column: 2 / 3;
  }
  .media-rows.picking .media-row .media-row-actions {
    grid-column: 2 / -1;
    grid-row: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .media-row-thumb {
    inline-size: 64px;
    block-size: 48px;
  }
  .media-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

/* Settings read first: a short summary and Ändra, the form only while changing. */
.settings-summary {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}
.settings-summary dt {
  color: var(--color-muted);
  font-size: 12.5px;
}
.settings-summary dd {
  margin: 2px 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.sales-summary {
  align-self: start;
}

/* The supplier's bookings: the counts filter the list, and bookings are rows rather than cards. */
.workspace .booking-overview-item {
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--area-soft, #fcf1e4) 70%, var(--surface-page, #fff));
  color: var(--color-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.workspace .booking-overview-item:hover {
  background: var(--area-soft, #fcf1e4);
}
.workspace .booking-overview-item[aria-pressed='true'] {
  background: var(--area-soft, #fcf1e4);
  box-shadow: inset 0 0 0 2px var(--area, var(--color-accent));
}
.workspace .booking-overview-item span {
  font-weight: 600;
}
.workspace .booking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft, #e8e8f1);
}
.workspace .booking-list-item {
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--line-soft, #e8e8f1);
  border-radius: 0;
  background: transparent;
  font-weight: 400;
}
.workspace .booking-list-item:hover:not(:disabled) {
  background: color-mix(in srgb, var(--area-soft, #fcf1e4) 50%, transparent);
}
.workspace .booking-list-item small {
  color: var(--color-muted);
}
/* The booking guide's steps: back on the left, forward on the right; the review's back button sits above it. */
.booking-guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
}
.booking-guide-nav button,
.booking-guide-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.booking-guide-back {
  margin-bottom: 14px;
}
/* The material step: one group per proportion, its sizes in a line, and the collection choice folded below. */
.booking-format-sizes {
  margin: 4px 0 12px;
  color: var(--color-muted);
  font-size: 13px;
}
.booking-collection-option {
  margin-top: 18px;
}
.booking-collection-option > summary {
  font-weight: 600;
  cursor: pointer;
}
/* A sent booking: the figures as tiles, then the stores as one row each, grouped by how they answered. */
.workspace .booking-summary .booking-overview-item {
  cursor: default;
}
.workspace .booking-summary .booking-overview-item.done {
  background: var(--status-done-soft, #e4f3ea);
}
.workspace .booking-summary .booking-overview-item.done strong {
  color: var(--status-done, #1f7a46);
}
.workspace .booking-summary .booking-overview-item span {
  font-weight: 500;
  color: var(--color-muted);
}
.booking-summary-deadline {
  margin: 12px 0 0;
  color: var(--color-muted);
}
.booking-group-title {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--color-muted);
}
.booking-part {
  border-top: 1px solid var(--line-soft, #e8e8f1);
}
.booking-part:last-child {
  border-bottom: 1px solid var(--line-soft, #e8e8f1);
}
.booking-part > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 16px;
  min-height: 52px;
  padding: 8px 4px;
  list-style: none;
  cursor: pointer;
}
.booking-part > summary::-webkit-details-marker {
  display: none;
}
.booking-part > summary:hover {
  background: color-mix(in srgb, var(--area-soft, #fcf1e4) 50%, transparent);
}
.booking-part-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.booking-part-name::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 2px 2px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(-45deg);
  color: var(--color-muted);
}
.booking-part[open] > summary .booking-part-name::before {
  transform: translateY(-2px) rotate(45deg);
}
.booking-part-meta {
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}
.booking-part-body {
  padding: 4px 4px 18px 23px;
}
@media (max-width: 600px) {
  .booking-part > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .booking-part-meta {
    grid-column: 1 / -1;
    white-space: normal;
  }
}
/* Spara and Avbryt side by side in an open settings form. */
.sales-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* A count that needs the supplier's attention, such as unsent drafts, keeps its warning tone. */
.workspace .booking-overview-item.attention:not([aria-pressed='true']) {
  background: var(--status-action-soft);
}
/* The screen tile's picture carries what the screen shows right now, or that no TV shows it. */
.screen-tile-picture {
  position: relative;
  min-width: 0;
}
.screen-tile-picture .screen-now {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 10px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink, #1d1d2b) 82%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-tile-picture .monitor-frame > video {
  max-height: 290px;
}
/* The number of requests in a tab. */
.page-tabs .tab-count {
  margin-inline-start: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-tint-strong, #eeecf7);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
}
.request-rows .empty-tab {
  margin: 0;
  color: var(--color-muted);
}
/* The profile's only save stands at the end of the form; the way back is the crumb at the top. */
.store-form-actions-end button:first-child {
  margin-right: 0;
}
/* Phones: the tab row scrolls sideways with a fade at the edge instead of wrapping, and screen tiles are smaller. */
@media (max-width: 600px) {
  .page-tabs {
    flex-wrap: nowrap;
    gap: 0 20px;
    margin-inline: -16px;
    padding-inline: 16px 32px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .page-tabs::-webkit-scrollbar {
    display: none;
  }
  .page-tabs [role='tab'] {
    white-space: nowrap;
  }
  .screen-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .screen-tile .monitor-stage {
    padding: 8px;
    border-radius: 10px;
  }
  .screen-tile-text h3 {
    font-size: 14px;
  }
  .screen-tile-text p {
    font-size: 12px;
  }
  .screen-tile-picture .screen-now {
    inset-inline-start: 6px;
    inset-block-end: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 8px 2px 6px;
    font-size: 11px;
  }
}
