/* Navigation Tabs */
.voucher-nav {
    border-bottom: 1px solid #e2e8f0;
}

.nav-tabs {
    display: flex;
    gap: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: #059669;
    background: #f8fafc;
}

.nav-tab.active {
    color: #059669;
    border-bottom-color: #059669;
    background: #f0fdf4;
}

/* Voucher Cards */
.vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.voucher-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.voucher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.voucher-card.active {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.voucher-card.expired {
    border-color: #fca5a5;
    background: #fef2f2;
    opacity: 0.7;
}

.voucher-card.out-of-stock {
    border-color: #fed7aa;
    background: #fffbeb;
    opacity: 0.8;
}

.voucher-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.voucher-status.status-active {
    background: #ecfdf5;
    color: #059669;
}

.voucher-status.status-expired {
    background: #fef2f2;
    color: #dc2626;
}

.voucher-status.status-out-of-stock {
    background: #fffbeb;
    color: #d97706;
}

.voucher-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.voucher-details > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.voucher-details i {
    width: 16px;
    text-align: center;
}

.voucher-value {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.voucher-points {
    color: #d97706 !important;
    font-weight: 600 !important;
}

/* Voucher Form */
.voucher-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.preview-voucher-card {
    background: white;
    border: 2px solid #a7f3d0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.preview-name {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
}

.preview-value {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 4px;
}

.preview-points {
    color: #d97706;
    font-weight: 600;
    margin-bottom: 8px;
}

.preview-conditions {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Loyalty System */
.loyalty-rules {
    margin-top: 16px;
}

.rule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rule-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.rule-icon {
    width: 32px;
    height: 32px;
    background: #059669;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.rule-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

.rule-desc {
    font-size: 12px;
    color: #059669;
}

/* Tier System */
.tier-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tier-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid;
}

.tier-card.bronze {
    border-color: #cd7c32;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.tier-card.silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.tier-card.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.tier-card.platinum {
    border-color: #e5e4e2;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tier-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.tier-card.bronze .tier-icon { background: #cd7c32; }
.tier-card.silver .tier-icon { background: #c0c0c0; }
.tier-card.gold .tier-icon { background: #ffd700; color: #1e293b; }
.tier-card.platinum .tier-icon { background: #e5e4e2; color: #1e293b; }

.tier-name {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 2px;
}

.tier-requirement {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.tier-benefits {
    font-size: 11px;
    color: #059669;
}

/* Top Customers */
.top-customers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-customer-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.rank-number.top-3 {
    background: #ffd700;
    color: #1e293b;
}

.customer-name {
    font-weight: 600;
    color: #1e293b;
}

.customer-tier {
    font-size: 12px;
    color: #64748b;
}

.points-value {
    font-weight: 600;
    color: #d97706;
    text-align: center;
}

.points-label {
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.spending-value {
    font-weight: 500;
    color: #059669;
    text-align: center;
    font-size: 13px;
}

.spending-label {
    font-size: 10px;
    color: #64748b;
    text-align: center;
}

/* Points Exchange */
.points-balance {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.exchange-section {
    margin-bottom: 32px;
}

.exchange-section h4 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.available-vouchers-grid,
.unavailable-vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.exchange-voucher-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: white;
}

.exchange-voucher-card.available {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.exchange-voucher-card.locked {
    border-color: #fca5a5;
    background: #fef2f2;
    opacity: 0.7;
}

.voucher-header {
    margin-bottom: 12px;
}

.voucher-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.voucher-code {
    font-size: 12px;
    color: #64748b;
}

.value-main {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 4px;
}

.value-condition {
    font-size: 12px;
    color: #64748b;
}

.voucher-points {
    margin: 12px 0;
}

.points-required {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    font-weight: 600;
}

.points-shortage {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.voucher-desc {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin: 8px 0;
}

/* History Lists */
.points-history-list,
.voucher-exchange-list,
.customer-vouchers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.points-history-item,
.exchange-history-item,
.customer-voucher-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.points-icon,
.exchange-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #ecfdf5;
    color: #059669;
}

.points-details,
.exchange-details {
    flex: 1;
}

.points-order,
.exchange-voucher {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.points-time,
.exchange-time {
    font-size: 12px;
    color: #64748b;
}

.points-earned {
    text-align: center;
    min-width: 80px;
}

.points-amount {
    font-weight: 600;
    color: #059669;
}

.points-from {
    font-size: 11px;
    color: #64748b;
}

.points-balance {
    text-align: right;
    min-width: 80px;
}

.balance-after {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

.exchange-points {
    text-align: center;
    min-width: 100px;
}

.points-used {
    font-weight: 600;
    color: #dc2626;
}

.voucher-code {
    font-size: 11px;
    color: #64748b;
}

/* Voucher Detail Modal */
.voucher-detail-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.voucher-detail-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.voucher-name-large {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.voucher-status-large {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.voucher-value-large {
    text-align: center;
    margin-bottom: 24px;
}

.value-display {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}

.points-display {
    font-size: 16px;
    color: #d97706;
    font-weight: 600;
}

.voucher-detail-info {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row label {
    font-weight: 500;
    color: #64748b;
    min-width: 140px;
    flex-shrink: 0;
}

.detail-row span {
    color: #1e293b;
    text-align: right;
}

.voucher-stats {
    background: white;
    border-radius: 6px;
    padding: 16px;
}

.voucher-stats h5 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
}

/* Voucher Tabs */
.voucher-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
}

.voucher-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voucher-tab:hover {
    color: #059669;
    background: #f0fdf4;
}

.voucher-tab.active {
    color: #059669;
    border-bottom-color: #059669;
    background: #f0fdf4;
}

.usage-history-timeline {
    max-height: 600px;
    overflow-y: auto;
}

.history-date-group {
    margin-bottom: 32px;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.date-info h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.date-detail {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.usage-count {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.usage-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.usage-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.usage-main {
    flex: 1;
}

.usage-voucher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.voucher-name {
    font-weight: 600;
    color: #1e293b;
}

.voucher-id {
    font-size: 11px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.usage-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
}

.usage-customer,
.usage-order {
    display: flex;
    align-items: center;
    gap: 6px;
}

.usage-value {
    text-align: right;
}

.discount-amount {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 4px;
}

.usage-time {
    font-size: 12px;
    color: #64748b;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.large-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #374151;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* Customer info styles */
.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #065f46;
}

.customer-info-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row label {
    font-weight: 500;
    color: #64748b;
    min-width: 120px;
    flex-shrink: 0;
}

.info-row span {
    color: #1e293b;
    text-align: right;
}

.benefit-item, .restriction-item {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.benefit-item {
    color: #059669;
}

.restriction-item {
    color: #dc2626;
}

.upgrade-suggestion {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
}

.upgrade-suggestion h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 16px;
}

.upgrade-suggestion p {
    margin: 0 0 12px 0;
    color: #92400e;
}

.upgrade-suggestion ul {
    margin: 0;
    padding-left: 20px;
    color: #92400e;
}

.upgrade-suggestion li {
    margin-bottom: 4px;
}

/* Detail sections */
.detail-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.info-group {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
}

.tier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.financial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.finance-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.finance-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.finance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.finance-label {
    font-size: 12px;
    color: #64748b;
}

/* Transaction history */
.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-bottom: 8px;
    border-radius: 6px;
}

.trans-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.trans-credit {
    background: #ecfdf5;
    color: #059669;
}

.trans-debit {
    background: #fef2f2;
    color: #dc2626;
}

.trans-details {
    flex: 1;
}

.trans-type {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.trans-time {
    font-size: 12px;
    color: #64748b;
}

.trans-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.trans-amount {
    font-weight: 600;
    font-size: 16px;
}

.trans-positive {
    color: #059669;
}

.trans-negative {
    color: #dc2626;
}

.trans-balance {
    font-size: 12px;
    color: #64748b;
    text-align: right;
    min-width: 80px;
}

/* Credit management */
.balance-display {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.balance-label {
    font-size: 14px;
    color: #065f46;
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.balance-amount.positive {
    color: #059669;
}

.balance-amount.zero {
    color: #6b7280;
}

.credit-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.credit-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.credit-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 12px;
    opacity: 0.8;
}

.quick-stats {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    width: 16px;
    text-align: center;
}

/* Form enhancements */
.current-balance {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: #f1f5f9;
    border-color: #059669;
    color: #059669;
}

.transaction-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.preview-item:last-child {
    margin-bottom: 0;
}

.preview-item.total {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    color: #059669;
}

.readonly-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.readonly-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.readonly-info .info-item:last-child {
    margin-bottom: 0;
}

/* Transaction History Styles */
.transaction-summary {
    margin-bottom: 24px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.summary-card.credit {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.summary-card.debit {
    background: #fef2f2;
    border-color: #fecaca;
}

.summary-card.balance {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.summary-card.credit .summary-icon {
    background: #059669;
    color: white;
}

.summary-card.debit .summary-icon {
    background: #dc2626;
    color: white;
}

.summary-card.balance .summary-icon {
    background: #0284c7;
    color: white;
}

.summary-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.summary-label {
    font-size: 12px;
    color: #64748b;
}

.transaction-history-full {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.transaction-list-full {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-row {
    display: grid;
    grid-template-columns: 140px 120px 120px 100px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

.trans-date {
    color: #64748b;
    font-weight: 500;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.type-badge.credit {
    background: #ecfdf5;
    color: #059669;
}

.type-badge.debit {
    background: #fef2f2;
    color: #dc2626;
}

.trans-amount {
    font-weight: 600;
}

.trans-amount.credit {
    color: #059669;
}

.trans-amount.debit {
    color: #dc2626;
}

.trans-balance {
    font-weight: 500;
    color: #1e293b;
}

.trans-note {
    color: #6b7280;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .vouchers-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-cards,
    .tier-system {
        grid-template-columns: 1fr;
    }
    
    .top-customer-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    
    .customer-actions,
    .customer-spending {
        grid-column: span 2;
        margin-top: 8px;
    }
    
    .available-vouchers-grid,
    .unavailable-vouchers-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .financial-cards {
        grid-template-columns: 1fr;
    }
    
    .customers-grid {
        grid-template-columns: 1fr !important;
    }
    
    .credit-action-btn {
        padding: 12px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .voucher-tabs {
        flex-direction: column;
    }
    
    .voucher-tab {
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0;
    }
    
    .usage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .usage-value {
        text-align: left;
        width: 100%;
    }
    
    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transaction-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}