/* 打印日志页面样式 - 独立样式，避免与其他页面冲突 */

/* 使用特定的命名空间前缀，避免样式冲突 */
.PrintLogs-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.PrintLogs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* 搜索区域 */
.PrintLogs-search-area {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.PrintLogs-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.PrintLogs-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.PrintLogs-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    white-space: nowrap;
    line-height: 1.2;
}

/* 已移除组合搜索框样式，改为独立搜索框 */

.PrintLogs-search-input:not(.search-value),
.PrintLogs-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    vertical-align: middle;
}

.PrintLogs-search-input:focus,
.PrintLogs-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.PrintLogs-search-input:hover,
.PrintLogs-search-select:hover {
    border-color: #c9cdd4;
}

/* 日期范围容器样式 */
.PrintLogs-date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.PrintLogs-date-separator {
    color: #4b5563;
    font-size: 14px;
    white-space: nowrap;
}

.PrintLogs-date-input {
    flex: 1;
    min-width: 120px;
}

/* 操作按钮区域 - 已移除按钮，仅保留间距 */
.PrintLogs-action-area {
    margin-bottom: 10px;
}

/* 列表区域 */
.PrintLogs-table-container {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
}

.PrintLogs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.PrintLogs-table th,
.PrintLogs-table td {
    padding: 8px 20px;
    text-align: left;
    border: none;
}

/* 特定字段居中对齐 - 只对数量和页数居中 */
.PrintLogs-table th:nth-child(6), /* 打印份数 */
.PrintLogs-table th:nth-child(7), /* 打印页数 */
.PrintLogs-table td:nth-child(6),
.PrintLogs-table td:nth-child(7) {
    text-align: center;
}

.PrintLogs-table th {
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.PrintLogs-table td {
    color: #4b5563;
    font-size: 14px;
}

.PrintLogs-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 分页区域 */
.PrintLogs-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.PrintLogs-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.PrintLogs-pagination-controls {
    display: flex;
    gap: 8px;
}

.PrintLogs-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.PrintLogs-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.PrintLogs-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.PrintLogs-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.PrintLogs-page-size-select {
    width: 60px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* 空数据状态 */
.PrintLogs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #6b7280;
}

.PrintLogs-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.PrintLogs-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.PrintLogs-empty-desc {
    font-size: 14px;
    color: #9ca3af;
}

/* TDesign风格日期范围选择器样式 */
.PrintLogs-tdesign-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.PrintLogs-tdesign-date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
}

.PrintLogs-tdesign-date-input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 40px;
}

.PrintLogs-tdesign-date-input:hover {
    border-color: #c0c4cc;
}

.PrintLogs-tdesign-date-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
    outline: none;
}

.PrintLogs-tdesign-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

/* 隐形滚动条样式 - 针对WebKit浏览器 */
.PrintLogs-table-container::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.PrintLogs-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: none;
}

.PrintLogs-table-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.PrintLogs-table-container::-webkit-scrollbar-track {
    background: transparent;
    border: none;
}

/* 日期选择器面板样式 */
.PrintLogs-tdesign-date-panel {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    width: 280px;
    overflow: hidden;
}

.PrintLogs-tdesign-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e6eb;
}

.PrintLogs-tdesign-date-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.PrintLogs-tdesign-date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

.PrintLogs-tdesign-date-nav-btn:hover {
    background: #e5e6eb;
    color: #0052d9;
}

.PrintLogs-tdesign-date-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    user-select: none;
}

.PrintLogs-tdesign-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.PrintLogs-tdesign-date-weekday {
    text-align: center;
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    padding: 8px 0;
}

.PrintLogs-tdesign-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px;
}

.PrintLogs-tdesign-date-day {
    text-align: center;
    font-size: 14px;
    color: #1d2129;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.PrintLogs-tdesign-date-day:hover {
    background: #f0f5ff;
    color: #0052d9;
}

.PrintLogs-tdesign-date-day.empty {
    cursor: default;
    color: transparent;
}

.PrintLogs-tdesign-date-day.today {
    font-weight: 600;
    color: #0052d9;
    background: #f0f5ff;
}

.PrintLogs-tdesign-date-day.selected {
    background: #0052d9;
    color: #ffffff;
}

/* 日期分隔符样式 */
.PrintLogs-tdesign-date-separator {
    color: #666666;
    font-size: 14px;
    margin: 0 8px;
    user-select: none;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .PrintLogs-container {
        padding: 16px;
    }
    
    .PrintLogs-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .PrintLogs-search-item {
        width: 100%;
        min-width: auto;
    }
    
    .PrintLogs-table-container {
        overflow-x: auto;
    }
    
    .PrintLogs-table {
        min-width: 800px;
    }
}