/* 全局样式 - 新配色方案 */
:root {
    /* 主色调 */
    --primary-dark: rgb(77, 34, 15);     /* 深棕色 */
    --primary-light: rgb(224, 220, 207); /* 浅米色 */
    --accent-gold: rgb(221, 138, 59);    /* 金黄色 */
    --accent-brown: rgb(182, 137, 47);   /* 棕黄色 */
    
    /* 状态颜色 */
    --success: #4CAF50;   /* 安全/成功 */
    --warning: #FF9800;   /* 警告 */
    --error: #F44336;     /* 错误/危险 */
    --info: #2196F3;      /* 信息 */
    
    /* 中性色 */
    --text-primary: rgb(77, 34, 15);
    --text-secondary: rgba(77, 34, 15, 0.7);
    --text-light: rgb(224, 220, 207);
    --border: rgba(182, 137, 47, 0.3);
    --shadow: rgba(77, 34, 15, 0.2);
}

/* Comments Modal Styles */
.comments-summary {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

.comments-summary h3 {
    margin: 0 0 12px 0;
    color: #d68910;
    font-size: 16px;
    font-weight: 600;
}

.summary-content p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #7d6608;
}

.summary-content p strong {
    color: #b7950b;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.filter-btn.active {
    background-color: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    position: relative;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Call Confirmation Modal Styles */
.call-confirmation-modal {
    max-width: 500px;
    margin: 10% auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.call-confirmation-content {
    padding: 30px;
    text-align: center;
}

.call-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s;
}

.call-icon i {
    font-size: 36px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.call-confirmation-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.call-confirmation-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.call-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #212529;
    font-weight: 500;
}

.call-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.call-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.call-btn.auto-dial {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.call-btn.auto-dial:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.call-btn.cancel {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.call-btn.cancel:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Clickable Card Styles */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
}

.clickable-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Indicator Styles */
.status-indicator {
    margin-top: 8px;
}

.status-warning,
.status-auto {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 4px;
}

.status-warning {
    color: #f44336;
}

.status-warning i {
    color: #f44336;
}

.status-auto {
    color: #4CAF50;
}

.status-auto i {
    color: #4CAF50;
}

.status-warning span,
.status-auto span {
    font-weight: 500;
}

.comment-item.high-priority {
    border-left: 4px solid #ff4444;
    background-color: #fff5f5;
}

.comment-item.expired {
    border-left: 4px solid #ff8800;
    background-color: #fff8f0;
    opacity: 0.8;
}

.comment-item p {
    margin: 8px 0;
    line-height: 1.4;
}

.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.priority-high {
    background-color: #ff4444;
    color: white;
}

.priority-normal {
    background-color: #28a745;
    color: white;
}

.status-expired {
    background-color: #ff8800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.comment-content {
    font-weight: 500;
    color: #333;
    margin: 10px 0;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.comment-department {
    font-weight: 600;
    color: var(--accent-gold);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.8) 50%, rgba(224, 220, 207, 0.9) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 为Banned状态添加页面背景警示效果 */
body.banned-theme {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(224, 220, 207, 0.8) 50%, rgba(244, 67, 54, 0.05) 100%);
}

body.banned-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(244, 67, 54, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px var(--shadow);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(182, 137, 47, 0.2);
}

/* 顶部标题栏样式 */
.header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.header-info {
    display: flex;
    justify-content: space-between;
}

.transaction-operation, .general-information {
    flex: 1;
}

/* 分步骤处理流程样式 */
.processing-steps {
    padding: 8px;
}

.processing-step {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.processing-step.completed {

}

.processing-step.active {

}

.processing-step.warning {

}

.step-indicator {
    display: flex;
    align-items: center;
    margin-right: 6px;
    min-width: 20px;
}

.step-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.step-status.success {
    background: #4CAF50;
    color: white;
}

.step-status.pending {
    background-color: #f5f5f5; /* Light Gray */
    border: 1px solid #9e9e9e; /* Gray */
    background: #FF9800;
    color: white;
}

.step-status.warning {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    color: #92400e;
}

.step-content {
    flex: 1;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-process-title {
    border: 2px solid #e5e7eb;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Warning状态样式 - 高优先级提醒 */
.processing-step.warning .step-process-title {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Completed状态样式 - 已完成 */
.processing-step.completed .step-process-title {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Active状态样式 - 进行中 */
.processing-step.active .step-process-title {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    color: #9a3412;
    box-shadow: 0 4px 12px rgba(221, 138, 59, 0.3);
}

.step-process-header.active {
    background-color: rgba(221, 138, 59, 0.05);
    border-color: var(--accent-gold);
}

.step-process-header.completed {
    background-color: rgba(76, 175, 80, 0.05);
    border-color: #4CAF50;
}

.step-process-header.warning {
    background-color: rgba(245, 158, 11, 0.05);
    border-color: #f59e0b;
}

.step-result {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.step-result.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.step-result.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.step-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.step-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-card .card-header {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    color: white;
}

.step-card .card-header i {
    margin-right: 8px;
    font-size: 14px;
}

.step-card .card-header span {
    font-weight: 600;
    font-size: 14px;
}

.step-card .card-content {
    padding: 16px;
}

.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.check-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.text-success {
    color: #4CAF50;
}

.text-danger {
    color: #F44336;
}

.transaction-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.transaction-info .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.transaction-info .value {
    color: var(--text-primary);
    font-weight: 600;
}

.transaction-info .value.pending {
    color: #FF9800;
}

.transaction-operation h2, .general-information h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.transaction-operation ol, .general-information ol {
    padding-left: 20px;
}

/* 赌场操作标题区样式 */
.casino-cage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--accent-gold);
    position: relative;
    /* Card Wrapper Styles */
.card-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}



.content-hidden {
    display: none;
}

}

.casino-cage-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23DD8A3B" opacity="0.3"/><circle cx="80" cy="30" r="1.5" fill="%23B6892F" opacity="0.4"/><circle cx="60" cy="70" r="1" fill="%23DD8A3B" opacity="0.2"/></svg>') repeat;
    pointer-events: none;
}

.casino-cage-title {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;

}

.icon-circle i {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.casino-cage-title h2 {
    font-size: 24px;
    margin-right: 15px;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(224, 220, 207, 0.8);
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(221, 138, 59, 0.4);
    filter: brightness(1.1);
}

.btn.reset {
    background: linear-gradient(135deg, var(--error) 0%, #D32F2F 100%);
    color: white;
}

.btn.logout {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    color: white;
    font-size: 14px;
    padding: 8px 16px;
}

.btn.reset:hover, .btn.logout:hover {
    filter: brightness(1.1);
}

/* Cashier Info Styles */
.cashier-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.cashier-details, .shift-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cashier-label, .shift-label {
    font-size: 14px;
    color: rgba(224, 220, 207, 0.8);
    font-weight: 500;
    min-width: 50px;
}

.cashier-name, .shift-time {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Button Group Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.button-group .btn {
    min-width: 100px;
    font-size: 14px;
    padding: 8px 12px;
}

/* 操作按钮样式 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    position: relative;
    background: rgba(224, 220, 207, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: none;
}

.action-btn {
    min-width: 120px;
    min-height: 100px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    padding: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.action-btn:hover::before {
    transform: translateX(100%);
}

/* 激活状态的持续光线动画 */
/* .action-btn.active::before {
    animation: continuous-shine 2s infinite linear;
} */

@keyframes continuous-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 不同类型按钮的颜色 */
.action-btn.buy-in {
    background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
}

.action-btn.cash-out {
    background: linear-gradient(135deg, var(--info) 0%, #1976D2 100%);
}

.action-btn.deposit-cash {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.action-btn.deposit-chips {
    background: linear-gradient(135deg, var(--warning) 0%, #F57C00 100%);
}

.action-btn.withdraw-cash {
    background: linear-gradient(135deg, #00ACC1 0%, #00838F 100%);
}

.action-btn.withdraw-chips {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
}

.action-btn.rolling {
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
}

.action-btn.fx-exchange {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
}

.action-btn.cheques {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
}

.action-btn.promotional-chips {
    background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
}

.action-btn.slot-ticket {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.action-btn.restore-transaction {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.action-btn i {
    font-size: 32px; /* Larger icons */
    margin-bottom: 4px; /* Reduced spacing */
}

.action-btn span {
    font-size: 18px; /* Even larger text */
}

.action-btn.big-btn {
    grid-column: span 2;
    height: 100px;
}

/* 按钮动画效果 */
.action-btn.active {
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: calc(100% - 32px);
    height: 110px;
    margin: 16px;
}

.action-buttons:has(.active) .action-btn:not(.active) {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease-out;
}

.sub-actions-container {
    display: none;
    animation: fadeIn 0.3s ease-out;
    margin-top: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    left: 0;
    right: 0;
    z-index: 11;
}

/* 子操作按钮样式 */
.sub-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin: 4px 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sub-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.sub-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.sub-action-btn:hover::before {
    transform: translateX(100%);
}

.sub-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 未实现功能标记样式 */
.not-implemented {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 禁用状态的按钮样式 */
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.action-btn:disabled::before {
    display: none;
}

.action-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px var(--shadow);
}

/* 继承主按钮的颜色主题 */
.action-btn.buy-in.active ~ .sub-actions-container .sub-action-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.3);
    color: var(--success);
}

.action-btn.cash-out.active ~ .sub-actions-container .sub-action-btn {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
    border-color: rgba(33, 150, 243, 0.3);
    color: var(--info);
}

.action-btn.deposit-cash.active ~ .sub-actions-container .sub-action-btn {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(123, 31, 162, 0.05) 100%);
    border-color: rgba(156, 39, 176, 0.3);
    color: #9C27B0;
}

/* Buy In Menu Styles */
.buy-in-menu {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 8px;
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.8) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.option-btn i {
    font-size: 24px;
    color: var(--accent-gold);
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(77, 34, 15, 0.2);
    border-color: var(--accent-gold);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(221, 138, 59, 0.4);
    position: relative;
}

.option-btn.selected i {
    color: white;
}

/* Add checkmark for multi-select indication */
.option-btn.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.process-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    filter: brightness(1.1);
}

.hold-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
    flex: 1;
    min-width: 180px;
}

.hold-btn:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
    flex: 1;
    min-width: 180px;
}

.reset-btn:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.restore-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.restore-btn:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.restore-transaction-area {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.restore-transaction-area .action-btn {
    width: 100%;
    margin: 0;
}

.held-transactions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.held-transactions h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

#held-transactions-list {
    list-style-type: none;
    padding: 0;
}

#held-transactions-list li {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.process-btn i {
    font-size: 20px;
}

/* Confirmation Modal Styles */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    width: 80%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.confirmation-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
}

.confirmation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23DD8A3B" opacity="0.3"/><circle cx="80" cy="30" r="1.5" fill="%23B6892F" opacity="0.4"/><circle cx="60" cy="70" r="1" fill="%23DD8A3B" opacity="0.2"/></svg>') repeat;
    pointer-events: none;
}

.confirmation-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.confirmation-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.confirmation-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.info-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.info-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.info-section h3 {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
}

.info-section h3 i {
    margin-right: 8px;
    font-size: 14px;
}

.info-grid {
    padding: 16px;
    display: block;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
    font-size: 14px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 12px;
}

.info-item span {
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-details {
    padding: 16px;
}

.detail-group {
    margin-bottom: 12px;
}

.detail-group h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent-gold);
}

.chip-item, .cash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    font-size: 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.chip-item:last-child, .cash-item:last-child {
    margin-bottom: 0;
}

.chip-type, .cash-type {
    font-weight: 500;
    color: var(--text-secondary);
}

.chip-count {
    color: var(--text-secondary);
    margin: 0 8px;
}

.chip-amount, .cash-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.account-info {
    padding: 16px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
    font-size: 14px;
}

.balance-item:last-child {
    border-bottom: none;
}

.balance-item.highlight {
    background: rgba(221, 138, 59, 0.1);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--accent-gold);
    margin: 8px 0;
}

.balance-item label {
    font-weight: 500;
    color: var(--text-secondary);
}

.balance-before {
    color: var(--text-secondary);
    font-weight: 600;
}

.transaction-amount {
    color: var(--accent-brown);
    font-weight: 600;
}

.balance-after {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 16px;
}

.confirmation-footer {
    padding: 20px 25px;
    background: rgba(224, 220, 207, 0.3);
    border-top: 2px solid var(--accent-gold);
    display: flex;
    justify-content: center;
    gap: 15px;
    border-radius: 0 0 12px 12px;
}

.btn-primary, .btn-secondary, .btn-warning {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 100px;
}

.btn-primary, .btn-secondary, .btn-warning {
    transform: translateY(0);
}

.btn-primary:hover, .btn-secondary:hover, .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-dark) 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #e68900;
}

/* Printing Modal Styles */
.printing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.printing-modal .modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-gold);
}

.printing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.printing-icon {
    font-size: 48px;
    color: var(--accent-gold);
    animation: bounce 1s infinite;
}

.printing-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: loading 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 触摸反馈效果 */
.btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* 新增样式 - 区域标题和图标 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    background-color: white;
    padding: 8px;
    border-radius: 4px;
}

.section-header i {
    /* margin-right: 12px; */
    color: var(--accent-gold);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px var(--shadow));
}

.section-header span, .section-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}

.status-indicator.scanning {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-indicator.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 设备操作按钮样式 */
.device-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(221, 138, 59, 0.2);
}

.device-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 6px rgba(77, 34, 15, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.device-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.device-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.3);
    filter: brightness(1.1);
}

.device-action-btn:hover::before {
    transform: translateX(100%);
}

.device-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(77, 34, 15, 0.2);
}

.device-action-btn i {
    font-size: 16px;
}

.device-action-btn span {
    font-size: 16px;
    font-weight: 500;
}

/* 不同类型设备按钮的颜色 */
.rescan-btn {
    background: linear-gradient(135deg, var(--info) 0%, #1976D2 100%);
}

.recalculate-btn {
    background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
}

.status-indicator.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-indicator.error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-indicator i {
    margin-right: 6px;
    font-size: 10px;
}

/* 图标颜色类 */
.success-icon {
    color: var(--success) !important;
}

.warning-icon {
    color: var(--warning) !important;
}

.error-icon {
    color: var(--error) !important;
}

.info-icon {
    color: var(--info) !important;
}

/* 芯片颜色 */
.chip-color-25 {
    color: #E91E63 !important;
}

.chip-color-100 {
    color: #9C27B0 !important;
}

.chip-color-500 {
    color: #3F51B5 !important;
}

.chip-color-1000 {
    color: #2196F3 !important;
}

/* 扫描波纹动画 */
.scan-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


.wave:nth-child(1) {
    animation-delay: 0s;
}

.wave:nth-child(2) {
    animation-delay: 0.7s;
}

.wave:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes wave-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.btn.tutorial {
    background-color: #b8860b;
    color: white;
}

.btn.reset {
    background-color: #dc3545;
    color: white;
}

.cashier-info {
    text-align: right;
    font-size: 14px;
    color: #555;
}

.cashier-info span {
    display: block;
}

/* 进度指示器样式 */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(224, 220, 207, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.progress-step {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    gap: 8px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(221, 138, 59, 0.4);
    transform: scale(1.1);
}

.step-circle i {
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.progress-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--border) 0%, rgba(182, 137, 47, 0.1) 100%);
    margin: 0 8px;
    position: relative;
    border-radius: 2px;
}

.progress-step span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    white-space: nowrap;
}

/* 检查表样式 */
.checklist-container {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(248,245,235,0.95) 100%);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    overflow: hidden;
}

.checklist-container .section-header {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    margin-bottom: 0;
    padding: 12px 20px;
    border-bottom: none;
}

.checklist-container .section-header i {
    color: white;
    font-size: 16px;
    margin-right: 10px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.checklist-container .section-header span {
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.checklist-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(182, 137, 47, 0.2);
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(77, 34, 15, 0.1);
}

.checklist-item:hover {
    background: rgba(255,255,255,0.95);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 34, 15, 0.2);
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 完成状态 - 绿色对号 */
.checklist-item.completed .check-icon {
    background: linear-gradient(135deg, var(--success) 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.checklist-item.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(76, 175, 80, 0.06) 100%);
    border-color: var(--success);
    color: #2E7D32;
}

.checklist-item.completed:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: #4CAF50;
}

/* 失败状态 - 红色叉 */
.checklist-item.failed .check-icon {
    background: linear-gradient(135deg, var(--error) 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.checklist-item.failed {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.12) 0%, rgba(244, 67, 54, 0.06) 100%);
    border-color: var(--error);
    color: #C62828;
}

.checklist-item.failed:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-color: #F44336;
}

/* 待定状态 - 橙色横线 */
.checklist-item.pending .check-icon {
    background: linear-gradient(135deg, var(--warning) 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.checklist-item.pending {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 152, 0, 0.06) 100%);
    border-color: var(--warning);
    color: #E65100;
}

.checklist-item.pending:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-color: #FF9800;
}

/* 状态角标样式 */
.step-circle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

/* 成功状态 - 绿色对号 */
.progress-step.success .step-circle::after {
    display: block;
    background: #4CAF50;
    content: '✓';
    color: white;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 失败状态 - 红色叉 */
.progress-step.failed .step-circle::after {
    display: block;
    background: #f44336;
    content: '✕';
    color: white;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 待定状态 - 灰色横线 */
.progress-step.pending .step-circle::after {
    display: block;
    background: #9e9e9e;
    content: '−';
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 三列布局样式 */
.three-column-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    min-height: 1000px;
}

.column {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.column:hover {
    box-shadow: 0 8px 25px rgba(182, 137, 47, 0.15);
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

/* Banned状态下的列样式增强 */
body.banned-theme .column {
    border: 1px solid rgba(244, 67, 54, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

body.banned-theme .column:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
    border-color: var(--error);
}

body.banned-theme .column.transaction-processing {
    background: rgba(255, 245, 245, 0.9);
}

/* 调整列宽：固定Patron Info宽度，Transaction Processing自适应扩展 */
.column.patron-info {
    flex: 0 0 400px;
    min-width: 400px;
}

.column.transaction-processing {
    flex: 1;
    min-width: 400px;
}

/* 当前操作名称样式 */
.current-operation {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
}

.column.compliance-status {
    flex: 0 0 400px;
    min-width: 400px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Collapsed state for operations */
.column.compliance-status.collapsed {
    flex: 0 0 80px;
    min-width: 80px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 16px rgba(221, 138, 59, 0.3);
    position: relative;
}

.column.compliance-status.collapsed:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(221, 138, 59, 0.4);
}

/* Color indicator for selected button */
.column.compliance-status.collapsed::after {
    content: 'BUY IN';
    /* 字体显示逆时针旋转90度 */
    transform: rotate(270deg);
    align-content: center;
    text-align: center;
    color: #fff;
    position: absolute;
    top: 150px;
    left: -60px;
    right: 10px;
    height: 40px;
    width: 200px;
    background: var(--selected-button-color, transparent);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.column.compliance-status.collapsed .panel-content {
    opacity: 0;
    pointer-events: none;
}

.column.compliance-status.collapsed .panel-header {
    /* writing-mode: vertical-rl; */
    text-orientation: mixed;
    padding: 12px 8px;
    justify-content: center;
    /* min-height: 200px; */
}

.column.compliance-status.collapsed .panel-header h3 {
    /* transform: rotate(180deg); */
    display: none;
    font-size: 14px;
    margin: 0;
}

.column.compliance-status.collapsed .panel-header i {
    margin-bottom: 8px;
    margin-right: 0;
}

.column.compliance-status.collapsed .switch-hand-btn {
    display: none;
}

.column:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 34, 15, 0.25);
    border-color: var(--accent-gold);
}

.panel-header {
    background: linear-gradient(135deg, rgba(221, 138, 59, 0.9) 0%, rgba(182, 137, 47, 0.95) 100%);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(182, 137, 47, 0.3);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.2);
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="10" cy="10" r="1" fill="%23DD8A3B" opacity="0.2"/><circle cx="50" cy="20" r="0.8" fill="%23B6892F" opacity="0.3"/><circle cx="30" cy="45" r="0.6" fill="%23DD8A3B" opacity="0.15"/></svg>') repeat;
    pointer-events: none;
}

.panel-header i {
    margin-right: 16px;
    color: var(--accent-gold);
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.panel-header h3 {
    font-size: 20px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    flex: 1;
}

.switch-hand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.switch-hand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.switch-hand-btn i {
    font-size: 16px;
    color: var(--accent-gold);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.panel-content {

        height: 100%;
    padding: 24px;
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.9) 0%, rgba(245, 242, 235, 0.95) 100%);
    color: var(--text-primary);
}

/* ===== MEMBER LOOKUP CARD ===== */
.login-card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    gap: 0;
}

.login-card-container.show {
    opacity: 1;
    transform: translateY(0);
}

.login-card-container.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.login-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(248, 245, 238, 0.95) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(221, 138, 59, 0.15), transparent);
    transition: left 0.5s;
}

.login-card:hover::before {
    left: 100%;
}

.login-card h2 {
    color: var(--accent-gold);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(77, 34, 15, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 400;
}

.login-input-group {
    margin-bottom: 25px;
    position: relative;
}

.login-input-group input {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 245, 238, 0.95) 100%) !important;
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 5px rgba(77, 34, 15, 0.1) !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
}

.login-input-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(221, 138, 59, 0.2), inset 0 2px 5px rgba(77, 34, 15, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 249, 242, 0.9) 100%);
}

.login-input-group input::placeholder {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.7;
}

#login-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(221, 138, 59, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(77, 34, 15, 0.2);
}

#login-button:hover {
    background: linear-gradient(135deg, rgba(221, 138, 59, 1.1) 0%, rgba(182, 137, 47, 1.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 138, 59, 0.4);
    filter: brightness(1.05);
}

#login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(221, 138, 59, 0.3);
}

/* Notification Text Styles */
.notification-text {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.95) 0%, rgba(252, 249, 242, 0.9) 100%);
    border: 1px solid rgba(221, 138, 59, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(221, 138, 59, 0.15);
    position: relative;
    width: 100%;
    max-width: 400px;
}

.notification-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    border-radius: 4px 0 0 4px;
}

/* Divider with Text Styles */
.divider-with-text {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 15px 0;
    gap: 15px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(221, 138, 59, 0.4) 50%, transparent 100%);
}

.divider-text {
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid rgba(221, 138, 59, 0.2);
    box-shadow: 0 1px 3px rgba(221, 138, 59, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .login-card h2 {
        font-size: 24px;
    }
    
    .login-input-group input {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    #login-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

/* Tab Navigation Styles */
.patron-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(242, 238, 230, 0.6) 0%, rgba(238, 233, 224, 0.8) 100%);
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
    border-radius: 12px 12px 0 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(242, 238, 230, 0.4) 0%, rgba(238, 233, 224, 0.6) 100%);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(221, 138, 59, 0.15) 0%, rgba(182, 137, 47, 0.2) 100%);
}

/* Banned Theme Tab Styles */
body.banned-theme .patron-tabs {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.6) 0%, rgba(255, 235, 235, 0.8) 100%);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

body.banned-theme .tab-btn:hover {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.4) 0%, rgba(255, 235, 235, 0.6) 100%);
}

body.banned-theme .tab-btn.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.2) 100%);
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 会员信息样式 - 优化布局 */
.patron-basic-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(252, 249, 242, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(182, 137, 47, 0.15);
    gap: 16px;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.08);
    overflow: hidden;
}

.patron-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 证件有效期样式 */
.document-validity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(182, 137, 47, 0.2);
    font-size: 16px;
    color: #666;
}

.validity-icon {
    font-size: 14px;
}

.validity-icon.valid {
    color: #4caf50;
}

.validity-icon.expiring {
    color: #ff9800;
}

.validity-icon.expired {
    color: #f44336;
}

.validity-text {
    font-weight: 500;
    flex: 1;
}

.update-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.update-btn:hover {
    background: #0056b3;
}

.patron-photo {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.patron-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Status Ribbon */
.patron-basic-info {
    position: relative;
}

.status-ribbon {
    position: absolute;
    top: 8px;
    right: -19px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.status-ribbon.banned {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.status-ribbon.active {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.status-ribbon::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 2px solid #b71c1c;
    border-bottom: 2px solid transparent;
}

.status-ribbon::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 100%;
    width: 0;
    height: 0;
    border-right: 2px solid #b71c1c;
    border-bottom: 2px solid transparent;
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--success);
    z-index: 5;
}

.status-indicator.banned {
    background: var(--error);
    animation: pulse-warning 2s infinite;
}


.btn.view-profile {
    margin-top: 20px;
    margin-bottom: 10px;
}

.patron-name {
    flex-grow: 1;
}

.patron-name h4 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.name-with-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.name-with-tag h4 {
    margin-bottom: 0;
}

/* Banned Status Styling */
.column.patron-info.banned {
    border-color: var(--error);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.2);
}

.column.patron-info.banned .panel-header {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(211, 47, 47, 0.95) 100%);
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.column.patron-info.banned .tab-btn.active {
    color: var(--error);
    border-bottom-color: var(--error);
    background: rgba(244, 67, 54, 0.1);
}

.column.patron-info.banned .patron-photo img {
    border-color: var(--error);
}

/* Status Values */
.value.banned {
    color: var(--error);
    font-weight: bold;
    text-transform: uppercase;
}

.banned-status.banned {
    color: var(--error);
    font-weight: bold;
    background: rgba(244, 67, 54, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Related Patron Styles */
.related-patron-info {
    padding: 40px 20px;
    text-align: center;
}

.no-related {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
}

/* Compact Layout Adjustments */
.patron-details {
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.7) 0%, rgba(247, 244, 238, 0.85) 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(182, 137, 47, 0.12);
    box-shadow: 0 1px 6px rgba(182, 137, 47, 0.06);
}

.detail-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
}

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

.panel-content {
    padding: 16px;
}

.patron-id {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
    font-family: 'Courier New', monospace;
    background: none;
    border: none;
}

/* Banned状态下的Wynn ID样式 */
.column.patron-info.banned .patron-id {
    background: none;
    color: var(--text-primary);
    border: none;
    font-weight: 800;
}

/* Program信息样式 */
.program-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.program-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.program-info .expiry {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    display: block;
}

.vip-tag {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-brown));
    color: #000000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
}

.vip-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);

}


.vip-tag.red-tier {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-weight: normal;
}

/* Banned状态下的VIP标签 */
body.banned-theme .vip-tag.red-tier {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-weight: normal;
}

/* Banned状态下的背景色调整 */
body.banned-theme .panel-content {
    background: linear-gradient(135deg, rgba(255, 248, 248, 0.9) 0%, rgba(254, 245, 245, 0.95) 100%);
}

body.banned-theme .patron-basic-info {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.8) 0%, rgba(254, 247, 247, 0.9) 100%);
    border: 1px solid rgba(244, 67, 54, 0.15);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.08);
}

body.banned-theme .patron-details {
    background: linear-gradient(135deg, rgba(255, 249, 249, 0.7) 0%, rgba(254, 246, 246, 0.85) 100%);
    border: 1px solid rgba(244, 67, 54, 0.12);
    box-shadow: 0 1px 6px rgba(244, 67, 54, 0.06);
}

.id-expiry-section {
    position: relative;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 6px;
}

.id-expiry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.id-expiry-item .label {
    font-size: 0.9rem;
    color: #ffc107;
}

.id-expiry-item .value.expired {
    color: #f44336;
    font-weight: bold;
}

.update-id-btn {
    background-color: #ffc107;
    color: #000;
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 20px;
}

.scan-section, .ocr-section {
    flex: 1;
}

.scan-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

.image-preview {
    margin-top: 20px;
    text-align: center;
    background-color: #252525;
    padding: 10px;
    border-radius: 6px;
    min-height: 200px;
}

.image-preview img {
    max-width: 100%;
    display: none;
}

.ocr-section h4 {
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#ocr-results p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 10px;
}

#ocr-results p strong {
    color: #bbb;
}

.btn.view-profile {
    background-color: #1e88e5; /* 更鲜艳的蓝色 */
    color: white;
    padding: 12px 20px; /* 增加内边距 */
    font-size: 16px; /* 增大字体 */
    border-radius: 6px; /* 增加圆角 */
    margin-top: 10px; /* 增加顶部间距 */
    transition: all 0.3s; /* 添加过渡效果 */
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3); /* 添加阴影 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.btn.view-profile:hover {
    background-color: #0d47a1; /* 悬停时更深的蓝色 */
    transform: translateY(-2px); /* 悬停时轻微上移 */
    box-shadow: 0 6px 12px rgba(30, 136, 229, 0.5); /* 增强阴影 */
}

.patron-details {
    margin-bottom: 30px; /* 增加底部间距 */
    background-color: #2d2d2d; /* 稍微浅一点的背景色 */
    border-radius: 8px; /* 圆角 */
    padding: 20px; /* 四周内边距 */
}

/* 高亮显示样式 - 统一设计风格 */
.highlight-buyin {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(252, 249, 242, 0.9) 100%);
    border: 1px solid rgba(182, 137, 47, 0.15);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.08);
}

.highlight-buyin::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
}

.highlight-balance {
    margin: 16px 0;
    position: relative;
}

.highlight-balance::before {
    display: none;
}

.highlight-credit {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.8) 0%, rgba(200, 230, 201, 0.9) 100%);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.12);
}

.highlight-credit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
}

.detail-toggle-container {
    text-align: center;
    margin: 16px 0;
}

.detail-toggle-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-brown));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(221, 138, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-toggle-btn:hover {
    background: linear-gradient(135deg, #c8a24a, #9e7c2f);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(221, 138, 59, 0.4);
    filter: brightness(1.1);
}

.toggle-button-group {
    display: flex;
    background: rgba(182, 137, 47, 0.1);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid rgba(182, 137, 47, 0.2);
    backdrop-filter: blur(5px);
}

.toggle-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(77, 34, 15, 0.6);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, rgba(221, 138, 59, 0.9), rgba(182, 137, 47, 0.8));
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(182, 137, 47, 0.3);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(77, 34, 15, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: rgba(182, 137, 47, 0.15);
    color: rgba(77, 34, 15, 0.8);
}

/* Comments Module Styles */
.comments-module {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
}

.comment-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border: 1px solid rgba(203, 213, 225, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.card-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(221, 138, 59, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.comment-card.account-related .card-count {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.comment-card.customer-preference .card-count {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.comment-card.risk-alert .card-count {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.comments-hint {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.3);
}

.comments-hint p {
    margin: 0;
    font-size: 12px;
    color: rgba(77, 34, 15, 0.6);
    font-style: italic;
}

/* Device Status Modules */
.device-status-modules {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.device-module {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
}

.device-module .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.device-module .section-header i {
    color: #3b82f6;
    font-size: 16px;
}

.device-module .section-header h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.device-module .status-indicator.connected {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
    margin-left: auto;
}

.device-module .status-indicator.connected i {
    color: #22c55e;
    font-size: 11px;
}

.device-module .status-indicator.connected span {
    color: #22c55e;
}

.device-content {
    text-align: center;
}

/* Chip Breakdown List */
.chip-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.chip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

.chip-item:last-of-type {
    border-bottom: none;
    margin-bottom: 6px;
}

.chip-denomination {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    min-width: 70px;
}

.chip-quantity {
    color: #64748b;
    font-size: 12px;
    min-width: 35px;
    text-align: center;
}

.chip-subtotal {
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.chip-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px 0;
    border-bottom: 2px solid rgba(203, 213, 225, 0.5);
    margin-bottom: 6px;
}

.chip-total .total-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-total .total-amount {
    color: #16a34a;
    font-weight: 700;
    font-size: 18px;
}

/* Cash Breakdown List */
.cash-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.cash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

.cash-item:last-of-type {
    border-bottom: none;
    margin-bottom: 6px;
}

.cash-denomination {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    min-width: 80px;
}

.cash-quantity {
    color: #64748b;
    font-size: 12px;
    min-width: 35px;
    text-align: center;
}

.cash-subtotal {
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.cash-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px 0;
    border-bottom: 2px solid rgba(203, 213, 225, 0.5);
    margin-bottom: 6px;
}

.cash-total .total-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cash-total .total-amount {
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
}

.total-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
.connected-style {
    color: #22c55e;
    margin-right: 0px;
}

.chip-count,
.cash-count {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

/* Device Control Panel */
.device-control-panel {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.95) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.15);
}

.control-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.control-panel-header i {
    color: var(--accent-gold);
    font-size: 16px;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(77, 34, 15, 0.2);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.3);
    background: linear-gradient(135deg, var(--accent-brown) 0%, var(--accent-gold) 100%);
}

.control-btn i {
    font-size: 14px;
}

/* Chip Scanner Header Row */
.chip-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 2px solid rgba(203, 213, 225, 0.5);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-denomination-header {
    min-width: 70px;
    text-align: left;
}

.chip-quantity-header {
    min-width: 40px;
    text-align: center;
}

.chip-subtotal-header {
    text-align: right;
}

/* Cash Scanner Header Row */
.cash-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 2px solid rgba(203, 213, 225, 0.5);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cash-denomination-header {
    min-width: 80px;
    text-align: left;
}

.cash-quantity-header {
    min-width: 60px;
    text-align: center;
}

.cash-subtotal-header {
    text-align: right;
}

/* Input Fields */
.chip-quantity-input,
.cash-quantity-input {
    width: 40px;
    padding: 4px 6px;
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    background: white;
    color: var(--text-primary);
}

.chip-quantity-input:focus,
.cash-quantity-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(221, 138, 59, 0.2);
}

/* Updated chip-item layout for multiple inputs */
.chip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    gap: 8px;
}

.cash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    gap: 8px;
}

.highlight-cashout {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(252, 249, 242, 0.9) 100%);
    border: 1px solid rgba(182, 137, 47, 0.15);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.08);
}

.highlight-cashout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF9800 0%, #F57C00 100%);
}

.highlight-buyin.highlight-cashout {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(252, 249, 242, 0.9) 100%);
    border: 1px solid rgba(182, 137, 47, 0.15);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.08);
}

.highlight-buyin.highlight-cashout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #E91E63 0%, #C2185B 100%);
}

/* 禁止状态样式 */
.banned-status {
    display: inline-block;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(108, 117, 125, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #6c757d;
    position: relative;
    overflow: hidden;
}

.banned-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: status-shimmer 3s infinite;
}

@keyframes status-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banned-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    filter: brightness(1.1);
}

.banned-status.banned {
    background: linear-gradient(135deg, var(--error) 0%, #D32F2F 100%);
    border: 1px solid var(--error);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.banned-status.banned:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.detail-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
}

/* Status区域特殊样式 */
.detail-item.status-item {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(252, 249, 242, 0.9) 100%);
    border: 1px solid rgba(182, 137, 47, 0.15);
    border-radius: 6px;
    padding: 16px 16px 32px 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(182, 137, 47, 0.08);
}

.detail-item.status-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--error) 0%, #D32F2F 100%);
}

.detail-item:last-child {
    border-bottom: none; /* 最后一项不需要分隔线 */
    margin-bottom: 0; /* 最后一项不需要底部间距 */
    padding-bottom: 0; /* 最后一项不需要底部内边距 */
}

.label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

/* Status区域特殊文字样式 */
.detail-item.status-item .label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-item.status-item .value.banned {
    color: var(--error);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(244, 67, 54, 0.3);
}

.status-note {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
    opacity: 0.8;
    line-height: 1.3;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(182, 137, 47, 0.2);
}

.detail-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    font-style: normal;
}

.detail-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* 余额详情样式 */
/* Balance Tabs Styling */
.balance-tabs {
    display: flex;
    margin: 16px 0 0 0;
    border-bottom: 2px solid rgba(182, 137, 47, 0.2);
    background: rgba(255, 253, 248, 0.5);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.balance-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(221, 138, 59, 0.3);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.balance-tab-btn:hover {
    background: rgba(221, 138, 59, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.balance-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(221, 138, 59, 0.3);
    border-color: var(--accent-gold);
}

.balance-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}

/* Balance Tab Content Styling */
.highlight-balance .balance-tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

.highlight-balance .balance-tab-panel:not([style*="display: none"]) {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-details {
    margin-top: 0;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.9) 0%, rgba(252, 249, 242, 0.95) 100%);
    border-radius: 0 0 12px 12px;
    padding: 20px;
    border: 2px solid rgba(182, 137, 47, 0.2);
    border-top: none;
    box-shadow: 0 4px 12px rgba(182, 137, 47, 0.15);
    position: relative;
    overflow: hidden;
}

.balance-details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(182, 137, 47, 0.15);
    transition: all 0.3s ease;
}

.balance-row:hover {
    background: rgba(221, 138, 59, 0.05);
    border-radius: 6px;
    margin: 0 -8px;
    padding: 12px 8px;
}

.balance-row:last-child {
    border-bottom: none;
}

.balance-row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid var(--accent-gold);
    font-weight: 700;
    background: rgba(221, 138, 59, 0.1);
    border-radius: 8px;
    margin: 12px -8px 0;
    padding: 16px 8px 12px;
}

.balance-type {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.balance-amount {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(182, 137, 47, 0.2);
}

.balance-row.total .balance-type {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-row.total .balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(182, 137, 47, 0.3);
}

.value.active {
    color: #4caf50; /* 更鲜艳的绿色 */
    font-weight: bold; /* 加粗 */
}

.value.credit {
    color: #2196f3; /* 更鲜艳的蓝色 */
    font-weight: bold; /* 加粗 */
    font-size: 20px; /* 特别增大信用额度字体 */
}

/* Program区域特殊样式 */
.highlight-buyin .label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.highlight-buyin .value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.expiry {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* Address区域特殊样式 */
.highlight-cashout .label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.address-value {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

/* Outstanding Credit Marker区域特殊样式 */
.highlight-buyin.highlight-cashout .label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.highlight-buyin.highlight-cashout .value.credit {
    color: #2196F3;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(33, 150, 243, 0.3);
}

/* 交易类型指示器样式 */
.transaction-indicator {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transaction-type-label {
    font-size: 1rem;
    color: #bbb;
    font-weight: 500;
}

.transaction-type-value {
    font-size: 1.2rem;
    color: #FF9800;
    font-weight: 600;
    padding: 5px 15px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 20px;
    border: 1px solid #FF9800;
}

.transaction-type-value.buyin {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
}

.switch-transaction {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.switch-transaction:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.patron-related-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.patron-related-info ol {
    padding-left: 20px;
}

.patron-related-info ul {
    padding-left: 20px;
    margin-top: 5px;
}

/* 交易处理样式 - 高对比度优化 */
.transaction-type {
    margin-bottom: 24px;
    background: rgba(224, 220, 207, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.transaction-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.transaction-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.8) 100%);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.transaction-buttons .btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.transaction-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.2);
    border-color: var(--accent-gold);
}

.transaction-buttons .btn:hover i {
    transform: scale(1.1);
}

.transaction-buttons .btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(221, 138, 59, 0.4);
}

/* Check List 和 Transaction Amounts 容器 */
.checklist-transaction-container {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

/* Check List 模块 */
.check-list {
    flex: 2;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.check-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-list .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #343a40;
    font-size: 16px;
}

.check-list .section-header i {
    margin-right: 10px;
    font-size: 18px;
    color: #6c757d;
}

.check-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 120px;
    min-height: 120px;
}

.check-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.check-item:first-child {
    border-color: #22c55e;
}

.check-item:nth-child(2) {
    border-color: #2196f3;
}

.check-item:nth-child(3) {
    border-color: #f44336;
}

.check-item:nth-child(4) {
    border-color: #ff9800;
}

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

.check-item i {
    margin-right: 14px;
    font-size: 18px;
    margin-top: 3px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.check-content {
    flex: 1;
}

.check-title {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-value {
    font-size: 17px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.check-action {
    margin-top: 6px;
}

.surveillance-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.surveillance-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.surveillance-btn i {
    font-size: 12px;
    color: #f44336 !important;
}

.surveillance-btn span {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.emtl-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.emtl-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    font-weight: 700;
}

.emtl-btn i {
    font-size: 12px;
}

.emtl-btn span {
    font-size: 14px;
    font-weight: inherit;
}

.detail-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    font-weight: 700;
}

.detail-btn i {
    font-size: 12px;
}

.detail-btn span {
    font-size: 14px;
    font-weight: inherit;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close {
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 20px 24px 24px;
}

.variance-table {
    width: 100%;
}

.variance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.variance-row:last-child {
    border-bottom: none;
}

.variance-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.variance-value {
    font-size: 14px;
    color: #212529;
    font-weight: 600;
}

.transaction-amounts {
    flex: 1;
    background: rgba(224, 220, 207, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.amount-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid rgba(221, 138, 59, 0.2);
    box-shadow: 0 2px 8px rgba(77, 34, 15, 0.1);
}

.amount-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-gold);
    text-align: center;
}

.amount-item {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(221, 138, 59, 0.1);
    transition: all 0.3s ease;
}

.amount-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(221, 138, 59, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.15);
}

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

.amount-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    text-align: right;
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(77, 34, 15, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.amount-input:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(221, 138, 59, 0.2);
    transform: scale(1.02);
}

.amount-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(221, 138, 59, 0.3);
    transform: scale(1.02);
}

.amount-label i {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px var(--shadow));
    color: var(--accent-gold);
}

.amount-label span {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Amount Input Section */
.amount-input-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.95) 100%);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(77, 34, 15, 0.15);
    transition: all 0.3s ease;
}

.amount-input-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 34, 15, 0.2);
}

/* Error state for amount input sections */
.amount-input-section.error-state {
    border: 3px solid var(--error) !important;
    position: relative;
}

.amount-input-section.error-state::after {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--error);
    font-size: 18px;
    z-index: 10;
}

.funding-source-title {
    margin-bottom: 12px;
}

.funding-source-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.selected-options-display {
    /* margin-top: 12px; */
}

.no-selection-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

.selected-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.option-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-info i {
    color: var(--accent-gold);
    font-size: 16px;
}

.option-info span {
    font-weight: 600;
    color: var(--text-primary);
}

.option-value {
    display: flex;
    align-items: center;
}

.amount-input {
    width: 100px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
    background: white;
}

.amount-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.amount-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 12px;
    background: #e9ecef;
    border-radius: 4px;
    min-width: 60px;
    text-align: right;
}

.option-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Horizontal layout styles */
.amount-sections-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amount-input-section.horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    background-color: transparent;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    width: 24px;
}

.section-arrow {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: bold;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.selected-options-display.horizontal {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selected-options-display.horizontal .selected-option-item {
    flex: 0 0 auto;
    min-width: 200px;
    margin-bottom: 0;
}

.selected-options-display.horizontal .no-selection-message {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.option-value input {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    min-width: 80px;
    text-align: right;
}

.option-value .amount-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    min-width: 80px;
    text-align: right;
}

/* 数字键盘样式 */
.amount-section-wrapper {
    position: relative;
}

.amount-section {
    width: 100%;
}

.calculator-panel {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.95) 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(77, 34, 15, 0.4), 0 8px 16px rgba(77, 34, 15, 0.2);
    border: 2px solid var(--accent-gold);
    overflow: hidden;
    width: 320px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    backdrop-filter: blur(10px);
}

.calculator-panel.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.calculator-header {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(77, 34, 15, 0.2);
}

.calculator-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.calculator-display {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.9) 0%, rgba(252, 249, 242, 0.95) 100%);
    border-bottom: 1px solid rgba(182, 137, 47, 0.2);
}

#calculator-input {
    width: 100%;
    padding: 16px;
    font-size: 24px;
    font-weight: 600;
    text-align: right;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(77, 34, 15, 0.1);
    transition: all 0.3s ease;
}

#calculator-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(221, 138, 59, 0.3);
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--accent-gold);
    padding: 2px;
}

.calc-btn {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.9) 100%);
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.calc-btn:hover {
    background: linear-gradient(135deg, rgba(224, 220, 207, 0.8) 0%, rgba(218, 213, 198, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(77, 34, 15, 0.3);
    filter: brightness(1.05);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(77, 34, 15, 0.3);
}

.calc-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.calc-number {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(224, 220, 207, 0.9) 100%);
}

.calc-number:hover {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.9) 0%, rgba(248, 244, 237, 0.95) 100%);
    border: 1px solid rgba(221, 138, 59, 0.3);
}

.calc-operator {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.calc-operator:hover {
    background: linear-gradient(135deg, rgba(221, 138, 59, 0.9) 0%, rgba(182, 137, 47, 0.9) 100%);
    filter: brightness(1.1);
}

.calc-equals {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-brown) 100%);
    color: white;
    font-weight: 700;
    grid-row: span 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.calc-equals:hover {
    background: linear-gradient(135deg, rgba(221, 138, 59, 0.9) 0%, rgba(182, 137, 47, 0.9) 100%);
    filter: brightness(1.1);
}

.calc-clear {
    background: linear-gradient(135deg, var(--error) 0%, #D32F2F 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.calc-clear:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%);
    filter: brightness(1.1);
}

.calc-backspace {
    background: linear-gradient(135deg, var(--warning) 0%, #F57C00 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.calc-backspace:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9) 0%, rgba(245, 124, 0, 0.9) 100%);
    filter: brightness(1.1);
}

.calc-confirm {
    background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.calc-confirm:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
    filter: brightness(1.1);
}

.calc-zero {
    grid-column: span 2;
}

.rfid-scanner {
    margin-bottom: 30px; /* 增加底部间距 */
}

.rfid-scanner h4 {
    margin-bottom: 15px; /* 增加底部间距 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    font-size: 20px; /* 增大字体 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.scanner-area {
    background-color: #333; /* 深色背景 */
    padding: 40px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #444; /* 更深的边框颜色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.scanner-area p {
    font-size: 18px; /* 增大字体 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    margin-top: 10px; /* 增加顶部间距 */
}

.scanner-icon {
    font-size: 50px; /* 增大图标尺寸 */
    color: #ffd700; /* 金色图标 - 高对比度 */
    margin-bottom: 20px; /* 增加底部间距 */
    animation: pulse 2s infinite; /* 添加脉冲动画效果 */
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-breakdown, .cash-breakdown {
    margin-bottom: 30px; /* 增加底部间距 */
}

.chip-breakdown h4, .cash-breakdown h4, .cash-counting h4 {
    margin-bottom: 15px; /* 增加底部间距 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    font-size: 20px; /* 增大字体 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.chip-details, .cash-details {
    padding: 12px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    border: 1px solid #444; /* 更深的边框颜色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.chip-row, .cash-row {
    margin-bottom: 15px; /* 增加底部间距 */
    font-size: 18px; /* 增大字体 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    display: flex;
    justify-content: space-between; /* 两端对齐 */
    padding-bottom: 10px; /* 增加底部内边距 */
    border-bottom: 1px solid #3a3a3a; /* 添加分隔线 */
}

.chip-row:last-child, .cash-row:last-child {
    border-bottom: none; /* 最后一项不需要分隔线 */
    margin-bottom: 0; /* 最后一项不需要底部间距 */
    padding-bottom: 0; /* 最后一项不需要底部内边距 */
}

.chip-total, .cash-total, .net-balance {
    display: flex;
    justify-content: space-between;
    padding-top: 15px; /* 增加顶部内边距 */
    margin-top: 10px; /* 增加顶部间距 */
    border-top: 2px solid #ffd700; /* 金色分隔线 - 高对比度 */
    font-weight: bold;
    font-size: 20px; /* 增大字体 */
    color: #ffd700; /* 金色文字 - 高对比度 */
}

.total-value, .balance-value {
    font-size: 22px; /* 特别增大金额字体 */
    font-weight: 700; /* 更加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.counting-machine {
    background-color: #2d2d2d; /* 深色背景 */
    padding: 30px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #444; /* 更深的边框颜色 */
    margin-bottom: 30px; /* 增加底部间距 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.counting-machine i {
    font-size: 50px; /* 增大图标尺寸 */
    color: #4caf50; /* 更鲜艳的绿色 */
    margin-bottom: 20px; /* 增加底部间距 */
    animation: pulse 2s infinite; /* 添加脉冲动画效果 */
}

.btn.count-cash {
    background-color: #4caf50; /* 更鲜艳的绿色 */
    color: white;
    padding: 12px 25px; /* 增加内边距 */
    font-size: 18px; /* 增大字体 */
    border-radius: 6px; /* 增加圆角 */
    transition: all 0.3s; /* 添加过渡效果 */
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3); /* 添加阴影 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.btn.count-cash:hover {
    background-color: #388e3c; /* 悬停时更深的绿色 */
    transform: translateY(-2px); /* 悬停时轻微上移 */
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.5); /* 增强阴影 */
}

/* 合规检查样式 - 高对比度优化 */
.rating-variance, .mtl-compliance {
    margin-bottom: 30px; /* 增加底部间距 */
}

.rating-variance h4, .mtl-compliance h4, .process-status h4 {
    margin-bottom: 15px; /* 增加底部间距 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    font-size: 20px; /* 增大字体 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.variance-details, .compliance-details {
    background-color: #2d2d2d; /* 深色背景 */
    padding: 25px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    border: 2px solid #444; /* 更深的边框颜色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.variance-row, .compliance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px; /* 增加底部间距 */
    font-size: 18px; /* 增大字体 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    padding-bottom: 10px; /* 增加底部内边距 */
    border-bottom: 1px solid #3a3a3a; /* 添加分隔线 */
}

.compliance-warning {
    background-color: rgba(255, 77, 77, 0.15); /* 半透明红色背景 */
    color: #ff4d4d; /* 更鲜艳的红色 - 高对比度 */
    padding: 15px; /* 增加内边距 */
    border-radius: 6px; /* 增加圆角 */
    margin-top: 15px; /* 增加顶部间距 */
    display: flex;
    align-items: center;
    border-left: 4px solid #ff4d4d; /* 红色左侧边框 */
    font-weight: 600; /* 加粗 */
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.2); /* 添加阴影 */
}

.compliance-warning i {
    margin-right: 15px; /* 增加右侧间距 */
    font-size: 24px; /* 增大图标尺寸 */
    color: #ff4d4d; /* 更鲜艳的红色 - 高对比度 */
    animation: pulse 2s infinite; /* 添加脉冲动画 */
}

.status-items {
    background-color: #2d2d2d; /* 深色背景 */
    padding: 25px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    border: 2px solid #444; /* 更深的边框颜色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* 增加底部间距 */
    font-size: 18px; /* 增大字体 */
    color: #ffffff; /* 白色文字 - 高对比度 */
    padding: 12px; /* 添加内边距 */
    border-radius: 6px; /* 添加圆角 */
    background-color: #333; /* 稍微浅一点的背景 */
    transition: all 0.3s; /* 添加过渡效果 */
}

.status-item:hover {
    background-color: #3a3a3a; /* 悬停时更浅的背景 */
    transform: translateX(5px); /* 悬停时轻微右移 */
}

.status-item i {
    margin-right: 15px; /* 增加右侧间距 */
    font-size: 22px; /* 增大图标尺寸 */
    color: #4caf50; /* 更鲜艳的绿色 */
}

.status-item.completed i {
    color: #4caf50; /* 更鲜艳的绿色 */
}

.status-item.pending i {
    color: #ffc107; /* 黄色警告色 */
    animation: pulse 2s infinite; /* 添加脉冲动画 */
}

.status-item.completed {
    background-color: rgba(76, 175, 80, 0.15); /* 半透明绿色背景 */
    border-left: 4px solid #4caf50; /* 绿色左侧边框 */
}

.transaction-complete {
    background-color: #2d2d2d; /* 深色背景 */
    padding: 30px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    text-align: center;
    margin-bottom: 30px; /* 增加底部间距 */
    border: 2px solid #4caf50; /* 绿色边框 */
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3); /* 绿色阴影 */
}

.complete-icon {
    font-size: 60px; /* 增大图标尺寸 */
    color: #4caf50; /* 更鲜艳的绿色 */
    margin-bottom: 20px; /* 增加底部间距 */
    animation: bounce 2s infinite; /* 添加弹跳动画 */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.btn.start-new {
    background-color: #1e88e5; /* 更鲜艳的蓝色 */
    color: white;
    margin-top: 25px; /* 增加顶部间距 */
    padding: 15px 30px; /* 增加内边距 */
    font-size: 18px; /* 增大字体 */
    border-radius: 6px; /* 增加圆角 */
    font-weight: 600; /* 加粗 */
    letter-spacing: 0.5px; /* 增加字间距 */
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3); /* 添加阴影 */
    transition: all 0.3s; /* 添加过渡效果 */
}

.btn.start-new:hover {
    background-color: #0d47a1; /* 悬停时更深的蓝色 */
    transform: translateY(-3px); /* 悬停时轻微上移 */
    box-shadow: 0 6px 15px rgba(30, 136, 229, 0.5); /* 增强阴影 */
}

.return-option {
    margin-top: 25px; /* 增加顶部间距 */
}

.return-option a {
    color: #aaaaaa; /* 浅灰色文字 - 高对比度 */
    text-decoration: none;
    font-size: 16px; /* 增大字体 */
    transition: color 0.3s; /* 添加过渡效果 */
    font-weight: 500; /* 稍微加粗 */
}

.return-option a:hover {
    color: #ffffff; /* 悬停时白色文字 */
    text-decoration: underline; /* 悬停时添加下划线 */
}

.compliance-checkin h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.compliance-checkin ol {
    padding-left: 20px;
}

/* 页脚样式 */
.footer {
    text-align: right;
    padding-top: 30px; /* 增加顶部内边距 */
    padding-bottom: 30px; /* 添加底部内边距 */
    border-top: 2px solid #444; /* 更深的边框颜色 */
    margin-top: 50px; /* 增加顶部间距 */
    color: #aaaaaa; /* 浅灰色文字 - 高对比度 */
    background-color: #1a1a1a; /* 更深的背景色 */
    border-radius: 0 0 8px 8px; /* 底部圆角 */
}

.page-number {
    font-size: 16px; /* 增大字体 */
    color: #aaaaaa; /* 浅灰色文字 - 高对比度 */
}

.footer a {
    color: #1e88e5; /* 蓝色链接 - 高对比度 */
    text-decoration: none;
    transition: color 0.3s; /* 添加过渡效果 */
}

.footer a:hover {
    color: #64b5f6; /* 悬停时更浅的蓝色 */
    text-decoration: underline; /* 悬停时添加下划线 */
}

/* 响应式布局 */
@media (max-width: 992px) {
    .three-column-layout {
        flex-direction: column;
    }
    
    .column {
        margin-bottom: 30px; /* 增加底部间距 */
    }
    
    .progress-indicator {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .progress-step {
        flex-basis: 25%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .progress-line {
        display: none;
    }
    
    .casino-cage-header {
        gap: 15px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1800px) {
    .container {
        max-width: 2000px; /* 更大的容器宽度 */
    }
    
    body {
        font-size: 18px; /* 增大基础字体 */
    }
    
    .panel-header h3 {
        font-size: 28px; /* 增大标题字体 */
    }
    
    .panel-header i {
        font-size: 28px; /* 增大图标 */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-info {
        flex-direction: column;
    }
    
    .transaction-operation, .general-information {
        margin-bottom: 15px;
    }
    
    .casino-cage-header {
        flex-direction: column;
        padding: 10px;
    }
    
    .casino-cage-title {
        margin-bottom: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .icon-circle {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 250px;
    }
    
    .cashier-info {
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }
    
    .progress-step {
        flex-basis: 33.33%;
    }
    
    .panel-content {
        padding: 10px;
    }
    
    .patron-basic-info, .transaction-type, .variance-details, .compliance-details, .status-items {
        flex-direction: column;
    }
    
    .transaction-buttons {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .transaction-buttons .btn {
        flex: 1;
        margin-right: 5px;
    }
    
    .amount-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amount-row input {
        width: 100%;
        margin-top: 5px;
    }
    
    /* 移动端余额标签页优化 */
    .balance-tabs {
        margin: 12px 0 0 0;
    }
    
    .balance-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .balance-details {
        padding: 16px;
    }
    
    .balance-row {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .balance-type {
        font-size: 14px;
    }
    
    .balance-amount {
        font-size: 16px;
        font-weight: 700;
    }
    
    .balance-row.total .balance-type {
        font-size: 16px;
    }
    
    .balance-row.total .balance-amount {
        font-size: 18px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .balance-tabs {
        margin: 14px 0 0 0;
    }
    
    .balance-tab-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
    
    .balance-details {
        padding: 18px;
    }
    
    .balance-type {
        font-size: 15px;
    }
    
    .balance-amount {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .progress-step {
        flex-basis: 50%;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .transaction-operation h2, .general-information h2 {
        font-size: 16px;
    }
    
    .casino-cage-title h2 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .panel-header h3 {
        font-size: 14px;
    }
    
    .patron-name h4 {
        font-size: 16px;
    }
    
    .scanner-area, .counting-machine {
        padding: 15px;
    }
    
    .scanner-icon, .counting-machine i {
        font-size: 24px;
    }
    
    .chip-details, .cash-details, .variance-details, .compliance-details, .status-items {
        padding: 10px;
    }
    
    .chip-row, .cash-row, .variance-row, .compliance-row {
        font-size: 12px;
    }
}

/* Document Scan Modal Styles */
.document-scan-modal {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
}

.document-scan-modal .modal-body {
    padding: 0;
    height: calc(80vh - 80px);
}

.scan-container {
    display: flex;
    height: 94%;
    gap: 0;
}

.scanner-section {
    flex: 0 0 120%;
    padding: 15px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.scanner-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-area {
    flex: 1;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    min-height: 250px;
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.preview-placeholder i {
    font-size: 40px;
    margin-bottom: 8px;
    color: #ccc;
}

.preview-placeholder p {
    margin: 0;
    font-size: 14px;
}

.scanner-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.scan-btn, .clear-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.scan-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.scan-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.clear-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.ocr-section {
    flex: 0 0 65%;
    padding: 15px 20px;
    overflow-y: auto;
}

.ocr-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Two column layout for some form fields */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.save-btn, .close-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.close-btn {
    background: #6c757d;
    color: white;
}

.close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Document Type Button Styles */
.document-type-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.doc-type-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.doc-type-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.doc-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.doc-type-btn.active:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

/* Operation Instruction Module Styles */
.operation-instruction-module {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.instruction-section {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.instruction-icon {
    flex-shrink: 0;
}

.instruction-icon i {
    font-size: 20px;
    color: var(--accent-gold);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.instruction-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
}

.divider-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    padding: 0 16px;
    background: white;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    min-width: 50px;
}

.instruction-text {
    flex: 1;
    min-width: 0;
}

.instruction-text p {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.instruction-devices {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.instruction-devices i {
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: help;
}

.instruction-devices i:hover {
    color: var(--accent-gold);
    background: rgba(212, 165, 116, 0.1);
    transform: translateY(-2px);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .instruction-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .instruction-text p {
        font-size: 14px;
    }
    
    .device-control-panel {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .device-control-panel .control-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Device Action Feedback Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.device-action-feedback {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}