/* =========================================================
   LISTE DES SHOPS
   ========================================================= */
.shop-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:16px;
}



.shop-main{
  min-width:0;
}

.shop-row-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}

.shop-logo-mini{
  width:56px;
  height:56px;
  border-radius:16px;
  background:var(--surface-alt);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex-shrink:0;
  overflow:hidden;
}

.shop-logo-mini img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.shop-head-text{
  min-width:0;
  flex:1;
}

.shop-name{
  font-size:18px;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
  line-height:1.15;
  word-break:normal;
}

.shop-meta{
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
  word-break:break-word;
}

.shop-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.tc-shop-card-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tc-shop-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.tc-shop-card-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.tc-shop-readiness {
  min-width: 120px;
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.tc-shop-readiness strong {
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

.tc-shop-readiness small {
  font-size: 12px;
  color: var(--muted);
}

.tc-shop-operational-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tc-shop-operational-grid > div {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 11px 12px;
}

.tc-shop-operational-grid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.tc-shop-operational-grid strong {
  font-size: 18px;
  color: var(--text);
}

.tc-shop-card-actions {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .tc-shop-card-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tc-shop-readiness {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .tc-shop-operational-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.tc-workspace {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-workspace-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffffff 100%);
  border: 1px solid var(--border);
}

.tc-workspace-hero h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.tc-workspace-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tc-workspace-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tc-workspace-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tc-workspace-health-item {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 12px;
}

.tc-workspace-health-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tc-workspace-health-item span {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

.tc-workspace-health-item.ok {
  background: rgba(21,128,61,.07);
}

.tc-workspace-health-item.warn {
  background: rgba(217,119,6,.08);
}

.tc-workspace-health-item.hot {
  background: rgba(185,28,28,.08);
}

.tc-workspace-sections{
    display:grid;
    gap:18px;
    grid-template-columns:1fr;
}

.tc-workspace-sections.has-two-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.tc-workspace-sections.has-three-columns{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.tc-workspace-section {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
}

.tc-workspace-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tc-workspace-section-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.tc-workspace-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tc-workspace-section-body {
  min-width: 0;
}

.tc-workspace-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .tc-workspace-hero {
    flex-direction: column;
  }

  .tc-workspace-status {
    justify-content: flex-start;
  }

  .tc-workspace-health,
  .tc-workspace-sections {
    grid-template-columns: 1fr;
  }

  .tc-workspace-actions {
    justify-content: flex-start;
  }
}

.tc-shop-workspace .tc-workspace-section-full {
  grid-column: 1 / -1;
}

.tc-shop-workspace .shop-admin-panel {
  margin-top: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.tc-shop-diagnostic-actions {
  border: 1px solid var(--border);
  background: rgba(217,119,6,.07);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.tc-shop-diagnostic-actions.ok {
  background: rgba(21,128,61,.07);
}

.tc-shop-diagnostic-actions strong {
  font-size: 12px;
  color: var(--text);
}

.tc-shop-diagnostic-actions span {
  font-size: 13px;
  color: var(--muted);
}

.tc-onboarding-diagnostic {
  margin-top: 18px;
}