/* 物业管理分级汇报系统 - 自定义样式 */

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
}

/* 表格样式 */
.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft { background: #e9ecef; color: #6c757d; }
.status-submitted { background: #cfe2ff; color: #084298; }
.status-passed { background: #d1e7dd; color: #0f5132; }
.status-final { background: #198754; color: white; }

/* 富文本内容展示 */
.rich-content {
    min-height: 100px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #0d6efd;
}

.timeline-item .timeline-content {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 移动端通用 */
.mobile-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-tab .tab-item {
    flex: 1;
    text-align: center;
    padding: 6px 0 2px;
    font-size: 11px;
    color: #666;
    text-decoration: none;
}

.bottom-tab .tab-item.active {
    color: #0d6efd;
}

.bottom-tab .tab-item .tab-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

.btn-mobile {
    height: 48px;
    font-size: 16px;
    border-radius: 10px;
}

.card-mobile {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 经费字段样式 */
.expense-section {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.expense-section .card-header {
    background: #fff3cd;
    color: #856404;
}

/* 富文本编辑器 */
.ql-editor {
    min-height: 150px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .card {
        margin-bottom: 12px;
    }
}

/* 筛选区域 */
.filter-section {
    background: white;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
