/* Procurement 组件样式 */

/* ==================== Procurement 容器 ==================== */

.tl-mt-procurement-container {
    padding: 24px;
}

/* ==================== 顶部过滤栏 ==================== */

.tl-mt-procurement-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tl-mt-procurement-filter-left {
    display: flex;
    gap: 12px;
}

.tl-mt-procurement-filter-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background-color: #ffffff;
    padding: 8px 12px;
    color: #0f172a;
}

body.dark .tl-mt-procurement-filter-select {
    border-color: #334155;
    background-color: #1e293b;
    color: #f1f5f9;
}

.tl-mt-procurement-filter-button {
    background-color: #0ea5e9;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tl-mt-procurement-filter-button:hover {
    background-color: #0284c7;
}

/* ==================== 图表网格 ==================== */

.tl-mt-procurement-charts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .tl-mt-procurement-charts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== 图表卡片 ==================== */

.tl-mt-procurement-chart-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

body.dark .tl-mt-procurement-chart-card {
    background-color: #1e293b;
    border-color: #334155;
}

.tl-mt-procurement-chart-card.large {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .tl-mt-procurement-chart-card.large {
        grid-column: span 2;
    }
}

/* ==================== 图表头部 ==================== */

.tl-mt-procurement-chart-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tl-mt-procurement-chart-card-title {
    font-weight: 700;
}

.tl-mt-procurement-chart-card-legend {
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: #94a3b8;
}

.tl-mt-procurement-chart-card-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tl-mt-procurement-chart-card-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.tl-mt-procurement-chart-card-legend-dot.gray {
    background-color: #e2e8f0;
}

.tl-mt-procurement-chart-card-legend-dot.primary {
    background-color: #0ea5e9;
}

/* ==================== 双柱图 ==================== */

.tl-mt-procurement-double-bar-chart {
    height: 256px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.tl-mt-procurement-double-bar-chart-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-mt-procurement-double-bar-chart-item-bars {
    width: 100%;
    background-color: #f1f5f9;
    border-radius: 4px 4px 0 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.dark .tl-mt-procurement-double-bar-chart-item-bars {
    background-color: #1e293b;
}

.tl-mt-procurement-double-bar-chart-item-bar-planned {
    width: 66.67%;
    margin: 0 auto;
    background-color: #e2e8f0;
}

body.dark .tl-mt-procurement-double-bar-chart-item-bar-planned {
    background-color: #475569;
}

.tl-mt-procurement-double-bar-chart-item-bar-actual {
    width: 50%;
    margin: 0 auto;
    background-color: #0ea5e9;
    margin-top: -4px;
}

.tl-mt-procurement-double-bar-chart-item-label {
    font-size: 10px;
    margin-top: 8px;
    color: #94a3b8;
}

/* ==================== 建议列表 ==================== */

.tl-mt-procurement-advice-title {
    font-weight: 700;
    margin-bottom: 16px;
}

.tl-mt-procurement-advice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tl-mt-procurement-advice-item {
    padding: 16px;
    border-radius: 8px;
    background-color: #f8fafc;
    border-left: 4px solid;
}

body.dark .tl-mt-procurement-advice-item {
    background-color: #1e293b;
}

.tl-mt-procurement-advice-item.warning {
    border-left-color: #eab308;
}

.tl-mt-procurement-advice-item.danger {
    border-left-color: #ef4444;
}

.tl-mt-procurement-advice-item.success {
    border-left-color: #22c55e;
}

.tl-mt-procurement-advice-item-title {
    font-size: 14px;
    font-weight: 700;
}

.tl-mt-procurement-advice-item-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.5;
}

body.dark .tl-mt-procurement-advice-item-desc {
    color: #94a3b8;
}

/* ==================== 采购计划列表 ==================== */

.tl-mt-procurement-plans-list {
    max-height: 400px;
    overflow-y: auto;
}

.tl-mt-procurement-plan-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
}

body.dark .tl-mt-procurement-plan-item {
    background: #0f172a;
    border-color: #334155;
}

.tl-mt-procurement-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tl-mt-procurement-plan-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

body.dark .tl-mt-procurement-plan-title {
    color: #f1f5f9;
}

.tl-mt-procurement-plan-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.tl-mt-procurement-plan-status.pending {
    background: #f1f5f9;
    color: #64748b;
}

.tl-mt-procurement-plan-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.tl-mt-procurement-plan-status.completed {
    background: #dcfce7;
    color: #15803d;
}

body.dark .tl-mt-procurement-plan-status.pending {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

body.dark .tl-mt-procurement-plan-status.in_progress {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.dark .tl-mt-procurement-plan-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.tl-mt-procurement-plan-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

body.dark .tl-mt-procurement-plan-info {
    color: #94a3b8;
}

.tl-mt-procurement-plan-info span {
    display: flex;
    align-items: center;
}

.tl-mt-procurement-plan-progress {
    margin-bottom: 12px;
}

.tl-mt-procurement-plan-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

body.dark .tl-mt-procurement-plan-progress-bar {
    background: #334155;
}

.tl-mt-procurement-plan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.tl-mt-procurement-plan-progress-text {
    font-size: 12px;
    color: #64748b;
}

body.dark .tl-mt-procurement-plan-progress-text {
    color: #94a3b8;
}

.tl-mt-procurement-plan-actions {
    display: flex;
    gap: 8px;
}

.tl-mt-procurement-plan-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.tl-mt-procurement-plan-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.tl-mt-procurement-plan-action-btn.danger {
    color: #ef4444;
    border-color: #fecaca;
}

.tl-mt-procurement-plan-action-btn.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

body.dark .tl-mt-procurement-plan-action-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark .tl-mt-procurement-plan-action-btn:hover {
    background: #334155;
}

body.dark .tl-mt-procurement-plan-action-btn.danger {
    color: #fca5a5;
}

body.dark .tl-mt-procurement-plan-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== 智能采购建议样式 ==================== */

.tl-mt-procurement-advice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.tl-mt-procurement-advice-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.125rem;
}

body.dark .tl-mt-procurement-advice-title {
    color: #ffffff;
}

.tl-mt-procurement-advice-badge {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

body.dark .tl-mt-procurement-advice-badge {
    background: rgba(14, 165, 233, 0.2);
}

.tl-mt-procurement-advice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 400px;
}

.tl-mt-procurement-advice-item {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    display: flex;
    gap: 0.75rem;
    transition: all 0.2s;
}

body.dark .tl-mt-procurement-advice-item {
    background: #334155;
    border-color: #475569;
}

.tl-mt-procurement-advice-item:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.tl-mt-procurement-advice-item.warning {
    border-left-color: #eab308;
}

.tl-mt-procurement-advice-item.high {
    border-left-color: #ef4444;
}

.tl-mt-procurement-advice-item.success {
    border-left-color: #22c55e;
}

.tl-mt-procurement-advice-item-icon {
    color: #64748b;
    flex-shrink: 0;
}

.tl-mt-procurement-advice-item.warning .tl-mt-procurement-advice-item-icon {
    color: #eab308;
}

.tl-mt-procurement-advice-item.high .tl-mt-procurement-advice-item-icon {
    color: #ef4444;
}

.tl-mt-procurement-advice-item.success .tl-mt-procurement-advice-item-icon {
    color: #22c55e;
}

.tl-mt-procurement-advice-item-content {
    flex: 1;
}

.tl-mt-procurement-advice-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

body.dark .tl-mt-procurement-advice-item-title {
    color: #ffffff;
}

.tl-mt-procurement-advice-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

body.dark .tl-mt-procurement-advice-item-desc {
    color: #cbd5e1;
}

.tl-mt-procurement-advice-action {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0ea5e9;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.2s;
}

.tl-mt-procurement-advice-action:hover {
    color: #0284c7;
}

/* ==================== 新版采购计划表格样式 ==================== */

.tl-mt-procurement-table-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

body.dark .tl-mt-procurement-table-card {
    background: #1e293b;
    border-color: #334155;
}

.tl-mt-procurement-table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark .tl-mt-procurement-table-header {
    border-bottom-color: #334155;
    background: rgba(30, 41, 59, 0.5);
}

.tl-mt-procurement-table-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tl-mt-procurement-table-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.125rem;
}

body.dark .tl-mt-procurement-table-title {
    color: #ffffff;
}

.tl-mt-procurement-table-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 0.25rem;
}

body.dark .tl-mt-procurement-table-tabs {
    background: #475569;
}

.tl-mt-procurement-tab {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark .tl-mt-procurement-tab {
    color: #cbd5e1;
}

.tl-mt-procurement-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark .tl-mt-procurement-tab.active {
    background: #1e293b;
    color: #ffffff;
}

.tl-mt-procurement-table-search {
    position: relative;
    display: flex;
    align-items: center;
}

.tl-mt-procurement-table-search .material-symbols-outlined {
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.tl-mt-procurement-search-input {
    padding-left: 2.25rem;
    padding-right: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    width: 16rem;
    color: #475569;
    transition: all 0.2s;
}

body.dark .tl-mt-procurement-search-input {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.tl-mt-procurement-search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.tl-mt-procurement-table-wrapper {
    overflow-x: auto;
    flex: 1;
}

.tl-mt-procurement-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: #64748b;
}

body.dark .tl-mt-procurement-table {
    color: #cbd5e1;
}

.tl-mt-procurement-table thead {
    background: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark .tl-mt-procurement-table thead {
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
}

.tl-mt-procurement-table th,
.tl-mt-procurement-table td {
    padding: 1rem 1.5rem;
}

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

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

.tl-mt-procurement-table td.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

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

body.dark .tl-mt-procurement-table td.bold {
    color: #ffffff;
}

.tl-mt-procurement-table td.small {
    font-size: 0.75rem;
}

.tl-mt-procurement-table tbody tr {
    border-top: 1px solid #e2e8f0;
    transition: background 0.2s;
}

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

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

body.dark .tl-mt-procurement-table tbody tr:hover {
    background: #334155;
}

.tl-mt-procurement-table tbody tr.highlight-pending {
    background: rgba(251, 191, 36, 0.05);
}

body.dark .tl-mt-procurement-table tbody tr.highlight-pending {
    background: rgba(251, 191, 36, 0.1);
}

.tl-mt-procurement-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tl-mt-procurement-type-badge.long {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

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

.tl-mt-procurement-type-badge.completed {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.tl-mt-procurement-approval-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.375rem;
}

.tl-mt-procurement-approval-badge.draft {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.tl-mt-procurement-approval-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.tl-mt-procurement-approval-badge.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

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

.tl-mt-procurement-approval-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tl-mt-procurement-pulse {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #f59e0b;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.tl-mt-procurement-table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.tl-mt-procurement-action-link {
    color: #0ea5e9;
    background: none;
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tl-mt-procurement-action-link:hover {
    background: rgba(14, 165, 233, 0.1);
}

.tl-mt-procurement-icon-btn {
    padding: 0.375rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 4px;
    transition: all 0.2s;
}

.tl-mt-procurement-icon-btn:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #0ea5e9;
}

.tl-mt-procurement-icon-btn.danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.tl-mt-procurement-table-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark .tl-mt-procurement-table-footer {
    border-top-color: #334155;
    background: rgba(15, 23, 42, 0.5);
}

.tl-mt-procurement-table-info {
    font-size: 0.75rem;
    color: #64748b;
}

body.dark .tl-mt-procurement-table-info {
    color: #94a3b8;
}

.tl-mt-procurement-pagination {
    display: flex;
    gap: 0.5rem;
}

.tl-mt-procurement-page-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark .tl-mt-procurement-page-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.tl-mt-procurement-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.dark .tl-mt-procurement-page-btn:hover:not(:disabled) {
    background: #334155;
}

.tl-mt-procurement-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 审批对话框样式 ==================== */

.tl-mt-approval-plan-info {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

body.dark .tl-mt-approval-plan-info {
    background: rgba(51, 65, 85, 0.3);
}

.tl-mt-approval-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

body.dark .tl-mt-approval-section-title {
    color: #f1f5f9;
    border-bottom-color: #475569;
}

.tl-mt-approval-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .tl-mt-approval-info-grid {
        grid-template-columns: 1fr;
    }
}

.tl-mt-approval-info-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tl-mt-approval-info-label {
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

body.dark .tl-mt-approval-info-label {
    color: #94a3b8;
}

.tl-mt-approval-info-value {
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 500;
}

body.dark .tl-mt-approval-info-value {
    color: #e2e8f0;
}

.tl-mt-approval-info-value.bold {
    font-weight: 600;
    color: #0ea5e9;
}

body.dark .tl-mt-approval-info-value.bold {
    color: #38bdf8;
}

/* 审批流程样式 */
.tl-mt-approval-flow {
    margin-bottom: 1.5rem;
}

.tl-mt-approval-steps {
    position: relative;
}

.tl-mt-approval-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    transition: background 0.2s;
}

.tl-mt-approval-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: -1rem;
    width: 2px;
    background: #e2e8f0;
}

body.dark .tl-mt-approval-step:not(:last-child)::before {
    background: #475569;
}

.tl-mt-approval-step.approved:not(:last-child)::before {
    background: #22c55e;
}

.tl-mt-approval-step.rejected:not(:last-child)::before {
    background: #ef4444;
}

.tl-mt-approval-step:hover {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 8px;
}

body.dark .tl-mt-approval-step:hover {
    background: rgba(51, 65, 85, 0.3);
}

.tl-mt-approval-step-indicator {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

body.dark .tl-mt-approval-step-indicator {
    background: #475569;
}

.tl-mt-approval-step.approved .tl-mt-approval-step-indicator {
    background: #22c55e;
    color: white;
}

.tl-mt-approval-step.rejected .tl-mt-approval-step-indicator {
    background: #ef4444;
    color: white;
}

.tl-mt-approval-step.pending .tl-mt-approval-step-indicator {
    background: #f59e0b;
    color: white;
    animation: pulse-approval 2s ease-in-out infinite;
}

@keyframes pulse-approval {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.tl-mt-approval-step.waiting .tl-mt-approval-step-indicator {
    background: #cbd5e1;
    color: #64748b;
}

.tl-mt-approval-step-indicator .material-symbols-outlined {
    font-size: 1.25rem;
}

.tl-mt-approval-step-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

body.dark .tl-mt-approval-step-number {
    color: #94a3b8;
}

.tl-mt-approval-step-content {
    flex: 1;
    padding-top: 0.125rem;
}

.tl-mt-approval-step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

body.dark .tl-mt-approval-step-title {
    color: #f1f5f9;
}

.tl-mt-approval-step-person {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

body.dark .tl-mt-approval-step-person {
    color: #94a3b8;
}

.tl-mt-approval-step-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

body.dark .tl-mt-approval-step-time {
    color: #64748b;
}

.tl-mt-approval-step-comment {
    font-size: 0.75rem;
    color: #475569;
    padding: 0.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 4px;
    border-left: 2px solid #0ea5e9;
    margin-top: 0.5rem;
}

body.dark .tl-mt-approval-step-comment {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.5);
}

.tl-mt-approval-step.rejected .tl-mt-approval-step-comment {
    border-left-color: #ef4444;
    background: rgba(254, 242, 242, 0.8);
}

body.dark .tl-mt-approval-step.rejected .tl-mt-approval-step-comment {
    background: rgba(239, 68, 68, 0.1);
}

/* 审批意见输入框 */
.tl-mt-approval-comment {
    margin-top: 1.5rem;
}

.tl-mt-approval-comment .tl-mt-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

body.dark .tl-mt-approval-comment .tl-mt-form-label {
    color: #f1f5f9;
}

.tl-mt-approval-comment .tl-mt-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    transition: all 0.2s;
}

body.dark .tl-mt-approval-comment .tl-mt-form-input {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.tl-mt-approval-comment .tl-mt-form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* 操作按钮样式优化 */
.tl-mt-procurement-action-link.primary {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    color: #0ea5e9;
    font-weight: 500;
}

.tl-mt-procurement-action-link.primary:hover {
    background: rgba(14, 165, 233, 0.2);
}

/* ==================== 执行进度样式 ==================== */

.tl-mt-procurement-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.tl-mt-procurement-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

body.dark .tl-mt-procurement-progress-bar {
    background: #334155;
}

.tl-mt-procurement-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tl-mt-procurement-progress-fill.low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.tl-mt-procurement-progress-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tl-mt-procurement-progress-fill.high {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.tl-mt-procurement-progress-fill.completed {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.tl-mt-procurement-progress-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    min-width: 35px;
    text-align: right;
}

body.dark .tl-mt-procurement-progress-text {
    color: #94a3b8;
}

/* 表格数值样式优化 */
.tl-mt-procurement-table td.muted {
    color: #94a3b8;
}

body.dark .tl-mt-procurement-table td.muted {
    color: #64748b;
}

.tl-mt-procurement-table td.primary {
    color: #0ea5e9;
    font-weight: 500;
}

body.dark .tl-mt-procurement-table td.primary {
    color: #38bdf8;
}

.tl-mt-procurement-table td.success {
    color: #22c55e;
    font-weight: 500;
}

body.dark .tl-mt-procurement-table td.success {
    color: #4ade80;
}
