/* ============================================================
   UTP HUB — Komponent Stilleri
   ============================================================ */

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-main);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg); color: var(--text-main); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ---- PAGE HEADER ---- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.page-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.card-body { padding: 20px; }

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-body {}
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.stat-blue   .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-green  .stat-icon { background: var(--success-light); color: var(--success); }
.stat-yellow .stat-icon { background: var(--accent-light);  color: var(--accent);  }
.stat-orange .stat-icon { background: var(--warn-light);    color: var(--warn);    }
.stat-red    .stat-icon { background: var(--danger-light);  color: var(--danger);  }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ---- PRODUCT TABLE VIEW (Excel-like) ---- */
.product-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
}
.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.product-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.product-table th {
  background: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
  user-select: none;
}
.product-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.product-table tbody tr {
  cursor: pointer;
  transition: background .15s;
}
.product-table tbody tr:hover {
  background: var(--primary-light, #f0f9ff);
}
.product-table tbody tr:last-child td {
  border-bottom: none;
}
.product-table .pt-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.product-table .pt-img-cell {
  width: 60px;
  padding: 6px 8px;
}
.product-table .pt-code {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: .3px;
  white-space: nowrap;
}
.product-table .pt-name {
  font-weight: 600;
  color: var(--text);
  max-width: 260px;
}
.product-table .pt-cat {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.product-table .pt-desc {
  color: var(--text-muted);
  font-size: 0.76rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-table .pt-barcode {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: monospace;
}
.product-table .pt-price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--success, #16a34a);
  font-size: 0.8rem;
}
.product-table .pt-brand-badge img {
  height: 18px;
  object-fit: contain;
}
.product-table .pt-actions {
  white-space: nowrap;
  text-align: right;
}
.grid-docs  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- ANNOUNCEMENT / NEWS CARD ---- */
.announce-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.announce-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.announce-card-top {
  padding: 16px 20px 12px;
}

.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.tag-announce { background: var(--primary-light); color: var(--primary); }
.tag-price    { background: var(--success-light); color: #16a34a; }
.tag-doc      { background: var(--accent-light);  color: #d97706; }
.tag-fair     { background: var(--warn-light);    color: var(--warn); }
.tag-hr       { background: #f3e8ff;             color: #9333ea; }
.tag-news     { background: #e0f2fe;             color: #0284c7; }
.tag-product  { background: var(--danger-light);  color: var(--danger); }

.announce-title {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.announce-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.announce-card-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.announce-author { display: flex; align-items: center; gap: 6px; }
.announce-avatar {
  width: 22px; height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700;
}

/* ---- DOCUMENT CARD ---- */
.doc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.doc-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}

.doc-icon-pdf  { background: #fee2e2; color: #dc2626; }
.doc-icon-xlsx { background: #dcfce7; color: #16a34a; }
.doc-icon-word { background: #dbeafe; color: #2563eb; }
.doc-icon-img  { background: #f3e8ff; color: #9333ea; }
.doc-icon-zip  { background: #fef3c7; color: #d97706; }
.doc-icon-link { background: #e0f2fe; color: #0284c7; }

.doc-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.doc-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-card-foot {
  margin-top: auto;
  display: flex;
  gap: 6px;
}

.version-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  color: var(--text-muted);
}

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card-img {
  height: 160px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
  overflow: hidden;
}
.product-card-img--photo {
  background: #fff;
  padding: 8px;
}
.product-card-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.product-card:hover .product-card-img--photo img {
  transform: scale(1.05);
}

.product-card-body { padding: 14px; }
.product-code { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 0.92rem; font-weight: 700; margin: 4px 0; }
.product-cat  { font-size: 0.75rem; color: var(--text-muted); }

.product-card-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- DOC HUB ---- */
.doc-hub {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.doc-chip:hover { opacity: .8; }
.doc-chip--tds      { background: #e6f7f9; color: var(--primary); border-color: var(--primary); }
.doc-chip--spec     { background: #f1f5f9; color: #475569;        border-color: #94a3b8; }
.doc-chip--msds     { background: #fffbeb; color: #b45309;        border-color: #f59e0b; }
.doc-chip--catalog  { background: #f0fdf4; color: #166534;        border-color: #86efac; }
.doc-chip--pending  {
  background: #f8fafc; color: #94a3b8;
  border-color: #e2e8f0; cursor: default;
  opacity: .7; font-style: italic;
}
.doc-chip--pending:hover { opacity: .7; }

/* ---- TABLE ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.875rem;
}

thead th {
  background: var(--bg);
  padding: 11px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 15px; height: 15px;
}

.filter-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: border var(--transition);
  background: var(--bg-card);
}
.filter-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.filter-select {
  padding: 9px 32px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg-card);
  outline: none;
  cursor: pointer;
  transition: border var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}
.filter-select:focus { border-color: var(--primary); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb span { color: var(--text-main); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; }

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: var(--success-light); color: #16a34a; }
.badge-yellow { background: var(--accent-light);  color: #d97706; }
.badge-red    { background: var(--danger-light);  color: var(--danger); }
.badge-gray   { background: var(--bg);            color: var(--text-muted); border: 1px solid var(--border); }

/* ---- MODAL ---- */
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--bg-card);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.1);
  animation: modalIn .2s cubic-bezier(.34,1.56,.64,1) both;
  border: 1px solid rgba(255,255,255,.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
  border-radius: 20px 20px 0 0;
}

.modal-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { color: var(--danger); background: var(--danger-light); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  background: #fafbfd;
  border-radius: 0 0 20px 20px;
}

/* Modal section dividers */
.modal-section {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}
.modal-section-title {
  font-size: .72rem; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.modal-section-title::before {
  content: ''; display: block; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}

/* Drag-drop image zone */
.img-drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
  position: relative;
}
.img-drop-zone:hover, .img-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.img-drop-zone .drop-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  color: var(--text-light);
  display: block;
}
.img-drop-zone p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.img-drop-zone small { font-size: .72rem; color: var(--text-light); }
.img-drop-zone.has-file { border-color: var(--primary); background: var(--primary-light); }

/* Existing product image upload row */
.img-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.img-upload-row input[type=file] {
  flex: 1; min-width: 0; font-size: .8rem;
  border: none; background: none; padding: 0;
}

/* Form improvements */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ---- QUICK LINKS ---- */
.quicklinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.quicklink {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.quicklink:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.quicklink svg  { width: 14px; height: 14px; }

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.section-title a:hover { text-decoration: underline; }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 14px; color: var(--border-dark); }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.empty-state p  { font-size: 0.85rem; }

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; }
.timeline-content { font-size: 0.87rem; }
.timeline-content strong { font-weight: 700; }

/* ---- UPLOAD AREA ---- */
.upload-area {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-area svg { width: 36px; height: 36px; color: var(--text-light); margin-bottom: 12px; }
.upload-area p { font-size: 0.88rem; color: var(--text-muted); }
.upload-area strong { color: var(--primary); }

/* ---- DEPARTMENT CARD ---- */
.dept-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.dept-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.dept-card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dept-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.dept-icon svg { width: 22px; height: 22px; }

.dept-name { font-size: 0.97rem; font-weight: 700; }
.dept-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.dept-card-body {
  padding: 0 20px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- PERSON CARD ---- */
.person-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.person-card:hover { box-shadow: var(--shadow-md); }

.person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 12px;
}

.person-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.person-role { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.person-dept { font-size: 0.72rem; }
.person-contact {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ---- FORM ELEMENTS ---- */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-group textarea { min-height: 90px; resize: vertical; }

/* ---- PRICE TABLE ---- */
.price-row td:last-child { font-weight: 700; color: var(--primary); }
.price-updated { font-size: 0.72rem; color: var(--success); font-weight: 600; }
.price-locked { opacity: 0.4; pointer-events: none; filter: blur(4px); user-select: none; }

/* ---- BRAND TABS ---- */
.brand-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.brand-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-dark);
  background: var(--bg-card);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  color: var(--text-muted);
}

.brand-tab:hover {
  border-color: var(--bt-color, var(--primary));
  color: var(--bt-color, var(--primary));
  background: var(--bg);
}

.brand-tab--active {
  background: var(--bt-color, var(--primary));
  border-color: var(--bt-color, var(--primary));
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.brand-tab--active img { filter: brightness(0) invert(1); }

.brand-tab-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(0,0,0,.1);
}

.brand-tab--active .brand-tab-cnt { background: rgba(255,255,255,.25); }

/* ---- PRODUCT CARD BRAND BADGE ---- */
.product-card-brand {
  position: absolute;
  bottom: 7px;
  right: 9px;
  background: rgba(255,255,255,.9);
  border-radius: 5px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}

/* ============================================================
   PRODUCT DETAIL MODAL — Modern Design
   ============================================================ */
.pd-overlay { backdrop-filter: blur(6px); background: rgba(15, 23, 42, 0.55); }
.pd-modal {
  max-width: 1080px;
  width: 95vw;
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.35);
  padding: 0;
}
.pd-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}
.pd-header-left { flex: 1; min-width: 0; }
.pd-code-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light, #e6f7f9);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.pd-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.25;
}
.pd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-brand-logo { height: 22px; object-fit: contain; max-width: 90px; }
.pd-brand-pill {
  font-size: 0.7rem; font-weight: 800; padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.pd-cat {
  font-size: 0.8rem; color: var(--text-muted);
  padding: 3px 10px; background: var(--bg); border-radius: 6px;
  border: 1px solid var(--border);
}
.pd-header-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pd-icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}
.pd-icon-btn svg { width: 16px; height: 16px; }
.pd-icon-btn:hover { background: var(--bg); color: var(--text); border-color: var(--primary); }
.pd-icon-btn--danger:hover { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

.pd-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow-y: auto;
  flex: 1;
}
.pd-left {
  padding: 24px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
}
.pd-right { padding: 24px; display: flex; flex-direction: column; gap: 22px; }

.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-img-wrap {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pd-main-img-wrap img:not(.pd-brand-watermark) {
  max-width: 100%; max-height: 320px; object-fit: contain;
  transition: transform 0.25s;
}
.pd-main-img-wrap:hover img:not(.pd-brand-watermark) { transform: scale(1.04); }
.pd-brand-watermark {
  position: absolute; bottom: 12px; right: 12px;
  height: 22px; opacity: 0.7; object-fit: contain; max-width: 80px;
}
.pd-gallery-empty .pd-no-img {
  font-size: 5rem; text-align: center; padding: 60px 20px;
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
}
.pd-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pd-thumb {
  width: 56px; height: 56px;
  border: 2px solid var(--border);
  border-radius: 8px; padding: 3px;
  background: #fff; cursor: pointer;
  transition: all 0.15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--primary); }
.pd-thumb-active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light, #e6f7f9); }

.pd-price-card {
  background: linear-gradient(135deg, #1a8c9a 0%, #0e6c78 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px -8px rgba(26,140,154,0.5);
}
.pd-price-header {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; opacity: 0.9;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.pd-price-header svg { width: 14px; height: 14px; }
.pd-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.pd-price-row:last-child { border-bottom: none; }
.pd-price-row span:first-child { font-size: 0.82rem; opacity: 0.85; }
.pd-price-row strong { font-size: 1.2rem; font-weight: 800; }
.pd-price-row strong span { font-size: 0.75rem; opacity: 0.8; margin-left: 2px; font-weight: 600; }

.pd-section-title {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pd-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.pd-desc p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.pd-desc .pd-detail {
  margin-top: 8px; font-size: 0.85rem; color: var(--text-muted);
  padding: 10px 12px; background: var(--bg); border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.pd-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pd-spec {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.pd-spec:hover { border-color: var(--primary); background: var(--bg-card); }
.pd-spec-icon {
  font-size: 1.1rem; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd-spec-content { min-width: 0; flex: 1; }
.pd-spec-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.5px;
}
.pd-spec-value {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  margin-top: 2px; word-break: break-word;
}
.pd-spec-value code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem; background: var(--bg-card); padding: 1px 6px;
  border-radius: 4px; border: 1px solid var(--border);
}

.pd-docs { display: flex; flex-direction: column; gap: 8px; }
.pd-doc {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: all 0.15s;
  cursor: pointer;
}
.pd-doc:hover { border-color: var(--c); transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.1); }
.pd-doc-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pd-doc-info { flex: 1; min-width: 0; }
.pd-doc-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.pd-doc-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.pd-doc-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.pd-empty {
  text-align: center; padding: 18px;
  background: var(--bg); border-radius: 8px;
  font-size: 0.82rem; color: var(--text-muted);
  border: 1px dashed var(--border);
}

.pd-external-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); align-self: flex-start;
  transition: all 0.15s;
}
.pd-external-link:hover { border-color: var(--primary); color: var(--primary); }
.pd-external-link svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .pd-body { grid-template-columns: 1fr; }
  .pd-left { border-right: none; border-bottom: 1px solid var(--border); }
  .pd-specs { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT DETAIL MODAL — v2 (Card-based layout)
   ============================================================ */
.pd2-overlay { backdrop-filter: blur(6px); background: rgba(15,23,42,.55); }
.pd2-modal {
  max-width: 1180px;
  width: 96vw;
  max-height: 94vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.4);
  padding: 0;
  background: #f8fafc;
}

/* HEADER */
.pd2-header {
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.pd2-h-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.pd2-h-icon {
  width: 48px; height: 48px;
  background: #f1f5f9; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  padding: 5px;
}
.pd2-h-icon img { width: 100%; height: 100%; object-fit: contain; }
.pd2-h-icon-emoji { font-size: 1.6rem; padding: 0; }
.pd2-h-text { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; }
.pd2-h-code { font-size: 1.15rem; font-weight: 800; color: #0f172a; letter-spacing: -.3px; }
.pd2-h-name { font-size: .92rem; color: #64748b; font-weight: 500; }
.pd2-brand-logo { height: 22px; object-fit: contain; max-width: 90px; flex-shrink: 0; }
.pd2-brand-pill {
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 6px;
  letter-spacing: .3px; flex-shrink: 0;
}
.pd2-h-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pd2-h-btn {
  width: 36px; height: 36px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  transition: all .15s;
  text-decoration: none;
}
.pd2-h-btn svg { width: 16px; height: 16px; }
.pd2-h-btn:hover { background: #f8fafc; color: #1a8c9a; border-color: #1a8c9a; }

/* BODY */
.pd2-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* TOP — gallery + info */
.pd2-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .pd2-top { grid-template-columns: 1fr; }
}

/* Gallery */
.pd2-gallery {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.pd2-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.pd2-thumb {
  width: 64px; height: 64px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  transition: all .15s;
}
.pd2-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd2-thumb:hover { border-color: #1a8c9a; }
.pd2-thumb-active { border-color: #1a8c9a; box-shadow: 0 0 0 3px rgba(26,140,154,.15); }

.pd2-main-wrap {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.pd2-main-wrap img { max-width: 100%; max-height: 360px; object-fit: contain; transition: transform .25s; }
.pd2-main-wrap:hover img { transform: scale(1.04); }
.pd2-no-img { font-size: 5rem; opacity: .4; }

/* Info panel */
.pd2-info {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.pd2-info-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid #f1f5f9;
}
.pd2-info-row {
  display: grid;
  grid-template-columns: 28px 110px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .87rem;
}
.pd2-info-row:last-child { border-bottom: none; }
.pd2-info-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
}
.pd2-info-icon svg { width: 16px; height: 16px; }
.pd2-info-label {
  font-weight: 600;
  color: #475569;
  font-size: .82rem;
}
.pd2-info-val {
  color: #0f172a;
  word-break: break-word;
}
.pd2-info-val strong { font-weight: 700; }
.pd2-empty { color: #cbd5e1; }
.pd2-code {
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  color: #0f172a;
}

/* BOTTOM — 3 cards */
.pd2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .pd2-cards { grid-template-columns: 1fr; }
}

.pd2-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd2-card-head { display: flex; align-items: center; gap: 10px; }
.pd2-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd2-card-icon svg { width: 18px; height: 18px; }
.pd2-card-title { font-size: .92rem; font-weight: 700; color: #0f172a; }
.pd2-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.pd2-mini { display: flex; flex-direction: column; gap: 2px; }
.pd2-mini-label { font-size: .7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }
.pd2-mini-val { font-size: .92rem; font-weight: 700; color: #0f172a; }

.pd2-doc-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: .82rem;
}
.pd2-doc-link > span:first-child { font-weight: 500; color: #334155; }
.pd2-link {
  color: #1a8c9a; text-decoration: none; font-weight: 700; font-size: .78rem;
}
.pd2-link:hover { text-decoration: underline; }
.pd2-empty-text {
  text-align: center;
  color: #94a3b8;
  font-size: .82rem;
  padding: 10px 0;
}
.pd2-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all .15s;
}
.pd2-add-btn svg { width: 12px; height: 12px; }
.pd2-add-btn:hover { background: #f1f5f9; color: #1a8c9a; border-color: #1a8c9a; }

/* Price block */
.pd2-card-price { background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.pd2-price-block { display: flex; flex-direction: column; gap: 2px; }
.pd2-price-label {
  font-size: .72rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .4px;
}
.pd2-price-val {
  font-size: 1.5rem; font-weight: 800; color: #16a34a;
  display: flex; align-items: baseline;
  line-height: 1.1;
}
.pd2-price-int { font-size: 1.65rem; }
.pd2-price-dec { font-size: .85rem; font-weight: 700; color: #16a34a; }
.pd2-price-meta { font-size: .7rem; color: #94a3b8; }

/* FOOTER */
.pd2-footer {
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.pd2-footer-spacer { flex: 1; }
.pd2-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.pd2-btn svg { width: 14px; height: 14px; }
.pd2-btn-primary { background: #1a8c9a; color: #fff; }
.pd2-btn-primary:hover { background: #157684; }
.pd2-btn-outline { background: #fff; color: #475569; border-color: #e5e7eb; }
.pd2-btn-outline:hover { background: #f8fafc; border-color: #1a8c9a; color: #1a8c9a; }
.pd2-btn-ghost { background: transparent; color: #64748b; }
.pd2-btn-ghost:hover { background: #f1f5f9; }
.pd2-btn-danger { background: #ef4444; color: #fff; }

/* ============================================================
   BARKOD YÖNETİMİ SAYFA STİLLERİ
   ============================================================ */

/* Kontrol çubuğu */
.bc-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Arama */
.bc-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  flex: 1;
  min-width: 180px;
}
.bc-search-wrap svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.bc-search {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: .85rem;
  color: var(--text-main);
}

/* PI grup */
.bc-pi-group { display: flex; align-items: center; gap: 4px; }
.bc-pi-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; margin-right: 2px; }
.bc-pi-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all .12s;
  display: flex; align-items: center; justify-content: center;
}
.bc-pi-btn:hover { border-color: var(--primary); color: var(--primary); }
.bc-pi-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* View toggle */
.bc-view-toggle { display: flex; gap: 2px; }
.bc-view-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all .12s;
}
.bc-view-btn svg { width: 15px; height: 15px; }
.bc-view-btn:hover { border-color: var(--primary); color: var(--primary); }
.bc-view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Barkod göster toggle */
.bc-show-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-muted); cursor: pointer; white-space: nowrap;
}
.bc-show-toggle input { accent-color: var(--primary); }

/* PI bilgi satırı */
.bc-pi-info {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bc-pi-chip {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: .72rem; font-weight: 700;
}
.bc-pi-chip--blue  { background: var(--primary-light); color: var(--primary); }
.bc-pi-chip--teal  { background: #ccfbf1; color: #0f766e; }

/* Sayım */
.bc-count { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }

/* Tablo */
.bc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .84rem;
}
.bc-table th {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.bc-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bc-table tr:last-child td { border-bottom: none; }
.bc-table tr:hover td { background: var(--bg); }

/* Sıralanabilir başlıklar */
.bc-table th.bc-sortable {
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.bc-table th.bc-sortable:hover { background: #1e293b; }
.bc-sort-arrow { opacity: .45; font-size: .8em; margin-left: 3px; }
.bc-sort-arrow--active { opacity: 1; color: var(--primary); }

/* Ürün kodu badge */
.bc-code-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Ürün adı */
.bc-name {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

/* Numara satırı */
.bc-num-row { display: flex; align-items: center; gap: 6px; }
.bc-num {
  font-family: 'Courier New', monospace;
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--text-main);
}
.bc-num--g14 {
  font-weight: 700;
  color: var(--primary);
  font-size: .9rem;
}
.bc-num--link {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.bc-num--link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.bc-qty-cell {
  text-align: center;
  white-space: nowrap;
}
.bc-qty {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.bc-qty-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 3px;
  font-weight: 400;
}
.bc-qty-empty {
  color: var(--text-muted);
}
.bc-qty-editable {
  cursor: pointer;
}
.bc-qty-editable:hover {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
.bc-qty-edit-icon {
  width: 11px; height: 11px;
  color: var(--text-light);
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
}
.bc-qty-editable:hover .bc-qty-edit-icon { opacity: 0.7; }
.bc-qty-input {
  width: 72px;
  padding: 3px 6px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

/* Kopyala butonu */
.bc-copy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all .12s;
  flex-shrink: 0;
  font-size: .75rem;
}
.bc-copy-btn svg { width: 13px; height: 13px; }
.bc-copy-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Barkod SVG wrapper (tablo içi) */
.bc-svg-wrap { margin-top: 6px; line-height: 0; }
.bc-svg-wrap svg { max-width: 100%; }

/* ── Etiket grid ────────────────────────────────────────── */
.bc-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bc-label {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  break-inside: avoid;
}

.bc-label-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  gap: 2px;
}
.bc-label-code {
  font-family: monospace;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
}
.bc-label-name {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-label-barcode { margin: 6px 0; line-height: 0; }
.bc-label-barcode svg { max-width: 100%; }
.bc-label-barcode--itf { margin-top: 10px; }
.bc-label-num {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.bc-label-num strong { color: var(--text-main); font-family: monospace; }
.bc-label-pi {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
}

/* ── Yazdır ─────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .page-header .page-actions,
  .bc-controls, .bc-pi-info, .bc-count { display: none !important; }
  .page-content { padding: 0 !important; }
  .bc-table th { background: #000 !important; -webkit-print-color-adjust: exact; }
  .bc-labels-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bc-label { border: 1px solid #ccc; box-shadow: none; }
}
.pd2-btn-danger:hover { background: #dc2626; }
