/* The store register separates business fields from ownership actions and live status. */
.store-table.store-register-table {
  --store-table-floor:1050px;
  --store-column-count:7;
  --store-column-share:calc(clamp(0px,calc(100cqw - var(--store-table-floor)),200px) / var(--store-column-count));
  --store-row-surface:var(--paper);
  --store-row-alt:color-mix(in srgb,var(--paper) 96%,var(--accent));
  --store-row-hover:color-mix(in srgb,var(--paper) 90%,var(--accent));
  --store-row-selected:color-mix(in srgb,var(--paper) 86%,var(--accent));
  width:100%; min-width:1050px; table-layout:fixed; border-collapse:separate; border-spacing:0;
}
.store-table.store-register-table.has-assignment { --store-table-floor:1126px; --store-column-count:8; min-width:1126px; }
.store-table.store-register-table.has-availability { --store-table-floor:1162px; --store-column-count:9; min-width:1162px; }
.store-table.store-register-table.is-partner { --store-table-floor:1150px; --store-column-count:4; min-width:1150px; }
.store-table-wrap:has(> .store-register-table) { container-type:inline-size; }
.store-register-table col.store-column-expand { width:calc(var(--store-column-base) + var(--store-column-share)); }
.store-register-table tbody tr { --store-row-surface:var(--paper); }
.store-register-table tbody tr:nth-child(even) { --store-row-surface:var(--store-row-alt); }
.store-register-table tbody tr:hover { --store-row-surface:var(--store-row-hover); }
.store-register-table tbody tr.is-selected { --store-row-surface:var(--store-row-selected); }
.store-register-table.store-table :is(th,td) { padding-inline:10px; box-sizing:border-box; border-right:1px solid var(--line); border-bottom:1px solid var(--line-strong); }
.store-register-table.store-table tbody td { background:var(--store-row-surface); }
/* Short result sets end above the pager: keep their actual final row closed. */
.store-register-table.store-table tbody tr:last-child td { border-bottom:1px solid var(--line-strong); }
.store-register-table.store-table thead th { position:sticky; top:0; z-index:3; border-top:1px solid var(--line-2); background:color-mix(in srgb,var(--paper) 95%,var(--accent)); color:var(--ink-2); font-weight:600; text-align:left; }
.store-register-table.store-table :is(th,td):last-child { border-right:0; }
.store-register-table .cell-main { width:100%; min-width:0; }
.store-register-table .cell-main>div { min-width:0; flex:1; }
.store-register-table.store-table .cell-main strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; overflow-wrap:anywhere; }
.store-register-table .cell-main small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Each authorized brand is a single readable row; long names yield to the figures. */
.store-register-table .store-cell-brand-sales .pw-store-sales { flex-wrap:nowrap; gap:8px; min-width:0; }
.store-register-table .store-cell-brand-sales .pw-store-brand-name { flex:1 1 auto; min-width:48px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-register-table .store-cell-brand-sales .pw-store-sales>:not(.pw-store-brand-name) { flex:none; white-space:nowrap; }
.store-register-table .store-cell-brand-sales .bs-comparison-copy { flex-wrap:nowrap; }
.store-register-table .store-cell-next { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-register-table .store-cell-created { white-space:nowrap; font-variant-numeric:tabular-nums; }
.store-page-tools .store-created-filter { gap:5px; white-space:nowrap; }
.store-page-tools .store-created-filter.has-filters { color:var(--accent-2); border-color:color-mix(in srgb,var(--accent) 45%,var(--line)); background:var(--accent-soft); }
.store-created-dialog { width:min(460px,calc(100vw - 32px)); }
.store-created-dates { margin-top:14px; }
.store-created-dialog [hidden] { display:none!important; }
.store-delete-dialog { width:min(460px,calc(100vw - 32px)); }
.store-delete-dialog [hidden] { display:none!important; }
.store-delete-summary { margin:0 0 14px; padding:12px; border:1px solid var(--line-strong); border-radius:10px; background:var(--accent-soft); color:var(--ink-2); font-size:13px; line-height:1.65; }
.store-delete-summary strong { display:block; margin-bottom:4px; color:var(--ink); overflow-wrap:anywhere; }
.store-register-table .table-person { min-width:0; max-width:100%; gap:6px; }
.store-register-table .table-person>span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-register-table.store-table :is(.store-cell-assign,.store-cell-enabled) { padding-inline:5px; text-align:center; }
.store-register-table.store-table .store-cell-open { padding-inline:5px; text-align:center; }
.store-register-table .store-cell-open .icon-btn { width:24px; min-width:24px; height:28px; border-radius:6px; }
.store-transfer-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:30px; padding:4px 6px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--accent-2); font-family:inherit; font-size:13px; font-weight:500; line-height:20px; white-space:nowrap; cursor:pointer; }
.store-transfer-btn:hover { background:var(--accent-soft); border-color:var(--line-strong); }
.store-transfer-btn>.ico { flex:none; }
.store-availability-switch { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:30px; padding:4px 2px; border:1px solid transparent; border-radius:7px; color:var(--ink-2); background:transparent; font:inherit; font-size:12px; line-height:20px; white-space:nowrap; cursor:pointer; }
.store-switch-track { position:relative; display:block; flex:none; width:32px; height:18px; border-radius:999px; background:color-mix(in srgb,var(--ink-3) 50%,var(--paper)); box-shadow:inset 0 0 0 1px var(--line-strong); transition:background .16s ease; }
.store-switch-track>i { position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .16s ease; }
.store-availability-switch[aria-checked="true"] .store-switch-track { background:light-dark(#2c9c7e,#37ad8e); }
.store-availability-switch[aria-checked="true"] .store-switch-track>i { transform:translateX(14px); }
.store-availability-switch[aria-checked="true"] .store-switch-label { color:light-dark(#23785f,#84dab9); }
.store-availability-switch:hover { border-color:var(--line-strong); background:var(--accent-soft); }
:is(.store-transfer-btn,.store-availability-switch):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.store-availability-notice { display:flex; align-items:center; gap:8px; padding:8px 14px; border-top:1px solid var(--line); background:var(--accent-soft); color:var(--ink-2); font-size:13px; line-height:1.5; }
.store-availability-notice[hidden] { display:none; }
.store-availability-notice>span { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.store-availability-notice>span>.ico { flex:none; color:var(--accent-2); }
.store-availability-notice>.btn { flex:none; }
.store-availability-notice>.icon-btn { flex:none; width:26px; height:26px; margin-left:auto; }
@media(min-width:761px) {
  .store-register-table.store-table .cell-check { position:sticky; left:0; z-index:1; }
  .store-register-table.store-table .store-cell-name { position:sticky; left:36px; z-index:1; border-right-color:var(--line-strong); }
  .store-register-table.store-table .store-cell-open { position:sticky; right:0; z-index:1; }
  .store-register-table.store-table .store-cell-enabled { position:sticky; right:34px; z-index:1; }
  .store-register-table.store-table .store-cell-assign { position:sticky; right:34px; z-index:1; box-shadow:-3px 0 6px -5px var(--ink-3); border-left:1px solid var(--line-strong); }
  .store-register-table.has-availability .store-cell-assign { right:calc(126px + var(--store-column-share)); }
  .store-register-table.store-table thead :is(.cell-check,.store-cell-name,.store-cell-assign,.store-cell-enabled,.store-cell-open) { z-index:4; }
}
@media(max-width:760px) {
  .store-availability-notice { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  .store-switch-track,.store-switch-track>i { transition:none; }
}
