@media (min-width: 901px) {
  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-dialog {
    min-width: 0;
    min-height: 0;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-head-actions .btn-light {
    min-width: 88px;
    min-height: 34px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-body {
    gap: 10px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    flex: 0 0 auto;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-summary > div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    background: var(--theme-surface);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet :is(
    .customer-product-template-summary span,
    .customer-product-template-panel-head span,
    .customer-product-template-product-copy small,
    .customer-product-template-actions > span
  ) {
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 600;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-summary b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--theme-ink);
    font-size: 12px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-status {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 8px 10px;
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 600;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-status[hidden] {
    display: none !important;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-status:is([data-tone="error"], [data-tone="conflict"]) {
    border-color: color-mix(in srgb, var(--danger) 48%, var(--theme-line));
    background: color-mix(in srgb, var(--danger-soft) 52%, var(--theme-surface));
    color: var(--danger);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-status[data-tone="ok"] {
    border-color: var(--theme-primary-line);
    background: color-mix(in srgb, var(--theme-primary-soft) 44%, var(--theme-surface));
    color: var(--theme-primary-dark);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-grid {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--theme-line);
    border-radius: 14px;
    background: var(--theme-surface);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-panel-head {
    flex: 0 0 auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-bottom: 1px solid var(--theme-line);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-panel-head > div {
    display: grid;
    gap: 2px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-panel-head b {
    color: var(--theme-ink);
    font-size: 13px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-search {
    position: relative;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-bottom: 1px solid var(--theme-line);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-search .form-input {
    width: 100%;
    padding-right: 42px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-search .search-clear-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet :is(
    .customer-product-template-selected-list,
    .customer-product-template-master-list
  ) {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    scrollbar-gutter: stable;
    padding: 8px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet :is(
    .customer-product-template-selected-row,
    .customer-product-template-master-row
  ) {
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 7px 8px;
    border-bottom: 1px solid var(--theme-line);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-selected-row {
    grid-template-columns: 34px minmax(0, 1fr) 78px auto;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-master-row {
    grid-template-columns: minmax(0, 1fr) 78px 84px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-sequence {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--theme-surface-soft);
    color: var(--theme-ink);
    font-size: 11px;
    font-weight: 700;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-copy :is(b, span, small) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-copy b {
    color: var(--theme-ink);
    font-size: 12px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-copy span {
    color: var(--theme-ink);
    font-size: 11px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-status {
    justify-self: start;
    padding: 4px 8px;
    border: 1px solid var(--theme-line);
    border-radius: 999px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-product-status.is-active {
    border-color: var(--theme-primary-line);
    color: var(--theme-primary-dark);
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-order-actions {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet :is(
    .customer-product-template-order-actions .btn-light,
    .customer-product-template-master-row .btn-light
  ) {
    min-width: 72px;
    min-height: 32px;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-empty {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px dashed var(--theme-line);
    border-radius: 12px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-actions {
    justify-content: flex-end;
  }

  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-actions > span {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  html[data-runtime="browser-desktop"] #customerProductTemplateSheet .customer-product-template-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
