/* 📋 Munkalapok Specifikus Stílusok */

.worksheets-container {
  padding: 124px 20px 30px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* 🔍 FIX KERESŐSÁV A FEJLÉC ALATT */
.worksheets-search-header {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  z-index: 90;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.worksheets-search-header .search-box {
  flex: 1;
}

.status-filter-select {
  height: 46px;
  border-radius: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 8px;
  font-size: 13px;
  outline: none;
  font-weight: 500;
  cursor: pointer;
  width: 92px;
  flex: 0 0 92px;
}

/* 📋 MUNKALAP KÁRTYÁK */
.worksheet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.worksheet-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s var(--transition-bezier), box-shadow 0.2s var(--transition-bezier);
}

.worksheet-card:active {
  transform: translateY(2px);
}

.worksheet-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.worksheet-row1-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.worksheet-bill-no {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.worksheet-divider {
  color: var(--border-color);
  margin: 0 4px;
  font-size: 13px;
}

.worksheet-shopper-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.worksheet-card-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.worksheet-row2-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 🏷️ Status Badges */
.status-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 0;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 80px;
  text-align: center;
  display: inline-block;
  color: #ffffff !important;
}

.status-badge.status-pending {
  background: #f0ad4e;
}

.status-badge.status-completed {
  background: #5cb85c;
}

.status-badge.status-modified {
  background: #5bc0de;
}

.status-badge.status-deleted {
  background: #777777;
}

.worksheet-info-btn {
  background: #3D78A8 !important;
  color: #ffffff !important;
  font-size: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 4px rgba(61, 120, 168, 0.2);
  box-sizing: border-box;
}

.worksheet-info-btn:hover {
  opacity: 0.9;
}

.worksheet-info-btn:active {
  transform: scale(0.9);
}

.worksheet-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.worksheet-price {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--price-color);
  text-align: right;
}

/* 🧾 TÉTEL KÁRTYÁK A POPUPBAN */
.worksheet-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.worksheet-item-row {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.worksheet-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.worksheet-item-sku {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.worksheet-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
}

.worksheet-item-qty {
  color: #6b7280;
  font-weight: 500;
}

.worksheet-item-total {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

/* 👥 TWO COLUMN WORKSHEET DETAILS SPECS */
.worksheet-specs-two-columns {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.worksheet-specs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 💳 PAYMENT METHOD BADGES */
.payment-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-align: center;
  min-width: 95px;
  box-sizing: border-box;
}

.payment-badge-cash {
  background-color: #e6f4ea !important;
  color: #137333 !important;
  border: 1px solid #ceead6 !important;
}

.payment-badge-card {
  background-color: #e8f0fe !important;
  color: #1a73e8 !important;
  border: 1px solid #d2e3fc !important;
}

.payment-badge-transfer {
  background-color: #fef7e0 !important;
  color: #b06000 !important;
  border: 1px solid #feebc8 !important;
}

.payment-badge-other {
  background-color: #f1f3f4 !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
}
