/* Module prints-liste : CSS extrait d'argon-app.css (scripts/extract_module_css.py). Feuille du module : editer ici, avec les variables de static/css/app/tokens.css. */
.card-template .tpl-badge-global {
  font-size: 10px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 700;
}
.card-template .tpl-badge-user {
  font-size: 10px;
  background: var(--mv-primary-50);
  color: var(--mv-primary-hover);
  border: 1px solid var(--mv-primary-200);
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 700;
}

/* ── Template list items (inside collection detail) ──────────────────────────── */
.tpl-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #f3f4f6;
  margin-bottom: 6px;
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.tpl-list-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tpl-list-icon {
  width: 32px;
  height: 32px;
  background: var(--mv-gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}
.tpl-list-info { flex: 1; min-width: 0; }
.tpl-list-name {
  font-size: .8125rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-list-meta {
  font-size: .7rem;
  color: #9ca3af;
  margin-top: 1px;
}
.tpl-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tpl-list-empty {
  text-align: center;
  color: #9ca3af;
  font-size: .8125rem;
  padding: 24px 0;
}
.tpl-action-dropdown {
  padding: 10px 10px 8px !important;
  min-width: 220px;
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}
.tpl-action-dropdown-label {
  font-size: .7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  padding: 0 2px;
}
@media (max-width: 576px) {
  .tpl-list-item { flex-wrap: wrap; }
  .tpl-list-actions { width: 100%; justify-content: flex-end; }
}

/* Template creation selector cards (prints liste) */
.tpl-macro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.tpl-macro-card {
    border: 1px solid #d0d9ea;
    border-radius: 10px;
    background: #f8fbff;
    color: #556b8d;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.tpl-macro-card .tpl-macro-icon {
    line-height: 0;
    opacity: 0.9;
}

.tpl-macro-card .tpl-macro-icon svg {
    width: 13px;
    height: 13px;
}

.tpl-macro-card:hover {
    border-color: #8da4cc;
    background: #eef4ff;
}

.tpl-macro-card.is-active {
    border-color: #1967ff;
    background: #1967ff;
    color: #fff;
    box-shadow: 0 6px 14px rgba(25, 103, 255, 0.22);
}

.tpl-format-card {
    width: 100%;
    height: 100%;
    border: 1px solid #c7d4ea;
    border-radius: 0;
    background: #fafdff;
    color: #526888;
    padding: 0.42rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.18rem;
    transition: all 0.16s ease;
}

.tpl-format-card .tpl-format-icon {
    line-height: 0;
    opacity: 0.9;
}

.tpl-format-card .tpl-format-icon svg {
    width: 12px;
    height: 12px;
}

.tpl-format-card .tpl-format-name {
    font-size: 0.69rem;
    line-height: 1.2;
    font-weight: 700;
}

.tpl-format-card .tpl-format-dims {
    font-size: 0.66rem;
    line-height: 1.15;
    color: #7086a8;
}

.tpl-format-card:hover {
    border-color: #8da4cc;
    background: #f0f6ff;
}

.tpl-format-card.is-active {
    border-color: #1967ff;
    background: #1967ff;
    color: #fff;
    box-shadow: 0 8px 16px rgba(25, 103, 255, 0.26);
}

.tpl-format-card.is-active .tpl-format-dims {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 575px) {
    .tpl-macro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
