/**
 * 表格组件样式文件
 * 
 * @file tables.css
 * @description 统一的表格组件样式系统，包含表格容器、表格样式、状态标签、分页控件等
 * @author 系统开发团队
 * @created 2024
 * @updated 2025-01-25
 * 
 * 功能特性：
 * - 统一的表格设计系统
 * - 响应式表格布局
 * - 丰富的状态标签系统
 * - 完整的分页控件
 * - 移动端优化
 * - 可访问性支持
 * - 毛玻璃效果和现代化设计
 */

/* ================================
   CSS变量定义 - 表格主题色彩
   ================================ */
:root {
    /* 表格主色调 */
    --table-primary: #007bff;
    --table-primary-light: rgba(0, 123, 255, 0.1);
    --table-primary-dark: #0056b3;
    
    /* 表格背景色 */
    --table-bg: rgba(255, 255, 255, 0.95);
    --table-bg-alt: rgba(248, 249, 250, 0.8);
    --table-bg-hover: rgba(70, 130, 180, 0.2);
    
    /* 表格边框色 */
    --table-border: rgba(0, 0, 0, 0.06);
    --table-border-light: rgba(0, 0, 0, 0.08);
    
    /* 状态颜色 */
    --status-success: #28a745;
    --status-warning: #ffc107;
    --status-danger: #dc3545;
    --status-info: #17a2b8;
    --status-secondary: #6c757d;
    
    /* 阴影效果 */
    --table-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --table-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ================================
   表格容器样式
   ================================ */

/* 表格主容器 - 毛玻璃效果背景 */
.table-container {
    background: var(--table-bg);
    border-radius: 18px 18px 0 0;
    padding: 25px;
    box-shadow: var(--table-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--table-border-light);
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--dark);
    font-size: 16px;
    transition: box-shadow 0.3s ease;
}

.table-container:hover {
    box-shadow: var(--table-shadow-hover);
}

/* 自定义滚动条样式 - 主题色滚动条 */
.table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 153, 0, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 153, 0, 0.5);
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* ================================
   表格头部工具栏样式
   ================================ */

/* 表格头部工具栏 - 搜索和操作按钮区域 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* 搜索框容器 */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    width: 300px;
    min-width: 200px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 搜索框聚焦效果 */
.search-box:hover, 
.search-box:focus-within {
    border-color: var(--secondary, #ff9900);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
    background: rgba(0, 0, 0, 0.05);
}

/* 搜索框输入域 */
.search-box input {
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 15px;
    margin-left: 10px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* 表格操作按钮组 */
.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================
   基础表格样式
   ================================ */

/* 通用表格样式 */
.table,
.appointment-table,
.account-table,
.po-table,
.logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--table-bg);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    color: var(--dark);
    font-size: 16px;
    box-shadow: var(--table-shadow);
    flex: 1;
    margin: 0;
}

/* 表格头部样式 */
.table thead,
.appointment-table thead,
.account-table thead,
.po-table thead,
.logs-table thead {
    background: var(--table-primary-light);
    border-radius: 12px;
}

.table th,
.appointment-table th,
.account-table th,
.po-table th,
.logs-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    color: var(--table-primary-dark);
    font-size: 17px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--table-border);
    white-space: nowrap;
    position: relative;
}

/* 表格单元格样式 */
.table td,
.appointment-table td,
.account-table td,
.po-table td,
.logs-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--table-border);
    font-size: 16px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

/* 智能抢约表格单元格允许适当换行 */
.appointment-table td {
    white-space: normal; /* 允许换行以适应小屏幕 */
    word-break: break-word; /* 长单词可以断行 */
    line-height: 1.4; /* 增加行高以适应多行文本 */
}

/* 但保持某些重要列不换行 */
.appointment-table th,
.appointment-table td:first-child, /* 操作列 */
.appointment-table td:nth-child(2) /* 状态列 */ {
    white-space: nowrap;
}

/* 表格行样式 */
.table tbody tr,
.appointment-table tbody tr,
.account-table tbody tr,
.po-table tbody tr,
.logs-table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(odd),
.appointment-table tbody tr:nth-child(odd),
.account-table tbody tr:nth-child(odd),
.po-table tbody tr:nth-child(odd),
.logs-table tbody tr:nth-child(odd) {
    background-color: var(--table-bg-alt);
}

.table tbody tr:nth-child(even),
.appointment-table tbody tr:nth-child(even),
.account-table tbody tr:nth-child(even),
.po-table tbody tr:nth-child(even),
.logs-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.9);
}

.table tbody tr:hover,
.appointment-table tbody tr:hover,
.account-table tbody tr:hover,
.po-table tbody tr:hover,
.logs-table tbody tr:hover {
    background: var(--table-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 最后一行移除底部边框 */
.table tr:last-child td,
.appointment-table tr:last-child td,
.account-table tr:last-child td,
.po-table tr:last-child td,
.logs-table tr:last-child td {
    border-bottom: none;
}

/* ================================
   特殊表格样式 - 预约表格
   ================================ */

/* 预约表格特殊处理 - 移除悬停效果 */
.appointment-table tbody tr {
    transition: none !important;
}

.appointment-table tbody tr:hover {
    background: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 计划时间单元格特殊处理 */
.appointment-table td:nth-child(5) {
    white-space: normal;
    padding: 0;
}

/* 智能抢约管理面板表格响应式优化 */
@media (max-width: 1200px) {
    .appointment-table {
        min-width: 1000px; /* 确保表格有最小宽度，触发水平滚动 */
    }
    
    .appointment-table th,
    .appointment-table td {
        min-width: 100px; /* 设置列的最小宽度 */
        font-size: 14px; /* 在较小屏幕上减小字体 */
        padding: 8px 10px; /* 减小内边距 */
    }
    
    /* 操作列保持较小宽度 */
    .appointment-table th:first-child,
    .appointment-table td:first-child {
        min-width: 80px;
    }
    
    /* 状态列适中宽度 */
    .appointment-table th:nth-child(2),
    .appointment-table td:nth-child(2) {
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .appointment-table {
        min-width: 800px; /* 移动端进一步压缩但保持滚动 */
    }
    
    .appointment-table th,
    .appointment-table td {
        font-size: 13px;
        padding: 6px 8px;
        min-width: 80px;
    }
    
    /* 操作列在移动端更紧凑 */
    .appointment-table th:first-child,
    .appointment-table td:first-child {
        min-width: 60px;
    }
}

/* ================================
   时间显示相关样式
   ================================ */

/* 时间单元格内容 - 分行显示 */
.cell-row {
    display: block;
    margin-bottom: 0;
    padding: 8px 15px;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* 开始时间行样式 */
.cell-row.start {
    background-color: rgba(63, 167, 255, 0.12);
    color: #3fa7ff;
}

/* 结束时间行样式 */
.cell-row.end {
    background-color: rgba(255, 153, 0, 0.12);
    color: #ff9900;
}

/* 时间列表容器 */
.time-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex-direction: column;
    max-height: 100px;
    overflow-y: auto;
}

/* 时间项目样式 */
.time-item {
    display: inline-block;
    background: rgba(20, 110, 180, 0.15);
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 15px;
}

/* 时间省略号 - 可点击展开 */
.time-ellipsis {
    display: inline-block;
    cursor: pointer;
    color: var(--table-primary-dark);
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.time-ellipsis:hover {
    color: var(--secondary, #ff9900);
}

/* 时间弹出层样式 */
.time-popover {
    position: fixed;
    background: linear-gradient(135deg, #ffffff 60%, #f8f9fa 100%);
    color: var(--dark);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 32px;
    font-size: 19px;
    font-weight: 500;
    max-width: 96vw;
    z-index: 99999;
    line-height: 1.9;
    opacity: 1;
    animation: fadeIn 0.3s forwards;
    pointer-events: none;
    letter-spacing: 1.2px;
    text-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    white-space: pre-line;
    text-align: left;
}

/* 弹出层淡入动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ================================
   操作按钮容器样式
   ================================ */

/* 操作按钮网格布局 */
.action-cell {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    grid-template-rows: repeat(2, 36px);
    gap: 6px;
    justify-content: start;
    align-items: start;
}

/* ================================
   状态标签系统
   ================================ */

/* 基础状态标签样式 */
.status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* 状态颜色定义 - 透明背景样式 */
.status-active {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.status-error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

/* 其他预约状态 - 实心背景样式 */
.status-waiting { 
    background-color: #17a2b8; 
    color: #fff;
}    /* 蓝色 - 运行中 */

.status-normal { 
    background-color: #c0392b; 
    color: #fff;
}     /* 红色 - 正常 */

.status-success { 
    background-color: #27ae60; 
    color: #fff;
}    /* 绿色 - 成功 */

.status-expired { 
    background-color: #95a5a6; 
    color: #fff;
}    /* 灰色 - 已过期 */

.status-failed { 
    background-color: #c0392b; 
    color: #fff;
}     /* 深红色 - 账号失效 */

/* 自动状态样式 */
.status-auto {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

/* 兼容性样式 - 保持向后兼容 */
.status-completed {
    background-color: #27ae60;
    color: #fff;
}

.status-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.status-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.status-stopped {
    background-color: #c0392b;
    color: #fff;
}

.status-info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.status-running {
    background-color: #17a2b8;
    color: #fff;
}

.status-inactive {
    background: rgba(108, 117, 125, 0.15);
    color: var(--secondary);
}

/* 小尺寸状态标签 */
.status-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
}

/* ================================
   账号和标签样式
   ================================ */

/* 账号标签基础样式 */
.account-tag {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 16px;
    background: rgba(46, 204, 113, 0.15);
    font-weight: 600;
    font-size: 15px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

/* ================================
   账单相关样式
   ================================ */

/* 账单类型标签基础样式 */
.bill-type-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 账单类型 - 充值 */
.bill-type-tag.recharge {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.1));
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.2);
}

/* 账单类型 - 消耗 */
.bill-type-tag.consume {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.1));
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.2);
}

/* 账单类型 - 调整 */
.bill-type-tag.refund {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.1));
    color: #2980b9;
    border-color: rgba(41, 128, 185, 0.2);
}

/* 账单类型 - 奖励 */
.bill-type-tag.reward {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.1));
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.2);
}

/* 账单类型 - 调整 */
.bill-type-tag.adjustment {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.1));
    color: #8e44ad;
    border-color: rgba(142, 68, 173, 0.2);
}

/* 账单类型 - 转账 */
.bill-type-tag.transfer {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.15), rgba(44, 62, 80, 0.1));
    color: #2c3e50;
    border-color: rgba(44, 62, 80, 0.2);
}

/* 账单类型 - 默认样式 */
.bill-type-tag.default {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.15), rgba(127, 140, 141, 0.1));
    color: #7f8c8d;
    border-color: rgba(127, 140, 141, 0.2);
}

/* 账单积分样式 */
.bill-points {
    font-weight: 700;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    transition: all 0.2s ease;
}

/* 正数积分 - 绿色 */
.bill-points.positive {
    color: #27ae60;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.bill-points.positive::before {
    content: '+';
    font-weight: 800;
}

/* 负数积分 - 红色 */
.bill-points.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* 零积分 - 灰色 */
.bill-points.zero {
    color: #95a5a6;
    background: rgba(149, 165, 166, 0.1);
    border: 1px solid rgba(127, 140, 141, 0.2);
}

/* 账单类型标签悬停效果 */
.bill-type-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 账单积分悬停效果 */
.bill-points:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* 用户名标签 - 管理员特殊样式 */
.user-tag.admin {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), rgba(176, 42, 55, 0.08));
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.user-tag.admin:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.18), rgba(176, 42, 55, 0.12));
}

/* 剩余积分样式 */
.remaining-points {
    font-weight: 600;
    font-size: 15px;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    color: #2980b9;
    border: 1px solid rgba(41, 128, 185, 0.15);
    position: relative;
}

/* 剩余积分图标 */
.remaining-points::before {
    content: '💰';
    margin-right: 4px;
    font-size: 12px;
}

/* 剩余积分悬停效果 */
.remaining-points:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(41, 128, 185, 0.2);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.08));
}

/* 剩余积分数值高亮 */
.remaining-points.high-balance {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(39, 174, 96, 0.06));
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.2);
}

.remaining-points.low-balance {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.12), rgba(230, 126, 34, 0.06));
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.2);
}

.remaining-points.zero-balance {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(192, 57, 43, 0.06));
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.2);
}

/* 账号类型标签 */
.account-tag.type {
    background-color: rgba(20, 110, 180, 0.18);
    color: #3fa7ff;
}

/* 账号有效性标签 */
.account-tag[data-valid="yes"] {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.account-tag[data-valid="no"] {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* ISA标签样式 */
.isa-tag {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 2px;
    background: #e3f6ff;
    color: #409eff;
    transition: all 0.2s ease;
}

.isa-tag.green {
    background: #d6f5e9;
    color: #2ecc71;
}

.isa-tag.orange {
    background: #fff3e0;
    color: #ff9800;
}

/* 加载类型标签 */
.load-type {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.load-type-palletized {
    background: rgba(46, 204, 113, 0.15);
    color: var(--status-success);
}

.load-type-floor {
    background: rgba(41, 128, 185, 0.15);
    color: var(--table-primary-dark);
}

/* 健康度标签 */
.health-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    min-width: 40px;
}

.health-badge.good {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.health-badge.warning {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.health-badge.bad {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* ================================
   分页控件样式
   ================================ */

/* 分页控件主容器 */
.pagination-container,
#appointment-table-pagination {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    background: var(--table-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 10px 24px;
    color: var(--dark);
    font-size: 15px;
    border: 1px solid var(--table-border-light);
    margin-top: 18px;
    margin-bottom: 0;
}

/* 总数显示 */
.pg-total {
    margin-right: 8px;
    font-weight: 500;
}

/* 每页显示数量选择器 */
.pg-size-select,
.page-size-select {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 16px;
    background: #ffffff;
    color: var(--dark);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pg-size-select:focus,
.page-size-select:focus {
    border-color: var(--secondary, #ff9900);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
    outline: none;
}

/* 页码按钮容器 */
.pg-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 分页按钮和页码通用样式 */
.pg-btn,
.pg-num {
    min-width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    color: var(--dark);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pg-btn:hover,
.pg-num:hover {
    background: #f8f9fa;
    border-color: var(--secondary, #ff9900);
}

/* 禁用状态 */
.pg-btn[disabled],
.pg-num[disabled] {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.pg-btn[disabled]:hover,
.pg-num[disabled]:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* 当前页码高亮 */
.pg-num.active {
    background: var(--secondary, #ff9900);
    color: white;
    border-color: var(--secondary, #ff9900);
}

/* 跳转页码容器 */
.pg-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    font-size: 14px;
}

/* 跳转页码输入框 */
.pg-jump input,
.pg-jump-input {
    width: 50px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 4px 8px;
    text-align: center;
    background: #ffffff;
    color: var(--dark);
    font-size: 14px;
    transition: all 0.2s ease;
}

.pg-jump input:focus,
.pg-jump-input:focus {
    border-color: var(--secondary, #ff9900);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
    outline: none;
}

/* ================================
   筛选和搜索组件
   ================================ */

/* PO筛选输入框和选择器 */
.po-filter-input,
.po-filter-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    color: var(--dark);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    margin-right: 8px;
    height: 40px;
}

.po-filter-input:focus,
.po-filter-select:focus {
    border-color: var(--secondary, #ff9900);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.15);
}

/* 自定义选择器样式 */
.po-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff9900" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 36px;
    cursor: pointer;
}



/* ================================
   信息展示组件
   ================================ */

/* 信息组容器 */
.info-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--table-border);
    padding-bottom: 15px;
}

/* 信息组标题 */
.info-group h4 {
    margin-bottom: 10px;
    color: var(--secondary, #ff9900);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 信息行容器 */
.info-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

/* 信息标签 */
.info-label {
    font-weight: 500;
    width: 140px;
    flex-shrink: 0;
    color: #666666;
}

/* 信息值 */
.info-value {
    flex-grow: 1;
    color: #333333;
    word-break: break-word;
}

/* ================================
   响应式设计 - 移动端优化
   ================================ */

/* 平板端适配 */
@media (max-width: 1024px) {
    .table-container {
        padding: 20px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .table-actions {
        justify-content: center;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .table-container {
        padding: 15px;
        margin: 0 -10px;
        border-radius: 12px 12px 0 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 表格头部优化 */
    .table-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .table-header > div:first-child {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    /* 搜索框优化 */
    .search-box {
        width: 100%;
        padding: 10px 16px;
    }
    
    .search-box input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 表格样式优化 */
    .table,
    .appointment-table,
    .account-table,
    .po-table,
    .logs-table {
        min-width: 600px;
        font-size: 14px;
        border-radius: 12px 12px 0 0;
    }
    
    .table th,
    .appointment-table th,
    .account-table th,
    .po-table th,
    .logs-table th {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .table td,
    .appointment-table td,
    .account-table td,
    .po-table td,
    .logs-table td {
        padding: 8px 6px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* 状态标签优化 */
    .status {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
    }
    
    .account-tag,
    .isa-tag {
        font-size: 12px;
        padding: 3px 12px;
    }
    
    /* 分页控件优化 */
    .pagination-container,
    #appointment-table-pagination {
        padding: 8px 12px;
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .pg-btn,
    .pg-num {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .pg-jump {
        margin-left: 0;
        font-size: 12px;
    }
    
    .pg-jump input,
    .pg-jump-input {
        width: 40px;
        font-size: 12px;
    }
    
    /* 筛选组件优化 */
    .po-filter-input,
    .po-filter-select {
        font-size: 14px;
        padding: 8px 12px;
        height: 36px;
        margin-right: 4px;
        margin-bottom: 8px;
    }
    
    /* 操作按钮优化 */
    .action-cell {
        grid-template-columns: repeat(2, 32px);
        grid-template-rows: repeat(2, 32px);
        gap: 4px;
    }
    
    /* 时间显示优化 */
    .time-display,
    .time-cell {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .time-popover {
        font-size: 16px;
        padding: 15px 20px;
        max-width: 90vw;
    }
    
    /* 操作按钮列优化 */
    .account-table td:last-child,
    .appointment-table td:last-child,
    .po-table td:last-child {
        min-width: 120px;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .table-container {
        padding: 10px;
        margin: 0 -5px;
    }
    
    .table,
    .appointment-table,
    .account-table,
    .po-table,
    .logs-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .table th,
    .appointment-table th,
    .account-table th,
    .po-table th,
    .logs-table th {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .table td,
    .appointment-table td,
    .account-table td,
    .po-table td,
    .logs-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .pagination-container,
    #appointment-table-pagination {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .status {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ================================
   表格响应式滚动条优化
   ================================ */

/* 移动端滚动条样式 */
@media (max-width: 768px) {
    .table-responsive {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: rgba(255, 153, 0, 0.5);
        border-radius: 3px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 153, 0, 0.7);
    }
}

/* ================================
   可访问性支持
   ================================ */

/* 键盘导航支持 */
.table th:focus,
.table td:focus,
.pg-btn:focus,
.pg-num:focus {
    outline: 2px solid var(--secondary, #ff9900);
    outline-offset: 2px;
}

/* 屏幕阅读器支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .table,
    .appointment-table,
    .account-table,
    .po-table,
    .logs-table {
        border: 2px solid #000;
    }
    
    .table th,
    .appointment-table th,
    .account-table th,
    .po-table th,
    .logs-table th {
        border-bottom: 2px solid #000;
    }
    
    .status {
        border: 1px solid #000;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .table tbody tr,
    .appointment-table tbody tr,
    .account-table tbody tr,
    .po-table tbody tr,
    .logs-table tbody tr,
    .status,
    .pg-btn,
    .pg-num {
        transition: none;
    }
    
    .time-popover {
        animation: none;
    }
}

/* ================================
   打印样式优化
   ================================ */

@media print {
    .table-container {
        box-shadow: none;
        border: 1px solid #000;
        background: white;
    }
    
    .table,
    .appointment-table,
    .account-table,
    .po-table,
    .logs-table {
        box-shadow: none;
        background: white;
    }
    
    .table-header,
    .table-actions,
    .pagination-container,
    #appointment-table-pagination {
        display: none;
    }
    
    .status {
        border: 1px solid #000;
        background: white !important;
    }
}