/**
 * 款式库标签打印三栏工作台（P0）
 * 背景与卡片与全局 UI 宪法对齐，无内联样式依赖。
 */
.jy-llp-back-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.jy-llp-list-sub {
  color: #9ca3af;
  font-size: 12px;
}

.jy-lib-label-print {
  background-color: #f8f9fa;
  min-height: calc(100vh - 60px);
  padding: 1.5rem;
  box-sizing: border-box;
}

.jy-llp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.jy-llp-toolbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.jy-llp-toolbar-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.jy-llp-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .jy-llp-grid {
    grid-template-columns: 1fr;
  }
}

.jy-llp-col {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.jy-llp-col-head {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.jy-llp-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.jy-llp-input {
  flex: 1;
  min-width: 120px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  box-sizing: border-box;
}

.jy-llp-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.jy-llp-btn:active {
  transform: scale(0.96);
}

.jy-llp-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.jy-llp-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.jy-llp-btn--secondary {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.jy-llp-list {
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  max-height: 62vh;
}

.jy-llp-list-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.jy-llp-list-item:hover {
  background: #f9fafb;
}

.jy-llp-list-item.is-active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.jy-llp-list-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f3f4f6;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9ca3af;
}

.jy-llp-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jy-llp-list-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #374151;
}

.jy-llp-list-text strong {
  display: block;
  color: #111827;
  font-weight: 600;
  margin-bottom: 4px;
}

.jy-llp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.jy-llp-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.jy-llp-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.jy-llp-qty-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.jy-llp-qty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.jy-llp-qty-table th,
.jy-llp-qty-table td {
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}

.jy-llp-qty-table th {
  color: #6b7280;
  font-weight: 500;
}

.jy-llp-qty-table td.num,
.jy-llp-qty-table th.num {
  text-align: right;
}

.jy-llp-qty-input {
  width: 56px;
  height: 32px;
  text-align: right;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.jy-llp-select {
  width: 100%;
  max-width: 360px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 10px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
}

.jy-llp-preview-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}

.jy-llp-preview-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.jy-llp-label-surface {
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font-size: 12px;
  color: #111827;
}

.jy-llp-preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.jy-llp-msg {
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 0 0;
}

.jy-llp-msg--warn {
  color: #b45309;
}

.jy-llp-msg--ok {
  color: #047857;
}

.jy-llp-loading {
  opacity: 0.55;
  pointer-events: none;
}
