/**
 * Quick POS System 电子发票样式
 */

/* 提示框样式 */
.pos-invoice-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.pos-invoice-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.pos-invoice-toast .toast-content {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pos-invoice-toast.loading .toast-content {
    background: #2196F3;
    color: white;
}

.pos-invoice-toast.success .toast-content {
    background: #4CAF50;
    color: white;
}

.pos-invoice-toast.error .toast-content {
    background: #f44336;
    color: white;
}

.pos-invoice-toast.info .toast-content {
    background: #2196F3;
    color: white;
}

.pos-invoice-toast .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.pos-invoice-toast .icon {
    font-size: 18px;
}

.pos-invoice-toast .message {
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 打印按钮样式（集成到 POS 界面） */
.pos-invoice-print-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.pos-invoice-print-btn:hover {
    background: #45a049;
}

/* 发票信息显示区域 */
.pos-invoice-info {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 12px;
}

.pos-invoice-info .label {
    font-weight: bold;
    color: #333;
}

.pos-invoice-info .value {
    color: #666;
    font-family: monospace;
}