/* 西安海豚蓝馨健康管理有限公司 - 护工管理系统共享样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 自定义 CSS 变量 */

/* 顶部导航栏通用高度与 Logo 自适应规则（全站统一） */
.top-bar {
    --bar-h: 60px; /* 顶部导航栏高度变量（默认 60px），可在页面级通过 .top-bar{ --bar-h: 56px; }覆盖 */
    height: var(--bar-h);
    flex-shrink: 0;
}
.top-bar .logo-img {
    max-height: calc(var(--bar-h, 60px) * 0.85); /* logo 最大高度 = 导航栏高度的 85%（带默认回退 60px） */
    height: auto;
    width: auto;
    object-fit: contain;
}
/* 可选：不同密度的导航栏高度（按需选择） */
.top-bar.compact { --bar-h: 56px; }
.top-bar.tight { --bar-h: 48px; }

/* Logo 对比度增强徽章样式（适用于顶部导航背景与 Logo 颜色接近的场景） */
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--bar-h, 60px) * 0.85);
    padding: calc(var(--bar-h, 60px) * 0.08) calc(var(--bar-h, 60px) * 0.12);
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--bar-h, 60px) * 0.18);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 2px rgba(255,255,255,0.5);
}
.logo-badge .logo-img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* 如需更强对比可使用 .logo-badge.strong 背景纯白并更深阴影 */
.logo-badge.strong {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 0 0 2px rgba(255,255,255,0.7);
}
:root {
    --primary-color: #1890ff; /* 统一为订单管理蓝色体系主色 */
    --success-color: #28a745; /* 成功状态维持绿色但统一数值 */
    --warning-color: #f59e0b;
    --danger-color: #ff4d4f; /* 危险状态统一为订单管理红色 */
    --info-color: #1890ff; /* 信息色与主色一致 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --background-color: #f5f7fa; /* 背景统一为订单管理浅灰 */
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #059669;
}

/* 自定义按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #2563eb;
}

/* 按钮禁用状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 特殊按钮类型 */
.btn-outline {
    background-color: transparent;
    border-color: currentColor;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 按钮尺寸 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
}

.card-header {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 统计卡片样式 - 工资系统专用 */
.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.stat-card .stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.stat-card-primary .stat-icon {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-card-success .stat-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card-warning .stat-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-card-danger .stat-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* 表单元素样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 表单网格 */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 表单列宽度 */
.form-col-40 {
    flex: 0 0 calc(40% - 0.5rem);
    min-width: 200px;
}

.form-col-50 {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 200px;
}

.form-col-60 {
    flex: 0 0 calc(60% - 0.5rem);
    min-width: 250px;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: #f9fafb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格操作按钮组 */
.table-actions {
    display: flex;
    gap: 0.25rem;
}

/* 工资表格专用样式 */
.salary-table .amount {
    font-weight: 600;
    text-align: right;
}

.salary-table .positive {
    color: var(--success-color);
}

.salary-table .negative {
    color: var(--danger-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.pagination li {
    margin: 0 0.125rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.pagination a:hover:not(.active) {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.pagination a:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 分页信息 */
.pagination-info {
    margin-right: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    z-index: 50;
    margin: 2rem auto;
    max-width: 28rem;
    width: 90%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

/* 徽章样式 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.5em;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-success {
    background-color: #d1fae5;
    color: #059669;
}

.badge-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background-color: #e0e7ff;
    color: #4338ca;
}

/* 状态徽章 */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-status::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
}

.badge-status-active::before {
    background-color: var(--success-color);
}

.badge-status-pending::before {
    background-color: var(--warning-color);
}

.badge-status-inactive::before {
    background-color: var(--danger-color);
}

/* 进度条样式 */
.progress {
    height: 0.75rem;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-bar-success {
    background-color: var(--success-color);
}

.progress-bar-warning {
    background-color: var(--warning-color);
}

.progress-bar-danger {
    background-color: var(--danger-color);
}

/* 小进度条 */
.progress-sm {
    height: 0.5rem;
}

/* 进度条带标签 */
.progress-with-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-with-label .progress {
    flex: 1;
}

.progress-with-label .progress-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 4rem;
    text-align: right;
}

/* 工具提示样式 */
.tooltip {
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    position: absolute;
    z-index: 100;
}

.tooltip-trigger {
    position: relative;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
}

/* 加载动画 */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载状态覆盖 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 通知样式 */
.notification {
    display: flex;
    align-items: center;
    max-width: 320px;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--card-shadow);
}

.notification-success {
    background-color: #d1fae5;
    color: #059669;
}

.notification-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.notification-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.notification-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* 搜索栏样式 */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar .form-control {
    padding-left: 2.5rem;
}

.search-bar .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
}

/* 筛选器样式 */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.chart-container.small {
    height: 200px;
}

.chart-container.large {
    height: 400px;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

/* 文本辅助类 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 间距辅助类 */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

/* 布局辅助类 */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.flex-1 { flex: 1; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

/* 背景色 */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }

/* 边框 */
.border { border: 1px solid var(--border-color); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-radius { border-radius: 0.375rem; }
.border-radius-lg { border-radius: 0.5rem; }

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
    }
    
    .tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 无障碍支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 键盘导航支持 */
[tabindex="0"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    .modal {
        display: none !important;
    }
}

/* === 全站图标统一替换（无需外部图标库）===
   说明：为了解决 Font Awesome 未加载导致的图标方块问题，这里为常见的 .fa / .fas 类提供 Emoji 级别的直观图标替代。
   优点：
   - 不依赖任何外部CDN或字体文件；
   - 图标更形象，易于理解；
   - 适用于项目内所有页面，HTML 无需改动。
*/

/* 基础：让 <i class="fa|fas ..."> 显示为一个可控的图标盒子 */
i.fa, i.fas {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1em;
  text-align: center;
  font-style: normal; /* 避免斜体影响图标 */
}
i.fa::before, i.fas::before {
  display: inline-block;
  font-size: 1em; /* 跟随文本大小 */
}

/* 通用与导航类 */
.i-fallback, .fa, .fas { /* 保持颜色跟随当前文字颜色 */
  color: inherit;
}
.fa-bars::before { content: "☰"; }
.fa-search::before { content: "🔍"; }
.fa-bell::before, .fa-bell-o::before { content: "🔔"; }
.fa-cog::before { content: "⚙️"; }
.fa-angle-down::before { content: "▾"; }
.fa-chevron-left::before { content: "◀"; }
.fa-chevron-right::before { content: "▶"; }
.fa-refresh::before { content: "🔄"; }
.fa-save::before { content: "💾"; }
.fa-download::before { content: "⬇️"; }
.fa-upload::before { content: "⬆️"; }
.fa-print::before { content: "🖨️"; }

/* 信息与提示类 */
.fa-info-circle::before { content: "ℹ️"; }
.fa-lightbulb-o::before { content: "💡"; }
.fa-exclamation-triangle::before { content: "⚠️"; }
.fa-exclamation-circle::before { content: "❗"; }
.fa-check-circle::before { content: "✅"; }
.fa-times-circle::before { content: "⛔"; }
.fa-check::before { content: "✔️"; }
.fa-times::before { content: "✖️"; }

/* 排序类 */
.fa-sort::before { content: "⇅"; }
.fa-sort-up::before { content: "▲"; }
.fa-sort-down::before { content: "▼"; }

/* 业务操作类 */
.fa-eye::before { content: "👁️"; }
.fa-edit::before { content: "✏️"; }
.fa-user-plus::before { content: "➕"; }
.fa-plus::before, .fa-plus-circle::before { content: "➕"; }
.fa-trash::before { content: "🗑️"; }
.fa-pencil::before { content: "✏️"; }
.fa-filter::before { content: "🔽"; } /* 代表下拉筛选 */
.fa-file-text::before, .fa-file-text-o::before, .fa-file-text-o::before { content: "📄"; }
.fa-file-text-o::before { content: "📄"; }
.fa-file-text::before { content: "📄"; }
.fa-file-text-o::before { content: "📄"; }
.fa-file-text::before { content: "📄"; }
.fa-file-text-o::before { content: "📄"; }

/* 金钱与统计类 */
.fa-money::before { content: "💰"; }
.fa-credit-card::before { content: "💳"; }
.fa-line-chart::before { content: "📈"; }
.fa-bar-chart::before { content: "📊"; }
.fa-calculator::before { content: "🧮"; }

/* 时间与日程类 */
.fa-clock-o::before { content: "⏰"; }
.fa-hourglass-half::before { content: "⏳"; }
.fa-calendar::before, .fa-calendar-check-o::before { content: "📅"; }
.fa-arrow-up::before { content: "⬆️"; }
.fa-arrow-down::before { content: "⬇️"; }

/* 人员与账号类 */
.fa-user::before, .fa-user-circle::before, .fa-user-circle-o::before { content: "👤"; }
.fa-users::before { content: "👥"; }
.fa-user-md::before { content: "🩺"; }
.fa-user-injured::before { content: "🧑‍🦽"; }
.fa-hospital-user::before { content: "🏥"; }
.fa-sign-out, .fa-sign-out-alt::before { content: "🚪"; }

/* 通讯与设备类 */
.fa-envelope-o::before { content: "✉️"; }
.fa-phone::before, .fa-phone-alt::before { content: "☎️"; }
.fa-camera::before { content: "📷"; }

/* 评分类 */
.fa-star::before { content: "⭐"; }
.fa-star-o::before { content: "☆"; }
.fa-star-half-o::before { content: "✩"; }

/* 导航与模块类 */
.fa-home::before { content: "🏠"; }
.fa-dashboard::before, .fa-tachometer::before { content: "📊"; }
.fa-shopping-cart::before { content: "🛒"; }
.fa-list-alt::before { content: "🗂️"; }
.fa-book::before { content: "📚"; }
.fa-history::before { content: "🕘"; }
.fa-stethoscope::before { content: "🩺"; }
.fa-prescription::before { content: "🧾"; }
.fa-file-medical::before { content: "📝"; }
.fa-file-invoice-dollar::before { content: "🧾"; }

/* 兼容 Font Awesome 5 的 .fas 前缀（复用同样的内容规则）*/
.fas.fa-bars::before { content: "☰"; }
.fas.fa-search::before { content: "🔍"; }
.fas.fa-bell::before { content: "🔔"; }
.fas.fa-cog::before { content: "⚙️"; }
.fas.fa-angle-down::before { content: "▾"; }
.fas.fa-chevron-left::before { content: "◀"; }
.fas.fa-chevron-right::before { content: "▶"; }
.fas.fa-refresh::before { content: "🔄"; }
.fas.fa-save::before { content: "💾"; }
.fas.fa-download::before { content: "⬇️"; }
.fas.fa-upload::before { content: "⬆️"; }
.fas.fa-print::before { content: "🖨️"; }
.fas.fa-info-circle::before { content: "ℹ️"; }
.fas.fa-lightbulb-o::before { content: "💡"; }
.fas.fa-exclamation-triangle::before { content: "⚠️"; }
.fas.fa-check-circle::before { content: "✅"; }
.fas.fa-times-circle::before { content: "⛔"; }
.fas.fa-check::before { content: "✔️"; }
.fas.fa-times::before { content: "✖️"; }
.fas.fa-sort::before { content: "⇅"; }
.fas.fa-sort-up::before { content: "▲"; }
.fas.fa-sort-down::before { content: "▼"; }
.fas.fa-eye::before { content: "👁️"; }
.fas.fa-edit::before { content: "✏️"; }
.fas.fa-user-plus::before { content: "➕"; }
.fas.fa-plus::before, .fas.fa-plus-circle::before { content: "➕"; }
.fas.fa-trash::before { content: "🗑️"; }
.fas.fa-pencil::before { content: "✏️"; }
.fas.fa-filter::before { content: "🔽"; }
.fas.fa-money::before { content: "💰"; }
.fas.fa-credit-card::before { content: "💳"; }
.fas.fa-line-chart::before { content: "📈"; }
.fas.fa-bar-chart::before { content: "📊"; }
.fas.fa-calculator::before { content: "🧮"; }
.fas.fa-clock-o::before { content: "⏰"; }
.fas.fa-hourglass-half::before { content: "⏳"; }
.fas.fa-calendar::before, .fas.fa-calendar-check, .fas.fa-calendar-check-o::before { content: "📅"; }
.fas.fa-user::before, .fas.fa-user-circle::before { content: "👤"; }
.fas.fa-users::before { content: "👥"; }
.fas.fa-user-md::before { content: "🩺"; }
.fas.fa-user-injured::before { content: "🧑‍🦽"; }
.fas.fa-hospital-user::before { content: "🏥"; }
.fas.fa-phone-alt::before { content: "☎️"; }
.fas.fa-sign-out-alt::before { content: "🚪"; }
.fas.fa-home::before { content: "🏠"; }
.fas.fa-list-alt::before { content: "🗂️"; }
.fas.fa-book::before { content: "📚"; }
.fas.fa-history::before { content: "🕘"; }
.fas.fa-stethoscope::before { content: "🩺"; }
.fas.fa-prescription::before { content: "🧾"; }
.fas.fa-file-medical::before { content: "📝"; }
.fas.fa-file-invoice-dollar::before { content: "🧾"; }

/* 图标大小辅助（与文本类一致）*/
.fa.text-xs::before, .fas.text-xs::before { font-size: 0.75rem; }
.fa.text-sm::before, .fas.text-sm::before { font-size: 0.875rem; }
.fa.text-base::before, .fas.text-base::before { font-size: 1rem; }
.fa.text-lg::before, .fas.text-lg::before { font-size: 1.125rem; }
.fa.text-xl::before, .fas.text-xl::before { font-size: 1.25rem; }
.fa.text-2xl::before, .fas.text-2xl::before { font-size: 1.5rem; }
.fa.text-3xl::before, .fas.text-3xl::before { font-size: 1.875rem; }

/* 间距兼容：让图标在按钮或文字旁更协调 */
.fa.mr-1::before, .fas.mr-1::before { margin-right: 0.25rem; }
.fa.mr-2::before, .fas.mr-2::before { margin-right: 0.5rem; }
.fa.ml-1::before, .fas.ml-1::before { margin-left: 0.25rem; }
.fa.ml-2::before, .fas.ml-2::before { margin-left: 0.5rem; }

/* 统一侧边栏容器通用样式（全站通用） */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  overflow-y: auto;
  background-color: #ffffff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

/* 移动端侧边栏显示切换（依赖顶部导航高度变量 --bar-h） */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: var(--bar-h, 60px);
    left: 0;
    height: calc(100vh - var(--bar-h, 60px));
    z-index: 40;
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
}

/* 统一页面内容容器宽度（全站统一，任何场景都铺满） */
.page-container {
  max-width: none;
  margin: 24px 0;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-container {
    margin: 16px 0;
    padding: 0 12px;
  }
}

/* 常见模块顶层容器也保持铺满 */
.order-management-container,
.caregiver-management-container,
.main-container {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}