#admin-view {
  max-width: 1480px;
  padding: 32px 30px 50px;
}
body[data-screen='admin'] .header-middle {
  display: none;
}
body[data-screen='admin'] .admin-entry {
  display: none;
}
.bo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 24px;
}
.bo-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
.bo-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.bo-heading > button {
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.bo-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.bo-nav > button {
  border: 0;
  font-size: 12px;
}
.bo-nav > button[aria-pressed='true'] {
  background: var(--active);
  color: var(--accent);
}
.bo-nav > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.bo-workload {
  display: flex;
  gap: 0;
  padding: 21px 0;
  margin-bottom: 8px;
}
.bo-workload > button {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 9px 18px;
  border-right: 1px solid var(--line);
  background: white;
  text-align: left;
}
.bo-workload > button:first-child {
  padding-left: 0;
}
.bo-workload > button:last-child {
  border: 0;
}
.bo-workload > button strong {
  font-size: 25px;
  font-weight: 600;
}
.bo-workload > button span {
  font-size: 10px;
  color: var(--muted);
}
.bo-workload > button[aria-pressed='true'] span {
  color: var(--accent);
  font-weight: 600;
}
.bo-workload > .warning-stat strong {
  color: var(--warn);
}
.bo-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.order-queue {
  position: sticky;
  top: 15px;
  min-width: 0;
}
.queue-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 15px;
}
.queue-title h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.queue-title > span {
  font-size: 10px;
  color: var(--muted);
}
.queue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.queue-filter button,
.queue-filter select {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}
.queue-filter select {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.queue-filter button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.queue-count {
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0 10px;
}
.queue-card {
  width: 100%;
  display: block;
  border-radius: 9px;
  padding: 16px;
  text-align: left;
  margin: 0 0 11px;
  line-height: 1.5;
}
.queue-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #fcfdff;
}
.queue-card .row > strong {
  font-size: 12px;
}
.queue-card > span:not(.row) {
  display: block;
}
.queue-customer {
  font-size: 15px;
  font-weight: 600;
  margin-top: 13px;
}
.queue-reference {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.queue-product {
  font-size: 11px;
  margin-top: 13px;
}
.queue-size {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.queue-places {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.queue-warning {
  font-size: 10px;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 4px;
  padding: 5px 7px;
  margin-top: 11px;
}
.bo-status {
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: var(--work);
  color: var(--muted);
  font-weight: 500;
}
.bo-status.held {
  background: var(--warn-bg);
  color: var(--warn);
}
.bo-status.working {
  background: var(--active);
  color: var(--accent);
}
.bo-status.done {
  background: #edf6f1;
  color: #35644c;
}
.order-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
  background: white;
}
.order-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.order-title h2 {
  font-size: 24px;
}
.order-title p {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.order-tools {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.order-tools > button {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 33px;
  font-size: 10px;
  padding: 7px 10px;
}
.order-tools .icon {
  width: 15px;
  height: 15px;
}
.order-tools > button[aria-pressed='true'] {
  background: var(--active);
  color: var(--accent);
  border-color: transparent;
}
.workflow-track {
  display: flex;
  gap: 4px;
  margin: 24px 0;
}
.workflow-track > span {
  position: relative;
  flex: 1;
  font-size: 9px;
  text-align: center;
  color: #9da3af;
  display: grid;
  justify-items: center;
  gap: 7px;
  z-index: 0;
}
.workflow-track > span:before {
  content: '';
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  z-index: -1;
}
.workflow-track > span:first-child:before {
  display: none;
}
.workflow-track i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--work);
  border: 2px solid white;
  outline: 1px solid var(--line);
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-style: normal;
}
.workflow-track .reached {
  color: var(--ink);
}
.workflow-track .reached i {
  background: var(--accent);
  outline-color: var(--accent);
  color: white;
}
.production-boundary {
  display: grid;
  gap: 4px;
  background: var(--work);
  border-left: 3px solid #9aa5bb;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  font-size: 11px;
  margin: 18px 0;
}
.production-boundary > span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.order-hold {
  background: var(--warn-bg);
  padding: 15px;
  color: var(--warn);
  border-radius: 8px;
  font-size: 12px;
}
.order-hold p {
  font-size: 11px;
  line-height: 1.7;
  margin: 7px 0 11px;
}
.order-hold button {
  font-size: 10px;
  background: white;
  min-height: 32px;
  border: 0;
  padding: 7px 10px;
}
.brief-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px;
}
.brief-heading h3 {
  font-size: 14px;
}
.brief-heading > span {
  font-size: 9px;
  color: var(--muted);
}
.brief-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}
.brief-product h3 {
  font-size: 17px;
}
.brief-product h3 > span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.brief-product p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.brief-sizes {
  display: flex;
  gap: 5px;
}
.brief-sizes > span {
  display: grid;
  min-width: 37px;
  text-align: center;
  background: var(--work);
  border-radius: 5px;
  padding: 6px;
  gap: 2px;
}
.brief-sizes small {
  font-size: 9px;
  color: var(--muted);
}
.brief-sizes strong {
  font-size: 15px;
}
.place-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.place-brief {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.place-brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.place-brief-top h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.place-brief-top > span {
  font-size: 9px;
  color: var(--muted);
}
.place-brief .mini-preview {
  border: 0;
  border-radius: 0;
}
.place-orientation {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 24px;
  margin: 7px 0;
}
.item-spec {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 9px 0 3px;
}
.item-spec strong {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.item-spec span {
  font-size: 9px;
  color: var(--muted);
}
.item-spec small {
  font-size: 9px;
  color: var(--warn);
}
.coordinate-help {
  border-bottom: 1px solid var(--line);
  padding: 2px 0 9px;
  margin: 10px 0 18px;
}
.coordinate-help p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 4px 0 10px;
  max-width: 75ch;
}
.quality-record {
  font-size: 11px;
  padding: 13px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 7px;
  line-height: 1.7;
}
.quality-record p {
  margin: 4px 0;
}
.quality-record small {
  font-size: 10px;
}
.quality-record.clear {
  background: var(--work);
  color: var(--muted);
  font-size: 10px;
}
.delivery-summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.delivery-summary > div {
  display: grid;
  gap: 5px;
}
.delivery-summary span {
  font-size: 10px;
  color: var(--muted);
}
.delivery-summary strong {
  font-size: 11px;
  font-weight: 600;
}
.next-work {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin-top: 21px;
  flex-wrap: wrap;
}
.next-work strong {
  font-size: 12px;
}
.next-work p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.next-work button {
  font-size: 10px;
  min-height: 35px;
  padding: 9px 12px;
}
.order-history {
  margin-top: 15px;
}
.order-history article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border-left: 2px solid var(--line);
  padding: 3px 0 24px 18px;
}
.order-history article > span {
  font-size: 10px;
  color: var(--muted);
}
.order-history strong {
  font-size: 12px;
}
.order-history p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0;
}
.order-history small {
  font-size: 10px;
  color: var(--muted);
}
.catalog-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
}
.catalog-intro h2 {
  font-size: 23px;
}
.catalog-intro p {
  font-size: 11px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
  margin-top: 8px;
}
.catalog-intro > button {
  font-size: 11px;
  flex-shrink: 0;
}
.catalog-workspace {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 30px;
}
.catalog-workspace .product-card {
  margin-top: 0;
}
.template-form {
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 10px;
}
.template-form h2 {
  font-size: 22px;
}
.template-form > p {
  margin-top: 9px;
}
.template-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 22px 0;
}
.template-form label {
  display: grid;
  gap: 7px;
  font-size: 10px;
}
.template-form > h3 {
  margin: 23px 0 11px;
  font-size: 14px;
}
.template-form input {
  font-size: 12px;
}
.template-variants {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.template-variants > span {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 3px 8px;
  font-size: 11px;
  align-items: center;
}
.template-variants i {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  grid-row: span 2;
}
.template-variants small {
  font-size: 9px;
  color: var(--muted);
}
.place-template-list > div {
  display: grid;
  grid-template-columns: 100px repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.place-template-list strong {
  font-size: 11px;
}
.place-template-list > div > span {
  font-size: 9px;
  color: var(--muted);
  grid-column: 2/-1;
}
.place-template-list input {
  padding: 8px 9px !important;
}
.template-form > .primary {
  font-size: 12px;
}
.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
}
.paper-header strong {
  font-size: 16px;
}
.paper-header h1 {
  font-size: 25px;
  margin-top: 8px;
}
.paper-header h2 {
  font-size: 21px;
}
.paper-header p {
  font-size: 11px;
  margin-top: 6px;
}
.paper-warning {
  border: 2px solid #8b744c;
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.paper-coordinates {
  font-size: 10px;
  line-height: 1.8;
  margin: 15px 0;
}
.paper-product {
  margin: 20px 0;
}
.paper-product h2 {
  font-size: 19px;
}
.paper-product p {
  font-size: 11px;
  margin-top: 7px;
}
.paper-place {
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.paper-place h3 {
  font-size: 15px;
}
.paper-place > p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0;
}
.paper-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 470px;
  margin: 15px 0;
}
.plane-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 9px;
  color: var(--muted);
  gap: 8px;
}
.print-plane {
  border: 1px solid #8191b4;
  position: relative;
  width: 100%;
  background-image:
    linear-gradient(#e8ebf044 1px, transparent 1px),
    linear-gradient(90deg, #e8ebf044 1px, transparent 1px);
  background-size: 15px 15px;
}
.print-plane .layer {
  outline: 1px dashed #6f84b3;
  pointer-events: none;
}
.paper-place table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.paper-place th,
.paper-place td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 7px;
  vertical-align: top;
}
.paper-place th {
  background: var(--work);
  font-size: 9px;
}
.paper-footer {
  font-size: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.paper-dialog {
  width: min(950px, calc(100% - 28px));
}
.paper-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.paper-actions p {
  font-size: 11px;
  color: var(--muted);
}
.paper-actions button {
  font-size: 12px;
}
.hold-form label,
.new-template-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  margin: 18px 0;
}
.template-place-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.template-place-checks label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  margin: 0;
}
.new-template-form .primary {
  margin-top: 20px;
}
.reference-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.reference-photos img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reference-photos p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 1150px) {
  #admin-view {
    padding: 24px 20px;
  }
  .bo-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 17px;
  }
  .order-detail {
    padding: 19px;
  }
  .bo-workload > button {
    padding: 8px 11px;
    gap: 8px;
  }
  .bo-workload > button strong {
    font-size: 22px;
  }
  .place-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bo-nav > span {
    font-size: 9px;
  }
  .place-template-list > div {
    grid-template-columns: 80px repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .catalog-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 850px) {
  #admin-view {
    padding: 20px 14px 35px;
  }
  .bo-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .bo-heading h1 {
    font-size: 23px;
  }
  .bo-heading p {
    font-size: 11px;
  }
  .bo-heading > button {
    font-size: 9px;
    padding: 8px;
    min-width: 80px;
    flex-shrink: 0;
  }
  .bo-heading > button .icon {
    display: none;
  }
  .bo-nav {
    flex-wrap: wrap;
  }
  .bo-nav > span {
    width: 100%;
    margin: 5px 0 0;
  }
  .bo-nav button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .bo-workload {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 0;
  }
  .bo-workload > button {
    padding: 0 12px !important;
    min-height: 40px;
  }
  .bo-workload > button:nth-child(3) {
    border: 0;
  }
  .bo-workload > button > span {
    font-size: 9px;
  }
  .bo-layout {
    display: block;
  }
  .order-queue {
    position: static;
    margin-bottom: 20px;
  }
  .queue-card {
    padding: 12px;
  }
  .queue-customer {
    margin-top: 8px;
    font-size: 14px;
  }
  .queue-product {
    margin-top: 8px;
  }
  #queue-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  #queue-results .queue-count {
    grid-column: 1/-1;
    margin: 6px 0 0;
  }
  .queue-card > .row {
    flex-wrap: wrap;
    gap: 5px;
  }
  .queue-card .bo-status {
    font-size: 8px;
  }
  .queue-card .row > strong {
    font-size: 10px;
  }
  .queue-reference {
    font-size: 9px;
  }
  .queue-places,
  .queue-product,
  .queue-size,
  .queue-warning {
    font-size: 9px;
  }
  .order-detail {
    padding: 17px 13px;
  }
  .order-title h2 {
    font-size: 22px;
  }
  .order-title p {
    font-size: 10px;
  }
  .order-tools {
    flex-wrap: wrap;
    gap: 6px;
  }
  .order-tools > button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .workflow-track > span {
    font-size: 8px;
  }
  .workflow-track {
    margin: 17px 0;
  }
  .brief-heading {
    gap: 8px;
  }
  .brief-heading > span {
    font-size: 8px;
    max-width: 80px;
    text-align: right;
  }
  .brief-product {
    display: block;
  }
  .brief-sizes {
    margin: 10px 0;
  }
  .place-brief-grid {
    gap: 8px;
  }
  .place-brief {
    padding: 8px;
  }
  .place-brief-top h4 {
    font-size: 11px;
  }
  .place-brief-top > span {
    font-size: 8px;
  }
  .item-spec span {
    font-size: 8px;
  }
  .item-spec strong {
    font-size: 9px;
  }
  .next-work > .row {
    flex-wrap: wrap;
    width: 100%;
  }
  .next-work .primary {
    flex: 1;
  }
  .order-history article {
    grid-template-columns: 70px 1fr;
    padding-left: 10px;
    gap: 10px;
  }
  .order-history article > span {
    font-size: 9px;
  }
  .catalog-intro {
    display: block;
  }
  .catalog-intro h2 {
    font-size: 21px;
  }
  .catalog-intro button {
    margin-top: 14px;
  }
  .catalog-workspace {
    display: block;
  }
  .catalog-workspace > nav {
    display: flex;
    gap: 10px;
    overflow: auto;
  }
  .catalog-workspace .product-card {
    min-width: 195px;
  }
  .template-form {
    padding: 16px;
  }
  .template-fields {
    grid-template-columns: 1fr;
  }
  .place-template-list > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .place-template-list strong {
    grid-column: 1/-1;
  }
  .place-template-list > div > span {
    grid-column: 1/-1;
  }
  .template-form label {
    font-size: 9px;
  }
  .paper-header {
    gap: 12px;
    align-items: flex-start;
  }
  .paper-header h1 {
    font-size: 20px;
  }
  .paper-header h2 {
    font-size: 16px;
  }
  .paper-visuals {
    gap: 13px;
  }
  .paper-place th,
  .paper-place td {
    font-size: 8px;
    padding: 6px 3px;
  }
  .paper-actions {
    gap: 10px;
  }
  .paper-actions p {
    font-size: 9px;
  }
  .paper-actions button {
    font-size: 10px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body[data-printing='true'] > * {
    display: none !important;
  }
  body[data-printing='true'] > #print-sheet {
    display: block !important;
    color: #000;
    background: white;
    font-family: Arial, sans-serif;
  }
  body[data-printing='true'] #print-sheet[hidden] {
    display: block !important;
  }
  .paper-header {
    margin-top: 0;
  }
  .paper-place,
  .paper-product,
  .quality-record {
    break-inside: avoid;
  }
  .paper-visuals {
    max-width: 135mm;
  }
  .mini-preview {
    width: 100%;
  }
  .print-plane {
    max-height: none;
  }
  .paper-visuals .mini-preview {
    aspect-ratio: 1;
  }
  .paper-warning {
    font-size: 10pt;
  }
  button {
    display: none !important;
  }
  .paper-footer {
    font-size: 8pt;
  }
  .paper-place table {
    font-size: 9pt;
  }
  .paper-place th,
  .paper-place td {
    font-size: 8pt;
  }
  .paper-coordinates {
    font-size: 9pt;
  }
  .paper-place h3 {
    font-size: 12pt;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
@media print {
  body:not([data-printing='true']) > #print-sheet {
    display: none !important;
  }
  body[data-printing='true'] > * {
    display: none !important;
  }
  body[data-printing='true'] > #print-sheet {
    display: block !important;
  }
}

.paper-hold {
  padding: 12px;
  background: #fff3da;
  border: 1px solid #e0c78e;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
}
.paper-hold p {
  margin-top: 4px;
}
.payment-panel {
  max-width: 900px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.payment-panel > p {
  line-height: 1.7;
}
.payment-panel .row {
  flex-wrap: wrap;
}
.payment-results article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.payment-results p {
  line-height: 1.6;
}
.payment-results small {
  color: var(--muted);
}
/* Shared workspace keeps the existing visual language and a single mobile scroll. */
.shared-members {
  display: grid;
  gap: 16px;
}
.shared-members form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto 150px 130px auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.shared-members label,
.shared-contact label,
.shared-place-fields label,
.shared-variants label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.shared-members input,
.shared-members select,
.shared-contact input,
.shared-place-fields input,
.shared-variants input {
  min-height: 44px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.shared-place-fields,
.shared-variants {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}
.shared-place-fields fieldset,
.shared-variants fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.shared-place-fields legend,
.shared-variants legend {
  font-weight: 700;
  padding: 0 8px;
}
.shared-contact {
  margin: 20px 0;
}
.shared-motif-specs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.shared-motif-specs p {
  font-size: 12px;
}
.shared-contact .template-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.order-detail .delivery-summary {
  overflow-wrap: anywhere;
}
.order-detail .order-previews {
  max-width: 100%;
}
@media (max-width: 850px) {
  .shared-members form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .shared-members form > strong {
    grid-column: 1/-1;
  }
  .shared-contact .template-fields {
    grid-template-columns: 1fr;
  }
  .shared-members select,
  .shared-contact input,
  .shared-place-fields input,
  .shared-variants input {
    font-size: 16px;
  }
  .next-work > .row {
    flex-wrap: wrap;
  }
  .bo-nav {
    flex-wrap: wrap;
  }
  .shared-place-fields fieldset,
  .shared-variants fieldset {
    padding: 12px;
    gap: 12px;
  }
}
@media print {
  .workpaper button,
  .workpaper .order-tools,
  .workpaper .next-work {
    display: none !important;
  }
  .workpaper .brief-line {
    break-inside: avoid;
  }
  .workpaper img {
    max-width: 100%;
  }
}
.shared-invitations {
  margin-top: 32px;
}
.shared-invite {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.shared-invite p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.shared-invite .row {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .shared-invite {
    align-items: stretch;
    flex-direction: column;
  }
  .shared-members form > small {
    grid-column: 1/-1;
  }
}
.shared-photo-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  grid-column: 1/-1;
}
.shared-photo-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.shared-photo-inputs input[type='file'] {
  max-width: 100%;
  width: 100%;
  font-size: 12px;
}
.shared-photo-status {
  font-size: 12px;
  line-height: 1.5;
}
.shared-photo-calibration {
  grid-column: 1/-1;
}
.shared-photo-calibration summary {
  cursor: pointer;
  font-weight: 600;
  margin: 10px 0;
}
.shared-order-payment {
  margin: 24px 0;
  padding: 20px;
  background: var(--wash, #f6f7f9);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shared-order-payment article {
  margin: 18px 0;
}
.shared-order-payment > .row {
  flex-wrap: wrap;
}
.shared-order-payment .totals > div {
  gap: 18px;
}
.shared-order-payment p {
  line-height: 1.6;
}
.source-price-card {
  padding: 18px;
  background: #f4f6f9;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.7;
}
.source-price-card strong {
  display: block;
  font-size: 23px;
  margin: 6px 0;
  color: #262a32;
}
.source-price-card strong small {
  font-size: 12px;
  font-weight: 400;
}
.source-price-card p {
  font-size: 11px;
  color: #657087;
  margin: 6px 0 10px;
}
.source-price-card summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: 12px;
}
.source-size-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.source-size-prices > span {
  display: grid;
  background: white;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 11px;
  text-align: center;
}
.source-price-card > a {
  display: inline-block;
  color: #013009;
  font-size: 12px;
  text-decoration: underline;
}
.source-price-card button {
  margin-top: 12px;
  font-size: 11px;
  background: #fff;
}
.product-pricing-editor {
  margin: 25px 0;
}
.product-pricing-editor > h3 {
  margin-bottom: 8px;
}
.product-price-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #e7f8e9;
  padding: 17px 19px;
  border-radius: 9px;
  margin: 16px 0 8px;
  font-size: 12px;
}
.product-price-result output {
  font-size: 24px;
  font-weight: 600;
  color: #013009;
  white-space: nowrap;
}
.shared-variants .source-price-card {
  margin: 7px 0 14px;
}
.shared-variants .source-price-card strong {
  font-size: 19px;
}
.catalog-workspace nav .product-card small {
  line-height: 1.5;
}
.shared-motif-specs a {
  display: inline-block;
  font-size: 11px;
  margin-top: 6px;
  color: #013009;
}
.template-form input {
  min-width: 0;
}
@media (max-width: 600px) {
  .source-price-card {
    padding: 14px;
  }
  .product-price-result {
    align-items: flex-start;
    flex-direction: column;
  }
  .source-price-card button {
    max-width: 100%;
    white-space: normal;
    height: auto;
  }
  .source-price-card > a {
    overflow-wrap: anywhere;
  }
}

.integration-panel {
  max-width: 1050px;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.integration-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  min-width: 0;
}
.integration-card h3 {
  font-size: 16px;
  margin: 0;
}
.integration-card p,
.integration-settings p,
.shipment-panel p {
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0;
}
.integration-card a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
}
.integration-card .row,
.shipment-panel > .row {
  gap: 12px;
  flex-wrap: wrap;
}
.integration-badge {
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid #e3e6ec;
  border-radius: 20px;
  padding: 6px 10px;
  background: #f6f7fa;
  white-space: nowrap;
}
.integration-badge.ready {
  color: #21664b;
  background: #edf7f1;
  border-color: #cde8d8;
}
.integration-settings,
.shipment-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfc;
  margin: 24px 0;
}
.integration-settings h3 {
  margin: 18px 0 8px;
}
.integration-settings h3:first-child {
  margin-top: 0;
}
.integration-settings .template-fields,
.shipment-panel .template-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.integration-settings label,
.shipment-panel label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  min-width: 0;
}
.integration-settings input:not([type='checkbox']),
.integration-settings select,
.shipment-panel input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
}
.integration-settings .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  line-height: 1.5;
}
.integration-settings .consent input {
  margin-top: 2px;
}
.integration-settings details {
  margin: 18px 0;
}
.integration-settings summary,
.integration-technical summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.integration-technical {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.integration-technical dl {
  font-size: 12px;
}
.integration-technical dt {
  font-weight: 600;
  margin-top: 14px;
}
.integration-technical dd {
  margin-left: 0;
}
.integration-technical code {
  font-size: 11px;
}
.shipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.shipment-panel .shipping-quote {
  background: #e7f8e9;
  padding: 12px;
  border-radius: 8px;
}
.shipment-message {
  overflow-wrap: anywhere;
}
.integration-panel [role='status']:not(:empty) {
  line-height: 1.6;
}
@media (max-width: 650px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .integration-card,
  .integration-settings,
  .shipment-panel {
    padding: 16px;
  }
  .integration-settings .template-fields {
    grid-template-columns: 1fr;
  }
  .integration-settings input:not([type='checkbox']),
  .integration-settings select,
  .shipment-panel input {
    font-size: 16px;
  }
  .shipment-actions > button {
    flex: 1;
    white-space: normal;
  }
  .integration-panel .catalog-intro {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
}
@media print {
  .shipment-panel form,
  .shipment-panel .shipment-actions,
  .shipment-panel button {
    display: none !important;
  }
}
.member-email {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.design-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 8px;
  background: white;
}
.design-card h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.design-card .row {
  flex-wrap: wrap;
  gap: 6px;
}
.design-card .row button {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 10px;
}
.customer-account {
  max-width: 520px;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.customer-account form {
  display: grid;
  gap: 8px;
}
.customer-account label {
  font-size: 12px;
  font-weight: 600;
}
.customer-account .row {
  gap: 10px;
  flex-wrap: wrap;
}
.customer-message {
  font-size: 12px;
  min-height: 18px;
}
.danger {
  color: #a52c32;
  border-color: #e8c4c6;
}
.shared-contact label.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
}
.shared-contact label.consent input {
  margin-top: 2px;
  min-height: 0;
  padding: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.shared-place-fields fieldset.place-anchor {
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.place-anchor p {
  margin: 0;
}
.place-anchor .template-fields {
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  margin: 6px 0 0;
}
@media (max-width: 650px) {
  .place-anchor .template-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.setup-overview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  margin: 4px 0 36px;
}
.setup-overview h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.setup-overview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overview-row {
  display: grid;
  grid-template-columns: 110px 200px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.overview-row:first-child {
  border-top: 0;
}
.overview-row > strong {
  font-size: 13px;
}
.overview-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.setup-badge {
  display: inline-block;
  justify-self: start;
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid #e3e6ec;
  border-radius: 20px;
  padding: 4px 10px;
  background: #f6f7fa;
  color: var(--ink);
  white-space: nowrap;
}
.setup-badge.ok {
  color: #21664b;
  background: #edf7f1;
  border-color: #cde8d8;
}
.setup-badge.todo {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: transparent;
}
.integration-panel .setup-go,
.integration-panel .setup-link,
.customer-payments .setup-link {
  display: inline-block;
  min-height: 0;
  padding: 4px 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  text-align: left;
  cursor: pointer;
}
.setup-section {
  margin: 40px 0;
}
.setup-section > h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.integration-panel .setup-lead {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 72ch;
}
.setup-card {
  margin: 0 0 16px;
}
.setup-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.setup-card-head h4 {
  font-size: 17px;
  margin: 0;
}
.setup-card-head h5 {
  font-size: 14px;
  margin: 0;
}
.integration-panel .setup-card-head p.muted,
.setup-card-head p.muted {
  margin: 2px 0 0;
  font-size: 12px;
}
.setup-card:focus,
.setup-form:focus,
.setup-message:focus {
  outline: none;
}
.setup-steps {
  list-style: none;
  counter-reset: step;
  margin: 18px 0 0;
  padding: 0;
}
.setup-steps > li {
  counter-increment: step;
  position: relative;
  padding: 18px 0 6px 40px;
  border-top: 1px solid var(--line);
}
.setup-steps > li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--active);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.setup-steps h5 {
  font-size: 14px;
  margin: 3px 0 6px;
}
.integration-panel .setup-steps p {
  margin: 6px 0;
}
.setup-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}
.setup-field label {
  font-size: 12px;
  font-weight: 600;
}
.setup-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.setup-field input,
.setup-field select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
}
.setup-card .template-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 16px;
}
.setup-change {
  margin: 10px 0;
}
.setup-change > summary,
.setup-other > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
}
summary:focus-visible {
  outline: 3px solid #00843d;
  outline-offset: 3px;
  border-radius: 4px;
}
.setup-actions {
  margin-top: 12px;
  gap: 16px;
  flex-wrap: wrap;
}
.integration-panel .setup-message,
.customer-payments .setup-message {
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.integration-panel .setup-message:empty,
.customer-payments .setup-message:empty {
  margin: 0;
}
.integration-panel .setup-saved {
  background: var(--work);
  border-radius: 8px;
  padding: 10px 12px;
}
.setup-other {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 22px;
  margin: 0 0 16px;
}
.other-provider {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.other-provider p {
  font-size: 13px;
  margin: 8px 0 0;
}
.setup-other .setup-link {
  margin: 4px 0 8px;
}
.integration-panel .setup-form {
  background: #fff;
  margin: 0 0 16px;
}
.setup-form h4 {
  font-size: 17px;
  margin: 0;
}
.setup-form h5 {
  font-size: 14px;
  margin: 24px 0 0;
}
.setup-form .template-fields {
  margin: 12px 0 4px;
}
.setup-form > .primary {
  margin-top: 18px;
}
.integration-technical {
  margin-top: 40px;
  background: #fff;
}
.integration-technical h5 {
  font-size: 13px;
  margin: 18px 0 6px;
}
.integration-technical > p {
  font-size: 12px;
}
.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist-items li {
  font-size: 12px;
  margin: 6px 0;
}
.setup-choices {
  border: 0;
  padding: 0;
  margin: 14px 0;
}
.setup-choices legend {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.customer-payments .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
.customer-payments .consent input {
  margin-top: 3px;
}
.customer-payments p {
  font-size: 13px;
  line-height: 1.6;
}
.payment-panel .setup-other {
  margin: 18px 0 0;
}
.payment-panel > .customer-payments {
  margin-top: 18px;
}
@media (max-width: 650px) {
  .integration-panel {
    padding: 16px;
  }
  .overview-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .overview-row p {
    grid-column: 1/-1;
  }
  .setup-overview,
  .setup-other {
    padding: 14px 16px;
  }
  .setup-card .template-fields {
    grid-template-columns: 1fr;
  }
  .setup-field input,
  .setup-field select {
    font-size: 16px;
  }
  .setup-steps > li {
    padding-left: 0;
  }
  .setup-steps > li:before {
    position: static;
    display: inline-grid;
    margin: 0 8px 0 0;
    vertical-align: middle;
  }
  .setup-steps h5 {
    display: inline;
    vertical-align: middle;
  }
  .setup-section {
    margin: 32px 0;
  }
}
/* === Kundesider i nettbutikken (Min side, gjest og konto) === */
.guest-note{margin-top:14px;padding:14px 16px;border-radius:var(--radius);background:var(--work);display:grid;gap:10px;max-width:620px}.guest-note p{font-size:12px;line-height:1.6}.guest-note .row{flex-wrap:wrap;gap:8px}.guest-note button{min-height:38px;padding:8px 16px}.modal .guest-note{margin:16px 0 4px}#admin-view>.guest-note{margin:-6px 0 22px}#guest-password-hint{margin-bottom:12px}
.design-tools{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:12px;max-width:620px;margin-top:20px}.design-tools .label{margin-top:0}.design-count{margin-top:16px}
.design-card .mini-preview{width:100%}.design-card .design-more-actions{margin-top:-4px}.design-card .design-more-actions .quiet{padding:6px 4px;color:var(--muted)}.design-card .design-more-actions .quiet:hover{color:var(--ink)}.design-rename{display:grid;gap:8px}.design-rename input{font-size:14px}
.design-show-more{display:flex;justify-content:center;margin-top:22px}
.empty-state h2{font-size:18px;color:var(--ink);margin-bottom:6px}.empty-state .primary{margin-top:14px}
.account-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;margin:4px 0;font-size:13px}.account-facts dt{color:var(--muted)}.account-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.inline-link{display:inline;min-height:0;padding:0;color:var(--accent);font-weight:600;font-size:inherit;text-decoration:underline}
@media(max-width:650px){.design-tools{grid-template-columns:minmax(0,1fr) 132px;gap:8px}.design-tools input,.design-tools select,.design-rename input{font-size:16px}.design-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.design-card{padding:9px}.design-card .row button{flex:1 1 auto}}
/* === slutt: kundesider === */
/* === Ordrelista i skala (gren claude/nilz-ordre-skala, 18.11.2026): arbeidskø, arkiv, måned, søk, tett liste og ordresiden. Nye stiler for ordrelista hører hjemme her. === */
.bo-today{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:10px}.bo-today-item{border:0;background:none;padding:0;min-height:0;font-size:13px;color:var(--muted);font-weight:400;text-align:left}.bo-today-item strong{color:var(--ink);font-size:16px;font-weight:650;margin-right:2px}.bo-today-item.warn strong{color:var(--warn)}.bo-today-item:hover{background:none;text-decoration:underline}
.ol{margin-top:18px;min-width:0}.ol-views{display:flex;gap:2px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:14px}.ol-views button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:13px;min-height:40px;padding:8px 12px;color:var(--muted)}.ol-views button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.ol-views button span{font-size:11px;background:var(--work);border-radius:9px;padding:1px 7px;margin-left:5px;color:var(--muted);font-weight:500}
.ol-tools{display:flex;gap:10px 16px;align-items:center;flex-wrap:wrap}.ol-tools .search{flex:1 1 260px;max-width:440px}.ol-tools .search input{font-size:13px}.ol-month{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.ol-month select{width:auto;min-width:200px;font-size:13px;padding:9px 10px}
.ol-steps{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.ol-steps button{font-size:12px;min-height:32px;padding:4px 11px;border-radius:16px;font-weight:500}.ol-steps button[aria-pressed=true]{border-color:var(--accent);background:var(--active);color:var(--accent)}.ol-steps button.flag{color:var(--warn);border-color:#ecd9b0}.ol-steps button span{color:var(--muted);margin-left:3px;font-weight:400}
.ol-count{font-size:11px;color:var(--muted);margin:14px 0 4px}.ol-bulk{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--active);border-radius:8px;margin:6px 0;font-size:12px;flex-wrap:wrap}.ol-bulk button{min-height:34px;font-size:12px;padding:6px 12px}
.ol-head,.ol-main{display:grid;grid-template-columns:96px 66px minmax(0,1fr) 60px 96px minmax(0,220px) 140px;gap:14px;align-items:center}.ol-head{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:6px 12px;border-bottom:1px solid var(--line)}.ol-head.pickable{padding-left:40px}.ol-head>span:nth-child(5){text-align:right}
.ol-rows{list-style:none;margin:0;padding:0}.ol-row{display:flex;align-items:stretch;border-bottom:1px solid var(--line)}.ol-row.flagged{background:#fffbf2}.ol-pick{flex:0 0 28px;display:flex;align-items:center;justify-content:center}
.ol-main{flex:1;min-width:0;border:0;border-radius:0;background:none;text-align:left;font-weight:400;font-size:13px;padding:5px 12px;min-height:36px;line-height:1.35}.ol .bo-status{padding:3px 7px}.ol-main:hover{background:#f3f5f7}.ol-ref{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.ol-date,.ol-qty{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.ol-customer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-customer small{color:var(--muted);font-size:11px;margin-left:4px}.ol-sum{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.ol-status{display:flex;gap:5px;flex-wrap:wrap;align-items:center;min-width:0}.ol-flag{font-size:10px;padding:4px 7px;border-radius:5px;background:var(--warn-bg);color:var(--warn);font-weight:600;white-space:nowrap}.ol-pay{font-size:12px;color:var(--muted)}.ol-pay.unpaid{color:var(--warn)}
.ol-more{margin:16px auto 0;display:block;font-size:13px}.ol-elsewhere{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px;align-items:center}.ol-elsewhere button{font-size:12px;min-height:32px;padding:5px 10px}.ol-export{margin-top:30px;border-top:1px solid var(--line)}.ol-export .export-tools{margin:0 0 12px}
.ol-mine{max-width:860px}.ol-mine h2{font-size:18px;margin-bottom:10px}.ol-mine .ol-main{grid-template-columns:110px 80px 70px 110px minmax(0,1fr)}.ol-mine .ol-row{align-items:center}.ol-paynow{min-height:36px;padding:7px 16px;font-size:12px;margin:4px 6px;gap:8px}
.order-detail{max-width:1100px}.od-back{display:flex;justify-content:space-between;gap:8px;margin:-10px -10px 10px;flex-wrap:wrap}.od-back .quiet{font-size:12px;min-height:36px}.od-back .icon{width:16px;height:16px}.od-heading{margin:26px 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);font-family:inherit;font-weight:600}.order-detail .brief-line h3{font-size:18px}.order-detail .brief-line>p{font-size:13px;color:var(--muted);margin-top:4px}.order-detail .brief-line .preview-pair{max-width:520px}.order-detail .brief-line h4{margin:18px 0 8px}.od-section{border-top:1px solid var(--line)}.od-section>summary{font-size:13px;padding:14px 0}.od-section[open]>summary{margin-bottom:6px}.od-pay{background:var(--warn-bg);padding:14px;border-radius:8px;margin:16px 0;display:grid;gap:10px;font-size:13px}.od-paid{font-size:12px;color:var(--muted);margin:12px 0}
.order-detail .next-work{background:var(--work);border-radius:10px;padding:14px 16px;margin:16px 0}.order-detail .next-work strong{font-size:13px}.order-detail .next-work p{font-size:12px}.order-detail .next-work button{font-size:12px}.order-detail .next-work .row{flex-wrap:wrap}.order-detail .order-tools{flex-wrap:wrap;margin:16px 0}
@media(max-width:850px){.bo-today{gap:2px 14px;margin-top:8px}.bo-today-item{font-size:12px}.bo-today-item strong{font-size:14px}.ol-head{display:none}.ol-views{gap:0 2px}.ol-views button{font-size:12px;padding:7px 8px;min-height:36px}.ol-views button span{margin-left:3px;padding:1px 5px}.ol-tools .search{flex-basis:100%;max-width:none}.ol-tools .search input{font-size:16px}.ol-month{width:100%}.ol-month select{flex:1;min-width:0;font-size:16px}
.ol-main{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ref date sum" "customer customer qty" "status status pay";gap:3px 10px;padding:10px 6px}.ol-ref{grid-area:ref}.ol-date{grid-area:date;font-size:12px}.ol-sum{grid-area:sum}.ol-customer{grid-area:customer}.ol-qty{grid-area:qty;text-align:right;font-size:12px}.ol-status{grid-area:status}.ol-pay{grid-area:pay;text-align:right;font-size:11px;align-self:center}
.ol-mine .ol-row{flex-wrap:wrap}.ol-mine .ol-main{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ref date sum" "status status qty"}.ol-paynow{flex:1 0 calc(100% - 12px);margin:0 6px 10px}.od-back{margin:-6px -6px 8px}.order-detail .delivery-summary{flex-wrap:wrap;gap:12px 20px}.order-detail .delivery-summary>div{flex:1 1 40%}.order-detail .delivery-summary strong{white-space:normal}.order-detail .next-work{padding:12px}.order-detail .next-work .row>button{flex:1 1 auto}}
@media print{.workpaper .od-back,.workpaper .od-section>summary{display:none!important}}
/* «Produkter og priser» and «Personer og tilganger» (product-list.js, product-save.js,
   workshop-product-view.js, workshop-member-view.js): a dense searchable list beside the form,
   the form in parts, a save bar that stays in view, and the role guide. */
.catalog-workspace {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.catalog-list {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  min-width: 0;
}
.catalog-filter {
  display: grid;
  gap: 10px;
}
.catalog-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.catalog-filter-field label {
  font-size: 12px;
  font-weight: 600;
}
.catalog-filter-field input,
.catalog-filter-field select {
  min-height: 42px;
  font-size: 13px;
}
.catalog-count {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 6px;
}
.catalog-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-list > .catalog-rows {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -6px;
  padding: 0 6px;
}
.catalog-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 6px 8px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-weight: 400;
}
.catalog-row:hover {
  background: var(--work);
}
.catalog-row[aria-pressed='true'] {
  background: var(--active);
  border-color: var(--accent);
}
.catalog-row img,
.catalog-thumb-empty {
  width: 40px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--work);
  display: block;
}
.catalog-row-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.catalog-row-text strong {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-row-text small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-row-text .catalog-chip {
  justify-self: start;
  margin-top: 2px;
}
.catalog-row-text .catalog-chip[hidden] {
  display: none;
}
.place-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 16px;
}
.place-details > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 13px;
  padding: 14px 0;
}
.place-details > summary span {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.shared-place-fields .place-details > fieldset {
  border: 0;
  padding: 0 0 12px;
}
.catalog-chip {
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  border-radius: 20px;
  padding: 3px 8px;
  background: var(--work);
  color: var(--muted);
  white-space: nowrap;
}
.catalog-chip.ok {
  background: #edf7f1;
  color: #21664b;
}
.catalog-chip.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.catalog-archived {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.catalog-archived > summary {
  font-size: 12px;
  padding: 10px 0;
}
.catalog-archived > p {
  margin: 0 0 6px;
}
summary:focus-visible {
  outline: 3px solid #00843d;
  outline-offset: 3px;
  border-radius: 4px;
}
.product-form {
  padding: 0;
  overflow: visible;
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 23px 6px;
}
.product-section {
  border-top: 1px solid var(--line);
  padding: 20px 23px 8px;
}
.product-head + .product-section {
  border-top: 0;
}
.template-form .product-section > h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.product-section h4 {
  font-size: 14px;
  margin: 22px 0 4px;
}
.product-section > .muted {
  margin: 4px 0 0;
  max-width: 72ch;
}
.product-section .template-fields {
  margin: 12px 0 16px;
}
.product-pricing-editor h4 {
  margin-top: 8px;
}
.product-purchase > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  padding: 4px 0 12px;
}
.product-purchase > summary small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.purchase-colour {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.product-more {
  margin: 4px 0 16px;
}
.tier-title {
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}
.tier-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shared-variants .colour-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.shared-place-fields > fieldset > * {
  grid-column: 1 / -1;
}
.place-anchor-details > summary {
  font-size: 12px;
  padding: 6px 0;
}
.product-archive {
  margin: 16px 23px;
}
.product-form > .muted {
  margin: 16px 23px;
}
.product-savebar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 23px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -6px 16px #252c3d0d;
}
.product-save-state {
  font-size: 13px;
  color: var(--muted);
}
.product-form.is-dirty .product-save-state {
  color: var(--warn);
  font-weight: 600;
}
.product-save-error {
  flex-basis: 100%;
  order: 3;
  font-size: 13px;
  color: var(--warn);
}
.product-save-error:empty {
  display: none;
}
.product-savebar .row {
  flex-wrap: wrap;
  margin-left: auto;
}
.role-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 10px;
}
.role-guide > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.role-guide dt {
  font-size: 13px;
  font-weight: 600;
}
.role-guide dd {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.member-section {
  margin-top: 28px;
}
.member-section > h3,
.shared-invitations > h3 {
  font-size: 18px;
}
.member-filter {
  grid-template-columns: minmax(0, 1fr) 200px;
  margin-top: 12px;
}
.shared-members .member-row,
.member-head {
  grid-template-columns: minmax(0, 1fr) 140px 150px 130px 290px;
  gap: 12px;
  align-items: center;
}
.shared-members .member-row {
  padding: 10px 14px;
  border-radius: 10px;
}
.member-head {
  display: grid;
  padding: 0 15px 6px;
  font-size: 11px;
  color: var(--muted);
}
.member-row .member-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.member-row .catalog-chip {
  justify-self: start;
}
.member-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.member-actions button {
  font-size: 12px;
  white-space: nowrap;
}
.shared-members {
  gap: 6px;
}
.shared-members select {
  min-height: 40px;
}
.shared-invitations {
  margin-top: 24px;
}
.member-who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.member-who strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.member-note {
  font-size: 11px;
  color: var(--muted);
}
.member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.member-row label {
  font-size: 12px;
}
.old-invites > summary {
  font-size: 13px;
}
@media (max-width: 850px) {
  .catalog-workspace {
    display: block;
  }
  .catalog-workspace > nav.catalog-list {
    position: static;
    display: flex;
    max-height: 60dvh;
    margin-bottom: 18px;
    overflow: visible;
  }
  .role-guide {
    grid-template-columns: 1fr 1fr;
  }
  .shared-members .member-row {
    grid-template-columns: 1fr 1fr;
  }
  .member-head {
    display: none;
  }
  .member-row .member-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .member-actions {
    justify-content: flex-start;
  }
  .member-row .member-who {
    grid-column: 1 / -1;
  }
  .member-row .catalog-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .member-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 650px) {
  .product-head,
  .product-section,
  .product-savebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-archive,
  .product-form > .muted {
    margin-left: 16px;
    margin-right: 16px;
  }
  .tier-fields,
  .shared-variants fieldset,
  .shared-place-fields fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  .role-guide,
  .member-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .role-guide {
    gap: 0;
  }
  .role-guide > div {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 8px 0;
    background: none;
  }
  .product-savebar .row,
  .product-savebar .primary {
    width: 100%;
  }
}
