/* 💵 PÉNZTÁR (CASHDESK) MOBIL STÍLUSOK */
.cashdesk-container {
  padding: 80px 16px 24px 16px; /* Hely a fejlécnek, lábléknél nincs gát */
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* 1. Felső gombok és egyenleg sáv */
.cashdesk-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cashdesk-balance-badge {
  background: linear-gradient(135deg, #a32222 0%, #610f0f 100%);
  border: 1px solid #c93b3b;
  color: #ffffff;
  padding: 0 14px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(163, 34, 34, 0.2);
}

/* 2. Tranzakciós Feed Hírfolyam */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

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

.transaction-card:active {
  transform: translateY(1px);
}

/* Tranzakció card fejléc */
.tx-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tx-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tx-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Színek fizetési módok szerint */
.tx-icon-cash {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.tx-icon-card {
  background: transparent;
  color: #3f51b5;
  border: none;
  font-size: 20px;
}

.tx-icon-transfer {
  background: transparent;
  color: #009688;
  border: none;
  font-size: 20px;
}

.tx-icon-other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.tx-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tx-type-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-shopper-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.tx-amount {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

.tx-amount-in {
  color: #10b981;
}

.tx-amount-out {
  color: #ef4444;
}

.tx-running-balance {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tranzakció card lábléc (metaadatok) */
.tx-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.tx-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-bill-no {
  font-weight: 700;
  color: #3d78a8;
}

.tx-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Jegyzet szekció a card-ban */
.tx-card-notes {
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid #3d78a8;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 2px;
}

/* 3. Műveletek űrlap segmented control gombjai */
.tx-type-selector {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}

.tx-type-tab {
  flex: 1;
  border: none;
  height: 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  background: transparent;
  color: #6b7280;
}

.tx-type-tab.active#txTypeInBtn {
  background: #10b981 !important;
  color: #ffffff !important;
}

.tx-type-tab.active#txTypeOutBtn {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* --- BANK LAYOUT MOBIL STÍLUSOK --- */
.bank-filters-container::-webkit-scrollbar {
  display: none;
}

.bank-filter-pill {
  background: var(--panel-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.bank-filter-pill.active {
  background: #3d78a8;
  color: #ffffff;
  border-color: #3d78a8;
}

body[data-theme="dark"] .bank-filter-pill.active {
  background: #3d78a8;
  color: #ffffff;
  border-color: #3d78a8;
}

/* Kártya státuszok szerint */
.transaction-card.status-archived {
  opacity: 0.6;
}

/* Bank műveletek gombok a kártyán */
.tx-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 4px;
}

.tx-action-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  color: var(--text-muted);
}

.tx-action-btn:active {
  transform: scale(0.95);
}

.tx-action-btn.btn-star.active {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.tx-action-btn.btn-check.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.tx-action-btn.btn-trash.active {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
