/* 年度计划管理样式 */

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

/* 头部区域 */
.tl-mt-annual-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.tl-mt-annual-plan-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.tl-mt-annual-plan-year-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-mt-annual-plan-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.tl-mt-annual-plan-header-right {
    display: flex;
    gap: 12px;
}

.tl-mt-annual-plan-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-annual-plan-btn.primary {
    background: #0ea5e9;
    color: white;
}

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

.tl-mt-annual-plan-btn.secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tl-mt-annual-plan-btn.secondary:hover {
    background: #f8fafc;
}

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

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

.tl-mt-annual-plan-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-annual-plan-stats-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

.tl-mt-annual-plan-stats-card-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tl-mt-annual-plan-stats-card-info {
    flex: 1;
}

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

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

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

/* 图表卡片 */
.tl-mt-annual-plan-chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

.tl-mt-annual-plan-chart-legend {
    display: flex;
    gap: 20px;
}

.tl-mt-annual-plan-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.tl-mt-annual-plan-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tl-mt-annual-plan-legend-dot.blue {
    background: #0ea5e9;
}

.tl-mt-annual-plan-legend-dot.green {
    background: #22c55e;
}

.tl-mt-annual-plan-legend-dot.red {
    background: #ef4444;
}

.tl-mt-annual-plan-chart-canvas {
    width: 100%;
    height: 350px;
}

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

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

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

.tl-mt-annual-plan-table-tabs {
    display: flex;
    gap: 8px;
}

.tl-mt-annual-plan-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-annual-plan-tab.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

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

/* 表格 */
.tl-mt-annual-plan-table-wrapper {
    overflow-x: auto;
}

.tl-mt-annual-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

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

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

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

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

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

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

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

.tl-mt-annual-plan-table td.success {
    color: #22c55e;
}

.tl-mt-annual-plan-table td.danger {
    color: #ef4444;
}

.tl-mt-annual-plan-table td.warning {
    color: #eab308;
}

.tl-mt-annual-plan-table td.muted {
    color: #94a3b8;
}

.tl-mt-annual-plan-table tfoot tr.total-row {
    background: #f8fafc;
    font-weight: 600;
    border-top: 2px solid #e2e8f0;
}

.tl-mt-annual-plan-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tl-mt-annual-plan-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tl-mt-annual-plan-badge.primary {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.tl-mt-annual-plan-badge.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.tl-mt-annual-plan-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tl-mt-annual-plan-badge.muted {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.tl-mt-annual-plan-action-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #0ea5e9;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* 表单网格 */
.tl-mt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

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

/* 模态框大尺寸 */
.tl-mt-modal-content.large {
    max-width: 1000px;
}

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

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

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

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

body.dark .tl-mt-annual-plan-stats-card {
    background: #1e293b;
}

body.dark .tl-mt-annual-plan-stats-card-value {
    color: #f1f5f9;
}

body.dark .tl-mt-annual-plan-chart-card,
body.dark .tl-mt-annual-plan-table-card {
    background: #1e293b;
}

body.dark .tl-mt-annual-plan-chart-title,
body.dark .tl-mt-annual-plan-table-title {
    color: #f1f5f9;
}

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

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

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

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

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

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

body.dark .tl-mt-annual-plan-table tfoot tr.total-row {
    background: #0f172a;
}

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

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

body.dark .tl-mt-annual-plan-btn.secondary {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

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

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

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

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

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

body.dark .tl-mt-annual-plan-legend-item {
    color: #94a3b8;
}
