/* 到厂煤管理样式 */

.tl-mt-arrival-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 头部 */
.tl-mt-arrival-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tl-mt-arrival-title {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.tl-mt-arrival-actions {
    display: flex;
    gap: 12px;
}

.tl-mt-arrival-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tl-mt-arrival-btn.primary {
    background: #0ea5e9;
    color: white;
}

.tl-mt-arrival-btn.primary:hover {
    background: #0284c7;
}

.tl-mt-arrival-btn .material-symbols-outlined {
    font-size: 18px;
}

/* 筛选栏 */
.tl-mt-arrival-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tl-mt-arrival-tabs {
    display: flex;
    gap: 8px;
}

.tl-mt-arrival-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.tl-mt-arrival-tab.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.tl-mt-arrival-tab:hover:not(.active) {
    background: #f8fafc;
}

.tl-mt-arrival-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.tl-mt-arrival-search .material-symbols-outlined {
    font-size: 20px;
    color: #94a3b8;
}

.tl-mt-arrival-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
}

/* 统计卡片 */
.tl-mt-arrival-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tl-mt-arrival-stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tl-mt-arrival-stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-mt-arrival-stats-icon .material-symbols-outlined {
    font-size: 28px;
}

.tl-mt-arrival-stats-icon.blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.tl-mt-arrival-stats-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tl-mt-arrival-stats-icon.yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.tl-mt-arrival-stats-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.tl-mt-arrival-stats-info {
    flex: 1;
}

.tl-mt-arrival-stats-label {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.tl-mt-arrival-stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.tl-mt-arrival-stats-trend {
    font-size: 13px;
    color: #94a3b8;
}

/* 表格 */
.tl-mt-arrival-table-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tl-mt-arrival-table-wrapper {
    overflow-x: auto;
}

.tl-mt-arrival-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px;
}

.tl-mt-arrival-table thead {
    background: #f8fafc;
}

.tl-mt-arrival-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.tl-mt-arrival-table th.right,
.tl-mt-arrival-table td.right {
    text-align: right;
}

.tl-mt-arrival-table th.center,
.tl-mt-arrival-table td.center {
    text-align: center;
}

.tl-mt-arrival-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.tl-mt-arrival-table tbody tr:hover {
    background: #f8fafc;
}

.tl-mt-arrival-table td {
    padding: 12px 8px;
    color: #475569;
}

.tl-mt-arrival-table td.mono {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.tl-mt-arrival-table td.bold {
    font-weight: 600;
    color: #0f172a;
}

/* 类型徽章 */
.tl-mt-arrival-type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tl-mt-arrival-type-badge.long {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.tl-mt-arrival-type-badge.market {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

/* 状态徽章 */
.tl-mt-arrival-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tl-mt-arrival-status-badge.pending {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.tl-mt-arrival-status-badge.qualified,
.tl-mt-arrival-status-badge.accepted,
.tl-mt-arrival-status-badge.stored {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tl-mt-arrival-status-badge.unqualified,
.tl-mt-arrival-status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 操作按钮 */
.tl-mt-arrival-action-btns {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.tl-mt-arrival-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tl-mt-arrival-action-btn .material-symbols-outlined {
    font-size: 18px;
    color: #64748b;
}

.tl-mt-arrival-action-btn:hover {
    background: #f8fafc;
    border-color: #0ea5e9;
}

.tl-mt-arrival-action-btn:hover .material-symbols-outlined {
    color: #0ea5e9;
}

.tl-mt-arrival-action-btn.primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.tl-mt-arrival-action-btn.primary .material-symbols-outlined {
    color: white;
}

.tl-mt-arrival-action-btn.primary:hover {
    background: #0284c7;
}

.tl-mt-arrival-action-btn.danger:hover {
    border-color: #ef4444;
}

.tl-mt-arrival-action-btn.danger:hover .material-symbols-outlined {
    color: #ef4444;
}

/* 详情视图 */
.tl-mt-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tl-mt-detail-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.tl-mt-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.tl-mt-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.tl-mt-detail-row:last-child {
    border-bottom: none;
}

.tl-mt-detail-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.tl-mt-detail-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
}

.tl-mt-detail-value.bold {
    font-weight: 700;
}

/* 响应式 */
@media (max-width: 1024px) {
    .tl-mt-arrival-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tl-mt-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tl-mt-arrival-container {
        padding: 16px;
    }
    
    .tl-mt-arrival-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .tl-mt-arrival-filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .tl-mt-arrival-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tl-mt-arrival-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 深色模式 */
body.dark .tl-mt-arrival-title {
    color: #f1f5f9;
}

body.dark .tl-mt-arrival-filter-bar,
body.dark .tl-mt-arrival-stats-card,
body.dark .tl-mt-arrival-table-card {
    background: #1e293b;
}

body.dark .tl-mt-arrival-tab {
    border-color: #334155;
    color: #94a3b8;
}

body.dark .tl-mt-arrival-tab:hover:not(.active) {
    background: #0f172a;
}

body.dark .tl-mt-arrival-search {
    background: #0f172a;
    border-color: #334155;
}

body.dark .tl-mt-arrival-search-input {
    color: #f1f5f9;
}

body.dark .tl-mt-arrival-stats-value {
    color: #f1f5f9;
}

body.dark .tl-mt-arrival-table thead {
    background: #0f172a;
}

body.dark .tl-mt-arrival-table th {
    color: #94a3b8;
    border-color: #334155;
}

body.dark .tl-mt-arrival-table tbody tr {
    border-color: #334155;
}

body.dark .tl-mt-arrival-table tbody tr:hover {
    background: #0f172a;
}

body.dark .tl-mt-arrival-table td {
    color: #94a3b8;
}

body.dark .tl-mt-arrival-table td.bold {
    color: #f1f5f9;
}

body.dark .tl-mt-arrival-action-btn {
    background: #0f172a;
    border-color: #334155;
}

body.dark .tl-mt-arrival-action-btn:hover {
    background: #1e293b;
}

body.dark .tl-mt-detail-section {
    border-color: #334155;
}

body.dark .tl-mt-detail-section h4 {
    color: #f1f5f9;
    border-color: #334155;
}

body.dark .tl-mt-detail-value {
    color: #f1f5f9;
}

body.dark .tl-mt-detail-row {
    border-color: #0f172a;
}
